
    /* ===== Reset & Base ===== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
    body {
      font-family: Georgia, 'Times New Roman', serif;
      background-color: #1A1A2E;
      color: #FAF5E9;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      min-height: 100vh;
      overflow-x: hidden;
      /* 原 padding-top:38px 是给固定 LIVE 横幅让位；横幅已删（假数据滚动条），
         保留会让首屏顶部多出 38px 空白。 */
    }
    a { color: inherit; text-decoration: inherit; }

    /* ===== Hero Section ===== */
    .hero {
      position: relative;
      min-height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      /* 横幅已上移到首屏，hero 不再是页面第一个元素，顶部只需呼吸空间 */
      padding: 3.2rem 24px 4rem;
    }
    .hero-bg {
      position: absolute;
      inset: 0;
      overflow: hidden;
      /* 视频没加载出来时（或浏览器拦截自动播放时），这层渐变就是兜底背景 */
      background: linear-gradient(to bottom, rgba(15,52,96,0.4), transparent, #1A1A2E);
    }
    /* 首屏背景视频：六条金色爻线缓慢浮现，正好呼应下方的 "Cast Your Hexagram"。
       0.4 的不透明度是算过的 —— 再高一点就会跟 ☯ 和标题抢视线。 */
    .hero-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.4;
    }
    /* 遮罩必须单独一层：视频是不透明元素，会盖住 .hero-bg 自己的 background，
       渐变得移到 ::after 才能压在最上面。 */
    .hero-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, rgba(15,52,96,0.34), transparent 55%, #1A1A2E);
    }
    /* 手机上把三处视频全关掉（hero + 两条横幅）。
       理由不是"省事"，是三条实测都站不住：
       1) hero 容器在窄屏约 375×575，16:9 素材 cover 后左右各裁 37%，只剩一条竖带；
       2) 横幅在手机上只有 168px 高，动效基本看不出来；
       3) 两条横幅加 hero 一共 1MB，直接让手机首屏体积翻倍。
       静态背景图（.ts-band-media 的 background-image）本来就够用。
       ★ 只写 display:none 不够 ★ 带 autoplay 的 video 被隐藏也照样下载完，
       真正拦住下载的是底部 lazy 脚本里对 display 的判断。 */
    @media (max-width: 640px) {
      .hero-video, .ts-band-video { display: none; }
    }
    .hero-content {
      position: relative;
      z-index: 10;
      max-width: 48rem;
      text-align: center;
    }
    .hero-symbol { font-size: 3.75rem; margin-bottom: 1.5rem; opacity: 0.8; }
    .hero-title {
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
      line-height: 1.25;
    }
    .hero-title-gold { color: #C9A84C; }
    .hero-desc {
      font-size: 1.125rem;
      color: rgba(232,213,160,0.8);
      margin-bottom: 2.5rem;
      max-width: 36rem;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.625;
    }
    .hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
    .btn-gold {
      padding: 1rem 2rem;
      background: #C9A84C;
      color: #1A1A2E;
      font-weight: 700;
      border-radius: 0.5rem;
      font-size: 1.125rem;
      border: none;
      cursor: pointer;
      transition: background 0.15s;
    }
    .btn-gold:hover { background: #E8D5A0; }
    .btn-outline {
      padding: 1rem 2rem;
      border: 1px solid rgba(201,168,76,0.5);
      color: #C9A84C;
      font-weight: 700;
      border-radius: 0.5rem;
      font-size: 1.125rem;
      background: transparent;
      cursor: pointer;
      transition: border-color 0.15s;
    }
    .btn-outline:hover { border-color: #C9A84C; }
    .hero-disclaimer { margin-top: 1.5rem; font-size: 0.75rem; color: #8B8B9E; }

    /* ===== Features Section ===== */
    .features {
      padding: 6rem 24px;
      background: #16213E;
    }
    .features-inner { max-width: 64rem; margin: 0 auto; }
    .section-title {
      font-size: 1.875rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 1rem;
    }
    .section-subtitle {
      text-align: center;
      color: #8B8B9E;
      margin-bottom: 4rem;
      max-width: 32rem;
      margin-left: auto;
      margin-right: auto;
    }
    .features-grid {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 2rem;
    }
    @media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
    .feature-card {
      background: #1A1A2E;
      border: 1px solid rgba(201,168,76,0.15);
      border-radius: 0.75rem;
      padding: 1.5rem;
      transition: border-color 0.15s;
    }
    .feature-card:hover { border-color: rgba(201,168,76,0.4); }
    .feature-icon { font-size: 1.875rem; margin-bottom: 1rem; }
    .feature-title {
      font-size: 1.125rem;
      font-weight: 700;
      color: #C9A84C;
      margin-bottom: 0.5rem;
    }
    .feature-desc { font-size: 0.875rem; color: #8B8B9E; line-height: 1.625; }

    /* ===== Zodiac CTA ===== */
    .zodiac-cta {
      padding: 4rem 24px;
      background: linear-gradient(135deg, rgba(201,168,76,0.10) 0%, rgba(201,168,76,0.03) 100%);
      border-top: 1px solid rgba(201,168,76,0.15);
      border-bottom: 1px solid rgba(201,168,76,0.15);
    }
    .zodiac-cta-inner { max-width: 800px; margin: 0 auto; text-align: center; }
    .zodiac-cta-icon { font-size: 3rem; margin-bottom: 0.75rem; }
    .zodiac-cta .section-title { margin-bottom: 0.5rem; }
    .zodiac-cta-desc { color: #8B8B9E; max-width: 560px; margin: 0 auto 1.5rem; font-size: 1rem; }
    .zodiac-cta-btn {
      display: inline-block;
      padding: 0.85rem 2.25rem;
      background: #C9A84C;
      color: #0A0A14;
      font-weight: 700;
      border-radius: 0.5rem;
      text-decoration: none;
      transition: background 0.2s;
    }
    .zodiac-cta-btn:hover { background: #E8D5A0; text-decoration: none; }

    /* ===== How It Works ===== */
    .how-it-works { padding: 6rem 24px; }
    .how-inner { max-width: 56rem; margin: 0 auto; }
    .step-list { display: flex; flex-direction: column; gap: 3rem; }
    .step-item { display: flex; align-items: flex-start; gap: 1.5rem; }
    .step-num {
      flex-shrink: 0;
      width: 3.5rem;
      height: 3.5rem;
      border-radius: 9999px;
      background: rgba(201,168,76,0.1);
      border: 1px solid rgba(201,168,76,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #C9A84C;
      font-weight: 700;
      font-size: 1.125rem;
    }
    .step-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
    .step-desc { color: #8B8B9E; line-height: 1.625; }

    /* ===== SEO Images ===== */
    .seo-image-wrap { max-width: 600px; margin: 0 auto 2rem; border-radius: 0.75rem; overflow: hidden; }
    .seo-image-wrap img { width: 100%; height: auto; display: block; }
    /* .hero-visual / hexagram-visualization.svg 已按需求移除（那张太极八卦图卡片） */
    .how-image-wrap { max-width: 400px; margin: 2rem auto; }
    .how-image-wrap img { width: 100%; height: auto; display: block; border-radius: 0.75rem; }

    /* ===== Pricing Section ===== */
    .pricing { padding: 6rem 24px; background: #16213E; }
    .pricing-inner { max-width: 64rem; margin: 0 auto; }
    .pricing-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    @media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
    .plan-card {
      border-radius: 0.75rem;
      padding: 2rem;
      background: #1A1A2E;
      border: 1px solid rgba(201,168,76,0.15);
    }
    .plan-card.highlight {
      background: rgba(201,168,76,0.1);
      border: 2px solid #C9A84C;
    }
    .plan-badge {
      display: inline-block;
      padding: 0.25rem 0.75rem;
      background: #C9A84C;
      color: #1A1A2E;
      font-size: 0.75rem;
      font-weight: 700;
      border-radius: 9999px;
      margin-bottom: 1rem;
    }
    .plan-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
    .plan-price { font-size: 2.25rem; font-weight: 700; color: #C9A84C; }
    .plan-period { font-size: 0.875rem; color: #8B8B9E; }
    .plan-features { margin: 1.5rem 0 2rem; }
    .plan-feature {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      font-size: 0.875rem;
      color: rgba(232,213,160,0.8);
      margin-bottom: 0.75rem;
    }
    .plan-check { color: #C9A84C; margin-top: 0.125rem; }
    .plan-btn {
      width: 100%;
      padding: 0.75rem;
      border-radius: 0.5rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.15s;
      border: 1px solid rgba(201,168,76,0.5);
      color: #C9A84C;
      background: transparent;
    }
    .plan-btn:hover { border-color: #C9A84C; }
    .plan-btn.btn-gold-plan {
      background: #C9A84C;
      color: #1A1A2E;
      border: none;
    }
    .plan-btn.btn-gold-plan:hover { background: #E8D5A0; }
    .pricing-note {
      text-align: center;
      font-size: 0.75rem;
      color: #8B8B9E;
      margin-top: 2rem;
    }

    /* ===== Free Tools Section (shared with /tools page) ===== */
    .free-tools { padding: 3rem 24px; background: rgba(22,33,62,0.6); }
    .free-tools-inner { max-width: 840px; margin: 0 auto; text-align: center; }
    .free-tools h2 { font-size: 1.8rem; color: #E8D5A0; text-align: center; margin-bottom: 0.5rem; }
    .free-tools > div > p { text-align: center; color: #C9A84C; font-size: 1.02rem; margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; opacity: 0.85; }
    .tool-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
    .tool-tab { padding: 0.65rem 1.2rem; background: #1A1A2E; color: #8B8B9E; border: 1px solid rgba(201,168,76,0.2); border-radius: 0.5rem; font-size: 0.92rem; cursor:pointer; transition: all 0.2s; font-family: inherit; }
    .tool-tab:hover { color: #E8D5A0; border-color: rgba(201,168,76,0.4); }
    .tool-tab.active { background: #C9A84C; color: #1A1A2E; font-weight: 700; border-color: #C9A84C; }
    .tool-panel-wrap { display: none; }
    .tool-panel-wrap.active { display: block; animation: fadeInUp 0.4s ease; }
    @keyframes fadeInUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
    .tool-card { background: #16213E; border: 1px solid rgba(201,168,76,0.25); border-radius: 1rem; padding: 2rem; text-align: center; }
    .tool-card p { color: #8B8B9E; font-size: 0.93rem; margin-bottom: 1.25rem; }
    .tool-input-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0; }
    .tool-field { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
    .tool-field label { font-size: 0.75rem; color: #8B8B9E; text-transform: uppercase; letter-spacing: 0.5px; }
    .tool-field input, .tool-field select { padding: 0.65rem 1rem; background: #1A1A2E; color: #E8D5A0; border: 1px solid rgba(201,168,76,0.2); border-radius: 0.5rem; font-size: 0.95rem; min-width: 130px; font-family: inherit; }
    .tool-field input:focus, .tool-field select:focus { outline: none; border-color: #C9A84C; }
    .tool-go-btn { display: inline-block; padding: 0.8rem 2.2rem; background: #C9A84C; color: #1A1A2E; font-weight: 700; font-size: 1rem; border: none; border-radius: 0.5rem; cursor: pointer; transition: background 0.2s; font-family: inherit; margin-top: 0.5rem; }
    .tool-go-btn:hover { background: #E8D5A0; }
    .tool-err { color: #ff9a9a; font-size: 0.88rem; margin-top: 0.7rem; min-height: 1.1em; }
    /* Tool result area */
    .tool-result { display: none; background: #16213E; border: 1px solid rgba(201,168,76,0.3); border-radius: 1rem; padding: 1.75rem; margin-top: 1.25rem; animation: fadeInUp 0.45s ease; }
    .tool-result.show { display: block; }
    .kua-num { font-size: 3rem; color: #C9A84C; font-weight: 800; text-align: center; line-height: 1; }
    .kua-grp { text-align: center; color: #E8D5A0; font-size: 1rem; margin-top: 0.2rem; }
    .kua-steps { background: #1A1A2E; border: 1px solid rgba(201,168,76,0.15); border-radius: 0.5rem; padding: 0.85rem 1rem; margin: 1rem 0; font-size: 0.88rem; color: #8B8B9E; text-align: left; line-height: 1.6; }
    .kua-steps b { color: #E8D5A0; }
    .dir-label { font-size: 1rem; color: #E8D5A0; margin: 1.2rem 0 0.6rem; }
    .dir-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.6rem; }
    .dir-card { background: #1A1A2E; border: 1px solid rgba(201,168,76,0.15); border-radius: 0.5rem; padding: 0.7rem 0.9rem; text-align: left; }
    .dir-card.fav { border-left: 3px solid #5fbf7a; }
    .dir-card.unfav { border-left: 3px solid #d96b6b; }
    .dir-aspect { font-weight: 700; color: #E8D5A0; font-size: 0.88rem; }
    .dir-dir { font-size: 1.05rem; font-weight: 700; margin: 0.12rem 0; }
    .dir-meaning { font-size: 0.8rem; color: #8B8B9E; }
    .fav .dir-dir { color: #7fd497; } .unfav .dir-dir { color: #e89a9a; }
    /* Zodiac result */
    .zod-animals { text-align: center; font-size: 1.5rem; margin: 0.4rem 0; }
    .zod-score { font-size: 2.6rem; font-weight: 800; color: #C9A84C; text-align: center; }
    .zod-tag { text-align: center; color: #E8D5A0; font-size: 1.05rem; margin-top: 0.25rem; }
    .zod-desc { color: #d0d0e0; margin-top: 0.8rem; text-align: center; font-size: 0.93rem; }
    /* Coin result */
    .coin-lines { display:flex; flex-direction:column; gap:0.4rem; align-items:center; margin:1rem 0; font-family:'Courier New',monospace; font-size:1.4rem; letter-spacing:0.12rem; }
    .coin-line { display:flex; align-items:center; gap:0.5rem; color:#d0d0e0; }
    .coin-line.yang { color:#E8D5A0; } .coin-line.yin { color:#8B8B9E; } .coin-line.changing { color:#e89a9a; }
    .coin-line-tag { font-size:0.78rem; font-family:system-ui,sans-serif; color:#8B8B9E; min-width:50px; text-align:left; }
    .coin-hex-name { text-align:center; font-size:1.4rem; color:#C9A84C; font-weight:700; margin-top:0.4rem; }
    .coin-hex-sub { text-align:center; color:#8B8B9E; font-size:0.85rem; }
    .tools-disclaimer { background: #1A1A2E; border: 1px solid rgba(201,168,76,0.15); border-radius: 0.5rem; padding: 0.85rem 1rem; margin-top: 1.5rem; font-size: 0.82rem; color: #8B8B9E; text-align: center; }
    /* Animated "View full tools" box */
    .tools-more-box {
      position: relative;
      display: block;
      width: fit-content;
      max-width: 100%;
      box-sizing: border-box;
      margin: 0 auto;
      padding: 1.1rem 2.8rem;
      border-radius: 0.85rem;
      border: 2px solid transparent;
      background:
        linear-gradient(#16213E, #16213E) padding-box,
        linear-gradient(120deg, #C9A84C, #E8D5A0, #C9A84C, #E8D5A0) border-box;
      background-size: 100% 100%, 300% 100%;
      animation: toolsBorderFlow 3.5s linear infinite, toolsGlow 2.6s ease-in-out infinite;
      transition: transform 0.2s ease;
    }
    .tools-more-box:hover { transform: scale(1.04); }
    .tools-more-box a {
      color: #E8D5A0;
      font-size: 1.35rem;
      font-weight: 700;
      text-decoration: none;
      letter-spacing: 0.3px;
      white-space: nowrap;
    }
    @media (max-width: 480px) {
      .tools-more-box { padding: 1rem 1.2rem; }
      .tools-more-box a { font-size: 1.05rem; white-space: normal; text-align: center; }
    }
    @keyframes toolsBorderFlow {
      0% { background-position: 0 0, 0% 0; }
      100% { background-position: 0 0, 300% 0; }
    }
    @keyframes toolsGlow {
      0%, 100% { box-shadow: 0 0 12px rgba(201,168,76,0.25); }
      50% { box-shadow: 0 0 28px rgba(232,213,160,0.55); }
    }

    /* ===== Testimonials ===== */
    .testimonials { padding: 6rem 24px; }
    .testimonials-inner { max-width: 56rem; margin: 0 auto; }
    .test-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    @media (min-width: 768px) { .test-grid { grid-template-columns: repeat(3, 1fr); } }
    .test-card {
      background: #16213E;
      border: 1px solid rgba(201,168,76,0.1);
      border-radius: 0.75rem;
      padding: 1.5rem;
    }
    .test-quote { color: #C9A84C; font-size: 1.5rem; margin-bottom: 1rem; }
    .test-text { font-size: 0.875rem; color: rgba(232,213,160,0.8); line-height: 1.625; margin-bottom: 1.5rem; }
    .test-social-bar { text-align: center; margin-top: 2rem; padding: 1rem 1.5rem; background: rgba(255,215,0,0.05); border: 1px solid rgba(201,168,76,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
    .test-social-icon { font-size: 1.2rem; }
    .test-social-link { color: #C9A84C; text-decoration: none; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
    .test-social-link:hover { color: #E8C95A; text-decoration: underline; }

    /* ===== CTA Section ===== */
    .cta {
      padding: 6rem 24px;
      background: linear-gradient(to bottom, rgba(15,52,96,0.3), #1A1A2E);
    }
    .cta-inner { max-width: 42rem; margin: 0 auto; text-align: center; }
    .cta-symbol { font-size: 3rem; margin-bottom: 1.5rem; opacity: 0.7; }
    .cta-title { font-size: 1.875rem; font-weight: 700; margin-bottom: 1.5rem; }
    .cta-gold { color: #C9A84C; }
    .cta-desc { color: rgba(232,213,160,0.7); margin-bottom: 2.5rem; line-height: 1.625; }
    .cta-disclaimer { margin-top: 1.5rem; font-size: 0.75rem; color: #8B8B9E; }

    /* ===== Footer ===== */
    .footer { padding: 4rem 24px; border-top: 1px solid rgba(201,168,76,0.1); }
    .footer-inner { max-width: 64rem; margin: 0 auto; }
    .footer-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
      margin-bottom: 3rem;
      direction: ltr; /* keep column order consistent across all languages */
    }
    @media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
    [dir="rtl"] .footer-grid > div { direction: rtl; } /* but keep column text RTL for Arabic */
    .footer-brand-title { font-size: 1.125rem; font-weight: 700; color: #C9A84C; margin-bottom: 1rem; }
    .footer-brand-desc { font-size: 0.875rem; color: #8B8B9E; line-height: 1.625; }
    .footer-col-title { font-weight: 700; font-size: 0.875rem; margin-bottom: 1rem; }
    .footer-col-item { font-size: 0.875rem; color: #8B8B9E; margin-bottom: 0.5rem; }
    .footer-col-item a { color: inherit; text-decoration: none; transition: color 0.2s; }
    .footer-col-item a:hover { color: #C9A84C; }
    .footer-divider { border-top: 1px solid rgba(201,168,76,0.1); padding-top: 2rem; }
    .disclaimer-box {
      background: #16213E;
      border-radius: 0.5rem;
      padding: 1rem;
      margin-bottom: 1.5rem;
    }
    .disclaimer-text { font-size: 0.75rem; color: #8B8B9E; line-height: 1.625; }
    .disclaimer-bold { color: #E8D5A0; font-weight: 700; }
    .footer-copyright { text-align: center; font-size: 0.75rem; color: #8B8B9E; }

    /* ===== Reading Section (NEW — Interactive) ===== */
    .reading-section {
      padding: 6rem 24px;
      background: #16213E;
    }
    .reading-inner { max-width: 42rem; margin: 0 auto; text-align: center; }
    .reading-title {
      font-size: 1.875rem;
      font-weight: 700;
      margin-bottom: 1.5rem;
    }
    .reading-form { margin-bottom: 2rem; }
    .reading-input-wrap {
      position: relative;
      width: 100%;
    }
    .reading-input {
      width: 100%;
      padding: 1rem 4.4rem 1rem 1rem;
      background: #1A1A2E;
      border: 1px solid rgba(201,168,76,0.3);
      border-radius: 0.5rem;
      color: #FAF5E9;
      font-size: 1rem;
      font-family: Georgia, serif;
      outline: none;
      transition: border-color 0.15s, box-shadow 0.2s;
    }
    .reading-input:focus {
      border-color: #C9A84C;
      box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    }
    .reading-input::placeholder { color: #8B8B9E; }
    .reading-input-hint {
      position: absolute;
      top: 50%;
      right: 0.75rem;
      transform: translateY(-50%);
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.35rem 0.7rem 0.35rem 0.55rem;
      background: rgba(201,168,76,0.12);
      border: 1px solid rgba(201,168,76,0.35);
      border-radius: 0.4rem;
      color: #C9A84C;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
    }
    .reading-input-hint:hover {
      background: rgba(201,168,76,0.22);
      border-color: rgba(201,168,76,0.6);
      color: #E8D5A0;
    }
    .reading-input-hint-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.1rem;
      height: 1.1rem;
      background: rgba(201,168,76,0.25);
      border: 1px solid rgba(201,168,76,0.5);
      border-radius: 0.25rem;
      font-size: 0.75rem;
      line-height: 1;
      box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18);
    }
    .reading-input-wrap:focus-within .reading-input-hint {
      background: rgba(201,168,76,0.22);
      border-color: rgba(201,168,76,0.6);
      color: #E8D5A0;
    }
    .coin-area {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      margin: 2rem 0;
    }
    .coin {
      width: 4rem;
      height: 4rem;
      border-radius: 9999px;
      background: rgba(201,168,76,0.2);
      border: 2px solid rgba(201,168,76,0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      color: #C9A84C;
      cursor: pointer;
      transition: all 0.3s;
      animation: float 2s ease-in-out infinite;
    }
    .coin:hover { background: rgba(201,168,76,0.4); transform: scale(1.1); }
    .coin.cast { animation: castCoin 0.6s ease-out; }
    @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
    @keyframes castCoin { 0% { transform: rotateY(0); } 100% { transform: rotateY(720deg); } }
    .cast-area {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }
    .cast-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      padding: 1rem 2.5rem;
      background: #C9A84C;
      color: #1A1A2E;
      font-weight: 700;
      border-radius: 0.5rem;
      font-size: 1.125rem;
      border: none;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
      font-family: inherit;
    }
    .cast-btn:hover { background: #E8D5A0; }
    .cast-btn:active { transform: scale(0.97); }
    .cast-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .cast-btn-kbd {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 1.6rem;
      height: 1.6rem;
      padding: 0 0.35rem;
      background: rgba(26,26,46,0.18);
      border: 1px solid rgba(26,26,46,0.25);
      border-bottom-width: 2px;
      border-radius: 0.3rem;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      font-size: 0.9rem;
      line-height: 1;
      color: #1A1A2E;
    }
    .result-area {
      margin-top: 2rem;
      background: #1A1A2E;
      border: 1px solid rgba(201,168,76,0.15);
      border-radius: 0.75rem;
      padding: 2rem;
      display: none;
    }
    .result-area.show { display: block; }
    .result-hexagram { font-size: 2rem; margin-bottom: 1rem; }
    .result-name { font-size: 1.5rem; font-weight: 700; color: #C9A84C; margin-bottom: 0.5rem; }
    .result-meaning { color: rgba(232,213,160,0.8); line-height: 1.625; margin-bottom: 1.5rem; }
    .result-question { font-size: 0.875rem; color: #8B8B9E; margin-bottom: 1rem; }
    .result-disclaimer {
      font-size: 0.75rem;
      color: #8B8B9E;
      border-top: 1px solid rgba(201,168,76,0.1);
      padding-top: 1rem;
      margin-top: 1rem;
    }
    .reading-count {
      font-size: 0.875rem;
      color: #8B8B9E;
      margin-top: 1rem;
    }
    /* === Get More Free Readings Button (referral entry point near reading area) === */
    .get-more-readings-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      margin: 0.5rem auto 1.5rem;
      padding: 0.75rem 1.5rem;
      background: linear-gradient(135deg, #C9A84C 0%, #E8C97A 50%, #C9A84C 100%);
      background-size: 200% 100%;
      border: 2px solid rgba(201,168,76,0.4);
      border-radius: 999px;
      color: #0A1628;
      font-family: inherit;
      font-size: 0.95rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(201,168,76,0.35), 0 0 0 0 rgba(201,168,76,0.4);
      transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.6s ease;
      animation: getMoreGlow 2.4s ease-in-out infinite, getMoreShine 3s linear infinite;
    }
    .get-more-readings-btn:hover {
      transform: translateY(-2px) scale(1.04);
      background-position: 100% 0;
      box-shadow: 0 8px 24px rgba(201,168,76,0.5), 0 0 0 6px rgba(201,168,76,0.12);
    }
    .get-more-readings-btn:active { transform: translateY(0) scale(0.98); }
    .get-more-readings-icon { font-size: 1.2rem; line-height: 1; }
    .get-more-readings-text { white-space: nowrap; }
    .get-more-readings-badge {
      display: inline-block;
      padding: 0.15rem 0.5rem;
      background: linear-gradient(135deg, #E63946, #B22330);
      color: #fff;
      font-size: 0.65rem;
      font-weight: 800;
      letter-spacing: 0.05em;
      border-radius: 999px;
      box-shadow: 0 2px 6px rgba(230,57,70,0.45);
      animation: getMoreBadgeWiggle 1.5s ease-in-out infinite;
    }
    @keyframes getMoreGlow {
      0%, 100% { box-shadow: 0 4px 16px rgba(201,168,76,0.35), 0 0 0 0 rgba(201,168,76,0.4); }
      50% { box-shadow: 0 6px 20px rgba(201,168,76,0.55), 0 0 0 8px rgba(201,168,76,0.12); }
    }
    @keyframes getMoreShine {
      0% { background-position: 0% 0; }
      100% { background-position: 200% 0; }
    }
    @keyframes getMoreBadgeWiggle {
      0%, 100% { transform: rotate(0deg); }
      25% { transform: rotate(-6deg); }
      75% { transform: rotate(6deg); }
    }
    @media (max-width: 600px) {
      .get-more-readings-btn { font-size: 0.85rem; padding: 0.6rem 1.1rem; gap: 0.4rem; }
      .get-more-readings-text { white-space: normal; line-height: 1.2; }
      .get-more-readings-badge { font-size: 0.6rem; }
      .reading-input { padding-right: 3.1rem; font-size: 0.95rem; }
      .reading-input-hint { font-size: 0.65rem; padding: 0.3rem 0.55rem 0.3rem 0.45rem; gap: 0.3rem; }
      .reading-input-hint span:last-child { display: none; }
    }

    .reading-count-zero {
      color: #E85D5D;
      font-weight: 700;
    }

    /* ===== Paywall Modal ===== */
    .paywall-overlay {
      position: fixed;
      inset: 0;
      background: rgba(10, 10, 20, 0.85);
      backdrop-filter: blur(8px);
      z-index: 10001;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s ease;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    .paywall-overlay.show {
      opacity: 1;
      pointer-events: auto;
    }
    .paywall-modal {
      max-width: 520px;
      width: 100%;
      max-height: 85vh;
      background: #16213E;
      border: 2px solid #C9A84C;
      border-radius: 1rem;
      text-align: center;
      position: relative;
      transform: translateY(30px) scale(0.95);
      transition: transform 0.4s ease;
      margin: auto;
      display: flex;
      flex-direction: column;
      padding: 0;
      overflow: hidden;
    }
    .paywall-overlay.show .paywall-modal {
      transform: translateY(0) scale(1);
    }
    .paywall-scrollable {
      flex: 1 1 auto;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 3.5rem 2rem 1.5rem;
      min-height: 0;
    }
    .paywall-footer {
      flex-shrink: 0;
      padding: 0 2rem 2.5rem;
      background: #16213E;
      border-top: 1px solid rgba(201,168,76,0.1);
    }
    .paywall-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 9999px;
      background: #16213E;
      border: 2px solid #C9A84C;
      color: #C9A84C;
      font-size: 1.2rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 100;
      transition: all 0.2s;
      line-height: 1;
      padding-bottom: 0.1rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
    .paywall-close:hover { background: #C9A84C; color: #16213E; border-color: #C9A84C; }
    .paywall-icon { font-size: 3rem; margin-bottom: 1rem; }
    .paywall-title {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      line-height: 1.3;
    }
    .paywall-title-gold { color: #C9A84C; }
    .paywall-desc {
      font-size: 0.9rem;
      color: rgba(232,213,160,0.7);
      margin-bottom: 2rem;
      line-height: 1.6;
    }
    .paywall-plans {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-bottom: 2rem;
    }
    @media (min-width: 520px) { .paywall-plans { flex-direction: row; } }
    .paywall-plan {
      background: #1A1A2E;
      border: 1px solid rgba(201,168,76,0.2);
      border-radius: 0.75rem;
      padding: 1.5rem 1rem;
      flex: 1;
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
    }
    .paywall-plan:hover { border-color: rgba(201,168,76,0.5); transform: translateY(-2px); }
    .paywall-plan.selected { border-color: #C9A84C; background: rgba(201,168,76,0.08); }
    .paywall-plan-badge {
      display: inline-block;
      padding: 0.15rem 0.5rem;
      background: #C9A84C;
      color: #1A1A2E;
      font-size: 0.65rem;
      font-weight: 700;
      border-radius: 9999px;
      position: absolute;
      top: -0.5rem;
      right: 0.75rem;
    }
    .paywall-plan-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; }
    .paywall-plan-price { font-size: 1.75rem; font-weight: 700; color: #C9A84C; }
    .paywall-plan-period { font-size: 0.75rem; color: #8B8B9E; }
    .paywall-plan-features { margin-top: 0.75rem; }
    .paywall-plan-feat { font-size: 0.75rem; color: rgba(232,213,160,0.7); margin-bottom: 0.3rem; }
    .paywall-plan-feat-check { color: #C9A84C; }
    .paywall-subscribe-btn {
      width: 100%;
      padding: 1rem;
      background: #C9A84C;
      color: #1A1A2E;
      font-weight: 700;
      font-size: 1.1rem;
      border: none;
      border-radius: 0.5rem;
      cursor: pointer;
      transition: background 0.15s;
      margin-bottom: 1.5rem;
    }
    .paywall-subscribe-btn:hover { background: #E8D5A0; }
    .paywall-subscribe-btn.selected-plan { background: #C9A84C; }
    .paywall-annual-note {
      font-size: 0.75rem;
      color: #8B8B9E;
      margin-bottom: 0.5rem;
    }
    .paywall-annual-link {
      color: #C9A84C;
      cursor: pointer;
      text-decoration: underline;
      font-weight: 700;
    }
    .paywall-annual-link:hover { color: #E8D5A0; }
    .paywall-disclaimer {
      font-size: 0.7rem;
      color: #8B8B9E;
      margin: 0;
      padding-top: 0.75rem;
    }
    .paywall-guarantee {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
      font-size: 0.8rem;
      color: rgba(232,213,160,0.6);
    }
    .paywall-guarantee-icon { color: #C9A84C; }

    /* Mobile paywall fixes */
    @media (max-width: 520px) {
      .paywall-overlay {
        padding: 0.75rem;
        align-items: flex-start;
      }
      .paywall-modal {
        max-height: 92vh;
        border-radius: 0.75rem;
      }
      .paywall-scrollable { padding: 2.5rem 1rem 1rem; }
      .paywall-footer { padding: 0 1rem 1.5rem; }
      .paywall-title { font-size: 1.25rem; }
      .paywall-desc { font-size: 0.85rem; margin-bottom: 1.25rem; }
      .paywall-plans { margin-bottom: 1.25rem; }
      .paywall-plan { padding: 1rem 0.75rem; }
      .paywall-plan-name { font-size: 0.85rem; }
      .paywall-plan-price { font-size: 1.5rem; }
      .paywall-plan-feat { font-size: 0.7rem; }
      .paywall-subscribe-btn {
        padding: 0.875rem;
        font-size: 1rem;
        margin-bottom: 1rem;
      }
      .paywall-guarantee { margin-bottom: 1rem; font-size: 0.75rem; }
      .paywall-disclaimer { font-size: 0.65rem; padding-top: 0.75rem; }
    }

    /* ===== Coin Animation Upgrade ===== */
    .coin.spinning { animation: spinCoin 0.6s ease-in-out 3; }
    @keyframes spinCoin {
      0% { transform: rotateY(0deg) scale(1); }
      50% { transform: rotateY(180deg) scale(1.2); }
      100% { transform: rotateY(360deg) scale(1); }
    }
    .coin.depleted {
      opacity: 0.3;
      animation: none;
      cursor: default;
    }
    .coin.depleted:hover { background: rgba(201,168,76,0.2); transform: none; }

    /* ===== Chat Panel (Coze Agent) ===== */
    .chat-panel {
      position: fixed;
      bottom: 1.5rem;
      right: 4rem;
      z-index: 900;
    }
    .chat-toggle {
      width: 4rem;
      height: 4rem;
      border-radius: 9999px;
      background: #C9A84C;
      color: #1A1A2E;
      font-size: 1.5rem;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 20px rgba(201,168,76,0.4);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .chat-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(201,168,76,0.5); }
    .chat-toggle.hidden { display: none; }
    .chat-window {
      width: 400px;
      max-width: calc(100vw - 2rem);
      height: 550px;
      max-height: calc(100vh - 3rem);
      background: #16213E;
      border: 2px solid #C9A84C;
      border-radius: 1rem;
      display: none;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    }
    .chat-window.open {
      display: flex;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 760px;
      max-width: 90vw;
      height: 680px;
      max-height: 85vh;
      z-index: 1000;
      border-radius: 1rem;
    }
    .chat-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(10, 10, 20, 0.65);
      backdrop-filter: blur(2px);
      z-index: 898; /* below .chat-panel (900) so the window stays interactive */
    }
    .chat-overlay.open { display: block; }
    .chat-header {
      background: #1A1A2E;
      padding: 1rem 1.25rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid rgba(201,168,76,0.2);
    }
    .chat-header-info { display: flex; align-items: center; gap: 0.75rem; }
    .chat-avatar {
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 9999px;
      background: rgba(201,168,76,0.15);
      border: 1px solid rgba(201,168,76,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
    }
    .chat-header-name { font-weight: 700; font-size: 0.95rem; }
    .chat-header-status { font-size: 0.7rem; color: #6BCB77; }
    .chat-close {
      width: 2rem;
      height: 2rem;
      border-radius: 9999px;
      background: rgba(201,168,76,0.1);
      border: 1px solid rgba(201,168,76,0.2);
      color: #8B8B9E;
      font-size: 0.85rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .chat-close:hover { background: rgba(201,168,76,0.3); color: #C9A84C; }
    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .chat-msg {
      max-width: 85%;
      padding: 0.75rem 1rem;
      border-radius: 0.75rem;
      font-size: 0.85rem;
      line-height: 1.5;
    }
    .chat-msg.bot {
      background: rgba(201,168,76,0.1);
      border: 1px solid rgba(201,168,76,0.15);
      color: rgba(232,213,160,0.9);
      align-self: flex-start;
    }
    .chat-msg.user {
      background: #C9A84C;
      color: #1A1A2E;
      align-self: flex-end;
      font-weight: 500;
    }
    .chat-msg.bot.typing {
      color: #8B8B9E;
    }
    .chat-msg .disclaimer-inline {
      display: block;
      font-size: 0.65rem;
      color: #8B8B9E;
      border-top: 1px solid rgba(201,168,76,0.1);
      padding-top: 0.5rem;
      margin-top: 0.5rem;
    }
    .chat-input-area {
      padding: 0.75rem;
      border-top: 1px solid rgba(201,168,76,0.2);
      display: flex;
      gap: 0.5rem;
    }
    .chat-input {
      flex: 1;
      padding: 0.6rem 0.75rem;
      background: #1A1A2E;
      border: 1px solid rgba(201,168,76,0.3);
      border-radius: 0.5rem;
      color: #FAF5E9;
      font-size: 0.85rem;
      font-family: Georgia, serif;
      outline: none;
    }
    .chat-input:focus { border-color: #C9A84C; }
    .chat-input::placeholder { color: #8B8B9E; }
    .chat-send {
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 0.5rem;
      background: #C9A84C;
      color: #1A1A2E;
      font-size: 1rem;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .chat-send:hover { background: #E8D5A0; }
    .chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

    @media (max-width: 640px) {
      .chat-panel {
        right: 1rem;
        bottom: 1rem;
      }
      .chat-hint {
        right: 1rem;
        bottom: 5.5rem;
        max-width: calc(100vw - 2rem);
      }
      .chat-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        border: 2px solid #C9A84C;
        border-left: none;
        border-right: none;
        z-index: 901;
      }
      .chat-overlay.open { display: none; }
    }

    /* ===== Auto-Open Chat Hint ===== */
    .chat-hint {
      position: fixed;
      bottom: 6rem;
      right: 1.5rem;
      z-index: 899;
      background: #1A1A2E;
      border: 1px solid rgba(201,168,76,0.3);
      border-radius: 0.75rem;
      padding: 0.75rem 1rem;
      font-size: 0.8rem;
      color: rgba(232,213,160,0.8);
      max-width: 200px;
      animation: hintPulse 2s ease-in-out infinite;
      display: none;
    }
    .chat-hint.show { display: block; }
    .chat-hint-gold { color: #C9A84C; font-weight: 700; }
    @keyframes hintPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }

    /* ===== Cookie Consent Banner ===== */
    .cookie-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #16213E;
      border-top: 2px solid rgba(201,168,76,0.3);
      padding: 1rem 1.5rem;
      z-index: 1100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      flex-wrap: wrap;
      transform: translateY(100%);
      transition: transform 0.4s ease;
    }
    .cookie-banner.show { transform: translateY(0); }
    .cookie-banner-text {
      font-size: 0.8rem;
      color: rgba(232,213,160,0.7);
      line-height: 1.5;
      flex: 1;
      min-width: 200px;
    }
    .cookie-banner-text a { color: #C9A84C; text-decoration: underline; }
    .cookie-banner-actions {
      display: flex;
      gap: 0.5rem;
      flex-shrink: 0;
    }
    .cookie-btn {
      padding: 0.5rem 1rem;
      border-radius: 0.5rem;
      font-size: 0.8rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.15s;
    }
    .cookie-btn-accept {
      background: #C9A84C;
      color: #1A1A2E;
      border: none;
    }
    .cookie-btn-accept:hover { background: #E8D5A0; }
    .cookie-btn-decline {
      background: transparent;
      color: rgba(232,213,160,0.6);
      border: 1px solid rgba(201,168,76,0.3);
    }
    .cookie-btn-decline:hover { border-color: rgba(201,168,76,0.6); color: #C9A84C; }

    /* ===== Referral Floating Widget ===== */
    .referral-float-btn {
      position: fixed;
      top: 50%;
      right: 1.5rem;
      transform: translateY(-50%);
      z-index: 950;
      width: 5.5rem;
      height: 5.5rem;
      border-radius: 9999px;
      background: radial-gradient(circle at 30% 30%, #FFD97A, #C9A84C 60%, #8B6F2A 100%);
      color: #1A1A2E;
      border: 3px solid #E8D5A0;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.1rem;
      box-shadow:
        0 0 0 0 rgba(201,168,76,0.7),
        0 0 0 0 rgba(255,217,122,0.5),
        0 8px 30px rgba(201,168,76,0.6),
        0 4px 12px rgba(0,0,0,0.3);
      animation: referralBounce 2.5s ease-in-out infinite, referralRipple 2s ease-out infinite;
      transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
      overflow: visible;
    }
    .referral-float-btn:hover {
      transform: translateY(-50%) scale(1.12) rotate(8deg);
      box-shadow:
        0 0 0 6px rgba(201,168,76,0.2),
        0 0 0 12px rgba(201,168,76,0.1),
        0 12px 40px rgba(201,168,76,0.8),
        0 6px 16px rgba(0,0,0,0.4);
    }
    .referral-float-btn.hidden { display: none; }
    .referral-float-btn-icon { font-size: 1.8rem; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }
    .referral-float-btn-text {
      font-size: 0.7rem;
      font-weight: 900;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #1A1A2E;
      text-shadow: 0 1px 0 rgba(255,255,255,0.3);
      margin-top: 0.1rem;
    }
    .referral-float-btn-badge {
      position: absolute;
      top: -6px;
      right: -6px;
      background: linear-gradient(135deg, #FF4757, #C92A2A);
      color: #fff;
      font-size: 0.65rem;
      font-weight: 900;
      padding: 0.25rem 0.45rem;
      border-radius: 9999px;
      border: 2px solid #1A1A2E;
      box-shadow: 0 2px 8px rgba(201,42,42,0.6);
      animation: badgeShake 1.5s ease-in-out infinite;
      white-space: nowrap;
    }
    .referral-float-btn-glow {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: 100%;
      border-radius: 9999px;
      background: radial-gradient(circle, rgba(255,217,122,0.5) 0%, transparent 70%);
      transform: translate(-50%, -50%);
      pointer-events: none;
      animation: glowPulse 2s ease-in-out infinite;
    }

    /* Bouncy scale + rotation */
    @keyframes referralBounce {
      0%, 100% { transform: translateY(-50%) scale(1) rotate(0deg); }
      25% { transform: translateY(-52%) scale(1.05) rotate(-2deg); }
      50% { transform: translateY(-50%) scale(1.1) rotate(0deg); }
      75% { transform: translateY(-48%) scale(1.05) rotate(2deg); }
    }

    /* Ripple ring */
    @keyframes referralRipple {
      0% {
        box-shadow:
          0 0 0 0 rgba(201,168,76,0.7),
          0 0 0 0 rgba(255,217,122,0.5),
          0 8px 30px rgba(201,168,76,0.6),
          0 4px 12px rgba(0,0,0,0.3);
      }
      50% {
        box-shadow:
          0 0 0 14px rgba(201,168,76,0),
          0 0 0 20px rgba(255,217,122,0),
          0 8px 30px rgba(201,168,76,0.6),
          0 4px 12px rgba(0,0,0,0.3);
      }
      100% {
        box-shadow:
          0 0 0 0 rgba(201,168,76,0),
          0 0 0 0 rgba(255,217,122,0),
          0 8px 30px rgba(201,168,76,0.6),
          0 4px 12px rgba(0,0,0,0.3);
      }
    }

    /* Inner glow pulse */
    @keyframes glowPulse {
      0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
      50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
    }

    /* Badge shake */
    @keyframes badgeShake {
      0%, 100% { transform: rotate(0deg) scale(1); }
      25% { transform: rotate(-10deg) scale(1.1); }
      75% { transform: rotate(10deg) scale(1.1); }
    }

    @media (max-width: 600px) {
      .referral-float-btn {
        top: auto;
        bottom: 5rem;
        right: 1rem;
        width: 4.5rem;
        height: 4.5rem;
      }
      .referral-float-btn-icon { font-size: 1.4rem; }
      .referral-float-btn-text { font-size: 0.55rem; }
    }

    .referral-panel {
      position: fixed;
      top: 0;
      right: -440px;
      width: 420px;
      max-width: calc(100vw - 2rem);
      height: 100vh;
      max-height: 100vh;
      background: #16213E;
      border-left: 2px solid #C9A84C;
      z-index: 1050;
      display: flex;
      flex-direction: column;
      transition: right 0.4s cubic-bezier(0.22,1,0.36,1);
      overflow-y: auto;
      overflow-x: hidden;
      padding-top: 70px;
    }
    .referral-panel.open { right: 0; }
    @media (max-width: 480px) {
      .referral-panel { width: 100vw; max-width: 100vw; right: -100vw; }
      .referral-panel.open { right: 0; }
    }

    .referral-header {
      padding: 1.25rem 1.5rem;
      background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
      border-bottom: 1px solid rgba(201,168,76,0.2);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
    }
    .referral-header-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: #C9A84C;
    }
    .referral-header-subtitle { font-size: 0.7rem; color: #8B8B9E; margin-top: 0.15rem; }
    .referral-close {
      width: 2rem;
      height: 2rem;
      border-radius: 9999px;
      background: rgba(201,168,76,0.1);
      border: 1px solid rgba(201,168,76,0.3);
      color: #8B8B9E;
      font-size: 0.85rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .referral-close:hover { background: rgba(201,168,76,0.3); color: #C9A84C; }

    .referral-body {
      flex: 1;
      overflow-y: auto;
      padding: 1.5rem;
    }

    /* Hero Reward */
    .referral-hero {
      background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.04));
      border: 1px solid rgba(201,168,76,0.25);
      border-radius: 0.75rem;
      padding: 1.25rem;
      text-align: center;
      margin-bottom: 1.25rem;
    }
    .referral-hero-icon { font-size: 2rem; margin-bottom: 0.5rem; }
    .referral-hero-title {
      font-size: 1rem;
      font-weight: 700;
      color: #E8D5A0;
      margin-bottom: 0.35rem;
    }
    .referral-hero-desc { font-size: 0.75rem; color: rgba(232,213,160,0.7); line-height: 1.5; }

    /* Progress */
    .referral-progress-title {
      font-size: 0.7rem;
      color: #8B8B9E;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.5rem;
    }
    .referral-progress-bar-track {
      width: 100%;
      height: 8px;
      background: rgba(201,168,76,0.1);
      border-radius: 9999px;
      overflow: hidden;
      margin-bottom: 0.5rem;
    }
    .referral-progress-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #C9A84C, #E8D5A0);
      border-radius: 9999px;
      transition: width 0.6s ease;
      width: 0%;
    }
    .referral-progress-labels {
      display: flex;
      justify-content: space-between;
      font-size: 0.65rem;
      color: #8B8B9E;
      margin-bottom: 1.25rem;
    }
    .referral-progress-label-active { color: #C9A84C; font-weight: 700; }

    /* Reward Tiers */
    .referral-tiers { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
    .referral-tier {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      background: #1A1A2E;
      border: 1px solid rgba(201,168,76,0.12);
      border-radius: 0.5rem;
      padding: 0.75rem 1rem;
      transition: border-color 0.2s;
    }
    .referral-tier.achieved { border-color: rgba(107,203,119,0.5); background: rgba(107,203,119,0.05); }
    .referral-tier-current { border-color: rgba(201,168,76,0.5); }
    .referral-tier-icon { font-size: 1.25rem; flex-shrink: 0; width: 2rem; text-align: center; }
    .referral-tier-info { flex: 1; }
    .referral-tier-amount { font-size: 0.8rem; font-weight: 700; color: #E8D5A0; }
    .referral-tier-reward { font-size: 0.65rem; color: #8B8B9E; }
    .referral-tier-badge {
      padding: 0.15rem 0.5rem;
      border-radius: 9999px;
      font-size: 0.6rem;
      font-weight: 700;
      flex-shrink: 0;
    }
    .referral-tier-badge-done { background: rgba(107,203,119,0.2); color: #6BCB77; }
    .referral-tier-badge-current { background: rgba(201,168,76,0.2); color: #C9A84C; }
    .referral-tier-badge-locked { background: rgba(139,139,158,0.1); color: #8B8B9E; }

    /* Referral Link */
    .referral-link-section { margin-bottom: 1.25rem; }
    .referral-link-label {
      font-size: 0.7rem;
      color: #8B8B9E;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.5rem;
    }
    .referral-link-box {
      display: flex;
      gap: 0.5rem;
      align-items: center;
    }
    .referral-link-input {
      flex: 1;
      padding: 0.5rem 0.75rem;
      background: #1A1A2E;
      border: 1px solid rgba(201,168,76,0.25);
      border-radius: 0.5rem;
      color: rgba(232,213,160,0.8);
      font-size: 0.75rem;
      font-family: Georgia, serif;
      outline: none;
      min-width: 0;
    }
    .referral-copy-btn {
      padding: 0.5rem 0.75rem;
      background: rgba(201,168,76,0.15);
      border: 1px solid rgba(201,168,76,0.3);
      color: #C9A84C;
      font-size: 0.75rem;
      font-weight: 700;
      border-radius: 0.5rem;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.15s;
      flex-shrink: 0;
    }
    .referral-copy-btn:hover { background: rgba(201,168,76,0.3); }
    .referral-copy-btn.copied { background: rgba(107,203,119,0.2); color: #6BCB77; border-color: rgba(107,203,119,0.4); }

    /* Share Buttons */
    .referral-share-title {
      font-size: 0.7rem;
      color: #8B8B9E;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.65rem;
    }
    .referral-share-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0.5rem;
      margin-bottom: 1rem;
    }
    @media (min-width: 420px) {
      .referral-share-grid { grid-template-columns: repeat(8, 1fr); }
    }
    .referral-share-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.25rem;
      padding: 0.5rem 0.25rem;
      background: #1A1A2E;
      border: 1px solid rgba(201,168,76,0.12);
      border-radius: 0.5rem;
      cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
      text-decoration: none;
    }
    .referral-share-btn:hover { border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.08); }
    .referral-share-btn-icon {
      width: 1.5rem;
      height: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .referral-share-btn-icon svg {
      width: 100%;
      height: 100%;
      fill: currentColor;
      transition: transform 0.2s;
    }
    .referral-share-btn:hover .referral-share-btn-icon svg { transform: scale(1.15); }
    .referral-share-btn-label { font-size: 0.55rem; color: #8B8B9E; }

    /* Stats */
    .referral-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.5rem;
      margin-bottom: 1rem;
    }
    .referral-stat {
      text-align: center;
      background: #1A1A2E;
      border: 1px solid rgba(201,168,76,0.1);
      border-radius: 0.5rem;
      padding: 0.65rem 0.25rem;
    }
    .referral-stat-num { font-size: 1.25rem; font-weight: 700; color: #C9A84C; }
    .referral-stat-label { font-size: 0.6rem; color: #8B8B9E; margin-top: 0.15rem; }

    .referral-footer {
      font-size: 0.6rem;
      color: #8B8B9E;
      text-align: center;
      line-height: 1.5;
      border-top: 1px solid rgba(201,168,76,0.08);
      padding-top: 0.75rem;
    }
    .referral-footer a { color: #C9A84C; }

    /* ===== Reward Popup (Earn Free Readings) ===== */
    .reward-popup-backdrop {
      position: fixed; inset: 0; background: rgba(10,14,26,0.85);
      z-index: 10000; display: flex; align-items: center; justify-content: center;
      padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s;
    }
    .reward-popup-backdrop.show { opacity: 1; pointer-events: auto; }
    .reward-popup {
      background: linear-gradient(180deg, #1A1A2E 0%, #0F1020 100%);
      border: 2px solid #C9A84C; border-radius: 18px; padding: 2rem 1.5rem;
      max-width: 400px; width: 100%; text-align: center; position: relative;
      box-shadow: 0 20px 60px rgba(201,168,76,0.3), 0 0 100px rgba(201,168,76,0.15);
      transform: scale(0.85); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .reward-popup-backdrop.show .reward-popup { transform: scale(1); }
    .reward-popup-icon { font-size: 3.5rem; margin-bottom: 0.5rem; animation: popBounce 1.2s ease-in-out infinite; }
    @keyframes popBounce {
      0%, 100% { transform: scale(1) rotate(0); }
      50% { transform: scale(1.15) rotate(-8deg); }
    }
    .reward-popup-title {
      font-family: 'Playfair Display', serif; font-size: 1.6rem; color: #C9A84C;
      font-weight: 700; margin-bottom: 0.5rem;
    }
    .reward-popup-msg {
      color: #d8d8e8; font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.2rem;
    }
    .reward-popup-msg strong { color: #FFD97A; }
    .reward-popup-cta {
      background: linear-gradient(135deg, #C9A84C, #8B6F2A);
      color: #1A1A2E; border: none; padding: 0.85rem 1.8rem;
      border-radius: 9999px; font-weight: 700; font-size: 0.95rem;
      cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 20px rgba(201,168,76,0.5);
      display: inline-flex; align-items: center; gap: 0.5rem;
    }
    .reward-popup-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.7); }
    .reward-popup-close {
      position: absolute; top: 0.5rem; right: 0.5rem; background: rgba(26,26,46,0.8); border: 1px solid rgba(201,168,76,0.3);
      color: #C9A84C; font-size: 1.5rem; cursor: pointer; padding: 0.45rem 0.75rem;
      border-radius: 50%; line-height: 1; min-width: 40px; min-height: 40px;
      display: flex; align-items: center; justify-content: center; z-index: 10;
      transition: all 0.2s; -webkit-tap-highlight-color: transparent;
    }
    .reward-popup-close:hover,
    .reward-popup-close:focus {
      color: #FFD97A; background: rgba(201,168,76,0.15); border-color: rgba(201,168,76,0.6);
      transform: scale(1.1); outline: none;
    }
    .reward-popup-close:active { transform: scale(0.95); }
    .reward-popup-tiny {
      display: block; margin-top: 0.8rem; color: #888; font-size: 0.75rem;
    }

    /* ===== Feedback / Suggestions Board ===== */
    .feedback-section {
      background: linear-gradient(180deg, #0F1020 0%, #1A1A2E 100%);
      padding: 4rem 1.5rem;
      text-align: center;
    }
    .feedback-inner { max-width: 640px; margin: 0 auto; }
    .feedback-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
    .feedback-title {
      font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #C9A84C;
      font-weight: 700; margin-bottom: 0.5rem;
    }
    .feedback-subtitle { color: #d8d8e8; font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.5rem; }
    .feedback-reward-badge {
      display: inline-flex; align-items: center; gap: 0.4rem;
      background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.3);
      border-radius: 9999px; padding: 0.35rem 1rem; margin-bottom: 1.5rem;
      color: #FFD97A; font-size: 0.85rem; font-weight: 600;
    }
    .feedback-form {
      background: rgba(26,26,46,0.6); border: 1px solid rgba(201,168,76,0.15);
      border-radius: 16px; padding: 1.5rem; text-align: left;
    }
    .feedback-category-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
    .feedback-cat-btn {
      flex: 1; min-width: 100px; padding: 0.5rem 0.75rem; border-radius: 10px;
      border: 1px solid rgba(201,168,76,0.2); background: rgba(15,16,32,0.5);
      color: #a0a0b8; font-size: 0.8rem; cursor: pointer; transition: all 0.2s;
      text-align: center;
    }
    .feedback-cat-btn:hover { border-color: rgba(201,168,76,0.5); color: #d8d8e8; }
    .feedback-cat-btn.active {
      background: rgba(201,168,76,0.15); border-color: #C9A84C; color: #FFD97A; font-weight: 600;
    }
    .feedback-textarea {
      width: 100%; min-height: 120px; resize: vertical;
      background: rgba(15,16,32,0.6); border: 1px solid rgba(201,168,76,0.2);
      border-radius: 10px; padding: 0.75rem 1rem; color: #e8e8f0;
      font-family: inherit; font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.75rem;
      box-sizing: border-box;
    }
    .feedback-textarea:focus { outline: none; border-color: #C9A84C; }
    .feedback-textarea::placeholder { color: #555; }
    .feedback-email {
      width: 100%; background: rgba(15,16,32,0.6); border: 1px solid rgba(201,168,76,0.2);
      border-radius: 10px; padding: 0.6rem 1rem; color: #e8e8f0;
      font-size: 0.85rem; margin-bottom: 0.75rem; box-sizing: border-box;
    }
    .feedback-email:focus { outline: none; border-color: #C9A84C; }
    .feedback-submit {
      width: 100%; padding: 0.8rem; border-radius: 10px; border: none;
      background: linear-gradient(135deg, #C9A84C, #8B6F2A);
      color: #1A1A2E; font-weight: 700; font-size: 0.95rem; cursor: pointer;
      transition: all 0.2s;
    }
    .feedback-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,0.4); }
    .feedback-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
    .feedback-login-prompt {
      width: 100%; padding: 0.8rem; border-radius: 10px; border: 1px solid rgba(201,168,76,0.3);
      background: rgba(201,168,76,0.08); color: #C9A84C; font-weight: 600; cursor: pointer;
      text-align: center; transition: all 0.2s;
    }
    .feedback-login-prompt:hover { background: rgba(201,168,76,0.15); }
    .feedback-success {
      display: none; text-align: center; padding: 2rem 1rem;
    }
    .feedback-success.show { display: block; }
    .feedback-success-icon { font-size: 3rem; margin-bottom: 0.5rem; }
    .feedback-success-title {
      font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #C9A84C; margin-bottom: 0.5rem;
    }
    .feedback-success-msg { color: #d8d8e8; font-size: 0.9rem; line-height: 1.6; }
    .feedback-submitted-card {
      background: rgba(15,16,32,0.6); border: 1px solid rgba(201,168,76,0.2); border-radius: 12px;
      padding: 1rem; margin: 1.2rem auto 0; max-width: 520px; text-align: left;
    }
    .feedback-submitted-label { color: #888; font-size: 0.75rem; margin-bottom: 0.25rem; }
    .feedback-submitted-category {
      display: inline-block; font-size: 0.8rem; font-weight: 600; color: #C9A84C;
      background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2);
      border-radius: 20px; padding: 0.2rem 0.6rem; margin-bottom: 0.5rem;
    }
    .feedback-submitted-content {
      color: #e8e8f0; font-size: 0.85rem; line-height: 1.5; max-height: 4.5rem; overflow: hidden;
      display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    }
    .feedback-submitted-status {
      display: flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem;
      color: #888; font-size: 0.75rem;
    }
    .feedback-status-dot {
      width: 7px; height: 7px; border-radius: 50%; background: #FFC107;
      box-shadow: 0 0 6px rgba(255,193,7,0.5);
    }
    .feedback-status-dot.implemented { background: #4CAF50; box-shadow: 0 0 6px rgba(76,175,80,0.5); }
    .feedback-status-dot.rejected { background: #F44336; box-shadow: 0 0 6px rgba(244,67,54,0.5); }
    .feedback-view-btn {
      margin-top: 1.2rem; padding: 0.75rem 1.5rem; font-size: 0.9rem; font-weight: 600;
      color: #1A1A2E; background: linear-gradient(135deg, #C9A84C, #E5C873); border: none;
      border-radius: 30px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
    }
    .feedback-view-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,168,76,0.4); }
    .feedback-list-popup {
      position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,0.7);
      display: none; align-items: center; justify-content: center; padding: 1rem;
      backdrop-filter: blur(4px);
    }
    .feedback-list-popup.show { display: flex; }
    .feedback-list-popup-inner {
      background: linear-gradient(180deg, #1A1A2E, #0F1020); border: 1px solid rgba(201,168,76,0.25);
      border-radius: 16px; width: 100%; max-width: 640px; max-height: 80vh; overflow: hidden;
      display: flex; flex-direction: column; position: relative;
      box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    }
    .feedback-list-popup-close {
      position: absolute; top: 0.6rem; right: 0.6rem; background: rgba(26,26,46,0.8);
      border: 1px solid rgba(201,168,76,0.3); color: #C9A84C; font-size: 1.3rem;
      cursor: pointer; padding: 0.4rem 0.65rem; border-radius: 50%; line-height: 1;
      transition: all 0.2s; z-index: 2;
    }
    .feedback-list-popup-close:hover { background: rgba(201,168,76,0.15); transform: scale(1.1); }
    .feedback-list-title {
      font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #C9A84C;
      padding: 1.2rem 1.5rem 0.5rem; border-bottom: 1px solid rgba(201,168,76,0.15);
    }
    .feedback-list { padding: 1rem 1.5rem 1.5rem; overflow-y: auto; }
    .feedback-list-empty {
      color: #888; text-align: center; padding: 2.5rem 1rem; font-size: 0.9rem;
    }
    .feedback-item {
      background: rgba(15,16,32,0.6); border: 1px solid rgba(201,168,76,0.12);
      border-radius: 12px; padding: 1rem; margin-bottom: 0.75rem;
    }
    .feedback-item:last-child { margin-bottom: 0; }
    .feedback-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
    .feedback-item-category { font-size: 0.75rem; font-weight: 600; color: #C9A84C; }
    .feedback-item-status {
      font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 12px; text-transform: capitalize;
      background: rgba(255,193,7,0.1); color: #FFC107; border: 1px solid rgba(255,193,7,0.2);
    }
    .feedback-item-status.reviewed { background: rgba(33,150,243,0.1); color: #2196F3; border-color: rgba(33,150,243,0.2); }
    .feedback-item-status.approved { background: rgba(156,39,176,0.1); color: #9C27B0; border-color: rgba(156,39,176,0.2); }
    .feedback-item-status.implemented { background: rgba(76,175,80,0.1); color: #4CAF50; border-color: rgba(76,175,80,0.2); }
    .feedback-item-status.rejected { background: rgba(244,67,54,0.1); color: #F44336; border-color: rgba(244,67,54,0.2); }
    .feedback-item-content { color: #d8d8e8; font-size: 0.85rem; line-height: 1.5; }
    .feedback-item-date { color: #666; font-size: 0.7rem; margin-top: 0.5rem; }
    .feedback-item-reward { color: #4CAF50; font-size: 0.75rem; margin-top: 0.4rem; }
    .feedback-note { color: #666; font-size: 0.75rem; margin-top: 1rem; text-align: center; }

    /* ===== TIANSHU launch band (BaZi sister site) ===== */
    /* hero 里原来那颗「NEW 天枢」药丸已删：天枢横幅已排到页面最顶端，
       同一个入口在首屏出现两次是重复。.ts-hero-pill 的样式一并移除。 */
    .ts-band { max-width: 1180px; margin: 0 auto; padding: 0 24px 4px; }
    /* 两条横幅已移到 hero 之前，成了页面第一屏。
       顶部必须让出 ~110px：i18n.js 注入的语言/登录按钮是 fixed top:44px 居中悬浮，
       原先悬在 hero 的 5rem 空白上，横幅一上来就会被它们压住标题标签。 */
    .ts-band.lead { padding-top: 6.6rem; }
    /* 那排按钮是 position:fixed，滚动时会一直挂在顶部压住正文（首屏重排后尤其明显）。
       用滚动驱动动画让它随滚动淡出——纯 CSS，不碰 612KB 的 i18n.js（那个改一次要
       全站 347 处 bump 版本号）。不支持的浏览器就保持现状，属于优雅降级。 */
    @supports (animation-timeline: scroll()) {
      #iml-header-controls {
        animation: imlTuckAway linear both;
        animation-timeline: scroll(root block);
        animation-range: 0 140px;
        will-change: opacity, transform;
      }
      @keyframes imlTuckAway {
        from { opacity: 1; transform: translateY(0); }
        to   { opacity: 0; transform: translateY(-14px); pointer-events: none; }
      }
    }
    .ts-band-inner {
      display: grid; grid-template-columns: minmax(230px, 36%) 1fr; align-items: stretch;
      background: linear-gradient(100deg, #12101A 0%, #1B1626 58%, #241B13 100%);
      border: 1px solid rgba(201,168,76,0.3); border-radius: 0.75rem; overflow: hidden;
      text-decoration: none; position: relative;
      transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    }
    .ts-band-inner:hover {
      border-color: rgba(201,168,76,0.62); transform: translateY(-2px);
      box-shadow: 0 14px 34px rgba(0,0,0,0.42); text-decoration: none;
    }
    .ts-band-media {
      position: relative; min-height: 100%; background-color: #0B0A09;
      background-image: url(/assets/tianshu-hero.webp);
      background-position: 52% 40%; background-size: cover; background-repeat: no-repeat;
      overflow: hidden;
    }
    /* 横幅左上角的动图。background-image 留着当兜底 —— preload="none" 的视频
       在滚动到视口之前就是透明的，那时用户看到的是那张静态 hero 图。 */
    .ts-band-video {
      position: absolute; inset: 0; width: 100%; height: 100%;
      object-fit: cover; opacity: 0.66; filter: brightness(0.9);
    }
    .ts-band-media::after {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(90deg, rgba(18,16,26,0) 34%, rgba(18,16,26,0.94) 100%);
    }
    .ts-band-body {
      padding: 1.45rem 1.75rem 1.5rem; display: flex; flex-direction: column;
      justify-content: center; gap: 0.5rem;
      font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    }
    .ts-band-tag {
      align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem;
      font-size: 0.6rem; letter-spacing: 0.2em; font-weight: 700; text-transform: uppercase;
      color: #100E08; background: #C9A84C; padding: 0.2rem 0.55rem; border-radius: 2px;
    }
    .ts-band-title { font-size: 1.55rem; line-height: 1.3; color: #FAF5E9; font-weight: 700; letter-spacing: 0.03em; }
    .ts-band-title span {
      display: block; margin-top: 0.32rem; font-size: 0.66rem; font-weight: 400;
      letter-spacing: 0.22em; text-transform: uppercase; color: #C9A84C;
    }
    .ts-band-desc { font-size: 0.93rem; line-height: 1.72; color: #B4AFC0; max-width: 46rem; }
    .ts-band-desc b { color: #FAF5E9; font-weight: 700; }
    .ts-band-desc em { color: #C9A84C; font-style: normal; letter-spacing: 0.06em; }
    .ts-band-cta {
      margin-top: 0.35rem; align-self: flex-start; display: inline-flex; align-items: center; gap: 0.45rem;
      font-size: 0.86rem; font-weight: 700; letter-spacing: 0.06em; color: #E8D5A0;
      border-bottom: 1px solid rgba(201,168,76,0.45); padding-bottom: 0.15rem;
    }
    .ts-band-cta i { font-style: normal; transition: transform 0.2s; }
    .ts-band-inner:hover .ts-band-cta i { transform: translateX(4px); }
    @media (max-width: 760px) {
      .ts-band { padding: 0 16px 2px; }
      .ts-band-inner { grid-template-columns: 1fr; }
      .ts-band-media { min-height: 168px; background-position: 52% 34%; }
      .ts-band-media::after { background: linear-gradient(180deg, rgba(18,16,26,0) 26%, rgba(18,16,26,0.96) 100%); }
      .ts-band-body { padding: 1.1rem 1.25rem 1.25rem; }
      .ts-band-title { font-size: 1.28rem; }
      .ts-band-desc { font-size: 0.88rem; }
    }

    /* ===== 清缘堂 · 网上寺庙（3D 静室）=====
       复用天枢那条横幅的骨架（.ts-band），只换配色和配图。
       不另起一套类名，是为了让两条横幅在页面上是"同一家族"，
       而不是两个长得像但其实不同的组件。 */
    .tm-band { margin-top: 14px; }
    .tm-band .ts-band-inner {
      background: linear-gradient(100deg, #0E0B08 0%, #1A120C 58%, #241A10 100%);
      border-color: rgba(176,138,74,0.30);
    }
    .tm-band .ts-band-inner:hover { border-color: rgba(200,160,86,0.62); }
    .tm-band .ts-band-media {
      background-image: url(/assets/temple-band.jpg);
      background-position: 50% 44%;
    }
    .tm-band .ts-band-media::after {
      background: linear-gradient(90deg, rgba(14,11,8,0) 34%, rgba(14,11,8,0.95) 100%);
    }
    .tm-band .ts-band-tag { color: #F3E6C6; background: #8A5A28; }
    .tm-band .ts-band-title span { color: #C9A46B; }
    .tm-band .ts-band-desc em { color: #D8B87A; }
    .tm-band .ts-band-cta { color: #F0E3C4; border-bottom-color: rgba(200,160,86,0.45); }
    @media (max-width: 760px) {
      .tm-band .ts-band-media::after { background: linear-gradient(180deg, rgba(14,11,8,0) 26%, rgba(14,11,8,0.97) 100%); }
      /* 手机上是"按宽度铺满、纵向裁切"，用天枢那条的 34% 会把佛像的头裁掉，
         这里必须贴顶，让金身和头光整块露出来。 */
      .tm-band .ts-band-media { background-position: 50% 5%; }
    }
  

    .dashboard-overlay {
      position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,0.7); display: flex;
    align-items: flex-start; justify-content: flex-end;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .dashboard-overlay.show { opacity: 1; pointer-events: auto; }
  .dashboard-panel {
    width: 100%; max-width: 420px; height: 100vh;
    background: #1A1A2E; border-left: 1px solid rgba(201,168,76,0.2);
    padding: 1.5rem; overflow-y: auto; position: relative;
    animation: dashSlideIn 0.3s ease;
  }
  @keyframes dashSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
  .dashboard-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; color: #888;
    font-size: 1.5rem; cursor: pointer;
  }
  .dashboard-close:hover { color: #C9A84C; }

  .dashboard-header {
    display: flex; align-items: center; gap: 1rem;
    padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1.25rem;
  }
  .dashboard-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #C9A84C, #8B6F2A);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; flex-shrink: 0;
    color: #1A1A2E;
  }
  .dashboard-name { font-size: 1.15rem; color: #FAF5E9; margin-bottom: 0.15rem; font-family: 'Playfair Display', serif; }
  .dashboard-email { font-size: 0.8rem; color: #888; display: block; }
  .dashboard-tier {
    display: inline-block; margin-top: 0.35rem; padding: 0.15rem 0.6rem;
    border-radius: 999px; font-size: 0.7rem; font-weight: 600;
    background: rgba(255,255,255,0.06);
  }
  .dashboard-tier.tier-pro { background: rgba(201,168,76,0.2); color: #C9A84C; }
  .dashboard-tier.tier-basic { background: rgba(126,181,232,0.2); color: #7EB5E8; }

  .dashboard-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .dashboard-stat {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 0.75rem; text-align: center;
  }
  .dashboard-stat-value { font-size: 1.5rem; font-weight: 700; color: #C9A84C; }
  .dashboard-stat-label { font-size: 0.7rem; color: #888; margin-top: 0.2rem; }

  .dashboard-section { margin-bottom: 1.5rem; }
  .dashboard-section-title {
    font-size: 0.95rem; color: #C9A84C; font-family: 'Playfair Display', serif;
    margin-bottom: 0.75rem;
  }
  .dashboard-history { display: flex; flex-direction: column; gap: 0.5rem; }
  .dashboard-history-empty { color: #888; font-size: 0.85rem; text-align: center; padding: 2rem 0; }
  .dashboard-history-item {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px; padding: 0.75rem; cursor: pointer; transition: border-color 0.2s;
  }
  .dashboard-history-item:hover { border-color: rgba(201,168,76,0.3); }
  .dashboard-history-item-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.35rem;
  }
  .dashboard-history-hex {
    color: #C9A84C; font-size: 0.85rem; font-weight: 600;
  }
  .dashboard-history-date { color: #666; font-size: 0.7rem; }
  .dashboard-history-question { color: #b8b8c8; font-size: 0.8rem; }
  .dashboard-history-preview {
    color: #888; font-size: 0.75rem; margin-top: 0.3rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .dashboard-actions {
    display: flex; flex-direction: column; gap: 0.5rem;
    padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08);
  }
  .dashboard-action-btn {
    width: 100%; padding: 0.65rem; border-radius: 8px;
    text-align: center; font-size: 0.85rem; font-weight: 600; cursor: pointer;
    background: linear-gradient(135deg, #C9A84C, #8B6F2A);
    color: #1A1A2E; border: none; transition: transform 0.2s;
  }
  .dashboard-action-btn:hover { transform: translateY(-1px); }
  .dashboard-action-secondary {
    background: rgba(255,255,255,0.06); color: #b8b8c8; border: 1px solid rgba(255,255,255,0.1);
  }
