/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding-top: 130px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.logo p {
    font-size: 12px;
    opacity: 0.8;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 48px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-size: 22px;
    letter-spacing: 1.5px;
    padding: 0 6px;
}

.nav a:hover {
    color: #ffd700;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #f9f9f9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    border: none;
}

.dropdown-menu a {
    display: block;
    padding: 5px 20px;
    color: #fff;
    font-size: 15px;
    text-align: left;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: #34495e;
    color: #ffd700;
    border-radius: 4px;
}

.contact-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* 在线服务区域 */
.online-services {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
}

.highlight {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 18px;
}

/* 核心优势区域 */
.core-advantages {
    padding: 80px 0;
    background: #f8f9fa;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 25px;
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.advantage-card p {
    color: #666;
    line-height: 1.6;
}

/* 客户评价区域 */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: #667eea;
    font-weight: 500;
}

/* FAQ区域 */
.faq {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: #667eea;
    color: white;
}

.tab-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 城市服务区域 */
.city-services {
    padding: 80px 0;
    background: white;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.city-group h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-list span {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.city-list span:hover {
    background: #667eea;
    color: white;
}

.view-all-cities {
    text-align: center;
    margin-top: 40px;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #ecf0f1;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-section .contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

.appointment-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .contact-info {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .advantages-grid,
    .testimonials-grid,
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
    
    body {
        /* padding-top: 120px; */
        padding-top: 0 !important;
    }
    
    .dropdown-menu {
        position: absolute;
        left: 0;
        top: 48px;
        min-width: 180px;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.18);
        z-index: 2000;
        padding: 12px 0;
    }
    
    .dropdown-menu a {
        padding: 12px 24px;
        font-size: 17px;
    }
    
    /* 只针对首页，防止header遮挡 */
    body#index-page main,
    body#index-page .hero {
        padding-top: 80px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .service-card,
    .advantage-card {
        padding: 30px 20px;
    }
}

main, .hero, .page-hero, section {
    
    border-top: none !important;
}

body > *:not(.header):not(script):not(style) {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* Certificate Section Styles */
.certificate-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    background: #f8f9fa;
}

.certificate-bg {
    position: relative;
    width: 900px;
    max-width: 100%;
}

.certificate-img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 0 24px rgba(0,0,0,0.08);
}

.certificate-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate {
    width: 800px;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 2px solid #f0f0f0;
}

.certificate::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, #f9f9f9 25%, transparent 25%) -50px 0,
                linear-gradient(-45deg, #f9f9f9 25%, transparent 25%) -50px 0,
                linear-gradient(45deg, transparent 75%, #f9f9f9 75%),
                linear-gradient(-45deg, transparent 75%, #f9f9f9 75%);
    background-size: 100px 100px;
    opacity: 0.1;
    pointer-events: none;
}

.certificate::after {
    transform: rotate(180deg);
}

.certificate-header {
    text-align: right;
    margin-bottom: 30px;
}

.certificate-number {
    font-size: 16px;
    color: #666;
}

.certificate-content {
    text-align: center;
    position: relative;
}

.national-emblem {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #e60012;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45'/%3E%3C/svg%3E");
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.certificate-title {
    font-size: 36px;
    color: #e60012;
    font-weight: bold;
    margin-bottom: 30px;
}

.certificate-code {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.certificate-company {
    font-size: 18px;
    color: #333;
    text-align: left;
    margin-bottom: 20px;
}

.certificate-text {
    font-size: 16px;
    color: #333;
    text-align: left;
    line-height: 1.8;
    margin-bottom: 30px;
}

.certificate-grade {
    font-size: 48px;
    color: #e60012;
    font-weight: bold;
    margin: 40px 0;
}

.certificate-footer {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
    margin-top: 40px;
}

.issuer {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.issue-date {
    font-size: 16px;
    color: #333;
}

@media (max-width: 992px) {
    .certificate {
        width: 100%;
        padding: 20px;
    }
    
    .certificate-title {
        font-size: 28px;
    }
    
    .certificate-grade {
        font-size: 36px;
    }
}

/* 首页英雄区域证书展示样式 */
.hero-certificate-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    width: 100%;
}
.hero-certificate-img {
    max-width: 66vw;
    width: 66vw;
    min-width: 220px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 24px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
    .hero-certificate-img {
        max-width: 90vw;
        width: 90vw;
        min-width: 120px;
    }
    .hero-certificate-wrapper {
        margin-top: 20px;
    }
}

/* Hero Banner Slider Styles */
.hero-banner-slider {
    position: relative;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16/9;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(80,80,160,0.10), 0 1.5px 8px rgba(80,80,160,0.08);
    border: 3px solid #e0e4fa;
    background: #f7f8fd;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: opacity 2.2s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 12px rgba(80,80,160,0.10);
    position: absolute;
    left: 0;
    top: 0;
}
.hero-banner-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.7);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(80,80,160,0.10);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #6c63ff;
    transition: background 0.2s;
    opacity: 0.85;
    pointer-events: auto;
}
.hero-banner-slider .slider-arrow:hover {
    background: #e0e4fa;
}
.hero-banner-slider .slider-arrow.left {
    left: 24px;
}
.hero-banner-slider .slider-arrow.right {
    right: 24px;
}
.hero-banner-slider .slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}
.hero-banner-slider .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5fa;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-banner-slider .slider-dot.active {
    background: #6c63ff;
}

/* 右侧竖直服务栏 */
.right-contact-bar {
    position: fixed;
    top: 40%;
    right: 32px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.right-contact-item {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}
.right-contact-item:hover {
    background: #e6f0ff;
}
.right-contact-item i {
    font-size: 26px;
    color: #888;
    transition: color 0.2s;
}
.right-contact-item:hover i {
    color: #1890ff;
}
.right-contact-popup {
    left: auto;
    right: 100%;
    top: 0;
    transform: none;
    margin-left: 0;
    margin-right: 12px;
    display: none;
    position: absolute;
    min-width: 170px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    padding: 16px 18px 12px 18px;
    font-size: 15px;
    color: #444;
    white-space: nowrap;
    z-index: 10;
    animation: fadeIn 0.18s;
}
.right-contact-popup:after {
    left: auto;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 0 10px 16px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}
.right-contact-popup .popup-content {
    min-width: 100px;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}
.right-contact-popup img {
    display: block;
    margin: 0 auto 6px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
/* 手机端底部悬浮栏和弹窗美化 */
@media (max-width: 600px) {
    .right-contact-bar {
        right: 8px !important;
        left: auto !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 2px !important;
        width: auto !important;
        z-index: 1000;
    }
    .right-contact-item {
        width: 44px;
        height: 44px;
        margin-bottom: 8px;
        margin-right: 0;
        margin-left: 0;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .right-contact-popup {
        left: -180px;
        right: auto;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        min-width: 140px;
        max-width: 80vw;
        padding: 12px 10px 10px 10px;
        font-size: 14px;
        border-radius: 12px;
        box-shadow: 0 6px 24px rgba(0,0,0,0.18);
        text-align: center;
    }
    .right-contact-popup:after {
        display: none;
    }
    .right-contact-popup img {
        width: 90px;
        height: 90px;
        margin-bottom: 4px;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
} 