/* ==========================================================================
   关投强 - 首页样式
   ========================================================================== */

/* ========== Hero ========== */
/* 深色区块（2026-09-12 二次换版）：底走 --c-dark-grad，前景纯蓝白，深底不再用橙色 */
.hero {
    position: relative;
    background: var(--c-dark-grad);
    color: #fff;
    overflow: hidden;
    padding: 80px 0 120px;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.hero::after {
    content: ""; position: absolute; right: -200px; top: -100px; width: 800px; height: 800px;
    background: radial-gradient(circle, var(--c-dark-glow), transparent 60%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
/* .hero-eyebrow / .hero-eyebrow .dot 已收口到 common.css
   （faq.html 是全站唯一不引 home.css 的页面，写在那边会让它的 banner 丢样式）
   改这两条规则请去 common.css 的「banner 上方的小标签」处。 */
.hero h1 {
    font-size: 56px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.15;
    margin-bottom: 20px;
}
.hero h1 .accent { background: linear-gradient(135deg, #A9C6FF, #FFFFFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub {
    font-size: 20px; color: var(--c-dark-on-sub); line-height: 1.6; margin-bottom: 36px; max-width: 540px;
}
.hero .sub b { color: var(--c-dark-on-hi); font-weight: 700; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
    margin-top: 56px; padding-top: 32px;
    border-top: 1px solid var(--c-dark-line);
}
.hero-stat .num { font-size: 32px; font-weight: 800; color: var(--c-dark-on); letter-spacing: -.5px; text-shadow: 0 0 22px rgba(140,175,255,.55); }
.hero-stat .label { font-size: 13px; color: var(--c-dark-on-sub); margin-top: 2px; }

/* Hero 右侧:媒体云示意
   2026-10-20 动效优化（甲方：右边的媒体动效再优化一下）：
     · 加「同心轨道 + 中心光晕 + 18s 一圈的极淡扫光」⇒ 从「散落标签」变成「围着调度中心的媒体网络」
     · 气泡改为**差速漂浮**（每颗自己的时长 / 幅度 / 相位），原先是同一段 6s 动画 + 延迟，看着像整体在抖
     · 「实时」绿点由 `display:block`（会把气泡撑成两行）改为 inline，气泡恢复单行胶囊
     · 悬停整块暂停 + 被指到的那颗放大，便于阅读；全部只动 transform / opacity，走 GPU 合成
     · `prefers-reduced-motion` 下三条动画全停（见本节末尾） */
.hero-visual {
    position: relative; height: 480px;
    /* 2026-10-20 G60：底图换成真实照片后，近乎透明的白色面板会让白胶囊与场景互相打架
       ⇒ 改成深色玻璃（海军蓝 + 轻微背景模糊），把它明确成「一层界面」而不是照片的一部分 */
    background: rgba(9,20,52,.42);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-xl);
    padding: 32px;
    overflow: hidden;
    isolation: isolate;   /* 伪元素的 z-index 不参与外层层叠 */
}
.hero-visual::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(76,125,255,.17), rgba(76,125,255,0) 58%),
        radial-gradient(circle at 50% 50%,
            transparent 0 111px, rgba(255,255,255,.10) 112px 113px, transparent 114px),
        radial-gradient(circle at 50% 50%,
            transparent 0 171px, rgba(255,255,255,.06) 172px 173px, transparent 174px);
}
.hero-visual::after {
    content: ""; position: absolute; inset: -25%; z-index: 0; pointer-events: none;
    background: conic-gradient(from 0deg,
        rgba(140,175,255,0) 0deg, rgba(140,175,255,.10) 42deg,
        rgba(140,175,255,0) 78deg, rgba(140,175,255,0) 360deg);
    animation: orbitSweep 18s linear infinite;
}
@keyframes orbitSweep {
    to { transform: rotate(1turn); }
}
.media-bubble {
    --dur: 7.5s; --delay: 0s; --dx: 4px; --dy: -10px; --scale: 1;
    position: absolute; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px; border-radius: 22px; white-space: nowrap;
    background: rgba(255,255,255,.95); color: var(--c-text);
    font-size: 13px; font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    transform: translate3d(0, 0, 0) scale(var(--scale));
    animation: bubbleDrift var(--dur) ease-in-out var(--delay) infinite;
    will-change: transform;
    transition: box-shadow .25s ease;
}
.media-bubble > svg {
    width: 15px; height: 15px; flex-shrink: 0;
}
/* 「实时」绿点：inline 跟随文案（原 display:block 会另起一行、把胶囊撑高） */
.media-bubble::after {
    content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
    background: var(--c-success);
    box-shadow: 0 0 0 0 rgba(82,196,26,.55);
    animation: liveDot 2.4s ease-out infinite;
}
.media-bubble.acc { background: #4C7DFF; color: #fff; }
.media-bubble.pri { background: var(--c-primary); color: #fff; }
/* 三个关键帧点不等距（38% / 72%）⇒ 不会出现整齐的「一起上下」 */
@keyframes bubbleDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(var(--scale)); }
    38%      { transform: translate3d(var(--dx), var(--dy), 0) scale(var(--scale)); }
    72%      { transform: translate3d(calc(var(--dx) * -0.55), calc(var(--dy) * 0.5), 0) scale(var(--scale)); }
}
@keyframes liveDot {
    0%       { box-shadow: 0 0 0 0 rgba(82,196,26,.5); }
    70%, 100% { box-shadow: 0 0 0 5px rgba(82,196,26,0); }
}
/* 悬停：整块停住便于阅读，被指到的那颗轻微放大并浮到最上层 */
.hero-visual:hover .media-bubble,
.hero-visual:hover .hero-visual-center { animation-play-state: paused; }
.media-bubble:hover { --scale: 1.07; z-index: 3; box-shadow: 0 14px 34px rgba(0,0,0,.34); }

.hero-visual-center {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
    width: 140px; height: 140px; border-radius: 50%;
    background: linear-gradient(135deg, #1B3FA8, #4C7DFF);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 12px 40px rgba(76,125,255,.45);
    animation: pulse 3s ease-in-out infinite;
}
.hero-visual-center b { font-size: 28px; font-weight: 800; }
.hero-visual-center span { font-size: 11px; opacity: .85; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 12px 40px rgba(76,125,255,.45); }
    50% { box-shadow: 0 12px 60px rgba(76,125,255,.75); }
}
/* 声明「关掉动效」就真的全关：不动的轨道 + 不动的气泡 + 不呼吸的绿点 */
@media (prefers-reduced-motion: reduce) {
    .hero-visual::after,
    .media-bubble,
    .media-bubble::after,
    .hero-visual-center { animation: none; }
}

/* ========== 信任背书 ========== */
.trustbar { background: #fff; padding: 40px 0; border-bottom: 1px solid var(--c-line); }
.trustbar .container { display: flex; align-items: center; gap: 40px; }
.trustbar .label { font-size: 14px; color: var(--c-text-sub); font-weight: 500; white-space: nowrap; }
.trustbar .label::before { content: "✦"; color: var(--c-accent); margin-right: 8px; }
.trustbar .logos { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trustbar .logos span {
    color: var(--c-text-mute); font-size: 18px; font-weight: 700; letter-spacing: 1px;
    opacity: .7; transition: opacity .2s;
}
.trustbar .logos span:hover { opacity: 1; color: var(--c-primary); }

/* ========== 核心优势 4 卡 ========== */
.feature-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature-card {
    padding: 36px 28px; background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
    border: 1px solid var(--c-line);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--c-primary-light); color: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card.alt .feature-icon { background: var(--c-accent-light); color: var(--c-accent); }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--c-text-sub); line-height: 1.7; }
.feature-card .more { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--c-primary); font-weight: 500; }

/* ========== 资源类型 ========== */
.media-types {
    background: linear-gradient(180deg, #F7F9FC, #fff);
}
.types-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.type-card {
    background: #fff; border-radius: var(--radius-lg); padding: 32px;
    border: 1px solid var(--c-line); position: relative; overflow: hidden;
    transition: all .3s;
}
.type-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow-md); }
.type-card .badge {
    position: absolute; right: 16px; top: 16px;
    font-size: 12px; padding: 4px 10px; border-radius: 10px;
    background: var(--c-accent-light); color: var(--c-accent); font-weight: 600;
}
.type-card .icon {
    display: flex; align-items: center;
    height: 46px; margin-bottom: 16px; color: var(--c-primary);
}
.type-card .icon svg { width: 38px; height: 38px; }
.type-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.type-card p { font-size: 14px; color: var(--c-text-sub); margin-bottom: 20px; }
.type-list { font-size: 14px; color: var(--c-text-sub); }
.type-list li {
    padding: 6px 0; display: flex; justify-content: space-between;
    border-bottom: 1px dashed var(--c-line);
}
.type-list li:last-child { border-bottom: 0; }
.type-list .count { color: var(--c-primary); font-weight: 600; }

/* ========== 发稿流程 ========== */
.flow-section { background: var(--c-dark-grad); color: #fff; position: relative; overflow: hidden; }
.flow-section .section-head h2 { color: #fff; }
.flow-section .section-head p { color: rgba(255,255,255,.7); }
.flow-section::before {
    content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.1), transparent);
}
.flow-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative;
}
.flow-step {
    text-align: center; position: relative; z-index: 1;
}
.flow-step .num {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--c-primary), #266FE8);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; color: #fff;
    box-shadow: 0 8px 24px rgba(0,82,217,.4);
}
.flow-step:nth-child(even) .num { background: linear-gradient(135deg, #2A55E0, #6C93FF); box-shadow: 0 8px 24px rgba(76,125,255,.45); }
.flow-step h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: rgba(255,255,255,.6); }

/* ========== 客户案例 ========== */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--c-line); transition: all .3s;
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.case-cover {
    height: 180px; position: relative;
    background: linear-gradient(135deg, #0052D9, #266FE8);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 36px;
}
/* 案例卡 banner 图（2026-09-21）：has-banner 变体仅用于案例封面；
   资讯卡（c4-c6 + emoji）不受影响 */
.case-cover img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.case-cover.has-banner::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(160deg, rgba(16,42,100,.60) 0%, rgba(0,82,217,.24) 55%, rgba(0,31,79,.38) 100%);
}
.case-cover.c2 { background: linear-gradient(135deg, #F19500, #FFC24D); }
.case-cover.c3 { background: linear-gradient(135deg, #00A870, #43C69B); }
.case-cover.c4 { background: linear-gradient(135deg, #5A4FCF, #9E97F5); }
.case-cover.c5 { background: linear-gradient(135deg, #0C7CE2, #6BB6F5); }
.case-cover.c6 { background: linear-gradient(135deg, #101F4F, #2B4A8F); }
.case-cover .tag {
    position: absolute; left: 16px; top: 16px; z-index: 2;
    background: rgba(255,255,255,.2); color: #fff;
    font-size: 12px; padding: 4px 12px; border-radius: 10px; backdrop-filter: blur(8px);
}
.case-body { padding: 24px; }
.case-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.case-meta { display: flex; gap: 12px; font-size: 13px; color: var(--c-text-mute); margin-bottom: 12px; }
.case-meta span::before { content: "·"; margin-right: 8px; color: var(--c-line); }
.case-meta span:first-child::before { display: none; }
.case-body p { font-size: 14px; color: var(--c-text-sub); line-height: 1.7; margin-bottom: 16px; }
.case-stat { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px dashed var(--c-line); }
.case-stat div b { font-size: 20px; color: var(--c-accent); font-weight: 800; display: block; }
.case-stat div span { font-size: 12px; color: var(--c-text-mute); }

/* ========== CTA ========== */
/* .cta-section（底部咨询 CTA）已上移为全站唯一真源 → assets/css/common.css
   原因：65 个案例详情页不加载本文件，若继续定义在此会导致其 CTA 丢样式 */

/* Hero 媒体数据流位置 + 每颗自己的漂浮参数（时长 / 幅度 / 相位）
   ⚠ 实测（1440 视口）：舞台 490.9×480，中心圆 140px 占 x[175,315] / y[170,310]。
     最宽的一颗「今日头条 · 推荐 5w+」实测 181px ⇒ **放不进中段的左右窄栏**
     （左窄栏只有 ~175px 宽，还要留呼吸缝），只能待在上/下缘；
     原先放 y 中段（top 35%）正圆边界算下来仍压到圆边 ~9px，本轮挪到下缘 26%。
   2026-10-20：排成「左 3 + 右 3 + 中 2（圆上 / 圆下）」——
     左：b1(6%) / b5(45%) / b3(74%)　右：b2(15%) / b4(45%) / b6(86%)
     中：b8(圆上 19%) / b7(圆下 71%) */
.b1 { top: 6%;  left: 4%;   --dur: 8.4s; --delay: 0s;    --dy: -12px; --dx: 5px; }
.b2 { top: 15%; right: 5%;  --dur: 6.8s; --delay: .45s;  --dy: -8px;  --dx: -6px; }
.b3 { bottom: 26%; left: 2%;  --dur: 9.2s; --delay: 1.1s;  --dy: -10px; --dx: 4px; }
.b4 { top: 45%; right: 2%;  --dur: 7.6s; --delay: 1.7s;  --dy: -11px; --dx: -4px; }
.b5 { top: 45%; left: 2%;   --dur: 8.0s; --delay: 2.2s;  --dy: -9px;  --dx: 5px; }
.b6 { bottom: 8%;  right: 5%; --dur: 7.1s; --delay: 2.7s; --dy: -13px; --dx: -5px; }
.b7 { bottom: 12%; left: 22%; --dur: 9.6s; --delay: 1.35s; --dy: -7px; --dx: 6px; }
.b8 { top: 19%;   left: 33%;  --dur: 6.5s; --delay: .75s; --dy: -10px; --dx: -3px; }

/* 响应式 */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .types-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .flow-grid { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 40px; }
}
@media (max-width: 768px) {
    .hero { padding: 60px 0 80px; }
    .hero h1 { font-size: 32px; }
    .hero .sub { font-size: 16px; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
    .feature-grid, .types-grid, .cases-grid { grid-template-columns: 1fr; }
    .flow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero { padding: 44px 0 56px; }
    .hero h1 { font-size: 26px; line-height: 1.35; }
    .hero .sub { font-size: 15px; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .flow-grid { grid-template-columns: 1fr; }
    .trustbar { flex-wrap: wrap; gap: 10px 18px; }
}
/* 首页「产品服务」板块标题防拆词（2026-10-20）
   抬头末段在 390px 会把品牌术语在「GEO」与「营销」之间断开，读起来像两个词。
   只给这个短串套 `.nb`，**不动** `.section-head h2` 的断行策略 ——
   全局 `word-break: keep-all` 会让整段中文失去断行机会（2026-10-19 实踩：4 列网格溢出）。 */
.section-head h2 .nb { white-space: nowrap; }
