@charset "UTF-8";

:root {
  --bg: #09111f;
  --card: rgba(16, 27, 48, 0.88);
  --card-strong: rgba(15, 24, 43, 0.96);
  --line: rgba(212, 175, 55, 0.22);
  --line-strong: rgba(212, 175, 55, 0.42);
  --white-line: rgba(255, 255, 255, 0.06);
  --gold: #d4af37;
  --gold-soft: #ecd18a;
  --gold-bright: #f1d787;
  --text: #edf1f9;
  --muted: #9ba7bc;
  --muted-strong: #c4b28a;
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.16);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.26);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.34);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.16), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.05), transparent 20%),
    radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.08), transparent 32%),
    linear-gradient(145deg, #11102a 0%, #120f20 35%, #0d132f 65%, #0a1728 100%);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.92), transparent 88%);
  opacity: 0.24;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.08), transparent 46%);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
input {
  transition: all 0.28s ease;
}

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(236, 209, 138, 0.9);
  outline-offset: 3px;
}

.page-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 10px 0 auto;
  height: calc(100% - 20px);
  border-radius: 32px;
  border: 1px solid var(--white-line);
  pointer-events: none;
  opacity: 0.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(9, 17, 31, 0.78);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.38), transparent);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand h1,
.brand h2 {
  margin: 0;
  color: var(--gold);
  font-size: 24px;
  letter-spacing: 1px;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a,
.nav-links button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.nav-links a:hover,
.nav-links button:hover {
  border-color: rgba(212, 175, 55, 0.32);
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
}

.hero {
  padding: 60px 0 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.content-card,
.notice-card,
.history-card,
.trigram-card,
.insight-card,
.result-card,
.mode-card,
.guide-card,
.process-panel,
.page-intro,
.auth-showcase,
.auth-form-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.hero-copy::before,
.hero-panel::before,
.content-card::before,
.guide-card::before,
.mode-card::before,
.history-card::before,
.trigram-card::before,
.result-card::before,
.insight-card::before,
.auth-showcase::before,
.auth-form-card::before,
.page-intro::before,
.process-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%);
  pointer-events: none;
}

.hero-copy,
.hero-panel,
.content-card,
.notice-card,
.history-card,
.trigram-card,
.insight-card,
.result-card,
.mode-card,
.guide-card {
  background: linear-gradient(180deg, rgba(22, 34, 58, 0.9), rgba(15, 24, 43, 0.92));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.hero-copy,
.hero-panel,
.content-card,
.mode-card,
.guide-card,
.trigram-card,
.history-card,
.insight-card,
.result-card {
  padding: 24px;
}

.hero-copy > *,
.hero-panel > *,
.content-card > *,
.guide-card > *,
.mode-card > *,
.history-card > *,
.trigram-card > *,
.result-card > *,
.insight-card > *,
.page-intro > *,
.process-panel > *,
.auth-showcase > *,
.auth-form-card > * {
  position: relative;
  z-index: 1;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: 44px;
  line-height: 1.18;
  max-width: 14em;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.12);
}

.hero-copy {
  padding: 30px 28px;
  background:
    linear-gradient(180deg, rgba(24, 38, 64, 0.96), rgba(15, 24, 43, 0.94)),
    radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.12), transparent 34%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-soft);
  font-size: 13px;
  letter-spacing: 1px;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.38);
}

.hero-chip-row {
  margin-bottom: 18px;
}

.hero-chip-row .pill {
  padding: 7px 12px;
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-lead {
  font-size: 16px;
  color: #d9dfeb !important;
  line-height: 1.92;
  margin-bottom: 14px;
}

.hero-richtext {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-richtext p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.hero-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 18px;
}

.hero-feature-item {
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-feature-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.1), transparent 36%);
  pointer-events: none;
}

.hero-feature-item strong,
.hero-feature-item span {
  position: relative;
  z-index: 1;
}

.hero-feature-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-size: 15px;
}

.hero-feature-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.hero-copy p,
.content-card p,
.guide-card p,
.history-card p,
.insight-card p,
.mode-card p {
  color: var(--muted);
}

.hero-copy > p,
.page-intro-copy > p,
.guide-card p,
.content-card p,
.mode-card p,
.feature-item span {
  text-wrap: pretty;
}

.notice {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 207, 112, 0.25);
  color: #ffe1a5;
  background: linear-gradient(180deg, rgba(255, 207, 112, 0.12), rgba(255, 207, 112, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.warning {
  margin: 14px 0 18px;
}

.section {
  padding: 18px 0 34px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  color: var(--gold);
  font-size: 30px;
  letter-spacing: 0.5px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.section-title h2::after,
.brand h1::after,
.brand h2::after {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.grid-3,
.grid-2,
.mode-grid,
.guide-grid,
.insight-grid,
.history-grid,
.trigram-grid {
  display: grid;
  gap: 18px;
}

.grid-3,
.mode-grid,
.guide-grid,
.insight-grid,
.history-grid,
.trigram-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card h3,
.mode-card h3,
.guide-card h3,
.trigram-card h3,
.history-card h3,
.insight-card h4,
.result-content h3 {
  margin-top: 0;
  color: var(--gold-soft);
}

.process-panel {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  background: linear-gradient(145deg, rgba(30, 40, 60, 0.9), rgba(20, 30, 50, 0.95));
  box-shadow: var(--shadow-lg);
}

.process-panel::before {
  background:
    radial-gradient(circle at 85% 0%, rgba(212, 175, 55, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
}

.method-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.method-tab {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.method-tab:hover {
  border-color: rgba(212, 175, 55, 0.38);
  color: var(--gold-soft);
}

.method-tab.active {
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-soft);
  border-color: rgba(212, 175, 55, 0.46);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.12);
}

.method-content {
  display: none;
}

.method-content.active {
  display: block;
}

.process-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.process-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.process-note {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(212, 175, 55, 0.04));
}

.number-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.number-input-group label {
  display: block;
  margin-bottom: 6px;
}

.time-board {
  margin: 16px 0 18px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.time-main {
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}

.time-sub {
  color: var(--muted-strong);
  margin-top: 8px;
}

.time-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.coin-stage {
  margin: 18px 0 10px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background:
    radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 34px rgba(0, 0, 0, 0.14);
}

.coin-progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.12);
  margin-bottom: 16px;
}

.coin-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.55), rgba(240, 208, 107, 0.95));
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.26);
  transition: width 0.32s ease;
}

.coins-container {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 0 0 14px;
  padding: 14px 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.1), transparent 58%);
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.coin-stack {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.coin-caption {
  min-width: 72px;
  padding: 6px 10px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted);
  font-size: 13px;
}

.coin {
  width: 92px;
  height: 92px;
  position: relative;
  perspective: 1200px;
  border-radius: 50%;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.24));
}

.coin-core {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

.coin[data-face="back"] .coin-core {
  transform: rotateY(180deg);
}

.coin-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  backface-visibility: hidden;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 245, 198, 0.96), rgba(231, 193, 86, 0.95) 38%, rgba(174, 122, 27, 0.96) 76%, rgba(102, 65, 8, 1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -4px 10px rgba(79, 48, 4, 0.34),
    inset 0 0 0 2px rgba(116, 75, 10, 0.65);
}

.coin-face::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(120, 74, 9, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255, 232, 168, 0.16);
}

.coin-face-back {
  transform: rotateY(180deg);
}

.coin-ring {
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  border: 2px solid rgba(123, 77, 9, 0.48);
  box-shadow: inset 0 0 14px rgba(255, 240, 192, 0.12);
}

.coin-script {
  position: absolute;
  color: #5c3805;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 1px 0 rgba(255, 244, 205, 0.35);
}

.coin-face-front .coin-script::before,
.coin-face-front .coin-script::after,
.coin-face-back .coin-script::before,
.coin-face-back .coin-script::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(92, 56, 5, 0.82);
}

.coin-face-front .coin-script::before,
.coin-face-back .coin-script::before {
  content: "COIN";
  top: -18px;
}

.coin-face-front .coin-script::after,
.coin-face-back .coin-script::after {
  content: "YAO";
  bottom: -18px;
}

.coin-hole {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(123, 77, 9, 0.55);
  background: rgba(48, 30, 8, 0.72);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.coin.flipping {
  animation: coinToss 0.82s cubic-bezier(0.2, 0.8, 0.22, 1);
}

.coin.flipping .coin-core {
  transition: none;
  animation: coinFlip 0.82s cubic-bezier(0.2, 0.8, 0.22, 1);
}

.coin[data-face="front"] + .coin-caption,
.coin[data-face="back"] + .coin-caption {
  color: var(--gold-soft);
}

.coin-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.shake-count {
  text-align: center;
  color: var(--muted-strong);
  margin-top: 14px;
  font-size: 15px;
}

.coin-stage-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border-left: 3px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.06);
  color: var(--muted-strong);
}

.coin-tip {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.coin-tip strong {
  color: var(--gold-soft);
}

.coin-log {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
}

.coin-log-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 14px;
}

.coin-results {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}

.coin-result-slot {
  display: grid;
  gap: 6px;
  padding: 12px 8px;
  text-align: left;
  border-radius: 14px;
  border: 1px dashed rgba(212, 175, 55, 0.22);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.coin-result-order {
  font-size: 12px;
  color: rgba(240, 233, 213, 0.64);
}

.coin-result-value {
  font-size: 16px;
  color: var(--text);
}

.coin-result-slot.filled {
  color: var(--gold-soft);
  border-style: solid;
  border-color: rgba(212, 175, 55, 0.42);
  background: rgba(212, 175, 55, 0.08);
}

.coin-result-slot.filled .coin-result-value {
  color: var(--gold-soft);
}

.coin-result-slot.active {
  border-style: solid;
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08), 0 0 18px rgba(212, 175, 55, 0.12);
  animation: coinPulse 1.2s ease-in-out infinite;
}

.content-card,
.guide-card,
.mode-card,
.history-card,
.trigram-card,
.insight-card,
.result-card,
.metric-card,
.feature-item,
.process-card,
.auth-mini-card,
.timeline-item {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.content-card:hover,
.guide-card:hover,
.mode-card:hover,
.history-card:hover,
.trigram-card:hover,
.insight-card:hover,
.result-card:hover,
.metric-card:hover,
.feature-item:hover,
.process-card:hover,
.auth-mini-card:hover,
.timeline-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(212, 175, 55, 0.04);
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.primary-btn::after,
.ghost-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.18) 48%, transparent 75%);
  transform: translateX(-140%);
  transition: transform 0.55s ease;
}

.primary-btn:hover::after,
.ghost-btn:hover::after {
  transform: translateX(140%);
}

.primary-btn {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a160d;
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.2);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.02);
  color: var(--gold-soft);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.primary-btn:disabled,
.ghost-btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: saturate(0.7);
}

.button-row,
.result-actions,
.auth-chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.history-meaning,
.trigram-attr {
  color: var(--gold-soft);
}

.symbol-stage {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(50, 60, 80, 0.35), rgba(30, 40, 60, 0.42));
  border-radius: 20px;
  border: 1px dashed rgba(212, 175, 55, 0.38);
}

.symbol-stage::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.taiji-decoration {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: conic-gradient(#fff 0deg 180deg, #20263b 180deg 360deg);
  position: relative;
  animation: slowRotate 22s linear infinite;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.24);
}

.taiji-decoration::before,
.taiji-decoration::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.taiji-decoration::before {
  top: 0;
  left: 22px;
  background: radial-gradient(circle at 50% 70%, #20263b 18%, #fff 19%);
}

.taiji-decoration::after {
  bottom: 0;
  left: 22px;
  background: radial-gradient(circle at 50% 30%, #fff 18%, #20263b 19%);
}

.bagua-circle {
  width: 180px;
  height: 180px;
  border: 2px solid rgba(212, 175, 55, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.1), 0 0 30px rgba(212, 175, 55, 0.08);
}

.bagua-circle::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.36);
}

.bagua-center {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0deg 180deg, #1a1a2e 180deg 360deg);
  position: relative;
}

.bagua-center::before,
.bagua-center::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  left: 24px;
}

.bagua-center::before {
  top: 10px;
  background: #1a1a2e;
}

.bagua-center::after {
  bottom: 10px;
  background: var(--gold);
}

.symbol-caption {
  color: var(--muted-strong);
  text-align: center;
}

.ornament-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ornament-item {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.ornament-item strong {
  display: block;
  color: var(--gold-soft);
  margin-bottom: 4px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.metric-card::after,
.feature-item::after,
.auth-mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.1), transparent 38%);
  pointer-events: none;
}

.metric-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  color: var(--gold);
  margin-bottom: 8px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.page-intro {
  padding: 34px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-top: 28px;
  margin-bottom: 12px;
  background: linear-gradient(145deg, rgba(30, 40, 60, 0.9), rgba(20, 30, 50, 0.95));
  border-radius: 24px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-lg);
}

.page-intro p {
  color: var(--muted);
}

.page-intro-copy h1,
.page-intro-copy h2 {
  margin-top: 0;
  color: var(--gold);
}

.page-intro-copy .quote-line {
  color: var(--muted-strong);
  padding-left: 14px;
  border-left: 3px solid rgba(212, 175, 55, 0.5);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.timeline-year {
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: 1px;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(255, 255, 255, 0.025);
  position: relative;
  overflow: hidden;
}

.feature-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-soft);
}

.history-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
}

.history-side {
  display: grid;
  gap: 18px;
}

.history-board {
  min-height: 280px;
}

.history-board .history-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.history-card {
  min-height: 220px;
}

.history-card .pill {
  white-space: nowrap;
}

.auth-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.auth-frame {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 22px;
  align-items: stretch;
}

.auth-showcase,
.auth-form-card {
  background: linear-gradient(145deg, rgba(30, 40, 60, 0.9), rgba(20, 30, 50, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.auth-title {
  margin: 12px 0 10px;
  color: var(--gold);
  font-size: 36px;
  line-height: 1.22;
}

.auth-subtitle {
  color: var(--muted-strong);
}

.auth-process {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.process-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.process-index {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #121212;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  font-weight: 700;
}

.process-item strong {
  display: block;
  color: var(--gold-soft);
  margin-bottom: 4px;
}

.auth-quote {
  padding: 16px 18px;
  border-left: 3px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.05);
  border-radius: 14px;
  color: var(--muted-strong);
}

.auth-form-card h2 {
  margin-top: 0;
  color: var(--gold-soft);
}

.auth-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.auth-mini-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.auth-mini-card strong {
  display: block;
  color: var(--gold-soft);
  margin-bottom: 4px;
}

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

.study-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.study-list li + li {
  margin-top: 8px;
}

.result-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.result-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.hexagram-lines,
.mini-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.line {
  height: 12px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.08);
}

.line.yang {
  width: 150px;
}

.line.yin {
  width: 150px;
  display: flex;
  justify-content: space-between;
  background: transparent;
  box-shadow: none;
}

.line.yin span {
  display: block;
  width: 64px;
  height: 12px;
  border-radius: 999px;
  background: var(--gold);
}

.mini-lines .line.yang,
.mini-lines .line.yin {
  width: 96px;
}

.mini-lines .line.yin span {
  width: 40px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.18);
  color: var(--gold-soft);
  font-size: 12px;
}

.lead {
  color: #e7d8a3;
}

.history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.history-extra,
.site-footer p,
label,
.form-hint,
.muted {
  color: var(--muted);
}

.empty-box {
  padding: 26px;
  text-align: center;
  background: var(--card-strong);
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.login-card {
  width: min(720px, 100%);
  padding: 30px;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input:hover {
  border-color: rgba(212, 175, 55, 0.32);
}

input:focus {
  border-color: rgba(236, 209, 138, 0.72);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
  outline: none;
}

.form-hint code {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-soft);
}

.site-footer {
  padding: 30px 0 44px;
}

.site-footer p {
  text-align: center;
  letter-spacing: 0.5px;
}

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

@keyframes coinFlip {
  0% { transform: rotateY(0deg) rotateX(0deg) scale(1); }
  50% { transform: rotateY(540deg) rotateX(18deg) scale(1.05); }
  100% { transform: rotateY(1080deg) rotateX(0deg) scale(1); }
}

@keyframes coinToss {
  0% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-8px) scale(1.02); }
  50% { transform: translateY(-16px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes coinPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08), 0 0 14px rgba(212, 175, 55, 0.10); }
  50% { box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.18), 0 0 24px rgba(212, 175, 55, 0.18); }
}

@media (max-width: 960px) {
  .hero,
  .login-card,
  .result-card,
  .grid-2,
  .grid-3,
  .mode-grid,
  .guide-grid,
  .insight-grid,
  .history-grid,
  .trigram-grid,
  .page-intro,
  .ornament-grid,
  .metric-grid,
  .history-shell,
  .auth-frame,
  .auth-mini-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h2 {
    font-size: 32px;
  }

  .hero-feature-grid {
    grid-template-columns: 1fr;
  }

  .auth-title {
    font-size: 30px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .history-board .history-grid {
    grid-template-columns: 1fr;
  }

  .process-item,
  .process-grid,
  .number-inputs {
    grid-template-columns: 1fr;
  }

  .coin-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coins-container {
    flex-wrap: wrap;
  }

  .page-intro,
  .hero-copy,
  .hero-panel,
  .auth-showcase,
  .auth-form-card,
  .process-panel {
    padding: 22px;
  }
}
