/* ============================================================
   虾米盒子 官网统一样式
   
   为什么抽成独立文件而不是每页内联：
   六页共用一套 nav / footer / 卡片 / 代码块，内联意味着改一次要改六处，
   必然出现"首页改了、价格页忘了"的不一致。
   
   色板沿用控制台的橙 #F0541D 作为主色，深蓝 #16324A 作底。
   旧版官网是深蓝+金，和控制台两套视觉，用户从官网点进控制台会感到割裂。
   ============================================================ */

:root {
  --ink: #16324A;          /* 主深色，标题与导航底 */
  --ink-2: #0E2333;        /* 更深，代码块与页脚 */
  --brand: #F0541D;        /* 主品牌橙，与控制台一致 */
  --brand-d: #D9400E;      /* 橙的深色，hover */
  --brand-l: #FFF1EC;      /* 橙的浅底，标签背景 */
  --bg: #F6F8FA;           /* 区块浅底 */
  --line: #E3E9EE;         /* 分割线 */
  --text: #23303B;         /* 正文 */
  --muted: #6B7C8C;        /* 次要文字 */
  --ok: #1A9E6A;           /* 正向/可用 */
  --warn: #C98A00;         /* 提醒 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); }

/* ---------- 导航 ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 50, 74, .97);
  backdrop-filter: blur(8px);
  color: #fff;
}
nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
nav .logo {
  font-size: 19px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
nav .logo .dot {
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--brand); display: inline-block;
}
nav .logo em { font-style: normal; color: var(--brand); }
nav .links { display: flex; gap: 24px; }
nav .links a { color: #C2D3E0; font-size: 14px; transition: color .15s; }
nav .links a:hover, nav .links a.on { color: #fff; }
nav .links a.on { font-weight: 600; }
nav .cta {
  margin-left: auto; background: var(--brand); color: #fff;
  padding: 9px 20px; border-radius: 6px; font-weight: 600; font-size: 14px;
  transition: background .15s; white-space: nowrap;
}
nav .cta:hover { background: var(--brand-d); color: #fff; }
nav .menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--ink-2) 0%, var(--ink) 60%, #24506F 100%);
  color: #fff; padding: 84px 0 70px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,84,29,.22) 0%, transparent 68%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: 42px; line-height: 1.28; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: #FF8B5C; }
.hero p.sub { margin: 20px 0 32px; font-size: 17px; color: #B8CAD9; max-width: 620px; }
.hero-stats { display: flex; gap: 48px; margin-top: 52px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 27px; color: #FF8B5C; font-weight: 700; }
.hero-stats small { color: #8FA8BC; font-size: 13px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 6px;
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: all .15s; border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-d); color: #fff; }
.btn.ghost { border-color: rgba(255,255,255,.42); color: #fff; }
.btn.ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn.line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.line:hover { border-color: var(--brand); color: var(--brand); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 区块 ---------- */
section { padding: 68px 0; }
section.alt { background: var(--bg); }
section.tight { padding: 44px 0; }
h2 { font-size: 30px; color: var(--ink); letter-spacing: -.3px; margin-bottom: 12px; }
h2.center { text-align: center; }
.sec-sub { color: var(--muted); font-size: 15px; margin-bottom: 40px; max-width: 680px; }
.sec-sub.center { text-align: center; margin-left: auto; margin-right: auto; }
h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }

/* ---------- 卡片 ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 26px; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(22,50,74,.08);
  border-color: #CFDAE3; transform: translateY(-2px);
}
.card .kicker {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--brand); background: var(--brand-l);
  padding: 3px 9px; border-radius: 4px; margin-bottom: 12px;
  letter-spacing: .3px;
}
.card p { font-size: 14px; color: #55677A; }

/* 能力卡：图标 + 标题 + 描述 + 要点 */
.cap { display: flex; flex-direction: column; gap: 10px; }
.cap .ic {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--brand-l); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.cap ul { list-style: none; font-size: 13.5px; color: #55677A; }
.cap ul li { padding-left: 18px; position: relative; margin-top: 5px; }
.cap ul li::before {
  content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700;
}

/* ---------- 状态徽标 ---------- */
.badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; vertical-align: middle;
}
.badge.live { background: #E6F6EE; color: var(--ok); }
.badge.beta { background: #FFF6E0; color: var(--warn); }

/* ---------- 代码块 ---------- */
pre {
  background: var(--ink-2); color: #CFE0EE;
  border-radius: 10px; padding: 20px 22px;
  font-size: 13px; line-height: 1.7; overflow-x: auto;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
pre .cm { color: #6E8DA5; }     /* 注释 */
pre .k { color: #FF8B5C; }      /* key */
pre .s { color: #8FD9A8; }      /* string */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
  padding: 7px 15px; border-radius: 6px; font-size: 13.5px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  color: var(--muted); font-weight: 500;
}
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #F8FAFB; color: var(--ink); font-weight: 600; font-size: 13px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: #FCFDFD; }

/* ---------- 流程/步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding-top: 42px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
/* 正文里夹杂的加粗不能用块级：.step b 是 display:block，
   段落内写 <b>底价</b>与<b>售价</b> 会被拆成两行，读起来像排版错乱。 */
.step b.inline { display: inline; margin-bottom: 0; font-size: inherit; color: inherit; font-weight: 700; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- 要点列表 ---------- */
.checks { list-style: none; }
.checks li { padding-left: 26px; position: relative; margin-bottom: 12px; font-size: 14.5px; }
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  color: var(--ok); font-weight: 700;
}
.note {
  border-left: 3px solid var(--brand); background: var(--brand-l);
  padding: 14px 18px; border-radius: 0 6px 6px 0;
  font-size: 14px; color: #7A3B21;
}
.note strong { color: #5C2A14; }

/* ---------- 价格卡 ---------- */
.price-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 30px;
  background: #fff; display: flex; flex-direction: column;
}
.price-card.hl { border-color: var(--brand); box-shadow: 0 4px 20px rgba(240,84,29,.1); }
.price-card .name { font-size: 15px; color: var(--muted); font-weight: 600; }
.price-card .amt { font-size: 34px; font-weight: 800; color: var(--ink); margin: 10px 0 4px; }
.price-card .amt span { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin: 18px 0 24px; font-size: 14px; color: #55677A; flex: 1; }
.price-card ul li { padding: 6px 0 6px 22px; position: relative; }
.price-card ul li::before { content: '·'; position: absolute; left: 6px; color: var(--brand); font-weight: 700; }

/* ---------- 页脚 ---------- */
footer { background: var(--ink-2); color: #8FA8BC; padding: 46px 0 30px; font-size: 13.5px; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; font-weight: 600; }
footer a { color: #8FA8BC; display: block; padding: 4px 0; }
footer a:hover { color: #fff; }
footer .bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: #6B8497;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid3, .grid4, .steps { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  nav .links { display: none; }
  nav .menu-btn { display: block; margin-left: auto; }
  nav .cta { margin-left: 0; }
  .hero h1 { font-size: 29px; }
  .hero { padding: 52px 0 44px; }
  .hero-stats { gap: 26px; }
  section { padding: 44px 0; }
  .grid2, .grid3, .grid4, .steps { grid-template-columns: 1fr; }
  h2 { font-size: 23px; }
  footer .cols { grid-template-columns: 1fr; }
  table { font-size: 13px; }
  th, td { padding: 9px 8px; }
}
