/* =============================================================
   sunn.cn · 首页设计系统 (home.css)
   设计语言：Bento Grid · 玻璃态 · 微交互 · 渐变光场
   命名空间 hp-，避免与 sunn.css 冲突
   对应文档：SUNN.CN网站模板开发文档.md / 首页优化设计开发文档.md
   ============================================================= */

:root {
    --hp-primary: #2563eb;
    --hp-primary-600: #1e40af;
    --hp-primary-400: #60a5fa;
    --hp-secondary: #7c8cf8;
    --hp-accent: #fb923c;
    --hp-bg: #f6f9ff;
    --hp-surface: #FFFFFF;
    --hp-ink: #1c2b4a;
    --hp-ink-2: #51618c;
    --hp-muted: #5a6b8c;
    --hp-border: #e2e9f8;
    --hp-radius: 22px;
    --hp-radius-sm: 14px;
    --hp-shadow-sm: 0 6px 18px -10px rgba(15, 23, 42, .18);
    --hp-shadow: 0 16px 40px -18px rgba(15, 23, 42, .22);
    --hp-shadow-lg: 0 28px 70px -24px rgba(37, 99, 235, .42);
    --hp-container: min(1600px, 100vw);
    --hp-ease: cubic-bezier(.2, .7, .2, 1);
    --hp-ease-img: cubic-bezier(0.22, 1, 0.36, 1);

    /* ===== 流体排版体系（Fluid Typography，2026 现代标准）=====
       不用固定 px + 断点硬切，改用 clamp()+视口单位平滑缩放；
       一处在 :root 定义全站字号坡度，320px~大屏连续渐变、零断点。
       以 rem 为基准（1rem=16px），并给旧浏览器 rem 兜底。 */
    --hp-fs-display: clamp(2rem, 1.2rem + 3.4vw, 3.625rem);   /* Hero 主标题 32→58px */
    --hp-fs-h2:       clamp(1.625rem, 1rem + 2.5vw, 2.625rem);/* 区块主标题 26→42px */
    --hp-fs-h3:       clamp(1.125rem, .95rem + .75vw, 1.4rem);/* 卡片标题 18→22.4px */
    --hp-fs-title:    clamp(1.06rem, .98rem + .4vw, 1.2rem);  /* 列表项标题 17→19.2px */
    --hp-fs-body:     clamp(.9375rem, .88rem + .3vw, 1rem);   /* 正文描述 15→16px */
    --hp-fs-body-lg:  clamp(1rem, .93rem + .4vw, 1.125rem);   /* 大段正文 16→18px */
    --hp-fs-small:    clamp(.8125rem, .78rem + .15vw, .875rem);/* 次要/标签 13→14px */
    --hp-fs-tiny:     clamp(.75rem, .72rem + .12vw, .8125rem);/* 徽章角标 12→13px */
    --hp-fs-btn:      clamp(.9375rem, .9rem + .2vw, 1rem);    /* 按钮 15→16px */
    --hp-fs-lead:     clamp(1.25rem, 1.05rem + 1vw, 1.85rem); /* 强调句/引用 20→29.6px */
    --hp-fs-kicker:   clamp(.78rem, .72rem + .3vw, .875rem);  /* 区块小标 eyebrow 12.5→14px */
}

/* ============================================================
   全局增强（2026 标准）：焦点可见性 / 平滑滚动 / 跳转链接 / 智能断行
   ============================================================ */
/* 键盘焦点可见性（WCAG 2.4.7）：统一焦点环，键盘 Tab 浏览清晰可见 */
:focus-visible {
    outline: 3px solid var(--hp-primary);
    outline-offset: 3px;
    border-radius: 4px;
}
.hp-btn:focus-visible,
.hp-stickycta a:focus-visible,
.faq__item summary:focus-visible,
.hp-quote:focus-visible {
    outline-offset: 4px;
}

/* 锚点平滑滚动 + 吸顶头不遮挡目标（scroll-padding-top 预留 header 高度） */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

/* 跳到主要内容（无障碍跳转，键盘 / 读屏直达正文） */
.hp-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    background: var(--hp-primary);
    color: #fff;
    padding: 11px 20px;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    text-decoration: none;
    transition: top .2s var(--hp-ease);
}
.hp-skip:focus { top: 0; }

/* 智能断行：标题避免孤字（balance）、正文更均衡（pretty） */
.hp-hero__title,
.hp-title,
.hp-about__title,
.hp-cta__title,
.faq__title { text-wrap: balance; }

.hp-hero__desc,
.hp-sub,
.hp-feat__d,
.hp-adv__d,
.hp-about__text,
.hp-quote__text,
.hp-case__desc,
.hp-post__desc,
.faq__lead { text-wrap: pretty; }

/* ---------- 容器 / 区块节奏 (8px 网格) ---------- */
.hp-container {
    width: 100%;
    max-width: var(--hp-container);
    margin-inline: auto;
    padding-inline: var(--sp-2xl);
}

.hp-section {
    padding-block: clamp(56px, 9vw, 112px);
}
.hp-section--alt {
    background: var(--hp-bg);
}

.hp-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(36px, 5vw, 56px);
}
.hp-eyebrow {
    display: inline-block;
    color: var(--hp-primary);
    font-weight: 600;
    font-size: var(--hp-fs-kicker);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.hp-eyebrow::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--hp-primary);
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 2px;
}
.hp-title {
    font-size: var(--hp-fs-h2);
    line-height: 1.16;
    margin: 0 0 .4em;
    color: var(--hp-ink);
    letter-spacing: -.01em;
}
.hp-title .hp-gradient-text {
    background: linear-gradient(100deg, var(--hp-primary), var(--hp-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hp-sub {
    color: var(--hp-muted);
    font-size: var(--hp-fs-body-lg);
    line-height: 1.7;
    margin: 0;
}

/* ---------- 玻璃态卡片 ---------- */
.hp-glass {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border: 1px solid rgba(255, 255, 255, .65);
    box-shadow: var(--hp-shadow);
    border-radius: var(--hp-radius);
}

/* ---------- 按钮 ---------- */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: var(--hp-fs-btn);
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .25s var(--hp-ease), box-shadow .25s var(--hp-ease), background .25s;
    will-change: transform;
    white-space: nowrap;
}
.hp-btn--primary {
    color: #fff;
    background: linear-gradient(100deg, var(--hp-primary), var(--hp-primary-600));
    box-shadow: var(--hp-shadow-lg);
}
.hp-btn--primary:hover {
    color: #fff;
    transform: translateY(-3px);
    background: linear-gradient(100deg, #1d4ed8, #1e3a8a);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 22px 52px -20px rgba(30, 58, 138, .55);
}
.hp-btn--accent {
    color: #fff;
    background: linear-gradient(100deg, #f97316, #ea580c);
    box-shadow: 0 18px 44px -18px rgba(234, 88, 12, .6);
}
.hp-btn--accent:hover {
    color: #fff;
    transform: translateY(-3px);
    background: linear-gradient(100deg, #ea580c, #c2410c);
    box-shadow: 0 22px 52px -18px rgba(194, 65, 12, .62);
}
.hp-btn--ghost {
    color: var(--hp-ink);
    background: rgba(255, 255, 255, .6);
    border-color: var(--hp-border);
}
.hp-btn--ghost:hover {
    transform: translateY(-3px);
    border-color: var(--hp-primary);
    color: var(--hp-primary);
}

/* =============================================================
   HERO · 渐变光场首屏
   ============================================================= */
.hp-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 520px at 78% -8%, rgba(124, 140, 248, .22), transparent 60%),
        radial-gradient(900px 520px at 12% 12%, rgba(37, 99, 235, .28), transparent 60%),
        linear-gradient(180deg, #eaf1ff 0%, #f6f9ff 100%);
    padding-block: clamp(64px, 11vw, 132px);
}
.hp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
    pointer-events: none;
}
.hp-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.hp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(37, 99, 235, .25);
    color: var(--hp-primary-600);
    font-weight: 600;
    font-size: var(--hp-fs-small);
    margin-bottom: 22px;
}
.hp-hero__title {
    font-size: var(--hp-fs-display);
    line-height: 1.1;
    margin: 0 0 .42em;
    letter-spacing: -.02em;
    color: var(--hp-ink);
}
.hp-hero__desc {
    font-size: var(--hp-fs-body-lg);
    color: var(--hp-muted);
    line-height: 1.75;
    margin: 0 0 32px;
    max-width: 560px;
}
.hp-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}
.hp-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 38px);
}
.hp-badge__num {
    font-size: var(--hp-fs-h3);
    font-weight: 800;
    color: var(--hp-primary-600);
    line-height: 1;
}
.hp-badge__num span {
    color: var(--hp-accent);
}
.hp-badge__label {
    font-size: var(--hp-fs-tiny);
    color: var(--hp-muted);
    margin-top: 6px;
}

/* Hero 右侧玻璃卡：价值主张 */
.hp-hero__card {
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--hp-radius);
    position: relative;
}
.hp-hero__card h3 {
    margin: 0 0 18px;
    font-size: var(--hp-fs-title);
    color: var(--hp-ink-2);
}
.hp-feat {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--hp-border);
}
.hp-feat:first-of-type { border-top: 0; }
.hp-feat__icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, .14), rgba(124, 140, 248, .14));
    color: var(--hp-primary);
}
.hp-feat__icon svg { width: 22px; height: 22px; }
.hp-feat__t { font-weight: 600; color: var(--hp-ink); font-size: var(--hp-fs-body); }
.hp-feat__d { color: var(--hp-muted); font-size: var(--hp-fs-body); line-height: 1.6; }

/* =============================================================
   BENTO GRID · 核心服务
   ============================================================= */
.hp-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(180px, auto);
    gap: 18px;
}
.hp-bento-card {
    position: relative;
    min-width: 0;
    padding: clamp(22px, 2.4vw, 30px);
    border-radius: var(--hp-radius);
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .35s var(--hp-ease), box-shadow .35s var(--hp-ease), border-color .35s;
}
.hp-bento-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(37, 99, 235, .10), transparent 60%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}
.hp-bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hp-shadow-lg);
    border-color: rgba(37, 99, 235, .4);
}
.hp-bento-card:hover::after { opacity: 1; }

/* 豆包GEO · 色彩层级高亮卡（与其它 5 块等大，仅以渐变底+白字+徽标突出） */
.hp-bento-card--doubao {
    background: linear-gradient(135deg, var(--hp-primary) 0%, var(--hp-primary-600) 55%, var(--hp-secondary) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--hp-shadow);
}
.hp-bento-card--doubao .hp-bento__icon { background: rgba(255, 255, 255, .18); color: #fff; }
.hp-bento-card--doubao .hp-bento__title { color: #fff; }
.hp-bento-card--doubao .hp-bento__desc { color: rgba(255, 255, 255, .92); font-size: var(--hp-fs-body); line-height: 1.7; }
.hp-bento-card--doubao .hp-bento__link { color: #fff; }
.hp-bento-card--doubao .hp-bento__tag { color: #fff; background: rgba(255, 255, 255, .22); }
.hp-bento-card--doubao::after { background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .18), transparent 60%); }
.hp-bento-card--doubao:hover { border-color: rgba(255, 255, 255, .5); }
/* 宽卡：用于"全网营销全案"在 4 列网格中占两格，使 7 块整齐填满无空洞（豆包仍与其它等大） */
.hp-bento-card--wide { grid-column: span 2; }

.hp-bento__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-primary-600));
    color: #fff;
    margin-bottom: 16px;
    box-shadow: var(--hp-shadow-sm);
}
.hp-bento__icon svg { width: 26px; height: 26px; }
.hp-bento-card--doubao .hp-bento__icon {
    width: 52px; height: 52px;
    margin-bottom: 16px;
}
.hp-bento-card--doubao .hp-bento__icon svg { width: 26px; height: 26px; }

.hp-bento__title {
    font-size: var(--hp-fs-title);
    font-weight: 700;
    color: var(--hp-ink);
    margin: 0 0 8px;
}
.hp-bento-card--doubao .hp-bento__title { font-size: var(--hp-fs-title); }
.hp-bento__desc {
    color: var(--hp-muted);
    font-size: var(--hp-fs-body);
    line-height: 1.7;
    margin: 0 0 14px;
    flex: 1;
}
.hp-bento__link {
    margin-top: auto;
    color: var(--hp-primary-600);
    font-weight: 600;
    font-size: var(--hp-fs-body);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .25s;
}
.hp-bento__link:hover { gap: 11px; }
/* 大卡片徽标 */
.hp-bento__tag {
    position: absolute;
    top: 22px; right: 22px;
    font-size: var(--hp-fs-tiny);
    color: var(--hp-secondary);
    background: rgba(124, 140, 248, .12);
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 600;
}

/* =============================================================
   为何选择 · 优势卡片
   ============================================================= */
.hp-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.hp-adv {
    padding: clamp(22px, 2.4vw, 30px);
    border-radius: var(--hp-radius);
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow-sm);
    transition: transform .3s var(--hp-ease), box-shadow .3s var(--hp-ease);
}
.hp-adv:hover { transform: translateY(-5px); box-shadow: var(--hp-shadow); }
.hp-adv__icon {
    width: 48px; height: 48px;
    border-radius: 13px;
    display: grid; place-items: center;
    background: rgba(37, 99, 235, .1);
    color: var(--hp-primary);
    margin-bottom: 16px;
}
.hp-adv__icon svg { width: 24px; height: 24px; }
.hp-adv__t { font-size: var(--hp-fs-title); font-weight: 700; color: var(--hp-ink); margin: 0 0 8px; }
.hp-adv__d { font-size: var(--hp-fs-body); color: var(--hp-muted); line-height: 1.65; margin: 0; }

/* =============================================================
   案例 / 解决方案 / 知识 · 卡片网格
   ============================================================= */
.hp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.hp-post {
    display: flex;
    flex-direction: column;
    border-radius: var(--hp-radius);
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow-sm);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .3s var(--hp-ease), box-shadow .3s var(--hp-ease);
}
.hp-post:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow); }
.hp-post:hover .hp-post__img img { transform: scale(1.06); }
.hp-post__img {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #eaf1ff, #f4f7ff);
    overflow: hidden;
}
.hp-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--hp-ease-img); will-change: transform; backface-visibility: hidden; }
.hp-post__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.hp-post__cat {
    align-self: flex-start;
    font-size: var(--hp-fs-tiny); font-weight: 600;
    color: var(--hp-primary-600);
    background: rgba(37, 99, 235, .1);
    padding: 4px 10px; border-radius: 999px;
}
.hp-post__title {
    font-size: var(--hp-fs-title); font-weight: 700; color: var(--hp-ink);
    margin: 0; line-height: 1.5;
}
.hp-post__desc {
    font-size: var(--hp-fs-body); color: var(--hp-muted); line-height: 1.6; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-post__date { font-size: var(--hp-fs-tiny); color: var(--hp-muted); margin-top: auto; }

/* 案例 · 宽屏标杆 + 双卡 */
.hp-cases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.hp-case {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--hp-radius);
    overflow: hidden;
    background: linear-gradient(135deg, #eaf1ff, #f4f7ff);
    box-shadow: var(--hp-shadow-sm);
    text-decoration: none;
    color: #fff;
    min-width: 0;
    transition: transform .3s var(--hp-ease), box-shadow .3s var(--hp-ease);
}
.hp-case:hover { box-shadow: var(--hp-shadow); }
.hp-case img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--hp-ease-img); will-change: transform; backface-visibility: hidden; }
.hp-case:hover img { transform: scale(1.06); }
.hp-case__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,.1) 0%, rgba(15,23,42,.5) 45%, rgba(15,23,42,.92) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 22px; gap: 6px;
}
.hp-case__name { font-size: var(--hp-fs-title); font-weight: 700; margin: 0; color: #fff; }
.hp-case__desc { font-size: var(--hp-fs-body); opacity: .92; margin: 0; line-height: 1.55; color: rgba(255,255,255,.92); }

/* 标杆案例：满宽宽屏分栏 */
.hp-case--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    aspect-ratio: auto;
    min-height: 340px;
}
.hp-case--featured .hp-case__media {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-secondary));
}
.hp-case--featured .hp-case__media img { position: absolute; inset: 0; transition: transform .6s var(--hp-ease-img); will-change: transform; backface-visibility: hidden; }
.hp-case--featured .hp-case__body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: clamp(28px, 4vw, 52px);
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #fff;
}
.hp-case__tag {
    align-self: flex-start;
    font-size: var(--hp-fs-tiny); font-weight: 600; color: #fff;
    background: rgba(37, 99, 235,.95);
    padding: 5px 13px; border-radius: 999px;
}
.hp-case--featured .hp-case__name { font-size: var(--hp-fs-h3); margin: 0; line-height: 1.3; }
.hp-case--featured .hp-case__desc { font-size: var(--hp-fs-body-lg); opacity: .85; line-height: 1.75; margin: 0; max-width: 44ch; }
.hp-case__cta { margin-top: 4px; font-weight: 600; font-size: var(--hp-fs-body); color: #bfdbfe; transition: color .3s var(--hp-ease), transform .3s var(--hp-ease); }
/* 标杆案例 hover：图片缩放 + 右侧文案联动，让左右一起响应 */
.hp-case--featured .hp-case__body { transition: background .35s var(--hp-ease); }
.hp-case--featured:hover .hp-case__cta { color: #fff; transform: translateX(6px); }
.hp-case--featured:hover .hp-case__body { background: linear-gradient(135deg, #1e3a8a, #2563eb); }

/* =============================================================
   客户证言
   ============================================================= */
/* 整屏证言带 */
.hp-testi {
    position: relative;
    background:
        radial-gradient(900px 420px at 50% -12%, rgba(37, 99, 235,.12), transparent 60%),
        linear-gradient(180deg, rgba(124, 140, 248,.07), rgba(37, 99, 235,.06));
    border-top: 1px solid var(--hp-border);
    border-bottom: 1px solid var(--hp-border);
}
.hp-testi .hp-head { text-align: center; }
.hp-testi .hp-head .hp-eyebrow { margin-inline: auto; }

/* 主证言：巨幅居中 */
.hp-testi__lead {
    position: relative;
    max-width: 920px;
    margin: 6px auto 46px;
    text-align: center;
    padding: 0 12px;
}
.hp-testi__lead-mark {
    font-size: 92px; line-height: .45;
    font-family: Georgia, serif;
    color: var(--hp-primary);
    opacity: .22;
    margin-bottom: 6px;
}
.hp-testi__lead-text {
    font-size: var(--hp-fs-lead);
    line-height: 1.62;
    font-weight: 600;
    color: var(--hp-ink);
    margin: 0 0 26px;
    letter-spacing: .2px;
}
.hp-testi__lead-who {
    display: inline-flex; align-items: center; gap: 14px;
    flex-wrap: wrap; justify-content: center;
}
.hp-testi__lead-ava {
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-secondary));
    color: #fff; font-weight: 700; font-size: 18px;
    box-shadow: var(--hp-shadow-sm);
}
.hp-testi__lead-meta { text-align: left; line-height: 1.35; }
.hp-testi__lead-name { display: block; font-weight: 700; color: var(--hp-ink); font-size: var(--hp-fs-body); }
.hp-testi__lead-role { font-size: var(--hp-fs-small); color: var(--hp-muted); }

/* 星级评分 */
.hp-stars {
    color: #fb923c;
    font-size: 15px;
    letter-spacing: 2px;
    line-height: 1;
}

/* 三张证言小卡 */
.hp-quotes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.hp-quote {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 28px 26px 26px;
    border-radius: var(--hp-radius);
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    box-shadow: var(--hp-shadow-sm);
    transition: transform .3s var(--hp-ease), box-shadow .3s var(--hp-ease), border-color .3s;
}
.hp-quote .hp-stars { margin-bottom: 14px; }
.hp-quote__text {
    font-size: var(--hp-fs-body-lg); line-height: 1.8; color: var(--hp-ink-2);
    margin: 0 0 20px;
    flex: 1;
}
.hp-quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.hp-quote__ava {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-secondary));
    color: #fff; font-weight: 700; font-size: var(--hp-fs-body);
}
.hp-quote__name { font-weight: 700; color: var(--hp-ink); font-size: var(--hp-fs-body); }
.hp-quote__role { font-size: var(--hp-fs-small); color: var(--hp-muted); }
.hp-quote:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow); border-color: rgba(37, 99, 235, .4); }

/* FAQ 左侧「合作流程」步骤 —— 横向 4 步卡片，带 hover 交互 */
.faq__steps {
    list-style: none; margin: 0;
    padding: var(--sp-2xl) 0 0;
    border-top: 1px solid rgba(255,255,255,.22);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.faq__steps li {
    position: relative;
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 10px;
    padding: 16px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    transition: transform .4s var(--hp-ease-img), background .35s, border-color .35s, box-shadow .35s;
    cursor: default;
}
.faq__steps li:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.55);
    box-shadow: 0 14px 30px rgba(15,23,42,.25);
}
.faq__step-num {
    position: relative; z-index: 1;
    flex: 0 0 auto;
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff; font-weight: 700; font-size: 15px;
    transition: background .4s var(--hp-ease-img), color .35s, border-color .35s;
}
.faq__steps li:hover .faq__step-num {
    background: #fff; color: var(--hp-primary); border-color: #fff;
}
.faq__step-body { flex: 1 1 auto; }
.faq__step-t { display: block; color: #fff; font-size: var(--hp-fs-body); font-weight: 700; margin-bottom: 4px; }
.faq__step-d { display: block; color: rgba(255,255,255,.82); font-size: var(--hp-fs-small); line-height: 1.55; }
/* 左栏与右栏高度对齐：步骤推到栏底 */
.faq__aside { justify-content: flex-start; }
.faq__steps { margin-top: auto; }

/* 交互增强：标题 / 问题 hover 呼应 */
.hp-post:hover .hp-post__title { color: var(--hp-primary); }
.hp-bento-card:hover .hp-bento__title { color: var(--hp-primary); }
/* 豆包卡 hover 保持白字（不被上方全局蓝字规则覆盖，蓝紫渐变底上蓝字会糊） */
.hp-bento-card--doubao:hover .hp-bento__title,
.hp-bento-card--doubao:hover .hp-bento__link { color: #fff; }
.faq__item summary { cursor: pointer; transition: color .2s; }
.faq__item summary:hover .faq__q { color: #2563eb; }

/* =============================================================
   关于我们
   ============================================================= */
.hp-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 60px);
    align-items: center;
}
.hp-about__media {
    border-radius: var(--hp-radius);
    min-height: 320px;
    background:
        radial-gradient(600px 300px at 70% 20%, rgba(124, 140, 248,.25), transparent 60%),
        linear-gradient(135deg, #2563eb, #1e40af);
    position: relative;
    overflow: hidden;
    box-shadow: var(--hp-shadow);
}
.hp-about__media::after {
    content: "21";
    position: absolute;
    right: -10px; bottom: -40px;
    font-size: 240px; font-weight: 800;
    color: rgba(255,255,255,.14);
    line-height: 1;
}
.hp-about__title { font-size: var(--hp-fs-h2); margin: 0 0 18px; color: var(--hp-ink); }
.hp-about__text { color: var(--hp-muted); line-height: 1.85; font-size: var(--hp-fs-body-lg); margin: 0 0 22px; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.hp-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(37, 99, 235,.08); color: var(--hp-primary-600);
    font-size: var(--hp-fs-body); font-weight: 600;
}
.hp-chip svg { width: 15px; height: 15px; }

/* =============================================================
   CTA 带
   ============================================================= */
.hp-cta {
    position: relative;
    overflow: hidden;
    border-radius: clamp(20px, 3vw, 32px);
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
    background:
        radial-gradient(700px 360px at 85% 10%, rgba(124, 140, 248,.35), transparent 60%),
        linear-gradient(110deg, #2563eb, #1e40af);
    color: #fff;
    text-align: center;
    box-shadow: var(--hp-shadow-lg);
}
.hp-cta__title { font-size: var(--hp-fs-h2); margin: 0 0 14px; }
.hp-cta__desc { font-size: var(--hp-fs-body-lg); opacity: .9; margin: 0 0 28px; }
.hp-cta .hp-btn--ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; }
.hp-cta .hp-btn--ghost:hover { background: rgba(255,255,255,.26); }

/* 查看更多 */
.hp-viewmore { text-align: center; margin-top: 40px; }
.hp-viewmore a {
    color: var(--hp-primary-600);
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--hp-border);
    padding: 12px 30px;
    border-radius: 999px;
    display: inline-block;
    transition: .25s var(--hp-ease);
}
.hp-viewmore a:hover { border-color: var(--hp-primary); background: rgba(37, 99, 235,.06); }

/* =============================================================
   微交互 · 滚动淡入
   ============================================================= */
.hp-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--hp-ease), transform .7s var(--hp-ease);
    will-change: opacity, transform;
}
.hp-reveal.is-in {
    opacity: 1;
    transform: none;
}
.hp-reveal[data-delay="1"] { transition-delay: .08s; }
.hp-reveal[data-delay="2"] { transition-delay: .16s; }
.hp-reveal[data-delay="3"] { transition-delay: .24s; }

/* =============================================================
   响应式断点 (文档规范：≥1024 四列 / 768-1023 两列 / <768 一列)
   ============================================================= */
@media (max-width: 1023px) {
    .hp-hero__grid { grid-template-columns: 1fr; }
    .hp-hero__card { order: -1; }
    .hp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-grid, .hp-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-case--featured { grid-template-columns: 1fr; }
    .hp-case--featured .hp-case__media { min-height: 240px; }
    .hp-about { grid-template-columns: 1fr; }
    .hp-about__media { min-height: 220px; }
}
@media (max-width: 640px) {
    .hp-bento, .hp-cards, .hp-grid, .hp-quotes, .hp-cases { grid-template-columns: minmax(0, 1fr); }
    .hp-bento-card--wide { grid-column: span 1; }
    .hp-case--featured .hp-case__media { min-height: 200px; }
    .hp-case--featured .hp-case__body { padding: 26px 22px; }
    .hp-hero__cta .hp-btn { flex: 1 1 auto; }
    .hp-hero__badges { gap: 18px; }
}

/* 合作动态 · 静态精选卡片（替代滚动跑马灯：现代、可读、SEO 友好、移动端无折叠） */
.hp-dynamics { padding: clamp(44px, 6vw, 76px) 0; background: var(--hp-surface); }
.hp-dynamics__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; margin-bottom: 30px; flex-wrap: wrap;
}
.hp-dynamics__head .hp-head { margin-bottom: 0; }
.hp-dynamics__all {
    flex: 0 0 auto; font-weight: 600; color: var(--hp-primary);
    text-decoration: none; transition: color .3s var(--hp-ease-img), gap .3s var(--hp-ease-img); white-space: nowrap;
}
.hp-dynamics__all:hover { color: var(--hp-primary-600); }
.hp-dynamics__grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.hp-dynamics__card {
    display: flex; flex-direction: column; min-width: 0;
    padding: 22px;
    background: var(--hp-bg);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    text-decoration: none;
    --d-ease: cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    transition:
        transform .42s var(--d-ease),
        box-shadow .42s var(--d-ease),
        border-color .42s var(--d-ease),
        background .42s var(--d-ease);
}
.hp-dynamics__card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: var(--hp-primary);
    box-shadow: var(--hp-shadow);
    background: #fff;
}
.hp-dynamics__tag {
    align-self: flex-start; margin-bottom: 14px;
    font-size: var(--hp-fs-tiny); font-weight: 700; letter-spacing: .04em;
    color: var(--hp-primary); background: rgba(37, 99, 235, .1);
    padding: 5px 12px; border-radius: 999px;
    transition: background .42s var(--d-ease), color .42s var(--d-ease);
}
.hp-dynamics__card:hover .hp-dynamics__tag { background: rgba(37, 99, 235, .16); }
.hp-dynamics__title {
    margin: 0; font-size: var(--hp-fs-title); font-weight: 700; line-height: 1.55;
    color: var(--hp-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .42s var(--d-ease);
}
.hp-dynamics__card:hover .hp-dynamics__title { color: var(--hp-primary); }
.hp-dynamics__more {
    margin-top: auto; padding-top: 16px;
    font-size: var(--hp-fs-body); font-weight: 600; color: var(--hp-ink-2);
    display: inline-flex; align-items: center; gap: 6px;
    transition: gap .42s var(--d-ease), color .42s var(--d-ease);
}
.hp-dynamics__card:hover .hp-dynamics__more { color: var(--hp-primary); gap: 12px; }
@media (max-width: 640px) {
    .hp-dynamics__grid { grid-template-columns: minmax(0, 1fr); }
}

/* =============================================================
   滚动进度条 + HERO 信任条 + 吸底导航 CTA
   ============================================================= */
/* 顶部滚动进度条 */
.hp-scrollbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: rgba(37, 99, 235, .08);
    z-index: 1080;
    pointer-events: none;
}
.hp-scrollbar__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--hp-primary), var(--hp-secondary));
    transition: width .12s linear;
}
/* 现代浏览器：用 CSS 滚动驱动动画驱动进度条，零 JS 主线程开销；
   不支持时回退到下方 JS 监听（设置 width）。 */
@supports (animation-timeline: scroll()) {
    .hp-scrollbar__fill {
        width: 100%;
        transform: scaleX(0);
        transform-origin: 0 50%;
        animation: hp-scroll-progress linear both;
        animation-timeline: scroll(root block);
        transition: none;
    }
    @keyframes hp-scroll-progress {
        from { transform: scaleX(0); }
        to { transform: scaleX(1); }
    }
}

/* HERO 信任条：首屏下方信任保障带 */
.hp-trust {
    background: linear-gradient(180deg, #eef3ff, var(--hp-bg));
    border-bottom: 1px solid var(--hp-border);
}
.hp-trust__list {
    list-style: none;
    margin: 0;
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 30px;
}
.hp-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: var(--hp-fs-body);
    font-weight: 600;
    color: var(--hp-ink-2);
    white-space: nowrap;
}
.hp-trust__item svg { width: 18px; height: 18px; color: var(--hp-primary); flex: 0 0 auto; }

/* 吸底导航 CTA：滚动过首屏后从底部浮现，临近页脚自动隐藏 */
.hp-stickycta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1010;
    transform: translateY(110%);
    transition: transform .4s var(--hp-ease);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--hp-border);
    box-shadow: 0 -8px 30px -16px rgba(15, 23, 42, .35);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.hp-stickycta.is-visible { transform: translateY(0); }
.hp-stickycta__inner {
    max-width: var(--hp-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px var(--sp-2xl);
}
.hp-stickycta__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.hp-stickycta__logo {
    flex: 0 0 auto;
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-primary-600));
    color: #fff; font-weight: 800; font-size: 17px;
}
.hp-stickycta__brand-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.hp-stickycta__brand-txt strong { font-size: var(--hp-fs-body); color: var(--hp-ink); }
.hp-stickycta__brand-txt small { font-size: var(--hp-fs-tiny); color: var(--hp-muted); white-space: nowrap; }
.hp-stickycta__nav { display: flex; gap: 22px; margin: 0 auto; }
.hp-stickycta__nav a { color: var(--hp-ink-2); text-decoration: none; font-size: var(--hp-fs-body); font-weight: 600; transition: color .2s; white-space: nowrap; }
.hp-stickycta__nav a:hover { color: var(--hp-primary); }
.hp-stickycta__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.hp-stickycta__tel { font-weight: 700; color: var(--hp-primary-600); text-decoration: none; font-size: var(--hp-fs-body); white-space: nowrap; }
.hp-stickycta .hp-btn--primary { padding: 11px 22px; font-size: var(--hp-fs-btn); }

@media (max-width: 1023px) {
    .hp-stickycta__nav { display: none; }
}
@media (max-width: 640px) {
    /* 移动端信任条：2 列卡片网格（图标置顶、文字可换行，替代拥挤的横向折行） */
    .hp-trust__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 14px 0;
    }
    .hp-trust__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 14px 15px;
        background: #fff;
        border: 1px solid var(--hp-border);
        border-radius: 14px;
        box-shadow: 0 4px 14px -8px rgba(37, 99, 235, .18);
        white-space: normal;
        font-size: var(--hp-fs-body);
        line-height: 1.55;
        min-height: 74px;
    }
    .hp-trust__item svg { width: 22px; height: 22px; }
    .hp-stickycta__brand-txt small { display: none; }
    .hp-stickycta__tel { display: none; }
    .hp-stickycta__inner { padding: 9px 14px; gap: 12px; }
    .hp-stickycta .hp-btn--primary { flex: 1 1 auto; padding: 12px 18px; }

    /* —— 移动端：吸底CTA 不遮挡右侧悬浮(返回顶部/微信/电话)按钮 ——
       吸底CTA(.hp-stickycta,bottom:0) 与右下悬浮(.sidebar-bar) 都贴底且
       吸底 z-index(1010)>悬浮(1001)，会把返回顶部按钮盖住。
       用 :has() 在吸底可见时把悬浮栏整体抬到吸底CTA上方。 */
    @supports (selector(:has(*))) {
        body:has(.hp-stickycta.is-visible) .sidebar-bar {
            bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        }
    }
    /* 兼容不支持 :has() 的旧浏览器：直接把悬浮栏底部抬高，
       虽在吸底隐藏时也偏高一点点，但保证返回顶部永远可见可点 */
    .sidebar-bar {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    }
    @supports (selector(:has(*))) {
        body:not(:has(.hp-stickycta.is-visible)) .sidebar-bar {
            bottom: calc(var(--sp-lg, 12px) + env(safe-area-inset-bottom, 0px));
        }
    }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hp-reveal { opacity: 1; transform: none; }
    .hp-dynamics__card { transition: none; }
    .hp-scrollbar__fill { transition: none; }
    .hp-stickycta { transition: none; }
}

/* =============================================================
   移动端溢出兜底（防横向滚动）
   ============================================================= */
img, svg, video, canvas, iframe { max-width: 100%; }
html, body { overflow-x: hidden; }
/* 网格/弹性子项允许收缩到内容以下，根绝 1fr 列被内容撑破 */
.hp-bento-card,
.hp-adv,
.hp-post,
.hp-quote,
.hp-about > * { min-width: 0; }
@media (max-width: 640px) {
    .hp-container { padding-inline: 16px; }
    .hp-hero__title { letter-spacing: -.01em; }
    .faq__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* 字号由 :root 流体体系（--hp-fs-*）自动随视口缩放，此处不再用固定 px 覆盖 */

    /* —— 移动端最小触控热区：可点目标 ≥44px（Apple HIG / WCAG 2.5.5）—— */
    .hp-btn, .hp-stickycta a, .hp-bento-card, .hp-post, .hp-case, .hp-quote, .hp-dynamics__card { min-height: 44px; }
    .nav-toggle { min-height: 44px; }
}

/* 超小屏（≤480px）二次收紧间距；字号由流体体系自动缩放，仅保留布局规则 */
@media (max-width: 480px) {
    /* 超小屏信任条转单列堆叠，每项更舒展，避免 2 列挤压 */
    .hp-trust__list { grid-template-columns: 1fr; gap: 9px; }
    .hp-trust__item { min-height: 0; }

    /* —— 超小屏专注排版防挤 —— */
    .hp-hero__badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
    .hp-hero__badges .hp-badge { justify-content: center; }
}
