/* ============================================================
   智迪科技 - 新版视觉（现代科技企业风）
   保留全部原有类名与 JS 依赖，仅升级视觉层
   ============================================================ */

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary: #2f7cf6;
    --primary-dark: #1447d0;
    --secondary: #19c8a8;
    --accent: #ff9f29;
    --dark: #0f172a;
    --ink: #1e293b;
    --muted: #64748b;
    --light: #f6f8fc;
    --white: #ffffff;
    --grad-main: linear-gradient(135deg, #2f7cf6 0%, #19c8a8 100%);
    --grad-dark: linear-gradient(135deg, #0b1226 0%, #101c3a 55%, #0e2a3a 100%);
    --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --header-height: 96px;
}

html {
    font-size: clamp(14px, 1.6vw, 16px);
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

@media (max-width: 768px) {
    html { font-size: 14px; scroll-padding-top: 80px; }
    header .left a:active, header .right a:active { transition: none; }
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    color: var(--ink);
    background: var(--light);
    overflow-x: hidden;
    position: relative;
    padding-bottom: calc(20px + var(--safe-bottom));
}

a, button { touch-action: manipulation; cursor: pointer; }
a, img { -webkit-user-select: none; user-select: none; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 6px;
}

/* ---------- 顶部滚动进度条 ---------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--grad-main);
    z-index: 2000;
    box-shadow: 0 0 12px rgba(47, 124, 246, 0.6);
}

/* ====== Header 导航 ====== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    padding: 10px;
    cursor: pointer;
    z-index: 1002;
}

header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 2px 20px rgba(15, 23, 42, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
}

header.hidden { transform: translateY(-100%); }

header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.10);
}

header .con {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1002;
    margin-left: -10px;
}

.logo img {
    height: 110px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(47, 124, 246, 0.25));
}

header a {
    color: var(--ink);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
    position: relative;
    padding: 8px 4px;
    letter-spacing: 0.6px;
}

header .left, header .right { display: flex; gap: 42px; }

@media (min-width: 769px) {
    header a { color: var(--ink); font-weight: 500; font-size: 16px; position: relative; padding: 6px 0; }
    header a::after {
        content: '';
        position: absolute;
        bottom: 0; left: 50%;
        width: 0; height: 2.5px;
        background: var(--grad-main);
        border-radius: 2px;
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }
    header a:hover::after { width: 100%; }
    header a:hover { color: var(--primary); }
}

/* ====== Banner（深色科技感） ====== */
.banner {
    width: 100%;
    min-height: min(100vh, 920px);
    position: relative;
    overflow: hidden;
    background: url('/zhidikeji/images/beijing/hai.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    padding-top: calc(60px + var(--safe-top, 0px));
    padding-bottom: calc(60px + var(--safe-bottom, 0px));
}

/* 深色渐变蒙版 + 光效 */
.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 500px at 20% 10%, rgba(47, 124, 246, 0.45), transparent 60%),
        radial-gradient(900px 480px at 85% 85%, rgba(25, 200, 168, 0.35), transparent 60%),
        linear-gradient(180deg, rgba(6, 12, 28, 0.72) 0%, rgba(8, 15, 34, 0.55) 50%, rgba(6, 12, 28, 0.82) 100%);
    z-index: 0;
    pointer-events: none;
}

/* 细网格纹理（科技感） */
.banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
    z-index: 1;
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 880px;
    width: 100%;
}

.banner-content.visible { opacity: 1; transform: translateY(0); }

.banner .slogan {
    font-size: clamp(34px, 5.2vw, 60px);
    color: #fff;
    font-weight: 800;
    margin-bottom: 22px;
    line-height: 1.18;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    letter-spacing: 0.5px;
}

.banner .subtitle {
    font-size: clamp(17px, 2.4vw, 23px);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    margin-bottom: 42px;
    line-height: 1.7;
    padding: 0 12px;
    letter-spacing: 0.4px;
}

.banner .sanjiao {
    display: inline-flex;
    width: 62px;
    height: 62px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    text-decoration: none;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    animation: bounce 2s infinite;
    margin: 30px auto 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.banner .sanjiao:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.06); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* ====== 核心数据统计 ====== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    margin: -40px auto 70px;
    max-width: 1200px;
    padding: 0 24px;
    position: relative;
    z-index: 5;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-container.visible { opacity: 1; transform: translateY(0); }

.stat-item {
    text-align: center;
    padding: 34px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(30px);
    opacity: 0;
    border: 1px solid rgba(47, 124, 246, 0.10);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-main);
}

.stat-item.visible { transform: translateY(0); opacity: 1; }
.stat-item:active { transform: scale(0.98); }

.stat-number {
    display: block;
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 800;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ====== 内容区域 ====== */
.content {
    padding: 40px 0 90px;
    background: var(--light);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    margin-bottom: 110px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible { opacity: 1; transform: translateY(0); }

/* 标题：带装饰线 + 渐变 */
.section h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    color: var(--dark);
    margin-bottom: 52px;
    padding-bottom: 16px;
    font-weight: 800;
    position: relative;
    display: inline-block;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 4px;
    border-radius: 3px;
    background: var(--grad-main);
    box-shadow: 0 3px 12px rgba(47, 124, 246, 0.4);
}

/* ====== 公司概况 ====== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 42px 36px;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(40px);
    opacity: 0;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-top: 4px solid var(--primary);
}

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

.about-card.visible { transform: translateY(0); opacity: 1; }

.about-card h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card h3 i { font-size: 24px; color: var(--primary); }
.about-card p { color: var(--muted); line-height: 1.8; font-size: 15px; margin-bottom: 15px; }

/* ====== 核心价值 ====== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 42px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(40px);
    opacity: 0;
    border: 1px solid rgba(15, 23, 42, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 200px at 50% 0%, rgba(47, 124, 246, 0.10), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(47, 124, 246, 0.25);
}
.feature-card:hover::after { opacity: 1; }

.feature-card.visible { transform: translateY(0); opacity: 1; }
.feature-card:active { transform: scale(0.98); }

.feature-icon {
    font-size: 46px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(47, 124, 246, 0.12), rgba(25, 200, 168, 0.12));
    border: 1px solid rgba(47, 124, 246, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-4deg);
    background: var(--grad-main);
    box-shadow: 0 10px 24px rgba(47, 124, 246, 0.35);
}

.feature-card h3 { font-size: 20px; margin-bottom: 14px; color: var(--dark); font-weight: 700; }
.feature-card p { color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* ====== 业务模式 ====== */
.business-model {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--grad-dark);
    border-radius: var(--radius-lg);
    padding: 56px 44px;
    box-shadow: var(--shadow-lg);
    margin: 50px 0;
    overflow: hidden;
    position: relative;
}

.business-model::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 15% 20%, rgba(47, 124, 246, 0.3), transparent 60%),
        radial-gradient(600px 300px at 85% 80%, rgba(25, 200, 168, 0.25), transparent 60%);
    pointer-events: none;
}

.business-model.visible { opacity: 1; transform: scale(1); }

.model-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.model-icon {
    font-size: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    margin-bottom: 18px;
    transition: all 0.4s;
}

.model-step:hover .model-icon {
    background: var(--grad-main);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(47, 124, 246, 0.4);
}

.model-step h4 { color: #fff; font-size: 20px; margin-bottom: 8px; font-weight: 700; }
.model-step p { color: rgba(255, 255, 255, 0.7); font-size: 14px; }

.model-arrow {
    position: absolute;
    color: rgba(255, 255, 255, 0.5);
    font-size: 30px;
    z-index: 2;
    animation: pulse-arrow 1.8s infinite;
}

@keyframes pulse-arrow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ====== 资质荣誉 ====== */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.honor-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(30px);
    opacity: 0;
    border: 1px solid rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}

.honor-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-main);
    opacity: 0;
    transition: opacity 0.4s;
}

.honor-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.honor-item:hover::before { opacity: 1; }

.honor-item.visible { transform: translateY(0); opacity: 1; }

.honor-icon {
    font-size: 34px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(47, 124, 246, 0.10), rgba(25, 200, 168, 0.10));
    border: 1px solid rgba(47, 124, 246, 0.12);
    transition: all 0.4s;
}

.honor-item:hover .honor-icon {
    background: var(--grad-main);
    box-shadow: 0 8px 20px rgba(47, 124, 246, 0.3);
}

.honor-item h4 { font-size: 18px; margin-bottom: 10px; color: var(--dark); font-weight: 700; }
.honor-item p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ====== 合作模式 ====== */
.cooperation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cooperation-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 42px 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(60px);
    opacity: 0;
    border: 1px solid rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cooperation-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--grad-main);
}

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

.cooperation-card:nth-child(2) { transform: translateY(60px); }
.cooperation-card:nth-child(3) { transform: translateX(-60px); }
.cooperation-card.visible { transform: translate(0) translateY(0); opacity: 1; }
.cooperation-card:active { transform: scale(0.98); }

.cooperation-card h3 { font-size: 22px; margin-bottom: 20px; color: var(--dark); font-weight: 700; }
.cooperation-card > p { color: var(--muted); margin-bottom: 24px; line-height: 1.7; font-size: 15px; }

.cooperation-card ul { list-style: none; margin: 20px 0; padding-left: 0; }

.cooperation-card li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.cooperation-card li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    background: linear-gradient(135deg, rgba(25, 200, 168, 0.12), rgba(47, 124, 246, 0.12));
    color: var(--secondary);
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    flex-shrink: 0;
    margin-top: 4px;
}

.cooperation-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.3s;
}

.cooperation-card a:hover { gap: 12px; color: var(--secondary); }

/* ====== 技术优势 ====== */
.tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 26px;
}

.tech-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-40px);
    opacity: 0;
    cursor: pointer;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.tech-item:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-md);
    border-color: rgba(47, 124, 246, 0.2);
}

.tech-item.visible { transform: translateX(0) translateY(0); opacity: 1; }
.tech-item:active { transform: scale(0.98); }

.tech-icon {
    font-size: 28px;
    background: linear-gradient(135deg, rgba(47, 124, 246, 0.12), rgba(25, 200, 168, 0.12));
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(47, 124, 246, 0.12);
    transition: all 0.5s ease;
}

.tech-item:hover .tech-icon {
    background: var(--grad-main);
    box-shadow: 0 8px 20px rgba(47, 124, 246, 0.3);
}

.tech-content h4 { font-size: 18px; margin-bottom: 10px; color: var(--dark); font-weight: 700; }
.tech-content p { color: var(--muted); line-height: 1.7; font-size: 14px; }

/* ====== 联系我们 ====== */
.contact-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(47, 124, 246, 0.12);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-main);
}

.contact-info.visible { opacity: 1; transform: scale(1); }
.contact-info h3 { font-size: 32px; margin-bottom: 30px; color: var(--dark); font-weight: 800; }

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    text-align: center;
    padding: 26px 20px;
    background: linear-gradient(135deg, rgba(47, 124, 246, 0.05), rgba(25, 200, 168, 0.05));
    border-radius: var(--radius-md);
    border: 1px solid rgba(47, 124, 246, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: var(--grad-main);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(47, 124, 246, 0.3);
}
.contact-item:hover h4, .contact-item:hover p { color: #fff; }

.contact-item:active { transform: scale(0.98); }

.contact-icon { font-size: 36px; margin-bottom: 15px; display: inline-block; }
.contact-item h4 { font-size: 18px; margin-bottom: 8px; color: var(--dark); transition: color 0.3s; }
.contact-item p { color: var(--muted); margin-top: 5px; font-size: 14px; line-height: 1.5; transition: color 0.3s; }

/* ====== Footer ====== */
footer {
    background: var(--grad-dark);
    color: #fff;
    padding: 56px 0 34px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-bottom: calc(34px + var(--safe-bottom, 0px));
}

footer.visible { opacity: 1; transform: translateY(0); }

footer .foot { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

footer .foot a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 24px;
    padding: 14px 34px;
    background: var(--grad-main);
    border-radius: 40px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    border: none;
    outline: none;
    box-shadow: 0 10px 28px rgba(47, 124, 246, 0.35);
}

footer .foot a:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(47, 124, 246, 0.45); }

footer .foot a.beian-link {
    background: none !important;
    color: rgba(255, 255, 255, 0.65) !important;
    padding: 0 !important;
    margin: 0 4px !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: normal !important;
    display: inline !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    box-shadow: none !important;
}

footer .foot a.beian-link:hover { color: rgba(255, 255, 255, 0.9) !important; }

.safe-area-bottom { height: var(--safe-bottom, 0px); width: 100%; background: var(--dark); }

/* ====== 返回顶部 ====== */
.back-to-top {
    position: fixed;
    bottom: calc(24px + var(--safe-bottom));
    right: 24px;
    width: 52px;
    height: 52px;
    background: var(--grad-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 28px rgba(47, 124, 246, 0.4);
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px) scale(1.05); }
.back-to-top:active { transform: scale(0.9); }

.pull-to-refresh { text-align: center; padding: 15px; color: var(--muted); font-size: 14px; display: none; }

img, video, svg, picture { max-width: 100%; height: auto; display: block; }

/* ====== 证书展示 ====== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.cert-box {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.cert-carousel {
    display: flex;
    gap: 18px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.cert-carousel::-webkit-scrollbar { display: none; }

.cert-link {
    flex: 0 0 auto;
    width: 100%;
    max-width: 640px;
    height: 360px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ====== 移动端适配（保留原逻辑） ====== */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }

    header .con { height: 72px; }

    .logo { margin-left: 0; }
    .logo img { height: 84px; }

    header .left, header .right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 340px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 90px 24px 30px;
        gap: 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(15, 23, 42, 0.12);
        z-index: 1005;
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
    }

    header .right { top: auto; bottom: 0; height: auto; padding-top: 10px; }

    header.menu-open .left { right: 0; display: flex !important; }
    header.menu-open .right { display: flex !important; }

    header .left a, header .right a {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        font-weight: 500;
        color: var(--dark);
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
        width: 100%;
    }

    header .right a { color: var(--primary); font-weight: 600; }

    header .left, header .right { display: none; }
    header.menu-open .left { right: 0; display: flex !important; }
    header.menu-open .right { display: flex !important; }

    body.menu-open { overflow: hidden; position: fixed; width: 100%; height: 100%; }
}

@media (min-width: 769px) {
    .mobile-menu-toggle { display: none !important; }
    .mobile-menu-overlay { display: none !important; }
    header .left, header .right {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        padding: 0;
        box-shadow: none;
        flex-direction: row;
        gap: 42px;
        opacity: 1 !important;
        visibility: visible !important;
    }
    header .right { border-top: none; margin-top: 0; }
    header .left li, header .right li { opacity: 1 !important; transform: none !important; width: auto; }
    header .left a, header .right a { border-bottom: none; padding: 8px 0; }
}

.mobile-menu-overlay {
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

header .left, header .right { z-index: 1005; }

header.menu-open .mobile-menu-overlay {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}
header.menu-open .left { z-index: 1006; }

[id] { scroll-margin-top: calc(var(--header-height) + 12px); }

:root { --safe-bottom: env(safe-area-inset-bottom, 0px); }

body { padding-bottom: calc(20px + var(--safe-bottom)); }

.contact-info { padding-bottom: calc(40px + var(--safe-bottom)); box-sizing: border-box; }

footer { padding-bottom: calc(30px + var(--safe-bottom)); }

.back-to-top { bottom: calc(20px + var(--safe-bottom)); }

@media (max-width: 480px) {
    .contact-info { padding-bottom: calc(60px + var(--safe-bottom)); }
    body { padding-bottom: calc(28px + var(--safe-bottom)); }
}

.contact-info {
    background: var(--white);
    padding: 12px 0 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: 12px;
    overflow: visible;
}

.contact-carousel {
    display: flex;
    gap: 16px;
    padding: 12px 18px;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.contact-carousel::-webkit-scrollbar { display: none; }

.contact-card {
    flex: 0 0 auto;
    width: 320px;
    height: 160px;
    background: linear-gradient(135deg, #fff, #f8faff);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(47, 124, 246, 0.2);
}

.contact-meta h4 { margin: 0 0 6px; font-size: 18px; color: var(--dark); }
.contact-meta p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; }

@media (max-width: 480px) {
    .contact-card { width: 260px; height: 140px; padding: 10px; }
    .contact-meta h4 { font-size: 16px; }
    .contact-meta p { font-size: 14px; }
}

/* 响应式微调 */
@media (max-width: 768px) {
    .stats-container { margin-top: -20px; gap: 14px; }
    .business-model { flex-direction: column; gap: 28px; padding: 40px 24px; }
    .model-arrow { transform: rotate(90deg); }
    .contact-details { grid-template-columns: 1fr; gap: 16px; }
    .certs-grid { grid-template-columns: 1fr; }
    .section { margin-bottom: 80px; }
}


/* ============================================================
   智迪科技 v2 - 高级版视觉增强
   在 v1 基础上叠加：编号标题、浮动光斑、玻璃拟态、光晕跟随
   ============================================================ */

/* ---------- 更深邃的配色 ---------- */
:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #22d3ee;
    --accent: #fbbf24;
    --ink: #0f172a;
    --muted: #64748b;
    --grad-main: linear-gradient(135deg, #3b82f6 0%, #22d3ee 50%, #2dd4bf 100%);
    --grad-dark: linear-gradient(160deg, #050b1a 0%, #0b1a3a 45%, #0a2433 100%);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.55);
}

/* ---------- 背景网格纹理（全页） ---------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: -1;
}

/* ====== Header：更精致的毛玻璃 ====== */
header {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 32px rgba(15, 23, 42, 0.06);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(26px) saturate(200%);
    -webkit-backdrop-filter: blur(26px) saturate(200%);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 12px 40px rgba(15, 23, 42, 0.10);
}

/* ====== Hero：浮动光斑 + 玻璃叠层 ====== */
.banner {
    min-height: min(100vh, 960px);
}

.banner::before {
    background:
        radial-gradient(900px 420px at 15% 15%, rgba(59, 130, 246, 0.55), transparent 62%),
        radial-gradient(760px 400px at 82% 30%, rgba(34, 211, 238, 0.45), transparent 60%),
        radial-gradient(700px 380px at 65% 85%, rgba(45, 212, 191, 0.35), transparent 62%),
        linear-gradient(180deg, rgba(3, 8, 22, 0.78) 0%, rgba(5, 12, 30, 0.60) 45%, rgba(3, 8, 22, 0.88) 100%);
    animation: bannerGlow 10s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    0% { opacity: 0.85; }
    100% { opacity: 1; }
}

/* 浮动光斑（banner 内新增元素，见 HTML） */
.banner .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
    animation: floatOrb 14s ease-in-out infinite;
}

.banner .orb.o1 {
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.7), transparent 70%);
    top: 12%; left: 8%;
}

.banner .orb.o2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.65), transparent 70%);
    bottom: 18%; right: 12%;
    animation-delay: -5s;
}

.banner .orb.o3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.6), transparent 70%);
    top: 55%; left: 55%;
    animation-delay: -9s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -24px) scale(1.08); }
    66% { transform: translate(-20px, 18px) scale(0.94); }
}

/* Hero 标题：渐变 + 光晕 */
.banner .slogan {
    font-size: clamp(36px, 5.6vw, 64px);
    background: linear-gradient(120deg, #ffffff 20%, #bfe3ff 50%, #9ff0e6 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 4px 30px rgba(59, 130, 246, 0.35));
    letter-spacing: 1px;
}

/* Hero 副标题：更优雅 */
.banner .subtitle {
    font-size: clamp(17px, 2.2vw, 21px);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 48px;
}

/* ====== 统计卡片：玻璃拟态 ====== */
.stats-container { margin-top: -56px; }

.stat-item {
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
    border-radius: 28px;
}

.stat-item::before {
    height: 4px;
    background: var(--grad-main);
    border-radius: 0 0 12px 12px;
}

/* ====== 编号标题系统 ====== */
.content .section { counter-increment: sec; }

.section h2 {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: clamp(30px, 3.6vw, 42px);
    letter-spacing: 1px;
    padding-bottom: 0;
    border-bottom: none;
}

/* 编号 */
.section h2::before {
    content: "0" counter(sec);
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 700;
    letter-spacing: 1px;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Inter", "SF Pro Display", sans-serif;
    padding: 8px 14px;
    border: 1.5px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    line-height: 1;
    flex-shrink: 0;
}

/* 英文小字 */
.section h2::after {
    content: attr(data-en);
    font-size: clamp(12px, 1.1vw, 14px);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #94a3b8, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: static;
    width: auto;
    height: auto;
    box-shadow: none;
    order: 3;
    padding-left: 6px;
}

/* 渐变下划线 */
.section h2 .title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.35), transparent);
    border-radius: 2px;
    order: 4;
    max-width: 200px;
}

/* ====== 卡片：悬浮光晕跟随 ====== */
.feature-card, .about-card, .honor-item, .cooperation-card, .tech-item, .cert-box, .contact-card {
    position: relative;
    overflow: hidden;
}

/* 光晕层 */
.feature-card .glow, .about-card .glow, .honor-item .glow,
.cooperation-card .glow, .tech-item .glow, .cert-box .glow, .contact-card .glow {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 65%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.feature-card:hover .glow, .about-card:hover .glow, .honor-item:hover .glow,
.cooperation-card:hover .glow, .tech-item:hover .glow, .cert-box:hover .glow, .contact-card:hover .glow {
    opacity: 1;
}

/* 卡片内容提升层级 */
.feature-card > *, .about-card > *, .honor-item > *,
.cooperation-card > *, .tech-item > *, .cert-box > *, .contact-card > * {
    position: relative;
    z-index: 1;
}

/* 悬浮微倾斜 */
.feature-card:hover, .about-card:hover {
    transform: translateY(-10px) perspective(900px) rotateX(2deg);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

/* ====== 业务模式：深色玻璃 ====== */
.business-model {
    background: linear-gradient(160deg, rgba(8, 16, 36, 0.95), rgba(10, 30, 48, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}

.business-model::before {
    background:
        radial-gradient(500px 260px at 20% 15%, rgba(59, 130, 246, 0.35), transparent 65%),
        radial-gradient(500px 260px at 80% 85%, rgba(34, 211, 238, 0.3), transparent 65%);
}

.model-step { position: relative; z-index: 1; }

/* ====== Footer 更精致 ====== */
footer {
    background: linear-gradient(160deg, #050b1a 0%, #0b1a3a 60%, #0a2433 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer .foot a {
    background: var(--grad-main);
    box-shadow: 0 12px 36px rgba(59, 130, 246, 0.4);
    letter-spacing: 1px;
}

/* ====== 移动端适配 ====== */
@media (max-width: 768px) {
    .section h2 { flex-wrap: wrap; gap: 10px; }
    .section h2 .title-line { display: none; }
    .banner .orb { opacity: 0.35; }
    .stats-container { margin-top: -24px; }
}



/* 联系卡片轮播：内容不超宽时整体居中，超宽时可横向滚动 */
.contact-carousel {
    justify-content: center;
}

@media (max-width: 768px) {
    .contact-carousel {
        justify-content: flex-start;
    }
}


/* ============================================================
   数据统计卡片 - 高级版
   ============================================================ */
.stat-item {
    background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(240,247,255,0.75));
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(59, 130, 246, 0.06);
    padding: 40px 24px 34px;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 220%; height: 100%;
    background: linear-gradient(100deg, transparent 30%, rgba(59, 130, 246, 0.08) 45%, rgba(34, 211, 238, 0.12) 50%, transparent 65%);
    transform: translateX(-30%);
    transition: transform 0.9s ease;
    z-index: 0;
    pointer-events: none;
}

.stat-item:hover::before {
    transform: translateX(30%);
}

.stat-item::after {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3.5px;
    background: var(--grad-main);
    border-radius: 0 0 10px 10px;
    opacity: 0.9;
    box-shadow: 0 2px 14px rgba(59, 130, 246, 0.5);
}

.stat-item .stat-orb {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(44px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent 70%);
    bottom: -30px; right: -30px;
    transition: opacity 0.5s, transform 0.8s;
}

.stat-item:nth-child(2) .stat-orb {
    background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 70%);
    bottom: auto; top: -30px; left: -30px;
}

.stat-item:nth-child(3) .stat-orb {
    background: radial-gradient(circle, rgba(45, 212, 191, 0.5), transparent 70%);
    top: -24px; right: -24px; bottom: auto;
}

.stat-item:nth-child(4) .stat-orb {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.45), transparent 70%);
    bottom: -24px; left: -24px;
}

.stat-item:hover .stat-orb {
    opacity: 0.6;
    transform: scale(1.25);
}

.stat-icon {
    width: 52px;
    height: 52px;
    padding: 12px;
    margin: 0 auto 18px;
    display: block;
    color: #fff;
    background: var(--grad-main);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(59, 130, 246, 0.35);
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}

.stat-item:hover .stat-icon {
    transform: translateY(-4px) rotate(-6deg) scale(1.06);
    box-shadow: 0 16px 36px rgba(59, 130, 246, 0.45);
}

.stat-number {
    display: block;
    font-size: clamp(40px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 40%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 14px rgba(59, 130, 246, 0.22));
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: #475569;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stat-label::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--grad-main);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}


/* ============================================================
   顶部 Logo - 高级版
   ============================================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    margin-left: -6px;
}

/* Logo 图片容器 */
.logo .logo-img {
    height: 92px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    border-radius: 24px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s ease, box-shadow 0.5s ease;
    will-change: transform;
}

/* 图片底下的光晕环 */
.logo .logo-halo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 92px;
    height: 92px;
    border-radius: 24px;
    background: var(--grad-main);
    opacity: 0;
    filter: blur(18px);
    z-index: 1;
    transition: opacity 0.5s ease, transform 0.6s ease;
    pointer-events: none;
}

/* 文字区 */
.logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    position: relative;
    z-index: 2;
}

.logo .logo-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(120deg, #0f172a 0%, #1d4ed8 45%, #22d3ee 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.8s ease, transform 0.4s ease;
}

.logo .logo-en {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 5px;
    color: #94a3b8;
    text-transform: uppercase;
    margin-top: 4px;
    transition: color 0.4s ease, letter-spacing 0.5s ease;
    font-family: "Inter", "SF Pro Display", sans-serif;
}

/* ====== Hover 动效 ====== */

/* 整体悬浮 */
.logo:hover .logo-img {
    transform: translateY(-3px) rotate(-6deg) scale(1.08);
    box-shadow: 0 16px 36px rgba(59, 130, 246, 0.4);
}

/* 光晕环显现 + 脉冲 */
.logo:hover .logo-halo {
    opacity: 0.55;
    animation: haloPulse 2s ease-in-out infinite;
}

@keyframes haloPulse {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.45; }
    50% { transform: translateY(-50%) scale(1.15); opacity: 0.65; }
}

/* 文字渐变流动 */
.logo:hover .logo-name {
    background-position: 100% 0;
    transform: translateX(2px);
}

/* 英文展开 + 变色 */
.logo:hover .logo-en {
    color: #3b82f6;
    letter-spacing: 6px;
}

/* 点击反馈 */
.logo:active .logo-img {
    transform: scale(0.94);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .logo .logo-img, .logo .logo-halo {
        height: 72px;
        width: 72px;
        border-radius: 18px;
    }
    .logo .logo-halo { width: 72px; height: 72px; }
    .logo .logo-name { font-size: 20px; letter-spacing: 2px; }
    .logo .logo-en { font-size: 8px; letter-spacing: 3px; }
    .logo .logo-text { display: none; }
}


/* ============================================================
   手机端专属优化（≤768px）
   ============================================================ */
@media (max-width: 768px) {

    /* 禁止横向溢出 */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Banner：降低高度，内容垂直居中更紧凑 */
    .banner {
        min-height: 78vh;
        padding-top: calc(70px + var(--safe-top, 0px));
    }
    .banner .slogan {
        font-size: clamp(28px, 7.5vw, 38px);
        letter-spacing: 0.5px;
        margin-bottom: 14px;
    }
    .banner .subtitle {
        font-size: clamp(14px, 3.8vw, 17px);
        letter-spacing: 1px;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    .banner .sanjiao {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* Banner 光斑：缩小 + 限制在容器内 */
    .banner .orb {
        filter: blur(50px);
        opacity: 0.3;
    }
    .banner .orb.o1 { width: 200px; height: 200px; top: 8%; left: -40px; }
    .banner .orb.o2 { width: 160px; height: 160px; bottom: 12%; right: -30px; }
    .banner .orb.o3 { width: 120px; height: 120px; top: 50%; left: 40%; }

    /* 统计卡片：两列布局，更紧凑 */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: -32px;
        padding: 0 14px;
    }
    .stat-item {
        padding: 22px 12px 20px;
        border-radius: 20px;
    }
    .stat-icon {
        width: 42px;
        height: 42px;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 12px;
    }
    .stat-number {
        font-size: clamp(30px, 8vw, 40px);
        margin-bottom: 2px;
    }
    .stat-label {
        font-size: 12px;
        letter-spacing: 1px;
        gap: 5px;
    }
    .stat-item .stat-orb { width: 80px; height: 80px; filter: blur(30px); }

    /* 内容区间距 */
    .content { padding: 20px 0 60px; }
    .container { padding: 0 16px; }
    .section { margin-bottom: 60px; }

    /* Section 标题：更紧凑 */
    .section h2 {
        font-size: 22px;
        gap: 10px;
        margin-bottom: 30px;
        letter-spacing: 0.5px;
    }
    .section h2::before {
        font-size: 13px;
        padding: 6px 10px;
        border-radius: 8px;
    }
    .section h2::after {
        font-size: 10px;
        letter-spacing: 2px;
        padding-left: 0;
    }

    /* 卡片通用：更小内边距、圆角 */
    .about-card, .feature-card, .honor-item, .cooperation-card, .tech-item {
        padding: 24px 20px;
        border-radius: 18px;
    }
    .about-card h3, .cooperation-card h3 { font-size: 18px; margin-bottom: 14px; }
    .about-card p, .cooperation-card p, .feature-card p { font-size: 14px; line-height: 1.65; }
    .feature-card { padding: 28px 20px; }
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        border-radius: 16px;
        margin-bottom: 14px;
    }
    .feature-card h3 { font-size: 17px; }

    /* 业务模式：箭头改竖直 */
    .business-model { padding: 30px 18px; gap: 20px; }
    .model-icon {
        width: 64px;
        height: 64px;
        font-size: 30px;
        margin-bottom: 10px;
    }
    .model-step h4 { font-size: 16px; }
    .model-step p { font-size: 13px; }

    /* 证书卡片：缩窄适配手机 */
    .certs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cert-box { padding: 12px; border-radius: 14px; }
    .cert-link {
        height: 260px;
        max-width: 100%;
        border-radius: 8px;
    }

    /* 案例 */
    .case-item { border-radius: 16px; }
    .case-carousel img { border-radius: 10px; }

    /* 合作卡片 */
    .cooperation-card ul { margin: 12px 0; }
    .cooperation-card li { font-size: 14px; padding: 8px 0; }
    .cooperation-card a { font-size: 14px; }

    /* 联系卡片 */
    .contact-card {
        width: 240px;
        height: 130px;
        padding: 10px;
    }
    .contact-meta h4 { font-size: 16px; }
    .contact-meta p { font-size: 13px; }

    /* 技术优势 */
    .tech-item { padding: 20px 16px; gap: 14px; }
    .tech-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        border-radius: 12px;
    }
    .tech-content h4 { font-size: 16px; }
    .tech-content p { font-size: 13px; }

    /* 返回顶部按钮 */
    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 20px;
        bottom: calc(16px + var(--safe-bottom));
        right: 16px;
    }

    /* Footer */
    footer { padding: 40px 0 26px; }
    footer .foot a { padding: 12px 26px; font-size: 15px; margin-bottom: 18px; }
}

/* 超小屏（≤400px）进一步适配 */
@media (max-width: 400px) {
    .banner { min-height: 72vh; }
    .stat-item { padding: 18px 10px 16px; }
    .stat-icon { width: 36px; height: 36px; padding: 8px; }
    .cert-link { height: 220px; }
    .contact-card { width: 210px; height: 120px; }
}


/* ============================================================
   移动端导航菜单 - Bug 修复（最终优先）
   ============================================================ */
@media (max-width: 768px) {

    /* 遮罩：铺满全屏 */
    .mobile-menu-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1000;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s;
    }
    header.menu-open .mobile-menu-overlay {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
    }

    /* 三条杠按钮：固定在 header 右侧 */
    .mobile-menu-toggle {
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
        z-index: 1002;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 12px;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
        color: var(--dark);
        padding: 0;
        cursor: pointer;
    }

    /* header.con 保持 logo 在左，按钮绝对定位在右 */
    header .con {
        position: relative;
        padding: 0 16px;
    }

    /* 导航列表：右侧抽屉 */
    header .left,
    header .right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: calc(var(--header-height) + 20px) 24px 30px;
        margin: 0;
        gap: 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -12px 0 40px rgba(15, 23, 42, 0.15);
        z-index: 1005;
        overflow-y: auto;
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    /* 右侧"商务合作"链接放在抽屉底部 */
    header .right {
        top: auto;
        bottom: 0;
        height: auto;
        padding-top: 0;
        padding-bottom: calc(24px + var(--safe-bottom, 0px));
        border-top: 1px solid rgba(15, 23, 42, 0.06);
    }

    header.menu-open .left { right: 0; }
    header.menu-open .right { right: 0; }

    /* 链接样式 */
    header .left a,
    header .right a {
        display: block;
        padding: 15px 4px;
        font-size: 17px;
        font-weight: 500;
        color: var(--dark);
        border-bottom: 1px solid rgba(15, 23, 42, 0.05);
        width: 100%;
        text-align: left;
    }
    header .right a {
        color: var(--primary);
        font-weight: 600;
        border-bottom: none;
    }
}


/* ============================================================
   移动端修复 2：轮播滑动 + 侧边栏点击效果
   ============================================================ */

/* 1. 修复：在横向轮播上垂直滑动时页面无法滚动 */
.cert-carousel,
.contact-carousel,
.case-carousel {
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

@media (max-width: 768px) {
    .cert-carousel,
    .contact-carousel,
    .case-carousel {
        touch-action: pan-y;
    }
}

/* 2. 侧边栏菜单项：点击效果 */
@media (max-width: 768px) {
    header .left a,
    header .right a {
        position: relative;
        transition: background 0.2s ease, padding-left 0.25s ease, color 0.2s ease;
        border-radius: 12px;
        margin: 2px 0;
    }

    /* 点击/按压效果 */
    header .left a:active,
    header .right a:active {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(34, 211, 238, 0.08));
        color: var(--primary);
        padding-left: 12px;
        transform: scale(0.98);
    }

    /* 触摸结束恢复 */
    header .left a,
    header .right a {
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.15);
    }

    /* 箭头指示器（点击后微移动） */
    header .left a::after {
        content: '›';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        color: var(--primary);
        opacity: 0;
        transition: opacity 0.25s ease, right 0.25s ease;
        background: none;
        width: auto;
        height: auto;
        border-radius: 0;
    }
    header .left a:active::after {
        opacity: 1;
        right: 8px;
    }
}

/* 3. 菜单打开时禁止 body 滚动（已有，但确保优先级） */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}
