/* 在线服务专用样式 - service.css */

/* 服务横幅 */
.service-banner {
    background: linear-gradient(135deg, #019EFF 0%, #0184d6 100%);
    color: #fff;
    padding: 60px 0;
    margin-bottom: 30px;
    border-radius: 12px;
    text-align: center;
}

.service-banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
}

.service-banner p {
    font-size: 18px;
    opacity: 0.95;
}

/* 服务网格 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.service-card {
    background-color: #fff;
    padding: 35px 25px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e53937, #ff6b6b);
    transition: all 0.4s;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #e53937;
}

.service-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: bold;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #019EFF;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.service-btn:hover {
    background-color: #0184d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 158, 255, 0.3);
}

/* 服务详情区域 */
.service-detail {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: none;
}

.service-detail.active {
    display: block;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.service-detail-title {
    font-size: 28px;
    color: #333;
    font-weight: bold;
}

.close-detail-btn {
    padding: 8px 20px;
    background-color: #999;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-detail-btn:hover {
    background-color: #777;
}

.service-detail-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    margin-top: 25px;
}

.service-detail-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.service-detail-content ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-detail-content ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
}

.service-detail-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00a854;
    font-weight: bold;
}

/* 查询表单 */
.query-form {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.query-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.query-form .form-group {
    margin-bottom: 0;
}

.query-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.query-form input,
.query-form select,
.query-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.query-form input:focus,
.query-form select:focus,
.query-form textarea:focus {
    outline: none;
    border-color: #019EFF;
    box-shadow: 0 0 5px rgba(1, 158, 255, 0.2);
}

.query-form textarea {
    resize: vertical;
    min-height: 100px;
}

.query-form .form-actions {
    text-align: center;
    margin-top: 20px;
}

/* 结果显示 */
.query-result {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: none;
}

.query-result.active {
    display: block;
    animation: fadeIn 0.5s;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.result-count {
    font-size: 18px;
    color: #666;
}

.result-count strong {
    color: #e53937;
    font-size: 24px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table th {
    background-color: #f8f8f8;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
}

.result-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.result-table tr:hover {
    background-color: #fafafa;
}

.result-table .standard-number {
    color: #019EFF;
    font-weight: bold;
    cursor: pointer;
}

.result-table .standard-number:hover {
    text-decoration: underline;
}

.status-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.status-current {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-obsolete {
    background-color: #ffebee;
    color: #c62828;
}

.status-upcoming {
    background-color: #fff3e0;
    color: #f57c00;
}

/* 工具卡片 */
.tool-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tool-card {
    text-align: center;
    padding: 25px 15px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.tool-card:hover {
    border-color: #019EFF;
    border-style: solid;
    background-color: #f0f9ff;
    transform: translateY(-3px);
}

.tool-card .tool-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.tool-card h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 8px;
}

.tool-card p {
    color: #999;
    font-size: 13px;
}

/* AI搜索区域 */
.ai-search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 50px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.ai-search-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.ai-search-section p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.ai-search-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.ai-search-box input {
    width: 100%;
    padding: 20px 180px 20px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ai-search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #e53937, #ff6b6b);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.ai-search-box button:hover {
    background: linear-gradient(135deg, #d32f2f, #e53937);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background-color: #e53937;
    color: #fff;
    border-color: #e53937;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: #e53937;
    color: #fff;
    border-color: #e53937;
}

/* 响应式 */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .query-form .form-row {
        grid-template-columns: 1fr;
    }

    .service-banner h1 {
        font-size: 28px;
    }

    .service-detail-title {
        font-size: 22px;
    }

    .ai-search-section {
        padding: 30px 20px;
    }

    .ai-search-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .result-table {
        font-size: 13px;
    }

    .result-table th,
    .result-table td {
        padding: 10px 8px;
    }
}