/* ===== 设计令牌 =====
   主题：黑白金杂志风——纯白底 + 墨黑字 + 古金点缀，发丝线、无阴影、大量留白 */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --text: #161B20;
  --muted: #4A525B;
  --gold: #B08A2E;
  --gold-deep: #7C6118;
  --paper: #FFFFFF;
  --line: #E8E8E4;
  --goldline: rgba(176, 138, 46, 0.28);
  --serif-sc: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif;
  --garamond: 'EB Garamond', 'Cormorant Garamond', Garamond, Georgia, serif;
  --sans-sc: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17.5px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif-sc);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.has-tab { padding-bottom: 4.5rem; }

::selection {
  background: var(--gold);
  color: var(--paper);
}

/* ===== 导航 ===== */
.nav {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 0.9rem;
  text-align: center;
}

.nav-enter {
  position: absolute;
  top: 0.7rem;
  right: 1.5rem;
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-size: 1.05rem;
  color: var(--gold-deep);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.25s;
}

.nav-enter:hover { color: #6B4F14; }

.nav::after {
  content: "";
  display: block;
  margin: 1rem auto 0;
  width: 200px;
  max-width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.brand {
  display: block;
  font-family: var(--garamond);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  background: linear-gradient(180deg, #B08A2E 0%, #8A6D1F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(176, 138, 46, 0.22));
}

.brand-zh {
  display: block;
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  color: var(--text);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  margin-top: 0.3rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 9vh;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--sans-sc);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: #283E53;
  margin-bottom: 1.9rem;
}

/* 首屏「开始写日记」入口（替换原微标签） */
.hero-start {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 0.6rem 1rem;
  transition: color 0.25s ease;
}
.hero-start:hover { color: #6B4F14; }

.hero h1 {
  font-family: var(--garamond);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

.sub {
  margin-top: 1.2rem;
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.cursor {
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  margin-left: 0.15em;
  background: var(--gold);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

/* ===== 书法题词（Start free 按钮下方留白） ===== */
.calligraphy {
  margin-top: 2rem;
  max-width: 40em;
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  line-height: 2.1;
  color: #3D3630;
  text-align: center;
}
.calligraphy::before { content: "—— "; color: var(--gold-deep); font-size: 1.1rem; }
.calligraphy::after { content: " ——"; color: var(--gold-deep); font-size: 1.1rem; }

/* ===== 首屏下拉箭头 ===== */
.scroll-down {
  margin-top: 2.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.25s, border-color 0.25s;
}

.scroll-down:hover {
  color: var(--gold-deep);
  border-color: rgba(169, 132, 45, 0.55);
}

/* ===== 按钮 ===== */
.cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1.05rem 3.2rem;
  border: none;
  border-radius: 999px;
  background: #283E53;
  color: var(--paper);
  font-family: var(--serif-sc);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s;
}

.cta span {
  display: block;
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.92;
  line-height: 1.5;
  margin-top: 0.12rem;
}

.cta:hover {
  background: #6E3A2C;
  transform: translateY(-1px);
}

.cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* 轻压反馈（触屏可感知） */
.cta:active,
.dlg-opt:active,
.fb-tab:active,
.entry:active,
.arena:active {
  transform: scale(0.97);
}

/* ===== 章节 ===== */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.section + .section {
  position: relative;
  padding-top: 6rem;
}

.section + .section::before {
  content: "";
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 138, 46, 0.65), transparent);
}

.section + .section::after {
  content: "";
  position: absolute;
  top: calc(3rem - 4.5px);
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1px solid rgba(176, 138, 46, 0.7);
}

.eyebrow {
  display: flex;
  align-items: center;
  color: var(--gold-deep);
  font-family: var(--sans-sc);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  margin-right: 0.75rem;
}

/* 各区块 eyebrow 短线轮换书封色 */
#how .eyebrow::before { background: #2F5347; }
#feedback .eyebrow::before { background: #283E53; }
#features .eyebrow::before { background: #5C4250; }
#arenas .eyebrow::before { background: #283E53; }

/* 分章菱形按区块色轮换 */
#feedback::after { border-color: #2F5347; }
#features::after { border-color: #283E53; }
#arenas::after { border-color: #5C4250; }
.final::after { border-color: #283E53; }

h2 {
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.8vw, 2.6rem);
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}

/* ===== 三步（流程感） ===== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.steps li {
  position: relative;
  background: var(--surface);
  border: none;
  border-radius: 2px;
  padding: 2rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

/* 三步各配一种书封淡彩，序号用对应深色 */
.steps li:nth-child(1) { --step-color: #2F5347; background: #EAF1EE; }
.steps li:nth-child(2) { --step-color: #283E53; background: #ECF1F6; }
.steps li:nth-child(3) { --step-color: #5C4250; background: #EBEEF3; }

.steps li:hover {
  box-shadow: 0 2px 14px rgba(22, 19, 15, 0.08);
  transform: translateY(-2px);
}

.num {
  display: block;
  color: var(--step-color, var(--gold));
  font-family: var(--garamond);
  font-style: italic;
  font-size: 2.3rem;
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.steps h3 {
  font-family: var(--serif-sc);
  font-weight: 600;
  font-size: 1.22rem;
  margin-bottom: 0.5rem;
}

.steps p {
  font-size: 1.15rem;
  color: var(--muted);
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps li:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.3rem;
    line-height: 1;
  }
}

/* ===== 三大特色（杂志清单感） ===== */
.cards {
  list-style: none;
  display: grid;
  max-width: 760px;
}

.card {
  background: transparent;
  border: none;
  padding: 0 0 2rem;
}

.card + .card {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.card h3 {
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--gold-deep);
}

.card p {
  font-size: 1.3rem;
  color: #454F57;
  margin-top: 0.55rem;
}

/* 词典权威字标墙（佐证「词典用哪家」） */
.dict-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 1.1rem;
  row-gap: 0.45rem;
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}
.dict-marks span {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #808B93;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .dict-marks span { font-size: 0.85rem; letter-spacing: 0.16em; }
  .dict-marks { column-gap: 0.7rem; }
}
.dict-marks i {
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

/* ===== 反馈问答（区别于三步/特色：居中聚焦 + Q 编号 + 黑问句 + 金短线答句） ===== */
#feedback .cards {
  max-width: 640px;
  margin: 0 auto;
}

#feedback .card {
  text-align: center;
}

#feedback .card h3 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.8rem;
  font-family: var(--serif-sc);
  font-weight: 600;
  font-size: 1.85rem;
  color: var(--text);
}

#feedback .card h3::before {
  font-family: var(--sans-sc);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}

#feedback .card:nth-child(1) h3::before {
  content: "Q1";
  color: #2F5347;
}

#feedback .card:nth-child(2) h3::before {
  content: "Q2";
  color: #283E53;
}

#feedback .card:nth-child(3) h3::before {
  content: "Q3";
  color: #283E53;
}

#feedback .card p {
  border-left: none;
  padding-left: 0;
  margin-top: 0.9rem;
  font-size: 1.45rem;
  color: #454F57;
}

#feedback .card p::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 0.9rem;
}

/* ===== 三大特色（横向三列标语墙，区别于问答的纵向单列） ===== */
#features .cards {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

#features .card {
  text-align: center;
  padding: 0 2.25rem;
}

#features .card + .card {
  border-top: none;
  border-left: 1px solid var(--line);
  padding-top: 0;
}

#features .card h3 {
  font-size: 1.9rem;
}

#features .card p {
  font-size: 1.3rem;
}

@media (max-width: 820px) {
  #features .cards {
    grid-template-columns: 1fr;
    gap: 2.25rem 0;
  }
  #features .card {
    padding: 0;
  }
  #features .card + .card {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 2.25rem;
  }
}

/* ===== 五个目标 · 五色书脊带 ===== */
.arenas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  max-width: 860px;
  margin: 0 auto;
}

.arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  padding: 1.6rem 0.5rem 1.4rem;
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.arena:hover {
  background: rgba(22, 19, 15, 0.045);
  transform: translateY(-2px);
}

.arena-spine {
  width: 100%;
  height: 6px;
  border-radius: 1px;
  opacity: 0.92;
}

.arena-zh {
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-size: 1.5rem;
  color: #31383F;
  letter-spacing: 0.06em;
}

.arena-en {
  font-family: var(--garamond);
  font-style: italic;
  font-size: 0.95rem;
  color: #65707A;
}

.arena-cta {
  display: block;
  text-align: center;
  margin-top: 2.2rem;
  font-family: var(--serif-sc);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  text-decoration: none;
  transition: color 0.25s;
}

.arena-cta:hover { color: #6B4F14; }

/* 目标锁提醒 */
.arena-notice {
  max-width: 560px;
  margin: 1.6rem auto 0;
  text-align: center;
  font-family: var(--serif-sc);
  font-size: 1.05rem;
  line-height: 1.9;
  color: #454F57;
  background: transparent;
  border: none;
  padding: 1rem 0;
}
.arena-notice a {
  color: var(--gold-deep);
  text-decoration: none;
  margin: 0 0.6rem;
  white-space: nowrap;
}
.arena-notice a:hover { color: #6B4F14; }

/* ===== 人格画像（核心页面板 + 独立成长画像页共用） ===== */
.fb-label {
  display: flex; align-items: baseline; gap: 0.8rem;
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-size: 1.3rem; letter-spacing: 0.12em; color: var(--fb-color, var(--gold-deep));
  margin-bottom: 1.7rem;
  transition: filter 0.3s;
}
.fb-label::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--fb-color, #8A6D1F) 45%, transparent), transparent);
}
.fb-num {
  font-family: var(--garamond); font-style: italic;
  font-size: 1.1rem; color: var(--fb-color, var(--gold));
}

.persona-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.4rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}
.p-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.65rem 1.3rem;
  border-radius: 2px;
  min-width: 5.5rem;
}
.p-stat b {
  font-family: var(--garamond); font-style: italic; font-weight: 500;
  font-size: 1.4rem; color: var(--gold-deep); line-height: 1.1;
}
.p-stat span {
  font-family: var(--sans-sc); font-weight: 300;
  font-size: 0.8rem; letter-spacing: 0.08em; color: #65707A;
}
.p-stat.s1 { background: #EAF1EE; }
.p-stat.s2 { background: #ECF1F6; }
.p-stat.s3 { background: #EBEEF3; }
.p-stat.s4 { background: #E9EEF2; }

.persona-dim { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.1rem; }
.persona-dim:last-child { margin-bottom: 0; }
.persona-dim-name {
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-size: 1.35rem; color: #31383F;
  width: 3.6rem; flex-shrink: 0;
  transition: color 0.25s ease;
}
.persona-dim:hover .persona-dim-name { color: var(--gold-deep); }
.p-bar {
  flex: 1; height: 7px;
  background: rgba(176, 138, 46, 0.15);
  border-radius: 4px;
  overflow: hidden;
}
.p-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1.1s ease-out 0.15s;
}
.persona-dim.d1 .p-fill { background: #3E5770; }
.persona-dim.d2 .p-fill { background: #7A5E6E; }
.persona-dim.d3 .p-fill { background: #C4A050; }
.persona-dim.d4 .p-fill { background: #467A68; }
.persona-dim.d5 .p-fill { background: #A8614D; }
.persona-dim-num {
  font-family: var(--garamond); font-style: italic;
  font-size: 1.25rem; color: var(--gold-deep);
  width: 2.6rem; text-align: right; flex-shrink: 0;
}

.persona-kw {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 2.5rem 0 2.7rem;
}
.p-kw {
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 1rem;
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.p-kw:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(70, 85, 95, 0.15);
}
.p-kw.k1 { background: #EAF1EE; color: #2F5347; }
.p-kw.k2 { background: #ECF1F6; color: #283E53; }
.p-kw.k3 { background: #EBEEF3; color: #5C4250; }
.p-kw.k4 { background: #E9EEF2; color: #8A4634; }
.p-kw.k5 { background: #EAF0EE; color: #3C5D66; }

.persona-fig {
  background: #FFFFFF;
  border: none;
  border-left: 6px solid var(--fig-color, #2F5347);
  border-radius: 0;
  padding: 1.8rem 2rem;
  margin-bottom: 1.4rem;
  box-shadow: none;
}
.persona-fig:last-child { margin-bottom: 0; }
.persona-fig.fig1 { --fig-color: #2F5347; }
.persona-fig.fig2 { --fig-color: #283E53; }
.persona-fig-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.persona-fig-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fig-color, #2F5347) 15%, transparent);
  color: var(--fig-color, #2F5347);
  display: flex; align-items: center; justify-content: center;
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.persona-fig-name {
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-size: 1.85rem; color: #31383F;
}
.persona-fig-meta {
  font-family: var(--sans-sc); font-weight: 300;
  font-size: 0.95rem; color: #65707A; margin-top: 0.1rem;
}
.persona-fig-quote {
  position: relative;
  font-family: var(--garamond); font-style: italic;
  font-size: 1.5rem; color: #A87E2F;
  margin-top: 0.3rem;
  padding-left: 1.1rem;
}
.persona-fig-quote::before {
  content: "\201C";
  position: absolute;
  left: -0.2rem;
  top: -0.35rem;
  font-family: var(--garamond);
  font-size: 2.6rem;
  color: var(--fig-color, #2F5347);
  opacity: 0.5;
}
.persona-fig-quote-zh {
  font-family: var(--sans-sc);
  font-weight: 300;
  font-size: 1rem;
  color: #65707A;
  margin-top: 0.45rem;
  padding-left: 1.1rem;
}
.persona-fig-why {
  font-family: var(--serif-sc); font-size: 1.2rem;
  line-height: 1.95; color: #454F57; margin-top: 0.8rem;
}

.persona-para {
  font-family: var(--serif-sc); font-size: 1.5rem;
  line-height: 2.0; color: #31383F;
  margin: 0 0 0.8rem;
}
.persona-para:last-child { margin-bottom: 0; }
.persona-li {
  position: relative;
  font-family: var(--serif-sc); font-size: 1.2rem;
  line-height: 1.95; color: #454F57;
  padding-left: 1.7rem; margin: 0 0 0.7rem;
}
.persona-li:last-child { margin-bottom: 0; }
.persona-li::before {
  content: "";
  position: absolute; left: 0.15rem; top: 0.58em;
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--exam-color, #8A6D1F);
  opacity: 0.85;
}
.persona-li-en {
  font-family: var(--garamond);
  font-size: 1.22rem;
  line-height: 1.8;
  color: #33393F;
}
.persona-li-zh {
  font-family: var(--sans-sc);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #65707A;
  margin-top: 0.3rem;
}
.persona-li.advice::before {
  background: var(--gold, #A9842D);
}

.persona-motto { text-align: center; margin-top: 3.2rem; }
.persona-motto-line {
  width: 72px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 138, 46, 0.7), transparent);
  margin: 0 auto 1.4rem;
}
.persona-motto-text {
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  letter-spacing: 0.08em;
  color: #31383F;
}
.persona-motto-line.after { margin: 1.4rem auto 0; }

.persona-foot {
  text-align: center;
  font-family: var(--sans-sc); font-weight: 300;
  font-size: 0.95rem; letter-spacing: 0.05em;
  color: #5B544A;
  margin-top: 2.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  line-height: 2;
}
.persona-regen { color: var(--gold-deep); cursor: pointer; transition: color 0.25s; }
.persona-regen:hover { color: #6B4F14; }
.persona-share-btn {
  display: inline-block;
  margin-left: 1rem;
  font-family: var(--serif-sc); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.06em;
  color: #8A6D1F;
  border: none;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: color 0.25s;
}
.persona-share-btn:hover { color: #6B4F14; }
.persona-empty { text-align: center; font-family: var(--serif-sc); font-size: 1.25rem; line-height: 2.2; color: #454F57; }
.persona-empty b { font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif; color: var(--gold-deep); font-weight: 400; font-size: 1.6rem; }
.persona-loading { font-family: var(--sans-sc); font-weight: 300; color: var(--muted); font-size: 1.05rem; line-height: 2; }
.persona-retry { color: var(--gold-deep); cursor: pointer; }

/* ===== 顶部金色滚动进度线 ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #B08A2E, #283E53);
  z-index: 300;
  pointer-events: none;
}

/* ===== 全局键盘焦点环 ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #B08A2E;
  outline-offset: 2px;
}

/* ===== 词条点击展开/收起例句（默认展开，点击收起） ===== */
.vocab-item {
  cursor: pointer;
  user-select: none;
}
.vocab-item::after {
  content: " ▾";
  font-family: var(--sans-sc);
  font-size: 0.85rem;
  color: rgba(176, 138, 46, 0.6);
  align-self: baseline;
  transition: transform 0.3s ease;
}
.vocab-item.open::after {
  content: " ▸";
}
.vocab-item .vocab-example {
  display: block;
}
.vocab-item.open .vocab-example {
  display: none;
}

/* ===== 名人卡 hover 微动 ===== */
.persona-fig {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.persona-fig:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(70, 85, 95, 0.12);
}
.persona-fig:hover .persona-fig-badge {
  transform: rotate(-8deg);
}
.persona-fig-badge {
  transition: transform 0.3s ease;
}

/* ===== 落地页卡片交错入场 ===== */
html.js .reveal .steps li,
html.js .reveal #features .card,
html.js .reveal .arena {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
html.js .reveal.in .steps li,
html.js .reveal.in #features .card,
html.js .reveal.in .arena {
  opacity: 1;
  transform: none;
}
html.js .reveal.in .steps li:nth-child(2),
html.js .reveal.in #features .card:nth-child(2),
html.js .reveal.in .arena:nth-child(2) { transition-delay: 0.12s; }
html.js .reveal.in .steps li:nth-child(3),
html.js .reveal.in #features .card:nth-child(3),
html.js .reveal.in .arena:nth-child(3) { transition-delay: 0.24s; }
html.js .reveal.in .arena:nth-child(4) { transition-delay: 0.36s; }
html.js .reveal.in .arena:nth-child(5) { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal .steps li,
  html.js .reveal #features .card,
  html.js .reveal .arena {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== 全站链接 hover 下划线滑入 ===== */
.nav-enter,
.arena-cta,
.back-diary,
.home-link {
  position: relative;
}
.nav-enter::after,
.arena-cta::after,
.back-diary::after,
.home-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-enter:hover::after,
.arena-cta:hover::after,
.back-diary:hover::after,
.home-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== 回到顶部 ===== */
.back-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.8rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 1.05rem;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.25s, border-color 0.25s;
}
.back-top.show {
  opacity: 1;
  pointer-events: auto;
}
.back-top:hover {
  color: var(--gold-deep);
  border-color: rgba(169, 132, 45, 0.55);
}
.back-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== 收尾五色菱形签名 ===== */
.final-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 2.6rem;
}

.final-dots i {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  display: inline-block;
  opacity: 0.9;
}

/* ===== 收尾 ===== */
.final {
  text-align: center;
  padding-bottom: 7rem;
}

.final h2 {
  font-family: var(--garamond);
  font-style: italic;
}

/* ===== 页脚 ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.footer-links {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-links a {
  color: var(--gold-deep);
  text-decoration: none;
  margin: 0 0.55rem;
  transition: color 0.25s;
}

.footer-links a:hover { color: #6B4F14; }

.footer-icp {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: #9A9284;
  letter-spacing: 0.04em;
}
.footer-icp a {
  color: inherit;
  text-decoration: none;
}

.sign {
  font-family: 'STXingkai', '华文行楷', 'KaiTi', 'STKaiti', serif;
  color: var(--gold-deep);
  font-size: 1.05rem;
}

/* ===== 敦煌飞天背景（全局固定） ===== */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("assets/feitian-relief-warmwhite.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1.4s cubic-bezier(0.3, 0.6, 0.3, 1);
  will-change: transform;
}

body[data-section="0"] .hero-bg {
  transform: scale(1.02);
}

body[data-section="1"] .hero-bg {
  transform: scale(1.08) translateY(-2%) scaleX(-1);
}

body[data-section="2"] .hero-bg {
  transform: scale(1.16) translateY(-5%);
}

body[data-section="3"] .hero-bg {
  transform: scale(1.24) translateY(-8%) scaleX(-1);
}

.hero-ink {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
}

.ink-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none;
  background: linear-gradient(180deg,
    #FFFFFF 0%,
    rgba(255, 255, 255, 0.8) 30%,
    rgba(255, 255, 255, 0.35) 55%,
    rgba(255, 255, 255, 0.05) 75%,
    transparent 90%);
}

.hero h1,
.hero .sub,
.hero .cta,
.hero .calligraphy,
.hero .scroll-down {
  position: relative;
  z-index: 1;
}

/* ===== 滚动淡入 ===== */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== 页面切换过渡（跨文档 View Transitions · 渐进增强） =====
   支持（Chromium ≥126 / 新版 Safari/Edge）时，同源页面间切换做轻量淡入上浮；
   不支持的浏览器自动回退为普通跳转，零风险。不改布局、不影响单页交互。 */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: kvt-out 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
::view-transition-new(root) {
  animation: kvt-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes kvt-out {
  to { opacity: 0.25; transform: translateY(-5px); }
}
@keyframes kvt-in {
  from { opacity: 0.35; transform: translateY(9px); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0s !important;
  }
}

/* ===== 动画与无障碍 ===== */
@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .ink-veil {
    display: block;
  }
  .cursor {
    display: none;
  }
}

/* ===== 小屏 ===== */
@media (max-width: 640px) {
  html {
    font-size: 16px;
  }
  .section {
    padding: 4rem 1.5rem;
  }
  .hero {
    padding: 2rem 1.5rem 8vh;
  }
  .hero h1 {
    font-size: clamp(1.8rem, 7.5vw, 2.4rem);
  }
  .brand {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  .brand-zh {
    font-size: clamp(1.05rem, 4.6vw, 1.3rem);
    margin-top: 0.2rem;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }
  .calligraphy {
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    line-height: 2.1;
  }
  .arenas {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.3rem;
  }
  .arena { padding: 1.1rem 0.1rem 1rem; gap: 0.55rem; }
  .arena-zh { font-size: 1.05rem; }
  .arena-en { font-size: 0.72rem; }
}

/* ===== 标题折行平衡（工艺项：避免孤字/失衡断行） ===== */
h1, h2 { text-wrap: balance; }

/* ===== 底部 Tab 栏（小程序形态：纯文字、无框无底色、藏蓝选中+金短线） ===== */.mini-tab {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: rgba(255, 255, 255, 0.97);
  border: none;
  border-top: 1px solid rgba(22, 28, 35, 0.07);
  display: flex;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mini-tab-inner {
  display: flex;
  width: 100%;
  max-width: 560px;
}
.mini-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 56px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--sans-sc);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #8B948E;
  transition: color 0.2s;
}
.mini-tab-item:active { color: #283E53; }
.mini-tab-item.active {
  color: #283E53;
  font-weight: 600;
}
.mini-tab-item.active::after {
  content: "";
  display: block;
  width: 12px;
  height: 2px;
  background: var(--gold-deep);
  margin-top: 3px;
}
body.has-tab .back-top { bottom: 4.6rem; }

/* ===== 移动端：默认隐藏背景画与墨迹层（写作/画像页回纯白质感）；仅落地页 .is-ink 保留 ===== */
@media (hover: none), (max-width: 768px) {
  body:not(.is-ink) .hero-bg,
  body:not(.is-ink) .hero-ink,
  body:not(.is-ink) .ink-veil { display: none; }
}

/* 落地页触屏墨迹：淡墨打底 + 手指擦除显影 + 一键拂开 */
body.is-ink .hero-ink { transition: opacity 0.65s ease; }
body.is-ink.ink-open .hero-ink { opacity: 0; pointer-events: none; }
.ink-hint {
  text-align: center;
  margin-top: 0.7rem;
  font-family: var(--sans-sc);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(60, 75, 90, 0.5);
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.9s ease;
}
.ink-hint.out { opacity: 0; }
@media (hover: none), (max-width: 768px) {
  .ink-hint { display: block; }
}
@media (hover: hover) and (min-width: 769px) {
  .ink-hint { display: none; }
}

/* 落地页首访轻卡（Q2：花 3 分钟带我走一遍） */
.tour-invite {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 4.55rem;
  z-index: 160;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}
.tour-invite[hidden] { display: none; }
.tour-invite .inv-card {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  width: 100%;
  max-width: 520px;
  background: #FFFFFF;
  box-shadow: 0 10px 28px rgba(22, 28, 35, 0.13);
  padding: 0.85rem 1.1rem 0.85rem 1.3rem;
  border-top: 1px solid rgba(176, 138, 46, 0.45);
  animation: inviteUp 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes inviteUp {
  from { transform: translateY(12px); opacity: 0; }
}
.tour-invite p {
  font-family: var(--serif-sc);
  font-size: 0.98rem;
  line-height: 1.7;
  color: #4A525B;
  margin: 0;
}
.tour-invite .inv-actions { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.tour-invite button {
  border: none;
  background: none;
  font-family: var(--sans-sc);
  cursor: pointer;
  padding: 0.35rem 0.4rem;
  white-space: nowrap;
}
.tour-invite #invite-go { color: var(--gold-deep); font-weight: 400; letter-spacing: 0.08em; font-size: 0.95rem; }
.tour-invite #invite-go:hover { color: #6B4F14; }
.tour-invite #invite-later { color: #9AA4AE; font-weight: 300; font-size: 0.85rem; letter-spacing: 0.06em; }
@media (max-width: 400px) {
  .tour-invite .inv-card { flex-direction: column; align-items: stretch; text-align: center; gap: 0.5rem; padding: 0.9rem 1.1rem; }
}

/* 连续天数火焰标（无 emoji） */
.streak-fire { display: inline-block; vertical-align: -1px; margin-right: 3px; }

/* ============================================================
   落地页 · 杂志编辑风（样板，仅 body.is-ink = 首页生效）
   手法：更宽的留白章节奏 / 更大更紧的展示级标题 / 刊头与
   章节指引的精修 / 无框去圆的克制工艺。其余页面不受影响。
   ============================================================ */
body.is-ink { letter-spacing: 0.002em; }

/* 刊头 masthead */
body.is-ink .nav { max-width: 1080px; padding: 1.8rem 1.5rem 1rem; }
body.is-ink .brand { font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: 0.24em; text-indent: 0.24em; }
body.is-ink .brand-zh { font-size: clamp(1.15rem, 3.6vw, 1.45rem); margin-top: 0.35rem; letter-spacing: 0.32em; text-indent: 0.32em; }
body.is-ink .nav::after { width: 60px; height: 1px; margin-top: 1rem;
  background: linear-gradient(90deg, transparent, rgba(176, 138, 46, 0.9), transparent); }

/* 首屏：展示级排版 + 呼吸 */
body.is-ink .hero { min-height: 86vh; padding: 2.2rem 1.5rem 9vh; }
body.is-ink .hero-start { margin-bottom: 2.2rem; font-size: 1.5rem; }
body.is-ink .hero h1 { font-size: clamp(2.4rem, 7vw, 4.7rem); line-height: 1.02; letter-spacing: -0.022em; }
body.is-ink .hero .sub { margin-top: 1.6rem; font-size: 1.3rem; color: #3D3630; letter-spacing: 0.12em; }
body.is-ink .hero .calligraphy { margin-top: 2.4rem; font-size: 1.4rem; letter-spacing: 0.16em; line-height: 2.1; color: #453F37; }
body.is-ink .calligraphy::before, body.is-ink .calligraphy::after { font-size: 1.2rem; }
body.is-ink .scroll-down { border: none; border-radius: 0; width: auto; height: auto; margin-top: 2.4rem;
  color: rgba(74, 82, 91, 0.5); font-size: 1.5rem; line-height: 1; }
body.is-ink .scroll-down::after { content: ""; display: block; width: 1px; height: 26px; margin: 0.3rem auto 0;
  background: linear-gradient(180deg, rgba(176, 138, 46, 0.85), rgba(176, 138, 46, 0)); }
body.is-ink .scroll-down:hover { color: #8A6D1F; }

/* 章节节奏：章与章之间留白适中，避免过度空旷 */
body.is-ink .section { max-width: 1000px; padding: 6.5rem 1.5rem; }
body.is-ink .section + .section { padding-top: 6.5rem; }
body.is-ink .section + .section::before { top: 3.25rem; width: 110px; }
body.is-ink .section + .section::after { top: calc(3.25rem - 4.5px); }

/* 章节指引（running head）与标题 */
body.is-ink .eyebrow { justify-content: center; font-size: 0.9rem; letter-spacing: 0.28em; text-indent: 0.28em; margin-bottom: 0.9rem; }
body.is-ink .eyebrow::before { width: 26px; height: 2px; }
body.is-ink h2 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.24; letter-spacing: 0.04em; margin-bottom: 2.4rem; }

/* 三步流程卡 */
body.is-ink .steps { gap: 1.9rem; }
body.is-ink .steps li { padding: 2.5rem 2.2rem 2.3rem; }
body.is-ink .steps .num { font-size: 2.4rem; margin-bottom: 0.85rem; }
body.is-ink .steps h3 { font-size: 1.36rem; margin-bottom: 0.6rem; letter-spacing: 0.02em; }

/* 问答/特色清单 */
body.is-ink .cards { max-width: 780px; }
body.is-ink #feedback .cards { max-width: 660px; }
body.is-ink #feedback .card h3 { font-size: 1.9rem; }
body.is-ink .card p { line-height: 2; }
body.is-ink .card + .card { padding-top: 2.2rem; }
body.is-ink .dict-marks { margin-top: 1.2rem; }
body.is-ink .dict-marks span { letter-spacing: 0.28em; }

/* 收尾章节 */
body.is-ink .final { padding-bottom: 7rem; }
body.is-ink .final h2 { font-size: clamp(2.3rem, 5.2vw, 3.3rem); line-height: 1.1; }

/* 滚动淡入节奏 */
body.is-ink .reveal { transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1); }

@media (max-width: 640px) {
  body.is-ink .hero { min-height: 86vh; padding: 2.2rem 1.5rem 8vh; }
  body.is-ink .hero h1 { font-size: clamp(2.05rem, 9.5vw, 2.9rem); line-height: 1.06; }
  body.is-ink .hero .calligraphy { font-size: 1.25rem; }
  body.is-ink .section { padding: 4.75rem 1.5rem; }
  body.is-ink .section + .section { padding-top: 4.75rem; }
  body.is-ink .section + .section::before { top: 2.4rem; }
  body.is-ink .section + .section::after { top: calc(2.4rem - 4.5px); }
  body.is-ink h2 { margin-bottom: 2rem; }
}
