/* 金蝉写作 官网样式：奶油纸底 + 近黑 + 深绿 + 红点缀；与「马上照办」同一套胶囊导航/圆角卡片语言 */
:root {
  --bg: #faf7e6;
  --paper: #fffdf3;
  --ink: #26262b;
  --ink-soft: #5a5a60;
  --ink-faint: #85826f;
  --green: #0f4a36;
  --green-deep: #0a3526;
  --gold: #c9a24b;
  --red: #e0403a;
  --line: rgba(38, 38, 43, 0.12);
  --radius: 24px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* 背景：两团柔光，克制 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 50vw at 8% -10%, rgba(201, 162, 75, 0.2), transparent 70%),
    radial-gradient(50vw 40vw at 100% 10%, rgba(15, 74, 54, 0.12), transparent 70%);
  pointer-events: none;
}

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- 顶部胶囊导航 ---------- */
.nav { position: sticky; top: 12px; z-index: 50; padding-top: 12px; }
.nav__pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 10px 14px 10px 18px;
  background: rgba(255, 253, 243, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 100px;
  box-shadow: 0 10px 34px -16px rgba(38, 38, 43, 0.28);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.04em; }
.nav__brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav__links { display: flex; gap: 6px; margin-left: auto; margin-right: 6px; }
.nav__links a { padding: 6px 14px; border-radius: 100px; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); transition: background 0.2s, color 0.2s; }
.nav__links a:hover { background: rgba(15, 74, 54, 0.08); color: var(--green); }
.nav__links a[aria-current="page"] { color: var(--green); background: rgba(15, 74, 54, 0.1); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.8em;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--primary { color: #fff; background: var(--green); box-shadow: 0 14px 28px -12px rgba(15, 74, 54, 0.7); }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn--ghost { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.btn--sm { padding: 0.55em 1.3em; font-size: 0.92rem; }

/* ---------- 首屏 ---------- */
.hero { padding: 56px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
}
.hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero__brand { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.hero__icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 18px 40px -16px rgba(15, 74, 54, 0.6); }
h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); font-weight: 900; line-height: 1.1; letter-spacing: 0.02em; }
.hero__tag { font-size: clamp(1.25rem, 3.2vw, 1.7rem); font-weight: 800; color: var(--green); margin-bottom: 10px; }
.hero__slogan { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 28px; }
.hero__slogan b { color: var(--ink); box-shadow: inset 0 -0.5em 0 rgba(224, 64, 58, 0.18); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.hero__note { font-size: 0.92rem; color: var(--ink-faint); }

/* 手机示意图（纯 CSS 绘制的示意，不是真实截图） */
.phone {
  justify-self: center;
  width: min(250px, 100%);
  aspect-ratio: 9 / 16;
  padding: 12px;
  border-radius: 40px;
  background: var(--ink);
  box-shadow: 0 40px 70px -30px rgba(38, 38, 43, 0.55);
  transform: rotate(2deg);
}
.phone__screen {
  height: 100%;
  border-radius: 30px;
  background: var(--bg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone__lesson { font-size: 0.78rem; font-weight: 700; color: var(--red); letter-spacing: 0.12em; }
.phone__title { margin: 8px 0 14px; font-size: 1.7rem; font-weight: 900; line-height: 1.2; }
.phone__title em { font-style: normal; color: var(--red); }
.phone__bar { height: 8px; width: 46%; border-radius: 4px; background: var(--red); margin-bottom: 18px; }
.phone__mark { margin: auto; font-size: 5.5rem; font-weight: 900; line-height: 1; color: rgba(15, 74, 54, 0.14); }
.phone__cap { margin-top: 0; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-size: 0.86rem; line-height: 1.6; }
.phone__cap b { background: rgba(224, 64, 58, 0.18); font-weight: 700; padding: 0 2px; }
.phone__prog { height: 4px; margin-top: 14px; border-radius: 2px; background: var(--line); overflow: hidden; }
.phone__prog span { display: block; width: 38%; height: 100%; background: var(--green); }

/* ---------- 通用区块 ---------- */
section.block { padding: 56px 0; }
.eyebrow { display: inline-block; padding: 5px 16px; margin-bottom: 14px; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.1em; color: var(--green); background: rgba(15, 74, 54, 0.08); border-radius: 100px; }
h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 900; line-height: 1.25; letter-spacing: 0.02em; margin-bottom: 14px; }
.lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 40em; margin-bottom: 28px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 34px -26px rgba(38, 38, 43, 0.35); }
.card__no { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 12px; background: var(--green); color: #fff; font-weight: 800; font-size: 0.95rem; }
.card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* 课程 */
.album { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; padding: 32px; background: var(--green); color: #f4f0da; border-radius: 32px; }
.album h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; color: #fff; line-height: 1.25; }
.album__slogan { margin-top: 12px; color: #d8d3b4; }
.album__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { padding: 4px 14px; border-radius: 100px; background: rgba(255, 255, 255, 0.12); font-size: 0.88rem; font-weight: 600; }
.chip--red { background: var(--red); color: #fff; }
.lessons { display: flex; flex-direction: column; gap: 12px; }
.lesson { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: rgba(255, 253, 243, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); }
.lesson__no { flex: none; padding: 2px 12px; border-radius: 100px; background: var(--bg); color: var(--ink); font-weight: 800; font-size: 0.85rem; line-height: 1.8; }
.lesson__title { font-weight: 700; color: #fff; line-height: 1.5; }
.lesson--more { color: #d8d3b4; font-size: 0.95rem; background: transparent; border-style: dashed; }

/* 获取方式 / 下载 */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.panel p, .panel li { color: var(--ink-soft); }
.panel ul { margin-top: 10px; display: grid; gap: 8px; }
.panel li { padding-left: 1.2em; position: relative; }
.panel li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.panel--dark { background: var(--ink); color: #f4f0da; border-color: var(--ink); }
.panel--dark p, .panel--dark li { color: #d6d2c0; }
.panel--dark .btn { margin-top: 20px; }
.panel--dark .btn--primary { background: var(--red); box-shadow: 0 14px 28px -12px rgba(224, 64, 58, 0.7); }

/* 页脚 */
.footer { margin-top: 40px; padding: 32px 0 44px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-faint); font-size: 0.9rem; }
.footer a { white-space: nowrap; }
.footer p + p { margin-top: 6px; }
.footer a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 隐私政策页 ---------- */
.doc { padding: 40px 0 20px; }
.doc__head { padding: 36px 32px; margin-bottom: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 32px; }
.doc__head h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 12px; }
.doc__meta { color: var(--ink-soft); font-size: 0.95rem; }
.doc__body { padding: 8px 32px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 32px; }
.doc h2 { font-size: 1.5rem; margin: 36px 0 12px; padding-left: 14px; border-left: 6px solid var(--red); line-height: 1.4; }
.doc h3 { font-size: 1.1rem; font-weight: 800; margin: 20px 0 6px; color: var(--green); }
.doc p, .doc li { color: #3a3a40; }
.doc p { margin: 8px 0; }
.doc ul.bul { margin: 8px 0 8px 0; display: grid; gap: 6px; }
.doc ul.bul li { padding-left: 1.2em; position: relative; }
.doc ul.bul li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.toc { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { padding: 4px 14px; border-radius: 100px; border: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); background: var(--bg); }
.toc a:hover { color: var(--green); border-color: var(--green); }
.tbl { width: 100%; margin: 12px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.94rem; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: rgba(15, 74, 54, 0.08); color: var(--green-deep); font-weight: 800; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.82rem; word-break: break-all; background: rgba(38, 38, 43, 0.06); padding: 1px 6px; border-radius: 6px; }
.callout { margin: 14px 0; padding: 14px 18px; border-radius: 16px; background: rgba(201, 162, 75, 0.16); border: 1px solid rgba(201, 162, 75, 0.45); color: var(--ink); }

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  .hero__grid, .album, .two { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .phone { transform: none; margin-top: 8px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 32px; }
  .nav__pill { border-radius: 28px; padding: 10px 12px; gap: 6px 8px; }
  .nav__links { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .nav__links a { padding: 6px 8px; font-size: 0.9rem; }
  .nav .btn { margin-left: auto; }
  .hero__icon { width: 72px; height: 72px; border-radius: 18px; }
  .cards { grid-template-columns: 1fr; }
  .album, .panel, .doc__head { padding: 22px 18px; }
  .doc__body { padding: 4px 18px 18px; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
  section.block { padding: 40px 0; }
}
@media (max-width: 560px) {
  .tbl { border: 0; overflow: visible; }
  table, tbody, tr, td { display: block; min-width: 0; width: 100%; }
  thead { display: none; }
  tr { margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
  td { padding: 4px 0; border: 0; }
  td:first-child { font-size: 1rem; padding-bottom: 6px; }
  td + td::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 800; color: var(--green); letter-spacing: 0.06em; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
