/* ============================================================
   知微 (zhiweiai.cloud) 风水站复刻 · 全站样式
   设计令牌提取自原站 index-Iyix8OHw.css
   主题色：深墨绿 #173f38、背景 #101917、金色 #C9A84C/#E8C766
   玉色 #6b9e7a、朱砂 #9b2d20；Noto Serif SC 衬线 + 中文黑体
   中国风水暗色风 · 响应式断点 992px / 640px
   ============================================================ */

/* ============ 设计令牌 ============ */
:root {
  /* 背景 */
  --ink-bg: #101917;           /* 主背景 */
  --ink-deep: #0b100e;         /* 更深背景 */
  --ink-panel: #14231e;        /* 面板背景 */
  --ink-panel-2: #1a2c25;      /* 次级面板 */

  /* 主题色 */
  --green-deep: #173f38;       /* 深墨绿 */
  --green-mid: #1f5a4d;
  --gold: #C9A84C;             /* 金色主 */
  --gold-light: #E8C766;       /* 金色亮 */
  --gold-dim: rgba(201, 168, 76, 0.35);
  --jade: #6b9e7a;             /* 玉色 */
  --vermilion: #9b2d20;        /* 朱砂 */
  --vermilion-light: #c4462f;

  /* 文字 */
  --text-hi: #f2e9d7;          /* 主文字（暖白） */
  --text: #c8d6cc;             /* 正文 */
  --text-dim: #8aa39a;         /* 次要 */
  --text-faint: #5c7a70;       /* 弱化 */

  /* 线 / 边框 */
  --line: rgba(201, 168, 76, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);

  /* 字体 */
  --font-display: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-latin: 'Cinzel', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* 尺寸 */
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --maxw: 1180px;

  /* 阴影 / 光效 */
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 6px 24px rgba(201, 168, 76, 0.22);
  --glow-gold: 0 0 0 1px rgba(201, 168, 76, 0.25), 0 0 24px rgba(201, 168, 76, 0.18);

  --grad-green: linear-gradient(135deg, #1f5a4d 0%, #173f38 60%, #123129 100%);
  --grad-gold: linear-gradient(135deg, #E8C766 0%, #C9A84C 60%, #a8893a 100%);
  --grad-panel: linear-gradient(160deg, rgba(26, 44, 37, 0.86) 0%, rgba(16, 25, 23, 0.9) 100%);
}

/* ============ Reset & 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--ink-bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.font-display { font-family: var(--font-display); }
.font-latin { font-family: var(--font-latin); letter-spacing: 0.04em; }

::selection { background: rgba(201, 168, 76, 0.35); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-deep); }
::-webkit-scrollbar-thumb { background: #2c4a3f; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-mid); }

/* ============ 通用背景 ============ */
.site-ink-backdrop {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(31, 90, 77, 0.28), transparent 60%),
    radial-gradient(900px 520px at -10% 30%, rgba(201, 168, 76, 0.08), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(23, 63, 56, 0.35), transparent 60%),
    var(--ink-bg);
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 500;
  transition: all 0.22s ease; white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad-green); color: #eaf5ee;
  border-color: rgba(107, 158, 122, 0.45);
  box-shadow: 0 4px 18px rgba(23, 63, 56, 0.5);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #256a59 0%, #1a4a3e 100%);
  color: #fff; border-color: var(--jade);
  box-shadow: 0 6px 22px rgba(31, 90, 77, 0.6);
}

.btn-gold {
  background: var(--grad-gold); color: #1a1406;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.35);
}
.btn-gold:hover { filter: brightness(1.08); color: #1a1406; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03); color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(201, 168, 76, 0.08); }

.btn:disabled, .btn.disabled { opacity: 0.45; cursor: not-allowed; }

/* ============ 徽章 ============ */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; line-height: 1.6;
}
.badge-hot { background: rgba(155, 45, 32, 0.9); color: #ffe8d6; }
.badge-new { background: rgba(23, 63, 56, 0.95); color: var(--gold-light); border: 1px solid var(--line); }
.badge-core { background: rgba(201, 168, 76, 0.16); color: var(--gold-light); border: 1px solid var(--gold-dim); }
.badge-green { background: rgba(107, 158, 122, 0.16); color: var(--jade); border: 1px solid rgba(107, 158, 122, 0.4); }

/* ============ 玻璃 / 卡片通用 ============ */
.glass {
  background: var(--grad-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.glass-strong {
  background: linear-gradient(160deg, rgba(30, 50, 42, 0.92) 0%, rgba(16, 25, 23, 0.96) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gold-glow { box-shadow: var(--glow-gold); }

.tilt-card { transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s; }
.tilt-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: var(--shadow-gold);
}

/* ============ 顶部导航 ============ */
.site-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
  background: linear-gradient(180deg, rgba(9, 14, 12, 0.85) 0%, rgba(9, 14, 12, 0.4) 100%);
}
.site-navbar.is-scrolled {
  background: rgba(11, 16, 14, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px rgba(0, 0, 0, 0.4);
}
.premium-nav__inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px; padding: 0 24px;
}
.premium-nav__brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 22px; color: var(--text-hi); letter-spacing: 0.18em; }
.brand-sub { font-size: 9px; color: var(--gold); letter-spacing: 0.5em; text-transform: uppercase; }

.premium-nav__menu { display: flex; gap: 6px; margin-left: 12px; }
.nav-link {
  position: relative; padding: 8px 14px; color: var(--text); font-size: 15px;
  border-radius: 8px; transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--gold-light); background: rgba(201, 168, 76, 0.07); }
.nav-link.active { color: var(--gold-light); }
.nav-link.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--grad-gold);
}

.premium-nav__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-cta { box-shadow: 0 4px 18px rgba(201, 168, 76, 0.25); }
.nav-login { color: var(--text-hi); font-size: 15px; padding: 8px 4px; }
.nav-login:hover { color: var(--gold-light); }
.nav-user { display: flex; align-items: center; gap: 8px; color: var(--text); }
.nav-user:hover { color: var(--gold-light); }
.avatar-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-gold); color: #1a1406;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.nav-user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-burger { display: none; background: none; border: 1px solid var(--line); color: var(--text-hi); border-radius: 8px; padding: 8px 12px; font-size: 16px; }

/* 移动端菜单 */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: rgba(11, 16, 14, 0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-link {
  padding: 12px 8px; color: var(--text); font-size: 16px; border-bottom: 1px solid var(--line-soft);
}
.mobile-menu-link:last-child { border-bottom: none; }
.mobile-menu-link.highlight { color: var(--gold-light); font-weight: 600; }

/* ============ Hero 区 ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(9, 14, 12, 0.55) 0%, rgba(10, 16, 14, 0.72) 55%, var(--ink-bg) 100%),
    radial-gradient(900px 400px at 50% 40%, rgba(201, 168, 76, 0.12), transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero-badge {
  display: inline-block; color: var(--gold-light); font-size: 12px;
  letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 26px;
  padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(11, 16, 14, 0.5); backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(40px, 7vw, 76px); font-weight: 600;
  color: var(--text-hi); line-height: 1.22; letter-spacing: 0.06em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 18px;
}
.hero-sub { font-size: clamp(13px, 2vw, 16px); color: var(--gold); letter-spacing: 0.22em; margin-bottom: 14px; }
.hero-desc { font-size: 16px; color: var(--text-dim); letter-spacing: 0.12em; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-primary { border-color: rgba(201, 168, 76, 0.35); box-shadow: 0 6px 24px rgba(23, 63, 56, 0.55); }

/* ============ 首页主体 ============ */
.home-main {
  position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto;
  padding: 0 24px 60px;
}
.home-section { margin-top: 64px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px; gap: 12px; flex-wrap: wrap;
}
.section-title {
  font-size: 26px; color: var(--text-hi); font-weight: 600; letter-spacing: 0.08em;
  position: relative; padding-left: 16px;
}
.section-title::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 4px; border-radius: 4px; background: var(--grad-gold);
}
.section-more { color: var(--text-dim); font-size: 14px; }
.section-more:hover { color: var(--gold-light); }

/* ============ 签到卡 ============ */
.signin-card { padding: 22px 28px; overflow: hidden; position: relative; }
.signin-card::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.14), transparent 70%);
  pointer-events: none;
}
.signin-locked { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.signin-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: var(--grad-green); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  border: 1px solid var(--line);
}
.signin-text { flex: 1; min-width: 200px; }
.signin-title { font-size: 18px; color: var(--text-hi); margin-bottom: 2px; }
.signin-sub { font-size: 13px; color: var(--text-dim); }
.signin-streak { margin-top: 6px; font-size: 13px; color: var(--text-dim); }
.signin-streak b { color: var(--gold-light); }
.streak-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.streak-dot.on { background: var(--gold-light); box-shadow: 0 0 8px var(--gold-light); }

/* ============ 参验台 / 日签 双入口 ============ */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.entry-card {
  display: flex; align-items: center; gap: 18px; padding: 22px 26px;
  background: linear-gradient(135deg, rgba(23, 63, 56, 0.55), rgba(16, 25, 23, 0.7));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.entry-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: var(--grad-gold); color: #1a1406;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.entry-info { flex: 1; }
.entry-title { font-size: 18px; color: var(--text-hi); margin-bottom: 2px; }
.entry-desc { font-size: 13px; color: var(--text-dim); }
.entry-arrow { color: var(--gold); font-size: 18px; opacity: 0.7; transition: transform 0.25s, opacity 0.25s; }
.entry-card:hover .entry-arrow { transform: translateX(4px); opacity: 1; }

/* ============ 工具卡 ============ */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tool-card { padding: 24px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.tool-card::after {
  content: ''; position: absolute; right: -40px; bottom: -40px; width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08), transparent 70%);
  pointer-events: none;
}
.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.tool-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(23, 63, 56, 0.9), rgba(31, 90, 77, 0.6));
  border: 1px solid var(--line); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.tool-name { font-size: 17px; color: var(--text-hi); font-weight: 600; }
.tool-en { font-size: 10px; color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; }
.tool-desc { font-size: 13px; color: var(--text-dim); min-height: 44px; margin-top: 4px; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.tool-cost { font-size: 12px; color: var(--jade); }
.tool-go { color: var(--gold); font-size: 14px; opacity: 0.65; transition: transform 0.25s, opacity 0.25s; }
.tool-card:hover .tool-go { transform: translateX(4px); opacity: 1; }

/* ============ 古籍卡 ============ */
.classics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.classic-card { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.classic-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.classic-title { font-size: 19px; color: var(--text-hi); font-weight: 600; }
.classic-meta { font-size: 12px; color: var(--text-dim); }
.classic-desc { font-size: 13px; color: var(--text-dim); min-height: 60px; }
.classic-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.classic-tag { font-size: 12px; color: var(--jade); padding: 2px 10px; border: 1px solid rgba(107, 158, 122, 0.35); border-radius: 999px; }

/* ============ 页脚 ============ */
.site-footer {
  position: relative; z-index: 2; background: var(--ink-deep);
  border-top: 1px solid var(--line);
  padding: 56px 24px 30px; margin-top: 80px;
}
.footer-topline { height: 1px; background: var(--grad-gold); opacity: 0.5; margin-bottom: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand-head { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 40px; height: 40px; }
.footer-brand-name { font-size: 22px; color: var(--text-hi); letter-spacing: 0.16em; }
.footer-brand-en { font-size: 10px; color: var(--gold); letter-spacing: 0.4em; text-transform: uppercase; }
.footer-slogan { margin-top: 14px; font-size: 13px; color: var(--text-dim); line-height: 1.9; }
.footer-socials { display: flex; gap: 12px; margin-top: 16px; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 14px;
  transition: all 0.2s;
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(201, 168, 76, 0.08); }
.footer-col-title { font-size: 14px; color: var(--text-hi); margin-bottom: 14px; letter-spacing: 0.1em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: 13px; }
.footer-col a:hover { color: var(--gold-light); }

.footer-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 44px 0; padding: 26px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.footer-stat-num { font-size: 30px; color: var(--gold-light); line-height: 1.2; }
.footer-stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

.footer-bottom { text-align: center; font-size: 12px; color: var(--text-faint); }
.footer-bottom p { margin-bottom: 8px; line-height: 1.8; }

/* ============ 登录 / 注册页 ============ */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  padding: 24px; position: relative;
}
.auth-topbar {
  position: absolute; top: 24px; left: 24px; right: 24px; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
}
.auth-shell {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 0 30px;
}
.auth-brand { text-align: center; margin-bottom: 26px; }
.auth-logo { width: 64px; height: 64px; margin: 0 auto 12px; }
.auth-brand-name { font-size: 34px; color: var(--text-hi); letter-spacing: 0.24em; }
.auth-brand-tag { font-size: 12px; color: var(--gold); letter-spacing: 0.3em; margin-top: 6px; }

.auth-card { width: 100%; max-width: 430px; padding: 30px 32px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 26px; background: rgba(255, 255, 255, 0.04); padding: 5px; border-radius: 10px; }
.auth-tab {
  border: none; background: none; color: var(--text-dim); font-size: 15px;
  padding: 10px; border-radius: 8px; transition: all 0.2s;
}
.auth-tab.active { background: var(--grad-green); color: var(--text-hi); box-shadow: 0 2px 10px rgba(23, 63, 56, 0.5); }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: var(--text-dim); }
.field-hint { font-size: 12px; color: var(--text-faint); }
.input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 0 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12); }
.input-wrap > i { color: var(--text-faint); font-size: 14px; }
.input-wrap-code { padding-right: 6px; }
.input {
  flex: 1; background: none; border: none; outline: none; color: var(--text-hi);
  font-size: 15px; padding: 12px 0;
}
.input::placeholder { color: var(--text-faint); }
.input-eye { background: none; border: none; color: var(--text-faint); font-size: 14px; padding: 8px; }
.input-eye:hover { color: var(--gold-light); }
.code-btn { flex-shrink: 0; }

.auth-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.checkbox-line { display: flex; align-items: center; gap: 6px; color: var(--text-dim); cursor: pointer; }
.checkbox-line input { accent-color: var(--gold); }
.auth-link { color: var(--gold-light); font-size: 13px; }
.auth-link:hover { color: var(--gold); }
.auth-switch-line { text-align: center; font-size: 13px; color: var(--text-dim); margin-top: -4px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.auth-foot-note { margin-top: 18px; font-size: 12px; color: var(--text-faint); text-align: center; }
.forgot-tip { font-size: 13px; color: var(--text-dim); text-align: center; }

/* ============ 建设中占位页 ============ */
.placeholder-page {
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
}
.placeholder-card {
  max-width: 520px; width: 100%; padding: 48px 40px; text-align: center;
}
.placeholder-icon {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 20px;
  background: var(--grad-green); border: 1px solid var(--line); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  animation: floatY 3.2s ease-in-out infinite;
}
.placeholder-title { font-size: 26px; color: var(--text-hi); margin-bottom: 10px; }
.placeholder-desc { color: var(--text); font-size: 15px; margin-bottom: 6px; }
.placeholder-sub { color: var(--text-faint); font-size: 13px; margin-bottom: 4px; }
.placeholder-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============ Modal ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 10, 8, 0.72); backdrop-filter: blur(4px);
  padding: 24px; opacity: 0; transition: opacity 0.25s;
}
.modal-overlay.show { opacity: 1; }
.modal {
  width: 100%; max-width: 480px; background: linear-gradient(160deg, #1a2c25, #0f1916);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  transform: translateY(12px); transition: transform 0.25s; overflow: hidden;
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.modal-title { font-size: 16px; color: var(--text-hi); }
.modal-close { background: none; border: none; color: var(--text-faint); font-size: 18px; }
.modal-close:hover { color: var(--gold-light); }
.modal-body { padding: 22px 24px; font-size: 14px; color: var(--text); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line-soft); }

/* ============ Toast ============ */
#toast-container {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: rgba(20, 35, 30, 0.96); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 20px; font-size: 14px; color: var(--text-hi);
  box-shadow: var(--shadow); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(-12px); transition: all 0.3s;
  max-width: min(92vw, 460px);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-icon { font-size: 15px; }
.toast-success .toast-icon { color: var(--jade); }
.toast-error .toast-icon { color: var(--vermilion-light); }
.toast-info .toast-icon { color: var(--gold); }

/* ============ 响应式 ============ */
@media (max-width: 992px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .classics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .premium-nav__menu { display: none; }
  .nav-burger { display: block; }
}

@media (max-width: 640px) {
  .tools-grid { grid-template-columns: 1fr; }
  .classics-grid { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-stats { grid-template-columns: repeat(2, 1fr); }
  .premium-nav__actions .nav-user-name, .premium-nav__actions .nav-login { display: none; }
  .auth-card { padding: 24px 20px; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .signin-locked { flex-direction: column; text-align: center; }
  .home-main { padding: 0 16px 40px; }
}


/* ============================================================
   八字排盘 / 双人合盘 模块样式（js/bazi.js）
   ============================================================ */
.page-bazi, .page-hepan {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.page-head { text-align: center; margin-bottom: 36px; }
.page-head h2 {
  font-family: var(--font-display);
  font-size: 34px; color: var(--text-hi);
  letter-spacing: 0.06em;
}
.page-head .page-desc {
  margin-top: 10px; color: var(--text-dim); max-width: 640px; margin-inline: auto;
}
.bazi-form, .hepan-form, .bazi-result, .hepan-result, .bazi-extra {
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); }
.form-grid select {
  background: var(--ink-panel-2); color: var(--text-hi);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; outline: none;
}
.form-grid select:focus { border-color: var(--gold); }
.form-known {
  background: rgba(201, 168, 76, 0.08); border: 1px dashed var(--gold-dim);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px;
  color: var(--gold-light); font-size: 13px;
}
.form-options { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.chk input { accent-color: var(--gold); }
.form-actions { text-align: center; }
.form-tip { text-align: center; margin-top: 12px; font-size: 12px; color: var(--text-faint); }

/* 结果区 */
.bazi-result { position: relative; }
.result-head { text-align: center; margin-bottom: 20px; }
.result-head h3 { font-family: var(--font-display); font-size: 22px; color: var(--gold-light); }
.result-head .sub { margin-top: 6px; color: var(--text-dim); font-size: 13px; }
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 22px;
}
.pillar {
  background: var(--ink-panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 8px; text-align: center;
}
.pillar-name { font-size: 12px; color: var(--text-faint); margin-bottom: 8px; letter-spacing: 0.1em; }
.pillar-gan, .pillar-zhi { font-family: var(--font-display); font-size: 30px; color: var(--text-hi); line-height: 1.2; }
.pillar-gan em, .pillar-zhi em { display: block; font-style: normal; font-size: 11px; color: var(--gold); font-family: var(--font-sans); }
.pillar-wx { margin-top: 8px; font-size: 12px; color: var(--jade); }
.pillar-wx em { display: block; font-style: normal; color: var(--text-faint); font-size: 11px; }
.pillar-hide { display: flex; justify-content: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pillar-hide span {
  background: rgba(107, 158, 122, 0.12); border: 1px solid var(--line-soft);
  border-radius: 6px; padding: 3px 7px; font-size: 12px; color: var(--text);
}
.pillar-hide i { font-style: normal; font-size: 10px; color: var(--text-faint); margin-left: 3px; }

.panel-title, .bazi-result h4 {
  font-family: var(--font-display); font-size: 16px; color: var(--gold-light);
  margin-bottom: 12px; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 8px;
}
.bazi-result h4::before { content: ''; width: 4px; height: 16px; background: var(--grad-gold); border-radius: 2px; }
.wx-panel, .strength-panel, .ss-panel, .info-panel, .liunian-panel, .dayun-panel, .report-panel {
  background: var(--ink-panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px;
}
.wx-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wx-row:last-child { margin-bottom: 0; }
.wx-label { width: 28px; text-align: center; font-size: 14px; color: var(--text-hi); }
.wx-track { flex: 1; height: 10px; background: rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden; }
.wx-fill { height: 100%; border-radius: 6px; transition: width 0.6s ease; }
.wx-num { width: 30px; text-align: right; font-size: 13px; color: var(--text-dim); font-family: var(--font-mono); }

.strength-line { color: var(--text-hi); font-size: 15px; }
.strength-line b { color: var(--gold-light); font-size: 17px; }
.strength-reason { margin-top: 8px; font-size: 12px; color: var(--text-faint); }

.ss-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-tag {
  background: rgba(201, 168, 76, 0.1); border: 1px solid var(--gold-dim);
  color: var(--gold-light); border-radius: 999px; padding: 4px 12px; font-size: 12px;
}
.info-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); }
.info-row:last-child { border-bottom: none; }
.info-k { width: 84px; flex-shrink: 0; color: var(--text-dim); font-size: 13px; }
.info-v { color: var(--text-hi); font-size: 13px; }

.liunian-panel p { color: var(--text); font-size: 13px; }
.dayun-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.dayun-item {
  flex-shrink: 0; min-width: 108px; text-align: center;
  background: var(--ink-panel-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 8px;
}
.dayun-item:first-child { border-color: var(--gold); }
.dayun-gz { font-family: var(--font-display); font-size: 20px; color: var(--text-hi); }
.dayun-age { font-size: 12px; color: var(--gold-light); margin-top: 4px; }
.dayun-yr { font-size: 11px; color: var(--text-faint); }
.dayun-ss { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

.report-body .report-placeholder, .report-body .report-loading { color: var(--text-faint); font-size: 13px; }
.report-pre {
  white-space: pre-wrap; word-break: break-word;
  background: var(--ink-deep); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 16px;
  font-family: var(--font-sans); font-size: 13px; line-height: 1.9; color: var(--text);
  max-height: 520px; overflow-y: auto;
}
.report-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.result-actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; justify-content: center; }

/* 合盘 */
.hepan-person { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; }
.hepan-person legend { padding: 0 8px; font-family: var(--font-display); color: var(--gold-light); font-size: 14px; }
.btn-back { margin-bottom: 18px; }
.hepan-result { text-align: center; }
.hepan-score { margin: 12px 0 20px; }
.score-ring {
  --v: 60;
  width: 132px; height: 132px; margin: 0 auto; border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--v) * 1%), rgba(255,255,255,0.08) 0);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold);
}
.score-ring span {
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--ink-panel); color: var(--gold-light);
  font-family: var(--font-display); font-size: 38px;
  display: flex; align-items: center; justify-content: center;
}
.score-ring small { position: absolute; margin-top: 74px; font-size: 11px; color: var(--text-dim); }
.hepan-detail { text-align: left; margin-top: 12px; }
.hepan-detail h4 { font-family: var(--font-display); font-size: 15px; color: var(--gold-light); margin: 14px 0 6px; }
.hepan-detail p { color: var(--text); font-size: 13px; }
.hepan-detail .rel { color: var(--gold-light); font-size: 15px; font-weight: 600; }

.z-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* 响应式 */
@media (max-width: 768px) {
  .page-bazi, .page-hepan { padding: 24px 12px 60px; }
  .page-head h2 { font-size: 26px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}
