/* ==========================================================================
   FENGSIGHT — Bilingual · Minimal · Eastern Mystique
   Palette: Ink #0a0807 · Cinnabar #8B0000 · Moon-white #f5f0e1 · Gold #b8893a
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500;700;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@300;500&family=Ma+Shan+Zheng&display=swap');

:root {
  --ink: #0a0807;
  --ink-2: #14110f;
  --paper: #f5f0e1;
  --paper-2: #d8cfba;
  --muted: #8a8273;
  --cinnabar: #8B0000;
  --gold: #b8893a;
  --rule: rgba(184, 137, 58, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Serif SC', 'Inter', -apple-system, sans-serif;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle rice-paper noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('assets/rice-paper.svg');
  background-repeat: repeat;
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   NAV
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 8, 7, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--paper);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

.brand-mark { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.82rem;
  font-weight: 400;
}

.nav-links a {
  color: var(--paper-2);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10rem 2rem 6rem;
  text-align: center;
  position: relative;
}

.seal-mark-wrap {
  margin-bottom: 2.5rem;
  animation: drift 1.4s ease-out;
}

.seal-mark {
  width: 88px; height: 88px;
  filter: drop-shadow(0 0 16px rgba(139, 0, 0, 0.3));
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.45em;
  color: var(--gold);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: 0.15em;
  line-height: 1.35;
  margin-bottom: 2rem;
  max-width: 1100px;
}

.hero-title .thin {
  font-weight: 300;
  opacity: 0.7;
}

.hero-title-en {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--paper-2);
  opacity: 0.7;
  max-width: 720px;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

.hero-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: inline-block;
  padding: 0.8rem 1.6rem;
}

@keyframes drift {
  0%   { opacity: 0; transform: translateY(-15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   SECTIONS — minimal & airy
   -------------------------------------------------------------------------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.section-title .zh {
  font-family: 'Noto Serif SC', serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  letter-spacing: 0.3em;
}

.section-title .en {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   SCOPES (3 cards)
   -------------------------------------------------------------------------- */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.scope {
  background: var(--ink);
  padding: 3rem 2.5rem;
  position: relative;
  transition: background 0.4s;
}

.scope:hover { background: var(--ink-2); }

.scope-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.scope-name {
  font-family: 'Noto Serif SC', serif;
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.2rem;
}

.scope-name small {
  display: inline-block;
  margin-left: 0.8rem;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  vertical-align: middle;
}

.scope p {
  font-size: 0.92rem;
  color: var(--paper-2);
  opacity: 0.7;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.scope p.en {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   PILLARS (3 cards - 5 content - 4 grid)
   -------------------------------------------------------------------------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.pillar {
  border-left: 1px solid var(--rule);
  padding-left: 2rem;
}

.pillar-key {
  font-family: 'Noto Serif SC', serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.pillar-name {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--paper);
  margin-bottom: 1.5rem;
}

.pillar p {
  font-size: 0.92rem;
  color: var(--paper-2);
  opacity: 0.75;
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

.pillar p.en {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

.pillar-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pillar-list li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(184, 137, 58, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pillar-list li:last-child { border-bottom: none; }

.pillar-list .cn {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95rem;
  color: var(--paper);
  letter-spacing: 0.1em;
  font-weight: 400;
}

.pillar-list .en {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-weight: 300;
}

.pillar-note {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   PRINCIPLES — centered quote
   -------------------------------------------------------------------------- */
.principles {
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.quote {
  max-width: 800px;
  margin: 0 auto 3rem;
  border: none;
  padding: 0;
}

.quote p {
  font-family: 'Noto Serif SC', serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  letter-spacing: 0.25em;
  line-height: 2;
  color: var(--paper);
}

.quote footer {
  margin-top: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
}

.quote-en {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  text-align: center;
}

.contact-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.contact-value {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  color: var(--paper);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s;
}

a.contact-value:hover { color: var(--gold); }

.contact-value.muted { color: var(--muted); font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 3rem;
  margin-top: 6rem;
}

.footer-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.watermark {
  color: var(--rule);
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   FADE-IN (no-JS fallback safe)
   -------------------------------------------------------------------------- */
main { position: relative; z-index: 2; }

.fade-in { opacity: 0; transform: translateY(15px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
html:not(.js) .fade-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
/* ==========================================================================
   v4.0 UPGRADES — Tier 1 (topbar + side-rail + hero pills)
   ========================================================================== */

/* --------------------------------------------------------------------------
   TOPBAR — 工业感顶部元数据条
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 8px 0;
  background: rgba(10, 8, 7, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.topbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar-inner b { color: var(--paper); font-weight: 600; letter-spacing: 0.2em; }
.topbar-inner .version {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cinnabar);
  margin-left: 8px;
  letter-spacing: 0.1em;
}
.topbar-inner .left { display: inline-flex; align-items: center; gap: 8px; }
.topbar-inner .mid { display: inline-flex; gap: 14px; }
.topbar-inner .mid span:nth-child(even) { opacity: 0.4; }
.topbar-inner .right { font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.topbar-inner .right .loc a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.topbar-inner .right .loc a:hover { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }

.topbar .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cinnabar);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.5); }
  50%      { opacity: 0.4; box-shadow: 0 0 0 4px rgba(139, 0, 0, 0); }
}

/* --------------------------------------------------------------------------
   SIDE RAILS — 侧栏装饰文字 (旋转 90°)
   -------------------------------------------------------------------------- */
.side-rail {
  position: fixed;
  top: 36px;          /* 避开 topbar */
  bottom: 0;
  width: 32px;
  z-index: 90;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.side-rail.left  { left: 0; border-right: 1px solid var(--rule-faint, rgba(184,137,58,0.08)); }
.side-rail.right { right: 0; border-left: 1px solid var(--rule-faint, rgba(184,137,58,0.08)); }

.side-rail .rail-text {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
  writing-mode: vertical-rl;
  white-space: nowrap;
  transform: rotate(180deg);
}
.side-rail.right .rail-text { transform: rotate(180deg); }
.side-rail.left  .rail-text { writing-mode: vertical-rl; transform: none; }

/* --------------------------------------------------------------------------
   HERO — 版本徽章 (替代单行 v3.2 · reality-tested)
   -------------------------------------------------------------------------- */
.eyebrow .version-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  vertical-align: middle;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.meta-pill {
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(245, 240, 225, 0.02);
  color: var(--paper-2);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.meta-pill:hover {
  border-color: var(--gold);
  background: rgba(184, 137, 58, 0.06);
}
.meta-pill b {
  color: var(--cinnabar);
  font-weight: 600;
  margin-right: 4px;
}

/* v4.0 nav padding 把 topbar 高度算进去 */
.nav { top: 32px; }

/* ==========================================================================
   v4.0 UPGRADES — Tier 3 (CLI 命令行区 + Benchmarks 基准页)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CLI 终端窗口
   -------------------------------------------------------------------------- */
.cli-lede {
  text-align: center;
  font-size: 0.95rem;
  color: var(--paper-2);
  opacity: 0.85;
  margin-bottom: 2.5rem;
  font-style: italic;
  font-family: 'Noto Serif SC', serif;
}

.cli-window {
  max-width: 760px;
  margin: 0 auto;
  background: #1a1714;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}

.cli-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #0f0d0a;
  border-bottom: 1px solid var(--rule);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.cli-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--rule);
}
.cli-dot:nth-child(1) { background: #ed6f5c; }
.cli-dot:nth-child(2) { background: #e9b94a; }
.cli-dot:nth-child(3) { background: #6e7448; }
.cli-title {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cli-body {
  padding: 1.5rem 1.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--paper-2);
  overflow-x: auto;
}

.cli-prompt { color: var(--cinnabar); margin-right: 8px; user-select: none; }
.cli-cmd { color: var(--paper); }
.cli-out { color: var(--muted); display: block; padding-left: 0; }

.cli-footnote {
  text-align: center;
  margin-top: 1.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   BENCHMARKS — 数据卡片网格
   -------------------------------------------------------------------------- */
.bench-lede {
  text-align: center;
  font-size: 1rem;
  color: var(--paper-2);
  opacity: 0.85;
  margin-bottom: 3rem;
  font-style: italic;
}
.bench-lede em { color: var(--gold); font-style: italic; }

.bench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.bench-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: rgba(245, 240, 225, 0.015);
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.bench-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.bench-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--cinnabar);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  line-height: 1;
}
.bench-unit {
  font-size: 1.2rem;
  color: var(--gold);
  margin-left: 2px;
}
.bench-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 0.3rem;
  letter-spacing: 0.08em;
}
.bench-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.bench-footnote {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   v4.0 ENHANCEMENTS — 联系区 & Footer
   -------------------------------------------------------------------------- */
.contact-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--rule);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-value:hover { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }
.contact-value.muted { color: var(--muted); border-bottom: none; }

/* --------------------------------------------------------------------------
   v4.0 RESPONSIVE — 移动端隐藏侧栏 + topbar 简化
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .side-rail { display: none; }
  .topbar-inner { padding: 0 1.5rem; }
  .topbar-inner .mid { display: none; }
}

@media (max-width: 768px) {
  .nav { top: 28px; padding: 1rem 1.5rem; }
  .nav-links { gap: 1rem; font-size: 0.7rem; }
  .nav-links a:nth-child(n+5) { display: none; }
  .topbar-inner { font-size: 9px; padding: 0 1rem; }
  .topbar-inner .left b { font-size: 9px; }
  .section { padding: 5rem 1.5rem; }
  .hero { padding: 8rem 1.5rem 4rem; }
  .pillar { border-left: none; border-top: 1px solid var(--rule); padding: 2rem 0 0 0; }
  .footer { padding: 2rem 1.5rem; }
  .footer-row { justify-content: center; text-align: center; }
  .cli-body { font-size: 0.72rem; padding: 1rem; }
  .bench-num { font-size: 2rem; }
  .meta-pill { font-size: 0.65rem; padding: 4px 10px; }
}

/* ==========================================================================
   v2 ADDITIONS — Hero / Try Section / Optimizations
   ========================================================================== */

/* Hero section */
.hero {
  padding: 12rem 3rem 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text { max-width: 760px; }

.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--paper);
}

.hero-title .zh {
  display: block;
  background: linear-gradient(135deg, var(--paper) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .en {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 300;
  color: var(--muted);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.hero-lede {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--paper-2);
  margin-bottom: 2.5rem;
}

.hero-lede em {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--cinnabar);
  color: var(--paper);
}

.btn-primary:hover {
  background: #a01010;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 0, 0, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--gold);
}

.btn-ghost:hover {
  background: var(--gold);
  color: var(--ink);
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

.hero-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.hero-seal {
  position: relative;
  width: 280px;
  height: 280px;
}

.seal-mark-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.seal-mark {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 32px rgba(184, 137, 58, 0.3));
  animation: sealRotate 60s linear infinite;
}

@keyframes sealRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Nav CTA */
.nav-cta {
  margin-left: auto;
  padding: 0.6rem 1.4rem;
  background: var(--cinnabar);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}

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

/* Try Section */
.section.try {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 6rem 3rem;
}

.try-lede {
  text-align: center;
  color: var(--paper-2);
  margin-bottom: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.try-lede em {
  display: block;
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 0.9rem;
}

.try-card {
  max-width: 920px;
  margin: 0 auto;
  background: rgba(245, 240, 225, 0.03);
  border: 1px solid var(--rule);
  padding: 3rem;
  position: relative;
}

.try-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 60px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.try-card::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 60px; height: 60px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

/* Steps indicator */
.try-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.try-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.3s;
}

.try-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.try-step.active {
  color: var(--gold);
}

.try-step.active span {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.try-step.done {
  color: var(--paper);
}

.try-step.done span {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* Form */
.try-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.try-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.try-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.try-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--paper-2);
  text-transform: uppercase;
}

.try-label .zh {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95rem;
  color: var(--paper);
  letter-spacing: 0.05em;
  text-transform: none;
  margin-bottom: 0.2rem;
}

.try-label .en {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.try-form input[type="date"],
.try-form input[type="text"],
.try-form select {
  background: rgba(245, 240, 225, 0.04);
  border: 1px solid var(--rule);
  color: var(--paper);
  padding: 0.9rem 1rem;
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
}

.try-form input:focus,
.try-form select:focus {
  border-color: var(--gold);
  background: rgba(184, 137, 58, 0.06);
  box-shadow: 0 0 0 3px rgba(184, 137, 58, 0.1);
}

.try-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b8893a' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.try-form select option {
  background: var(--ink-2);
  color: var(--paper);
}

.try-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Gender radio */
.try-gender {
  display: flex;
  gap: 1rem;
}

.try-radio {
  flex: 1;
  cursor: pointer;
}

.try-radio input {
  display: none;
}

.try-radio span {
  display: block;
  padding: 0.9rem 1rem;
  text-align: center;
  background: rgba(245, 240, 225, 0.04);
  border: 1px solid var(--rule);
  color: var(--muted);
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.try-radio input:checked + span {
  background: var(--cinnabar);
  color: var(--paper);
  border-color: var(--cinnabar);
}

/* Privacy */
.try-privacy {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: rgba(184, 137, 58, 0.05);
  border-left: 2px solid var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--paper-2);
}

.try-privacy em {
  color: var(--muted);
  font-style: italic;
  margin-left: 0.3rem;
}

.try-lock {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold);
}

/* Submit button */
.try-submit {
  align-self: flex-start;
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.try-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.try-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.try-submit:hover .try-arrow {
  transform: translateX(4px);
}

/* Loading state */
.try-submit.loading::after {
  content: "...";
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: "."; }
  40% { content: ".."; }
  60%, 100% { content: "..."; }
}

/* Preview */
.try-preview {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.preview-title {
  font-family: 'Ma Shan Zheng', serif;
  font-size: 1.8rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.preview-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Four Pillars Row */
.pillars-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pillar-cell {
  background: rgba(245, 240, 225, 0.04);
  border: 1px solid var(--rule);
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.pillar-cell:hover {
  border-color: var(--gold);
  background: rgba(184, 137, 58, 0.06);
}

.pillar-cell-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.pillar-cell-tg {
  font-family: 'Ma Shan Zheng', serif;
  font-size: 2.2rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.pillar-cell-dz {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.pillar-cell-hidden {
  font-family: 'Noto Serif SC', serif;
  font-size: 2rem;
  color: var(--muted);
}

/* Preview grid */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.preview-item {
  background: rgba(245, 240, 225, 0.03);
  border-left: 2px solid var(--gold);
  padding: 1rem 1.2rem;
}

.preview-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.preview-value {
  display: block;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  color: var(--paper);
}

.preview-wuxing {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.wuxing-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(184, 137, 58, 0.1);
  border: 1px solid var(--rule);
  font-family: 'Ma Shan Zheng', serif;
  font-size: 1rem;
  color: var(--gold);
}

.wuxing-tag.strong {
  background: var(--cinnabar);
  color: var(--paper);
  border-color: var(--cinnabar);
}

/* CTA in preview */
.preview-cta {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.08) 0%, rgba(184, 137, 58, 0.05) 100%);
  border: 1px dashed var(--gold);
  padding: 1.5rem 2rem;
  text-align: center;
}

.preview-cta-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95rem;
  color: var(--paper-2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.preview-cta-text strong {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 500;
}

.preview-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Disclaimer */
.disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-style: italic;
}

.disclaimer em {
  display: inline;
  margin-left: 0.3rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-seal { width: 200px; height: 200px; margin: 0 auto; }
  .nav-cta { padding: 0.5rem 1rem; font-size: 0.75rem; }
  .pillars-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section.try { padding: 4rem 1.5rem; }
  .try-card { padding: 2rem 1.5rem; }
  .try-row { grid-template-columns: 1fr; }
  .try-steps { gap: 0.5rem; }
  .try-step { font-size: 0.75rem; }
  .try-step span { width: 24px; height: 24px; font-size: 0.7rem; }
  .pillars-row { grid-template-columns: repeat(2, 1fr); }
  .preview-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
}


/* ==========================================================================
   v2.1 ADDITIONS — 全球城市 + 防注入 + 防 AI 欺骗
   ========================================================================== */

/* 错误提示样式 */
.try-error {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(139, 0, 0, 0.15);
  border-left: 3px solid var(--cinnabar);
  color: var(--paper);
  font-family: 'Noto Serif SC', serif;
  font-size: 0.9rem;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* 城市输入 datalist 视觉强化 */
input[list] {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: right 1.2rem center, right 1rem center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

/* 防 AI 欺骗提示横幅 (预览时显示) */
.ai-safety-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  background: rgba(184, 137, 58, 0.08);
  border: 1px dashed var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--paper-2);
  letter-spacing: 0.02em;
}

.ai-safety-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.ai-safety-text strong {
  color: var(--gold);
  font-weight: 500;
}

/* City 计数徽章 (帮助信息) */
.city-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.city-count-badge::before {
  content: "●";
  font-size: 0.6rem;
}

/* 预览时显示原始数据已被截断的提示 (防"我看到你全部输入" 误解) */
.data-minimized {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 0.9rem;
  background: rgba(245, 240, 225, 0.03);
  border: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  font-style: italic;
}

.data-minimized svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

/* 强化的隐私提示 (在预览顶部) */
.preview-privacy-header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(184, 137, 58, 0.06) 0%, rgba(245, 240, 225, 0.03) 100%);
  border-left: 3px solid var(--gold);
}

.preview-privacy-header svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--gold);
  margin-top: 2px;
}

.preview-privacy-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--paper-2);
  line-height: 1.6;
}

.preview-privacy-text strong {
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.preview-privacy-text .refuse-llm {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 2px 8px;
  background: var(--cinnabar);
  color: var(--paper);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
