/* ═══════════ 首页 Landing 专属样式 ═══════════
   由 site.css 拆出(2026-10-18, 审查项 P2-34)。
   仅在 landing.html 通过 {% block head %} 条件引入, 其余页面不加载。
   全站令牌(:root)与共用组件仍以 site.css 为唯一真相源。 */

.landing { padding: 0; }

.hero {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 32px;
  align-items: center;
  padding: 56px 40px 50px;
}
/* 2026-10-04 商业感增强: 标题放大一档, 主按钮加投影与悬浮 */
.hero-title { font-size: 44px; line-height: 1.25; font-weight: 800; color: var(--text-1); letter-spacing: -0.5px; }
.hero-title .highlight {
  display: block; margin-top: 8px; font-size: 30px;
  color: var(--brand);
}
.hero-subtitle { font-size: 15px; color: var(--text-2); margin: 14px 0 24px; }
.hero-actions { display: flex; gap: 14px; }
.btn-large, .btn-ghost-large {
  display: inline-block;
  padding: 12px 30px; border-radius: var(--radius-md); font-size: 15px;
  text-decoration: none; transition: all 0.2s;
}
.btn-large {
  background: var(--brand-solid); color: var(--on-brand);
  box-shadow: 0 2px 10px rgba(36, 64, 179, 0.3);
}
.btn-large:hover {
  background: var(--brand-dark);
  box-shadow: 0 8px 22px rgba(36, 64, 179, 0.36);
  transform: translateY(-1px);
}
.btn-ghost-large { color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost-large:hover { border-color: var(--brand); color: var(--brand); }
/* flex-wrap 必须开: 6 项挤 461px 容器(nowrap)时每项仅 ~60px, 文字断成竖条(2026-11-14 实测) */
.hero-ticks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 12px; color: var(--text-3); }
.hero-ticks span { white-space: nowrap; }
.hero-ticks span::before { content: '✓ '; color: var(--brand); }

.hero-demo { min-width: 0; }
.demo-window {
  background: #0d1226;
  border: 1px solid #2a3568;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.14);
  overflow: hidden;
}
.demo-head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #10173a; border-bottom: 1px solid #2a3568;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.demo-title { margin-left: 8px; font-size: 12px; color: #7f8bc0; font-family: 'JetBrains Mono', monospace; }
.demo-code, .demo-out {
  padding: 14px 12px; font-size: 11px; line-height: 1.7;
  font-family: 'JetBrains Mono', Consolas, monospace;
  overflow-x: auto; margin: 0;
  scrollbar-width: thin;   /* 移动端代码区/输出区各自出横滚条, 细化减少突兀 */
}
.demo-code { color: #9ecbff; }
/* 不设 max-height: 曾经的 180px 会把样例 JSON 末尾的 ]}} 静默裁掉, 页面看起来结构残缺 */
.demo-out { color: #9fe6b0; border-top: 1px dashed #2a3568; }
.demo-out-head {
  font-size: 11px; color: #7f8bc0; padding: 8px 14px 0;
  border-top: 1px dashed #2a3568; margin-top: 2px;
}

.section-sub { text-align: center; font-size: 14.5px; color: var(--text-3); margin-bottom: 36px; }
.section-sub a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.features-section { margin-bottom: 64px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 24px 28px; text-align: left;
  text-decoration: none; display: block;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--brand); }
.feature-card .f-icon {
  width: 30px; height: 30px; color: var(--brand);
  margin: 0; display: block;
}
.feature-card h3 { font-size: 17px; color: var(--text-1); margin: 18px 0 10px; }
.feature-card p { font-size: 13.5px; color: var(--text-3); line-height: 1.7; }
.feature-more { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--brand); opacity: 0; transition: opacity 0.2s; }
.feature-card:hover .feature-more { opacity: 1; }

/* 与页面同底: 白卡靠自身描边浮起, 不再铺灰面板(2026-10-03 用户反馈灰底配色突兀) */
.coverage-section { margin-bottom: 64px; }
@media (max-width: 960px) {
  .coverage-section { padding: 0; }
}
.coverage-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.coverage-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px 14px; text-align: center;
}
.coverage-card .c-icon {
  width: 24px; height: 24px; color: var(--brand);
  opacity: 0.8; margin-bottom: 6px;
}
/* 关键数字: 品牌纯色 + 等宽数字(渐变字已移除 —— 去 AI 模板风, 2026-10-03) */
.coverage-num {
  font-size: 30px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.coverage-label { font-size: 14px; font-weight: 600; color: var(--text-1); margin: 8px 0 5px; }
.coverage-desc { font-size: 12px; color: var(--text-3); line-height: 1.55; }
.coverage-note { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 12px; }

.pricing-teaser {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}
.teaser-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; }
.teaser-title { font-size: 15px; font-weight: 700; color: var(--text-1); }
.teaser-copy p { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.teaser-btn {
  padding: 9px 22px; border-radius: 6px; border: 1px solid var(--brand);
  color: var(--brand); font-size: 13px; text-decoration: none; white-space: nowrap;
}
.teaser-btn:hover { background: var(--brand-bg); }

/* ── 页尾 CTA(与 hero 首尾呼应; 替代原先的一行小字) ── */
.cta-final { text-align: center; padding: 24px 0 48px; }
.cta-final h3 { font-size: 20px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.cta-final p { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.btn-final {
  display: inline-block; padding: 12px 34px; border-radius: var(--radius-md);
  background: var(--brand-solid); color: var(--on-brand);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background 0.2s;
}
.btn-final:hover { background: var(--brand-dark); }
.cta-note { margin-top: 14px; font-size: 12px; color: var(--text-3); }
.cta-note a { color: var(--text-3); text-decoration: underline; }

/* hero 代码窗语法高亮(手写 span, 不引高亮库) —— 配色与 hero 深蓝底协调:
   关键字紫 / 字符串绿(与输出区数据色呼应) / 注释蓝灰 / 函数名暖黄(呼应窗口圆点) */
.demo-code .k { color: #c792ea; }
.demo-code .s { color: #9fe6b0; }
.demo-code .c { color: #7f8bc0; }
.demo-code .f { color: #ffd479; }

/* ── 信任承诺带 ── */
.trust-band {
  /* 在 .app-main(内容 1152px)之内, 不再自带 max-width/横向 padding ——
     双重约束曾使它比上下功能区窄 48px, 左右边缘对不齐 */
  margin: 0 auto 48px; padding: 8px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.trust-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px 16px;
}
.trust-item svg {
  width: 20px; height: 20px; flex: none; color: var(--success); margin-top: 2px;
}
.trust-item b { display: block; font-size: 14px; color: var(--text-1); }
.trust-item span { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; line-height: 1.5; }

/* ── hero 眉题胶囊(2026-10-04 商业感增强) ── */
.hero-eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  color: var(--brand); background: var(--brand-bg);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 16px;
  letter-spacing: 0.5px;
}

/* ── 响应式 ──
   hero 是「文案 + 代码窗」双栏结构: 代码窗要够宽才不会出现横向滚动条,
   故单栏断点比 grid 类元素(features/plans/footer 用 960)更早 —— 1024 视口实测
   两栏时容器仅 447px, 而最长一行数据 516px 会溢出。 */
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr; padding: 40px 24px; }
}

@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-band { grid-template-columns: repeat(2, 1fr); padding-top: 16px; }
}

@media (max-width: 640px) {
  .hero-grid { padding: 28px 16px; }
  .hero-title { font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .hero-eyebrow { font-size: 12px; }

  .features-grid, .coverage-grid { grid-template-columns: 1fr; }
  .coverage-grid { gap: 12px; }
  .trust-band { grid-template-columns: 1fr; padding: 8px 0; }

  /* 覆盖卡/信任卡内容短, 单列太浪费 —— 手机上 2 列更紧凑(需覆盖上面的 1fr, 置于其后) */
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-band { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
