
  :root {
    --ink: #0e0d0b;
    --ink-soft: #171512;
    --surface: #1e1b16;
    --surface-2: #262219;
    --rice: #F6F0E6;
    --rice-dim: #cfc6b4;
    --rice-faint: #948b7a;
    --jade: #2F6F5E;
    --jade-bright: #5aa08a;
    --cinnabar: #A64032;
    --cinnabar-bright: #d0644f;
    --gold: #C6A15B;
    --gold-bright: #e8c98a;
    --indigo: #1D2733;
    --mist: #D8D4CA;
    --hairline: rgba(246, 240, 230, 0.10);
    --serif: "Cormorant Garamond", "Songti SC", Georgia, serif;
    --serif-cn: "Noto Serif SC", "Songti SC", serif;
    --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
    /* five elements */
    --wood: #6da068;
    --fire: #cf5d42;
    --earth: #c09a60;
    --metal: #a8b0b6;
    --water: #4d82a3;
    /* gold gradient */
    --gold-grad: linear-gradient(120deg, #a67c3d 0%, #e8c98a 30%, #f7e3b0 50%, #d4ab5e 70%, #a67c3d 100%);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--ink);
    background-image:
      radial-gradient(circle at 85% 10%, rgba(47,111,94,0.06), transparent 40%),
      radial-gradient(circle at 10% 90%, rgba(166,64,50,0.05), transparent 40%);
    background-attachment: fixed;
    color: var(--rice);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  ::selection { background: rgba(198,161,91,0.35); }

  /* ═══════ Views (SPA switch) ═══════ */
  .view { display: none; padding-top: 68px; }
  .view.active { display: block; animation: fadeIn 0.35s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .view.active { animation: none; } }

  /* ═══════ Navigation ═══════ */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 4vw;
    background: rgba(17,17,17,0.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
  }
  .brand { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; }
  .brand-mark {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif-cn); font-size: 0.85rem; color: var(--gold);
  }
  .brand-name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.06em; }
  .brand-name em { font-style: normal; color: var(--gold); }
  .nav-links { display: flex; align-items: center; gap: 1.2rem; }
  .nav-links a {
    color: var(--rice-dim); text-decoration: none; font-size: 0.85rem;
    letter-spacing: 0.03em; transition: color 0.15s; padding: 0.3rem 0;
  }
  .nav-links a:hover { color: var(--rice); }
  .nav-links a.active { color: var(--gold); }
  .audio-control {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--gold); background: rgba(198,161,91,0.08);
    color: var(--gold); font-size: 0.92rem; line-height: 1;
    cursor: pointer; margin-left: 0.4rem; transition: all 0.2s ease;
    font-family: var(--sans);
  }
  .audio-control:hover {
    background: rgba(198,161,91,0.22); color: var(--gold-bright);
    box-shadow: 0 0 18px rgba(198,161,91,0.25), inset 0 0 12px rgba(198,161,91,0.18);
    transform: translateY(-1px);
  }
  .audio-control:active { transform: translateY(0); }
  .audio-control.muted { color: var(--rice-faint); border-color: var(--hairline); background: transparent; }
  .audio-control.muted:hover { color: var(--gold); border-color: var(--gold); background: rgba(198,161,91,0.12); }
  .bgm-control {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--cinnabar); background: rgba(166,64,50,0.08);
    color: var(--cinnabar-bright); font-size: 0.78rem; line-height: 1;
    cursor: pointer; margin-left: 0.3rem; transition: all 0.2s ease;
    font-family: var(--sans);
  }
  .bgm-control:hover {
    background: rgba(166,64,50,0.22); color: var(--rice);
    box-shadow: 0 0 18px rgba(166,64,50,0.28), inset 0 0 12px rgba(166,64,50,0.18);
    transform: translateY(-1px);
  }
  .bgm-control:active { transform: translateY(0); }
  .bgm-control.paused { color: var(--rice-faint); border-color: var(--hairline); background: transparent; }
  .bgm-control.paused:hover { color: var(--cinnabar-bright); border-color: var(--cinnabar); background: rgba(166,64,50,0.14); }
  .audio-controls { display: inline-flex; align-items: center; }

  .nav-cta {
    border: 1px solid var(--cinnabar); color: var(--cinnabar-bright);
    padding: 0.55rem 1.3rem; border-radius: 2px; font-size: 0.83rem;
    letter-spacing: 0.05em; cursor: pointer; background: none; transition: all 0.15s;
  }
  .nav-cta:hover { background: var(--cinnabar); color: var(--rice); }
  .nav-burger { display: none; background: none; border: none; color: var(--rice); font-size: 1.5rem; cursor: pointer; margin-left: 0.4rem; }
  .lang-toggle {
    background: rgba(246,240,230,0.03);
    border: 1px solid rgba(198,161,91,0.55);
    color: var(--gold-bright);
    border-radius: 2px;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    font-family: var(--sans);
    line-height: 1;
    transition: all 0.2s;
    white-space: nowrap;
  }
  .lang-toggle:hover { background: rgba(198,161,91,0.10); border-color: var(--gold); color: var(--gold); }

  @media (max-width: 860px) {
    .nav-links {
      position: fixed; top: 60px; left: 0; right: 0;
      flex-direction: column; align-items: flex-start; gap: 0;
      background: var(--ink-soft); border-bottom: 1px solid var(--hairline);
      padding: 0.5rem 4vw 1rem; display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--hairline); }
    .nav-links a:last-child { border-bottom: none; }
    .nav-cta { margin-top: 0.7rem; width: 100%; }
    .nav-burger { display: block; }
  }

  /* ═══════ Home section continuity — unified gradient background ═══════ */
  #view-home {
    background:
      linear-gradient(180deg, #0e0d0b 0%, #11100d 35%, #0e0d0b 65%, #11100d 100%);
  }
  #view-home .wrap { background: transparent; border-top: 1px solid rgba(198,161,91,0.06); }
  #view-home .wrap:first-of-type { border-top: none; }

  /* ═══════ Section scaffolding ═══════ */
  .wrap { padding: 2.6rem 4vw; }
  .sec-head { max-width: 46ch; margin-bottom: 2rem; }
  .sec-head .label {
    font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.9rem;
    display: flex; align-items: center; gap: 1rem;
  }
  .sec-head .label::before {
    content: ""; width: 2.2rem; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
  }
  .sec-head h2 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.22;
  }
  .sec-head p { color: var(--rice-dim); margin-top: 0.9rem; font-size: 0.98rem; line-height: 1.7; }

  .btn {
    display: inline-block; padding: 0.9rem 2.2rem; border-radius: 2px;
    font-size: 0.92rem; font-family: var(--sans); font-weight: 400;
    text-decoration: none; letter-spacing: 0.04em; cursor: pointer;
    border: none; transition: all 0.2s; position: relative; overflow: hidden;
  }
  .btn-primary {
    background: linear-gradient(135deg, #8a3325 0%, var(--cinnabar) 55%, #c95a48 100%);
    color: var(--rice);
    box-shadow: 0 4px 18px rgba(166,64,50,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
  }
  .btn-primary:hover {
    background: linear-gradient(135deg, #9a3d2d 0%, var(--cinnabar-bright) 55%, #d8705c 100%);
    box-shadow: 0 6px 26px rgba(166,64,50,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-1px);
  }
  .btn-ghost {
    background: rgba(246,240,230,0.02); border: 1px solid rgba(198,161,91,0.35); color: var(--rice);
    backdrop-filter: blur(4px);
  }
  .btn-ghost:hover {
    border-color: var(--gold); color: var(--gold-bright);
    box-shadow: 0 0 20px rgba(198,161,91,0.15); background: rgba(198,161,91,0.06);
    transform: translateY(-1px);
  }
  .btn-gold {
    background: linear-gradient(135deg, #a67c3d 0%, var(--gold) 45%, #e0bd7c 100%);
    color: var(--ink);
    box-shadow: 0 4px 18px rgba(198,161,91,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  }
  .btn-gold:hover {
    box-shadow: 0 6px 26px rgba(198,161,91,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
    transform: translateY(-1px);
  }

  /* ═══════ HERO ═══════ */
  .hero {
    position: relative; overflow: hidden;
    padding: 7.5rem 4vw 6rem; text-align: center;
    border-bottom: 1px solid var(--hairline);
    background:
      radial-gradient(ellipse 90% 65% at 50% -15%, rgba(47,111,94,0.28), transparent 62%),
      radial-gradient(ellipse 55% 45% at 85% 15%, rgba(166,64,50,0.14), transparent 60%),
      radial-gradient(ellipse 70% 50% at 15% 80%, rgba(77,130,163,0.10), transparent 60%),
      linear-gradient(180deg, #0a0908 0%, #0e0d0b 55%, #12100c 100%);
  }
  .hero::before {
    content: ""; position: absolute; inset: 0; opacity: 0.16; pointer-events: none;
    background-image:
      radial-gradient(circle at 12% 22%, rgba(232,201,138,0.9) 1px, transparent 1.8px),
      radial-gradient(circle at 88% 38%, rgba(232,201,138,0.7) 1px, transparent 1.8px),
      radial-gradient(circle at 25% 78%, rgba(232,201,138,0.6) 1px, transparent 1.8px),
      radial-gradient(circle at 68% 88%, rgba(232,201,138,0.8) 1px, transparent 1.8px),
      radial-gradient(circle at 42% 12%, rgba(232,201,138,0.5) 1px, transparent 1.8px),
      radial-gradient(circle at 75% 55%, rgba(232,201,138,0.5) 1px, transparent 1.8px),
      radial-gradient(circle at 8% 55%, rgba(232,201,138,0.5) 1px, transparent 1.8px);
    background-size: 180px 180px;
    animation: twinkle 8s ease-in-out infinite alternate;
  }
  @keyframes twinkle {
    from { opacity: 0.10; } to { opacity: 0.22; }
  }
  .hero::after {
    content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 70%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(198,161,91,0.6), transparent);
  }
  .hero-inner { position: relative; z-index: 1; }

  .hero .seal-ring {
    width: 96px; height: 96px; margin: 0 auto 1.6rem; position: relative;
    display: flex; align-items: center; justify-content: center;
  }
  .hero .seal-ring .ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid rgba(198,161,91,0.5);
    box-shadow: 0 0 24px rgba(198,161,91,0.15), inset 0 0 24px rgba(198,161,91,0.08);
  }
  .hero .seal-ring .ring.r2 { inset: 8px; border-color: rgba(198,161,91,0.3); }
  .hero .seal-ring .char {
    font-family: var(--serif-cn); font-size: 2.2rem; color: var(--gold-bright);
    text-shadow: 0 0 18px rgba(232,201,138,0.5);
  }

  .elements-row { display: flex; justify-content: center; gap: 2.2rem; margin-bottom: 2rem; }
  .elem {
    width: 50px; height: 50px; border-radius: 50%;
    border: 1px solid var(--hairline);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif-cn); font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    background: rgba(246,240,230,0.02);
  }
  .elem:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
  .elem.wood { color: var(--wood); border-color: rgba(109,160,104,0.5); box-shadow: 0 0 16px rgba(109,160,104,0.12); }
  .elem.fire { color: var(--fire); border-color: rgba(207,93,66,0.5); box-shadow: 0 0 16px rgba(207,93,66,0.12); }
  .elem.earth { color: var(--earth); border-color: rgba(192,154,96,0.5); box-shadow: 0 0 16px rgba(192,154,96,0.12); }
  .elem.metal { color: var(--metal); border-color: rgba(168,176,182,0.5); box-shadow: 0 0 16px rgba(168,176,182,0.12); }
  .elem.water { color: var(--water); border-color: rgba(77,130,163,0.5); box-shadow: 0 0 16px rgba(77,130,163,0.12); }

  .kicker {
    font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.3rem;
    display: inline-flex; align-items: center; gap: 1.2rem;
  }
  .kicker::before, .kicker::after {
    content: ""; width: 2.5rem; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
  }
  .kicker::after { background: linear-gradient(90deg, var(--gold), transparent); }

  .hero h1 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.12;
    max-width: 20ch; margin: 0 auto 1.5rem;
    letter-spacing: 0.01em;
  }
  .hero h1 .gold-text {
    font-style: italic;
    background: var(--gold-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 2px 14px rgba(198,161,91,0.25));
  }
  .hero .sub {
    max-width: 55ch; margin: 0 auto 2.5rem;
    color: var(--rice-dim); font-size: 1.08rem; line-height: 1.75;
  }
  .hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  .hero .trustline {
    margin-top: 2.5rem; font-size: 0.78rem; color: var(--rice-faint);
    letter-spacing: 0.12em; text-transform: uppercase;
  }

  /* ═══════ How it works ═══════ */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
  .step { position: relative; padding-top: 2.6rem; }
  .step::before {
    counter-increment: step; content: "0" counter(step);
    position: absolute; top: 0; left: 0;
    font-family: var(--serif); font-size: 2.6rem; color: var(--gold); opacity: 0.7;
  }
  .step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin-bottom: 0.6rem; }
  .step p { color: var(--rice-dim); font-size: 0.92rem; }
  @media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

  /* ═══════ Product cards ═══════ */
  .products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
  .product {
    background: linear-gradient(165deg, rgba(246,240,230,0.03), transparent 40%), var(--surface);
    border: 1px solid var(--hairline); border-radius: 6px;
    padding: 1.9rem 1.7rem; display: flex; flex-direction: column; gap: 0.75rem;
    position: relative; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
  }
  .product::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(198,161,91,0.5), transparent);
    opacity: 0.4; transition: opacity 0.2s;
  }
  .product:hover {
    border-color: rgba(198,161,91,0.45);
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(0,0,0,0.45), 0 0 24px rgba(198,161,91,0.08);
  }
  .product:hover::before { opacity: 1; }
  .product .p-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif-cn); font-size: 1rem;
    border: 1px solid rgba(198,161,91,0.4); color: var(--gold-bright);
    background: radial-gradient(circle at 35% 30%, rgba(198,161,91,0.15), transparent 60%);
  }
  .product h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
  .product p { color: var(--rice-dim); font-size: 0.88rem; flex-grow: 1; line-height: 1.65; }
  .product .price {
    font-family: var(--serif); font-size: 1.6rem; color: var(--gold-bright);
    text-shadow: 0 0 14px rgba(198,161,91,0.25);
  }
  .product .price small { font-size: 0.8rem; color: var(--rice-faint); font-family: var(--sans); }
  .product .free { color: var(--jade-bright); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
  .product .btn { margin-top: 0.4rem; text-align: center; }

  /* ═══════ Quick form ═══════ */
  .quick-form {
    background: var(--indigo); border: 1px solid var(--hairline);
    padding: 2.6rem; max-width: 640px; margin: 0 auto;
  }
  .quick-form h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-bottom: 0.5rem; }
  .quick-form p { color: var(--rice-dim); font-size: 0.9rem; margin-bottom: 1.6rem; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-grid .full { grid-column: 1 / -1; }
  .field label { display: block; font-size: 0.78rem; color: var(--rice-dim); margin-bottom: 0.4rem; letter-spacing: 0.04em; }
  .field input, .field select {
    width: 100%; background: rgba(17,17,17,0.6); border: 1px solid var(--hairline);
    color: var(--rice); padding: 0.7rem 0.9rem; font-size: 0.92rem;
    font-family: var(--sans); border-radius: 2px; outline: none;
    transition: border-color 0.15s;
  }
  .field input:focus, .field select:focus { border-color: var(--gold); }
  .field select option { background: var(--ink-soft); }
  .consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.78rem; color: var(--rice-faint); margin-top: 0.6rem; }
  .consent input { margin-top: 0.25rem; }
  .quick-form .btn { margin-top: 1.2rem; width: 100%; }

  /* ═══════ Trust band ═══════ */
  .trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
  .trust-item { background: var(--ink-soft); padding: 1.8rem 1.5rem; }
  .trust-item .t-cn { font-family: var(--serif-cn); color: var(--gold); font-size: 1.2rem; margin-bottom: 0.5rem; }
  .trust-item h4 { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; margin-bottom: 0.4rem; }
  .trust-item p { color: var(--rice-dim); font-size: 0.84rem; }

  /* ═══════ Testimonials ═══════ */
  .quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
  .quote { background: var(--surface); border: 1px solid var(--hairline); padding: 1.8rem; }
  .quote .stars { color: var(--gold); letter-spacing: 0.2em; font-size: 0.85rem; margin-bottom: 0.8rem; }
  .quote p { color: var(--rice-dim); font-size: 0.92rem; font-style: italic; margin-bottom: 1rem; }
  .quote .who { font-size: 0.8rem; color: var(--rice-faint); }
  .quote .who b { color: var(--rice); font-weight: 500; }

  /* ═══════ Report page ═══════ */
  .report-hero { padding: 4rem 4vw 2.5rem; border-bottom: 1px solid var(--hairline); text-align: center; }
  .report-hero .kicker { margin-bottom: 0.8rem; }
  .report-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); }
  .report-hero .meta { color: var(--rice-faint); font-size: 0.85rem; margin-top: 0.8rem; }
  .report-hero .meta span { margin: 0 0.8rem; }

  .report-body { max-width: 960px; margin: 0 auto; padding: 3rem 4vw 4.5rem; }

  /* BaZi chart card */
  .bazi-card {
    background:
      radial-gradient(ellipse 90% 60% at 50% 0%, rgba(198,161,91,0.07), transparent 60%),
      linear-gradient(160deg, var(--surface), var(--ink-soft));
    border: 1px solid rgba(198,161,91,0.22); border-radius: 8px; padding: 2.2rem;
    margin-bottom: 1.4rem; position: relative; overflow: hidden;
  }
  .bazi-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(198,161,91,0.6), transparent);
  }
  .bazi-card::after {
    content: "命"; position: absolute; right: 1.2rem; bottom: -1.2rem;
    font-family: var(--serif-cn); font-size: 7rem; opacity: 0.06;
  }
  .bazi-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 1.4rem; }
  .pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); }
  .pillar { background: var(--ink-soft); padding: 1.1rem 0.8rem; text-align: center; }
  .pillar .p-label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rice-faint); margin-bottom: 0.6rem; }
  .pillar .p-stem { font-family: var(--serif-cn); font-size: 1.7rem; color: var(--rice); }
  .pillar .p-branch { font-family: var(--serif-cn); font-size: 1.7rem; color: var(--gold); margin-top: 0.2rem; }
  .pillar .p-elem { font-size: 0.72rem; color: var(--jade-bright); margin-top: 0.5rem; letter-spacing: 0.1em; }
  .bazi-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; font-size: 0.8rem; color: var(--rice-faint); }

  /* Element balance */
  .balance-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.4rem; margin-bottom: 1.4rem; }
  @media (max-width: 760px) { .balance-row { grid-template-columns: 1fr; } }
  .balance-card {
    background:
      radial-gradient(ellipse 90% 50% at 50% 0%, rgba(198,161,91,0.05), transparent 65%),
      linear-gradient(165deg, rgba(246,240,230,0.02), transparent 45%), var(--surface);
    border: 1px solid var(--hairline); border-radius: 8px; padding: 1.9rem;
  }
  .balance-card h4 { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; margin-bottom: 1.2rem; }
  .bar-row { display: grid; grid-template-columns: 56px 1fr 36px; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
  .bar-row .b-name { font-family: var(--serif-cn); font-size: 0.95rem; }
  .bar-row .b-track { height: 8px; background: rgba(246,240,230,0.08); border-radius: 4px; overflow: hidden; }
  .bar-row .b-fill { height: 100%; border-radius: 4px; width: 0; transition: width 0.8s ease; }
  .bar-row .b-val { text-align: right; font-size: 0.85rem; color: var(--rice-dim); }
  .fill-wood { background: var(--wood); } .fill-fire { background: var(--fire); }
  .fill-earth { background: var(--earth); } .fill-metal { background: var(--metal); }
  .fill-water { background: var(--water); }

  .yin-yang { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; height: 100%; }
  .yy-symbol { width: 90px; height: 90px; position: relative; }
  .yy-symbol .half { position: absolute; width: 50%; height: 100%; }
  .yy-symbol .yang { left: 0; background: var(--rice); border-radius: 45px 0 0 45px; }
  .yy-symbol .yin { right: 0; background: var(--ink); border: 1px solid var(--rice); border-radius: 0 45px 45px 0; }
  .yy-symbol .dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; }
  .yy-symbol .dot-1 { top: 25%; left: 25%; background: var(--ink); border: 1px solid var(--rice); }
  .yy-symbol .dot-2 { bottom: 25%; right: 25%; background: var(--rice); }
  .yy-note { font-size: 0.85rem; color: var(--rice-dim); text-align: center; }
  .yy-note b { color: var(--gold); font-weight: 500; }

  /* Life area tabs */
  .area-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
  .area-tab {
    background: none; border: 1px solid var(--hairline); color: var(--rice-dim);
    padding: 0.55rem 1.2rem; font-size: 0.85rem; cursor: pointer; border-radius: 2px;
    font-family: var(--sans); transition: all 0.15s;
  }
  .area-tab:hover { color: var(--rice); }
  .area-tab.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

  .area-panel { display: none; }
  .area-panel.active { display: block; animation: fadeIn 0.3s ease; }
  .area-card {
    background:
      radial-gradient(ellipse 90% 50% at 50% 0%, rgba(198,161,91,0.05), transparent 65%),
      linear-gradient(165deg, rgba(246,240,230,0.02), transparent 45%), var(--surface);
    border: 1px solid var(--hairline); border-radius: 8px; padding: 2rem;
  }
  .area-card h4 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 0.4rem; }
  .area-card .a-cn { font-family: var(--serif-cn); color: var(--gold); font-size: 0.85rem; letter-spacing: 0.2em; margin-bottom: 1.1rem; }
  .area-card .reading { color: var(--rice-dim); font-size: 0.95rem; margin-bottom: 1.4rem; line-height: 1.75; }
  .area-card .advice {
    border-left: 2px solid var(--gold); padding: 0.6rem 1rem 0.6rem 1.2rem;
    background: rgba(198,161,91,0.06); font-size: 0.9rem; margin-bottom: 1.4rem;
  }
  .area-card .advice b { color: var(--gold); font-weight: 500; }

  /* Remedy cards inside report */
  .remedy-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.9rem; }
  .remedy {
    background: var(--ink-soft); border: 1px solid var(--hairline); padding: 1.3rem;
    display: flex; gap: 0.9rem; align-items: flex-start;
  }
  .remedy .r-stone {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif-cn); font-size: 0.95rem; color: var(--ink);
  }
  .remedy h5 { font-size: 0.92rem; font-weight: 500; margin-bottom: 0.2rem; }
  .remedy p { font-size: 0.78rem; color: var(--rice-faint); }
  .stone-obsidian { background: #2b2b33; color: #9aa2a8; }
  .stone-aqua { background: #7ec8c0; }
  .stone-citrine { background: #e0b45f; }
  .stone-green { background: #7fb069; }
  .stone-agate { background: #c25b4a; }
  .stone-quartz { background: #d9d4cc; }

  /* ═══════ Pricing page ═══════ */
  .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
  .plan {
    background: linear-gradient(165deg, rgba(246,240,230,0.03), transparent 40%), var(--surface);
    border: 1px solid var(--hairline); border-radius: 6px; padding: 2.2rem 1.9rem;
    display: flex; flex-direction: column; gap: 0.9rem; position: relative;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; overflow: hidden;
  }
  .plan::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(198,161,91,0.5), transparent);
    opacity: 0.4;
  }
  .plan:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(0,0,0,0.4); }
  .plan.popular {
    border-color: rgba(198,161,91,0.6);
    background:
      radial-gradient(ellipse 80% 40% at 50% 0%, rgba(198,161,91,0.14), transparent 70%),
      linear-gradient(165deg, rgba(246,240,230,0.04), transparent 40%), var(--surface);
    box-shadow: 0 0 30px rgba(198,161,91,0.08), inset 0 0 30px rgba(198,161,91,0.03);
  }
  .plan .badge {
    position: absolute; top: -0.7rem; right: 1.3rem;
    background: linear-gradient(135deg, #a67c3d, var(--gold) 50%, #e0bd7c);
    color: var(--ink); font-size: 0.68rem;
    letter-spacing: 0.12em; text-transform: uppercase; padding: 0.28rem 0.8rem; border-radius: 2px;
    box-shadow: 0 2px 10px rgba(198,161,91,0.4);
  }
  .plan h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
  .plan .desc { font-size: 0.85rem; color: var(--rice-dim); }
  .plan .amount {
    font-family: var(--serif); font-size: 2.5rem; color: var(--gold-bright);
    text-shadow: 0 0 18px rgba(198,161,91,0.3);
  }
  .plan .amount small { font-size: 0.85rem; color: var(--rice-faint); font-family: var(--sans); }
  .plan ul { list-style: none; flex-grow: 1; }
  .plan ul li { font-size: 0.85rem; color: var(--rice-dim); padding: 0.35rem 0; border-bottom: 1px dashed var(--hairline); }
  .plan ul li:last-child { border-bottom: none; }
  .plan .btn { text-align: center; }
  .plan-icon { font-size: 2rem; margin-bottom: 0.2rem; line-height: 1; }

  /* ═══════ Learn page ═══════ */
  .learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
  .learn-card {
    background: var(--surface); border: 1px solid var(--hairline); padding: 2rem;
    cursor: pointer; transition: border-color 0.2s, transform 0.2s;
  }
  .learn-card:hover { border-color: var(--jade-bright); transform: translateY(-2px); }
  .learn-card .l-cn { font-family: var(--serif-cn); font-size: 1.6rem; color: var(--jade-bright); margin-bottom: 0.8rem; }
  .learn-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin-bottom: 0.5rem; }
  .learn-card p { font-size: 0.85rem; color: var(--rice-dim); }

  /* ═══════ Remedies page ═══════ */
  .filter-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
  .filter-chip {
    background: none; border: 1px solid var(--hairline); color: var(--rice-dim);
    padding: 0.5rem 1.1rem; font-size: 0.83rem; cursor: pointer; border-radius: 20px;
    font-family: var(--sans); transition: all 0.15s;
  }
  .filter-chip:hover { color: var(--rice); }
  .filter-chip.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }

  .remedy-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
  @media (max-width: 1100px) { .remedy-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 640px) { .remedy-grid { grid-template-columns: repeat(2, 1fr); } }
  .remedy-card {
    background: var(--surface); border: 1px solid var(--hairline); padding: 1.2rem;
    display: flex; flex-direction: column; gap: 0.6rem; transition: border-color 0.2s, transform 0.2s;
  }
  .remedy-card:hover { border-color: rgba(198,161,91,0.5); transform: translateY(-3px); }
  .remedy-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
  .remedy-card .elem-tag { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
  .remedy-card p { font-size: 0.8rem; color: var(--rice-dim); flex-grow: 1; }
  .remedy-card .price { font-size: 0.88rem; color: var(--gold); }
  .remedy-card .btn { text-align: center; font-size: 0.8rem; padding: 0.6rem 1rem; }
  .tag-wood { color: var(--wood); } .tag-fire { color: var(--fire); }
  .tag-earth { color: var(--earth); } .tag-metal { color: var(--metal); } .tag-water { color: var(--water); }

  .disclaimer-box {
    background: rgba(166,64,50,0.07); border: 1px solid rgba(166,64,50,0.35);
    padding: 1.4rem 1.6rem; font-size: 0.82rem; color: var(--rice-dim);
    margin-top: 2.5rem; line-height: 1.7;
  }
  .disclaimer-box b { color: var(--cinnabar-bright); }

  /* ═══════ Wellness page ═══════ */
  .wellness-wrap { max-width: 760px; margin: 0 auto; }
  .wellness-note {
    background: rgba(47,111,94,0.08); border: 1px solid rgba(47,111,94,0.4);
    padding: 1.5rem 1.7rem; font-size: 0.88rem; color: var(--rice-dim); margin-bottom: 2.2rem;
  }
  .wellness-note b { color: var(--jade-bright); }
  .wellness-card { background: var(--surface); border: 1px solid var(--hairline); padding: 2.2rem; margin-bottom: 1.2rem; }
  .wellness-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin-bottom: 0.4rem; }
  .wellness-card .w-cn { font-family: var(--serif-cn); color: var(--jade-bright); font-size: 0.8rem; letter-spacing: 0.2em; margin-bottom: 1rem; }
  .wellness-card p { color: var(--rice-dim); font-size: 0.9rem; margin-bottom: 1.2rem; }
  .waitlist {
    border: 1px dashed var(--gold); padding: 1.6rem; text-align: center;
    background: rgba(198,161,91,0.04);
  }
  .waitlist h4 { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; margin-bottom: 0.4rem; }
  .waitlist p { font-size: 0.85rem; color: var(--rice-dim); margin-bottom: 1rem; }
  .waitlist .btn { margin-top: 0.4rem; }

  /* ═══════ Name page ═══════ */
  .name-demo {
    background: linear-gradient(160deg, var(--surface), var(--ink-soft));
    border: 1px solid var(--hairline); padding: 2.4rem; margin-top: 2.5rem;
    position: relative; overflow: hidden;
  }
  .name-demo::after { content: "名"; position: absolute; right: 1.4rem; bottom: -1.4rem; font-family: var(--serif-cn); font-size: 8rem; opacity: 0.05; }
  .name-demo .cn { font-family: var(--serif-cn); font-size: 3.4rem; color: var(--gold); margin-bottom: 0.6rem; }
  .name-demo .pinyin { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--rice); margin-bottom: 1rem; }
  .name-demo .meaning { color: var(--rice-dim); font-size: 0.95rem; margin-bottom: 1.2rem; max-width: 52ch; }
  .name-elems { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
  .name-elems .chip { font-size: 0.78rem; padding: 0.35rem 0.9rem; border: 1px solid var(--hairline); border-radius: 20px; color: var(--rice-dim); }

  /* ═══════ Footer ═══════ */
  footer { padding: 3rem 4vw 3.5rem; border-top: 1px solid var(--hairline); }
  .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.2rem; }
  @media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
  .foot-grid h5 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
  .foot-grid p, .foot-grid a { font-size: 0.85rem; color: var(--rice-faint); text-decoration: none; display: block; margin-bottom: 0.5rem; }
  .foot-grid a:hover { color: var(--rice); }
  .foot-disclaimer { font-size: 0.76rem; color: var(--rice-faint); line-height: 1.75; max-width: 90ch; margin-bottom: 1.5rem; }
  .foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: var(--rice-faint); border-top: 1px solid var(--hairline); padding-top: 1.5rem; }

  /* ═══════ Stone art (CSS crystals) ═══════ */
  .stone-art {
    width: 100%; aspect-ratio: 1; border-radius: 10px;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.4rem;
  }
  .stone-art::before {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(115deg, rgba(255,255,255,0.35) 0%, transparent 22%),
      linear-gradient(205deg, rgba(255,255,255,0.20) 0%, transparent 28%),
      linear-gradient(335deg, rgba(0,0,0,0.25) 0%, transparent 30%);
    mix-blend-mode: overlay;
  }
  .stone-art::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.5), transparent 45%);
    opacity: 0.6;
  }
  .stone-art .cn {
    position: relative; z-index: 2;
    font-family: var(--serif-cn); font-size: 1.5rem; color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  }
  .stone-art .spark {
    position: absolute; width: 4px; height: 4px; border-radius: 50%;
    background: #fff; opacity: 0.9; z-index: 3;
    box-shadow: 0 0 6px rgba(255,255,255,0.8);
  }
  .stone-obsidian-bg { background: linear-gradient(145deg, #3a3a44, #141418 60%, #2b2b33); }
  .stone-aqua-bg { background: linear-gradient(145deg, #9adfd8, #4fb3ac 55%, #2e8b86); }
  .stone-moon-bg { background: linear-gradient(145deg, #e8e6f0, #c9c4dd 50%, #a8a0c8); }
  .stone-bluelace-bg { background: linear-gradient(145deg, #c9dcf0, #8fb4d8 50%, #5f8bbd); }
  .stone-lapis-bg { background: linear-gradient(145deg, #3e5f9e, #24407a 55%, #16295c); }
  .stone-agate-bg { background: linear-gradient(145deg, #d97a63, #b8503a 55%, #8a3325); }
  .stone-garnet-bg { background: linear-gradient(145deg, #c2453a, #8e2a22 55%, #611a15); }
  .stone-rhodonite-bg { background: linear-gradient(145deg, #e8a0a0, #c96a6a 50%, #a34a52); }
  .stone-sunstone-bg { background: linear-gradient(145deg, #f5c27a, #e09b45 55%, #b8772e); }
  .stone-rubellite-bg { background: linear-gradient(145deg, #d96a8a, #b04060 55%, #7e2a44); }
  .stone-citrine-bg { background: linear-gradient(145deg, #f0d18a, #d9ad55 55%, #b08d3a); }
  .stone-tiger-bg { background: linear-gradient(145deg, #c9a05a, #a37a38 55%, #7a5a26); }
  .stone-topaz-bg { background: linear-gradient(145deg, #f5d9a0, #e0b460 55%, #c0933f); }
  .stone-smoky-bg { background: linear-gradient(145deg, #8a7a6a, #5d4f42 55%, #3d3229); }
  .stone-rutilated-bg { background: linear-gradient(145deg, #d8cfa8, #b0a478 55%, #8a7d55); }
  .stone-green-bg { background: linear-gradient(145deg, #8fc48a, #5d9a58 55%, #3f743b); }
  .stone-jade-bg { background: linear-gradient(145deg, #7ec9a0, #4a9a74 55%, #2f6f5e); }
  .stone-rose-bg { background: linear-gradient(145deg, #f0b8c0, #d48a98 55%, #b06072); }
  .stone-hematite-bg { background: linear-gradient(145deg, #7a7a86, #4a4a55 55%, #2e2e38); }
  .stone-amber-bg { background: linear-gradient(145deg, #e8b06a, #cc8a3e 55%, #a06a28); }
  .stone-quartz-bg { background: linear-gradient(145deg, #e8e4dc, #c4beb2 50%, #9a9387); }
  .stone-amazonite-bg { background: linear-gradient(145deg, #8fd8c8, #4fb8a8 55%, #2e8b80); }
  .stone-sodalite-bg { background: linear-gradient(145deg, #4a6db8, #2e4a8a 55%, #1c3066); }
  .stone-chalcedony-bg { background: linear-gradient(145deg, #b8c8d8, #8aa8c0 55%, #6088a8); }
  .stone-kyanite-bg { background: linear-gradient(145deg, #5a88d0, #3a66a8 55%, #24488a); }
  .stone-larimar-bg { background: linear-gradient(145deg, #a8e0e8, #6ab8d0 55%, #3a90b0); }
  .stone-carnelian-bg { background: linear-gradient(145deg, #e07848, #c0552e 55%, #a03c1e); }
  .stone-fireopal-bg { background: linear-gradient(145deg, #f0a060, #e07a3a 55%, #c05a24); }
  .stone-redjasper-bg { background: linear-gradient(145deg, #c05a48, #a03c2e 55%, #80281e); }
  .stone-ruby-bg { background: linear-gradient(145deg, #e04060, #c02848 55%, #a01c38); }
  .stone-spinel-bg { background: linear-gradient(145deg, #f07878, #d04a50 55%, #b02e3a); }
  .stone-pyrite-bg { background: linear-gradient(145deg, #d8b858, #b89838 55%, #988028); }
  .stone-brownj-bg { background: linear-gradient(145deg, #b08860, #906840 55%, #705028); }
  .stone-goldstone-bg { background: linear-gradient(145deg, #d0a060, #b07838 55%, #906028); }
  .stone-petwood-bg { background: linear-gradient(145deg, #a08868, #806848 55%, #604830); }
  .stone-malachite-bg { background: linear-gradient(145deg, #48c088, #30a068 55%, #208050); }
  .stone-aventurine-bg { background: linear-gradient(145deg, #78c878, #58a858 55%, #3e883e); }
  .stone-peridot-bg { background: linear-gradient(145deg, #b0e058, #90c038 55%, #70a028); }
  .stone-emerald-bg { background: linear-gradient(145deg, #38c078, #20a058 55%, #188040); }
  .stone-mossagate-bg { background: linear-gradient(145deg, #88b880, #609860 55%, #487848); }
  .stone-chrysoprase-bg { background: linear-gradient(145deg, #68d088, #48b068 55%, #309050); }
  .stone-serpentine-bg { background: linear-gradient(145deg, #88c0a0, #60a080 55%, #488068); }
  .stone-selenite-bg { background: linear-gradient(145deg, #f0ece0, #d8d0c0 55%, #b8b0a0); }
  .stone-fluorite-bg { background: linear-gradient(145deg, #88a8e0, #6088c0 55%, #4868a0); }
  .stone-whitetopaz-bg { background: linear-gradient(145deg, #f0f0e8, #d8d8d0 55%, #b8b8b0); }
  .stone-snowq-bg { background: linear-gradient(145deg, #f0f0f0, #d8d8dc 55%, #b8b8c0); }
  .stone-whitemoon-bg { background: linear-gradient(145deg, #e8e8f0, #c8c8dc 55%, #a8a8c0); }
  .stone-titanium-bg { background: linear-gradient(145deg, #788890, #586870 55%, #3e4a52); }
  .stone-silver-bg { background: linear-gradient(145deg, #d0d4d8, #a8b0b8 55%, #889098); }
  .stone-onyx-bg { background: linear-gradient(145deg, #2e2e36, #181820 55%, #0e0e14); }

  /* ═══════ Compatibility / Divination extras ═══════ */
  .radar-wrap { display: flex; justify-content: center; padding: 0.5rem 0 1rem; }
  .compat-score {
    text-align: center; margin-bottom: 1.2rem;
  }
  .compat-score .big {
    font-family: var(--serif); font-size: 3.2rem; color: var(--gold); line-height: 1;
  }
  .compat-score .lbl { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--rice-faint); text-transform: uppercase; margin-top: 0.4rem; }
  .hexagram { display: flex; flex-direction: column; gap: 3px; align-items: center; margin: 1rem 0; }
  .hex-line { display: flex; gap: 8px; }
  .hex-line .seg { height: 6px; border-radius: 1px; }
  .hex-line .seg.solid { width: 44px; background: var(--gold); }
  .hex-line .seg.break { width: 18px; background: var(--gold); }
  .hexagram-row { display: flex; gap: 2.5rem; justify-content: center; align-items: center; }
  .hex-name { font-family: var(--serif-cn); font-size: 1.6rem; color: var(--gold); }
  .hex-desc { font-size: 0.85rem; color: var(--rice-dim); }
  .year-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; margin-top: 1rem; }
  .year-cell {
    background: var(--ink-soft); border: 1px solid var(--hairline); padding: 0.7rem 0.3rem;
    text-align: center; border-radius: 4px;
  }
  .year-cell .m { font-size: 0.72rem; color: var(--rice-faint); }
  .year-cell .t { font-size: 0.85rem; margin-top: 0.2rem; }
  .year-cell.good { border-color: rgba(47,111,94,0.6); background: rgba(47,111,94,0.12); }
  .year-cell.warn { border-color: rgba(166,64,50,0.5); background: rgba(166,64,50,0.10); }
  .year-cell.neutral { border-color: rgba(198,161,91,0.3); }

  /* ═══════ Toast ═══════ */
  .toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--gold); color: var(--ink); padding: 0.9rem 1.8rem;
    font-size: 0.9rem; border-radius: 2px; opacity: 0; pointer-events: none;
    transition: all 0.3s; z-index: 200; box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* ═══════ Motion & FX ═══════ */
  #tsparticles-container { position: fixed; inset: 0; z-index: 10; pointer-events: none; }

  /* ═══════ Ink-wash mountain backdrop ═══════ */
  .ink-mountain {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(ellipse 70% 40% at 15% 80%, rgba(198,161,91,0.07), transparent 75%),
      radial-gradient(ellipse 65% 45% at 88% 88%, rgba(47,111,94,0.06), transparent 75%),
      radial-gradient(circle 140px at 78% 18%, rgba(232,201,138,0.10), transparent 70%);
  }
  .ink-mountain::before {
    content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='500' viewBox='0 0 1400 500'%3E%3Cpath d='M0 320 L120 260 L250 300 L380 240 L510 295 L640 240 L780 305 L900 250 L1030 305 L1160 260 L1280 300 L1400 290 L1400 500 L0 500 Z' fill='%230e0d0b'/%3E%3Cpath d='M0 380 L170 340 L340 375 L510 330 L680 370 L860 335 L1030 375 L1200 340 L1370 370 L1400 360 L1400 500 L0 500 Z' fill='%230a0908'/%3E%3Cpath d='M0 440 L220 405 L440 435 L660 405 L880 435 L1100 400 L1320 430 L1400 425 L1400 500 L0 500 Z' fill='%23171512'/%3E%3C/svg%3E");
    background-size: 1400px 500px;
    background-position: bottom center;
    background-repeat: repeat-x;
    opacity: 0.55;
  }

  /* ═══════ Chinese ornaments — hanging charms ═══════ */
  .cn-ornament {
    position: fixed; z-index: 4; pointer-events: none;
    width: 80px; height: 120px;
    transform-origin: top center;
    animation: charmSway 6s ease-in-out infinite;
  }
  .cn-ornament.rn-ru { top: 4rem; right: 2.4vw; }
  .cn-ornament.rn-bl { bottom: 4rem; left: 2.4vw; animation-delay: 2.4s; }
  @keyframes charmSway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(4deg); }
  }
  .cn-ornament .orn-cord {
    display: block; height: 40px; margin: 0 auto; width: 1.5px;
    background: linear-gradient(180deg, transparent, rgba(198,161,91,0.6));
  }
  .cn-ornament .orn-body {
    display: block; width: 80px; height: 80px;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5)) drop-shadow(0 0 6px rgba(198,161,91,0.15));
  }
  @media (max-width: 768px) {
    .cn-ornament { opacity: 0.6; width: 60px; height: 90px; }
    .cn-ornament .orn-body { width: 60px; height: 60px; }
    .cn-ornament .orn-cord { height: 30px; }
  }

  /* ═══════ Chinese ornament: corner seal (角落印章) ═══════ */
  .corner-seal {
    position: fixed; z-index: 2; pointer-events: none;
    border: 1.5px solid rgba(166,64,50,0.5);
    color: rgba(166,64,50,0.75);
    font-family: var(--serif-cn); font-size: 0.9rem; letter-spacing: 0.12em;
    padding: 0.35rem 0.7rem; border-radius: 3px;
    background: rgba(166,64,50,0.06);
    box-shadow: 0 0 10px rgba(166,64,50,0.12);
  }
  .corner-seal.cs-tl { top: 5.5rem; right: 2.5vw; }

  /* ═══════ Chinese ornament: fret border (回纹) for section dividers ═══════ */
  .fret-divider {
    display: flex; align-items: center; justify-content: center; gap: 1.2rem;
    margin: 0 auto 3rem; max-width: 260px;
  }
  .fret-divider::before, .fret-divider::after {
    content: ""; height: 1px; flex: 1;
    background: linear-gradient(90deg, transparent, rgba(198,161,91,0.5));
  }
  .fret-divider::after { background: linear-gradient(90deg, rgba(198,161,91,0.5), transparent); }
  .fret-divider .fret {
    width: 60px; height: 10px; opacity: 0.7;
    background:
      linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px, var(--gold) 12px 18px, transparent 18px 24px, var(--gold) 24px 30px, transparent 30px 36px, var(--gold) 36px 42px, transparent 42px 48px, var(--gold) 48px 54px, transparent 54px 60px);
  }

  /* ═══════ Chinese ornament: seal stamp style ═══════ */
  .seal-stamp {
    display: inline-flex; align-items: center; gap: 0.5rem;
    border: 1px solid rgba(166,64,50,0.6); color: var(--cinnabar-bright);
    padding: 0.3rem 0.8rem; font-family: var(--serif-cn);
    font-size: 0.78rem; letter-spacing: 0.15em; border-radius: 2px;
    background: rgba(166,64,50,0.05);
  }

  /* ═══════ Taiji ornament (hero corner) ═══════ */
  .taiji {
    position: absolute; width: 150px; height: 150px; opacity: 0.10; pointer-events: none;
  }
  .taiji.tl { top: 4rem; left: 3vw; }
  .taiji.br { bottom: 3rem; right: 3vw; transform: rotate(90deg); }
  .taiji svg { width: 100%; height: 100%; }

  /* ═══════ Content stacking: keep views above backdrop layers ═══════ */
  .view { position: relative; z-index: 3; }

  /* click ripple */
  .ripple {
    position: fixed; border-radius: 50%; pointer-events: none; z-index: 998;
    border: 1px solid rgba(232,201,138,0.7);
    animation: rippleAnim 0.7s ease-out forwards;
  }
  @keyframes rippleAnim {
    from { width: 0; height: 0; opacity: 0.9; }
    to { width: 120px; height: 120px; opacity: 0; }
  }

  /* scroll reveal */
  .reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero::before { animation: none; }
    .hero .btn-primary { animation: none; }
    .hero .seal-ring, .hero .elements-row .elem { animation: none; }
    .cn-ornament { animation: none; }
    .view.active { animation: none; }
    #tsparticles-container { display: none; }
    * { scroll-behavior: auto !important; }
  }

  /* magnetic buttons: base transform handled by JS, keep transition smooth */
  .btn, .nav-cta, .filter-chip, .area-tab { will-change: transform; }

  /* tilt cards */
  .tilt { transform-style: preserve-3d; transition: transform 0.25s ease-out; }
  .tilt .tilt-inner { transform: translateZ(18px); }
  .product.tilt, .plan.tilt { transition: transform 0.25s ease-out, border-color 0.2s, box-shadow 0.2s; }

  /* glow pulse on hero CTA */
  @keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 18px rgba(166,64,50,0.35), inset 0 1px 0 rgba(255,255,255,0.12); }
    50% { box-shadow: 0 4px 30px rgba(166,64,50,0.65), inset 0 1px 0 rgba(255,255,255,0.15); }
  }
  .hero .btn-primary { animation: pulseGlow 3s ease-in-out infinite; }

  /* floating elements in hero */
  @keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  .hero .seal-ring { animation: floatY 5s ease-in-out infinite; }
  .hero .elements-row .elem { animation: floatY 4s ease-in-out infinite; }
  .hero .elements-row .elem:nth-child(2) { animation-delay: 0.4s; }
  .hero .elements-row .elem:nth-child(3) { animation-delay: 0.8s; }
  .hero .elements-row .elem:nth-child(4) { animation-delay: 1.2s; }
  .hero .elements-row .elem:nth-child(5) { animation-delay: 1.6s; }
