/* ===== 全局样式 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ===== 默认主题：蓝绿专业风 ===== */
    --primary: #0d4f7c;
    --primary-light: #1a7a6e;
    --primary-dark: #083552;
    --accent: #28a799;
    --accent-light: #e8f4f8;
    --text: #2c3e50;
    --text-light: #6c7a89;
    --text-muted: #8892b0;
    --bg: #ffffff;
    --bg-alt: #f0f7f9;
    --border: #dce8ee;
    --shadow: 0 4px 20px rgba(13, 79, 124, 0.08);
    --shadow-lg: 0 10px 40px rgba(13, 79, 124, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* ===== 主题 B：暖橙活力风 ===== */
.theme-warm {
    --primary: #e8731a;
    --primary-light: #f0a030;
    --primary-dark: #b85a00;
    --accent: #f5c542;
    --accent-light: #fff3e0;
    --text: #3d2810;
    --text-light: #6b4a1f;
    --text-muted: #9a7b4f;
    --bg: #ffffff;
    --bg-alt: #fff8f0;
    --border: #f5e0c8;
    --shadow: 0 4px 20px rgba(232, 115, 26, 0.08);
    --shadow-lg: 0 10px 40px rgba(232, 115, 26, 0.12);
}

/* ===== 主题 C：深空科技风 ===== */
.theme-dark {
    --primary: #5b8af5;
    --primary-light: #7aa3ff;
    --primary-dark: #3a60d0;
    --accent: #00d4aa;
    --accent-light: #0a2a25;
    --text: #e8ecf1;
    --text-light: #a0aec0;
    --text-muted: #718096;
    --bg: #0f1419;
    --bg-alt: #1a202c;
    --border: #2d3748;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* 深色主题下 Hero 区域文字颜色 */
.theme-dark .hero h1,
.theme-dark .hero p,
.theme-dark .hero .stat-value,
.theme-dark .hero .stat-label {
    color: #e8ecf1;
}

/* 深色主题下 Hero 渐变遮罩 */
.theme-dark .hero::before {
    background: linear-gradient(135deg, rgba(91,138,245,0.4) 0%, rgba(0,212,170,0.3) 100%);
}

/* 深色主题下导航栏背景 */
.theme-dark .header {
    background: rgba(15, 20, 25, 0.95);
}

/* 深色主题下卡片背景 */
.theme-dark .stat-card,
.theme-dark .adv-item,
.theme-dark .capability-card,
.theme-dark .cert-card,
.theme-dark .service-card,
.theme-dark .highlight-item,
.theme-dark .testimonial-card,
.theme-dark .faq-item,
.theme-dark .step-card {
    background: var(--bg-alt);
}

/* 深色主题下输入框 */
.theme-dark input,
.theme-dark textarea,
.theme-dark select {
    background: var(--bg-alt);
    color: var(--text);
    border-color: var(--border);
}

/* 深色主题下引用块 */
.theme-dark blockquote {
    background: var(--bg-alt);
    border-left-color: var(--primary);
}

/* 深色主题下 section-tag */
.theme-dark .section-tag {
    background: var(--bg-alt);
    color: var(--primary);
    border-color: var(--border);
}

/* 深色主题下 cert-badge */
.theme-dark .cert-badge {
    background: var(--bg-alt);
    color: var(--primary);
    border: 1px solid var(--border);
}

/* 深色主题下 intro 区域 */
.theme-dark .intro {
    background: var(--bg-alt);
}

/* 深色主题下 intro-text strong */
.theme-dark .intro-text strong {
    color: var(--primary);
}

/* 深色主题下 advantage-card */
.theme-dark .advantage-card {
    background: var(--bg-alt);
    border-color: var(--border);
}

/* 深色主题下 advantage-card h3 */
.theme-dark .advantage-card h3 {
    color: var(--primary);
}

/* 深色主题下 service-card */
.theme-dark .service-card {
    background: var(--bg-alt);
    border-color: var(--border);
}

/* 深色主题下 service-icon */
.theme-dark .service-icon {
    background: var(--bg-alt);
    border-color: var(--border);
}

/* 深色主题下 service-list li::before */
.theme-dark .service-list li::before {
    color: var(--primary);
}

/* 深色主题下 testimonial-card */
.theme-dark .testimonial-card {
    background: var(--bg-alt);
    border-color: var(--border);
}

/* 深色主题下 testimonial-name */
.theme-dark .testimonial-name {
    color: var(--primary);
}

/* 深色主题下 faq-item */
.theme-dark .faq-item {
    background: var(--bg-alt);
    border-color: var(--border);
}

/* 深色主题下 faq-question */
.theme-dark .faq-question {
    color: var(--text);
}

/* 深色主题下 faq-answer */
.theme-dark .faq-answer {
    color: var(--text-light);
}

/* 深色主题下 step */
.theme-dark .step {
    background: var(--bg-alt);
    border-color: var(--border);
}

/* 深色主题下 step-num */
.theme-dark .step-num {
    background: var(--primary);
    color: #fff;
}

/* 深色主题下 step-title */
.theme-dark .step-title {
    color: var(--text);
}

/* 深色主题下 step-desc */
.theme-dark .step-desc {
    color: var(--text-light);
}

/* 深色主题下 contact-form-wrapper */
.theme-dark .contact-form-wrapper {
    background: var(--bg-alt);
    border-color: var(--border);
}

/* 深色主题下 footer */
.theme-dark .footer {
    background: var(--bg);
    border-top-color: var(--border);
}

.theme-dark .footer-title {
    color: var(--text);
}

.theme-dark .footer-text {
    color: var(--text-light);
}

.theme-dark .footer-link {
    color: var(--text-light);
}

.theme-dark .footer-link:hover {
    color: var(--primary);
}

/* 深色主题下 back-to-top */
.theme-dark .back-to-top {
    background: var(--primary);
    color: #fff;
}

.theme-dark .back-to-top:hover {
    background: var(--primary-dark);
}

/* 深色主题下 theme-switcher */
.theme-dark .theme-switcher-btn {
    background: var(--bg);
    color: var(--primary);
    border-color: var(--border);
}

.theme-dark .theme-switcher-panel {
    background: var(--bg);
    border-color: var(--border);
}

.theme-dark .theme-switcher-title {
    color: var(--text);
    border-bottom-color: var(--border);
}

.theme-dark .theme-option-label {
    color: var(--text);
}

/* 深色主题下 nav-tool-btn */
.theme-dark .nav-tool-btn.btn-query,
.theme-dark .nav-tool-btn.btn-verify {
    color: #fff;
}

/* 深色主题下 nav-tool-btn hover */
.theme-dark .nav-tool-btn.btn-query:hover {
    box-shadow: 0 4px 12px rgba(91, 138, 245, 0.3);
}

.theme-dark .nav-tool-btn.btn-verify:hover {
    box-shadow: 0 4px 12px rgba(91, 138, 245, 0.3);
}

/* 深色主题下 mobile-nav */
.theme-dark .mobile-nav {
    background: var(--bg);
    border-bottom-color: var(--border);
}

.theme-dark .mobile-nav-item {
    color: var(--text);
}

.theme-dark .mobile-nav-item:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* 深色主题下按钮 */
.theme-dark .btn-outline {
    color: var(--text);
    border-color: var(--border);
}

.theme-dark .btn-outline:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    color: var(--primary);
}

/* 深色主题下主按钮 hover 阴影 */
.theme-dark .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(91, 138, 245, 0.3);
}

/* 深色主题下暖橙按钮 hover 阴影 */
.theme-warm .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(232, 115, 26, 0.3);
}

.btn-full {
    width: 100%;
}

/* ===== 头部 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    width: auto;
    height: 48px;
    object-fit: contain;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(13, 79, 124, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 48px;
}

.logo-name {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.logo-en {
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--text-light);
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 40px;
    flex-shrink: 0;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 8px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary);
}

.nav .top-btn-link {
    color: var(--accent);
    font-weight: 600;
}

.nav .top-btn-link:hover {
    color: var(--accent-dark, #1a7a6e);
}

.nav a:hover::after {
    transform: scaleX(1);
}

/* 导航工具按钮区 */
.nav-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-tool-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.nav-tool-btn .nav-tool-icon {
    font-size: 16px;
}

.nav-tool-btn .nav-tool-text {
    letter-spacing: 0.5px;
}

.nav-tool-btn.btn-query {
    background: linear-gradient(135deg, #1a7a6e, #14a085);
    color: #fff;
}

.nav-tool-btn.btn-query:hover {
    background: linear-gradient(135deg, #14a085, #1a7a6e);
    box-shadow: 0 4px 12px rgba(26, 122, 110, 0.3);
}

.nav-tool-btn.btn-verify {
    background: linear-gradient(135deg, #0d4f7c, #1a7a6e);
    color: #fff;
}

.nav-tool-btn.btn-verify:hover {
    background: linear-gradient(135deg, #1a7a6e, #0d4f7c);
    box-shadow: 0 4px 12px rgba(13, 79, 124, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* 深色主题下菜单按钮 - 用主色确保可见 */
.theme-dark .mobile-menu-btn {
    border-color: var(--primary);
}

.theme-dark .mobile-menu-btn span {
    background: var(--primary);
}

.theme-dark .mobile-menu-btn:hover {
    border-color: var(--primary-light);
}

/* 暖橙主题下菜单按钮 */
.theme-warm .mobile-menu-btn {
    border-color: var(--primary);
}

.theme-warm .mobile-menu-btn span {
    background: var(--primary);
}

.theme-warm .mobile-menu-btn:hover {
    border-color: var(--primary-light);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    gap: 6px;
    z-index: 999;
    overflow-x: hidden;
    box-sizing: border-box;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-item {
    padding: 7px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-nav-item:hover {
    background: var(--accent-light);
    color: var(--primary);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,79,124,0.45) 0%, rgba(26,122,110,0.45) 100%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-cta .btn {
    min-width: 160px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
}

.hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
    line-height: 1.8;
}

/* ===== 核心简介 ===== */
.intro {
    background: var(--bg-alt);
}
.intro-inner {
    max-width: 900px;
    margin: 0 auto;
}
.intro-text {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.9;
}
.intro-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* ===== 核心优势 ===== */
.advantages {
    background: #fff;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.advantage-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.advantage-icon {
    font-size: 36px;
    margin-bottom: 16px;
}
.advantage-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.advantage-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== 服务优势列表 ===== */
.service-advantages {
    background: var(--bg-alt);
}
.advantages-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.adv-item {
    display: flex;
    gap: 16px;
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.adv-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}
.adv-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.adv-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.adv-content p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== 资质能力卡片 ===== */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.capability-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.capability-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.capability-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== 合作案例 ===== */
.cases {
    background: #fff;
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.case-card {
    text-align: center;
    padding: 20px 12px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.case-card:hover {
    transform: translateY(-4px);
    background: var(--accent-light);
}
.case-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.case-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.case-card p {
    font-size: 12px;
    color: var(--text-light);
}
.case-summary {
    text-align: center;
    padding: 20px;
    background: var(--accent-light);
    border-radius: var(--radius);
}
.case-summary p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
}
.case-summary strong {
    color: var(--primary);
}

/* ===== 服务承诺 ===== */
.service-commitment {
    margin-top: 24px;
    padding: 20px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    text-align: center;
}
.service-commitment h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.service-commitment p {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== 通用 Section ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: var(--accent-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== 服务卡片 ===== */
.services {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--accent-light);
    border-radius: 16px;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.service-list li {
    font-size: 13px;
    color: var(--text);
    padding-left: 16px;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ===== 关于我们 ===== */
.about-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.3;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* 关于我们 - 6 图网格画廊 */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 12px;
    width: 100%;
}

.about-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    opacity: 0.9;
    display: block;
}

.about-gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    z-index: 1;
    opacity: 1;
}

/* 图片放大查看模态框 */
#image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

#image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-caption {
    color: #fff;
    font-size: 16px;
    margin-top: 12px;
    text-align: center;
    max-width: 80%;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 0;
}

.image-modal-close:hover {
    opacity: 1;
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 16px 20px;
    border-radius: 8px;
    transition: background 0.2s;
    line-height: 1;
}

.image-modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-modal-prev {
    left: -60px;
}

.image-modal-next {
    right: -60px;
}

.about-content .section-tag {
    margin-bottom: 12px;
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-text {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.9;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.highlight-item:hover {
    background: #d4ece6;
    transform: translateX(8px);
}

.highlight-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.highlight-item strong {
    display: block;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 2px;
}

.highlight-item span {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== 资质认证 ===== */
.certifications {
    background: var(--bg-alt);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cert-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cert-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.cert-card:hover::after {
    transform: scaleX(1);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.cert-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: 50%;
}

.cert-icon-img {
    width: 400px;
    height: 240px;
    object-fit: contain;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    transition: var(--transition);
}

.cert-icon-img:hover {
    transform: scale(1.05);
}

.cert-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.cert-card p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.cert-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== 服务流程 ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -16px;
    font-size: 24px;
    color: var(--accent);
    transform: translateY(-50%);
}

.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(13, 79, 124, 0.3);
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== 联系我们 ===== */
.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact .section-tag {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.contact .section-title {
    color: #fff;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
    width: 100%;
}

/* 联系信息跨两列显示 */
.contact-info {
    grid-column: 1 / -1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 14px;
    opacity: 0.85;
}

.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-alt);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 79, 124, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-icon {
    background: rgba(255,255,255,0.15);
}

.footer-logo span {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    color: #fff;
}

.footer-col p {
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
}

.footer-icp {
    margin-top: 8px;
    font-size: 11px;
    opacity: 0.5;
}

.footer-icp a {
    color: inherit;
    text-decoration: none;
}

.footer-icp a:hover {
    text-decoration: underline;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ===== 悬浮功能按钮 ===== */
.floating-buttons {
    position: fixed;
    right: 30px;
    top: 100px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

/* 深色主题下浮动按钮组背景 */
.theme-dark .floating-btn-row {
    background: rgba(26, 32, 44, 0.9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.floating-btn-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
    white-space: nowrap;
}

.floating-btn-row .floating-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 20px;
}

.floating-btn-row .floating-btn-icon {
    font-size: 16px;
}
.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    background: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.floating-btn:hover {
    transform: translateX(-4px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* 暖橙主题下浮动按钮 hover */
.theme-warm .floating-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 深空主题下浮动按钮 hover */
.theme-dark .floating-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}
.floating-btn-icon {
    font-size: 18px;
    line-height: 1;
}
.floating-btn-text {
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* 报告查询 - 使用主题主色渐变 */
.btn-query {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
}
.btn-query:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
}

/* 报告核验 - 使用主题深色渐变 */
.btn-verify {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.btn-verify:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps .step:not(:last-child)::after {
        display: none;
    }
    
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .nav-tools {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo-name {
        font-size: 16px;
    }
    
    .logo-en {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    .logo-img {
        width: 36px;
        height: 36px;
    }
    
    .footer-logo .logo-img {
        width: 28px;
        height: 28px;
    }
    
    .hero-title {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-list {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .case-card {
        padding: 16px 10px;
    }
    
    .case-icon {
        font-size: 24px;
    }
    
    .about-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .image-modal-nav {
        padding: 12px 16px;
        font-size: 24px;
    }
    
    .image-modal-prev {
        left: -40px;
    }
    
    .image-modal-next {
        right: -40px;
    }
    
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-wrapper {
        padding: 24px 18px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    /* 证书卡片图片缩小 */
    .cert-icon-img {
        width: 200px;
        height: 120px;
    }
    
    /* 证书网格单列 */
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    /* 关于我们画廊 1 列 */
    .about-gallery {
        grid-template-columns: 1fr;
    }
    
    /* 服务卡片单列 */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* 关于我们单列 */
    .about-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image::before {
        display: none;
    }
    
    /* 证书卡片缩小 */
    .cert-card {
        padding: 20px 14px;
    }
    
    /* 流程步骤单列 */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    /* 联系表单 */
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-wrapper {
        padding: 20px 16px;
    }
    
    /* 页脚单列 */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 联系信息手机端单列 */
    .contact-details {
        grid-template-columns: 1fr !important;
    }
    
    /* 返回顶部按钮 */
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    /* 悬浮按钮 */
    .floating-buttons {
        right: 10px;
        top: 160px;
    }
    
    .floating-buttons .floating-btn {
        width: 40px;
        height: 40px;
    }
    
    .floating-buttons .floating-btn-icon {
        font-size: 16px;
    }
    
    .floating-btn-label {
        display: none;
    }
    
    .floating-btn-row {
        padding: 6px 10px;
    }
    
    /* Hero 区域 */
    .hero {
        padding: 80px 12px 50px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    /* 区块标题 */
    .section-title {
        font-size: 20px;
    }
    
    /* 案例卡片 */
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .case-card {
        padding: 14px 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 15px 60px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .service-card {
        padding: 24px 20px;
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
    
    .cert-card {
        padding: 20px 14px;
    }
    
    .cert-icon {
        font-size: 28px;
        width: 52px;
        height: 52px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 配色方案切换器 ===== */
.theme-switcher {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

.theme-switcher-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    background: var(--bg);
    color: var(--primary);
    border: 2px solid var(--border);
}

.theme-switcher-btn:hover {
    transform: scale(1.1);
}

.theme-switcher-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    display: none;
}

.theme-switcher-panel.open {
    display: block;
    animation: themePanelFade 0.2s ease;
}

@keyframes themePanelFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.theme-switcher-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 6px;
}

.theme-option:hover {
    background: var(--bg-alt);
}

.theme-option.active {
    background: var(--accent-light);
}

.theme-color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.theme-option-label {
    font-size: 13px;
    color: var(--text);
    flex: 1;
}

.theme-option-key {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
}
