/*
Theme Name: 玄晶阁 XUANJING
Theme URI: https://www.xuanjing-crystal.com/
Author: 玄晶阁
Author URI: https://www.xuanjing-crystal.com/
Description: 东方灵韵水晶手串品牌主题 —— 深墨底色、鎏金线条、宋体长卷，含生辰问石五行排盘、水晶图鉴、手串系列、净化仪式与结缘询单。原生 PHP + 零依赖，面向 Google SEO 优化。
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xuanjing
Tags: dark, one-column, custom-menu, custom-logo, featured-images, translation-ready, e-commerce
*/

/* ============================================================
   0. 设计变量 —— 玄晶阁色板
   ============================================================ */
:root {
  --ink: #0c0a12;
  --ink-2: #14111d;
  --ink-3: #1c1828;
  --gold: #c9a86a;
  --gold-bright: #e6c98a;
  --jade: #7ba089;
  --cinnabar: #b8433a;
  --violet: #8b6fb8;
  --text: #e9e1d2;
  --text-dim: #a89e8c;
  --line: rgba(201, 168, 106, 0.25);

  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', '宋体', serif;
  --font-brush: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'Kaiti SC', '楷体', cursive;
  --font-latin: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;

  --wrap: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-serif);
  overflow-x: hidden;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--ink); }
.calligraphy { font-family: var(--font-brush); }
.latin { font-family: var(--font-latin); letter-spacing: 0.35em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* 无障碍：跳转链接与隐藏文字 */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--gold); color: var(--ink); clip: auto; clip-path: none;
  display: block; font-size: 14px; height: auto; left: 6px; line-height: normal;
  padding: 14px 22px; top: 6px; width: auto; z-index: 100000; text-decoration: none;
}
.skip-link:focus { outline: none; }

/* WordPress 核心对齐类 */
.alignleft { float: left; margin: 0 1.6em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.6em; }
.aligncenter { display: block; margin: 1.6em auto; }
.alignwide { margin-left: -6vw; margin-right: -6vw; max-width: 1400px; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 8px; }
.sticky .prod-name::after { content: ' ✦'; color: var(--gold); }

/* 星尘粒子画布 */
#dust { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

/* ============================================================
   1. 导航
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5vw;
  background: rgba(12, 10, 18, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 168, 106, 0.12);
  transition: background 0.4s, padding 0.4s;
}
.site-nav.is-scrolled { background: rgba(12, 10, 18, 0.93); padding-top: 12px; padding-bottom: 12px; }
.nav-brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.nav-brand .cn { font-family: var(--font-brush); font-size: 26px; color: var(--gold); }
.nav-brand .en { font-family: var(--font-latin); font-size: 12px; color: var(--text-dim); letter-spacing: 0.35em; }
.nav-brand:hover .cn { color: var(--gold-bright); }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links li { list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 15px;
  letter-spacing: 0.2em; transition: color 0.3s; white-space: nowrap;
}
.nav-links a:hover, .nav-links .current-menu-item > a, .nav-links .current_page_item > a { color: var(--gold-bright); }
.nav-cta {
  border: 1px solid var(--gold); color: var(--gold) !important;
  padding: 8px 22px; border-radius: 2px; font-size: 14px !important;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

/* 祈愿单入口 */
.wish-entry {
  position: relative; background: transparent; border: 1px solid var(--line);
  color: var(--gold); font-family: var(--font-serif); font-size: 13px;
  letter-spacing: 0.15em; padding: 9px 18px; border-radius: 2px; cursor: pointer;
  transition: all 0.3s;
}
.wish-entry:hover { border-color: var(--gold); background: rgba(201, 168, 106, 0.1); }
.wish-count {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
  background: var(--gold); color: var(--ink); border-radius: 9px;
  font-size: 11px; text-align: center; padding: 0 5px; margin-left: 6px;
  font-family: var(--font-latin); letter-spacing: 0; vertical-align: 1px;
}
.wish-count[hidden] { display: none; }

/* 汉堡菜单 */
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  color: var(--gold); width: 42px; height: 38px; border-radius: 2px; cursor: pointer;
  font-size: 17px; line-height: 1; align-items: center; justify-content: center;
}
@media (max-width: 1080px) {
  .nav-links {
    position: fixed; inset: 62px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(12, 10, 18, 0.98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); padding: 10px 0 24px;
    max-height: 0; overflow: hidden; transition: max-height 0.45s ease, padding 0.45s ease;
  }
  .nav-links.is-open { max-height: 78vh; overflow-y: auto; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 15px 0; font-size: 16px; }
  .nav-links .nav-cta { display: inline-block; margin: 12px auto 0; padding: 10px 30px; }
  .nav-toggle { display: flex; }
  .nav-brand .en { display: none; }
}

/* ============================================================
   2. Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-glow {
  position: absolute; width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 111, 184, 0.16) 0%, rgba(12, 10, 18, 0) 62%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}
.hero-ring {
  position: absolute; border: 1px solid var(--line); border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.hero-ring.r1 { width: 42vw; height: 42vw; animation: spin 90s linear infinite; }
.hero-ring.r2 { width: 56vw; height: 56vw; border-style: dashed; opacity: 0.5; animation: spin 140s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-content { position: relative; z-index: 2; padding: 0 24px; }
.hero-eyebrow {
  color: var(--gold); font-size: 13px; letter-spacing: 0.6em; margin-bottom: 26px;
  text-transform: uppercase; font-family: var(--font-latin);
}
.hero-title { font-size: clamp(64px, 11vw, 150px); line-height: 1.1; color: var(--text); font-weight: 400; }
.hero-title span { color: var(--gold-bright); }
.hero-sub {
  margin-top: 22px; font-size: clamp(15px, 2vw, 19px); color: var(--text-dim);
  letter-spacing: 0.45em; font-weight: 300;
}
.hero-divider { width: 1px; height: 70px; margin: 38px auto; background: linear-gradient(var(--gold), transparent); }
.hero-actions { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  color: var(--text-dim); font-size: 12px; letter-spacing: 0.4em; z-index: 2;
  animation: float 2.6s ease-in-out infinite; text-decoration: none;
}
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ============================================================
   3. 按钮
   ============================================================ */
.btn {
  display: inline-block; padding: 14px 44px; font-size: 15px; letter-spacing: 0.3em;
  text-decoration: none; border-radius: 2px; transition: all 0.35s; cursor: pointer;
  font-family: var(--font-serif); border: 1px solid transparent; text-align: center;
}
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 0 34px rgba(201, 168, 106, 0.4); }
.btn-ghost { color: var(--text); border-color: rgba(233, 225, 210, 0.35); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-sm { padding: 9px 22px; font-size: 13px; letter-spacing: 0.18em; }

/* ============================================================
   4. 通用 section
   ============================================================ */
.section { position: relative; padding: 110px 6vw; z-index: 2; }
.sec-head { text-align: center; margin-bottom: 70px; }
.sec-eyebrow { color: var(--gold); font-size: 12px; letter-spacing: 0.5em; margin-bottom: 14px; font-family: var(--font-latin); }
.sec-title { font-size: clamp(30px, 4.6vw, 46px); font-weight: 400; }
.sec-title em { font-style: normal; color: var(--gold-bright); }
.sec-line { width: 56px; height: 1px; background: var(--gold); margin: 26px auto 0; opacity: 0.7; }
.sec-desc { max-width: 640px; margin: 22px auto 0; color: var(--text-dim); font-size: 15px; font-weight: 300; }
.section--tight { padding-top: 70px; }

.reveal { opacity: 0; transform: translateY(38px); transition: opacity 1s ease, transform 1s ease; }
.reveal.on { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-ring, .hero-glow, .scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   5. 品牌哲学
   ============================================================ */
.sec-philosophy { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.philo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1080px; margin: 0 auto; }
@media (max-width: 860px) { .philo-grid { grid-template-columns: 1fr; } }
.philo-card {
  border: 1px solid var(--line); padding: 46px 34px; text-align: center;
  background: rgba(28, 24, 40, 0.45); transition: all 0.4s; position: relative;
}
.philo-card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.philo-glyph { font-family: var(--font-brush); font-size: 52px; color: var(--gold); display: block; margin-bottom: 18px; }
.philo-card h3 { font-size: 20px; letter-spacing: 0.25em; margin-bottom: 14px; font-weight: 600; }
.philo-card p { font-size: 14px; color: var(--text-dim); font-weight: 300; }
.philo-en { display: block; margin-top: 18px; font-size: 11px; color: rgba(168, 158, 140, 0.6); }

/* ============================================================
   6. 生辰问石（五行排盘）
   ============================================================ */
.sec-bazi { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.bazi-form { display: flex; justify-content: center; align-items: flex-end; gap: 18px; flex-wrap: wrap; max-width: 960px; margin: 0 auto; }
.bz-field { display: flex; flex-direction: column; gap: 8px; }
.bz-field label { font-size: 12px; color: var(--gold); letter-spacing: 0.3em; text-align: center; }
.bz-select {
  background: var(--ink-3); color: var(--text); border: 1px solid var(--line);
  padding: 12px 18px; font-family: var(--font-serif); font-size: 15px;
  border-radius: 2px; min-width: 150px; outline: none; cursor: pointer;
}
.bz-select:focus { border-color: var(--gold); }
.bz-select option { background: var(--ink-3); }
.bz-btn {
  background: var(--gold); border: 1px solid var(--gold); color: var(--ink);
  padding: 13px 40px; font-family: var(--font-serif); font-size: 15px;
  letter-spacing: 0.3em; cursor: pointer; border-radius: 2px; transition: all 0.35s;
}
.bz-btn:hover { background: var(--gold-bright); box-shadow: 0 0 30px rgba(201, 168, 106, 0.35); }
.bazi-result {
  display: none; max-width: 900px; margin: 60px auto 0; border: 1px solid var(--line);
  background: rgba(28, 24, 40, 0.45); padding: 50px 40px; animation: fadeIn 0.7s ease;
}
.bazi-result.is-open { display: block; }
.pillars { display: flex; justify-content: center; gap: clamp(18px, 5vw, 60px); margin-bottom: 44px; flex-wrap: wrap; }
.pillar { text-align: center; }
.p-label { display: block; font-size: 12px; color: var(--text-dim); letter-spacing: 0.3em; margin-bottom: 10px; }
.p-gan, .p-zhi { display: block; font-family: var(--font-brush); font-size: 44px; line-height: 1.25; }
.wx-bars { max-width: 480px; margin: 0 auto 40px; display: flex; flex-direction: column; gap: 12px; }
.wx-row { display: flex; align-items: center; gap: 14px; }
.wx-name { font-family: var(--font-brush); font-size: 22px; width: 28px; text-align: center; }
.wx-track { flex: 1; height: 8px; background: rgba(201, 168, 106, 0.12); border-radius: 4px; overflow: hidden; }
.wx-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.wx-count { font-size: 13px; color: var(--text-dim); width: 44px; text-align: right; }
.bazi-advice { text-align: center; font-size: 15.5px; color: var(--text); font-weight: 300; margin-bottom: 30px; line-height: 2.1; }
.bazi-advice b { color: var(--gold-bright); font-weight: 600; }
.rec-list { display: flex; flex-direction: column; gap: 18px; }
.rec-item { border: 1px solid rgba(201, 168, 106, 0.2); padding: 20px 24px; background: rgba(12, 10, 18, 0.5); display: flex; flex-direction: column; gap: 8px; }
.rec-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.rec-ele { font-size: 19px; font-weight: 600; letter-spacing: 0.15em; }
.rec-detail { font-size: 13.5px; color: var(--text-dim); font-weight: 300; }
.rec-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.rec-links a { color: var(--gold); font-size: 13.5px; text-decoration: none; letter-spacing: 0.12em; border-bottom: 1px dashed rgba(201, 168, 106, 0.5); padding-bottom: 2px; transition: color 0.3s; }
.rec-links a:hover { color: var(--gold-bright); }
.bz-note { text-align: center; margin-top: 30px; font-size: 12px; color: rgba(168, 158, 140, 0.55); font-weight: 300; }

/* ============================================================
   7. 水晶图鉴
   ============================================================ */
.sec-codex { background: var(--ink-2); }
.wuxing-bar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 60px; }
.wx-tab {
  padding: 10px 26px; border: 1px solid var(--line); background: transparent;
  color: var(--text-dim); font-family: var(--font-serif); font-size: 15px;
  letter-spacing: 0.2em; cursor: pointer; transition: all 0.3s; border-radius: 2px;
}
.wx-tab:hover { border-color: var(--gold); color: var(--gold); }
.wx-tab.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.codex-panel { display: none; max-width: 980px; margin: 0 auto; animation: fadeIn 0.6s ease; }
.codex-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.codex-inner {
  display: grid; grid-template-columns: 220px 1fr; gap: 46px; align-items: center;
  border: 1px solid var(--line); padding: 44px; background: rgba(12, 10, 18, 0.5);
}
@media (max-width: 760px) { .codex-inner { grid-template-columns: 1fr; text-align: center; } }
.codex-orb {
  width: 200px; height: 200px; border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-brush); font-size: 84px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55), 0 0 50px var(--orb-glow, rgba(201, 168, 106, 0.25));
}
.codex-inner h3 { font-size: 26px; letter-spacing: 0.2em; color: var(--gold-bright); margin-bottom: 8px; }
.codex-inner .en-name { font-size: 12px; color: var(--text-dim); letter-spacing: 0.3em; margin-bottom: 20px; display: block; }
.codex-inner p { font-size: 15px; color: var(--text); font-weight: 300; }
.codex-tags { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .codex-tags { justify-content: center; } }
.tag { border: 1px solid var(--line); color: var(--gold); font-size: 12px; padding: 5px 14px; letter-spacing: 0.15em; border-radius: 2px; }

/* ============================================================
   8. 手串系列
   ============================================================ */
.sec-collection { background: var(--ink); }
.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px; max-width: var(--wrap); margin: 0 auto;
}
.prod-card {
  border: 1px solid rgba(201, 168, 106, 0.18); background: var(--ink-2);
  overflow: hidden; transition: all 0.4s; display: flex; flex-direction: column;
  scroll-margin-top: 90px;
}
.prod-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5); }
.prod-visual { height: 250px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-visual .aura { position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(46px); opacity: 0.55; transition: opacity 0.4s; }
.prod-card:hover .aura { opacity: 0.9; }
.prod-beads { position: relative; z-index: 2; }
.prod-body { padding: 26px 26px 30px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.prod-name { font-size: 21px; letter-spacing: 0.2em; margin-bottom: 6px; }
.prod-name a { text-decoration: none; color: var(--text); transition: color 0.3s; }
.prod-name a:hover { color: var(--gold-bright); }
.prod-latin { font-size: 11px; color: var(--text-dim); letter-spacing: 0.25em; display: block; margin-bottom: 14px; }
.prod-desc { font-size: 13.5px; color: var(--text-dim); font-weight: 300; flex: 1; margin-bottom: 18px; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(201, 168, 106, 0.15); padding-top: 18px; gap: 12px; }
.prod-price { font-size: 20px; color: var(--gold-bright); }
.prod-price small { font-size: 12px; color: var(--text-dim); margin-right: 2px; }
.wish-btn {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  padding: 8px 18px; font-size: 13px; letter-spacing: 0.15em; cursor: pointer;
  font-family: var(--font-serif); transition: all 0.3s; border-radius: 2px; white-space: nowrap;
}
.wish-btn:hover { background: var(--gold); color: var(--ink); }
.wish-btn.added { background: var(--jade); border-color: var(--jade); color: var(--ink); }
.prod-grid-note { text-align: center; margin-top: 52px; }

/* ============================================================
   9. 净化仪式
   ============================================================ */
.sec-ritual { background: linear-gradient(180deg, var(--ink) 0%, #17121f 100%); }
.ritual-steps { max-width: 820px; margin: 0 auto; position: relative; }
.ritual-steps::before {
  content: ''; position: absolute; left: 27px; top: 10px; bottom: 10px;
  width: 1px; background: linear-gradient(var(--gold), transparent); opacity: 0.5;
}
.r-step { display: flex; gap: 34px; margin-bottom: 52px; position: relative; }
.r-step:last-child { margin-bottom: 0; }
.r-num {
  flex: 0 0 56px; height: 56px; border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; z-index: 2;
  background: var(--ink); color: var(--gold); font-family: var(--font-brush); font-size: 26px;
}
.r-step h3 { font-size: 19px; letter-spacing: 0.2em; color: var(--gold-bright); margin-bottom: 10px; }
.r-step p { font-size: 14.5px; color: var(--text-dim); font-weight: 300; }

/* ============================================================
   10. 结缘者心声
   ============================================================ */
.sec-voices { background: var(--ink-2); }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; max-width: 1080px; margin: 0 auto; }
.voice-card { border: 1px solid var(--line); padding: 36px 30px; background: rgba(12, 10, 18, 0.45); position: relative; }
.voice-card::before { content: '「'; font-family: var(--font-brush); font-size: 44px; color: var(--gold); position: absolute; top: -6px; left: 18px; opacity: 0.6; }
.voice-card p { font-size: 14.5px; color: var(--text); font-weight: 300; margin-top: 22px; }
.voice-who { margin-top: 20px; font-size: 12.5px; color: var(--gold); letter-spacing: 0.2em; }

/* ============================================================
   11. FAQ
   ============================================================ */
.sec-faq { background: var(--ink); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid rgba(201, 168, 106, 0.15); }
.faq-list summary {
  padding: 24px 8px; cursor: pointer; font-size: 16.5px; letter-spacing: 0.1em;
  color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--gold); font-size: 22px; transition: transform 0.3s; flex: 0 0 auto; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p, .faq-answer { padding: 0 8px 24px; color: var(--text-dim); font-size: 14.5px; font-weight: 300; }
.faq-answer > *:last-child { margin-bottom: 0; }

/* ============================================================
   12. 订阅
   ============================================================ */
.sec-subscribe { text-align: center; background: radial-gradient(ellipse at center, #1d1628 0%, var(--ink) 70%); }
.sub-form { display: flex; max-width: 480px; margin: 34px auto 0; border: 1px solid var(--gold); border-radius: 2px; overflow: hidden; }
.sub-form input {
  flex: 1; background: transparent; border: none; outline: none; color: var(--text);
  padding: 15px 20px; font-family: var(--font-serif); font-size: 14px; letter-spacing: 0.1em; min-width: 0;
}
.sub-form input::placeholder { color: rgba(168, 158, 140, 0.5); }
.sub-form button { background: var(--gold); border: none; color: var(--ink); padding: 0 30px; font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.25em; cursor: pointer; }
.sub-form button:hover { background: var(--gold-bright); }
.sub-ok { color: var(--jade); margin-top: 16px; font-size: 14px; display: none; }
.sub-ok.show { display: block; }
.sub-err { color: var(--cinnabar); margin-top: 16px; font-size: 14px; display: none; }
.sub-err.show { display: block; }

/* ============================================================
   13. 页脚
   ============================================================ */
.site-footer { border-top: 1px solid rgba(201, 168, 106, 0.15); padding: 60px 6vw 40px; text-align: center; background: var(--ink); position: relative; z-index: 2; }
.foot-brand { font-family: var(--font-brush); font-size: 34px; color: var(--gold); margin-bottom: 10px; }
.foot-brand-sub { font-family: var(--font-latin); font-size: 12px; letter-spacing: 0.35em; color: var(--text-dim); }
.foot-links { display: flex; justify-content: center; gap: 30px; margin: 26px 0; flex-wrap: wrap; list-style: none; }
.foot-links a { color: var(--text-dim); text-decoration: none; font-size: 13.5px; letter-spacing: 0.2em; }
.foot-links a:hover { color: var(--gold-bright); }
.foot-note { font-size: 12px; color: rgba(168, 158, 140, 0.5); font-weight: 300; max-width: 720px; margin: 0 auto; }

/* ============================================================
   14. 提示条 / 祈愿单抽屉
   ============================================================ */
#toast {
  position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 80px);
  background: var(--gold); color: var(--ink); padding: 13px 34px; font-size: 14px;
  letter-spacing: 0.2em; border-radius: 2px; z-index: 200; opacity: 0;
  transition: all 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); pointer-events: none;
  max-width: 88vw; text-align: center;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }

.wish-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 210;
  background: var(--ink-2); border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
  display: flex; flex-direction: column; box-shadow: -30px 0 70px rgba(0, 0, 0, 0.6);
}
.wish-drawer.is-open { transform: none; }
.wish-head { padding: 26px 26px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.wish-head h3 { font-size: 18px; letter-spacing: 0.25em; color: var(--gold-bright); font-weight: 400; }
.wish-close { background: transparent; border: none; color: var(--text-dim); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.wish-close:hover { color: var(--gold); }
.wish-body { flex: 1; overflow-y: auto; padding: 20px 26px; }
.wish-empty { color: var(--text-dim); font-size: 14px; text-align: center; padding: 40px 0; font-weight: 300; }
.wish-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(201, 168, 106, 0.12); }
.wish-item-info { flex: 1; min-width: 0; }
.wish-item-name { font-size: 15px; letter-spacing: 0.12em; }
.wish-item-meta { font-size: 12px; color: var(--text-dim); }
.wish-item-price { color: var(--gold-bright); font-size: 14px; }
.wish-del { background: transparent; border: none; color: var(--text-dim); cursor: pointer; font-size: 16px; }
.wish-del:hover { color: var(--cinnabar); }
.wish-foot { padding: 20px 26px 26px; border-top: 1px solid var(--line); }
.wish-total { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 16px; color: var(--text-dim); }
.wish-total b { color: var(--gold-bright); font-size: 19px; font-weight: 600; }
.wish-foot .btn { width: 100%; }
.wish-mask {
  position: fixed; inset: 0; background: rgba(6, 5, 10, 0.7); backdrop-filter: blur(3px);
  z-index: 205; opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.wish-mask.is-open { opacity: 1; pointer-events: auto; }
body.wish-open { overflow: hidden; }

/* ============================================================
   15. 内页（产品详情 / 图鉴详情 / 归档 / 通用页）
   ============================================================ */
.page-hero { padding: 170px 6vw 60px; text-align: center; position: relative; z-index: 2; }
.page-hero .sec-title { margin-top: 8px; }
.breadcrumb { font-size: 12px; color: var(--text-dim); letter-spacing: 0.15em; margin-bottom: 20px; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span.sep { margin: 0 8px; opacity: 0.5; }

.entry { max-width: 860px; margin: 0 auto; padding: 0 6vw 110px; position: relative; z-index: 2; }
.entry-content { font-size: 16px; font-weight: 300; color: var(--text); }
.entry-content h2 { font-size: 26px; font-weight: 400; margin: 46px 0 18px; color: var(--gold-bright); letter-spacing: 0.1em; }
.entry-content h3 { font-size: 20px; font-weight: 600; margin: 34px 0 14px; letter-spacing: 0.12em; }
.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 0 0 22px 1.4em; }
.entry-content li { margin-bottom: 10px; font-weight: 300; }
.entry-content a { color: var(--gold); text-decoration: none; border-bottom: 1px dashed rgba(201, 168, 106, 0.5); }
.entry-content a:hover { color: var(--gold-bright); }
.entry-content blockquote {
  border-left: 2px solid var(--gold); padding: 6px 0 6px 24px; margin: 28px 0;
  color: var(--text-dim); font-style: normal;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14.5px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }
.entry-content th { color: var(--gold-bright); background: rgba(28, 24, 40, 0.6); font-weight: 600; }

/* 产品详情 */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; max-width: var(--wrap); margin: 0 auto; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; gap: 40px; } }
.product-stage {
  border: 1px solid var(--line); height: 440px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; background: var(--ink-2);
}
.product-stage .aura { position: absolute; width: 300px; height: 300px; border-radius: 50%; filter: blur(64px); opacity: 0.6; }
.product-stage svg { position: relative; z-index: 2; }
.product-info h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 400; letter-spacing: 0.12em; margin-bottom: 10px; }
.product-latin { font-family: var(--font-latin); font-size: 12px; color: var(--text-dim); letter-spacing: 0.3em; display: block; margin-bottom: 26px; }
.product-price { font-size: 34px; color: var(--gold-bright); margin-bottom: 8px; }
.product-price small { font-size: 18px; color: var(--text-dim); margin-right: 3px; }
.product-price-note { font-size: 12px; color: rgba(168, 158, 140, 0.6); margin-bottom: 28px; }
.product-specs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.spec-row { display: flex; gap: 16px; font-size: 14px; }
.spec-row dt { color: var(--text-dim); min-width: 84px; letter-spacing: 0.15em; }
.spec-row dd { color: var(--text); font-weight: 300; }
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.product-trust { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--text-dim); font-weight: 300; }
.product-trust span::before { content: '✦ '; color: var(--gold); }

/* 询单表单 */
.inquiry-box { border: 1px solid var(--line); background: rgba(28, 24, 40, 0.45); padding: 34px; margin-top: 34px; }
.inquiry-box h3 { font-size: 19px; letter-spacing: 0.2em; color: var(--gold-bright); margin-bottom: 8px; font-weight: 400; }
.inquiry-box .hint { font-size: 13px; color: var(--text-dim); margin-bottom: 22px; font-weight: 300; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 12px; color: var(--gold); letter-spacing: 0.25em; }
.field input, .field textarea, .field select {
  background: var(--ink-3); border: 1px solid var(--line); color: var(--text);
  padding: 12px 16px; font-family: var(--font-serif); font-size: 14.5px; border-radius: 2px; outline: none; width: 100%;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 12px; color: rgba(168, 158, 140, 0.6); margin-top: 14px; font-weight: 300; }
.form-msg { padding: 14px 18px; font-size: 14px; border-radius: 2px; margin-bottom: 20px; }
.form-msg.ok { background: rgba(123, 160, 137, 0.15); border: 1px solid var(--jade); color: var(--jade); }
.form-msg.err { background: rgba(184, 67, 58, 0.15); border: 1px solid var(--cinnabar); color: #e08a82; }

/* 归档分页 */
.pagination { display: flex; justify-content: center; gap: 12px; margin-top: 60px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 42px; padding: 10px 14px; text-align: center; border: 1px solid var(--line);
  color: var(--text-dim); text-decoration: none; font-size: 14px; border-radius: 2px; transition: all 0.3s;
}
.pagination .page-numbers:hover { border-color: var(--gold); color: var(--gold-bright); }
.pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* 归档筛选 */
.filter-bar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.filter-bar a {
  padding: 9px 22px; border: 1px solid var(--line); color: var(--text-dim);
  text-decoration: none; font-size: 14px; letter-spacing: 0.18em; border-radius: 2px; transition: all 0.3s;
}
.filter-bar a:hover { border-color: var(--gold); color: var(--gold); }
.filter-bar a.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* 404 / 搜索 */
.empty-state { text-align: center; padding: 60px 0; color: var(--text-dim); font-weight: 300; }
.error-code { font-family: var(--font-brush); font-size: 130px; color: var(--gold); line-height: 1; margin-bottom: 16px; }
.search-form { display: flex; max-width: 460px; margin: 34px auto 0; border: 1px solid var(--gold); border-radius: 2px; overflow: hidden; }
.search-form input[type="search"] { flex: 1; background: transparent; border: none; outline: none; color: var(--text); padding: 14px 20px; font-family: var(--font-serif); font-size: 14px; min-width: 0; }
.search-form button { background: var(--gold); border: none; color: var(--ink); padding: 0 26px; font-family: var(--font-serif); font-size: 14px; letter-spacing: 0.2em; cursor: pointer; }
.search-form button:hover { background: var(--gold-bright); }

/* 文章列表 */
.post-list { max-width: 860px; margin: 0 auto; }
.post-item { border-bottom: 1px solid rgba(201, 168, 106, 0.15); padding: 34px 0; }
.post-item h2 { font-size: 24px; font-weight: 400; margin-bottom: 10px; letter-spacing: 0.08em; }
.post-item h2 a { text-decoration: none; color: var(--text); transition: color 0.3s; }
.post-item h2 a:hover { color: var(--gold-bright); }
.post-meta { font-size: 12.5px; color: var(--text-dim); letter-spacing: 0.15em; margin-bottom: 14px; }
.post-excerpt { font-size: 14.5px; color: var(--text-dim); font-weight: 300; }

/* 相关推荐 */
.related { margin-top: 90px; }
.related h2 { text-align: center; font-size: 24px; font-weight: 400; letter-spacing: 0.25em; color: var(--gold-bright); margin-bottom: 44px; }

/* 评论 */
.comments-area { max-width: 860px; margin: 0 auto; padding: 0 6vw 90px; }
.comments-title { font-size: 20px; letter-spacing: 0.2em; color: var(--gold-bright); margin-bottom: 26px; font-weight: 400; }
.comment-list { list-style: none; margin-bottom: 40px; }
.comment-list .comment { border-bottom: 1px solid rgba(201, 168, 106, 0.15); padding: 22px 0; }
.comment-author { font-size: 14px; color: var(--gold); letter-spacing: 0.12em; }
.comment-metadata { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.comment-content { font-size: 14.5px; color: var(--text-dim); font-weight: 300; }
.comment-respond { border: 1px solid var(--line); padding: 30px; background: rgba(28, 24, 40, 0.4); }
.comment-respond label { display: block; font-size: 12px; color: var(--gold); letter-spacing: 0.2em; margin-bottom: 7px; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
  width: 100%; background: var(--ink-3); border: 1px solid var(--line); color: var(--text);
  padding: 12px 16px; font-family: var(--font-serif); font-size: 14px; border-radius: 2px; outline: none; margin-bottom: 16px;
}
.comment-respond input[type="submit"] {
  background: var(--gold); border: none; color: var(--ink); padding: 12px 36px;
  font-family: var(--font-serif); font-size: 14px; letter-spacing: 0.25em; cursor: pointer; border-radius: 2px;
}
.comment-respond input[type="submit"]:hover { background: var(--gold-bright); }

/* 上下页导航 */
.post-nav { display: flex; justify-content: space-between; gap: 20px; max-width: 860px; margin: 0 auto 90px; padding: 0 6vw; }
.post-nav a { flex: 1; border: 1px solid var(--line); padding: 18px 22px; text-decoration: none; transition: all 0.3s; }
.post-nav a:hover { border-color: var(--gold); }
.post-nav .nav-dir { display: block; font-size: 11px; color: var(--gold); letter-spacing: 0.3em; margin-bottom: 6px; }
.post-nav .nav-title { font-size: 14.5px; color: var(--text); font-weight: 300; }
.post-nav .next { text-align: right; }

/* ============================================================
   16. 响应式微调
   ============================================================ */
@media (max-width: 782px) {
  .section { padding: 80px 6vw; }
  .site-nav { padding: 14px 5vw; }
  .bazi-result { padding: 34px 22px; }
  .codex-inner { padding: 30px 22px; }
  .bz-select { min-width: 118px; font-size: 14px; padding: 11px 12px; }
  .bz-btn { padding: 12px 30px; letter-spacing: 0.2em; }
  .p-gan, .p-zhi { font-size: 34px; }
  .product-stage { height: 320px; }
  .inquiry-box { padding: 24px 20px; }
  .post-nav { flex-direction: column; }
  .post-nav .next { text-align: left; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
  .btn { padding: 13px 30px; letter-spacing: 0.2em; width: 100%; }
  .wish-entry span.wish-label { display: none; }
}
