* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0B3B5B;
    --primary-blue: #1E3A6F;
    --tech-blue: #2D7EE9;
    --gold: #D4AF37;
    --orange: #F5A623;
    --bg-light: #F5F7FA;
    --text-dark: #333;
    --text-gray: #666;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* 导航栏 */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

.logo svg {
    width: 40px;
    height: 40px;
}
.logo img {
    width: auto;
    height: 50px;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
}

.mobile-contact {
    display: none;
}

.mobile-buttons {
    display: none;
}

/* 页面标题区 */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    padding: 60px 20px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.consultation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.consultation-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.consultation-btn.phone {
    background-color: var(--white);
    color: var(--primary-blue);
}

.consultation-btn.phone:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.consultation-btn.form {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.consultation-btn.form:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 面包屑导航 */
.breadcrumb {
    background-color: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid #e8ecf1;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 6px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--tech-blue);
}

.separator {
    margin: 0 10px;
    color: var(--text-gray);
}

.current {
    color: var(--primary-dark);
    font-weight: 500;
}

/* 主内容区 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px 50px 20px;
    display: flex;
    gap: 30px;
}

.content-area {
    flex: 1;
}

/* 服务卡片网格 */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #e8ecf1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    height: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.service-title {
   font-size: 1.3rem;
   color: var(--primary-dark);
   margin-bottom: 12px;
   font-weight: 600;
}

.service-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge.cma {
    background-color: #90d0ff;
    color: #000000;
}

.badge.cnas {
    background-color: #a7ffee;
    color: #000000;
}

.badge.urgent {
    background-color: #ffdca3;
    color: #000000;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    display: inline-block;
    background-color: var(--tech-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-align: center;
}

.service-link:hover {
    background-color: #1a5fb4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-buttons {
    display: flex;
    gap: 10px;
}

.service-link.consult {
    background-color: var(--orange);
}

.service-link.consult:hover {
    background-color: #e09513;
}

/* 分页按钮 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: var(--white);
    color: var(--text-gray);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.page-btn.active {
    background-color: var(--tech-blue);
    color: var(--white);
    border-color: var(--tech-blue);
}

.page-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/* 侧边栏 */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.sidebar-title {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
    font-weight: 600;
}

.hot-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.hot-item a:hover {
    color: var(--tech-blue);
}

.hot-number {
    width: 24px;
    height: 24px;
    background: var(--tech-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.hot-number.top {
    background: var(--orange);
}

.contact-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: white;
    text-align: center;
}

.contact-card h4 {
    color: var(--gold);
    border-bottom-color: rgba(255,255,255,0.2);
}

.contact-card .sidebar-title {
    color: #ffcf34;
    border-bottom-color: rgba(255,255,255,0.2);
    font-size: 1.8rem;
    font-weight: 600;
    
}

.contact-card p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.contact-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.contact-btn:hover {
    background: #e09513;
    transform: translateY(-2px);
}

/* 资质图片 */
.qualification-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.qualification-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qualification-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #051524 100%);
    color: var(--white);
    padding: 50px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--white);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* 立即检测询问 */
.immediate-testing {
    background: linear-gradient(135deg, #237cb7 0%, #31adc1 100%);
    padding: 40px 0;
    margin-top: 50px;
}

.immediate-testing-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.immediate-testing-content h3 {
    font-size: 1.8rem;
    color: var(--tech-blue);
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.immediate-testing-content p {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.immediate-testing-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.immediate-testing-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.immediate-testing-btn.primary {
    background-color: var(--tech-blue);
    color: white;
}

.immediate-testing-btn.primary:hover {
    background-color: #1a5fb4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.immediate-testing-btn.secondary {
    background-color: white;
    color: var(--tech-blue);
    border: 2px solid var(--tech-blue);
}

.immediate-testing-btn.secondary:hover {
    background-color: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 响应式 */
@media (max-width: 968px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-contact {
        display: block;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .contact-item {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .mobile-buttons {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }
    
    .mobile-btn {
        flex: 1;
        padding: 12px 0;
        text-align: center;
        border-radius: 8px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .consult-btn {
        background: #3676ee;
        color: white;
        
    }
    
    .consult-btn:hover {
        background: var(--primary-dark);
    }
    
    .quote-btn {
        background: var(--gold);
        color: var(--primary-dark);
    }
    
    .quote-btn:hover {
        background: #d4a933;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 24px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .consultation-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .consultation-btn {
        width: 200px;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .service-icon {
        width: 100%;
        height: 180px;
        margin-bottom: 15px;
    }
    
    .breadcrumb-container {
        font-size: 0.8rem;
    }
    
    .service-badges {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .badge {
        padding: 3px 8px;
        font-size: 0.75rem;
    }
    
    .service-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .service-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .page-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .immediate-testing {
        padding: 30px 0;
    }
    
    .immediate-testing-content h3 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .immediate-testing-content p {
        font-size: 1rem;
    }
    
    .immediate-testing-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .immediate-testing-btn {
        width: 100%;
        max-width: 300px;
        padding: 12px 20px;
        text-align: center;
    }
}
