/* 岁序 · H5 文化导航 */
:root {
  --bg: #071820;
  --bg-elev: #0d2733;
  --bg-soft: #123040;
  --ink: #e8f2f4;
  --muted: #8aa8b3;
  --jade: #3ecf9a;
  --jade-dim: rgba(62, 207, 154, 0.16);
  --amber: #e6b35a;
  --coral: #e86f5c;
  --line: rgba(232, 242, 244, 0.1);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --topbar-h: 56px;
  --bottom-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* App WebView / 刘海屏：顶部至少留出状态栏，避免与网页重合 */
@supports (padding-top: constant(safe-area-inset-top)) {
  :root {
    --safe-t: constant(safe-area-inset-top);
  }
}

@supports (padding-top: env(safe-area-inset-top)) {
  :root {
    --safe-t: env(safe-area-inset-top, 0px);
  }
}

@media (max-width: 900px) {
  :root {
    /* 部分安卓 App 不回传 safe-area，给状态栏兜底高度 */
    --safe-t: max(env(safe-area-inset-top, 0px), 32px);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + var(--safe-t) + 12px);
  scroll-padding-bottom: calc(var(--bottom-h) + var(--safe-b) + 12px);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-h) + var(--safe-b) + 16px);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.45;
}

.orb-a {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -80px;
  background: radial-gradient(circle, #1f6f6a 0%, transparent 70%);
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-b {
  width: 320px;
  height: 320px;
  bottom: 12%;
  left: -120px;
  background: radial-gradient(circle, #2a4a6e 0%, transparent 70%);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(24px, -18px); }
}

.topbar,
.page,
.bottom-nav {
  position: relative;
  z-index: 1;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: content-box;
  height: var(--topbar-h);
  padding: var(--safe-t) 16px 0;
  backdrop-filter: blur(16px);
  background: rgba(7, 24, 32, 0.92);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--jade), #1f8f7a);
  color: #042018;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.brand-text span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.year-chip {
  max-width: 46vw;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(62, 207, 154, 0.35);
  background: var(--jade-dim);
  color: var(--jade);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Page */
.page {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 8px 16px 32px;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--topbar-h) - var(--bottom-h) - 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0 40px;
  overflow: hidden;
}

.hero-brand {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--jade);
  text-transform: uppercase;
  animation: rise 0.7s ease both;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 12vw, 56px);
  line-height: 1.12;
  letter-spacing: 0.04em;
}

.hero-title .line {
  display: block;
  animation: rise 0.8s ease both;
}

.hero-title .line:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-title .accent {
  color: var(--amber);
}

.hero-desc {
  margin: 16px 0 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 15px;
  animation: rise 0.9s ease 0.12s both;
}

.hero-cta {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
  animation: rise 1s ease 0.18s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #45d6a4, #2aa884);
  color: #042018;
}

.btn-download {
  background: linear-gradient(135deg, #f0d078, #e6b35a 45%, #d4923a);
  color: #2a1608;
  box-shadow: 0 8px 22px rgba(230, 179, 90, 0.35);
  font-weight: 700;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--jade-dim);
  color: var(--jade);
  border: 1px solid rgba(62, 207, 154, 0.3);
}

.hero-orbit {
  position: absolute;
  right: -18px;
  top: 18%;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: fadeIn 1.2s ease 0.3s both;
}

.hero-orbit .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(230, 179, 90, 0.35);
  animation: spin 28s linear infinite;
}

.hero-orbit .ring-2 {
  inset: 18px;
  border-style: solid;
  border-color: rgba(62, 207, 154, 0.25);
  animation-direction: reverse;
  animation-duration: 18s;
}

.hero-orbit .core {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 28px;
  background: radial-gradient(circle at 35% 30%, #1a4a55, #0a2430 70%);
  border: 1px solid rgba(230, 179, 90, 0.45);
  box-shadow: 0 0 40px rgba(62, 207, 154, 0.2);
  color: var(--amber);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Quick nav */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 8px 0 28px;
}

.q-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 48, 64, 0.9), rgba(13, 39, 51, 0.7));
  border: 1px solid var(--line);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.q-item:active {
  transform: scale(0.96);
  border-color: rgba(62, 207, 154, 0.45);
}

.q-item.q-hot {
  border-color: rgba(230, 179, 90, 0.45);
  background: linear-gradient(180deg, rgba(64, 42, 18, 0.95), rgba(18, 48, 64, 0.75));
  box-shadow: 0 0 0 1px rgba(230, 179, 90, 0.12), 0 10px 24px rgba(230, 179, 90, 0.08);
}

.q-item.q-hot .q-icon {
  background: rgba(230, 179, 90, 0.18);
  color: var(--amber);
}

.q-item.q-hot .q-label {
  color: var(--amber);
}

.q-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-family: var(--font-serif);
  font-size: 16px;
  background: var(--jade-dim);
  color: var(--jade);
}

.q-label {
  font-size: 13px;
  font-weight: 600;
}

.q-sub {
  font-size: 10px;
  color: var(--muted);
}

/* Sections */
.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.06em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.block {
  margin-bottom: 36px;
}

/* App 下载 · 显眼入口 */
.download-block {
  margin-top: 4px;
  margin-bottom: 22px;
}

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(240, 208, 120, 0.35), transparent 55%),
    linear-gradient(125deg, #3a2810 0%, #1a3428 45%, #0f2834 100%);
  border: 1px solid rgba(230, 179, 90, 0.55);
  box-shadow:
    0 0 0 1px rgba(230, 179, 90, 0.12),
    0 18px 40px rgba(230, 179, 90, 0.18),
    0 16px 36px rgba(0, 0, 0, 0.35);
  animation: rise 0.55s ease both;
}

.download-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 208, 120, 0.45), transparent 70%);
  animation: drift 6s ease-in-out infinite alternate;
  pointer-events: none;
}

.download-ico {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 28px;
  font-weight: 700;
  color: #2a1608;
  background: linear-gradient(145deg, #f5df9a, #e6b35a);
  box-shadow: 0 10px 22px rgba(230, 179, 90, 0.4);
  animation: pulseBadge 2s ease-in-out infinite;
}

.download-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.download-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
}

.download-copy h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.04em;
  color: #fff8ea;
}

.download-tip {
  margin: 6px 0 0;
  font-size: 12px;
  color: #d7c49a;
  line-height: 1.4;
}

.download-ver {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(230, 179, 90, 0.85);
}

.download-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: #2a1608;
  background: linear-gradient(135deg, #f5df9a, #e6b35a 55%, #d4923a);
  box-shadow: 0 8px 18px rgba(230, 179, 90, 0.35);
}

.download-panel:active {
  transform: scale(0.985);
}

.download-panel:active .download-btn {
  filter: brightness(1.05);
}

@media (max-width: 380px) {
  .download-panel {
    grid-template-columns: auto 1fr;
  }

  .download-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.fab-download {
  position: fixed;
  right: 14px;
  bottom: calc(var(--bottom-h) + var(--safe-b) + 18px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f5df9a, #e6b35a 50%, #d4923a);
  color: #2a1608;
  box-shadow: 0 12px 28px rgba(230, 179, 90, 0.45), 0 0 0 3px rgba(230, 179, 90, 0.18);
  animation: pulseBadge 2.4s ease-in-out infinite;
}

.fab-ico {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.fab-txt {
  font-size: 11px;
  font-weight: 700;
}

body.is-viewing .fab-download {
  visibility: hidden;
  pointer-events: none;
}

/* 长跟必赚 · 突出专区 */
.must-block {
  margin-top: 4px;
}

.must-panel {
  position: relative;
  padding: 18px 14px 16px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(230, 179, 90, 0.28), transparent 55%),
    radial-gradient(70% 60% at 0% 100%, rgba(232, 111, 92, 0.16), transparent 50%),
    linear-gradient(155deg, #1a3428 0%, #0f2834 48%, #1c2218 100%);
  border: 1px solid rgba(230, 179, 90, 0.4);
  box-shadow:
    0 0 0 1px rgba(62, 207, 154, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.must-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(230, 179, 90, 0.07) 50%, transparent 60%);
  animation: shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.35; transform: translateX(-8%); }
  50% { opacity: 0.8; transform: translateX(8%); }
}

.must-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.must-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-transform: uppercase;
}

.must-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.06em;
  color: #fff6e0;
  text-shadow: 0 2px 12px rgba(230, 179, 90, 0.35);
}

.must-desc {
  margin: 6px 0 0;
  font-size: 12px;
  color: #b8cfc8;
}

.must-badge {
  flex-shrink: 0;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2a1608;
  background: linear-gradient(135deg, #f0d078, #e6b35a 50%, #d4923a);
  box-shadow: 0 6px 16px rgba(230, 179, 90, 0.35);
  animation: pulseBadge 2.2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.must-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.must-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 6px 16px;
  border-radius: 20px;
  background: rgba(7, 24, 32, 0.62);
  border: 1px solid rgba(230, 179, 90, 0.32);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  animation: rise 0.45s ease both;
}

.must-item:active {
  transform: scale(0.95);
  border-color: rgba(230, 179, 90, 0.7);
  background: rgba(230, 179, 90, 0.16);
}

.must-ico {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ico, #2932e1);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(230, 179, 90, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.must-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.must-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  font-family: var(--font-display);
  font-size: 34px;
  color: #fff;
}

.must-ico[data-fallback="1"] .must-fallback {
  display: grid;
}

.must-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff8ea;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 10px rgba(230, 179, 90, 0.3);
}

/* Link hub */
.link-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.link-filters::-webkit-scrollbar {
  display: none;
}

.lf {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13, 39, 51, 0.7);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.lf.active {
  background: var(--jade-dim);
  border-color: rgba(62, 207, 154, 0.45);
  color: var(--jade);
  font-weight: 600;
}

.link-list {
  display: grid;
  gap: 8px;
}

.nav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(18, 48, 64, 0.95), rgba(10, 30, 40, 0.85));
  border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease;
  animation: rise 0.35s ease both;
}

.nav-card:active {
  transform: scale(0.985);
  border-color: rgba(62, 207, 154, 0.4);
}

.nav-ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-serif);
  font-size: 16px;
  background: var(--jade-dim);
  color: var(--jade);
}

.nav-ico.is-tool { background: rgba(230, 179, 90, 0.14); color: var(--amber); }
.nav-ico.is-read { background: rgba(90, 160, 230, 0.14); color: #7eb8e8; }
.nav-ico.is-culture { background: rgba(232, 111, 92, 0.14); color: var(--coral); }

.nav-body {
  flex: 1;
  min-width: 0;
}

.nav-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 600;
}

.nav-name em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(230, 179, 90, 0.14);
  color: var(--amber);
  border: 1px solid rgba(230, 179, 90, 0.35);
}

.nav-name em.hot {
  background: rgba(232, 111, 92, 0.18);
  color: #ffb3a6;
  border-color: rgba(232, 111, 92, 0.4);
}

.nav-body p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-arrow {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 18px;
  opacity: 0.7;
}

/* Spotlight */
.spot-panel {
  padding: 20px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(62, 207, 154, 0.18), transparent 50%),
    linear-gradient(160deg, #123848, #0c2a36);
  border: 1px solid rgba(62, 207, 154, 0.22);
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
}

.spot-year {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.spot-label {
  width: 100%;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.spot-year strong {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  color: var(--amber);
}

.spot-year em {
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--jade);
}

.spot-trait {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 14px;
}

.spot-poem {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--amber);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-serif);
  font-size: 14px;
  color: #c9dde3;
}

.spot-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.link-soft {
  font-size: 13px;
  color: var(--muted);
}

.link-soft:active {
  color: var(--jade);
}

/* Zodiac grid */
.z-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.z-tile {
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.z-tile:active {
  transform: scale(0.95);
}

.z-tile.is-current {
  background: linear-gradient(145deg, rgba(230, 179, 90, 0.22), rgba(62, 207, 154, 0.12));
  border-color: rgba(230, 179, 90, 0.55);
  color: var(--amber);
  box-shadow: 0 0 0 1px rgba(230, 179, 90, 0.15);
}

.z-tile.is-active {
  border-color: var(--jade);
  background: var(--jade-dim);
}

/* Detail panels */
.detail-panel {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  animation: rise 0.35s ease both;
}

.detail-panel[hidden] {
  display: none !important;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.detail-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.detail-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.detail-head .close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
}

.trait {
  margin: 12px 0 0;
  font-size: 14px;
}

.poem-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--font-serif);
  font-size: 14px;
}

.poem-label {
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.08em;
}

.tips {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tips li {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 12px;
  color: #c5d8df;
}

/* Wuxing */
.wx-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.wx-tile {
  min-height: 52px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.wx-tile:active {
  transform: scale(0.96);
}

.wx-tile.active {
  background: var(--jade-dim);
  border-color: rgba(62, 207, 154, 0.55);
  color: var(--jade);
}

.cycle-board {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(138, 168, 179, 0.35);
  background: rgba(13, 39, 51, 0.55);
}

.cycle-board h3 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.cycle-cols {
  display: grid;
  gap: 12px;
}

.cycle-cols p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #c9dde3;
}

.tag-gen,
.tag-over {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.tag-gen {
  background: var(--jade-dim);
  color: var(--jade);
}

.tag-over {
  background: rgba(232, 111, 92, 0.15);
  color: var(--coral);
}

/* Poetry */
.tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(13, 39, 51, 0.8);
  border: 1px solid var(--line);
}

.tab {
  flex: 1;
  min-height: 38px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.tab.active {
  background: rgba(62, 207, 154, 0.18);
  color: var(--jade);
  font-weight: 600;
}

.poetry-body {
  display: grid;
  gap: 10px;
}

.p-card {
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  animation: rise 0.4s ease both;
}

.p-meta {
  font-size: 11px;
  color: var(--jade);
  letter-spacing: 0.06em;
}

.p-card h3 {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}

.p-author {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.p-lines {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.8;
  color: #d5e6eb;
}

.p-proverb {
  font-family: var(--font-display) !important;
  font-size: 20px !important;
}

.p-mean {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.p-tags span {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--amber);
}

/* Ganzhi */
.gz-panel {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.gz-block + .gz-block {
  margin-top: 16px;
}

.gz-block h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.gz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gz-chips span {
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 15px;
}

.gz-chips span.is-now {
  background: var(--jade-dim);
  border-color: rgba(62, 207, 154, 0.5);
  color: var(--jade);
}

.gz-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* Knowledge */
.know-list {
  display: grid;
  gap: 10px;
}

.know-item {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(18, 48, 64, 0.95), rgba(10, 30, 40, 0.8));
  border: 1px solid var(--line);
}

.know-num {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.know-item h3 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 18px;
}

.know-item p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Footer */
.site-foot {
  padding: 28px 0 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.foot-brand {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.2em;
  color: var(--ink);
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--bottom-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(7, 24, 32, 0.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.bn-ico {
  font-size: 15px;
  font-family: var(--font-serif);
  line-height: 1.2;
}

.bn-item.is-active {
  color: var(--jade);
}

/* 站内浏览层 */
body.is-viewing {
  overflow: hidden;
}

body.is-viewing .bottom-nav {
  visibility: hidden;
  pointer-events: none;
}

.site-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.site-viewer[hidden] {
  display: none !important;
}

.viewer-bar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 88px 1fr 72px;
  align-items: center;
  gap: 8px;
  min-height: var(--topbar-h);
  padding: var(--safe-t) 10px 10px;
  background: rgba(7, 24, 32, 0.96);
  border-bottom: 1px solid rgba(230, 179, 90, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.viewer-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(230, 179, 90, 0.28), rgba(62, 207, 154, 0.16));
  border: 1px solid rgba(230, 179, 90, 0.45);
  color: #fff6e0;
  font-size: 15px;
  font-weight: 700;
}

.viewer-back:active {
  transform: scale(0.96);
}

.viewer-back-ico {
  font-size: 26px;
  line-height: 1;
  margin-top: -2px;
}

.viewer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.viewer-open {
  justify-self: end;
  font-size: 12px;
  color: var(--jade);
  padding: 8px 6px;
}

.viewer-body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #06141c;
}

.viewer-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.viewer-fallback {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(24px + var(--safe-b));
  padding: 16px;
  border-radius: 16px;
  background: rgba(7, 24, 32, 0.94);
  border: 1px solid rgba(230, 179, 90, 0.35);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  justify-items: stretch;
  text-align: center;
}

.viewer-fallback[hidden] {
  display: none !important;
}

.viewer-fallback p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.viewer-fallback .btn {
  width: 100%;
}

/* Desktop polish */
@media (min-width: 640px) {
  .hero-orbit {
    right: 24px;
    width: 200px;
    height: 200px;
  }

  .hero-orbit .core {
    width: 88px;
    height: 88px;
    font-size: 34px;
  }

  .cycle-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
