/* =========================================================
   青行 · 出行宝典
   A quiet, green daily almanac.
   ========================================================= */

:root {
  --bg: #f3f0e5;
  --bg-deep: #ebe6d7;
  --paper: #fbf9f2;
  --paper-2: #f6f2e6;
  --ink: #143329;
  --ink-2: #3e574c;
  --muted: #72857a;
  --forest: #10382b;
  --forest-2: #1b4a39;
  --forest-3: #245b45;
  --jade: #3c7a5d;
  --sage: #87a993;
  --mint: #dbe8dc;
  --mint-2: #eaf1e7;
  --gold: #b8995f;
  --gold-2: #d9c49b;
  --clay: #b76a4d;
  --line: rgba(20, 51, 41, 0.12);
  --line-soft: rgba(20, 51, 41, 0.07);
  --shadow: 0 28px 60px -36px rgba(16, 56, 43, 0.36);
  --shadow-soft: 0 16px 38px -28px rgba(16, 56, 43, 0.3);
  --glass: linear-gradient(145deg, rgba(255, 255, 255, 0.64) 0%, rgba(251, 249, 242, 0.4) 42%, rgba(229, 238, 230, 0.42) 100%);
  --glass-strong: linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(251, 249, 242, 0.56) 48%, rgba(228, 238, 229, 0.5) 100%);
  --glass-edge: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 28px 64px -42px rgba(16, 56, 43, 0.42), 0 2px 8px -5px rgba(16, 56, 43, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.86), inset 0 -1px 0 rgba(20, 51, 41, 0.045);
  --glass-blur: blur(20px) saturate(1.16);
  --radius: 26px;
  --radius-lg: 34px;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 720px at 88% -8%, rgba(135, 169, 147, 0.24), transparent 62%),
    radial-gradient(820px 620px at -8% 34%, rgba(219, 232, 220, 0.7), transparent 64%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.038;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

::selection {
  background: var(--forest);
  color: var(--paper);
}

img,
svg {
  display: block;
}

svg {
  width: 1em;
  height: 1em;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol, blockquote, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

em {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 24px;
  z-index: 3000;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 18px;
}

.container {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto;
}

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 600px at 50% 20%, rgba(46, 107, 82, 0.55), transparent 65%),
    #0d3025;
  color: #dce8dc;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease), filter 0.9s var(--ease);
}

.loader.is-done {
  opacity: 0;
  filter: blur(16px);
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: loaderIn 0.9s var(--ease) both;
}

.loader-mark {
  width: 64px;
  height: 64px;
  color: #b8d2bd;
  animation: loaderPulse 2.4s ease-in-out infinite;
}

.loader-word {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
}

.loader-sub {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: rgba(220, 232, 220, 0.55);
}

.loader-line {
  display: block;
  width: 170px;
  height: 1px;
  margin-top: 22px;
  overflow: hidden;
  background: rgba(220, 232, 220, 0.14);
}

.loader-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  transform: translateX(-100%);
  animation: loaderLine 1.8s var(--ease) infinite;
}

@keyframes loaderIn {
  from { opacity: 0; filter: blur(12px); transform: translateY(14px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes loaderLine {
  to { transform: translateX(100%); }
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(243, 240, 229, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(20, 51, 41, 0.08), 0 18px 40px -34px rgba(16, 56, 43, 0.28);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--forest);
}

.brand-mark svg {
  width: 40px;
  height: 40px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-text em {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  transform: translateY(-1px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 16px;
}

.main-nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--jade);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--forest);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  place-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(20, 51, 41, 0.25);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-close-icon {
  display: none;
}

body.menu-open .menu-open-icon {
  display: none;
}

body.menu-open .menu-close-icon {
  display: block;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--forest);
  color: #f1eee3;
  box-shadow: 0 16px 30px -20px rgba(16, 56, 43, 0.8);
}

.btn-primary:hover {
  background: var(--forest-2);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -22px rgba(16, 56, 43, 0.75);
}

.btn-ghost {
  border-color: rgba(20, 51, 41, 0.2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(20, 51, 41, 0.34);
  transform: translateY(-2px);
}

.btn-nav {
  min-height: 40px;
  padding: 9px 18px;
  border-color: rgba(20, 51, 41, 0.22);
  font-size: 12px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.18);
}

.btn-nav:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}

.btn-light {
  background: var(--paper);
  color: var(--forest);
}

.btn-light:hover {
  background: #fffdf6;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -24px rgba(0, 0, 0, 0.5);
}

.btn-outline-light {
  border-color: rgba(241, 238, 227, 0.28);
  color: #e9e4d4;
}

.btn-outline-light:hover {
  border-color: rgba(241, 238, 227, 0.55);
  background: rgba(241, 238, 227, 0.08);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 148px 0 104px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-a {
  width: 720px;
  height: 720px;
  top: -220px;
  right: -180px;
  background: radial-gradient(circle at 40% 40%, rgba(151, 185, 160, 0.4), rgba(219, 232, 220, 0.08) 62%, transparent 70%);
}

.orb-b {
  width: 520px;
  height: 520px;
  left: -240px;
  bottom: -120px;
  background: radial-gradient(circle at 50% 50%, rgba(196, 183, 144, 0.2), transparent 68%);
}

.orb-c {
  width: 280px;
  height: 280px;
  left: 42%;
  top: 12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 68%);
  filter: blur(10px);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(to right, rgba(20, 51, 41, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 51, 41, 0.045) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse at 65% 40%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at 65% 40%, #000 0%, transparent 68%);
}

.hero-vertical {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.55em;
  color: rgba(20, 51, 41, 0.28);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--jade);
  text-transform: uppercase;
}

.eyebrow i {
  display: block;
  width: 34px;
  height: 1px;
  background: rgba(60, 122, 93, 0.42);
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  flex-shrink: 0;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(60, 122, 93, 0.55);
  border-radius: 50%;
  animation: pulseRing 2.6s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.5); opacity: 0.9; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7.4vw, 7.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--forest);
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-title .line > span {
  display: block;
  opacity: 0;
  transform: translateY(46%);
  filter: blur(14px);
  transition: transform 1.15s var(--ease), opacity 1.15s var(--ease), filter 1.15s var(--ease);
}

body.is-loaded .hero-title .line > span {
  opacity: 1;
  filter: none;
}

body.is-loaded .hero-title .line:nth-child(1) > span {
  transform: translateY(0);
  transition-delay: 0.16s;
}

body.is-loaded .hero-title .line:nth-child(2) > span {
  transform: translateY(0);
  transition-delay: 0.3s;
}

.ink {
  position: relative;
  display: inline-block;
  color: var(--jade);
}

.ink::after {
  content: "";
  position: absolute;
  left: -0.02em;
  right: -0.06em;
  bottom: 0.02em;
  height: 0.12em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(185, 153, 95, 0), rgba(185, 153, 95, 0.82) 14%, rgba(185, 153, 95, 0.6) 72%, rgba(185, 153, 95, 0));
  transform: scaleX(0) rotate(-1.4deg);
  transform-origin: left;
  transition: transform 1.1s var(--ease) 0.9s;
}

body.is-loaded .ink::after {
  transform: scaleX(1) rotate(-1.4deg);
}

.hero-lede {
  max-width: 34em;
  margin-top: 30px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
}

.hero-meta {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 36px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 104px;
  padding: 0 24px;
  border-left: 1px solid var(--line-soft);
}

.meta-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.meta-item:last-child {
  padding-right: 0;
}

.meta-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.meta-item strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-privacy {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-privacy svg {
  width: 13px;
  height: 13px;
  color: var(--sage);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
  perspective: 1000px;
}

.oracle-wrap {
  position: relative;
  width: min(500px, 100%);
  aspect-ratio: 1;
  transition: transform 0.5s var(--ease);
  transform-style: preserve-3d;
}

.halo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.halo-a {
  inset: -9%;
  background: radial-gradient(circle at 50% 50%, rgba(135, 169, 147, 0.24), transparent 64%);
  filter: blur(18px);
  animation: breathe 7s ease-in-out infinite;
}

.halo-b {
  inset: 15%;
  background: radial-gradient(circle at 40% 32%, rgba(255, 255, 255, 0.55), transparent 60%);
  filter: blur(10px);
  animation: breathe 9s ease-in-out infinite reverse;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.62; }
  50% { transform: scale(1.04); opacity: 1; }
}

.oracle-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ring-a {
  inset: 0;
  border: 1px dashed rgba(60, 122, 93, 0.36);
  animation: spin 70s linear infinite;
}

.ring-b {
  inset: 6.5%;
  border: 1px solid rgba(20, 51, 41, 0.11);
}

.ring-c {
  inset: 13%;
  border: 1px dashed rgba(185, 153, 95, 0.42);
  animation: spinReverse 46s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}

.oracle-disc {
  position: absolute;
  inset: 19%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 50%;
  border: 1px solid rgba(219, 232, 220, 0.22);
  background:
    radial-gradient(circle at 34% 22%, rgba(74, 137, 105, 0.55), transparent 42%),
    radial-gradient(circle at 50% 68%, #1b4c3a, #0f3529 74%);
  color: #e9e4d4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -30px 60px rgba(0, 0, 0, 0.18),
    0 34px 60px -40px rgba(16, 56, 43, 0.9);
  overflow: hidden;
}

.oracle-disc::before {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(219, 232, 220, 0.12);
  border-radius: 50%;
}

.oracle-disc::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 55%;
  top: -24%;
  left: -20%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
  transform: rotate(-12deg);
}

.oracle-over {
  position: relative;
  z-index: 1;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(233, 228, 212, 0.58);
}

.hexagram {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 92px;
  color: currentColor;
}

.hex-hero {
  margin: 4px 0 2px;
  color: #b7d0ba;
}

.hex-line {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
}

.hex-line.is-yin {
  display: flex;
  gap: 12px;
  height: 8px;
  background: none;
}

.hex-line.is-yin i {
  display: block;
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
}

body.is-loaded .hex-hero .hex-line {
  animation: lineIn 0.85s var(--ease) both;
}

body.is-loaded .hex-hero .hex-line:nth-child(1) { animation-delay: 0.42s; }
body.is-loaded .hex-hero .hex-line:nth-child(2) { animation-delay: 0.5s; }
body.is-loaded .hex-hero .hex-line:nth-child(3) { animation-delay: 0.58s; }
body.is-loaded .hex-hero .hex-line:nth-child(4) { animation-delay: 0.66s; }
body.is-loaded .hex-hero .hex-line:nth-child(5) { animation-delay: 0.74s; }
body.is-loaded .hex-hero .hex-line:nth-child(6) { animation-delay: 0.82s; }

@keyframes lineIn {
  from { opacity: 0; filter: blur(8px); transform: scaleX(0); }
  to { opacity: 1; filter: blur(0); transform: scaleX(1); }
}

.oracle-name {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.oracle-key {
  position: relative;
  z-index: 1;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(233, 228, 212, 0.6);
}

.oracle-seal {
  position: absolute;
  right: 16%;
  bottom: 12%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(185, 153, 95, 0.55);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--gold-2);
  opacity: 0.86;
  transform: rotate(-10deg);
}

.orbit-tag {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 9px;
  border: 1px solid rgba(20, 51, 41, 0.09);
  border-radius: 999px;
  background: rgba(251, 249, 242, 0.82);
  box-shadow: 0 16px 32px -24px rgba(16, 56, 43, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11px;
  color: var(--ink-2);
  animation: floatTag 7s ease-in-out infinite;
}

.orbit-tag span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 11px;
}

.orbit-tag b {
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tag-1 {
  top: 12%;
  left: -3%;
  animation-delay: 0.2s;
}

.tag-2 {
  top: 44%;
  right: -6%;
  animation-delay: 1.1s;
}

.tag-3 {
  bottom: 11%;
  left: 1%;
  animation-delay: 2s;
}

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

.leaf {
  position: absolute;
  display: block;
  width: 17px;
  height: 32px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, rgba(135, 169, 147, 0.9), rgba(60, 122, 93, 0.4));
  box-shadow: inset -2px -3px 6px rgba(16, 56, 43, 0.18);
  pointer-events: none;
  opacity: 0.72;
}

.leaf-a {
  top: 8%;
  right: 13%;
  transform: rotate(28deg);
  animation: leafFloat 8s ease-in-out infinite;
}

.leaf-b {
  bottom: 6%;
  right: 23%;
  width: 12px;
  height: 23px;
  transform: rotate(-38deg);
  animation: leafFloat 10s ease-in-out infinite 1.2s;
}

.leaf-c {
  top: 32%;
  left: 2%;
  width: 11px;
  height: 21px;
  transform: rotate(-64deg);
  opacity: 0.42;
  animation: leafFloat 9s ease-in-out infinite 0.7s;
}

.leaf-d {
  bottom: 30%;
  right: 0;
  width: 9px;
  height: 17px;
  transform: rotate(72deg);
  opacity: 0.35;
  animation: leafFloat 11s ease-in-out infinite 1.8s;
}

@keyframes leafFloat {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 4px -12px; rotate: 8deg; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(20, 51, 41, 0.34), transparent);
  transform-origin: top;
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.992);
  filter: blur(11px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease), filter 0.95s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal-fast {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(9px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease), filter 0.95s var(--ease);
}

body.is-loaded .hero-copy .eyebrow { transition-delay: 0.32s; opacity: 1; transform: none; }
body.is-loaded .hero-copy .hero-lede { transition-delay: 0.58s; opacity: 1; transform: none; }
body.is-loaded .hero-copy .hero-meta { transition-delay: 0.68s; opacity: 1; transform: none; }
body.is-loaded .hero-copy .hero-actions { transition-delay: 0.78s; opacity: 1; transform: none; }
body.is-loaded .hero-copy .hero-privacy { transition-delay: 0.88s; opacity: 1; transform: none; }
body.is-loaded .hero-copy .reveal-fast { filter: none; }

/* =========================================================
   Ticker
   ========================================================= */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid rgba(219, 232, 220, 0.12);
  border-bottom: 1px solid rgba(219, 232, 220, 0.12);
  background: var(--forest);
  color: rgba(241, 238, 227, 0.72);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 15px 0;
  animation: marquee 55s linear infinite;
}

.ticker-track span {
  padding: 0 20px;
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.ticker-sep {
  color: var(--gold);
  font-size: 9px;
  opacity: 0.7;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  position: relative;
  padding: 122px 0;
  scroll-margin-top: 88px;
}

.section-head {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 34px;
  align-items: start;
  margin-bottom: 56px;
}

.section-index {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.section-index span {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--jade);
}

.section-index i {
  display: block;
  width: 34px;
  height: 1px;
  background: rgba(60, 122, 93, 0.45);
}

.section-index em {
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.section-title-wrap h2 {
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 4.3rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--forest);
}

.section-lede {
  max-width: 620px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}

.section-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 9px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.side-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 249, 242, 0.5);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.section-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 760px;
  margin-top: 34px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

.section-note svg {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  flex-shrink: 0;
  color: var(--sage);
}

.mobile-br {
  display: none;
}

/* =========================================================
   Today
   ========================================================= */
.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: stretch;
}

.fortune-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 38px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 380px at 92% -10%, rgba(91, 151, 118, 0.5), transparent 62%),
    linear-gradient(150deg, #123b2d, #0d2f24 74%);
  color: #ece8da;
  box-shadow: 0 38px 80px -46px rgba(16, 56, 43, 0.85);
}

.fortune-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(219, 232, 220, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(219, 232, 220, 0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 40% 30%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 40% 30%, #000, transparent 72%);
  pointer-events: none;
}

.fortune-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(219, 232, 220, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.card-orbit {
  position: absolute;
  right: -30px;
  top: -60px;
  width: 220px;
  height: 220px;
  border: 1px dashed rgba(219, 232, 220, 0.15);
  border-radius: 50%;
  animation: spin 60s linear infinite;
  pointer-events: none;
}

.fortune-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-kicker {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.fortune-card .card-kicker {
  color: rgba(236, 232, 218, 0.5);
}

.hex-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid rgba(219, 232, 220, 0.18);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(236, 232, 218, 0.72);
}

.score-wrap {
  position: relative;
  z-index: 1;
  width: 218px;
  height: 218px;
  margin: 12px auto 4px;
}

.score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.score-track,
.score-progress {
  fill: none;
  stroke-width: 2.5;
}

.score-track {
  stroke: rgba(219, 232, 220, 0.12);
}

.score-progress {
  stroke: var(--gold-2);
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(217, 196, 155, 0.4));
  transition: stroke-dashoffset 1.5s var(--ease);
  stroke-dasharray: 540.354;
  stroke-dashoffset: 540.354;
}

.score-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.score-copy strong {
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f4f0e2;
  font-variant-numeric: tabular-nums;
}

.score-copy > span {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(236, 232, 218, 0.48);
}

.score-copy small {
  max-width: 160px;
  margin-top: 9px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--gold-2);
  text-align: center;
}

.fortune-summary {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(236, 232, 218, 0.82);
}

.yi-ji {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(219, 232, 220, 0.12);
}

.yi-ji-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tag-label {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--gold-2);
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
}

.ji-label {
  background: rgba(183, 106, 77, 0.28);
  color: #e7b7a6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.fortune-card .chip {
  border-color: rgba(219, 232, 220, 0.14);
  background: rgba(219, 232, 220, 0.07);
  color: rgba(236, 232, 218, 0.8);
}

.chip.is-yi {
  border-color: rgba(217, 196, 155, 0.2);
}

.fortune-card .chip.is-yi {
  color: #e6d6b6;
}

.chip.is-ji {
  color: #b9806d;
}

.fortune-card .chip.is-ji {
  color: #e0a892;
}

.fortune-foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(219, 232, 220, 0.12);
}

.fortune-foot span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: rgba(236, 232, 218, 0.55);
}

.fortune-foot svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
  opacity: 0.8;
}

.fortune-foot b {
  font-weight: 500;
  color: rgba(236, 232, 218, 0.92);
}

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

.mini-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(251, 249, 242, 0.72);
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(60, 122, 93, 0.28);
  box-shadow: 0 30px 58px -38px rgba(16, 56, 43, 0.45);
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--mint-2);
  color: var(--jade);
}

.mini-icon svg {
  width: 20px;
  height: 20px;
}

.mini-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.mini-card h3 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--forest);
}

.mini-card p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}

.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--jade);
}

.mini-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.3s var(--ease);
}

.mini-link:hover svg {
  transform: translateX(3px);
}

/* =========================================================
   Wardrobe
   ========================================================= */
.wardrobe {
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(219, 232, 220, 0.6), transparent 66%),
    linear-gradient(180deg, transparent, rgba(235, 230, 215, 0.55) 42%, transparent);
}

.wardrobe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 22px;
  align-items: stretch;
}

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

.color-card {
  display: flex;
  flex-direction: column;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(251, 249, 242, 0.72);
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.color-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 58px -36px rgba(16, 56, 43, 0.48);
}

.color-swatch {
  position: relative;
  height: 218px;
  border-radius: 17px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.28), transparent 46%),
    var(--swatch);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}

.color-card:hover .color-swatch {
  transform: scale(1.015);
}

.color-swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 46%, rgba(0, 0, 0, 0.12));
}

.color-swatch::after {
  content: "";
  position: absolute;
  width: 170%;
  height: 50%;
  top: -28%;
  left: -30%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(-16deg);
}

.swatch-index,
.swatch-element {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 51, 41, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.swatch-index {
  top: 12px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.swatch-element {
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 13px;
}

.color-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 7px 8px;
}

.color-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.color-role b {
  font-weight: 500;
  color: var(--jade);
}

.color-info h3 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--forest);
}

.color-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.color-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--sage);
}

.color-info p {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-2);
}

.color-info small {
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.color-use {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.outfit-card {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(219, 232, 220, 0.68), transparent 65%),
    rgba(251, 249, 242, 0.78);
  box-shadow: var(--shadow-soft);
}

.outfit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.outfit-head h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--forest);
}

.outfit-ratio {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.outfit-list {
  display: flex;
  flex-direction: column;
}

.outfit-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.outfit-list li span {
  padding-top: 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.outfit-list li p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink);
}

.fabric-block {
  margin-top: 20px;
}

.block-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.chips-soft {
  margin-top: 9px;
}

.chip.is-soft {
  border-color: var(--line-soft);
  background: rgba(219, 232, 220, 0.4);
  color: var(--ink-2);
}

.avoid-block {
  margin-top: auto;
  padding: 16px 16px 15px;
  border-left: 2px solid rgba(183, 106, 77, 0.5);
  border-radius: 0 14px 14px 0;
  background: rgba(183, 106, 77, 0.065);
}

.avoid-block p {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.75;
  color: var(--ink-2);
}

/* =========================================================
   Bazi
   ========================================================= */
.bazi {
  background:
    radial-gradient(720px 500px at 90% 10%, rgba(135, 169, 147, 0.2), transparent 66%),
    linear-gradient(180deg, transparent, rgba(246, 242, 230, 0.5));
}

.bazi-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  align-items: stretch;
}

.bazi-form {
  display: flex;
  flex-direction: column;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 249, 242, 0.8);
  box-shadow: var(--shadow-soft);
}

.form-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.form-head h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  color: var(--forest);
}

.form-head p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 20px;
}

.field label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}

.field label em {
  margin-left: 4px;
  font-size: 9px;
  color: var(--muted);
}

.field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.field input::placeholder {
  color: rgba(114, 133, 122, 0.7);
}

.field input:hover {
  border-color: rgba(60, 122, 93, 0.28);
}

.field input:focus {
  border-color: var(--jade);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(60, 122, 93, 0.1);
}

.field input[type="date"],
.field input[type="time"] {
  color-scheme: light;
}

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

.field-hint {
  margin-top: 13px;
  font-size: 10px;
  color: var(--muted);
}

.field-hint b {
  font-weight: 500;
  color: var(--jade);
}

.bazi-form .btn {
  margin-top: 24px;
}

.privacy-line {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 16px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}

.privacy-line svg {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  flex-shrink: 0;
  color: var(--sage);
}

.text-btn {
  align-self: flex-start;
  margin-top: 14px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(114, 133, 122, 0.35);
  background: none;
  font-size: 10px;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.text-btn:hover {
  color: var(--clay);
  border-color: var(--clay);
}

.form-foot {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.form-foot p {
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
}

.bazi-result {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bazi-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  min-height: 100%;
  padding: 46px;
  border: 1px dashed rgba(60, 122, 93, 0.28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 380px at 50% 20%, rgba(219, 232, 220, 0.54), transparent 65%),
    rgba(251, 249, 242, 0.38);
}

.empty-orbit {
  position: relative;
  width: 176px;
  height: 176px;
  margin-bottom: 28px;
  align-self: center;
}

.empty-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(60, 122, 93, 0.28);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}

.empty-ring-b {
  inset: 17%;
  border-style: solid;
  border-color: rgba(185, 153, 95, 0.25);
  animation: spinReverse 40s linear infinite;
}

.empty-pillars {
  position: absolute;
  inset: 30%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.empty-pillars span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 51, 41, 0.13);
  border-radius: 8px;
  background: rgba(251, 249, 242, 0.75);
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted);
}

.bazi-empty h3 {
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--forest);
}

.bazi-empty > p {
  max-width: 420px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}

.empty-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

.empty-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}

.empty-list i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

.result-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(640px 300px at 100% 0%, rgba(219, 232, 220, 0.7), transparent 62%),
    rgba(251, 249, 242, 0.84);
  box-shadow: var(--shadow-soft);
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.result-head h3 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  color: var(--forest);
}

.result-tag {
  flex-shrink: 0;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 26px;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 6px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(246, 242, 230, 0.7);
  text-align: center;
  transition: transform 0.35s var(--ease);
}

.pillar:hover {
  transform: translateY(-3px);
}

.pillar-label {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.pillar-gan,
.pillar-zhi {
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--forest);
}

.pillar-gan {
  margin-top: 7px;
}

.pillar-el {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pillar.is-day {
  border-color: transparent;
  background: var(--forest);
  box-shadow: 0 18px 32px -24px rgba(16, 56, 43, 0.7);
}

.pillar.is-day .pillar-label,
.pillar.is-day .pillar-el {
  color: rgba(236, 232, 218, 0.55);
}

.pillar.is-day .pillar-gan,
.pillar.is-day .pillar-zhi {
  color: var(--gold-2);
}

.chart-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.element-panel {
  padding: 20px;
  border-radius: 18px;
  background: rgba(246, 242, 230, 0.68);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-note {
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.element-bars {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.el-bar-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
}

.el-name {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--el-color);
}

.el-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(20, 51, 41, 0.07);
  overflow: hidden;
}

.el-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 1.2s var(--ease);
}

.el-count {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.chart-insight {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.insight-card {
  flex: 1;
  padding: 15px 17px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(251, 249, 242, 0.58);
}

.insight-card.is-main {
  background: rgba(219, 232, 220, 0.42);
  border-color: rgba(60, 122, 93, 0.16);
}

.insight-card > span {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.insight-card strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--forest);
}

.insight-card p {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.65;
  color: var(--ink-2);
}

.chart-strategy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.chart-strategy span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.chart-strategy strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--forest);
}

.chart-strategy small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: var(--muted);
}

.result-note {
  margin-top: 18px;
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
}

/* =========================================================
   Hours
   ========================================================= */
.hours {
  background:
    radial-gradient(900px 600px at 10% 100%, rgba(219, 232, 220, 0.5), transparent 65%);
}

.hours-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(251, 249, 242, 0.6);
}

.summary-label {
  flex-shrink: 0;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hours-summary .chips {
  gap: 8px;
}

.hours-summary .chip b {
  font-weight: 500;
  color: var(--forest);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.hour-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 202px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(251, 249, 242, 0.62);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}

.hour-card:hover {
  transform: translateY(-3px);
  background: rgba(251, 249, 242, 0.9);
  box-shadow: var(--shadow-soft);
}

.hour-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hour-name {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  color: var(--forest);
}

.hour-name em {
  margin-left: 2px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-style: normal;
  color: var(--muted);
}

.hour-level {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.level-good {
  background: rgba(60, 122, 93, 0.12);
  color: var(--jade);
}

.level-flat {
  background: rgba(114, 133, 122, 0.1);
  color: var(--muted);
}

.level-careful {
  background: rgba(183, 106, 77, 0.1);
  color: var(--clay);
}

.hour-range {
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hour-gz {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--sage);
}

.hour-bar {
  height: 4px;
  margin-top: 13px;
  border-radius: 999px;
  background: rgba(20, 51, 41, 0.07);
  overflow: hidden;
}

.hour-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--jade), var(--sage));
}

.hour-card p {
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.65;
  color: var(--ink-2);
}

.hour-card.is-current {
  border-color: transparent;
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(84, 145, 113, 0.45), transparent 70%),
    var(--forest);
  color: #ece8da;
  box-shadow: 0 24px 48px -30px rgba(16, 56, 43, 0.8);
}

.hour-card.is-current .hour-name,
.hour-card.is-current .hour-name em,
.hour-card.is-current p,
.hour-card.is-current .hour-range,
.hour-card.is-current .hour-gz {
  color: rgba(236, 232, 218, 0.82);
}

.hour-card.is-current .hour-name {
  color: var(--gold-2);
}

.hour-card.is-current .hour-bar {
  background: rgba(219, 232, 220, 0.15);
}

.hour-card.is-current .hour-bar i {
  background: linear-gradient(90deg, var(--gold-2), #efe6cc);
}

.hour-card.is-current .level-good,
.hour-card.is-current .level-flat,
.hour-card.is-current .level-careful {
  background: rgba(219, 232, 220, 0.13);
  color: var(--gold-2);
}

.now-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-2);
}

.now-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(217, 196, 155, 0.65);
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
}

.hour-card.is-current .hour-level {
  margin-right: 16px;
}

/* =========================================================
   Quote
   ========================================================= */
.quote {
  padding-top: 96px;
  padding-bottom: 130px;
}

.quote-card {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  padding: 64px 66px;
  border-radius: 40px;
  background:
    radial-gradient(700px 460px at 88% 16%, rgba(81, 146, 112, 0.42), transparent 60%),
    linear-gradient(145deg, #123b2d, #0b2d22 76%);
  color: #ece8da;
  box-shadow: 0 44px 90px -54px rgba(16, 56, 43, 0.9);
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(219, 232, 220, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(219, 232, 220, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000, transparent 72%);
}

.quote-mark {
  position: absolute;
  left: 34px;
  top: 12px;
  font-family: var(--font-display);
  font-size: 180px;
  line-height: 1;
  color: rgba(217, 196, 155, 0.16);
  pointer-events: none;
}

.quote-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), filter 0.32s var(--ease);
}

.quote-inner.is-swapping {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(8px) scale(0.995);
}

.quote-kicker {
  display: block;
  margin-bottom: 22px;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(236, 232, 218, 0.42);
}

.quote-inner blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.01em;
  color: #f3efe1;
  text-wrap: balance;
}

.quote-inner cite {
  display: block;
  margin-top: 24px;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.12em;
  color: var(--gold-2);
}

.quote-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.quote-seal {
  position: absolute;
  right: 56px;
  bottom: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(217, 196, 155, 0.32);
  border-radius: 50%;
  color: var(--gold-2);
  transform: rotate(-8deg);
  opacity: 0.85;
}

.quote-seal span {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.quote-seal small {
  margin-top: 2px;
  font-size: 6px;
  letter-spacing: 0.18em;
  opacity: 0.64;
}

.quote-orbit {
  position: absolute;
  border: 1px solid rgba(219, 232, 220, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.quote-orbit-a {
  width: 420px;
  height: 420px;
  right: -130px;
  bottom: -190px;
}

.quote-orbit-b {
  width: 260px;
  height: 260px;
  right: -50px;
  bottom: -110px;
  border-style: dashed;
  border-color: rgba(217, 196, 155, 0.12);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 72px 0 28px;
  background:
    radial-gradient(700px 420px at 90% 0%, rgba(60, 122, 93, 0.25), transparent 65%),
    #0d2b22;
  color: rgba(236, 232, 218, 0.68);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 48px;
  padding-bottom: 52px;
}

.footer-brand .brand {
  color: #e9e4d4;
}

.footer-brand .brand-mark {
  color: #b8d2bd;
}

.footer-brand .brand-text em {
  color: rgba(236, 232, 218, 0.42);
}

.footer-brand > p {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(236, 232, 218, 0.48);
}

.footer-nav,
.footer-note {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-nav > span,
.footer-note > span {
  margin-bottom: 5px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(236, 232, 218, 0.35);
}

.footer-nav a {
  align-self: flex-start;
  font-size: 11px;
  color: rgba(236, 232, 218, 0.62);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.footer-nav a:hover {
  color: var(--gold-2);
  transform: translateX(3px);
}

.footer-note p {
  font-size: 10px;
  line-height: 1.8;
  color: rgba(236, 232, 218, 0.42);
}

.footer-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-privacy svg {
  width: 12px;
  height: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(236, 232, 218, 0.1);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(236, 232, 218, 0.35);
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(236, 232, 218, 0.5);
  transition: color 0.3s var(--ease);
}

.back-top:hover {
  color: var(--gold-2);
}

.back-top svg {
  width: 12px;
  height: 12px;
}

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 40px);
  padding: 13px 20px;
  border: 1px solid rgba(219, 232, 220, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(36, 91, 69, 0.9), rgba(13, 43, 34, 0.94));
  color: #ece8da;
  font-size: 12px;
  letter-spacing: 0.03em;
  box-shadow:
    0 28px 56px -28px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  opacity: 0;
  filter: blur(10px);
  transform: translate(-50%, 18px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.38s var(--ease), transform 0.38s var(--ease), filter 0.38s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, 0) scale(1);
}

.toast svg {
  width: 15px;
  height: 15px;
  color: var(--gold-2);
  flex-shrink: 0;
}

/* =========================================================
   Material refinement
   Glass, brushed paper, specular edges.
   ========================================================= */
.mini-card,
.color-card,
.outfit-card,
.bazi-form,
.result-card,
.hours-summary,
.hour-card {
  border-color: var(--glass-edge);
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.outfit-card,
.bazi-form,
.result-card {
  background:
    radial-gradient(460px 300px at 100% 0%, rgba(219, 232, 220, 0.46), transparent 66%),
    var(--glass);
}

.mini-card:hover,
.color-card:hover,
.hour-card:not(.is-current):hover {
  background: var(--glass-strong);
}

.mini-card:hover {
  box-shadow:
    0 34px 68px -42px rgba(16, 56, 43, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(20, 51, 41, 0.05);
}

.color-card:hover {
  box-shadow:
    0 34px 64px -40px rgba(16, 56, 43, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.bazi-empty {
  border-color: rgba(60, 122, 93, 0.3);
  background:
    radial-gradient(520px 380px at 50% 16%, rgba(219, 232, 220, 0.52), transparent 64%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(219, 232, 220, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 24px 52px -42px rgba(16, 56, 43, 0.35);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

.pillar {
  border-color: rgba(255, 255, 255, 0.64);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(246, 242, 230, 0.4));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 20px -18px rgba(16, 56, 43, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pillar.is-day {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(160px 120px at 80% 0%, rgba(109, 174, 139, 0.28), transparent 70%),
    linear-gradient(145deg, #1c513e, #0d3024);
  box-shadow:
    0 22px 38px -26px rgba(16, 56, 43, 0.76),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.element-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(246, 242, 230, 0.34));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    inset 0 -1px 0 rgba(20, 51, 41, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.insight-card {
  border-color: rgba(255, 255, 255, 0.62);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.insight-card.is-main {
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(145deg, rgba(219, 232, 220, 0.66), rgba(255, 255, 255, 0.24));
}

.color-swatch {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -30px 54px rgba(0, 0, 0, 0.13),
    0 14px 28px -22px rgba(16, 56, 43, 0.44);
}

.swatch-index,
.swatch-element {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(20, 51, 41, 0.34));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 3px 10px rgba(0, 0, 0, 0.14);
}

.orbit-tag {
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 242, 231, 0.64));
  box-shadow:
    0 20px 42px -26px rgba(16, 56, 43, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.side-badge,
.outfit-ratio,
.result-tag {
  border-color: rgba(255, 255, 255, 0.68);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 4px 12px -10px rgba(16, 56, 43, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hours-summary .chip,
.fabric-block .chip {
  border-color: rgba(255, 255, 255, 0.68);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(219, 232, 220, 0.36));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.field input {
  border-color: rgba(255, 255, 255, 0.74);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.34));
  box-shadow:
    inset 0 2px 5px rgba(16, 56, 43, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.field input:focus {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.56));
  box-shadow:
    0 0 0 4px rgba(60, 122, 93, 0.1),
    inset 0 2px 5px rgba(16, 56, 43, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, 0.28) 48%, transparent 64%);
  mix-blend-mode: soft-light;
  transform: translateX(-62%) rotate(2deg);
  transition: transform 0.9s var(--ease);
}

.btn:hover::after {
  transform: translateX(62%) rotate(2deg);
}

.btn-primary {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, #28604a, #123c2e 68%, #0c2b21);
  box-shadow:
    0 22px 42px -24px rgba(16, 56, 43, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26);
}

.btn-primary:hover {
  background:
    linear-gradient(145deg, #2e6b53, #164534 68%, #0e3026);
}

.btn-light {
  border-color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(145deg, #fffdf7, #eae4d5);
  box-shadow:
    0 20px 38px -26px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(20, 51, 41, 0.08);
}

.btn-light:hover {
  background: linear-gradient(145deg, #fffefb, #f2ede0);
}

.btn-ghost,
.btn-nav {
  border-color: rgba(255, 255, 255, 0.64);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 26px -22px rgba(16, 56, 43, 0.34);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.btn-nav:hover {
  background: linear-gradient(145deg, #1c4b39, #10382b);
  border-color: rgba(16, 56, 43, 0.3);
  color: var(--paper);
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(248, 246, 237, 0.88), rgba(243, 240, 229, 0.72));
  box-shadow:
    0 1px 0 rgba(20, 51, 41, 0.05),
    0 22px 46px -38px rgba(16, 56, 43, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
}

.fortune-card {
  background:
    radial-gradient(700px 440px at 88% -12%, rgba(103, 173, 137, 0.5), transparent 62%),
    radial-gradient(460px 320px at 2% 110%, rgba(185, 153, 95, 0.13), transparent 66%),
    linear-gradient(155deg, #154536, #0c3024 70%, #09281e);
  box-shadow:
    0 46px 92px -54px rgba(8, 36, 27, 0.94),
    inset 0 1px 0 rgba(232, 243, 230, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.38);
}

.fortune-card::before {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(to right, rgba(219, 232, 220, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(219, 232, 220, 0.04) 1px, transparent 1px);
  background-size: 100% 30%, 58px 58px, 58px 58px;
  background-repeat: no-repeat, repeat, repeat;
}

.quote-card {
  background:
    radial-gradient(700px 460px at 86% 12%, rgba(97, 163, 126, 0.46), transparent 60%),
    radial-gradient(420px 280px at 4% 100%, rgba(185, 153, 95, 0.12), transparent 66%),
    linear-gradient(145deg, #143f30, #0a2b20 78%);
  box-shadow:
    0 48px 96px -56px rgba(8, 34, 25, 0.96),
    inset 0 1px 0 rgba(236, 243, 232, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}

.quote-card::before {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(to right, rgba(219, 232, 220, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(219, 232, 220, 0.035) 1px, transparent 1px);
  background-size: 100% 28%, 72px 72px, 72px 72px;
  background-repeat: no-repeat, repeat, repeat;
}

.ticker {
  background:
    linear-gradient(180deg, #174532, #0f3327 72%, #0c2c22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

.site-footer {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.quote-seal {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 30px -22px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .btn::after {
    display: none;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .container {
    width: min(1240px, calc(100% - 56px));
  }

  .main-nav {
    gap: 22px;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .tag-2 {
    right: -2%;
  }

  .section-head {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 26px;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: clamp(3.4rem, 7.2vw, 5.8rem);
  }

  .hero-visual {
    min-height: 430px;
  }

  .oracle-wrap {
    width: min(440px, 100%);
  }

  .fortune-card {
    padding: 30px;
  }

  .score-wrap {
    width: 190px;
    height: 190px;
  }

  .score-copy strong {
    font-size: 58px;
  }

  .color-swatch {
    height: 190px;
  }

  .chart-body {
    grid-template-columns: 1fr;
  }

  .chart-insight {
    flex-direction: row;
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 24px;
    right: 24px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(243, 240, 229, 0.72));
    box-shadow:
      0 30px 64px -34px rgba(16, 56, 43, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    opacity: 0;
    filter: blur(14px);
    visibility: hidden;
    transform: translateY(-8px) scale(0.985);
    transition: opacity 0.36s var(--ease), transform 0.36s var(--ease), filter 0.36s var(--ease), visibility 0.36s var(--ease);
  }

  body.menu-open .main-nav {
    opacity: 1;
    filter: blur(0);
    visibility: visible;
    transform: none;
  }

  .main-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    background: rgba(219, 232, 220, 0.5);
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    padding-top: 126px;
    padding-bottom: 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-title {
    font-size: clamp(3.4rem, 11vw, 5.8rem);
  }

  .hero-visual {
    min-height: 0;
    padding: 10px 0 20px;
  }

  .oracle-wrap {
    width: min(470px, 92%);
  }

  .scroll-cue {
    display: none;
  }

  .hero-vertical {
    display: none;
  }

  .section {
    padding: 92px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }

  .section-index {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-top: 0;
  }

  .section-index em {
    margin-left: 2px;
  }

  .section-side {
    align-items: flex-start;
    padding-top: 0;
    text-align: left;
  }

  .today-grid,
  .wardrobe-grid,
  .bazi-grid {
    grid-template-columns: 1fr;
  }

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

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

  .outfit-card {
    padding: 30px;
  }

  .bazi-form {
    padding: 30px;
  }

  .bazi-empty {
    min-height: 420px;
    padding: 40px;
  }

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

  .quote-card {
    padding: 50px 40px;
  }

  .quote-seal {
    right: 34px;
    bottom: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1240px, calc(100% - 38px));
  }

  .site-header {
    padding: 12px 0;
  }

  .brand-text em {
    display: none;
  }

  .nav-actions .btn-nav {
    display: none;
  }

  .hero {
    padding-top: 112px;
    padding-bottom: 64px;
  }

  .eyebrow {
    gap: 8px;
    font-size: 9px;
    letter-spacing: 0.16em;
    margin-bottom: 22px;
  }

  .eyebrow i {
    width: 22px;
  }

  .hero-title {
    font-size: clamp(2.9rem, 13.4vw, 4.6rem);
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.9;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 14px 0;
    margin-top: 28px;
  }

  .meta-item {
    min-width: 33.33%;
    padding: 0 14px;
  }

  .meta-item strong {
    font-size: 15px;
  }

  .hero-actions {
    flex-wrap: wrap;
    margin-top: 28px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-privacy {
    font-size: 10px;
  }

  .oracle-wrap {
    width: min(420px, 94%);
  }

  .orbit-tag {
    font-size: 10px;
    padding: 7px 11px 7px 7px;
  }

  .orbit-tag span {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .tag-1 {
    left: -2%;
  }

  .tag-2 {
    right: -2%;
  }

  .tag-3 {
    left: 0;
  }

  .oracle-disc {
    inset: 17%;
  }

  .oracle-name {
    font-size: 21px;
  }

  .hexagram {
    width: 78px;
    gap: 6px;
  }

  .hex-line {
    height: 7px;
  }

  .hex-line.is-yin {
    gap: 10px;
    height: 7px;
  }

  .ticker-track {
    padding: 12px 0;
  }

  .section {
    padding: 76px 0;
  }

  .section-title-wrap h2 {
    font-size: clamp(2rem, 8.4vw, 2.9rem);
  }

  .mobile-br {
    display: block;
  }

  .section-lede {
    margin-top: 14px;
    font-size: 12px;
  }

  .today-cards {
    grid-template-columns: 1fr;
  }

  .mini-card {
    min-height: 0;
    padding: 23px;
  }

  .fortune-card {
    padding: 25px;
    border-radius: 28px;
  }

  .score-wrap {
    width: 176px;
    height: 176px;
  }

  .score-copy strong {
    font-size: 52px;
  }

  .fortune-foot {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .fortune-foot span:nth-child(3) {
    grid-column: 1 / -1;
  }

  .palette-grid {
    grid-template-columns: 1fr;
  }

  .color-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0;
    padding: 10px;
  }

  .color-swatch {
    height: 100%;
    min-height: 150px;
  }

  .color-info {
    padding: 10px 14px 8px;
  }

  .color-info h3 {
    font-size: 21px;
  }

  .outfit-card,
  .bazi-form,
  .result-card {
    padding: 24px;
    border-radius: 26px;
  }

  .outfit-head {
    flex-direction: column;
    gap: 10px;
  }

  .outfit-head h3 {
    font-size: 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bazi-empty {
    padding: 30px 24px;
    min-height: 380px;
  }

  .bazi-empty h3 {
    font-size: 24px;
  }

  .empty-orbit {
    width: 140px;
    height: 140px;
    margin-bottom: 22px;
  }

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

  .chart-insight {
    flex-direction: column;
  }

  .chart-strategy {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hours-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

  .hour-card {
    min-height: 190px;
    padding: 17px;
  }

  .quote {
    padding-top: 78px;
    padding-bottom: 88px;
  }

  .quote-card {
    padding: 42px 26px 38px;
    border-radius: 30px;
    min-height: 0;
  }

  .quote-mark {
    left: 14px;
    top: 6px;
    font-size: 120px;
  }

  .quote-inner blockquote {
    font-size: 26px;
  }

  .quote-actions {
    margin-top: 30px;
  }

  .quote-actions .btn {
    flex: 1 1 auto;
  }

  .quote-seal {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 18px;
  }

  .toast {
    bottom: 20px;
    padding: 11px 15px;
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 30px);
  }

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

  .brand-mark svg {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 14.6vw, 4rem);
  }

  .eyebrow span:last-child {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    gap: 12px 0;
  }

  .meta-item {
    min-width: 50%;
  }

  .meta-item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .hero-visual {
    padding-top: 0;
  }

  .orbit-tag b {
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .section-index {
    font-size: 9px;
  }

  .section-title-wrap h2 {
    font-size: 1.95rem;
  }

  .fortune-card {
    padding: 21px;
  }

  .hex-badge {
    max-width: 52%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .score-wrap {
    width: 158px;
    height: 158px;
  }

  .score-copy strong {
    font-size: 46px;
  }

  .score-copy small {
    font-size: 9px;
  }

  .fortune-summary {
    font-size: 12px;
  }

  .yi-ji-row {
    gap: 8px;
  }

  .fortune-foot {
    gap: 7px;
  }

  .color-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .color-swatch {
    min-height: 142px;
  }

  .color-info p {
    display: none;
  }

  .hours-grid {
    grid-template-columns: 1fr;
  }

  .hour-card {
    min-height: 0;
  }

  .hour-card p {
    margin-top: 8px;
  }

  .hours-summary {
    padding: 12px 14px;
  }

  .quote-card {
    padding: 36px 20px 32px;
  }

  .quote-inner blockquote {
    font-size: 23px;
  }

  .quote-actions {
    flex-direction: column;
  }

  .quote-actions .btn {
    width: 100%;
  }

  .footer-bottom {
    font-size: 8px;
  }
}

/* =========================================================
   Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-fast {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-title .line > span {
    transform: none;
    opacity: 1;
    filter: none;
  }

  .ink::after {
    transform: scaleX(1) rotate(-1.4deg);
  }

  .hex-line {
    opacity: 1;
    transform: none;
  }
}
