/* 轻装上阵AI助手 · 官网样式（纯静态，无构建步骤、无外部依赖）
 *
 * 口径：
 *  - 主色沿用产品内 `#1DB3B0`（与小程序的 --yp-primary 同一支品牌色）；
 *  - 不引字体 / 图标库 / 图片 CDN —— 首屏必须快，且这台机器上不需要额外资源；
 *  - 只做浅色主题（官网是"对外门面"，品牌视觉统一比跟随系统更重要）。
 */

:root {
  --brand: #1db3b0;
  --brand-dark: #14918f;
  --ink: #1d2329;
  --ink-2: #4a5460;
  --ink-3: #7b8794;
  --line: rgba(17, 24, 39, 0.09);
  --bg: #ffffff;
  --bg-soft: #f6f9f9;
  --bg-deep: #0f1a1f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 62px; }
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  /* logo 是横版字标：品牌行不允许折行（之前 logo 未限尺寸时被挤成两行） */
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px; display: inline-block;
  background: linear-gradient(135deg, var(--brand), #59d7c8);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { color: var(--ink-2); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(29, 179, 176, 0.28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 64px; background: linear-gradient(180deg, #f4fbfb 0%, #ffffff 72%); }
.hero::after {
  content: ""; position: absolute; right: -160px; top: -120px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(29, 179, 176, 0.18), transparent 62%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: rgba(29, 179, 176, 0.1); color: var(--brand-dark); font-size: 13px; font-weight: 600;
}
.hero h1 { font-size: 44px; line-height: 1.25; margin: 18px 0 14px; letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: var(--brand-dark); }
.hero p.lead { font-size: 17px; color: var(--ink-2); margin: 0 0 26px; max-width: 30em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 18px; transform: rotate(-0.6deg);
}
.hero-card h4 { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.04em; }
.mock-row { display: flex; gap: 10px; }
.mock {
  flex: 1; aspect-ratio: 3 / 4; border-radius: 10px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #eef4f4, #dfecec);
  display: flex; align-items: flex-end; padding: 8px;
}
.mock span { font-size: 11px; color: var(--ink-3); background: rgba(255, 255, 255, 0.8); padding: 2px 6px; border-radius: 6px; }
.mock.after { background: linear-gradient(160deg, #fdfefe, #eef7f6); border: 1px dashed rgba(29, 179, 176, 0.5); }
.mock.after::before {
  content: "白底"; position: absolute; top: 8px; left: 8px; font-size: 11px; color: var(--brand-dark);
  background: rgba(29, 179, 176, 0.12); padding: 2px 7px; border-radius: 6px;
}
.mock-steps { margin-top: 12px; font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.mock-steps b { color: var(--ink-2); font-weight: 600; }

/* ---------- 通用区块 ---------- */
section.block { padding: 68px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 34px; }
.sec-head h2 { font-size: 30px; line-height: 1.35; margin: 0 0 10px; letter-spacing: -0.3px; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 16px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--brand-dark); letter-spacing: 0.08em; margin-bottom: 8px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 9px; background: rgba(29, 179, 176, 0.12); color: var(--brand-dark);
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.card .ico {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(29, 179, 176, 0.16), rgba(89, 215, 200, 0.2));
  border: 1px solid rgba(29, 179, 176, 0.22);
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding: 22px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step .no { font-size: 34px; font-weight: 800; color: rgba(29, 179, 176, 0.28); line-height: 1; }
.step h3 { margin: 8px 0 6px; font-size: 17px; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.chain div {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; text-align: center;
}
.chain b { display: block; font-size: 15px; }
.chain span { font-size: 12.5px; color: var(--ink-3); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.plan.hot { border-color: var(--brand); box-shadow: 0 12px 30px rgba(29, 179, 176, 0.14); position: relative; }
.plan.hot::after {
  content: "最常选"; position: absolute; top: -11px; right: 16px; background: var(--brand); color: #fff;
  font-size: 12px; padding: 2px 10px; border-radius: 999px;
}
.plan h3 { margin: 0 0 4px; font-size: 18px; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin: 10px 0 2px; }
.plan .price small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.plan ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.plan li { margin: 5px 0; }
.plan .btn { width: 100%; margin-top: 16px; }

details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px;
}
details.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); font-size: 14.5px; }

.cta-band {
  margin: 70px 0; padding: 44px 34px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #13706f 0%, var(--brand) 62%, #59d7c8 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; font-size: 26px; }
.cta-band p { margin: 0; opacity: 0.9; font-size: 15px; }
.cta-band .btn-ghost { background: #fff; border-color: transparent; }

footer.site { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--ink-3); font-size: 13.5px; }
footer.site .cols { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
footer.site a { color: var(--ink-2); }
footer.site .fine { margin-top: 22px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

/* ---------- 价格页 ---------- */
.page-hero { padding: 54px 0 26px; background: linear-gradient(180deg, #f4fbfb, #fff); }
.page-hero h1 { font-size: 34px; margin: 10px 0 8px; }
.page-hero p { margin: 0; color: var(--ink-2); max-width: 44em; }

table.cmp { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14.5px; }
table.cmp th, table.cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; color: var(--ink-2); }
table.cmp thead th { background: var(--bg-soft); font-size: 14px; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp .yes { color: var(--brand-dark); font-weight: 600; }
table.cmp .no { color: var(--ink-3); }
.table-scroll { overflow-x: auto; }

.note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 34px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .steps, .price-grid { grid-template-columns: 1fr; }
  .chain { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hero-card { transform: none; }
}

@media (max-width: 560px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 29px; }
  section.block { padding: 48px 0; }
  .cta-band { padding: 30px 22px; }
}

/* ---------- 对比表：分组行 ---------- */
table.cmp tr.group td {
  background: var(--bg-soft);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 10px 14px;
}
table.cmp td { vertical-align: top; line-height: 1.6; }
table.cmp .yes { color: var(--brand-dark); font-weight: 600; }
table.cmp .no { color: var(--ink-3); }

/* ---------- 站点 Logo（后台「站点信息与备案」上传，运行时注入） ----------
 * ⚠️ 只给 `height` 不给 `width`：logo 是横版字标（LiteGo），按高度等比缩放最稳；
 *    `max-width` 兜住超宽图，`object-fit: contain` 保证不变形。
 */
/**
 * ⚠️ `hidden` 属性默认只是 UA 样式 `display:none`，会被作者样式里的
 * `display:inline-block`（`.brand-mark`）覆盖 —— logo 注入后那个色块仍然露出来。
 * 这里显式强制隐藏（2026-10-20 线上实测踩到）。
 */
[data-brand-mark][hidden],
.brand-logo[hidden] {
  display: none !important;
}

.brand-logo {
  height: 34px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  display: block;
}
/* 页头品牌行整体高度固定，避免 logo 高度变化把导航顶歪 */
.nav-inner { min-height: 62px; }

footer .brand-logo {
  height: 22px;
  max-width: 110px;
}

.beian {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: 4px;
}
.beian a {
  color: var(--ink-3);
  font-size: 12.5px;
}
