/* --- 全局重置与基础设置 --- */
:root {
    --primary-color: #0056b3; 
    --accent-color: #d4af37;
    --icon-blue: #3b82f6;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

img {
    width: 100%;
    display: block;
}

/* --- 通用组件 --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.section-padding { padding: 60px 0; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-title p {
    font-size: 14px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
}

/* --- Header --- */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 45px;
    width: auto;
    flex-shrink: 0;
}

.logo img { height: 100%; width: auto; object-fit: contain; }

.pc-nav { display: none; }

.wechat-btn {
    background-color: #07c160;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
    cursor: pointer;
}
.wechat-btn:hover { opacity: 0.9; }

@media (min-width: 992px) {
    .pc-nav {
        display: flex;
        align-items: center;
        margin-left: auto;
        gap: 20px;
    }
    .pc-nav a {
        font-size: 15px;
        font-weight: 500;
        transition: color 0.3s;
        color: #333;
        white-space: nowrap;
    }
    .pc-nav a:hover { color: var(--primary-color); }
    .mobile-menu-trigger { display: none !important; }
}

.mobile-menu-trigger {
    font-size: 22px;
    color: var(--primary-color);
    padding: 10px;
    cursor: pointer;
    z-index: 1002;
}

/* --- 移动端下拉菜单 --- */
.mobile-dropdown {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    padding: 10px 0 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.mobile-dropdown a {
    display: block;
    padding: 15px 30px;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.mobile-dropdown .wechat-mobile {
    margin: 20px 30px 0;
    text-align: center;
    background: #07c160;
    color: #fff;
    padding: 12px;
    border-radius: 50px;
    border-bottom: none;
}

/* --- 轮播图 --- */
.banner-carousel {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
    background: #000;
}

@media (min-width: 768px) {
    .banner-carousel { height: 600px; }
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-slide::after { content: ''; position: absolute; inset: 0; background: rgba(0, 40, 80, 0.5); z-index: 1; }

.banner-content { position: relative; z-index: 2; color: #fff; padding: 0 20px; }
.banner-title { font-size: 32px; font-weight: 700; margin-bottom: 15px; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.banner-subtitle { font-size: 16px; padding: 8px 20px; background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); display: inline-block; border-radius: 4px; border: 1px solid rgba(255,255,255,0.3); }

@media (min-width: 768px) {
    .banner-title { font-size: 56px; margin-bottom: 25px; }
    .banner-subtitle { font-size: 20px; padding: 12px 30px; }
}

.carousel-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: #fff; width: 25px; border-radius: 10px; }

/* --- 资质荣誉 --- */
.cert-section {
    background-color: #eef6fb;
    padding-bottom: 0;
    overflow: hidden;
}
.podium-container { position: relative; padding-top: 20px; padding-bottom: 80px; }
.podium-stage {
    position: absolute; bottom: -150px; left: 50%; transform: translateX(-50%);
    width: 120%; height: 300px;
    background: radial-gradient(circle at 50% 20%, #ffffff 0%, #e6f0f8 60%, #dbe7f3 100%);
    border-radius: 50% 50% 0 0;
    box-shadow: 0 -10px 30px rgba(255,255,255,0.8), 0 -20px 60px rgba(176, 196, 222, 0.2);
    z-index: 0; pointer-events: none;
}
.cert-display-area { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.row-top { display: flex; justify-content: center; gap: 40px; margin-bottom: 10px; }
.row-bottom { display: flex; justify-content: center; align-items: flex-end; gap: 20px; }
.cert-frame {
    background: #fff; padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08), 0 15px 35px rgba(0, 50, 100, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease; position: relative; border-radius: 2px;
}
.cert-frame:hover { transform: translateY(-8px); z-index: 10; }
.cert-frame img { width: 100%; height: 100%; object-fit: contain; background-color: #fff; }
.size-lg { width: 260px; height: 190px; }
.size-md-h { width: 200px; height: 145px; }
.size-md-v { width: 140px; height: 200px; }
@media (max-width: 991px) {
    .podium-stage { bottom: -100px; height: 200px; }
    .cert-display-area { gap: 15px; }
    .row-top, .row-bottom { flex-wrap: wrap; gap: 10px; }
    .size-lg, .size-md-h, .size-md-v { width: 45vw; height: auto; aspect-ratio: 4/3; }
    .size-md-v { aspect-ratio: 3/4; }
}

/* --- 加盟资质卡片 --- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 0; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.qual-card { background-size: cover; background-position: center; border-radius: 4px; overflow: hidden; position: relative; height: 215px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s; display: block; }
.qual-card:hover { transform: translateY(-5px); }
.qual-mask { position: absolute; inset: 0; bottom: 35px; background: linear-gradient(to right, rgba(2, 60, 117, 0.9) 0%, rgba(2, 60, 117, 0.4) 100%); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: #fff; }
.qual-card.dark .qual-mask { background: linear-gradient(to right, rgba(20, 30, 40, 0.95) 0%, rgba(20, 30, 40, 0.7) 100%); }
.qual-left h3 { font-size: 32px; line-height: 1.1; font-weight: 800; margin-bottom: 5px; }
.qual-left span { font-size: 14px; opacity: 0.8; }
.qual-right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.tag { background: rgba(255,255,255,0.2); padding: 4px 10px; font-size: 12px; border-radius: 2px; backdrop-filter: blur(2px); white-space: nowrap; }
.tag-dark { background: rgba(0, 160, 233, 0.8); }
.qual-footer { position: absolute; bottom: 0; left: 0; width: 100%; height: 35px; background: #fff; color: #333; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; z-index: 2; }

/* --- About --- */
.about-section { background: #fff; }
.about-flex { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) { .about-flex { flex-direction: row; align-items: center; } .about-img, .about-text { flex: 1; } }
.about-text h3 { font-size: 20px; margin-bottom: 15px; color: var(--primary-color); }
.about-text p { font-size: 14px; line-height: 1.6; color: var(--text-light); margin-bottom: 20px; text-align: justify; }
.btn { display: inline-block; padding: 10px 25px; background: var(--primary-color); color: #fff; font-size: 14px; border-radius: 4px; transition: 0.3s; cursor: pointer; border: none; }

/* --- Projects & News --- */
.project-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
@media (min-width: 600px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { position: relative; border-bottom: 2px solid var(--primary-color); background: #fff; }
.project-card img { height: 200px; object-fit: cover; }
.project-info { padding: 15px; }
.project-info h4 { font-size: 16px; margin-bottom: 5px; }
.project-info a { font-size: 12px; color: var(--primary-color); }
.news-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { background: #333; color: #fff; padding: 20px; position: relative; overflow: hidden; height: 250px; display: block; }
.news-card img { position: absolute; inset: 0; opacity: 0.4; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.3s; }
.news-card:hover img { transform: scale(1.1); }
.news-content { position: relative; z-index: 1; }
.news-date { background: var(--primary-color); display: inline-block; padding: 5px 10px; font-size: 12px; margin-bottom: 10px; }

/* --- Advantages --- */
.adv-section { background: #fff; }
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 10px; }
@media (min-width: 992px) { .adv-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; } }
.adv-card { background: #fff; border-radius: 12px; padding: 30px 10px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: transform 0.3s; border: 1px solid #f0f0f0; }
.adv-card:hover { transform: translateY(-5px); }
.adv-icon-circle { 
    width: 70px; height: 70px; background: var(--icon-blue); border-radius: 50%; margin: 0 auto 20px; 
    display: flex; align-items: center; justify-content: center; 
    color: #fff; font-size: 32px; box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3); 
}
.adv-card h4 { font-size: 16px; font-weight: 600; color: #333; margin: 0; }

/* --- Process Section --- */
.process-section { background: #fff; }
.process-wrapper { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; position: relative; }
.process-step { display: flex; flex-direction: column; align-items: center; position: relative; flex: 1; min-width: 100px; margin-bottom: 20px; }
.hexagon-bg { 
    width: 80px; height: 90px; background-color: #f2f7fd; 
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); 
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px; position: relative; z-index: 2; 
}
.hexagon-bg i { font-size: 32px; color: var(--primary-color); }
.step-badge { position: absolute; top: 75px; background-color: var(--primary-color); color: #fff; width: 24px; height: 30px; clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%); display: flex; align-items: flex-start; justify-content: center; padding-top: 5px; font-size: 14px; font-weight: bold; z-index: 3; }
.step-title { font-size: 14px; color: #333; font-weight: 500; margin-top: 5px; }
.step-arrow { position: absolute; right: -15px; top: 45px; color: #b0c4de; font-size: 14px; transform: translateY(-50%); z-index: 1; }
.process-step:last-child .step-arrow { display: none; }
@media (max-width: 991px) { .process-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 10px; } .step-arrow { display: none; } }

/* --- Consultation --- */
.consult-section { position: relative; background: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80') center/cover fixed; }
.consult-section::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.9); }
.consult-box { position: relative; z-index: 1; display: flex; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 8px; overflow: hidden; flex-direction: column; }
@media (min-width: 768px) { .consult-box { flex-direction: row; } }
.consult-img { flex: 1; min-height: 200px; background: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover; }
.consult-form { flex: 1; padding: 40px; }
.form-group { margin-bottom: 15px; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.submit-btn { width: 100%; padding: 12px; background: var(--primary-color); color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; display: block; text-align: center; appearance: none; -webkit-appearance: none; }
.submit-btn:hover { background: #004494; }

/* --- FAQ --- */
.faq-section { background: #f9f9f9; }
.faq-item { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.03); }
.faq-q { font-weight: 600; margin-bottom: 10px; display: flex; align-items: start; color: #333; }
.faq-q i { color: var(--primary-color); margin-right: 10px; margin-top: 4px; }
.faq-a { font-size: 13px; color: #666; padding-left: 26px; line-height: 1.6; }

/* --- Footer --- */
.footer { 
    background: #222; 
    color: #999; 
    padding: 40px 0 20px; 
    font-size: 12px; 
    margin-top: auto; 
    width: 100%; 
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 30px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-info h3 { color: #fff; font-size: 18px; margin-bottom: 15px; }
.footer-info p { margin-bottom: 8px; }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 20px; }

/* 关键修复：移动端给 Footer 底部留出空间，防止被导航栏遮挡 */
@media (max-width: 991px) {
    .footer { padding-bottom: 80px; }
}

/* --- Mobile Bottom Nav --- */
.mobile-bar { position: fixed; bottom: 0; left: 0; width: 100%; height: 55px; background: #fff; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid #eee; z-index: 1001; }
.mobile-item { text-align: center; color: #666; font-size: 10px; flex: 1; }
.mobile-item i { display: block; font-size: 20px; margin-bottom: 2px; }
.mobile-item.active { color: var(--primary-color); }
@media (min-width: 992px) { .mobile-bar { display: none; } }

/* --- 微信弹窗 --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 2000;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(3px);
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: #fff; padding: 30px; border-radius: 10px;
    width: 90%; max-width: 350px; text-align: center; position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 10px; right: 15px; font-size: 24px; color: #999; cursor: pointer; }
.wechat-qr-img { width: 200px; height: 200px; object-fit: contain; margin: 15px auto; display: block; }
.wechat-id-text { font-size: 18px; color: #333; font-weight: bold; margin-bottom: 5px; }
.wechat-tip { font-size: 12px; color: #999; }
