/* ==========================================================================
   关投强 - GEO 发稿专题页样式
   依赖: common.css（CSS 变量与公共组件）
   ========================================================================== */

/* ========== Banner 数据条 ========== */
.geo-banner-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    margin-top: 40px; max-width: 780px;
}
.geo-banner-stat {
    padding: 20px 24px; border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
}
.geo-banner-stat b {
    display: block; font-size: 30px; font-weight: 800; line-height: 1.1;
    color: var(--c-dark-on); letter-spacing: -.5px;
    text-shadow: 0 0 22px rgba(140,175,255,.5);
}
.geo-banner-stat b em { font-style: normal; font-size: 16px; margin-left: 2px; }
.geo-banner-stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--c-dark-on-sub); }

/* ========== 通用小标题 ========== */
.geo-kicker {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1px;
    color: var(--c-primary); background: var(--c-primary-light);
    padding: 5px 14px; border-radius: 12px; margin-bottom: 16px;
}
.geo-lead-sub { font-size: 17px; color: var(--c-text-sub); line-height: 1.85; }

/* ========== 趋势：搜索入口重构 ========== */
.geo-shift { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.geo-shift h2 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; line-height: 1.3; margin-bottom: 20px; }
.geo-shift h2 .hl { color: var(--c-accent); }
.geo-shift p { font-size: 16px; color: var(--c-text-sub); line-height: 1.9; margin-bottom: 16px; }
.geo-shift p b { color: var(--c-text); font-weight: 700; }

.geo-compare-mini {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px;
}
.geo-compare-mini div {
    padding: 18px 20px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.7;
    border: 1px solid var(--c-line); background: #fff;
}
.geo-compare-mini div.old { color: var(--c-text-mute); }
.geo-compare-mini div.new {
    border-color: rgba(0,82,217, .35); background: var(--c-primary-light); color: var(--c-text);
}
.geo-compare-mini strong { display: block; font-size: 13px; margin-bottom: 6px; font-weight: 700; }
.geo-compare-mini .old strong { color: var(--c-text-mute); }
.geo-compare-mini .new strong { color: var(--c-primary); }

/* AI 回答模拟框 */
.geo-aibox {
    border-radius: var(--radius-xl); overflow: hidden;
    border: 1px solid var(--c-line); box-shadow: var(--shadow-md); background: #fff;
}
.geo-aibox-head {
    padding: 14px 22px; background: var(--c-bg-soft); border-bottom: 1px solid var(--c-line);
    display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-text-mute);
}
.geo-aibox-head .dots { display: flex; gap: 5px; }
.geo-aibox-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line); }
.geo-aibox-head .dots i:first-child { background: #F26D78; }
.geo-aibox-head .dots i:nth-child(2) { background: #ED9A1F; }
.geo-aibox-head .dots i:nth-child(3) { background: var(--c-success); }
.geo-aibox-body { padding: 26px 24px; font-size: 15px; line-height: 1.95; color: var(--c-text-sub); }
.geo-aibox-body .ask {
    font-size: 15px; font-weight: 600; color: var(--c-text);
    padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px dashed var(--c-line);
}
.geo-aibox-body .ask::before { content: "Q"; color: var(--c-primary); font-weight: 800; margin-right: 8px; }
.geo-aibox-body mark {
    background: rgba(241,149,0, .16); color: var(--c-accent);
    font-weight: 700; padding: 1px 5px; border-radius: 4px;
}
.geo-aibox-body .cite {
    display: block; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--c-line);
    font-size: 12.5px; color: var(--c-text-mute);
}
.geo-aibox-body .cite span {
    display: inline-block; padding: 3px 10px; border-radius: 8px;
    background: var(--c-bg-soft); border: 1px solid var(--c-line); margin: 0 6px 6px 0;
}

/* ========== 定义 + 对比表 ========== */
.geo-def {
    display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start;
}
.geo-def-card {
    padding: 32px 28px; border-radius: var(--radius-lg);
    background: var(--c-dark-grad); color: #fff;
    position: sticky; top: 24px;
}
.geo-def-card .abbr {
    font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--c-dark-on-hi);
    text-transform: uppercase;
}
.geo-def-card h3 { font-size: 26px; font-weight: 800; margin: 10px 0 14px; line-height: 1.35; }
.geo-def-card p { font-size: 14px; line-height: 1.85; color: var(--c-dark-on-sub); }
.geo-def-card .en {
    margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: 12.5px; color: rgba(255, 255, 255, .55); line-height: 1.7;
}

.geo-table-wrap { border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; }
table.geo-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.geo-table th, table.geo-table td {
    padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top;
}
table.geo-table thead th {
    background: var(--c-bg-soft); font-size: 13px; font-weight: 700; color: var(--c-text-sub);
    letter-spacing: .3px;
}
table.geo-table thead th:nth-child(2) { color: var(--c-text-mute); }
table.geo-table thead th:nth-child(3) { color: var(--c-primary); }
table.geo-table tbody tr:last-child td { border-bottom: 0; }
table.geo-table tbody td:first-child { font-weight: 600; color: var(--c-text); width: 132px; }
table.geo-table tbody td:nth-child(2) { color: var(--c-text-mute); }
table.geo-table tbody td:nth-child(3) { color: var(--c-text-sub); background: rgba(0,82,217, .03); }
table.geo-table tbody td:nth-child(3) b { color: var(--c-primary); }

/* ========== AI 选源原理 4 步 ========== */
.geo-flow-section { background: var(--c-dark-grad); color: #fff; position: relative; overflow: hidden; }
.geo-flow-section::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
}
.geo-flow-section .container { position: relative; z-index: 1; }
.geo-flow-section .section-head h2 { color: #fff; }
.geo-flow-section .section-head p { color: rgba(255, 255, 255, .68); }
.geo-flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.geo-flow-card {
    padding: 30px 24px; border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
    transition: background .3s, transform .3s;
}
.geo-flow-card:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.geo-flow-card .idx {
    font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--c-dark-on-hi);
    display: block; margin-bottom: 14px;
}
.geo-flow-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.geo-flow-card p { font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, .66); }
.geo-flow-note {
    margin-top: 32px; padding: 22px 26px; border-radius: var(--radius-lg);
    background: rgba(120,160,255, .14); border: 1px solid rgba(120,160,255, .38);
    font-size: 15px; line-height: 1.85; color: rgba(255, 255, 255, .88);
}
.geo-flow-note b { color: var(--c-dark-on-hi); }

/* ========== 为什么发稿是核心抓手 ========== */
.geo-value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.geo-value-card {
    display: flex; gap: 18px; padding: 28px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.geo-value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.geo-value-card .ico {
    flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px;
    background: var(--c-primary-light); color: var(--c-primary);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.geo-value-card.alt .ico { background: var(--c-accent-light); color: var(--c-accent); }
.geo-value-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.geo-value-card p { font-size: 14px; color: var(--c-text-sub); line-height: 1.8; }

/* ========== 五步法 ========== */
.geo-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: gs; }
.geo-step {
    position: relative; padding: 30px 22px 26px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow-sm);
}
.geo-step::after {
    content: ""; position: absolute; top: 44px; right: -18px; width: 18px; height: 2px;
    background: linear-gradient(90deg, var(--c-line), transparent);
}
.geo-step:last-child::after { display: none; }
.geo-step .n {
    width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--c-primary), #266FE8); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 800;
}
.geo-step:nth-child(even) .n { background: linear-gradient(135deg, var(--c-accent), #FFC24D); }
.geo-step h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.geo-step p { font-size: 13.5px; color: var(--c-text-sub); line-height: 1.8; }
.geo-step .out {
    display: block; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--c-line);
    font-size: 12.5px; color: var(--c-text-mute);
}
.geo-step .out b { color: var(--c-primary); font-weight: 600; }

/* ========== GEO 基础设施（深色） ========== */
.geo-infra { background: linear-gradient(180deg, var(--c-dark-deep) 0%, var(--c-dark-deep-2) 100%); color: #fff; }
.geo-infra .section-head h2 { color: #fff; }
.geo-infra .section-head p { color: var(--c-dark-on-sub); }
.geo-infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.geo-infra-item {
    padding: 26px 24px; border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.geo-infra-item .tagline {
    display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
    color: var(--c-success); background: rgba(0,168,112, .14);
    padding: 3px 10px; border-radius: 8px; margin-bottom: 14px;
}
.geo-infra-item h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.geo-infra-item p { font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, .66); }
.geo-infra-item code {
    display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 6px;
    background: rgba(255, 255, 255, .08); font-size: 12.5px; color: #A8C6FF;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.geo-infra-foot {
    margin-top: 28px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .6);
}
.geo-infra-foot a { color: var(--c-dark-on-hi); font-weight: 600; }

/* ========== 服务交付 ========== */
.geo-svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.geo-svc {
    padding: 30px 24px; border-radius: var(--radius-lg); background: var(--c-bg-soft);
    border: 1px solid var(--c-line); transition: background .3s, border-color .3s;
}
.geo-svc:hover { background: #fff; border-color: var(--c-primary); }
.geo-svc .ico {
    width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--c-primary);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.geo-svc h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.geo-svc ul { font-size: 13.5px; color: var(--c-text-sub); }
.geo-svc ul li { padding: 5px 0 5px 16px; position: relative; line-height: 1.7; }
.geo-svc ul li::before {
    content: ""; position: absolute; left: 0; top: 12px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); opacity: .55;
}

/* ========== FAQ ========== */
.geo-faq { max-width: 900px; margin: 0 auto; }
.geo-faq-item {
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md);
    margin-bottom: 14px; overflow: hidden;
}
.geo-faq-item summary {
    padding: 20px 24px; font-size: 16px; font-weight: 600; cursor: pointer;
    list-style: none; position: relative; padding-right: 56px;
}
.geo-faq-item summary::-webkit-details-marker { display: none; }
.geo-faq-item summary::after {
    content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
    font-size: 22px; font-weight: 400; color: var(--c-primary); line-height: 1;
}
.geo-faq-item[open] { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.geo-faq-item[open] summary::after { content: "−"; }
.geo-faq-item[open] summary { color: var(--c-primary); }
.geo-faq-a { padding: 0 24px 22px; font-size: 14.5px; line-height: 1.9; color: var(--c-text-sub); }
.geo-faq-a b { color: var(--c-text); }

/* ========== 数据口径说明 ========== */
.geo-note {
    font-size: 12.5px; color: var(--c-text-mute); line-height: 1.8;
    padding: 16px 20px; border-radius: var(--radius-md);
    background: var(--c-bg-soft); border-left: 3px solid var(--c-line);
}
.geo-note b { color: var(--c-text-sub); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .geo-banner-stats { grid-template-columns: 1fr 1fr; }
    .geo-shift { grid-template-columns: 1fr; gap: 36px; }
    .geo-def { grid-template-columns: 1fr; gap: 28px; }
    .geo-def-card { position: static; }
    .geo-flow-grid { grid-template-columns: repeat(2, 1fr); }
    .geo-value-grid { grid-template-columns: 1fr; }
    .geo-steps { grid-template-columns: repeat(3, 1fr); }
    .geo-step::after { display: none; }
    .geo-infra-grid { grid-template-columns: repeat(2, 1fr); }
    .geo-svc-grid { grid-template-columns: repeat(2, 1fr); }
    .geo-shift h2 { font-size: 28px; }
}
@media (max-width: 768px) {
    .geo-banner-stats { grid-template-columns: 1fr; gap: 14px; }
    .geo-compare-mini { grid-template-columns: 1fr; }
    .geo-flow-grid, .geo-steps, .geo-infra-grid, .geo-svc-grid { grid-template-columns: 1fr; }
    .geo-shift h2 { font-size: 24px; }
    .geo-def-card h3 { font-size: 22px; }
    table.geo-table thead { display: none; }
    table.geo-table tbody td { display: block; width: auto !important; border-bottom: 0; padding: 6px 18px; }
    table.geo-table tbody tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
    table.geo-table tbody tr:last-child { border-bottom: 0; }
    table.geo-table tbody td:first-child { padding-top: 0; }
}

/* ---------------------------------------------------------------------------
   承诺边界（2026-10-15 需求文档 T11 §5.2 第 4 项）
   ⚠ 只用既有色板变量，不引入新颜色：
      · 卡片底 #fff / 描边 var(--c-line)（与 .geo-compare-mini 同款语言）
      · 「可以承诺的」= 主色淡底 --c-primary-light #ECF2FE + 主色描边
      · 「不做承诺的」= 中性 --c-bg-soft #F5F5F5
   ⚠ 对比度**手算**（WCAG 2.1 AA）。本区块在白/浅底上，**无核验兜底**
      （tools/_verify_dark.py 只扫深色块）⇒ 算式留在这里，改动须重算：
        · h3  --c-text #1A1A1A  / #fff        L=0.01033 → (1+0.05)/(0.01033+0.05)   = 17.4:1 ✅
        · h3  --c-text #1A1A1A  / #F5F5F5     L=0.91306 →                           = 16.0:1 ✅
        · h3  --c-primary #0052D9 / #ECF2FE   L=0.11035 →                           =  5.8:1 ✅
        · span --c-text-sub #666 / #fff       L=0.13290 →                           =  5.7:1 ✅
        · span --c-text-sub #666 / #F5F5F5                                          =  5.3:1 ✅
        · span --c-text-sub #666 / #ECF2FE                                          =  5.1:1 ✅
      最不利项 5.1:1 ≥ AA 正文 4.5:1。
   ⚠ 两列用 grid 默认 align-items:stretch 保证同行等高；移动端单列。
   --------------------------------------------------------------------------- */
.geo-boundary { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.geo-boundary-col {
    border: 1px solid var(--c-line); border-radius: var(--radius-lg);
    padding: 24px 26px; background: #fff;
}
.geo-boundary-col.yes { border-color: rgba(0,82,217,.35); background: var(--c-primary-light); }
.geo-boundary-col.no { background: var(--c-bg-soft); }
.geo-boundary-col h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--c-text); }
.geo-boundary-col.yes h3 { color: var(--c-primary); }
.geo-boundary-col ul { list-style: none; }
.geo-boundary-col ul li {
    position: relative; padding: 12px 0 12px 20px;
    border-top: 1px dashed var(--c-line);
}
.geo-boundary-col ul li:first-child { border-top: 0; padding-top: 0; }
.geo-boundary-col ul li::before {
    content: ""; position: absolute; left: 4px; top: 19px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary);
}
.geo-boundary-col ul li:first-child::before { top: 7px; }
.geo-boundary-col.no ul li::before { background: var(--c-text-mute); }
.geo-boundary-col li b { display: block; font-size: 14.5px; color: var(--c-text); margin-bottom: 4px; }
.geo-boundary-col li span { display: block; font-size: 13.5px; line-height: 1.75; color: var(--c-text-sub); }
@media (max-width: 768px) { .geo-boundary { grid-template-columns: 1fr; } }

@media (max-width: 480px) {
    .geo-shift h2 { font-size: 20px; }
    .geo-def-card h3 { font-size: 19px; }
    .geo-banner-stats { gap: 10px; }
    table.geo-table tbody td { padding: 5px 12px; font-size: 13px; }
}
