/* ============================================================
   诗刻 PoemO'Clock · 网站样式
   配色与字体参照 App 标准；交互反馈参照 Apple 官网
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  /* 配色（App 标准） */
  --paper:   #F5F6F8;   /* 纸色（浅色底） */
  --card:    #FFFFFF;   /* 卡片 */
  --ink:     #1F2430;   /* 主文字 */
  --sub:     #5A6066;   /* 次要文字 */
  --accent:  #407EC9;   /* 强调/链接（蓝） */
  --gold:    #E6B53E;   /* 品牌金 */
  --gold-dk: #A96A00;   /* 深金（浅底文字用） */
  --divider: #E5E7EB;   /* 分割线 */
  --dark:    #0E1524;   /* 深夜蓝 */
  --dark-2:  #1A2332;   /* 深色卡片 */
  --dark-ink:#EAEEF5;   /* 深色文字 */
  --dark-sub:#93A0B6;   /* 深色次要文字 */

  /* 字体 */
  --font-en:  Georgia, "Times New Roman", serif;
  --font-cn-title: "Songti SC", "STSong", "Noto Serif SC", serif;
  --font-cn-body:  -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Apple 式缓动 */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* 尺寸 */
  --nav-h: 56px;
  --maxw: 980px;
  --radius: 18px;
  --radius-lg: 24px;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;            /* 平滑滚动 */
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-cn-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* 让内容少的页面（抖音入口、404）页脚也落在屏幕底部 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

/* 图标基类（描边线性图标） */
.ic {
  width: 1.05em;
  height: 1.05em;
  display: inline-block;
  vertical-align: -0.15em;
  flex: none;
}
.btn .ic { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

::selection { background: rgba(230, 181, 62, .3); }

/* ---------- 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   导航（Apple 式：吸顶 + 毛玻璃）
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(245, 246, 248, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, .8);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  white-space: nowrap;
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-dk);
  letter-spacing: .5px;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav-logo img { height: 22px; width: auto; }
.nav-logo:active { transform: scale(.96); }

.nav-links { display: flex; align-items: center; gap: 4px; flex: none; }
.nav-links a {
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--sub);
  border-radius: 10px;
  transition: color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }
.nav-links a:active { transform: scale(.94); }
.nav-links a.on { color: var(--ink); font-weight: 600; }

/* 移动端：隐藏次要链接，并收紧间距让 4 个主链接单行放得下 */
@media (max-width: 560px) {
  .nav-links .hide-sm { display: none; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 7px; font-size: 13px; }
  .nav-logo { font-size: 15px; gap: 6px; }
  .nav-logo img { height: 19px; }
}
/* 小屏手机（≤355px，如 320px 的 SE）：再收一档，只留 3 个入口 */
@media (max-width: 355px) {
  .nav-links .hide-xs { display: none; }
  .nav-links a { padding: 8px 6px; font-size: 12.5px; }
  .nav-logo { font-size: 14px; }
}

/* ============================================================
   按钮（Apple 式：悬停微浮 + 按下回弹）
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .3px;
  transition: transform .28s var(--ease-spring),
              box-shadow .28s var(--ease),
              background .25s var(--ease),
              color .25s var(--ease),
              border-color .25s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.95); }        /* 按下回弹 */

.btn-primary {
  background: var(--gold);
  color: #2B2B2B;
  box-shadow: 0 2px 10px rgba(230, 181, 62, .28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(230, 181, 62, .38);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--divider);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 2px 10px rgba(64, 126, 201, .28); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(64, 126, 201, .38); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ============================================================
   滚动入场动画（Apple 式淡入上浮）
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   首屏 Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 76px 0 64px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(230, 181, 62, .13) 0%, rgba(230, 181, 62, 0) 62%),
    linear-gradient(180deg, #FBFBF9 0%, var(--paper) 100%);
}
.hero-brand {
  font-family: var(--font-en);
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 700;
  color: var(--gold-dk);
  letter-spacing: 1px;
  animation: heroIn .9s var(--ease-out) both;
}
.hero-title {
  margin-top: 14px;
  font-family: var(--font-cn-title);
  font-size: clamp(26px, 6.4vw, 40px);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ink);
  animation: heroIn .9s .08s var(--ease-out) both;
}
.hero-sub {
  margin-top: 10px;
  font-family: var(--font-en);
  font-size: clamp(14px, 3.6vw, 18px);
  color: var(--sub);
  letter-spacing: 1.5px;
  animation: heroIn .9s .16s var(--ease-out) both;
}
.hero-desc {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: 15.5px;
  color: var(--sub);
  animation: heroIn .9s .24s var(--ease-out) both;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroIn .9s .32s var(--ease-out) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* 数据条 */
.hero-stats {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 40px;
  animation: heroIn .9s .4s var(--ease-out) both;
}
.hero-stat { text-align: center; }
.hero-stat b {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(22px, 5.4vw, 30px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.hero-stat span { font-size: 12.5px; color: var(--sub); letter-spacing: 1px; }

/* ============================================================
   通用区块
   ============================================================ */
.section { padding: 60px 0; }
.section-tight { padding: 40px 0; }

.section-head { text-align: center; margin-bottom: 34px; }
.section-eyebrow {
  font-family: var(--font-en);
  font-size: 12.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  margin-top: 10px;
  font-family: var(--font-cn-title);
  font-size: clamp(21px, 5vw, 28px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}
.section-sub { margin-top: 10px; font-size: 14.5px; color: var(--sub); }

/* ============================================================
   今日一句（主视觉卡片）
   ============================================================ */
.daily-card {
  position: relative;
  background: linear-gradient(165deg, var(--dark) 0%, #16203A 62%, var(--dark) 100%);
  border-radius: var(--radius-lg);
  padding: 38px 30px 32px;
  color: var(--dark-ink);
  box-shadow: 0 20px 50px rgba(14, 21, 36, .22);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  overflow: hidden;
}
.daily-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 50% at 50% 0%, rgba(230, 181, 62, .16), transparent 70%);
  pointer-events: none;
}
.daily-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(14, 21, 36, .28); }
.daily-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  font-family: var(--font-en);
}
.daily-cn {
  margin-top: 16px;
  font-family: var(--font-cn-title);
  font-size: clamp(22px, 5.4vw, 30px);
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}
.daily-en {
  margin-top: 14px;
  font-family: var(--font-en);
  font-size: clamp(17px, 4.4vw, 22px);
  line-height: 1.6;
  color: var(--gold);
  font-style: italic;
}
.daily-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(230, 181, 62, .22);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--dark-ink);
  opacity: .9;
}
.daily-foot {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.daily-brand {
  font-family: var(--font-en);
  font-size: 12.5px;
  color: var(--dark-sub);
  letter-spacing: 1px;
}
.daily-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gold);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.daily-go:hover { transform: translateX(4px); }

/* ============================================================
   入口卡片（三宫格）
   ============================================================ */
.entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
/* 四宫格（首页入口用） */
.entries.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .entries.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .entries { grid-template-columns: 1fr; gap: 12px; }
  .entries.cols-4 { grid-template-columns: 1fr; }
}
.entry {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .35s var(--ease-out),
              box-shadow .35s var(--ease-out),
              border-color .35s var(--ease);
  overflow: hidden;
}
.entry:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .09);
  border-color: transparent;
}
.entry:active { transform: translateY(-1px) scale(.99); }
.entry-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(230, 181, 62, .14);
  color: var(--gold-dk);
  margin-bottom: 14px;
  transition: transform .35s var(--ease-spring);
}
.entry:hover .entry-icon { transform: scale(1.08) rotate(-4deg); }
.entry-icon svg { width: 22px; height: 22px; }
.entry h3 {
  font-family: var(--font-cn-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .5px;
}
.entry p { margin-top: 6px; font-size: 13.5px; color: var(--sub); line-height: 1.65; }
.entry-arrow {
  position: absolute;
  right: 20px; top: 26px;
  color: var(--divider);
  font-size: 18px;
  transition: transform .35s var(--ease-out), color .35s var(--ease);
}
.entry:hover .entry-arrow { transform: translateX(4px); color: var(--gold); }

/* ============================================================
   卡片学习（网页版刷卡）
   ============================================================ */
.study-shell {
  max-width: 620px;
  margin: 0 auto;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* 手机上筛选条改成横向滑动，省下大段竖向空间 */
@media (max-width: 720px) {
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -20px;
    padding: 2px 20px 4px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips .chip { flex: none; }
}
.chip {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--sub);
  background: var(--card);
  border: 1px solid var(--divider);
  transition: transform .25s var(--ease-spring), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { border-color: var(--sub); }
.chip:active { transform: scale(.94); }
.chip.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.search-box {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 999px;
  padding: 9px 16px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(64, 126, 201, .12);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}
.search-box svg { width: 16px; height: 16px; color: var(--sub); flex: none; }

/* 卡牌 */
.card-stage {
  position: relative;
  perspective: 1400px;
}
.flip-card {
  position: relative;
  width: 100%;
  height: clamp(340px, 58vh, 520px);
  transform-style: preserve-3d;
  transition: transform .62s var(--ease-out);
}
.flip-card.flipped { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.flip-back { transform: rotateY(180deg); justify-content: flex-start; }
/* 内容包一层，便于量出真实高度（卡片按内容自适应） */
.face-inner { width: 100%; }

/* 正文分行与行首标签（卡片正文与诗歌共用） */
.lines .ln { margin-bottom: 9px; }
.lines .ln:last-child { margin-bottom: 0; }
.lines .ln:empty { height: .55em; }
.lines .lb {
  color: var(--gold-dk);
  font-weight: 600;
  margin-right: 4px;
}

.card-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(230, 181, 62, .14);
  color: var(--gold-dk);
}
.tag.diff { background: rgba(64, 126, 201, .12); color: var(--accent); }

.card-title {
  font-family: var(--font-cn-title);
  font-size: clamp(19px, 4.6vw, 23px);
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: .5px;
}
.card-body {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.card-body .w {
  cursor: pointer;
  border-radius: 4px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.card-body .w:hover { background: rgba(230, 181, 62, .18); }
.card-body .w.saved { color: var(--gold-dk); font-weight: 600; }

.card-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 翻卡提示 */
.flip-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--sub);
  animation: breathe 2.6s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}

/* 进度条 */
.progress {
  height: 4px;
  background: var(--divider);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 18px;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #F0CB6A);
  border-radius: 999px;
  transition: width .55s var(--ease-out);
}

/* 单词释义浮层 */
.pop {
  position: fixed;
  z-index: 200;
  min-width: 180px;
  max-width: 280px;
  background: var(--dark);
  color: var(--dark-ink);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  pointer-events: none;
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-spring);
}
.pop.show { opacity: 1; transform: none; pointer-events: auto; }
.pop b { display: block; font-family: var(--font-en); font-size: 17px; color: var(--gold); margin-bottom: 6px; }
.pop span { font-size: 13.5px; line-height: 1.6; color: var(--dark-ink); }

/* ============================================================
   列表（卡片列表 / 诗歌列表）
   ============================================================ */
.list { display: grid; gap: 10px; }
.list-item {
  display: block;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 16px 18px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease);
}
.list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .07);
  border-color: transparent;
}
.list-item:active { transform: translateY(-1px) scale(.995); }
.list-item h4 {
  font-family: var(--font-cn-title);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}
.list-meta { margin-top: 8px; display: flex; gap: 7px; flex-wrap: wrap; }

/* ============================================================
   诗歌
   ============================================================ */
.poem {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .05);
}
.poem h2 {
  font-family: var(--font-en);
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}
.poem .poem-cn {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--sub);
  letter-spacing: 1px;
}
.poem .poem-au {
  margin-top: 4px;
  text-align: center;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
}
.poem .poem-div {
  width: 40px; height: 2px;
  background: var(--gold);
  margin: 22px auto;
}
.poem .poem-en {
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 2;
  white-space: pre-wrap;
  color: var(--ink);
}
.poem .poem-tr {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--divider);
  font-size: 15px;
  line-height: 1.95;
  white-space: pre-wrap;
  color: var(--sub);
}
.poem .poem-ap {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--sub);
}

/* ============================================================
   深色区块（下载 App）
   ============================================================ */
.dark-band {
  background: linear-gradient(165deg, var(--dark) 0%, #16203A 60%, var(--dark) 100%);
  color: var(--dark-ink);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(230, 181, 62, .14), transparent 70%);
  pointer-events: none;
}
.dark-band .wrap { position: relative; }
.dark-band h2 {
  font-family: var(--font-cn-title);
  font-size: clamp(20px, 5vw, 27px);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
}
.dark-band p { margin-top: 12px; font-size: 14.5px; color: var(--dark-sub); }
.dark-band .hero-actions { margin-top: 26px; }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  margin-top: auto;              /* 内容不足一屏时把页脚压到底部 */
  padding: 36px 0 44px;
  text-align: center;
  font-size: 12.5px;
  color: var(--sub);
  line-height: 2;
}
.footer .f-en { font-family: var(--font-en); letter-spacing: 1px; }

/* ============================================================
   分段控件（Apple 式）与工具行
   ============================================================ */
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
}
.count { font-size: 13px; color: var(--sub); }
.count b { color: var(--ink); font-weight: 600; }

.seg {
  display: inline-flex;
  background: rgba(0, 0, 0, .05);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  font-size: 13.5px;
  border-radius: 9px;
  color: var(--sub);
  transition: background .28s var(--ease), color .28s var(--ease),
              box-shadow .28s var(--ease), transform .2s var(--ease);
}
.seg button:active { transform: scale(.95); }
.seg button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04);
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--sub);
  font-size: 14px;
}
.empty .ic { width: 30px; height: 30px; color: var(--divider); margin-bottom: 12px; }

/* 收藏星标 */
.fav-btn { color: var(--divider); transition: color .25s var(--ease), transform .3s var(--ease-spring); }
.fav-btn:hover { color: var(--gold); }
.fav-btn:active { transform: scale(.86); }
.fav-btn.on { color: var(--gold); }
.fav-btn.on .ic { fill: currentColor; }

/* 卡片列表项内的标签 */
.list-item .tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   测验（词汇量测试）
   ============================================================ */
.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--sub);
}
.quiz-head b { color: var(--ink); font-weight: 600; }

.quiz-word { text-align: center; padding: 26px 0 20px; }
.quiz-word b {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(30px, 8.5vw, 44px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .5px;
  word-break: break-word;
}
.quiz-word i {
  display: block;
  font-style: normal;
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--sub);
  margin-top: 8px;
}
.quiz-word .js-speak {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--gold-dk);
  cursor: pointer;
}

.opts { display: grid; gap: 10px; }
.opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--divider);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  transition: transform .25s var(--ease-spring), border-color .25s var(--ease),
              background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.opt:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 20px rgba(64, 126, 201, .12); }
.opt:active { transform: scale(.985); }
.opt .k { font-family: var(--font-en); color: var(--sub); flex: none; }
.opt.ok {
  border-color: var(--gold);
  background: rgba(230, 181, 62, .13);
  box-shadow: 0 8px 22px rgba(230, 181, 62, .18);
}
.opt.no { border-color: #C0392B; background: rgba(192, 57, 43, .07); }
.opt.dim { opacity: .5; }
.opt.skip {
  justify-content: center;
  text-align: center;
  color: var(--sub);
  border-style: dashed;
}
.opt[disabled] { cursor: default; }
.opt[disabled]:hover { transform: none; border-color: var(--divider); box-shadow: none; }
.opt.ok[disabled]:hover { border-color: var(--gold); }
.opt.no[disabled]:hover { border-color: #C0392B; }

/* 结果 */
.result-hero { text-align: center; padding: 8px 0 4px; }
.result-hero b {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(46px, 14vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -1px;
}
.result-hero .of { font-size: 14px; color: var(--sub); margin-top: 6px; }
.result-hero .pct {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(230, 181, 62, .16);
  color: var(--gold-dk);
  font-size: 13.5px;
  font-weight: 600;
}
.verdict {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--divider);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink);
}
.verdict b { color: var(--gold-dk); }

/* 错题回看 */
.review { display: grid; gap: 9px; }
.review .rw {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 14px;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .28s var(--ease);
}
.review a.rw:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .07); border-color: transparent; }
.review .rw b { font-family: var(--font-en); font-size: 16px; color: var(--ink); flex: none; }
.review .rw span { color: var(--sub); font-size: 13.5px; }
.review .rw em { font-style: normal; margin-left: auto; color: var(--gold-dk); font-size: 12.5px; flex: none; }

/* 成绩卡预览 */
.share-prev {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--divider);
  background: var(--paper);
}
.share-prev img { width: 100%; display: block; }

/* ============================================================
   抖音入口（App 图标样式）
   ============================================================ */
.approw {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: 22px 24px;
  transition: transform .38s var(--ease-out), box-shadow .38s var(--ease-out),
              border-color .38s var(--ease);
}
.approw:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .11);
  border-color: transparent;
}
.approw:active { transform: translateY(-1px) scale(.995); }

/* 图标：方形圆角，像真的 App 图标 */
.appicon {
  position: relative;
  flex: none;
  width: 66px;
  height: 66px;
  border-radius: 19px;
  overflow: hidden;
  display: block;
  object-fit: cover;
  background: var(--dark);
  box-shadow: 0 8px 20px rgba(14, 21, 36, .26),
              inset 0 0 0 1px rgba(0, 0, 0, .06);
  transition: transform .38s var(--ease-spring);
}
.approw:hover .appicon { transform: scale(1.06) rotate(-3deg); }

/* 不想用图片图标时：把 <img class="appicon"> 换成
   <span class="appicon appicon-txt"><span>诗</span></span>，下面这套就生效 */
.appicon-txt {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1B2740 0%, var(--dark) 62%, #0A101C 100%);
  color: var(--gold);
  font-family: var(--font-cn-title);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(14, 21, 36, .3),
              inset 0 1px 0 rgba(255, 255, 255, .16),
              inset 0 -1px 0 rgba(0, 0, 0, .3);
}
.appicon-txt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(78% 58% at 50% 0%, rgba(230, 181, 62, .26), transparent 72%);
  pointer-events: none;
}
.appicon-txt > span { position: relative; z-index: 1; }

.app-meta { flex: 1; min-width: 0; }
.app-meta b {
  display: block;
  font-family: var(--font-cn-title);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: .5px;
}
.app-meta i {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--sub);
}
.app-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-dk);
  white-space: nowrap;
  transition: transform .28s var(--ease);
}
.approw:hover .app-go { transform: translateX(3px); }

@media (max-width: 480px) {
  .approw { gap: 14px; padding: 18px 18px; border-radius: 18px; }
  .appicon { width: 58px; height: 58px; border-radius: 17px; }
  .appicon-txt { font-size: 31px; }
  .app-meta b { font-size: 17.5px; }
  .app-meta i { font-size: 12.5px; }
  /* 手机上整块都可点，右侧只留箭头，把空间让给文案 */
  .app-go { font-size: 15px; }
  .app-go .go-txt { display: none; }
}

/* ============================================================
   加载状态（Apple 式细环）
   ============================================================ */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 0;
  color: var(--sub);
  font-size: 13.5px;
}
.spinner {
  width: 26px; height: 26px;
  border: 2px solid var(--divider);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   工具类
   ============================================================ */
.hidden { display: none !important; }
.center { text-align: center; }
.mt-6 { margin-top: 6px; } .mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; }
.muted { color: var(--sub); }
.small { font-size: 13px; }

/* 页面切换淡入 */
.page-fade { animation: pageIn .5s var(--ease-out) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
