/* ==========================================================================
   home-pro.css — 首页视觉与交互升级层（Homepage Premium Layer）
   --------------------------------------------------------------------------
   作用域：全部规则限定在 body.page-home 之下，不影响任何其他页面。
   依赖：无（纯 CSS，无外部动画库）。在 style.css 之后加载。
   设计基调：深空背景 + 青蓝/紫电渐变 + 玻璃态 + 霓虹描边 + 光晕
   ========================================================================== */

/* --------------------------------------------------
   1. 设计令牌（Design Tokens）
   -------------------------------------------------- */
body.page-home {
    /* 深色基底 */
    --hp-bg-0: #0a0e1a;
    --hp-bg-1: #0d1424;
    --hp-bg-2: #1a2332;

    /* 品牌高饱和渐变 */
    --hp-cyan: #00d4ff;
    --hp-violet: #7b61ff;
    --hp-indigo: #4f7cff;
    --hp-mint: #35f0c0;

    --hp-grad-brand: linear-gradient(120deg, #00d4ff 0%, #7b61ff 100%);
    --hp-grad-brand-rev: linear-gradient(120deg, #7b61ff 0%, #00d4ff 100%);
    --hp-grad-text: linear-gradient(115deg, #ffffff 0%, #b6e8ff 40%, #a99bff 100%);
    --hp-grad-line: linear-gradient(90deg, transparent, var(--hp-cyan), var(--hp-violet), transparent);

    /* 玻璃态 */
    --hp-glass: rgba(255, 255, 255, 0.045);
    --hp-glass-strong: rgba(255, 255, 255, 0.075);
    --hp-glass-border: rgba(255, 255, 255, 0.10);
    --hp-glass-border-hi: rgba(0, 212, 255, 0.45);
    --hp-blur: blur(18px) saturate(165%);

    /* 光晕 */
    --hp-glow-cyan: 0 0 0 1px rgba(0, 212, 255, 0.35), 0 12px 40px rgba(0, 212, 255, 0.22);
    --hp-glow-violet: 0 0 0 1px rgba(123, 97, 255, 0.35), 0 12px 40px rgba(123, 97, 255, 0.24);
    --hp-glow-soft: 0 18px 50px rgba(0, 0, 0, 0.55);

    /* 动效节奏 */
    --hp-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --hp-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
    --hp-dur-fast: 0.3s;
    --hp-dur-mid: 0.45s;
    --hp-dur-slow: 0.6s;

    /* 可调参数：stagger 步进间隔 */
    --hp-stagger-step: 70ms;

    background:
        radial-gradient(1200px 700px at 15% -8%, rgba(123, 97, 255, 0.16), transparent 60%),
        radial-gradient(1000px 620px at 88% 4%, rgba(0, 212, 255, 0.13), transparent 62%),
        linear-gradient(180deg, var(--hp-bg-0) 0%, var(--hp-bg-1) 55%, var(--hp-bg-0) 100%);
    background-attachment: fixed;
}

/* 现代无衬线字体栈（含中文优化） */
body.page-home {
    font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
        "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "ss01";
    letter-spacing: -0.005em;
}

/* --------------------------------------------------
   2. 顶部滚动进度条
   -------------------------------------------------- */
.hp-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    z-index: 200;
    background: transparent;
    pointer-events: none;
}
.hp-progress__bar {
    height: 100%;
    width: 0%;
    background: var(--hp-grad-brand);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.75), 0 0 26px rgba(123, 97, 255, 0.45);
    transform-origin: left center;
    transition: width 90ms linear;
}

/* --------------------------------------------------
   3. 进场动画：stagger 淡入上移
   -------------------------------------------------- */
body.page-home [data-hp-reveal] {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition:
        opacity var(--hp-dur-slow) var(--hp-ease-out),
        transform var(--hp-dur-slow) var(--hp-ease-out);
    transition-delay: var(--hp-delay, 0ms);
    will-change: opacity, transform;
}
body.page-home [data-hp-reveal].hp-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
/* 动画完成后释放合成层，避免长期占用 GPU 内存 */
body.page-home [data-hp-reveal].hp-done {
    will-change: auto;
    transition-delay: 0ms;
}

/* 无 JS 兜底：不隐藏内容 */
html:not(.js) body.page-home [data-hp-reveal] {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------
   4. 吸顶导航：透明模糊 + 下划线光效
   -------------------------------------------------- */
body.page-home .site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: var(--hp-blur);
    -webkit-backdrop-filter: var(--hp-blur);
    transition:
        background var(--hp-dur-fast) ease,
        border-color var(--hp-dur-fast) ease,
        box-shadow var(--hp-dur-fast) ease;
}
/* 滚动后保持白底，仅强化分割线 */
body.page-home .site-header.hp-scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

/* 菜单项：悬停渐变下划线 + 微光（仅桌面端，≥1024px 时导航为横向排列） */
@media (min-width: 1024px) {
    body.page-home .main-nav > ul > li > a {
        position: relative;
        background: transparent;
        color: #2a3346;
        transition: color var(--hp-dur-fast) var(--hp-ease);
    }
    body.page-home .main-nav > ul > li > a::after {
        content: "";
        position: absolute;
        left: 0.62rem;
        right: 0.62rem;
        bottom: 6px;
        height: 2px;
        border-radius: 2px;
        background: var(--hp-grad-brand);
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform var(--hp-dur-fast) var(--hp-ease);
    }
    body.page-home .main-nav > ul > li > a:hover,
    body.page-home .main-nav > ul > li > a.active {
        color: #1a5fd6;
        background: transparent;
    }
    body.page-home .main-nav > ul > li > a:hover::after,
    body.page-home .main-nav > ul > li > a.active::after {
        transform: scaleX(1);
    }
    /* 子菜单（下拉）同步白底暗字 */
    body.page-home .main-nav .submenu {
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    }
    body.page-home .main-nav .submenu a {
        color: #2a3346;
    }
    body.page-home .main-nav .submenu a:hover {
        color: #1a5fd6;
        background: rgba(0, 212, 255, 0.06);
    }
}

/* 移动端抽屉导航：改用左侧高亮竖条，避免下划线在纵向列表中错位 */
@media (max-width: 1023px) {
    body.page-home .main-nav {
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        backdrop-filter: var(--hp-blur);
        -webkit-backdrop-filter: var(--hp-blur);
    }
    body.page-home .main-nav > ul > li > a {
        position: relative;
        color: #2a3346;
        border-radius: 10px;
        transition: color var(--hp-dur-fast) var(--hp-ease),
                    background var(--hp-dur-fast) var(--hp-ease);
    }
    body.page-home .main-nav > ul > li > a::before {
        content: "";
        position: absolute;
        left: 0;
        top: 22%;
        bottom: 22%;
        width: 3px;
        border-radius: 3px;
        background: var(--hp-grad-brand);
        opacity: 0;
        transition: opacity var(--hp-dur-fast) var(--hp-ease);
    }
    body.page-home .main-nav > ul > li > a.active,
    body.page-home .main-nav > ul > li > a:active {
        color: #1a5fd6;
        background: rgba(0, 212, 255, 0.06);
    }
    body.page-home .main-nav > ul > li > a.active::before { opacity: 1; }
}

/* Logo 悬停微光 + 首页略微放大 */
body.page-home .logo-img {
    height: 48px;
    width: auto;
    transition: filter var(--hp-dur-fast) var(--hp-ease), transform var(--hp-dur-fast) var(--hp-ease);
}
body.page-home .logo:hover .logo-img {
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.55));
    transform: translateY(-1px);
}
/* 白底模式下，汉堡按钮线条改为暗色 */
body.page-home .mobile-menu-toggle span {
    background: #2a3346;
}

/* Logo 旁的合作伙伴资质标识 */
body.page-home .logo-text { display: none; }
body.page-home .hp-partner-badges {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: 0.04rem;
}
body.page-home .hp-partner-badges img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
    opacity: 0.92;
    transition: opacity var(--hp-dur-fast) var(--hp-ease), transform var(--hp-dur-fast) var(--hp-ease), filter var(--hp-dur-fast) var(--hp-ease);
}
body.page-home .hp-partner-badges img:hover {
    opacity: 1;
    transform: translateY(-1px);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.45));
}
@media (max-width: 1023px) {
    body.page-home .hp-partner-badges { display: none; }
}

/* --------------------------------------------------
   5. Hero 首屏
   -------------------------------------------------- */
body.page-home .hero {
    position: relative;
    isolation: isolate;
}

/* 粒子网格 Canvas 承载层
   z-index 说明：轮播底图/遮罩 = 1，粒子层 = 2，文案内容 = 3，滚动提示 = 4 */
.hp-hero-fx {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}
/* 文案层置于粒子之上，保证可读性与可点击 */
body.page-home .hero-overlay .container,
body.page-home .hero-default .container {
    position: relative;
    z-index: 3;
}
.hp-scroll-hint { z-index: 4; }
.hp-hero-fx canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* 科技网格底纹 */
.hp-hero-fx::before {
    content: "";
    position: absolute;
    inset: -10%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 42%, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 62% at 50% 42%, #000 25%, transparent 78%);
    opacity: 0.75;
}

/* 流动光斑（Aurora Orbs） */
.hp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    pointer-events: none;
}
.hp-orb--a {
    width: 46vw;
    height: 46vw;
    max-width: 620px;
    max-height: 620px;
    left: -10%;
    top: -18%;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.75), transparent 68%);
    animation: hpFloatA 20s ease-in-out infinite;
}
.hp-orb--b {
    width: 40vw;
    height: 40vw;
    max-width: 560px;
    max-height: 560px;
    right: -8%;
    bottom: -22%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.62), transparent 68%);
    animation: hpFloatB 24s ease-in-out infinite;
}
@keyframes hpFloatA {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(6%, 8%, 0) scale(1.1); }
}
@keyframes hpFloatB {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(-7%, -6%, 0) scale(1.12); }
}

/* Hero 内容层级与遮罩重塑 */
body.page-home .hero-carousel,
body.page-home .hero-default {
    position: relative;
    z-index: 1;
}
body.page-home .hero-slide {
    min-height: 86vh;
    background-attachment: scroll;
}
body.page-home .hero-default {
    background:
        radial-gradient(900px 520px at 50% 0%, rgba(123, 97, 255, 0.22), transparent 65%),
        transparent;
    min-height: 86vh;
    padding: 7rem 0 5rem;
}
body.page-home .hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(10, 14, 26, 0.78) 0%,
        rgba(10, 14, 26, 0.62) 45%,
        rgba(10, 14, 26, 0.92) 100%
    );
    min-height: inherit;
}

/* 授权徽章：玻璃胶囊 + 呼吸光点 */
body.page-home .hp-hero-badges {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.4rem;
}
body.page-home .hero .wb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    background: var(--hp-glass-strong);
    border: 1px solid var(--hp-glass-border);
    backdrop-filter: var(--hp-blur);
    -webkit-backdrop-filter: var(--hp-blur);
    color: #d8e6ff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    position: relative;
    white-space: nowrap;
}
body.page-home .hero .wb-badge--alt {
    border-color: rgba(0, 212, 255, 0.35);
    background: rgba(9, 27, 50, 0.55);
}
body.page-home .hero .wb-badge--alt::before {
    background: #00d4ff;
    box-shadow: 0 0 10px #00d4ff;
    animation-delay: 0.4s;
}
body.page-home .hero .wb-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hp-mint);
    box-shadow: 0 0 10px var(--hp-mint);
    animation: hpPulse 2.2s ease-in-out infinite;
    flex: 0 0 auto;
}
@keyframes hpPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.78); }
}

/* 主标题：更大字重与渐变 */
body.page-home .hero-title {
    font-size: clamp(2rem, 6.4vw, 3.9rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.028em;
    background: var(--hp-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 1.15rem;
    text-wrap: balance;
}
body.page-home .hero-title span {
    display: block;
    margin-top: 0.85rem;
    font-size: clamp(0.98rem, 2.3vw, 1.32rem);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.005em;
    -webkit-text-fill-color: initial;
    background: none;
    color: #9fb4d4;
}
body.page-home .hero-desc {
    font-size: clamp(0.95rem, 1.9vw, 1.1rem);
    color: #a9bcd6;
    max-width: 680px;
    margin: 0 auto 2.2rem;
    line-height: 1.8;
}

/* CTA 按钮组 */
body.page-home .hero-actions {
    gap: 0.9rem;
}
body.page-home .hero-actions .btn {
    position: relative;
    overflow: hidden;
    padding: 0.86rem 2rem;
    font-size: 0.98rem;
    font-weight: 650;
    border-radius: 999px;
    transition:
        transform var(--hp-dur-fast) var(--hp-ease),
        box-shadow var(--hp-dur-fast) var(--hp-ease),
        border-color var(--hp-dur-fast) var(--hp-ease),
        background var(--hp-dur-fast) var(--hp-ease);
}
/* 主按钮：渐变 + 扫光 */
body.page-home .hero-actions .btn-primary {
    background: var(--hp-grad-brand);
    border: none;
    color: #04121f;
    font-weight: 700;
    box-shadow: 0 10px 34px rgba(0, 212, 255, 0.32);
}
body.page-home .hero-actions .btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -130%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent,
        rgba(255, 255, 255, 0.55),
        transparent
    );
    transform: skewX(-18deg);
    transition: left var(--hp-dur-slow) var(--hp-ease);
}
body.page-home .hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 46px rgba(0, 212, 255, 0.46);
}
body.page-home .hero-actions .btn-primary:hover::after { left: 130%; }

/* 次按钮：玻璃描边 */
body.page-home .hero-actions .btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #eaf3ff;
    backdrop-filter: var(--hp-blur);
    -webkit-backdrop-filter: var(--hp-blur);
}
body.page-home .hero-actions .btn-outline:hover {
    transform: translateY(-3px);
    border-color: var(--hp-glass-border-hi);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--hp-glow-cyan);
}

/* Hero 底部代理说明 */
body.page-home .hero-agency {
    margin-top: 1.6rem;
    font-size: 0.88rem;
    color: #8ea3c0;
}
body.page-home .hero-agency a {
    color: var(--hp-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.35);
    padding-bottom: 1px;
    transition: color var(--hp-dur-fast) var(--hp-ease), border-color var(--hp-dur-fast) var(--hp-ease);
}
body.page-home .hero-agency a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* 向下滚动提示 */
/* bottom 需为上浮的统计条留出空间（统计条 margin-top 为负，会盖住 Hero 底部） */
.hp-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 118px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #7d90ad;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    pointer-events: none;
}
.hp-scroll-hint__mouse {
    width: 22px;
    height: 34px;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    position: relative;
}
.hp-scroll-hint__mouse::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 7px;
    width: 3px;
    height: 6px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--hp-cyan);
    box-shadow: 0 0 8px var(--hp-cyan);
    animation: hpWheel 1.9s var(--hp-ease) infinite;
}
@keyframes hpWheel {
    0%   { transform: translateY(0);   opacity: 1; }
    70%  { transform: translateY(11px); opacity: 0; }
    100% { transform: translateY(0);   opacity: 0; }
}

/* 轮播控件玻璃化 */
body.page-home .carousel-prev,
body.page-home .carousel-next {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--hp-glass-border);
    backdrop-filter: var(--hp-blur);
    -webkit-backdrop-filter: var(--hp-blur);
    transition: all var(--hp-dur-fast) var(--hp-ease);
}
body.page-home .carousel-prev:hover,
body.page-home .carousel-next:hover {
    background: rgba(0, 212, 255, 0.16);
    border-color: var(--hp-glass-border-hi);
    box-shadow: var(--hp-glow-cyan);
}
body.page-home .carousel-dots .dot {
    transition: all var(--hp-dur-fast) var(--hp-ease);
}
body.page-home .carousel-dots .dot.active {
    background: var(--hp-cyan);
    box-shadow: 0 0 10px var(--hp-cyan);
    width: 22px;
    border-radius: 4px;
}

/* --------------------------------------------------
   6. 数据指标条（Stats Strip）
   -------------------------------------------------- */
.hp-stats {
    position: relative;
    z-index: 2;
    margin-top: -3.5rem;
    padding-bottom: 1rem;
}
.hp-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}
.hp-stat {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 1.15rem;
    border-radius: 18px;
    text-align: center;
    background: var(--hp-glass);
    border: 1px solid var(--hp-glass-border);
    backdrop-filter: var(--hp-blur);
    -webkit-backdrop-filter: var(--hp-blur);
    box-shadow: var(--hp-glow-soft);
    transition:
        transform var(--hp-dur-fast) var(--hp-ease),
        border-color var(--hp-dur-fast) var(--hp-ease),
        box-shadow var(--hp-dur-fast) var(--hp-ease);
}
/* 顶部渐变发丝线 */
.hp-stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: var(--hp-grad-line);
    opacity: 0.85;
}
.hp-stat:hover {
    transform: translateY(-5px);
    border-color: var(--hp-glass-border-hi);
    box-shadow: var(--hp-glow-cyan);
}
.hp-stat__num {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    font-size: clamp(1.7rem, 5.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: var(--hp-grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-variant-numeric: tabular-nums;
}
.hp-stat__suffix {
    font-size: 0.62em;
    font-weight: 700;
}
.hp-stat__label {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: #93a6c2;
    letter-spacing: 0.01em;
}

/* --------------------------------------------------
   7. 区块标题
   -------------------------------------------------- */
body.page-home .section-header h2 {
    font-size: clamp(1.6rem, 4.2vw, 2.35rem);
    font-weight: 750;
    letter-spacing: -0.025em;
    background: var(--hp-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
body.page-home .section-header p {
    color: #93a6c2;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
/* 标题下方发光短线 */
body.page-home .section-header::after {
    content: "";
    display: block;
    width: 54px;
    height: 2px;
    margin: 1.1rem auto 0;
    border-radius: 2px;
    background: var(--hp-grad-brand);
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.6);
}

/* --------------------------------------------------
   8. 通用玻璃卡片 + 光标跟随高光（Spotlight）
   -------------------------------------------------- */
body.page-home .service-card,
body.page-home .industry-card,
body.page-home .article-card,
/* 价格卡：3 列网格（首页含旗舰版 / 专享版 / 企业私有化版） */
body.page-home .wb-pricing {
    max-width: 1120px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    body.page-home .wb-pricing { grid-template-columns: repeat(3, 1fr); }
}
body.page-home .wb-cap-card,
body.page-home .wb-price-card {
    position: relative;
    overflow: hidden;
    background: var(--hp-glass);
    border: 1px solid var(--hp-glass-border);
    border-radius: 18px;
    backdrop-filter: var(--hp-blur);
    -webkit-backdrop-filter: var(--hp-blur);
    transition:
        transform var(--hp-dur-mid) var(--hp-ease),
        border-color var(--hp-dur-mid) var(--hp-ease),
        box-shadow var(--hp-dur-mid) var(--hp-ease),
        background var(--hp-dur-mid) var(--hp-ease);
}

/* 光标位置由 JS 写入 --hp-mx / --hp-my */
body.page-home .hp-spot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        340px circle at var(--hp-mx, 50%) var(--hp-my, 50%),
        rgba(0, 212, 255, 0.14),
        rgba(123, 97, 255, 0.08) 42%,
        transparent 66%
    );
    opacity: 0;
    transition: opacity var(--hp-dur-mid) var(--hp-ease);
    pointer-events: none;
    z-index: 0;
}
body.page-home .hp-spot:hover::after { opacity: 1; }
/* 保证卡片内容位于高光之上 */
body.page-home .hp-spot > * { position: relative; z-index: 1; }

body.page-home .service-card:hover,
body.page-home .industry-card:hover,
body.page-home .article-card:hover,
body.page-home .wb-cap-card:hover {
    transform: translateY(-7px);
    border-color: var(--hp-glass-border-hi);
    box-shadow: var(--hp-glow-cyan);
    background: var(--hp-glass-strong);
}

/* 服务卡图标：渐变方块 + 悬停跃起 */
body.page-home .service-icon,
body.page-home .industry-icon,
body.page-home .wb-cap-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.1rem;
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(0, 212, 255, 0.16), rgba(123, 97, 255, 0.16));
    border: 1px solid var(--hp-glass-border);
    transition:
        transform var(--hp-dur-mid) var(--hp-ease),
        box-shadow var(--hp-dur-mid) var(--hp-ease),
        background var(--hp-dur-mid) var(--hp-ease);
}
body.page-home .industry-icon,
body.page-home .wb-cap-icon { margin-bottom: 0.9rem; }

body.page-home .service-icon .icon,
body.page-home .industry-icon .icon,
body.page-home .wb-cap-icon .icon {
    width: 27px;
    height: 27px;
    margin: 0;
    color: var(--hp-cyan);
    transition: color var(--hp-dur-mid) var(--hp-ease);
}
body.page-home .service-card:hover .service-icon,
body.page-home .industry-card:hover .industry-icon,
body.page-home .wb-cap-card:hover .wb-cap-icon {
    transform: translateY(-4px) scale(1.06);
    background: linear-gradient(140deg, rgba(0, 212, 255, 0.3), rgba(123, 97, 255, 0.3));
    box-shadow: 0 10px 26px rgba(0, 212, 255, 0.3);
}

body.page-home .service-card h3,
body.page-home .industry-card h3,
body.page-home .wb-cap-card h3 {
    font-size: 1.12rem;
    font-weight: 680;
    letter-spacing: -0.012em;
    color: #eaf2ff;
}
body.page-home .service-card p,
body.page-home .industry-card > p,
body.page-home .wb-cap-card p {
    color: #93a6c2;
    line-height: 1.75;
}
body.page-home .service-tags {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #7f93b0;
    font-size: 0.72rem;
}

/* 高亮服务卡（大模型部署） */
body.page-home .service-card.card-highlight {
    border-color: rgba(0, 212, 255, 0.35);
    background: linear-gradient(165deg, rgba(0, 212, 255, 0.09), rgba(123, 97, 255, 0.07));
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.2), 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* 行业卡小标签 */
body.page-home .mini-tag {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.18);
    color: #8fd8f5;
    border-radius: 999px;
    transition: all var(--hp-dur-fast) var(--hp-ease);
}
body.page-home .industry-card:hover .mini-tag {
    background: rgba(0, 212, 255, 0.16);
    border-color: rgba(0, 212, 255, 0.4);
    color: #cdefff;
}

/* WorkBuddy 专区与软件开发区之间的呼吸间距 */
body.page-home .workbuddy-agency-section { padding-bottom: 2.5rem; }
@media (min-width: 768px) { body.page-home .workbuddy-agency-section { padding-bottom: 3rem; } }

/* 软件开发专区：技术栈标签行 + 与上方 WorkBuddy 专区的轻柔分隔 */
body.page-home .sd-dev-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
    body.page-home .sd-dev-section {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }
}
body.page-home .sd-dev-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.4rem;
}
body.page-home .sd-dev-stack .mini-tag {
    font-size: 0.82rem;
    padding: 0.42rem 0.95rem;
}

/* --------------------------------------------------
   9. 价值列表 / 定价卡
   -------------------------------------------------- */
body.page-home .wb-value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(0, 212, 255, 0.14), rgba(123, 97, 255, 0.14));
    border: 1px solid var(--hp-glass-border);
    flex: 0 0 auto;
}
body.page-home .wb-value-list li {
    transition: transform var(--hp-dur-fast) var(--hp-ease);
}
body.page-home .wb-value-list li:hover { transform: translateX(4px); }
body.page-home .wb-value-intro {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

body.page-home .wb-price-card {
    border-radius: 20px;
}
body.page-home .wb-price-card:hover {
    transform: translateY(-6px);
    border-color: var(--hp-glass-border-hi);
    box-shadow: var(--hp-glow-cyan);
}
body.page-home .wb-price-featured {
    border-color: rgba(123, 97, 255, 0.45);
    background: linear-gradient(170deg, rgba(123, 97, 255, 0.13), rgba(0, 212, 255, 0.07));
    box-shadow: 0 0 0 1px rgba(123, 97, 255, 0.25), 0 18px 50px rgba(0, 0, 0, 0.5);
}
body.page-home .wb-price-featured:hover {
    border-color: rgba(123, 97, 255, 0.75);
    box-shadow: var(--hp-glow-violet);
}
body.page-home .wb-price-num {
    background: var(--hp-grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: -0.03em;
}
body.page-home .wb-price-flag {
    background: var(--hp-grad-brand);
    color: #04121f;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(123, 97, 255, 0.4);
}

/* --------------------------------------------------
   11. 文章卡
   -------------------------------------------------- */
body.page-home .article-card .article-img {
    position: relative;
    overflow: hidden;
}
body.page-home .article-card .article-img img {
    transition: transform var(--hp-dur-slow) var(--hp-ease);
}
body.page-home .article-card:hover .article-img img {
    transform: scale(1.07);
}
body.page-home .article-cat {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.22);
    color: #8fd8f5;
    border-radius: 999px;
}
body.page-home .article-card h3 {
    transition: color var(--hp-dur-fast) var(--hp-ease);
}
body.page-home .article-card:hover h3 { color: var(--hp-cyan); }
body.page-home .articles-section.bg-light {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
}

/* --------------------------------------------------
   12. 通用按钮微交互（首页范围内）
   -------------------------------------------------- */
body.page-home .btn {
    transition:
        transform var(--hp-dur-fast) var(--hp-ease),
        box-shadow var(--hp-dur-fast) var(--hp-ease),
        background var(--hp-dur-fast) var(--hp-ease),
        border-color var(--hp-dur-fast) var(--hp-ease);
}
body.page-home .btn:hover { transform: translateY(-2px); }
body.page-home .btn:active { transform: translateY(0) scale(0.985); }

body.page-home .section-footer .btn-primary {
    background: var(--hp-grad-brand);
    border: none;
    color: #04121f;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.28);
}
body.page-home .section-footer .btn-primary:hover {
    box-shadow: 0 15px 42px rgba(0, 212, 255, 0.44);
}
body.page-home .section-footer .btn-outline,
body.page-home .industry-card .btn-outline {
    border-color: rgba(255, 255, 255, 0.18);
    color: #d5e4f7;
    border-radius: 999px;
}
body.page-home .section-footer .btn-outline:hover,
body.page-home .industry-card .btn-outline:hover {
    border-color: var(--hp-glass-border-hi);
    background: rgba(0, 212, 255, 0.1);
    color: #fff;
    box-shadow: var(--hp-glow-cyan);
}

/* --------------------------------------------------
   13. 聊天挂件微调
   -------------------------------------------------- */
body.page-home .chat-panel {
    background: rgba(13, 20, 36, 0.92);
    border: 1px solid var(--hp-glass-border);
    backdrop-filter: var(--hp-blur);
    -webkit-backdrop-filter: var(--hp-blur);
    box-shadow: var(--hp-glow-soft);
}
/* 面板主体：深色底，衬托浅色气泡，确保文字可读 */
body.page-home .chat-body {
    background: rgba(255, 255, 255, 0.04);
}
/* 消息气泡：浅底深字，对比度 ≥ 12:1，彻底解决“白字白底看不见” */
body.page-home .chat-bubble {
    background: rgba(255, 255, 255, 0.96);
    color: #0a1220;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
body.page-home .chat-bubble .chat-hand {
    color: #f59e0b;
}
/* 次要按钮在深色面板上改为浅底深字，避免与背景糊在一起 */
body.page-home .chat-action-secondary {
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.45);
}
body.page-home .chat-action-secondary:hover {
    background: #ffffff;
}
body.page-home .chat-launcher {
    /* 深蓝渐变 + 白字，对比度 ≥ 5:1，与面板头部风格统一且清晰可读 */
    background: linear-gradient(120deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.42);
    transition: transform var(--hp-dur-fast) var(--hp-ease), box-shadow var(--hp-dur-fast) var(--hp-ease);
}
body.page-home .chat-launcher:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.55);
}
body.page-home .chat-status-dot {
    box-shadow: 0 0 8px var(--hp-mint);
}
body.page-home .back-to-top {
    background: var(--hp-glass-strong);
    border: 1px solid var(--hp-glass-border);
    backdrop-filter: var(--hp-blur);
    -webkit-backdrop-filter: var(--hp-blur);
    transition: all var(--hp-dur-fast) var(--hp-ease);
}
body.page-home .back-to-top:hover {
    border-color: var(--hp-glass-border-hi);
    box-shadow: var(--hp-glow-cyan);
    transform: translateY(-3px);
}

/* --------------------------------------------------
   15. 无障碍：焦点可见 + 对比度
   -------------------------------------------------- */
body.page-home a:focus-visible,
body.page-home button:focus-visible,
body.page-home [tabindex]:focus-visible {
    outline: 2px solid var(--hp-cyan);
    outline-offset: 3px;
    border-radius: 6px;
}
body.page-home .skip-link:focus {
    background: var(--hp-cyan);
    color: #04121f;
    outline: 2px solid #fff;
}
/* 强制高对比模式下移除半透明玻璃，保证可读性 */
@media (prefers-contrast: more) {
    body.page-home .hp-stat,
    body.page-home .service-card,
    body.page-home .industry-card,
    body.page-home .article-card,
    body.page-home .wb-cap-card,
    body.page-home .wb-price-card {
        background: #121a2b;
        border-color: rgba(255, 255, 255, 0.4);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    body.page-home .hero-desc,
    body.page-home .section-header p,
    body.page-home .hp-stat__label { color: #d3dff0; }
}

/* --------------------------------------------------
   16. 响应式：平板 / 桌面
   -------------------------------------------------- */
@media (min-width: 640px) {
    .hp-stats__grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
}
@media (min-width: 1024px) {
    .hp-stats { margin-top: -4.5rem; }
    .hp-stat { padding: 1.85rem 1.4rem; }
    body.page-home .hero-slide,
    body.page-home .hero-default { min-height: 92vh; }
}

/* --------------------------------------------------
   17. 移动端降级：简化动效，保证流畅
   -------------------------------------------------- */
@media (max-width: 767px) {
    /* 关闭代价较高的 orb 动画与大范围模糊 */
    .hp-orb { animation: none; filter: blur(52px); opacity: 0.38; }
    .hp-hero-fx::before { background-size: 42px 42px; opacity: 0.5; }

    /* 背景不做 fixed，避免移动端重绘抖动 */
    body.page-home { background-attachment: scroll; }

    /* 首屏高度收敛，保证 CTA 在折叠线以上 */
    body.page-home .hero-slide,
    body.page-home .hero-default { min-height: 78vh; }
    body.page-home .hero-default { padding: 5.5rem 0 4rem; }

    /* 卡片位移幅度减半，取消 spotlight（触屏无光标） */
    body.page-home .hp-spot::after { display: none; }
    body.page-home .service-card:hover,
    body.page-home .industry-card:hover,
    body.page-home .article-card:hover,
    body.page-home .wb-cap-card:hover { transform: translateY(-3px); }

    /* 降低玻璃模糊强度，减轻 GPU 负载 */
    body.page-home {
        --hp-blur: blur(10px) saturate(140%);
    }

    .hp-scroll-hint { display: none; }
    .hp-stats { margin-top: -2rem; }
    body.page-home .section-header::after { margin-top: 0.9rem; }
}

/* 超窄屏：统计条单列更紧凑 */
@media (max-width: 359px) {
    .hp-stats__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------
   18. 尊重用户减弱动态偏好
   -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    body.page-home *,
    body.page-home *::before,
    body.page-home *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    body.page-home [data-hp-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
    .hp-orb { animation: none; }
    .hp-scroll-hint { display: none; }
}
