/* ==========================================================================
   DailyLang 官网 · 共享样式
   --------------------------------------------------------------------------
   用法：
     · 首页            <body class="home">
     · App 详情页      <body class="app-page app-vi|app-th|app-ja"> + <div class="wrap">
     · 隐私政策等文档页 <body class="doc-body app-vi|app-th|app-ja"> + <main class="doc">
   语言切换：
     <html data-lang="zh-Hans"> 由 assets/site.js 维护；正文中成对出现
     .i18n-zh / .i18n-en 的节点，按 data-lang 只显示其一。
   ========================================================================== */

/* ---------- 1. 设计 token ---------- */
:root {
  --text: #1F1A19;
  --text-2: #5C5553;
  --text-3: #8A8280;
  --bg: #F5F2F0;
  --card: #FFFFFF;
  --line: #EDE8E5;
  --muted-card: #FAF8F7;

  /* 待填写占位符（黄底虚线） */
  --gold-tint: #FFF6D6;
  --gold-dark: #C9A200;

  /* 品牌强调：暖红 → 琥珀（标题高亮 / 区块标记 / 主按钮描边） */
  --accent: #DA251D;
  --accent-2: #D98E00;
  --grad-accent: linear-gradient(96deg, #DA251D 0%, #E05A1B 52%, #D98E00 100%);

  /* 各 App 主题色：越南国旗红 / 泰国国旗蓝 / 日之丸红 */
  --vi: #DA251D; --vi-deep: #7D1310; --vi-tint: #FBE9E8; --vi-line: #F0C9C6; --vi-gold: #FFCD00;
  --th: #1F4E9C; --th-deep: #123166; --th-tint: #E8EEF9; --th-line: #C9D8F0; --th-red: #A51931;
  --ja: #BC002D; --ja-deep: #7E001E; --ja-tint: #FBEBEE; --ja-line: #F0C6CC;

  --radius: 14px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(31, 26, 25, .05);
  --shadow-pop: 0 12px 32px rgba(31, 26, 25, .10);
  --shadow-lift: 0 18px 44px -12px rgba(31, 26, 25, .16);
  --ease-out: cubic-bezier(.22, .7, .3, 1);
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 88% -120px, rgba(31, 78, 156, .07), transparent 62%),
    radial-gradient(1000px 540px at -12% 6%, rgba(218, 37, 29, .065), transparent 58%),
    radial-gradient(900px 520px at 55% 112%, rgba(217, 142, 0, .07), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }

/* 入场动画：轻微上浮淡入（尊重系统减弱动效设置） */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .home .eyebrow,
  .home .hero h1,
  .home .hero .lede,
  .home .hero-cta { animation: rise .55s var(--ease-out) backwards; }
  .home .hero h1      { animation-delay: .06s; }
  .home .hero .lede   { animation-delay: .12s; }
  .home .hero-cta     { animation-delay: .18s; }

  .home .point   { animation: rise .55s var(--ease-out) backwards; }
  .home .point:nth-child(2) { animation-delay: .07s; }
  .home .point:nth-child(3) { animation-delay: .14s; }

  .app-card      { animation: rise .55s var(--ease-out) backwards; }
  .app-card:nth-child(2) { animation-delay: .08s; }
  .app-card:nth-child(3) { animation-delay: .16s; }

  .app-page .feature-card { animation: rise .55s var(--ease-out) backwards; }
  .app-page .feature-card:nth-child(2) { animation-delay: .07s; }
  .app-page .feature-card:nth-child(3) { animation-delay: .14s; }
  .app-page .feature-card:nth-child(4) { animation-delay: .21s; }

  .app-page .course { animation: rise .5s var(--ease-out) backwards; }
  .app-page .course:nth-of-type(2) { animation-delay: .06s; }
  .app-page .course:nth-of-type(3) { animation-delay: .12s; }

  /* 首页 hero 的漂浮词气泡 */
  @keyframes bob {
    from { transform: translateY(0) rotate(var(--tilt, 0deg)); }
    to   { transform: translateY(-9px) rotate(var(--tilt, 0deg)); }
  }
  .hero-deco .chip { animation: bob 3.6s ease-in-out infinite alternate; }
  .hero-deco .chip--2 { animation-duration: 4.4s; animation-delay: .5s; }
  .hero-deco .chip--3 { animation-duration: 4s;   animation-delay: 1.1s; }
  .hero-deco .chip--4 { animation-duration: 4.8s; animation-delay: 1.7s; }
}

/* ---------- 3. 语言切换（中英） ---------- */
html[data-lang="zh-Hans"] .i18n-en { display: none !important; }
html[data-lang="en"] .i18n-zh { display: none !important; }

.langswitch {
  display: inline-flex;
  padding: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.langswitch button,
.langswitch a {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s;
}

.langswitch button.on {
  background: linear-gradient(135deg, #3A332F, #191512);
  color: #fff;
  font-weight: 700;
}

/* ---------- 4. 首页与 App 详情页 ---------- */
.home .wrap,
.app-page .wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* 页脚贴底：内容不足一屏时，footer 仍然钉在视口底部 */
.home .wrap,
.app-page .wrap {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.home .wrap > main,
.app-page .wrap > main { flex: 1 0 auto; }

/* 顶栏：吸顶 + 毛玻璃（背景由 ::before 铺满全宽） */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  z-index: -1;
  background: rgba(245, 242, 240, .82);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid rgba(237, 232, 229, .8);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar::before { background: var(--bg); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3A332F, #191512);
  box-shadow: 0 2px 6px rgba(31, 26, 25, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.brand__name { font-size: 16.5px; }

.topbar .langswitch { margin-left: auto; }

/* ---------- 4.1 首页 Hero ---------- */
.hero {
  position: relative;
  padding: 34px 0 30px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5.4vw, 46px);
  line-height: 1.28;
  letter-spacing: -.4px;
  max-width: 22em;
}

/* 渐变高亮词 */
.hero h1 .hl {
  font-style: normal;
  color: var(--accent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 .hl {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.hero .lede {
  margin: 0;
  max-width: 58ch;
  font-size: 16.5px;
  color: var(--text-2);
}

/* 眉标小胶囊 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FF7A5E, var(--accent));
  box-shadow: 0 0 0 3px rgba(218, 37, 29, .14);
}

/* Hero 上的漂浮词气泡（纯装饰，aria-hidden） */
.hero-deco {
  position: absolute;
  top: 30px;
  right: 0;
  width: 220px;
  height: 220px;
  pointer-events: none;
  user-select: none;
}

.hero-deco .chip {
  position: absolute;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(31, 26, 25, .08);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.hero-deco .chip--1 { top: 0;     right: 96px; --tilt: 3deg;  color: var(--vi); }
.hero-deco .chip--2 { top: 58px;  right: -6px; --tilt: -4deg; color: var(--ja); }
.hero-deco .chip--3 { top: 128px; right: 66px; --tilt: 2deg;  color: var(--th); }
.hero-deco .chip--4 { top: 178px; right: -12px; --tilt: -2deg; color: var(--text-3); font-size: 12.5px; }

/* Hero CTA */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out),
              background-color .2s, border-color .2s;
}

.btn--primary {
  background: linear-gradient(135deg, #3A332F, #191512);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(31, 26, 25, .4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(31, 26, 25, .45);
}

.btn--ghost {
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: #D8CFC9;
  box-shadow: 0 10px 24px -10px rgba(31, 26, 25, .2);
}

.btn:active { transform: translateY(0); }

/* ---------- 4.2 首页三亮点 ---------- */
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 6px 0 10px;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 18px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.point__icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.point__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.point--a .point__icon { background: var(--vi-tint); color: var(--vi); }
.point--b .point__icon { background: var(--gold-tint); color: var(--gold-dark); }
.point--c .point__icon { background: #E4F1E9; color: #2E7D4F; }

.point h3 { margin: 0; font-size: 14.5px; line-height: 1.45; }
.point p { margin: 3px 0 0; font-size: 12.8px; line-height: 1.65; color: var(--text-2); }

/* ---------- 4.3 区块标题 ---------- */
.sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text-3);
  scroll-margin-top: 76px;
}

.sec-title::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-accent);
}

/* ---------- 4.4 App 卡片 ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.app-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out),
              border-color .28s;
}

/* 顶部渐隐彩条：默认透明，悬停浮现 */
.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(218, 37, 29, .55) 30%, rgba(217, 142, 0, .55) 70%, transparent);
  opacity: 0;
  transition: opacity .28s;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: #E2D9D4;
  box-shadow: var(--shadow-lift);
}

.app-card:hover::before { opacity: 1; }

.app-card__head { display: flex; align-items: center; gap: 12px; }

.app-icon {
  width: 48px;
  height: 48px;
  flex: none;
  display: block;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(31, 26, 25, .12);
}

/* 各 App 的正式 logo（透明底 PNG）：按高度缩放，不做圆角裁剪与投影 */
.app-logo {
  flex: none;
  display: block;
  height: 46px;
  width: auto;
  max-width: 104px;
  object-fit: contain;
}

.app-card__title { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.app-card__title a { color: inherit; text-decoration: none; }
.app-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.app-card__native { margin: 2px 0 0; font-size: 12.5px; color: var(--text-3); }
.app-card__head .badge { margin-left: auto; align-self: flex-start; }

.badge {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge--live {
  background: #E4F1E9;
  color: #2E7D4F;
  box-shadow: inset 0 0 0 1px rgba(46, 125, 79, .16);
}

.badge--live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #2E7D4F;
  vertical-align: 1px;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 79, .32); }
    55%      { box-shadow: 0 0 0 4px rgba(46, 125, 79, 0); }
  }
  .badge--live::before { animation: livePulse 2.6s ease-out infinite; }
}

.badge--soon { background: var(--muted-card); color: var(--text-3); border: 1px solid var(--line); }

.app-card__desc { margin: 14px 0 0; font-size: 13.5px; color: var(--text-2); }

.app-meta {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--muted-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 6px;
}

.app-meta > div { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 12.5px; }
.app-meta dt { color: var(--text-3); white-space: nowrap; }
.app-meta dd { margin: 0; }

/* 卡片底部入口：主链接（了解详情）+ 隐私政策，每个 App 指向自己的 /<appId>/ */
.app-card__foot {
  margin: 16px 0 0;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
}

.app-card__foot a.more {
  padding: 6px 15px;
  background: linear-gradient(135deg, #3A332F, #191512);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px -4px rgba(31, 26, 25, .35);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.app-card__foot a.more:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -6px rgba(31, 26, 25, .42);
}

.app-card__foot a:not(.more) {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-card__foot a:not(.more):hover { color: var(--text); }

/* ---------- 4.5 页脚 ---------- */
.foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 52px;
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--text-3);
}

.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.foot a { color: var(--text-2); text-underline-offset: 2px; }
.foot a:hover { color: var(--text); }

/* ---------- 5. App 详情页 ---------- */
.crumb {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px 5px 10px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}

.crumb:hover { color: var(--text); border-color: #D8CFC9; }

/* 各 App 主题变量（详情页 + 文档页共用） */
.app-page.app-vi, .doc-body.app-vi { --brand: var(--vi); --brand-deep: var(--vi-deep); --brand-tint: var(--vi-tint); --brand-line: var(--vi-line); }
.app-page.app-th, .doc-body.app-th { --brand: var(--th); --brand-deep: var(--th-deep); --brand-tint: var(--th-tint); --brand-line: var(--th-line); }
.app-page.app-ja, .doc-body.app-ja { --brand: var(--ja); --brand-deep: var(--ja-deep); --brand-tint: var(--ja-tint); --brand-line: var(--ja-line); }

/* Hero 布局：品牌色渐变卡片；第一行 = 图标 + 应用名称（垂直居中）；
   宣传口号、商店按钮各自独立成行，用 margin 明确分层 */
.app-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 10px;
  padding: 24px 26px;
  background: linear-gradient(140deg, #FFFFFF 52%, var(--brand-tint, #FAF8F7) 135%);
  border: 1px solid var(--brand-line, var(--line));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.app-hero__logo {
  flex: none;
  display: block;
  height: 76px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.app-hero__head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-hero__title { min-width: 0; }

.app-hero .app-icon { width: 76px; height: 76px; border-radius: 17px; }

.app-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.app-hero .badge { font-size: 12px; }
.app-hero .native { margin: 2px 0 0; color: var(--text-3); font-size: 14px; }
.app-hero .tagline { margin: 14px 0 0; color: var(--text-2); max-width: 56ch; }
.app-hero .hero-cta { margin-top: 16px; }

/* 商店入口按钮：icon + 两行文字（引导语 + 商店名），三个按钮同构同尺寸 */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s;
}
.store-btn:hover {
  transform: translateY(-2px);
  border-color: #D8CFC9;
  box-shadow: 0 10px 24px -10px rgba(31, 26, 25, .2);
}
.store-btn img { width: 28px; height: 28px; flex: none; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn__caption {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--text-3);
  text-transform: uppercase;
  white-space: nowrap;
}
.store-btn__name { font-size: 14.5px; font-weight: 700; color: var(--text); white-space: nowrap; }
.store-btn--soon {
  background: var(--muted-card);
  box-shadow: none;
  cursor: default;
}
.store-btn--soon .store-btn__caption,
.store-btn--soon .store-btn__name { color: var(--text-3); }

/* 事实速览：目标语言 / 平台 / 界面语言 / 分类 */
.app-facts {
  margin: 20px 0 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.app-facts > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 11px 16px;
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}

.app-facts > div:first-child { border-top: 0; }
.app-facts dt { color: var(--text-3); white-space: nowrap; }
.app-facts dd { margin: 0; }

/* 功能卡片区 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.feature-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out),
              border-color .28s;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-line, var(--vi-line));
  box-shadow: var(--shadow-lift);
}

.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
}

.feature-card h3::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--brand, var(--vi));
  opacity: .85;
}

.feature-card p { margin: 7px 0 0; font-size: 13.5px; color: var(--text-2); }

/* 运行时截图：横向滑动条，手机比例卡片 */
.shot-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shot {
  flex: 0 0 auto;
  width: 218px;
  margin: 0;
  scroll-snap-align: start;
}

.shot img {
  display: block;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

.shot:hover img {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px -14px rgba(31, 26, 25, .28);
}

.shot figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
}

/* 课程列表行 */
.course {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s var(--ease-out);
}

.course + .course { margin-top: 10px; }

.course:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line, var(--vi-line));
  box-shadow: 0 10px 26px -12px rgba(31, 26, 25, .18);
}

.course h3 { margin: 0; font-size: 15.5px; }
.course .course__meta { font-size: 13px; color: var(--text-3); }
.course .badge { margin-left: auto; align-self: center; }

.badge--free {
  background: #E4F1E9;
  color: #2E7D4F;
  box-shadow: inset 0 0 0 1px rgba(46, 125, 79, .16);
}

.badge--free::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #2E7D4F;
  vertical-align: 1px;
}

.badge--iap { background: var(--gold-tint); color: var(--gold-dark); }

/* 隐私要点摘要框（与文档页 .summary 同风格） */
.privacy-box {
  padding: 18px 20px;
  background: var(--brand-tint, var(--vi-tint));
  border-left: 4px solid var(--brand, var(--vi));
  border-radius: 0 12px 12px 0;
  font-size: 14.5px;
}

.privacy-box > p { margin: 0 0 10px; font-weight: 600; color: var(--brand-deep, var(--vi-deep)); }
.privacy-box ul { margin: 0; padding-left: 1.2em; }
.privacy-box li { margin-bottom: 4px; }
.privacy-box .more { margin: 12px 0 0; font-weight: 400; }
.privacy-box .more a { color: var(--brand-deep, var(--vi-deep)); }

/* ---------- 6. 文档页（隐私政策） ---------- */
.doc-body {
  padding: 40px 20px 64px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* 文档内容撑满剩余高度，页脚贴底 */
.doc-body .doc { flex: 1 0 auto; }

.doc {
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 40px 30px;
  box-shadow: var(--shadow-card);
}

/* 卡片顶部的品牌色渐隐条 */
.doc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand, var(--vi)), var(--brand-line, var(--vi-line)) 55%, transparent 95%);
  opacity: .75;
}

.doc-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.doc .doc-nav__crumb { color: var(--text-3); text-decoration: none; }
.doc .doc-nav__crumb:hover { color: var(--text); }
.doc-nav__links { display: inline-flex; gap: 4px; margin-left: auto; }

.doc-nav__links a {
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}

.doc-nav__links a:hover { color: var(--text); border-color: #D8CFC9; }

.doc-nav__links a.on {
  background: linear-gradient(135deg, #3A332F, #191512);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.doc header { border-bottom: 1px solid var(--line); padding-bottom: 20px; }

.doc h1 { margin: 0 0 8px; font-size: 25px; line-height: 1.35; letter-spacing: .01em; }
.doc h1 .app { color: var(--brand, var(--vi)); }

.doc .meta { margin: 0; font-size: 13.5px; color: var(--text-3); }

.doc h2 { margin: 34px 0 12px; font-size: 18px; line-height: 1.5; }
.doc h2 .num { display: inline-block; min-width: 1.4em; color: var(--brand, var(--vi)); font-variant-numeric: tabular-nums; }

.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 1.25em; }
.doc li { margin-bottom: 6px; }
.doc strong { font-weight: 600; }

.doc a { color: var(--brand-deep, var(--vi-deep)); text-decoration: underline; text-underline-offset: 2px; }

.doc code {
  padding: 1px 5px;
  background: var(--muted-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 结论卡：一屏之内先给最要紧的几句话 */
.doc .summary {
  margin: 22px 0 8px;
  padding: 18px 20px;
  background: var(--brand-tint, var(--vi-tint));
  border-left: 4px solid var(--brand, var(--vi));
  border-radius: 0 12px 12px 0;
}

.doc .summary p { margin: 0 0 10px; font-weight: 600; color: var(--brand-deep, var(--vi-deep)); }
.doc .summary ul { margin: 0; padding-left: 1.2em; color: var(--text); }
.doc .summary li { margin-bottom: 4px; }

.doc .table-wrap { overflow-x: auto; margin: 0 0 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--muted-card); font-weight: 600; white-space: nowrap; }
.doc td.no { color: var(--text-2); }

/* 发布前必须替换的占位符：黄底虚线，替换后高亮自然消失 */
.doc .fill {
  padding: 1px 4px;
  background: var(--gold-tint);
  border-bottom: 1px dashed var(--gold-dark);
  border-radius: 3px;
  color: var(--brand-deep, var(--vi-deep));
}

.doc .contact {
  margin: 0 0 12px;
  padding: 16px 20px;
  background: var(--muted-card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.doc .contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.doc .contact dt { color: var(--text-3); font-size: 14px; white-space: nowrap; }
.doc .contact dd { margin: 0; font-size: 14.5px; }

.doc .note {
  margin: 16px 0 0;
  padding: 14px 18px;
  background: var(--muted-card);
  border-left: 3px solid var(--brand-line, var(--vi-line));
  border-radius: 0 10px 10px 0;
  font-size: 14.5px;
  color: var(--text-2);
}

/* 版本库入口页的条目 */
.doc .entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 10px;
  padding: 15px 18px;
  background: var(--muted-card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.doc .entry--current { background: var(--brand-tint, var(--vi-tint)); border-color: var(--brand-line, var(--vi-line)); }
.doc .entry__ver { font-size: 15px; font-weight: 700; }
.doc .entry__date { font-size: 13px; color: var(--text-3); }
.doc .entry__tags { display: inline-flex; gap: 8px; margin-left: auto; }

.doc .entry__tags a {
  padding: 4px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  text-decoration: none;
  color: var(--brand-deep, var(--vi-deep));
}

.doc .empty { margin: 0; font-size: 14px; color: var(--text-3); }

.doc-foot {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-3);
  text-align: center;
}

/* ---------- 7. 响应式 ---------- */
@media (max-width: 900px) {
  .hero-deco { display: none; }
}

@media (min-width: 901px) {
  /* 桌面端给右侧词气泡留出空间，避免标题/正文与其重叠 */
  .hero { padding-right: 232px; }
}

@media (max-width: 760px) {
  .points { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .home .wrap, .app-page .wrap { padding: 0 14px 44px; }
  .hero { padding: 22px 0 24px; }
  .hero h1 { font-size: 27px; }
  .hero .lede { font-size: 15px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }

  .app-hero { padding: 18px 16px; }
  .app-hero h1 { font-size: 23px; }
  .app-hero .tagline { font-size: 14.5px; }
  .app-hero__logo { height: 58px; max-width: 130px; }
  .app-hero .app-icon { width: 58px; height: 58px; border-radius: 13px; }
  .app-facts { margin-top: 16px; }
  .app-facts > div { grid-template-columns: 82px 1fr; gap: 10px; padding: 10px 14px; }
  .course .badge { margin-left: 0; }

  .doc-body { padding: 16px 12px 40px; }
  .doc { padding: 24px 20px 20px; border-radius: 12px; }
  .doc h1 { font-size: 21px; }
  .doc h2 { margin-top: 28px; font-size: 17px; }
  .doc .contact dl { grid-template-columns: 1fr; gap: 2px 0; }
  .doc .contact dt { margin-top: 6px; }
  .doc .entry__tags { margin-left: 0; }
}
