/* ============================================================
   寻影者 · CineArchive
   设计语言：暖调深色电影质感 · 衬线大标题 · 金色点缀
   ============================================================ */

:root {
  /* 色板 —— 暖调影院黑 */
  --bg: #100e0c;
  --bg-2: #151210;
  --surface: #1a1612;
  --surface-2: #211c15;
  --surface-3: #292319;
  --hairline: rgba(214, 177, 110, 0.16);
  --hairline-soft: rgba(214, 177, 110, 0.09);

  --ink: #ece3d3;
  --ink-2: #b9ad99;
  --ink-3: #82776a;
  --ink-faint: #5a5248;

  --gold: #c9a15c;
  --gold-soft: #e5c98f;
  --gold-deep: #9a793e;
  --gold-glow: rgba(201, 161, 92, 0.35);

  --danger: #c96a5c;

  /* 字体 —— 系统字体栈，国内无需加载外部字体，秒开且中文渲染稳定 */
  --font-display: Georgia, "Songti SC", "STSong", "SimSun", serif;
  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;

  /* 尺寸与节奏 */
  --container: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lg: 0 30px 60px -18px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background: radial-gradient(1400px 800px at 50% -12%, #1d1812 0%, var(--bg) 58%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ============ 布局 ============ */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ============ 顶栏 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 18px max(24px, calc((100% - var(--container)) / 2));
  background: rgba(16, 14, 12, 0.9);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--hairline-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-soft);
}
.brand__cn {
  font-family: var(--font-serif);
  font-size: 16.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.brand__dot {
  color: var(--gold-soft);
  font-size: 13px;
  line-height: 1;
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { color: var(--gold-soft); }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.api-link {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-3);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease);
}
.api-link:hover { color: var(--gold-soft); }

/* 「我的观心」：金色高亮胶囊主入口，一眼可见 */
#growth-btn {
  padding: 6px 16px;
  border: 1px solid rgba(201, 161, 92, 0.55);
  border-radius: 999px;
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 14px;
  background: rgba(201, 161, 92, 0.12);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
#growth-btn:hover {
  background: rgba(201, 161, 92, 0.22);
  border-color: var(--gold);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 12vh, 132px) 24px clamp(64px, 10vh, 108px);
  text-align: center;
}
.hero__eyebrow {
  margin: 0 0 26px;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin: 26px auto 0;
  max-width: 560px;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-2);
}

/* 提问框 */
.ask-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 660px;
  margin: 44px auto 0;
  padding: 8px 8px 8px 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ask-box:focus-within {
  border-color: var(--gold-deep);
  box-shadow: var(--shadow-lg), 0 0 0 4px var(--gold-glow);
}
.ask-box__icon {
  color: var(--gold);
  display: inline-flex;
  flex-shrink: 0;
}
.ask-box__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 12px 0;
}
.ask-box__input::placeholder { color: var(--ink-3); }
.ask-box__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 60%, var(--gold-deep));
  color: #1c1408;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ask-box__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px var(--gold-glow);
}
.ask-box__submit:active { transform: translateY(0); }
.ask-box__submit.is-loading { opacity: 0.7; pointer-events: none; }

.hero__examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.hero__examples-label {
  font-size: 13px;
  color: var(--ink-3);
  margin-right: 2px;
}

/* ============ 通用元素 ============ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chip--ghost {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}
.chip--ghost:hover {
  border-color: var(--gold-deep);
  color: var(--gold-soft);
  transform: translateY(-1px);
}
.chip--gold {
  background: rgba(201, 161, 92, 0.16);
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  border: 1px solid rgba(201, 161, 92, 0.38);
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  color: var(--gold-soft);
}
.chip--muted {
  background: var(--surface-2);
  border: 1px solid var(--hairline-soft);
  color: var(--ink-2);
}

.section-kicker {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.04em;
}
.section-desc {
  max-width: 420px;
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 300;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head--center .section-desc { max-width: 460px; }

/* ============ 推荐结果 ============ */
.results {
  position: relative;
  z-index: 1;
  padding: 40px 0 20px;
}
.results__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}
.results__query {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ink);
}
.results__query span { color: var(--gold-soft); }
.results__intent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.results__note {
  margin: 0 0 30px;
  font-size: 13px;
  color: var(--ink-3);
}

.results__grid {
  display: grid;
  gap: 22px;
}

/* ============ 电影卡片 ============ */
.movie-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.movie-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 161, 92, 0.45);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 161, 92, 0.12);
}
.movie-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 20% -20%, rgba(201, 161, 92, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.movie-card:hover::after { opacity: 1; }

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px;
  isolation: isolate;
}
.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.poster__glyph {
  position: absolute;
  top: -4%;
  right: -6%;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 118px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.13);
  z-index: 0;
  user-select: none;
}
.poster__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.movie-card__body { display: flex; flex-direction: column; min-width: 0; }
.movie-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.movie-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.movie-card__en {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.match-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-3);
  border: 1px solid var(--hairline-soft);
}
.match-badge__num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1;
}
.match-badge__label { font-size: 10px; color: var(--ink-3); letter-spacing: 0.16em; }

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 14px 0 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.meta-dot { color: var(--ink-faint); }
.rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rating__src { color: var(--ink-3); font-size: 11px; }
.rating__val { color: var(--gold-soft); font-weight: 500; font-variant-numeric: tabular-nums; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.tag-pill {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  background: rgba(201, 161, 92, 0.09);
  background: color-mix(in srgb, var(--gold) 9%, transparent);
  border: 1px solid var(--hairline-soft);
  color: var(--ink-2);
}
.tag-pill--hit {
  background: rgba(201, 161, 92, 0.20);
  background: color-mix(in srgb, var(--gold) 20%, transparent);
  border-color: rgba(201, 161, 92, 0.42);
  border-color: color-mix(in srgb, var(--gold) 42%, transparent);
  color: var(--gold-soft);
}

.movie-card__explain {
  margin: 0;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 卡片上的反馈操作 */
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}
.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--hairline-soft);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.mini-btn:hover { border-color: var(--gold-deep); color: var(--gold-soft); }
.mini-btn.is-on { background: rgba(201, 161, 92, 0.16); background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-soft); border-color: rgba(201, 161, 92, 0.40); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }

/* ============ 影片档案库 ============ */
.library { position: relative; z-index: 1; padding: 80px 0 20px; }

.filters { margin-bottom: 34px; display: flex; flex-direction: column; gap: 14px; }
.filters__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filters__label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
  min-width: 44px;
}
.filters__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--filter {
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  color: var(--ink-2);
}
.chip--filter:hover { border-color: var(--gold-deep); color: var(--gold-soft); }
.chip--filter.is-active {
  background: rgba(201, 161, 92, 0.18);
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  border-color: rgba(201, 161, 92, 0.46);
  border-color: color-mix(in srgb, var(--gold) 46%, transparent);
  color: var(--gold-soft);
}

.library__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  gap: 14px;
}
.library__count { margin: 24px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }

.tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--hairline-soft);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 161, 92, 0.45);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 161, 92, 0.12);
}
.tile__poster { aspect-ratio: 3 / 4; position: relative; }
.tile__poster .poster__glyph { font-size: 56px; }
.tile__poster .poster__title { font-size: 12px; }
.tile__body { padding: 12px 14px 14px; }
.tile__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile__meta { margin: 5px 0 0; font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============ 库在生长 ============ */
.growth { position: relative; z-index: 1; padding: 90px 0 30px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.stat {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--hairline-soft);
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-soft);
}
.stat__label { margin-top: 10px; font-size: 13px; color: var(--ink-2); letter-spacing: 0.06em; }

.growth__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.panel {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--hairline-soft);
}
.panel__title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.panel__hint { margin: 0 0 16px; font-size: 13px; color: var(--ink-3); }

.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-3);
  border: 1px solid var(--hairline-soft);
}
.rank-list__idx {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  min-width: 20px;
  text-align: center;
}
.rank-list__text { flex: 1; font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list__count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rank-list--muted .rank-list__idx { color: var(--ink-3); }
.rank-list__empty { color: var(--ink-3); font-size: 14px; padding: 8px 2px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============ 页脚 ============ */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  padding: 56px 0 60px;
  border-top: 1px solid var(--hairline-soft);
  text-align: center;
}
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.site-footer p { margin: 0; color: var(--ink-3); font-size: 13px; }
.site-footer__fine { color: var(--ink-faint); font-size: 12px; }
.site-footer .brand { gap: 10px; }
.site-footer .brand__mark { font-size: 18px; }
.site-footer .brand__cn { font-size: 13px; }
/* 页脚合规信息：版权所有 + ICP 备案号（须与备案主体一致，备案号链接工信部） */
.site-footer__legal {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.site-footer__copy { font-size: 12px; color: var(--ink-faint); }
.site-footer__icp {
  font-size: 12px;
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-footer__icp:hover { color: var(--ink-3); border-bottom-color: var(--hairline); }

/* ============ 弹层 ============ */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none !important; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.82);
  animation: fadeIn 0.3s var(--ease);
}
.modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.4s var(--ease);
}
.modal__close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.modal__close:hover { color: var(--ink); border-color: var(--gold-deep); transform: rotate(90deg); }
.modal__body { padding: 8px 40px 44px; }

.detail-hero { display: grid; grid-template-columns: 120px 1fr; gap: 26px; align-items: end; margin-bottom: 28px; }
.detail-hero .poster { grid-row: span 2; }
.detail-title { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 30px; letter-spacing: 0.02em; }
.detail-en { margin: 4px 0 0; font-family: var(--font-display); font-style: italic; color: var(--ink-3); font-size: 15px; }
.detail-meta { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--ink-2); }

.detail-section { margin-bottom: 26px; }
.detail-section h4 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.detail-section p, .detail-section li { font-size: 14.5px; color: var(--ink-2); font-weight: 300; line-height: 1.9; }
.detail-section ul { margin: 0; padding-left: 18px; }
.detail-section li { margin-bottom: 6px; }

.detail-synopsis {
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink);
  border-left: 2px solid var(--gold-deep);
  padding-left: 18px;
  margin: 0 0 26px;
}

.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.analysis-box {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--hairline-soft);
}
.analysis-box h5 { margin: 0 0 6px; font-size: 13px; color: var(--gold-soft); font-weight: 500; letter-spacing: 0.08em; }
.analysis-box p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

.warning {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(201, 106, 92, 0.40);
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  background: rgba(201, 106, 92, 0.10);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: #e0a99b;
  font-size: 13.5px;
}

/* ============ 空态 / 加载 ============ */
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

/* ============ 动画 ============ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer { to { background-position: -200% 0; } }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .movie-card { grid-template-columns: 108px 1fr; gap: 18px; padding: 18px; }
  .stats, .growth__cols { grid-template-columns: 1fr; }
  .analysis-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .results__head { flex-direction: column; align-items: flex-start; }
  .results__intent { justify-content: flex-start; }
  .detail-hero { grid-template-columns: 96px 1fr; }
}
@media (max-width: 520px) {
  .hide-mobile { display: none; }
  .ask-box { padding-left: 16px; }
  .ask-box__submit span { display: none; }
  .ask-box__submit { padding: 12px 16px; }
  /* 等待回应时把按钮展开，让「专属回应正在为你而来……」看得见 */
  .ask-box__submit.is-waiting span { display: inline; }
  .ask-box__submit.is-waiting { padding: 12px 20px; border-radius: 999px; }
  .movie-card { grid-template-columns: 1fr; }
  .poster { aspect-ratio: 16 / 10; }
  .poster .poster__glyph { font-size: 72px; top: -10%; }
  .poster .poster__title { writing-mode: initial; text-orientation: initial; }

  /* —— 手机端整体字重/间距收窄，让一屏更舒服 —— */
  .hero { padding-top: 24px; padding-bottom: 20px; }
  .hero__title { font-size: 32px; line-height: 1.3; }
  .hero__sub { font-size: 13.5px; margin-top: 14px; }
  .hero__eyebrow { letter-spacing: 0.3em; font-size: 14px; }
  .guide-section { padding-top: 0; }
  .role-cards { margin-top: 16px; gap: 10px; }
  .tags-section__title, .section-title { font-size: 17px; line-height: 1.5; }
  .section-kicker { font-size: 12px; }
  .wizard__question { font-size: 18px; line-height: 1.5; }
  .role-card { width: 150px; padding: 18px 12px; }
  .role-card__name { font-size: 17px; }
  .results__query { font-size: 17px; }
  .interpretation { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}

/* ============ 顶栏 tagline ============ */
.brand__tagline {
  margin-left: auto;
  margin-right: 20px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
@media (max-width: 720px) {
  /* 手机端顶栏：左上角完整品牌名 + 我的观心按钮 */
  .site-header {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px;
  }
  .brand { gap: 4px; min-width: 0; }
  .brand__mark { font-size: 15px; letter-spacing: 0.04em; white-space: nowrap; }
  .brand__cn { font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; color: var(--ink-2); }
  .brand__tagline { display: none; }
  #growth-btn { margin-left: auto; padding: 5px 12px; font-size: 14px; }
  .api-link { font-size: 14px; }
}

/* ============ Hero AI note ============ */
.hero__ai-note {
  margin: 16px 0 0;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gold-soft);
}

/* ============ 标签选项 ============ */
.tags-section { position: relative; z-index: 1; padding: 8px 0 46px; }
.tags-section__head { text-align: center; margin-bottom: 28px; }
.tags-section__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: 0.03em;
}
.tag-groups { display: flex; flex-direction: column; gap: 22px; }
.tag-group__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.tag-group__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline-soft);
}
.tag-group__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--tag {
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chip--tag:hover {
  border-color: var(--gold-deep);
  color: var(--gold-soft);
  transform: translateY(-1px);
}

/* ============ 推荐结果：小胶囊卡片（长方形椭圆） ============ */
.results__grid { display: flex; flex-direction: column; gap: 10px; }
.movie-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 12px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--hairline-soft);
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.movie-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 161, 92, 0.45);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.5);
}
.movie-pill__poster {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
}
.movie-pill__main { flex: 1; min-width: 0; }
.movie-pill__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.movie-pill__meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.movie-pill__tags { display: flex; gap: 6px; flex-shrink: 0; }
.movie-pill__score {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-soft);
  min-width: 46px;
  text-align: right;
}
@media (max-width: 560px) {
  .movie-pill { gap: 10px; padding: 9px 12px 9px 10px; }
  .movie-pill__poster { width: 38px; height: 38px; font-size: 17px; }
  .movie-pill__tags { display: none; }
  .movie-pill__score { min-width: 38px; font-size: 15px; }
}

/* ============ 品牌切换（禅说电影 / 影领圈） ============ */
body[data-brand="yingling"] {
  --gold: #7b9bd6;
  --gold-soft: #a9c3ee;
  --gold-deep: #5a78b0;
  --hairline: rgba(150, 180, 225, 0.16);
  --hairline-soft: rgba(150, 180, 225, 0.09);
}
.brand-switch {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: 999px;
  padding: 3px;
}
.brand-switch button {
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.brand-switch button.is-active {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1c1408;
}

/* ============ 双角色 · 5问引导 ============ */
.guide-section { position: relative; z-index: 1; padding: 8px 0 30px; }
.role-select { text-align: center; }
.role-cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.role-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 200px; padding: 26px 20px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--hairline-soft);
  border-radius: 18px;
  cursor: pointer;
  color: var(--ink); /* 关键：button 默认是深色文字，必须显式设为亮色 */
  transition: all 0.3s var(--ease);
}
.role-card:hover { transform: translateY(-3px); border-color: var(--gold-deep); box-shadow: 0 14px 30px -16px rgba(0,0,0,.5); }
.role-card__icon { font-size: 30px; }
.role-card__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--gold-soft); /* 明亮金色，深底高对比 */
  letter-spacing: 0.08em;
}
.role-card__desc { font-size: 12.5px; color: var(--ink-2); }
.wizard { max-width: 560px; margin: 30px auto 0; }
.wizard__progress { height: 4px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.wizard__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); transition: width 0.3s var(--ease); }
.wizard__step { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.2em; color: var(--ink-3); text-transform: uppercase; }
.wizard__question { margin: 0 0 18px; font-family: var(--font-serif); font-weight: 600; font-size: 22px; }
.wizard__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.wizard__chips .chip--tag.is-selected { background: rgba(201,161,92,0.22); border-color: var(--gold-deep); color: var(--gold-soft); }
/* 「展开全部 / 收起」按钮 + 提示：标签扩容后避免一屏糊满 */
.chip--more {
  background: transparent;
  border: 1px dashed var(--gold-deep);
  color: var(--gold-soft);
  margin: 0 0 14px;
}
.chip--more:hover { background: rgba(201,161,92,0.12); }
.wizard__hint { margin: -6px 0 16px; font-size: 12.5px; color: var(--ink-3); }
.wizard__nav { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }

/* 首页两大板块统一大标题 */
.board-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: 0.05em;
  color: var(--gold-soft);
  line-height: 1.25;
}
.board-sub {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink);
}
.board-enter {
  margin-top: 22px;
  padding: 12px 28px;
  border: 1px solid rgba(201, 161, 92, 0.55);
  border-radius: 999px;
  background: rgba(201, 161, 92, 0.12);
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.board-enter:hover {
  background: rgba(201, 161, 92, 0.22);
  border-color: var(--gold);
}
.board-enter--ghost {
  background: transparent;
  border-color: var(--hairline-soft);
  color: var(--ink-2);
}
.board-enter--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--gold-deep);
  color: var(--gold-soft);
}
.life-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.life-actions .board-enter { margin-top: 0; }
.life-again-tip {
  margin: 20px auto 0;
  max-width: 460px;
  font-size: 13px;
  line-height: 2;
  color: var(--ink-3);
  text-align: center;
}

/* 观己观心表单 */
.life-form__tip { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-3); }
.life-q { margin-bottom: 18px; }
.life-q__label { display: block; margin-bottom: 8px; font-family: var(--font-serif); font-size: 15.5px; line-height: 1.6; color: var(--gold-soft); }
.life-q textarea, .life-q input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline-soft);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  resize: vertical;
  line-height: 1.7;
}
.life-q input { resize: none; }
.life-q textarea { min-height: 110px; }
#life-born { min-height: 150px; }

/* 未填完的草稿提示条 */
.life-draft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(201, 161, 92, 0.35);
  background: rgba(201, 161, 92, 0.1);
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: left;
}
.life-draft button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 161, 92, 0.5);
  background: transparent;
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
#life-draft-restart { border-color: var(--hairline-soft); color: var(--ink-3); font-weight: 400; }

/* 人生电影 · 对话模式 */
.life-chat {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-soft);
  text-align: left;
}
.life-chat__title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}
.life-chat__tip { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); }
.life-chat__log { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.chat-bubble {
  max-width: 88%;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
}
.chat-bubble--user {
  align-self: flex-end;
  background: rgba(201, 161, 92, 0.16);
  border: 1px solid rgba(201, 161, 92, 0.32);
  color: var(--ink);
}
.chat-bubble--ai {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  color: var(--ink-2);
  font-weight: 300;
}
.life-chat__bar { display: flex; gap: 8px; align-items: center; }
#life-chat-input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline-soft);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
}
#life-chat-send {
  flex: none;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(201, 161, 92, 0.55);
  background: rgba(201, 161, 92, 0.12);
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
#life-chat-send:hover { background: rgba(201, 161, 92, 0.22); border-color: var(--gold); }

/* LLM 直接推荐的 top3 卡片 */
.top3-card {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--hairline-soft);
  background: var(--surface);
  margin-bottom: 14px;
}
.top3-card__rank {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(201, 161, 92, 0.5);
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}
.top3-card__title { margin: 0 0 6px; font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--ink); }
.top3-card__meta { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }
.top3-card__rating {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(201, 161, 92, 0.14);
  color: var(--gold-soft);
  font-size: 12.5px;
  font-weight: 600;
}
.top3-card__synopsis { margin: 0 0 12px; font-size: 14px; line-height: 1.9; color: var(--ink-2); font-weight: 300; }
.top3-card__angle {
  margin: 0 0 12px;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(201, 161, 92, 0.08);
  border-left: 2px solid rgba(201, 161, 92, 0.55);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.top3-card__angle strong { color: var(--gold-soft); font-weight: 600; }
.top3-card__reason {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(201, 161, 92, 0.08);
  border-left: 2px solid var(--gold-soft);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
  font-weight: 300;
}

/* ============ 看别人的电影 / 你的人生电影（首页两大板块） ============ */
.section-sub { max-width: 480px; margin: 12px 0 0; color: var(--ink-2); font-size: 15px; font-weight: 300; }
.guide-section .section-head,
.life-section .section-head { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 20px; }

.life-section { position: relative; z-index: 1; padding: 30px 0 70px; }
.life-wizard { max-width: 560px; margin: 0 auto; }
.life-result { max-width: 560px; margin: 30px auto 0; }
.life-film { text-align: center; }
.life-poster {
  width: 100%;
  max-width: 340px;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--hairline-soft);
}
.life-poster-tip { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }
.life-film__meta { display: flex; flex-direction: column; gap: 10px; align-items: center; margin: 22px 0 4px; }
.life-film__genre {
  font-family: var(--font-serif);
  color: var(--gold-soft);
  font-size: 14px;
  letter-spacing: 0.12em;
  border: 1px solid rgba(201, 161, 92, 0.4);
  border-radius: 999px;
  padding: 4px 16px;
}
.life-film__tagline { font-family: var(--font-serif); font-size: 18px; color: var(--ink); }
.life-film__review { margin: 18px 0 0; font-size: 15px; line-height: 2; color: var(--ink-2); font-weight: 300; white-space: pre-wrap; text-align: left; }

.life-daily { max-width: 560px; margin: 40px auto 0; padding-top: 30px; border-top: 1px solid var(--hairline-soft); }
.life-daily__title { margin: 0 0 8px; font-family: var(--font-serif); font-size: 19px; color: var(--gold-soft); letter-spacing: 0.04em; }
.life-daily__sub { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-3); }
#daily-story {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline-soft);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  resize: vertical;
  line-height: 1.7;
}

/* 5问引导的结果解读块 */
.interpretation {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: rgba(201, 161, 92, 0.08);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 6px;
  white-space: pre-wrap;
}

/* 影片详情 · 按 5 问答案的个性化解读 */
.personal-box { position: relative; }
.personal-loading {
  font-size: 13.5px;
  color: var(--ink-3);
  font-weight: 300;
  font-style: italic;
  animation: personalPulse 1.6s ease-in-out infinite;
}
@keyframes personalPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.personal-support {
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 300;
  line-height: 2;
  white-space: pre-wrap;
}
.personal-questions li {
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 300;
  line-height: 1.9;
}
.personal-questions li::marker { color: var(--gold-soft); }

/* ============ 我的观心（成长中心） ============ */
.growth-hero { text-align: center; padding: 8px 0 18px; }
.growth-level { margin: 4px 0 6px; font-family: var(--font-serif); font-weight: 700; font-size: 30px; letter-spacing: .06em; }
.growth-level-desc { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-2); }
.growth-bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; max-width: 320px; margin: 0 auto; }
.growth-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); border-radius: 999px; }
.growth-next { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.growth-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.growth-stats > div { padding: 14px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hairline-soft); text-align: center; }
.growth-stats strong { display: block; font-family: var(--font-display); font-size: 22px; color: var(--gold-soft); line-height: 1; }
.growth-stats span { font-size: 11.5px; color: var(--ink-3); }
.growth-section { margin-bottom: 22px; }
.note-guide {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--gold-soft);
}
.growth-section h4 { margin: 0 0 10px; font-family: var(--font-serif); font-size: 14px; font-weight: 600; letter-spacing: .1em; color: var(--gold); }
.lights { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.light-dot { font-size: 18px; color: var(--ink-faint); transition: all .3s; }
.light-dot.is-lit { color: var(--gold-soft); text-shadow: 0 0 8px var(--gold-glow); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  width: 96px;
  padding: 14px 8px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  text-align: center;
  opacity: 0.45;
  filter: grayscale(1);
  transition: all 0.4s var(--ease);
}
.badge__icon { font-size: 26px; line-height: 1; }
.badge__name { font-size: 13px; font-weight: 600; color: var(--ink); }
.badge__desc { font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }
.badge__lit {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  border: 1px solid rgba(201, 161, 92, 0.4);
  border-radius: 999px;
  padding: 1px 8px;
  margin-top: 2px;
}
.badge.is-earned {
  opacity: 1;
  filter: none;
  border-color: rgba(201, 161, 92, 0.45);
  background: linear-gradient(180deg, rgba(201, 161, 92, 0.16), rgba(201, 161, 92, 0.04));
  box-shadow: 0 0 16px rgba(201, 161, 92, 0.25), inset 0 0 12px rgba(201, 161, 92, 0.08);
  animation: badge-glow 2.6s ease-in-out infinite;
}
.badge.is-earned .badge__icon { animation: candle-flicker 1.8s ease-in-out infinite; }
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(201, 161, 92, 0.18), inset 0 0 8px rgba(201, 161, 92, 0.05); }
  50% { box-shadow: 0 0 22px rgba(201, 161, 92, 0.5), inset 0 0 14px rgba(201, 161, 92, 0.12); }
}
@keyframes candle-flicker {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.08); }
  60% { transform: scale(0.96); }
}

/* ============ 共修场 ============ */
.sessions-section { position: relative; z-index: 1; padding: 20px 0 50px; }
.sessions-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.session-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--hairline-soft);
  border-radius: 16px;
}
.session-card__main { flex: 1; min-width: 0; }
.session-card__title { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 17px; }
.session-card__meta { margin: 5px 0 0; font-size: 12.5px; color: var(--ink-3); }
.session-card__desc { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.session-form { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); }

/* ============ 我的笔记 ============ */
.note-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  margin-bottom: 10px;
}
.note-item__meta { margin: 0 0 8px; font-size: 12px; color: var(--ink-3); }
.note-item__resp { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.85; white-space: pre-wrap; }

/* ============ 登录弹层 ============ */
.modal__dialog--sm { width: min(420px, 100%); }
.login-hero { text-align: center; margin-bottom: 18px; }
.login-title { margin: 4px 0 8px; font-family: var(--font-serif); font-weight: 700; font-size: 22px; }
.login-sub { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.login-options { display: flex; flex-direction: column; gap: 10px; }
.login-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease);
}
.login-opt:hover { border-color: var(--gold-deep); }
.login-opt__icon { font-size: 26px; }

/* ============ 移动端友好错误提示 ============ */
.init-error-warning {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(201, 105, 92, 0.95);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-width: 90vw;
  text-align: center;
  backdrop-filter: blur(10px);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .init-error-warning {
    top: auto;
    bottom: 20px;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 13px;
  }
}
.login-opt strong { display: block; font-size: 15px; color: var(--ink); }
.login-opt small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ============ 页脚项目二维码 ============ */
.site-qr { margin-top: 26px; text-align: center; }
.site-qr img {
  width: 148px;
  height: 148px;
  border-radius: 10px;
  background: #fff;
  padding: 7px;
  box-sizing: content-box;
}
.site-qr__tip { margin: 12px 0 14px; font-size: 12.5px; color: var(--ink-3); }
.site-qr__save { display: inline-block; text-decoration: none; }

/* ============ 我的人生电影（观己档案） ============ */
.life-log__tip { margin: 0 0 12px; font-size: 12.5px; line-height: 1.8; color: var(--ink-3); }
.life-log { padding: 14px 0; border-bottom: 1px solid var(--hairline-soft); }
.life-log:last-child { border-bottom: none; padding-bottom: 0; }
.life-log__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.life-log__title { font-family: var(--font-serif); font-size: 15.5px; color: var(--gold-soft); }
.life-log__date { flex: none; font-size: 12px; color: var(--ink-3); }
.life-log__tagline { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.life-log__pattern { margin: 6px 0 0; font-size: 13px; color: var(--gold); }
.life-log__toggle { margin-top: 10px; }
.life-log__review {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.life-saved { margin: 14px 0 0; font-size: 13px; color: var(--gold-soft); }

/* ============ 人生电影报告弹层 ============ */
.report-head {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold-soft);
  text-align: center;
  letter-spacing: 0.05em;
}
.report-img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--hairline-soft);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.report-tip { margin: 14px 0 16px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
#report-save { display: inline-block; text-decoration: none; }
.life-log__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* 笔记列表头部（日期 + 成长分） */
.note-item__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.note-item__score {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(201, 161, 92, 0.14);
  color: var(--gold-soft);
  font-size: 11.5px;
  font-weight: 600;
}
.life-poster--empty {
  display: grid;
  place-items: center;
  height: 200px;
  border-radius: 16px;
  border: 1px dashed var(--hairline-soft);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 13px;
}
