/* ============================================
   内蒙古蔚蓝云创科技有限公司官网 - 主样式表
   Mobile-first 响应式设计
   ============================================ */

/* ---- CSS Variables (Dark Tech Theme) ---- */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: rgba(99, 102, 241, 0.16);
    --color-accent: #22d3ee;
    --color-wework: #07c160;
    --color-secondary: #a855f7;

    --border-color: var(--border);
    --transition: all 0.25s ease;

    --bg-body: #070b16;
    --bg-card: rgba(255, 255, 255, 0.045);
    --bg-light: #0e1424;
    --bg-hover: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-dark: #0a0f1e;

    --text-primary: #eef2fb;
    --text-secondary: #aab4c8;
    --text-muted: #6b7689;
    --text-inverse: #070b16;

    --border: rgba(255, 255, 255, 0.09);
    --border-light: rgba(255, 255, 255, 0.06);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);

    --glass-bg: rgba(255, 255, 255, 0.045);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glow-primary: 0 0 0 1px rgba(99, 102, 241, 0.45), 0 10px 36px rgba(99, 102, 241, 0.28);
    --gradient-brand: linear-gradient(120deg, #818cf8 0%, #22d3ee 100%);
    --gradient-brand-soft: linear-gradient(120deg, rgba(129,140,248,0.16) 0%, rgba(34,211,238,0.16) 100%);

    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

    --container-max: 1200px;
    --header-height: 64px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: var(--bg-body);
    min-height: 100%;
    overflow-x: hidden;
}
#contact { scroll-margin-top: 80px; }

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: transparent;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    z-index: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

/* ---- Tech background layers (grid + aurora glow) ---- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
    pointer-events: none;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60% 50% at 12% 8%, rgba(129, 140, 248, 0.18), transparent 60%),
        radial-gradient(55% 45% at 88% 12%, rgba(34, 211, 238, 0.14), transparent 60%),
        radial-gradient(50% 45% at 70% 95%, rgba(168, 85, 247, 0.12), transparent 60%);
    pointer-events: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--color-primary); }

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

ul, ol { list-style: none; }

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--gradient-brand);
    color: #07111f;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
    color: #07111f;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.45);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border-color: var(--glass-border);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    color: var(--color-accent);
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 8px 24px rgba(34, 211, 238, 0.18);
}

.btn-wework {
    background: var(--color-wework);
    color: #fff;
    border-color: var(--color-wework);
}
.btn-wework:hover { background: #06ad56; color: #fff; }

.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* ---- Section ---- */
.section {
    padding: 3rem 0;
}
@media (min-width: 768px) { .section { padding: 5rem 0; } }

.bg-light { background: var(--bg-light); }

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.gradient-text,
.section-header h2 {
    background: linear-gradient(120deg, #a5b4fc 0%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.section-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}
@media (min-width: 768px) {
    .section-header h2 { font-size: 2rem; }
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

/* ---- Page Hero ---- */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20rem;
}
.page-hero .container { width: 100%; }
.page-hero-sm {
    padding: 5rem 0;
}
.page-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.page-hero p {
    font-size: 1.05rem;
    opacity: 0.9;
}
@media (min-width: 768px) {
    .page-hero { padding: 7rem 0; min-height: 24rem; }
    .page-hero-sm { padding: 7rem 0; }
    .page-hero h1 { font-size: 2.5rem; }
}

/* 服务独立页 Hero（图标 + 标题 + 行动按钮，横向排布） */
.svc-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    /*max-width: 840px;*/
    margin: 0 auto;
}
.svc-hero-icon {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.svc-hero-body h1 { margin-bottom: 0.5rem; }
.svc-hero-body p { opacity: 0.92; max-width: 620px; }
.svc-hero-actions { margin-top: 1.25rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.svc-hero .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}
.svc-hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* 富化 Hero 通用元素：eyebrow / 高亮标签 / CTA */
.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1.1rem;
}
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.6rem;
}
.page-hero .hero-chips { justify-content: center; }
.svc-hero .hero-chips { justify-content: flex-start; }
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
}
a.hero-chip:hover { background: rgba(255, 255, 255, 0.22); border-color: #fff; }
.hero-chip strong { font-weight: 700; }
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}
.page-hero .hero-cta { justify-content: center; }
.page-hero .hero-cta .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}
.page-hero .hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* ====== 线性 SVG 图标（替代 emoji，去除 AI 生成痕迹） ====== */
.icon {
    width: 1.25em;
    height: 1.25em;
    display: inline-block;
    vertical-align: -0.18em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hero-chip .icon { width: 1.05em; height: 1.05em; vertical-align: -0.12em; }
.wb-badge .icon { width: 1.05em; height: 1.05em; vertical-align: -0.12em; margin-right: 0.15em; }
.svc-hero-icon .icon { width: 42px; height: 42px; stroke: #fff; }
.service-icon .icon { width: 40px; height: 40px; color: var(--color-primary); margin-bottom: 0.75rem; }
.industry-icon .icon { width: 42px; height: 42px; color: var(--color-primary); margin-bottom: 0.85rem; }
.result-icon .icon { width: 34px; height: 34px; color: var(--color-primary); margin-bottom: 0.6rem; }
.why-icon .icon { width: 38px; height: 38px; color: var(--color-primary); margin-bottom: 0.75rem; }
.contact-icon .icon { width: 28px; height: 28px; color: var(--color-primary); margin-bottom: 0.5rem; }
.wb-cap-icon .icon { width: 40px; height: 40px; color: var(--color-primary); margin-bottom: 0.75rem; }
.svc-sub-icon .icon { width: 30px; height: 30px; color: var(--color-primary); margin-bottom: 0.5rem; }
.case-img-placeholder .icon { width: 40px; height: 40px; opacity: 0.5; }
.article-list-meta .icon { width: 0.95em; height: 0.95em; vertical-align: -0.1em; opacity: 0.7; }
.wb-value-icon .icon { width: 26px; height: 26px; color: var(--color-primary); margin-right: 0; }
.wb-scene-icon .icon { width: 34px; height: 34px; color: var(--color-primary); margin-bottom: 0.6rem; }
.sd-icon .icon { width: 40px; height: 40px; color: var(--color-primary); margin-bottom: 0.75rem; }
.wb-feature .icon { width: 1.1em; height: 1.1em; vertical-align: -0.18em; color: var(--color-primary); margin-right: 0.4rem; }
.footer-badge .icon { width: 1.05em; height: 1.05em; vertical-align: -0.12em; margin-right: 0.2em; }
.consult-icon .icon { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
.wb-cap-icon .icon, .contact-icon .icon, .industry-icon .icon, .service-icon .icon,
.result-icon .icon, .why-icon .icon, .svc-sub-icon .icon { color: var(--color-primary); }
.msg-avatar svg, .msg-avatar .icon { width: 20px; height: 20px; }
.svc-hero .hero-cta { justify-content: flex-start; }
#contactForm { scroll-margin-top: 84px; }
@media (max-width: 640px) {
    .svc-hero {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .svc-hero-body p { margin: 0 auto; }
    .svc-hero-actions { justify-content: center; }
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.6); }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 11, 22, 0.72);
    border-bottom: 1px solid var(--glass-border);
    height: var(--header-height);
    display: flex;
    align-items: center;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}
.logo:hover { color: var(--color-primary); }
.logo-icon { 
    color: var(--color-primary); 
    font-size: 1.5rem; 
}
.logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .logo-img { height: 34px; }
    .logo-text { font-size: 0.95rem; }
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}
.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0.62rem;
    font-size: 0.86rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.nav-cta {
    background: var(--color-primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--color-primary-dark) !important; }

.has-submenu { position: relative; }
.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.35rem;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.55;
    transition: transform 0.2s, opacity 0.2s;
}
.has-submenu:hover > a .caret,
.has-submenu > a[aria-expanded="true"] .caret { transform: rotate(180deg); opacity: 1; }

.submenu {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 172px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.375rem;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
/* 下拉框顶部三角箭头，明确指向父级菜单 */
.submenu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--border);
}
.submenu::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--bg-card);
    margin-bottom: -1px;
}
/* 透明悬停桥：填充导航与下拉框之间的 10px 间隙，避免鼠标移入中断 */
.has-submenu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 8px;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.submenu li { margin: 0; }
.submenu a {
    display: block;
    padding: 0.45rem 0.9rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
}
.submenu a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.submenu a.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
    font-weight: 600;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 1023px) {
    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-body);
        padding: 1rem;
        overflow-y: auto;
        z-index: 99;
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    .submenu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border);
        margin: 0.25rem 0 0.5rem 0.5rem;
        padding: 0.25rem 0 0.25rem 0.75rem;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
    }
    .submenu::before,
    .submenu::after,
    .has-submenu::after { display: none; }
    .has-submenu:hover .submenu { transform: none; }
    .mobile-menu-toggle { display: flex; }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero { position: relative; overflow: hidden; }

.hero-carousel { position: relative; }
.hero-slide {
    display: none;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slide.active { display: block; }
@media (min-width: 768px) { .hero-slide { min-height: 520px; } }
@media (min-width: 1024px) { .hero-slide { min-height: 600px; } }

.hero-overlay {
    background: linear-gradient(135deg, rgba(30,41,59,0.85) 0%, rgba(30,41,59,0.6) 100%);
    min-height: inherit;
    display: flex;
    align-items: center;
}
.hero-overlay .container { text-align: center; }

.hero-default {
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    padding: 5rem 0;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20rem;
}
.hero-default .container { width: 100%; }
@media (min-width: 768px) { .hero-default { padding: 7rem 0; min-height: 24rem; } }

.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    background: linear-gradient(120deg, #c7d2fe 0%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 1rem;
}
.hero-title span { color: var(--color-accent); display: block; font-size: 1.1rem; font-weight: 500; margin-top: 0.5rem; }
.hero-desc { font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { font-size: 0.95rem; padding: 0.7rem 1.5rem; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* Hero 内的授权代理标识入口（叠加在首屏，不替换主文案） */
.hero-agency { margin-top: 1.5rem; font-size: 0.9rem; color: rgba(255,255,255,0.9); }
.hero-agency a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.hero-agency a:hover { opacity: 0.85; }

@media (min-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-title span { font-size: 1.3rem; }
    .hero-desc { font-size: 1.1rem; }
}

/* Carousel controls */
.carousel-prev, .carousel-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); color: #fff; border: none;
    width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem;
    cursor: pointer; transition: background 0.2s; z-index: 5;
}
.carousel-prev:hover, .carousel-next:hover { background: rgba(255,255,255,0.4); }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }
.carousel-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.2s; }
.dot.active { background: #fff; width: 24px; border-radius: 5px; }

/* ==========================================
   SERVICE CARDS
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
    display: block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient-brand);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glow-primary);
    border-color: transparent;
    color: var(--text-primary);
}
.service-card:hover::before { opacity: 1; }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.service-tags { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; }

.card-highlight {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);
}
.card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

/* WorkBuddy 企业版 服务入口（核心服务下方） */
.wb-service-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    margin-top: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.25s, box-shadow 0.25s;
}
.wb-service-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-lg);
}
.wb-banner-icon {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    background: var(--color-primary-light);
    border-radius: var(--radius-lg);
}
.wb-banner-body { flex: 1 1 auto; min-width: 0; }
.wb-banner-body h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}
.wb-badge-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}
.wb-banner-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 0.5rem;
}
.wb-banner-tags {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.wb-banner-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    transition: background 0.2s;
}
.wb-service-banner:hover .wb-banner-cta { background: var(--color-primary-dark); }
@media (max-width: 768px) {
    .wb-service-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        text-align: left;
    }
    .wb-banner-cta { align-self: stretch; justify-content: center; }
}

/* ==========================================
   LLM PREVIEW SECTION
   ========================================== */
.llm-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 768px) {
    .llm-preview-grid { grid-template-columns: 1fr 1fr; }
}

.llm-preview-content h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.llm-preview-content > p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.llm-features { margin-bottom: 1.5rem; }
.llm-features li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.llm-preview-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.llm-demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.llm-demo-header {
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}
.llm-demo-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.demo-msg {
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    line-height: 1.5;
}
.demo-msg.user {
    background: var(--bg-hover);
    align-self: flex-end;
    max-width: 85%;
}
.demo-msg.ai {
    background: var(--color-primary-light);
    max-width: 90%;
}

/* ==========================================
   CASES GRID
   ========================================== */
.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .cases-grid { grid-template-columns: repeat(3, 1fr); }
}

.case-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    color: var(--text-primary);
    text-decoration: none;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}
.case-img {
    position: relative;
    height: 180px;
    background: var(--bg-hover);
    overflow: hidden;
}
.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.case-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: var(--text-muted);
}
.case-cat {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}
.case-info { padding: 1rem; }
.case-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.case-info > p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.case-client { font-size: 0.8rem; color: var(--text-muted); }
.case-tech-tags { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* ==========================================
   ARTICLES
   ========================================== */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

.article-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    color: var(--text-primary);
    text-decoration: none;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
}
.article-img {
    height: 160px;
    overflow: hidden;
}
.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-info { padding: 1rem; }
.article-cat {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}
.article-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.article-info > p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.article-info time { font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================
   WEWORK CTA
   ========================================== */
.wework-cta-section {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    color: #fff;
}
.wework-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.wework-cta-content h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.wework-cta-content p { opacity: 0.9; margin-bottom: 1.5rem; font-size: 1rem; }
.wework-cta-qr { text-align: center; }
.wework-cta-qr img { border-radius: var(--radius-md); border: 3px solid #fff; }
.wework-cta-qr p { margin-top: 0.5rem; font-size: 0.85rem; opacity: 0.85; }

/* ==========================================
   FILTER BAR
   ========================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}
.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.filter-count { font-size: 0.8rem; opacity: 0.7; }

/* ==========================================
   PAGINATION
   ========================================== */
.pagination { margin-top: 2rem; display: flex; justify-content: center; }
.pagination ul { display: flex; gap: 0.25rem; align-items: center; }
.pagination li { list-style: none; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 0.5rem;
    border-radius: var(--radius-sm); font-size: 0.9rem;
    border: 1px solid var(--border); color: var(--text-secondary);
    text-decoration: none; transition: all 0.2s;
}
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination span.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination span.disabled { opacity: 0.4; cursor: not-allowed; }
.pagination span.ellipsis { border: none; }

/* ==========================================
   ARTICLES LIST PAGE
   ========================================== */
.articles-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .articles-layout { grid-template-columns: 1fr 280px; }
}

.article-list-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
}
@media (min-width: 640px) {
    .article-list-item { flex-direction: row; }
}
.article-list-img {
    flex-shrink: 0;
    width: 100%;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
}
@media (min-width: 640px) {
    .article-list-img { width: 200px; height: 140px; }
}
.article-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-list-body h2 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.article-list-body h2 a { color: var(--text-primary); }
.article-list-body h2 a:hover { color: var(--color-primary); }
.article-list-body > p { font-size: 0.9rem; color: var(--text-secondary); }
.article-list-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.articles-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* Sidebar Widget */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}
.sidebar-widget h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.sidebar-cta { text-align: center; background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.sidebar-cta h3 { border-bottom-color: rgba(255,255,255,0.2); }
.sidebar-cta .btn { margin-top: 0.75rem; }

.popular-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.popular-list li:last-child { border-bottom: none; }
.popular-list a { color: var(--text-primary); flex: 1; }
.popular-list a:hover { color: var(--color-primary); }
.popular-views { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }

/* ==========================================
   CASE DETAIL
   ========================================== */
.case-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .case-detail-layout { grid-template-columns: 1fr 280px; }
}

.case-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.85;
}
.case-cat-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
}
.case-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.case-cover img { width: 100%; }
.case-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
}
.case-body img { border-radius: var(--radius-md); margin: 1rem 0; }
.case-body p { margin-bottom: 1rem; }
.case-body h2, .case-body h3 { margin: 1.5rem 0 0.75rem; }
.case-tech-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.case-tech-section h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }

.related-list { display: flex; flex-direction: column; gap: 0.75rem; }
.related-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: var(--text-primary);
}
.related-item:hover { color: var(--color-primary); }
.related-item img {
    width: 60px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0;
}
.related-item h4 { font-size: 0.85rem; font-weight: 500; margin-bottom: 0.2rem; }

/* ==========================================
   ARTICLE DETAIL
   ========================================== */
.article-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .article-detail-layout { grid-template-columns: 1fr 280px; }
}
.article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.85;
}
.article-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.article-cover img { width: 100%; }
.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
}
.article-body img { border-radius: var(--radius-md); margin: 1rem 0; max-width: 100%; }
.article-body p { margin-bottom: 1rem; }
.article-body h2, .article-body h3 { margin: 1.5rem 0 0.75rem; }
.article-body pre { background: var(--bg-hover); border-radius: var(--radius-md); padding: 1rem; overflow-x: auto; font-size: 0.9rem; margin: 1rem 0; }
.article-body code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-hover); padding: 0.1rem 0.3rem; border-radius: 3px; }
.article-body pre code { background: none; padding: 0; }
.article-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    color: var(--text-secondary);
    margin: 1rem 0;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; font-size: 0.9rem; }
.article-body th { background: var(--bg-hover); font-weight: 600; }

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-content { max-width: 800px; margin: 0 auto; }
.about-intro h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.about-intro p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 1rem; line-height: 1.8; }

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
@media (min-width: 640px) {
    .about-highlights { grid-template-columns: repeat(4, 1fr); }
}
.highlight-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.highlight-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}
.highlight-label { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.25rem; display: block; }

/* Timeline */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--bg-light);
}
.timeline-year {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.timeline-content h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.timeline-content p { font-size: 0.9rem; color: var(--text-secondary); }

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .team-grid { grid-template-columns: repeat(4, 1fr); }
}
.team-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.team-avatar { font-size: 3rem; margin-bottom: 0.75rem; }
.team-card h3 { font-size: 1rem; font-weight: 600; }
.team-role { font-size: 0.8rem; color: var(--color-primary); display: block; margin-bottom: 0.5rem; }
.team-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* Honors */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 640px) {
    .honors-grid { grid-template-columns: repeat(4, 1fr); }
}
.honor-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.honor-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0.85rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
}
.honor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.honor-item h3 { font-size: 0.9rem; color: var(--text-secondary); }

/* ==========================================
   行业方案页 (SOLUTIONS)
   ========================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.why-item {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.why-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.why-item p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}
.industry-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}
.industry-icon { font-size: 2.25rem; margin-bottom: 0.85rem; }
.industry-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.industry-card > p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.industry-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.industry-card .btn { margin-top: auto; }

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.result-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.result-icon { font-size: 1.75rem; margin-bottom: 0.6rem; }
.result-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.result-card > p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.result-metric { padding-top: 1rem; border-top: 1px dashed var(--border); }
.result-metric strong { display: block; font-size: 1.1rem; color: var(--color-primary); }
.result-metric span { font-size: 0.8rem; color: var(--text-secondary); }

.compare-table-wrap { overflow-x: auto; }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: 0.9rem;
}
.compare-table th, .compare-table td {
    padding: 0.9rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.compare-table thead th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td:first-child { font-weight: 600; color: var(--text-primary); }
.compare-table tbody td:nth-child(2) { color: var(--color-primary); }

.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    list-style: none;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--color-primary);
    line-height: 1;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 1.25rem 1rem; color: var(--text-secondary); line-height: 1.7; font-size: 0.9rem; }

.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    color: #fff;
}
.cta-inner { text-align: center; max-width: 720px; }
.cta-inner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-inner p { opacity: 0.92; margin-bottom: 1.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
    .why-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   SERVICES DETAIL PAGE
   ========================================== */
.services-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .services-detail-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
}
.service-detail-card .card-badge { position: absolute; top: 1rem; right: 1rem; }
.sd-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.service-detail-card h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.sd-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1rem; }
.sd-tech { margin-bottom: 1rem; }
.sd-tech h4, .sd-scenarios h4 { font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--text-secondary); }
.sd-scenarios ul { padding-left: 1.2rem; }
.sd-scenarios li { list-style: disc; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.3rem; }
.sd-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags span {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--bg-hover);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.mini-tag {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 0.7rem;
}

/* Service Detail Single Page */
.service-detail-layout { max-width: 1080px; margin: 0 auto; }
.sd-section { margin-bottom: 2rem; }
.sd-section h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.scenario-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); }
.scenario-num { color: var(--color-primary); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.scenario-item p { font-size: 0.85rem; color: var(--text-secondary); }
.features-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
.feature-item { padding: 0.5rem 0.75rem; background: var(--bg-hover); border-radius: var(--radius-md); font-size: 0.85rem; }

.sd-cta {
    text-align: center;
    padding: 2rem;
    background: var(--color-primary-light);
    border-radius: var(--radius-lg);
}
.sd-contact {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .05);
}
.sd-contact-header { margin-bottom: 1.5rem; }
.sd-contact h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.sd-contact-header > p,
.sd-contact > p { color: var(--text-secondary); margin-bottom: 0; font-size: 1rem; }

.sd-contact .form-group { margin-bottom: 1.25rem; }
.sd-contact .form-row { gap: 1rem; }
.sd-contact .form-row .form-group { margin-bottom: 0; }
.sd-contact .form-group label { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.5rem; }
.sd-contact .form-group input,
.sd-contact .form-group textarea {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.sd-contact .form-group input:focus,
.sd-contact .form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.sd-contact .form-group input::placeholder,
.sd-contact .form-group textarea::placeholder { color: var(--text-muted); }
.sd-contact .form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.sd-contact .form-privacy {
    font-size: 0.85rem;
    color: var(--text-muted);
}
@media (max-width: 480px) {
    .sd-contact { padding: 1.5rem; }
    .sd-contact .form-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .sd-contact .form-privacy { text-align: center; }
}

/* 服务页 - 富化内容样式 */
.svc-intro {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    max-width: 720px;
}
.svc-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.svc-sub-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-sub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    border-color: var(--color-primary-light);
}
.svc-sub-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}
.svc-sub-card h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}
.svc-sub-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.svc-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}
.svc-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-primary);
}
.svc-feature-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}
.svc-process {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
.svc-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.svc-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 800;
    border-radius: 12px;
    font-size: 0.95rem;
}
.svc-step-body h4 {
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}
.svc-step-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.svc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}
.svc-stat {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    color: #fff;
    border-radius: var(--radius-lg);
}
.svc-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}
.svc-stat-label {
    font-size: 0.82rem;
    opacity: 0.92;
    margin-top: 0.25rem;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .contact-layout { grid-template-columns: 360px 1fr; }
}

.contact-info-col { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: left;
    flex: 0 0 auto;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: all 0.25s ease;
}
.contact-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--glow-primary);
}
@media (min-width: 768px) {
    .contact-info-col { height: 100%; }
    .contact-card {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
.contact-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-card h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-value { font-size: 1rem; font-weight: 600; color: var(--color-primary); }
.contact-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.contact-qr { margin: 0.5rem 0; }
.contact-qr img { margin: 0; border-radius: var(--radius-md); }

.contact-form-col h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-form-col > p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Forms */
.contact-form { max-width: 100%; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.3rem; color: var(--text-primary); }
.required { color: #e53e3e; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.ajax-form button[type="submit"] { width: 100%; margin-top: 0.5rem; }

.map-container { border-radius: var(--radius-lg); overflow: hidden; }
.map-placeholder {
    background: var(--bg-hover);
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}
.map-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--bg-dark);
    color: #cbd5e1;
    padding: 3rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 0.9fr 0.9fr; }
}
.footer-col h3 { font-size: 1.1rem; color: #fff; margin-bottom: 1rem; }
.footer-col h4 { font-size: 0.95rem; color: #fff; margin-bottom: 0.75rem; }
.footer-col p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 0.75rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: #94a3b8;
    font-size: 0.85rem;
}
.footer-col ul a:hover { color: #fff; }
.footer-contact-info p { font-size: 0.85rem; }
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    width: fit-content;
}
.footer-qr { text-align: center; }
.footer-qr img { margin: 0 auto; border-radius: var(--radius-md); border: 2px solid rgba(255,255,255,0.1); }
.footer-qr p { font-size: 0.8rem; color: #94a3b8; margin-top: 0.4rem; }

.footer-bottom {
    margin-top: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}
.footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #64748b;
}
.footer-bottom a:hover { color: #fff; }

/* ==========================================
   FLOATING CONSULT
   ========================================== */
.floating-consult {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
}
@media (max-width: 640px) {
    .floating-consult { bottom: 5rem; right: 1rem; }
}
.consult-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(37,99,235,0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s;
    position: relative;
}
.consult-btn:hover { transform: scale(1.1); }
.consult-text { display: none; }

.consult-popup {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.consult-popup.open { display: block; }
.consult-popup-inner { padding: 1.25rem; position: relative; }
.popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.consult-popup-inner h4 { font-size: 1rem; margin-bottom: 1rem; }
.consult-form { display: flex; flex-direction: column; gap: 0.6rem; }
.consult-form input,
.consult-form select,
.consult-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--bg-input);
    color: var(--text-primary);
    outline: none;
}
.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
    border-color: var(--color-primary);
}
.consult-or {
    text-align: center;
    margin: 0.75rem 0;
    position: relative;
}
.consult-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border);
}
.consult-or span {
    position: relative;
    background: var(--bg-card);
    padding: 0 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   MOBILE STICKY BAR
   ========================================== */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    z-index: 90;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
}
@media (max-width: 640px) {
    .mobile-sticky-bar { display: grid; }
}
.sticky-item {
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--text-primary);
    transition: background 0.2s;
    white-space: nowrap;
}
.sticky-item:hover { background: var(--bg-hover); }
.sticky-phone { background: var(--color-primary); color: #fff; }
.sticky-phone:hover { background: var(--color-primary-dark); color: #fff; }
.sticky-wework { background: var(--color-wework); color: #fff; }
.sticky-wework:hover { background: #06ad56; color: #fff; }

/* ==========================================
   TOAST
   ========================================== */
.toast {
    display: none;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    z-index: 200;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
}
.toast.show { display: block; }
.toast.success { background: #16a34a; }
.toast.error { background: #dc2626; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==========================================
   ERROR PAGE
   ========================================== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}
.error-page h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.error-page p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==========================================
   EMPTY / LOADING STATES
   ========================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    grid-column: 1 / -1;
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.fade-in,
.slide-up,
.slide-left,
.slide-right {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-up { transform: translateY(30px); }
.slide-left { transform: translateX(-30px); }
.slide-right { transform: translateX(30px); }

.fade-in.visible,
.slide-up.visible,
.slide-left.visible,
.slide-right.visible {
    opacity: 1;
    transform: none;
}

/* 给主要区块自动添加动画类（仅在 JS 可用时隐藏，避免 JS 失败导致整块内容空白） */
html.js .section > .container > .section-header,
html.js .home-services .service-card,
html.js .home-cases .case-card,
html.js .team-grid .team-card,
html.js .about-highlights .highlight-item,
html.js .honors-grid .honor-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
html.js .section > .container > .section-header.visible,
html.js .home-services .service-card.visible,
html.js .home-cases .case-card.visible,
html.js .team-grid .team-card.visible,
html.js .about-highlights .highlight-item.visible,
html.js .honors-grid .honor-item.visible {
    opacity: 1;
    transform: none;
}

/*  stagger 延迟（手动在 HTML 里加 .delay-1 等） */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ==========================================
   CARD HOVER ENHANCEMENT
   ========================================== */
.service-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.case-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.case-card:hover .case-img img {
    transform: scale(1.05);
}
.case-img img {
    transition: transform 0.4s ease;
}

.article-list-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.team-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card {
    transition: transform 0.2s ease;
}
.stat-card:hover {
    transform: scale(1.02);
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 90;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: 5.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

/* ==========================================
   MOBILE MENU SMOOTH ANIMATION
   ========================================== */
@media (max-width: 1023px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 5rem 1.5rem 2rem;
        overflow-y: auto;
    }
    .main-nav.open {
        transform: translateX(0);
    }
    .main-nav::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s;
        z-index: -1;
    }
    .main-nav.open::before {
        opacity: 1;
        visibility: visible;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav li {
        border-bottom: 1px solid var(--border);
    }
    .main-nav a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
    }
    .submenu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .submenu::before,
    .submenu::after,
    .has-submenu::after { display: none; }
    .submenu a {
        font-size: 0.9rem;
        color: var(--text-secondary);
        padding: 0.5rem 0;
    }
    .mobile-menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Mobile navigation drawer and collapsible submenus */
.submenu-toggle,
.mobile-nav-backdrop { display: none; }

@media (max-width: 1023px) {
    body.mobile-nav-open { overflow: hidden; }
    body.mobile-nav-open .site-header { z-index: 1001; }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
        padding: 0;
        border: 0;
        background: rgba(15, 23, 42, 0.48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        transition: opacity .28s ease, visibility .28s ease;
    }
    .mobile-nav-backdrop.open {
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav {
        display: block;
        left: auto;
        right: 0;
        bottom: auto;
        width: min(86vw, 340px);
        height: 100vh;
        height: 100dvh;
        padding: 5.5rem 1rem 2rem;
        border-left: 1px solid rgba(148, 163, 184, .2);
        background: rgba(255, 255, 255, .98);
        box-shadow: -18px 0 50px rgba(15, 23, 42, .18);
        transform: translateX(105%);
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        max-width: 100%;
        z-index: 1000;
        transition: transform .32s cubic-bezier(.22, 1, .36, 1), visibility .32s;
    }
    .main-nav.open {
        display: block;
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
    .main-nav::before { display: none; }
    .main-nav > ul::before {
        content: '网站导航';
        display: block;
        padding: 0 .7rem .8rem;
        color: #64748b;
        font-size: .75rem;
        font-weight: 700;
        letter-spacing: .12em;
    }
    .main-nav > ul { gap: .25rem; }
    .main-nav > ul > li {
        position: relative;
        border: 0;
        border-radius: 12px;
        overflow: hidden;
    }
    .main-nav > ul > li > a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: .72rem 5rem .72rem .8rem;
        border-radius: 10px;
        color: #334155;
        font-size: .96rem;
        font-weight: 500;
        transition: color .18s ease, background .18s ease;
    }
    .main-nav > ul > li:not(.has-submenu) > a { padding-right: .8rem; }
    .main-nav > ul > li > a:hover,
    .main-nav > ul > li > a.active {
        color: #1a5fd6;
        background: linear-gradient(90deg, rgba(26,95,214,.09), rgba(0,212,255,.04));
    }
    .main-nav .caret { display: none; }

    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .38rem;
        position: absolute;
        top: 7px;
        right: 6px;
        z-index: 2;
        width: 66px;
        height: 34px;
        padding: 0;
        border: 0;
        border-radius: 9px;
        color: #64748b;
        background: rgba(148,163,184,.1);
        cursor: pointer;
        transition: color .18s ease, background .18s ease, transform .18s ease;
    }
    .submenu-toggle::before {
        content: '展开';
        font-size: .72rem;
        font-weight: 600;
    }
    .has-submenu.submenu-open .submenu-toggle::before { content: '收起'; }
    .submenu-toggle:hover { color: #1a5fd6; background: rgba(26,95,214,.1); }
    .submenu-toggle span {
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform .24s ease;
    }
    .has-submenu.submenu-open .submenu-toggle span { transform: translateY(2px) rotate(225deg); }

    .main-nav .submenu,
    .main-nav .has-submenu:hover .submenu,
    .main-nav .has-submenu:focus-within .submenu {
        display: grid;
        position: static;
        max-height: 0;
        margin: 0 .55rem;
        padding: 0 .35rem;
        border: 0;
        border-left: 2px solid rgba(26,95,214,.16);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transform: none;
        transition: max-height .28s ease, opacity .2s ease, padding .28s ease, margin .28s ease, visibility .2s;
    }
    .main-nav .has-submenu.submenu-open .submenu {
        max-height: 180px;
        margin-top: .15rem;
        margin-bottom: .5rem;
        padding-top: .2rem;
        padding-bottom: .2rem;
        opacity: 1;
        visibility: visible;
    }
    .main-nav .has-submenu.submenu-open {
        background: rgba(248,250,252,.86);
        box-shadow: inset 0 0 0 1px rgba(148,163,184,.12);
    }
    .main-nav .submenu li { border: 0; }
    .main-nav .submenu a {
        position: relative;
        padding: .62rem .75rem .62rem 1.45rem;
        border-radius: 8px;
        color: #64748b;
        font-size: .88rem;
    }
    .main-nav .submenu a::before {
        content: '';
        position: absolute;
        left: .72rem;
        top: 50%;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #94a3b8;
        transform: translateY(-50%);
    }
    .main-nav .submenu a:hover::before,
    .main-nav .submenu a.active::before { background: #1a5fd6; }

    .mobile-menu-toggle {
        position: relative;
        z-index: 1002;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        background: rgba(241,245,249,.9);
        transition: background .2s ease, box-shadow .2s ease;
    }
    .mobile-menu-toggle.open {
        background: #eef2ff;
        box-shadow: 0 0 0 1px rgba(99,102,241,.12);
    }
}

@media (min-width: 1024px) {
    .main-nav {
        position: static !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}

/* ==========================================
   HERO CAROUSEL ENHANCEMENT
   ========================================== */
.hero-slide {
    transition: opacity 0.8s ease;
}
.carousel-dots .dot {
    transition: background 0.3s ease, transform 0.2s ease;
}
.carousel-dots .dot:hover {
    transform: scale(1.3);
}
.carousel-next,
.carousel-prev {
    transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-next:hover,
.carousel-prev:hover {
    background: rgba(0,0,0,0.6);
    transform: scale(1.05);
}

/* ==========================================
   FRIENDLY 404 PAGE
   ========================================== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 2rem;
}
.error-page .error-code {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.error-page .error-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.error-page .error-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 400px;
}
.error-page .error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 767px) {
    .error-page .error-code {
        font-size: 5rem;
    }
    .error-page .error-title {
        font-size: 1.2rem;
    }
}

/* ==========================================
   SITE SEARCH (浮动按钮 + 面板)
   ========================================== */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 0.25rem;
    flex-shrink: 0;
}
.search-toggle:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.search-panel.open {
    opacity: 1;
    visibility: visible;
}
.search-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 90%;
    max-width: 560px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.search-panel.open .search-box {
    transform: translateY(0);
}
.search-box h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.search-box .form-input {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}
.search-results {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}
.search-result-item {
    display: block;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: background 0.15s;
    text-decoration: none;
    color: var(--text-primary);
}
.search-result-item:hover {
    background: var(--bg-light);
}
.search-result-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.search-result-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.search-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

@media (max-width: 1023px) {
    .search-toggle { display: none; }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* 跳转主内容链接：默认移出视口，键盘聚焦时滑入（WCAG 2.1 A） */
.skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    padding: 0.6rem 1.1rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md, 8px);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* 表单字段错误态：保留输入，仅以红框高亮 */
.input-error,
.input-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}

/* 屏幕阅读器专用 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* 减少动画（用户设置） */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto !important; }
    .fade-in,
    .slide-up,
    .slide-left,
    .slide-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================
   IMAGE LAZY LOADING (原生)
   仅在 JS 可用时启用淡入；无 JS 时图片直接可见，避免 opacity:0 导致图片消失
   ========================================== */
html.js img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}
html.js img[loading="lazy"].loaded {
    opacity: 1;
}

/* ==========================================
   WORKBUDDY 官方授权代理商专区
   ========================================== */
.workbuddy-agency-section {
    background: var(--bg-light);
}
.wb-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

/* 核心能力 */
.wb-capabilities {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
@media (min-width: 640px) {
    .wb-capabilities { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    /* WorkBuddy 独立页有 6 项能力，3 列形成整齐的 2×3 */
    .wb-capabilities { grid-template-columns: repeat(3, 1fr); }
}
/* 首页专区仅 4 项能力，桌面端单行 4 列更对称 */
@media (min-width: 1024px) {
    .workbuddy-agency-section .wb-capabilities { grid-template-columns: repeat(4, 1fr); }
}
.wb-cap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}
.wb-cap-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}
.wb-cap-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.wb-cap-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.wb-cap-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* 为什么选择 WorkBuddy 官方授权代理商 */
.wb-value {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) {
    .wb-value { padding: 3rem; gap: 2.5rem; }
}
.wb-value-intro { max-width: 760px; }
.wb-value-intro h3 { font-size: 1.5rem; margin-bottom: 1rem; line-height: 1.35; }
@media (min-width: 768px) {
    .wb-value-intro h3 { font-size: 1.75rem; }
}
.wb-value-intro p { color: var(--text-secondary); font-size: 1rem; line-height: 1.8; }
.wb-value-intro strong { color: var(--color-primary); }
.wb-value-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    list-style: none;
}
@media (min-width: 640px) {
    .wb-value-list { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
.wb-value-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.wb-value-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-color: rgba(59,130,246,0.25);
}
.wb-value-icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    font-size: 1.3rem;
}
.wb-value-list strong { display: block; font-size: 1rem; margin-bottom: 0.35rem; }
.wb-value-list p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* 定价参考 */
.wb-pricing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 760px;
    margin: 0 auto 1rem;
}
@media (min-width: 640px) {
    .wb-pricing { grid-template-columns: repeat(2, 1fr); }
}
.wb-price-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.wb-price-featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);
}
.wb-price-flag {
    position: absolute;
    top: 1.25rem; right: 0; transform: translateX(-50%);
    background: var(--color-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
}
.wb-price-name { font-size: 1.05rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.wb-price-num { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 1.25rem; }
.wb-cur { font-size: 1.2rem; vertical-align: super; margin-right: 0.1rem; }
.wb-unit { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); margin-left: 0.2rem; }
.wb-price-feats { list-style: none; margin-bottom: 1.5rem; text-align: left; flex: 1; }
.wb-price-feats li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.45rem 0 0.45rem 1.4rem;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}
.wb-price-feats li:last-child { border-bottom: none; }
.wb-price-feats li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}
.wb-price-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ====== WorkBuddy 企业版 独立页 ====== */
.wb-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20rem;
}
.wb-hero .container { width: 100%; }
@media (min-width: 768px) { .wb-hero { min-height: 24rem; } }
.wb-hero .wb-badge { background: rgba(255,255,255,0.15); color: #fff; }
.wb-hero h1 { font-size: 3rem; font-weight: 800; margin: 1rem 0 0.5rem; letter-spacing: -0.01em; }
.wb-hero-sub { font-size: 1.25rem; font-weight: 600; opacity: 0.95; margin-bottom: 1rem; }
.wb-hero-desc { max-width: 680px; margin: 0 auto 2rem; opacity: 0.9; line-height: 1.8; }
.wb-hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.wb-hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.wb-hero-actions .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* 概述 */
.wb-overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.wb-overview-text h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.wb-overview-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1rem; }
.wb-overview-text strong { color: var(--color-primary); }
.wb-overview-list { list-style: none; margin-top: 1rem; }
.wb-overview-list li { padding: 0.4rem 0; color: var(--text-secondary); }
.wb-overview-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.wb-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 1rem; text-align: center; }
.wb-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--color-primary); line-height: 1.1; }
.wb-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; }

/* badge 软版 */
.wb-badge-soft { background: rgba(79,70,229,0.1); color: var(--color-primary); display: inline-block; margin-bottom: 0.75rem; }

/* 特性网格 */
.wb-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.wb-feature { display: flex; align-items: center; gap: 0.6rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.1rem; font-size: 0.9rem; color: var(--text-primary); }
.wb-feature span { font-size: 1.2rem; }

/* 对比表 */
.wb-compare { margin-top: 2.5rem; overflow-x: auto; }
.wb-compare-table { width: 100%; border-collapse: collapse; min-width: 480px; background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; }
.wb-compare-table th, .wb-compare-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.wb-compare-table th { background: var(--bg-light); font-weight: 600; color: var(--text-primary); }
.wb-compare-table td:first-child { color: var(--text-secondary); }
.wb-compare-table tbody tr:last-child td { border-bottom: none; }

/* 场景 */
.wb-scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.wb-scene { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: transform 0.2s, box-shadow 0.2s; }
.wb-scene:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.wb-scene-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.wb-scene h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.wb-scene p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* FAQ */
.wb-faq { max-width: 820px; margin: 0 auto; }
.wb-faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 1.25rem; margin-bottom: 0.75rem; }
.wb-faq-item summary { cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--text-primary); list-style: none; position: relative; }
.wb-faq-item summary::-webkit-details-marker { display: none; }
.wb-faq-item summary::after { content: '+'; position: absolute; right: 0; font-size: 1.4rem; color: var(--color-primary); font-weight: 400; }
.wb-faq-item[open] summary::after { content: '\2212'; }
.wb-faq-item p { padding: 0 0 1rem; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* CTA */
.wb-cta { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); color: #fff; }
.wb-cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.wb-cta-inner h2 { font-size: 1.9rem; margin-bottom: 0.75rem; }
.wb-cta-inner p { opacity: 0.9; margin-bottom: 1.75rem; line-height: 1.7; }
.wb-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.wb-cta-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.wb-cta-actions .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* 响应式 */
@media (max-width: 992px) {
    .wb-overview { grid-template-columns: 1fr; }
    .wb-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .wb-scenes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .wb-hero { padding: 5rem 0; min-height: 20rem; }
    .wb-hero h1 { font-size: 2.1rem; }
    .wb-hero-sub { font-size: 1.05rem; }
    .wb-feature-grid { grid-template-columns: 1fr; }
    .wb-scenes { grid-template-columns: 1fr; }
}

/* 首页专区 / 详情页 次要链接 */
.wb-more-link { display: inline-block; margin-top: 1rem; color: var(--color-primary); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.wb-more-link:hover { text-decoration: underline; }

/* ==========================================
   首页即时通讯风格咨询弹窗
   ========================================== */
.chat-widget {
    position: fixed;
    right: 1.5rem;
    bottom: 6rem;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}
.chat-launcher {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border: none;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24); }
.chat-launcher .icon { width: 20px; height: 20px; color: #fff; }

/* 收起状态：仅显示正常气泡按钮 */
.chat-widget:not(.open) .chat-launcher { transform: none; }
/* 移动端由底部 Sticky 咨询条承载，避免重复入口 */
@media (max-width: 640px) {
    .chat-widget { display: none; }
}

.chat-panel {
    width: 340px;
    max-width: calc(100vw - 2rem);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    transform: translateY(16px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
}
.chat-widget.open .chat-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    color: #fff;
}
.chat-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}
.chat-header-info { display: flex; flex-direction: column; line-height: 1.35; }
.chat-header-info strong { font-size: 0.95rem; font-weight: 600; }
.chat-header-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    opacity: 0.9;
}
.chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}
.chat-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.28); }
.chat-close .icon { width: 16px; height: 16px; color: #fff; }

.chat-body {
    padding: 1rem;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.chat-bubble {
    align-self: flex-start;
    background: #fff;
    color: var(--text-primary);
    padding: 0.75rem 0.9rem;
    border-radius: 4px 16px 16px 16px;
    font-size: 0.88rem;
    line-height: 1.55;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    max-width: 94%;
}
.chat-bubble .chat-hand {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: -0.25em;
    margin-right: 0.15rem;
    color: #f59e0b;
    stroke-width: 2;
}

.chat-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.25rem;
}
.chat-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.chat-action:hover { transform: translateY(-1px); }
.chat-action .icon { width: 18px; height: 18px; }
.chat-action-primary {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.chat-action-primary:hover { box-shadow: 0 6px 16px rgba(37, 99, 235, 0.38); }
.chat-action-secondary {
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.chat-action-secondary:hover { background: var(--color-primary-light); }
