﻿/* ============================================================
 * style.css — 色彩能量精油 · 设计系统 v2.0
 * 东方美学：宣纸底 · 墨色字 · 朱砂点缀 · 鎏金细节
 * 三态主题：浅色 / 深色 / 跟随系统（html[data-theme]）
 * ============================================================ */

/* ---------- 设计令牌 ----------
 * 色彩基调：爽朗清新 · 温暖雅致（暖云白 + 青碧 + 柔金 + 朱砂点）
 */
:root {
  --bg: #faf7f0;
  --bg2: #f1ede2;
  --card: #fffefa;
  --card2: #faf6ec;
  --ink: #2d3a38;
  --ink2: #46534f;
  --sub: rgba(45, 58, 56, .76);
  --teal: #3f837c;
  --teal2: #4e968e;
  --teal-soft: #e3efec;
  --accent: #b5453c;
  --accent2: #c95c52;
  --gold: #b08d4f;
  --gold2: #c9a86a;
  --gold-soft: #f3ecdc;
  --line: rgba(45, 58, 56, .15);
  --line2: rgba(45, 58, 56, .08);
  --shadow: 0 2px 14px rgba(63, 90, 86, .10);
  --shadow-lg: 0 12px 40px rgba(63, 90, 86, .16);
  --serif: "STZhongsong", "华文中宋", "SimSun", "宋体", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", sans-serif;
  --r: 14px;
  --nav-h: 60px;
}
/* 暖夜模式：暖棕夜色，拒绝冷灰黑 */
html[data-theme="dark"] {
  --bg: #221f22;
  --bg2: #2a2730;
  --card: #2d2a33;
  --card2: #343039;
  --ink: #efe9dc;
  --ink2: #d5cfc2;
  --sub: rgba(239, 233, 220, .80);
  --teal: #6cb3a8;
  --teal2: #82c4ba;
  --teal-soft: rgba(108, 179, 168, .14);
  --accent: #d4675d;
  --accent2: #e07a70;
  --gold: #ddc077;
  --gold2: #ecd89a;
  --gold-soft: rgba(221, 192, 119, .13);
  --line: rgba(239, 233, 220, .20);
  --line2: rgba(239, 233, 220, .10);
  --shadow: 0 2px 14px rgba(0, 0, 0, .38);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background .35s, color .35s;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 8% 0%, rgba(78, 150, 142, .07) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 95% 100%, rgba(201, 168, 106, .08) 0%, transparent 55%);
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 50% 40% at 8% 0%, rgba(108, 179, 168, .06) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 95% 100%, rgba(221, 192, 119, .06) 0%, transparent 55%);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(176, 58, 46, .22); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(128, 120, 100, .35); border-radius: 5px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 布局 ---------- */
#app { position: relative; z-index: 1; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 920px; }
main { min-height: calc(100vh - var(--nav-h) - 80px); padding: 32px 0 64px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  color: var(--ink); white-space: nowrap; cursor: pointer;
}
.brand .seal {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), #8e2f26);
  color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); box-shadow: 0 2px 8px rgba(176, 58, 46, .35);
}
.nav-links { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 7px 14px; border-radius: 8px; font-size: 14px;
  color: var(--sub); white-space: nowrap; border: none; background: none;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: var(--line2); }
.nav-link.active { color: var(--accent); font-weight: 600; background: rgba(176, 58, 46, .08); }
html[data-theme="dark"] .nav-link.active { background: rgba(192, 80, 70, .14); }
.nav-acts { display: flex; align-items: center; gap: 8px; }

/* 主题切换按钮 */
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; border: none;
  font-size: 14px; font-weight: 600; letter-spacing: .5px;
  transition: all .22s; background: var(--teal); color: #fff;
}
.btn:hover { background: var(--teal2); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(63, 131, 124, .32); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(176, 58, 46, .06); box-shadow: none; }
.btn.gold { background: linear-gradient(135deg, var(--gold), #9a7e35); color: #fff; }
.btn.gold:hover { box-shadow: 0 6px 18px rgba(183, 154, 74, .35); }
.btn.sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 14px 34px; font-size: 16px; }

.card {
  background: var(--card); border: 1px solid var(--line2);
  border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.section { margin-bottom: 36px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.section-title {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; gap: 12px;
}
.section-title::before {
  content: ''; width: 4px; height: 22px; border-radius: 2px;
  background: linear-gradient(var(--accent), var(--gold)); flex: none;
}
.section-sub { font-size: 14.5px; color: var(--ink2); font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line); color: var(--sub); background: var(--card);
  transition: all .2s; white-space: nowrap;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip.on { border-color: var(--accent); color: var(--accent); background: rgba(176, 58, 46, .07); font-weight: 600; }

/* 分页 breadcrumb / 返回 */
.back-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--sub); margin-bottom: 16px; background: none; border: none;
}
.back-link:hover { color: var(--accent); }

/* Toast */
#toast-root { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: var(--bg);
  padding: 10px 22px; border-radius: 10px; font-size: 14px;
  box-shadow: var(--shadow-lg); animation: toast-in .3s ease;
  display: flex; align-items: center; gap: 8px; max-width: 90vw;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.toast.out { opacity: 0; transition: opacity .3s; }

/* 视图切换动画 */
.view { animation: view-in .4s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 徽标 */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: 1px;
  background: rgba(183, 154, 74, .14); color: var(--gold);
  border: 1px solid rgba(183, 154, 74, .35);
}
.badge.red { background: rgba(176, 58, 46, .1); color: var(--accent); border-color: rgba(176, 58, 46, .3); }

/* 表格 */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.tbl th {
  text-align: left; padding: 11px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--sub); font-weight: 700; border-bottom: 1px solid var(--line);
  background: var(--card2);
}
table.tbl td { padding: 12px 14px; font-weight: 500; border-bottom: 1px solid var(--line2); vertical-align: top; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tr:hover td { background: var(--line2); }

/* ---------- 首页 Hero（清晨青碧 · 暖金光） ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 20px; margin-top: 8px;
  background:
    radial-gradient(ellipse 55% 75% at 12% 0%, rgba(255, 255, 255, .75) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 88% 92%, rgba(201, 168, 106, .25) 0%, transparent 58%),
    linear-gradient(148deg, #dbeee9 0%, #e9f0e4 40%, #f4ecdc 100%);
  color: var(--ink);
  padding: 68px 48px 52px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .7);
  display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: center;
}
html[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 55% 75% at 12% 0%, rgba(108, 179, 168, .10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 88% 92%, rgba(221, 192, 119, .12) 0%, transparent 58%),
    linear-gradient(148deg, #26302e 0%, #2d3028 45%, #38302a 100%);
  border-color: rgba(239, 233, 220, .08);
}
.hero-text { position: relative; z-index: 3; min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; letter-spacing: 3px; color: var(--teal);
  margin-bottom: 18px; text-transform: uppercase; font-weight: 600;
}
.hero h1 {
  font-family: var(--serif); font-size: 44px; line-height: 1.26;
  font-weight: 800; margin-bottom: 18px;
  color: var(--ink);
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
  font-size: 16.5px; max-width: 480px; color: var(--ink2);
  margin-bottom: 30px; line-height: 1.8; font-weight: 500;
}
.hero-acts { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn.hero-btn { background: rgba(255, 255, 255, .55); border: 1px solid var(--line); color: var(--ink); backdrop-filter: blur(4px); }
.hero .btn.hero-btn:hover { background: rgba(255, 255, 255, .85); border-color: var(--teal); color: var(--teal); }
.hero .btn.hero-btn.solid { background: var(--teal); border-color: transparent; color: #fff; }
.hero .btn.hero-btn.solid:hover { background: var(--teal2); color: #fff; box-shadow: 0 6px 18px rgba(63, 131, 124, .35); }

/* Hero 瓶图区：右侧独立列，三瓶固定宽裁剪排列 */
.hero-bottles {
  display: flex; gap: 4px; align-items: flex-end;
  position: relative; z-index: 2; flex: none;
  justify-content: center;
}
.hero-bottles img {
  width: 102px; height: 132px; object-fit: cover; object-position: center 30%;
  border-radius: 8px;
  filter: drop-shadow(0 10px 18px rgba(63, 90, 86, .18));
  animation: hero-float 7s ease-in-out infinite;
}
.hero-bottles img:nth-child(2) { height: 152px; animation-delay: -2.4s; }
.hero-bottles img:nth-child(3) { height: 118px; animation-delay: -4.8s; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-bottles { display: none; }
}

/* 统计条 */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px;
}
.stat {
  background: var(--card); border: 1px solid var(--line2); border-radius: var(--r);
  padding: 20px 24px; text-align: center; box-shadow: var(--shadow);
  transition: transform .25s;
}
.stat:hover { transform: translateY(-3px); }
.stat .num { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--accent); }
.stat .lab { font-size: 13px; color: var(--sub); margin-top: 4px; }

/* ---------- 走进体系 · 立体化国学统计卡 ---------- */
.intro-stats { gap: 18px; }
.intro-stat {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px; padding: 32px 20px 22px;
  text-align: center;
  transform: perspective(800px) rotateX(3deg);
  transition: transform .4s cubic-bezier(.22,.8,.26,1), box-shadow .4s;
  box-shadow: 0 10px 28px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.15);
  min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.intro-stat:hover {
  transform: perspective(800px) translateY(-10px) rotateX(-1deg) scale(1.04);
  box-shadow: 0 22px 48px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.25);
}
.intro-stat::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.18) 0%, transparent 55%);
}
.intro-stat::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 45%; z-index: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.2), transparent);
  pointer-events: none;
}
/* 四卡独立配色 — 国学五行色系 */
.intro-stat[data-v="0"] { background: linear-gradient(150deg, #5a4a28 0%, #42351a 100%); }
.intro-stat[data-v="1"] { background: linear-gradient(150deg, #2a5a48 0%, #1a4234 100%); }
.intro-stat[data-v="2"] { background: linear-gradient(150deg, #2a3a5e 0%, #1a2a46 100%); }
.intro-stat[data-v="3"] { background: linear-gradient(150deg, #5e3a2a 0%, #46281a 100%); }
html[data-theme="dark"] .intro-stat[data-v="0"] { background: linear-gradient(150deg, #5a4a28 0%, #3a2e14 100%); }
html[data-theme="dark"] .intro-stat[data-v="1"] { background: linear-gradient(150deg, #2a5a48 0%, #1a3a2e 100%); }
html[data-theme="dark"] .intro-stat[data-v="2"] { background: linear-gradient(150deg, #2a3a5e 0%, #1a2a3e 100%); }
html[data-theme="dark"] .intro-stat[data-v="3"] { background: linear-gradient(150deg, #5e3a2a 0%, #3a2418 100%); }
/* 印章图标 */
.intro-stat .is-seal {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-family: var(--serif); font-size: 26px; font-weight: 700;
  background: rgba(255,255,255,.16); color: rgba(255,255,255,.95);
  box-shadow: 0 4px 14px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.2);
  backdrop-filter: blur(6px); margin-bottom: 14px; position: relative; z-index: 1;
}
/* 大数字 */
.intro-stat .num {
  font-family: var(--serif); font-size: 48px; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,.98); position: relative; z-index: 1;
  text-shadow: 0 3px 10px rgba(0,0,0,.4), 0 0 30px rgba(255,255,255,.15);
}
/* 标签 */
.intro-stat .lab {
  font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.82);
  margin-top: 8px; position: relative; z-index: 1; letter-spacing: 1px;
}
/* 装饰脚注 */
.intro-stat .is-foot {
  font-family: var(--serif); font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.45); margin-top: 12px; letter-spacing: 3px;
  position: relative; z-index: 1;
}

/* ---------- 今日能量 ---------- */
.today-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px;
}
.today-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line2); border-radius: 16px;
  padding: 22px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.today-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.today-card .tag {
  display: inline-flex; padding: 3px 10px; border-radius: 6px;
  font-size: 11px; letter-spacing: 2px; margin-bottom: 12px;
  background: rgba(183, 154, 74, .15); color: var(--gold); font-weight: 600;
}
.today-card.today-now .tag { background: rgba(176, 58, 46, .12); color: var(--accent); }
.today-card .bottle { height: 150px; display: flex; justify-content: center; margin: 6px 0 12px; }
.today-card .bottle img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); }
.today-card h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
.today-card .meta { font-size: 13.5px; font-weight: 600; color: var(--sub); margin-bottom: 10px; }
.today-card .desc { font-size: 15px; font-weight: 500; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.today-band {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}

/* 节气信息条 */
.term-strip {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(183, 154, 74, .10), rgba(176, 58, 46, .07));
  border: 1px solid var(--line2); border-radius: 16px; padding: 18px 24px; margin-bottom: 22px;
}
.term-strip .big { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--accent); }
.term-strip .info { flex: 1; min-width: 200px; font-size: 13px; color: var(--sub); }
.term-strip .info b { color: var(--ink); }

/* ---------- 呼吸引导 ---------- */
.breathe-wrap { display: flex; flex-direction: column; align-items: center; padding: 26px 10px; }
.breathe-orb {
  position: relative; width: 150px; height: 150px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--ba, #b03a2e) 88%, #fff 12%), var(--bb, #27404f));
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--ba, #b03a2e) 14%, transparent),
              0 18px 46px color-mix(in srgb, var(--ba, #b03a2e) 42%, transparent);
  transform: scale(.72);
  transition: transform var(--tdur, 4s) cubic-bezier(.45, .05, .35, 1),
              box-shadow var(--tdur, 4s) ease;
}
.breathe-orb.inhale { transform: scale(1.18); }
.breathe-halo {
  position: absolute; inset: -22px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--ba, #b03a2e) 45%, transparent);
  animation: halo-pulse 7s ease-in-out infinite;
}
@keyframes halo-pulse { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.07); opacity: .25; } }
.breathe-text {
  font-family: var(--serif); font-size: 26px; color: #fff; letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.breathe-caption { margin-top: 22px; font-size: 13px; color: var(--sub); letter-spacing: 1px; }

/* ---------- 图鉴（Atlas） ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line2); border-radius: 16px;
  padding: 16px 20px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-size: 13.5px; font-weight: 700; color: var(--sub); white-space: nowrap; letter-spacing: 1px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 14px;
  background: var(--bg2); min-width: 220px;
}
.search-box input {
  border: none; background: none; outline: none; font-size: 14px;
  color: var(--ink); width: 100%; font-family: inherit;
}
.search-box .ico { color: var(--sub); font-size: 15px; }
.result-count { font-size: 13px; color: var(--sub); margin-left: auto; white-space: nowrap; }
.result-count b { color: var(--accent); font-size: 16px; font-family: var(--serif); }

/* 月分组 */
.month-group { margin-bottom: 34px; }
.month-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
  cursor: pointer; user-select: none;
}
.month-badge {
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  padding: 4px 16px; border-radius: 8px; color: #fff;
  background: var(--mc, #27404f); box-shadow: 0 3px 10px color-mix(in srgb, var(--mc, #27404f) 40%, transparent);
  letter-spacing: 1px;
}
.month-meta { font-size: 13.5px; font-weight: 600; color: var(--sub); }
.month-meta b { color: var(--ink); }
.month-line { flex: 1; height: 1px; background: var(--line); }

/* 瓶卡片网格 */
.oil-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px;
}
.oil-card {
  position: relative; background: #fdfbf5; border: 1px solid rgba(45, 58, 56, .10);
  border-radius: 14px; padding: 16px 14px 14px; cursor: pointer;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  text-align: center; overflow: hidden;
}
html[data-theme="dark"] .oil-card { background: #323039; border-color: rgba(239, 233, 220, .12); }
.oil-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--uc, #888) 60%, transparent);
}
.oil-card .pic {
  height: 160px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px; position: relative;
  background: transparent;
  border-radius: 12px; padding: 6px;
}
html[data-theme="dark"] .oil-card .pic { background: transparent; }
.oil-card .pic img {
  max-height: 100%; width: auto; object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .14));
  transition: transform .25s;
}
.oil-card:hover .pic img { transform: scale(1.08); }
.oil-card .o-name {
  font-family: var(--serif); font-size: 17px; font-weight: 800; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink);
}
.oil-card .o-sub { font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oil-card .o-colors { display: flex; justify-content: center; gap: 5px; margin-bottom: 8px; }
.oil-card .o-colors i {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line);
}
html[data-theme="dark"] .oil-card .o-colors i { border-color: var(--bg); }
.oil-card .o-type {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(42, 47, 56, .72); color: #fff; letter-spacing: 1px;
}
.oil-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(176, 58, 46, .35), var(--shadow-lg); }
.oil-card.selected::after {
  content: '✓ 已选'; position: absolute; top: 10px; right: 10px;
  background: var(--accent); color: #fff; font-size: 10px;
  padding: 2px 8px; border-radius: 999px; letter-spacing: 1px;
}
.oil-card.is-today::before {
  content: '今日'; position: absolute; top: 10px; right: 10px;
  background: var(--gold); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; letter-spacing: 1px; z-index: 2;
}

/* ---------- 选择槽位条 ---------- */
.sel-bar {
  position: sticky; bottom: 18px; z-index: 90;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 22px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.sel-slots { display: flex; gap: 12px; flex: 1; min-width: 260px; }
.sel-slot {
  width: 92px; height: 76px; border-radius: 12px;
  border: 1.5px dashed var(--line); background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.sel-slot.filled { border-style: solid; border-color: color-mix(in srgb, var(--sc, #888) 60%, transparent); }
.sel-slot img { max-height: 90%; max-width: 80%; object-fit: contain; cursor: pointer; }
.sel-slot .idx { position: absolute; top: 3px; left: 7px; font-size: 10px; color: var(--sub); }
.sel-slot .rm {
  position: absolute; top: 2px; right: 4px; width: 18px; height: 18px;
  border-radius: 50%; border: none; background: rgba(176, 58, 46, .85);
  color: #fff; font-size: 11px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.sel-progress { font-size: 13px; color: var(--sub); white-space: nowrap; }
.sel-progress b { color: var(--accent); font-size: 17px; font-family: var(--serif); }

/* ---------- 聚焦浮层 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 18, 24, .55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: view-in .25s ease;
}
.focus-card {
  background: var(--card); border-radius: 22px; max-width: 880px; width: 100%;
  max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 340px 1fr;
  animation: focus-pop .35s cubic-bezier(.34, 1.3, .64, 1);
}
@keyframes focus-pop { from { opacity: 0; transform: scale(.92) translateY(18px); } to { opacity: 1; transform: none; } }
.focus-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--uc, #999) 30%, transparent) 0%, transparent 62%),
    linear-gradient(170deg, var(--bg2), var(--card));
}
.focus-visual .glow {
  position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: color-mix(in srgb, var(--uc, #999) 32%, transparent);
  filter: blur(60px); animation: halo-pulse 6s ease-in-out infinite;
}
.focus-visual img.bottle-main {
  position: relative; z-index: 2; height: 300px; width: auto; object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .3));
  transition: transform .5s cubic-bezier(.22, .8, .36, 1);
}
.focus-visual:hover img.bottle-main { transform: rotate(-2.5deg) scale(1.05); }
.focus-body { padding: 32px 34px; }
.focus-body h2 { font-family: var(--serif); font-size: 27px; margin-bottom: 6px; }
.focus-body .focus-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.focus-body p.exp { font-size: 15.5px; font-weight: 500; color: var(--ink2); margin-bottom: 14px; }
.focus-acts { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.focus-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(42, 47, 56, .08); color: var(--ink); font-size: 15px;
}
.focus-close:hover { background: var(--accent); color: #fff; }

/* 层色说明块 */
.layer-box {
  border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
  border: 1px solid var(--line2); background: var(--bg2);
  border-left: 4px solid var(--lc, #888);
}
.layer-box .layer-tt {
  display: flex; align-items: center; gap: 8px; font-weight: 700;
  font-size: 13.5px; margin-bottom: 6px;
}
.layer-box .layer-tt .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lc, #888); }
.layer-box p { font-size: 15px; font-weight: 500; color: var(--ink2); }

/* ---------- 单瓶详情页 ---------- */
.oil-detail { display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: start; }
.detail-visual {
  position: sticky; top: 88px;
  background: var(--card); border-radius: 20px; border: 1px solid var(--line2);
  padding: 30px; text-align: center; box-shadow: var(--shadow);
}
.detail-visual .stage {
  position: relative; height: 340px; display: flex; align-items: center; justify-content: center;
  border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--uc, #999) 24%, transparent), transparent 65%),
    linear-gradient(170deg, var(--bg2), var(--bg));
}
.detail-visual .stage img { height: 92%; width: auto; object-fit: contain; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .25)); animation: hero-float 8s ease-in-out infinite; }
.detail-info h2 { font-family: var(--serif); font-size: 34px; margin-bottom: 4px; }
.detail-info .sub-line { color: var(--sub); font-size: 14px; margin-bottom: 20px; }

/* 信息网格 */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 22px;
}
.info-cell {
  background: var(--card); border: 1px solid var(--line2); border-radius: 12px;
  padding: 12px 16px;
}
.info-cell .k { font-size: 12.5px; font-weight: 700; color: var(--sub); letter-spacing: 1.5px; margin-bottom: 4px; }
.info-cell .v { font-size: 16px; font-weight: 700; color: var(--ink); }
.info-cell .v.color-cell { display: flex; align-items: center; gap: 7px; }
.info-cell .v .dot { width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }

/* 疗愈方案卡 */
.therapy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.therapy-card {
  background: var(--card); border: 1px solid var(--line2); border-radius: 14px;
  padding: 18px 20px; position: relative; overflow: hidden;
}
.therapy-card::before {
  content: attr(data-ico);
  position: absolute; right: 14px; top: 8px; font-size: 34px; opacity: .12; font-family: var(--serif);
}
.therapy-card h4 {
  font-family: var(--serif); font-size: 16px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px; color: var(--accent);
}
.therapy-card p, .therapy-card li { font-size: 15px; font-weight: 500; color: var(--ink2); }
.therapy-card ul { padding-left: 20px; }
.therapy-card li { margin-bottom: 5px; }
.therapy-note { font-size: 13px; font-weight: 500; color: var(--sub); margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }

/* ---------- 报告页 ---------- */
.report-hero {
  background:
    radial-gradient(ellipse 55% 75% at 12% 0%, rgba(255, 255, 255, .6) 0%, transparent 58%),
    radial-gradient(ellipse 50% 70% at 88% 92%, rgba(201, 168, 106, .22) 0%, transparent 56%),
    linear-gradient(148deg, #dbeee9 0%, #e9f0e4 42%, #f4ecdc 100%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px; padding: 36px 40px; color: var(--ink);
  margin-bottom: 26px; position: relative; overflow: hidden;
}
html[data-theme="dark"] .report-hero {
  background:
    radial-gradient(ellipse 55% 75% at 12% 0%, rgba(108, 179, 168, .10) 0%, transparent 58%),
    radial-gradient(ellipse 50% 70% at 88% 92%, rgba(221, 192, 119, .12) 0%, transparent 56%),
    linear-gradient(148deg, #26302e 0%, #2d3028 45%, #38302a 100%);
  border-color: rgba(239, 233, 220, .08);
}
.report-hero h2 { font-family: var(--serif); font-size: 30px; margin-bottom: 8px; color: var(--ink); }
.report-hero .rmeta { font-size: 13px; color: var(--sub); }
.report-bottles { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.r-bottle {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 14px; padding: 10px 18px 10px 10px; backdrop-filter: blur(4px);
}
html[data-theme="dark"] .r-bottle { background: rgba(0, 0, 0, .22); border-color: rgba(239, 233, 220, .12); }
.r-bottle img { height: 66px; width: auto; }
.r-bottle .bn { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); }
.r-bottle .bc { font-size: 11px; opacity: .75; color: var(--sub); }

.dim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.dim-card {
  background: var(--card); border: 1px solid var(--line2); border-radius: 14px;
  padding: 18px 20px;
}
.dim-card .dt { font-size: 12px; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px; font-weight: 700; }
.dim-card h4 { font-family: var(--serif); font-size: 17px; margin-bottom: 8px; }
.dim-card p { font-size: 15px; font-weight: 500; color: var(--ink2); }

.chain { display: flex; flex-wrap: wrap; gap: 0; align-items: stretch; }
.chain-node {
  flex: 1; min-width: 150px; position: relative;
  background: var(--card); border: 1px solid var(--line2); border-radius: 12px;
  padding: 14px 16px; margin: 0 10px 10px 0;
}
.chain-node .cn-idx {
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold);
  color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 8px; font-weight: 700;
}
.chain-node .cn-t { font-size: 15px; font-weight: 700; font-weight: 700; margin-bottom: 4px; }
.chain-node .cn-d { font-size: 14px; font-weight: 500; color: var(--sub); }

/* 图表容器 */
.chart-card {
  background: var(--card); border: 1px solid var(--line2); border-radius: 16px;
  padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.chart-card h3 {
  font-family: var(--serif); font-size: 18px; margin-bottom: 4px;
  display: flex; align-items: center; gap: 10px;
}
.chart-card .c-sub { font-size: 13.5px; font-weight: 600; color: var(--sub); margin-bottom: 14px; }
.chart-wrap { position: relative; width: 100%; }
.chart-wrap canvas { width: 100%; display: block; }
#wheel-canvas { cursor: pointer; max-width: 620px; margin: 0 auto; aspect-ratio: 1; }
#radar-canvas { aspect-ratio: 1.15; max-width: 460px; margin: 0 auto; }
#yy-canvas { aspect-ratio: 2.1; }
#spec-upper, #spec-lower { aspect-ratio: 2.4; }

/* ---------- 日志页 ---------- */
.record-item {
  display: flex; gap: 16px; align-items: center; padding: 16px 20px;
  background: var(--card); border: 1px solid var(--line2); border-radius: 14px;
  margin-bottom: 12px; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.record-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.record-item .r-date { font-size: 13.5px; font-weight: 600; color: var(--sub); min-width: 118px; }
.record-item .r-oils { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.record-item .r-oils img { height: 44px; width: auto; }
.record-item .r-title { font-size: 16px; font-weight: 700; }
.record-item .r-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.followup-log {
  border-left: 3px solid var(--gold); padding: 10px 16px; margin-top: 10px;
  background: var(--bg2); border-radius: 0 10px 10px 0; font-size: 13px;
}

/* 空状态 */
.empty {
  text-align: center; padding: 60px 20px; color: var(--sub);
}
.empty .e-ico { font-size: 44px; margin-bottom: 14px; opacity: .5; }
.empty h3 { font-family: var(--serif); font-size: 20px; color: var(--ink2); margin-bottom: 8px; }
.empty p { font-size: 13.5px; margin-bottom: 18px; }

/* ---------- 理论页 ---------- */
.theory-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.theory-nav {
  position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border: 1px solid var(--line2); border-radius: 14px; padding: 10px;
}
.theory-nav button {
  text-align: left; padding: 9px 14px; border-radius: 9px; border: none;
  background: none; color: var(--sub); font-size: 13.5px; transition: all .18s;
}
.theory-nav button:hover { color: var(--ink); background: var(--line2); }
.theory-nav button.on { background: rgba(176, 58, 46, .09); color: var(--accent); font-weight: 600; }
.theory-body h3 {
  font-family: var(--serif); font-size: 25px; margin: 34px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.theory-body h3:first-child { margin-top: 0; }
.theory-body p { font-size: 16.5px; font-weight: 500; color: var(--ink2); margin-bottom: 12px; }
.quote-block {
  border-left: 4px solid var(--gold); background: var(--bg2);
  padding: 16px 22px; border-radius: 0 12px 12px 0; margin: 16px 0;
  font-size: 16px; color: var(--ink2); font-weight: 500;
}
.quote-block b { color: var(--accent); }
.wx-badge {
  display: inline-flex; width: 34px; height: 34px; border-radius: 9px;
  align-items: center; justify-content: center; color: #fff;
  font-family: var(--serif); font-size: 16px; margin-right: 8px;
}
.org-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line2); }
.org-row:last-child { border-bottom: none; }
.org-row .org-ico {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #fff; font-family: var(--serif);
}
.org-row .org-t { font-weight: 700; font-size: 14.5px; }
.org-row .org-d { font-size: 13.5px; font-weight: 600; color: var(--sub); }

/* Tab */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tab {
  padding: 10px 20px; border: none; background: none; font-size: 14.5px;
  color: var(--sub); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .2s;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* 音频控制 */
.scape-ctl {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(183, 154, 74, .10), rgba(176, 58, 46, .06));
  border: 1px solid var(--line2); border-radius: 14px; padding: 14px 20px; margin-bottom: 20px;
}
.scape-ctl .sc-t { font-family: var(--serif); font-weight: 700; font-size: 15px; }
.scape-ctl .sc-d { font-size: 13.5px; font-weight: 600; color: var(--sub); flex: 1; min-width: 180px; }
.play-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none; flex: none;
  background: linear-gradient(135deg, var(--accent), #8e2f26); color: #fff; font-size: 17px;
  box-shadow: 0 6px 16px rgba(176, 58, 46, .35); transition: all .22s;
}
.play-btn:hover { transform: scale(1.08); }
.play-btn.playing { background: linear-gradient(135deg, #2c3e50, #22374f); }
.play-btn.playing::before { content: '❚❚'; font-size: 13px; }

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 36px;
  background: var(--card2);
}
footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .f-brand { font-family: var(--serif); font-weight: 700; font-size: 15px; }
footer .f-note { font-size: 12px; color: var(--sub); max-width: 560px; }

/* ---------- 步骤条（疗愈解析向导） ---------- */
.wizard-steps {
  display: flex; align-items: center; gap: 0; margin-bottom: 30px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.wz-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--sub); min-width: 86px;
}
.wz-num {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--line2); color: var(--sub); font-size: 14px;
  border: 1.5px solid var(--line); transition: all .25s;
}
.wz-step.on { color: var(--accent); }
.wz-step.on .wz-num { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 14px rgba(176, 58, 46, .35); }
.wz-step.done { color: var(--ink); }
.wz-step.done .wz-num { background: var(--gold); color: #fff; border-color: var(--gold); }
.wz-line { flex: 1; height: 2px; background: var(--line); margin: 0 10px; margin-bottom: 28px; }

/* ---------- 确认页 ---------- */
.confirm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.confirm-card {
  background: var(--card); border: 1px solid var(--line2); border-radius: 16px;
  padding: 20px 18px; text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.confirm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.confirm-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--uc, #888), var(--gold));
}
.cc-order {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: rgba(176, 58, 46, .1); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px;
}
.cc-pic { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.cc-pic img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); }
.confirm-card h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.cc-meta { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cc-desc { font-size: 14px; font-weight: 500; color: var(--ink2); margin-bottom: 12px; min-height: 42px; }

/* ---------- 预约（精心版 · 参照原项目疗愈师邀约） ---------- */
.bk-hero {
  border-radius: 20px; padding: 34px 38px; margin-bottom: 24px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 75% at 12% 0%, rgba(255, 255, 255, .6) 0%, transparent 58%),
    radial-gradient(ellipse 50% 70% at 88% 92%, rgba(201, 168, 106, .22) 0%, transparent 56%),
    linear-gradient(148deg, #dbeee9 0%, #e9f0e4 42%, #f4ecdc 100%);
  border: 1px solid rgba(255, 255, 255, .7);
}
html[data-theme="dark"] .bk-hero {
  background:
    radial-gradient(ellipse 55% 75% at 12% 0%, rgba(108, 179, 168, .10) 0%, transparent 58%),
    radial-gradient(ellipse 50% 70% at 88% 92%, rgba(221, 192, 119, .12) 0%, transparent 56%),
    linear-gradient(148deg, #26302e 0%, #2d3028 45%, #38302a 100%);
  border-color: rgba(239, 233, 220, .08);
}
.bk-hero h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 6px; color: var(--ink); }
.bk-hero .bk-sub { font-size: 14px; font-weight: 500; color: var(--sub); }
.bk-hero .bk-flow { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.bk-hero .bk-flow .chip { background: rgba(255, 255, 255, .55); }
html[data-theme="dark"] .bk-hero .bk-flow .chip { background: rgba(0, 0, 0, .22); }

/* 疗愈师网格 */
.th-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px;
}
.th-card {
  position: relative; text-align: center; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line2); border-radius: 16px;
  padding: 18px 14px 14px; transition: all .22s;
}
.th-card:hover { border-color: var(--gold2); transform: translateY(-3px); box-shadow: var(--shadow); }
.th-card.selected {
  border-color: var(--teal); box-shadow: 0 0 0 2px rgba(63, 131, 124, .22), var(--shadow);
  background: linear-gradient(180deg, var(--teal-soft), var(--card) 55%);
}
.th-card.th-org {
  border-style: dashed; border-color: var(--gold2);
  background: linear-gradient(180deg, var(--gold-soft), var(--card) 60%);
}
.th-card.th-org.selected { border-style: solid; box-shadow: 0 0 0 2px rgba(201, 168, 106, .3), var(--shadow); }
.th-avatar {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(135deg, var(--teal), var(--gold)); color: #fff;
  font-family: var(--serif); font-size: 24px;
  box-shadow: 0 4px 14px rgba(63, 90, 86, .22);
}
.th-avatar img { width: 100%; height: 100%; object-fit: cover; }
.th-card.th-org .th-avatar { background: linear-gradient(135deg, var(--gold), #8d6e3c); }
.th-card.th-add .th-avatar { background: var(--bg2); color: var(--sub); border: 1.5px dashed var(--line); }
.th-name { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.th-skill { font-size: 13px; font-weight: 500; color: var(--sub); line-height: 1.6; min-height: 40px; }
.th-pending { color: var(--gold); font-size: 11.5px; }
.th-wxid { color: var(--teal); font-size: 11.5px; }
.th-del {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px;
  border-radius: 50%; border: none; background: rgba(181, 69, 60, .12); color: var(--accent);
  font-size: 11px; line-height: 1; opacity: 0; transition: all .2s;
}
.th-card:hover .th-del { opacity: 1; }
.th-del:hover { background: var(--accent); color: #fff; }
.th-wx {
  margin-top: 8px; width: 100%; padding: 6px 0; border-radius: 8px; border: 1px solid var(--teal);
  background: var(--teal-soft); color: var(--teal); font-size: 12px; cursor: pointer;
}
.th-wx:hover { background: var(--teal); color: #fff; }
.th-tip { font-size: 11.5px; color: var(--gold); font-weight: 400; }

/* 添加疗愈师表单 */
.th-form {
  margin-top: 14px; border-radius: 16px; padding: 20px;
  background: var(--card2); border: 1px dashed var(--gold2);
}
.th-form-title { font-weight: 700; font-size: 14.5px; margin-bottom: 12px; color: var(--gold); letter-spacing: 1px; }
.th-form-row { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.th-avatar-pick {
  width: 62px; height: 62px; border-radius: 50%; flex: none; cursor: pointer;
  border: 1.5px dashed var(--line); background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--sub); text-align: center; line-height: 1.5; overflow: hidden;
}
.th-avatar-pick:hover { border-color: var(--gold2); color: var(--gold); }
.th-avatar-pick img { width: 100%; height: 100%; object-fit: cover; }
.th-form-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.th-form-fields input {
  border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 12px;
  font-size: 13.5px; background: var(--card); color: var(--ink); outline: none; font-family: inherit;
}
.th-form-fields input:focus { border-color: var(--gold2); }
.th-form textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 12px;
  font-size: 13.5px; background: var(--card); color: var(--ink); outline: none;
  font-family: inherit; resize: vertical; min-height: 52px; margin-bottom: 12px;
}
.th-form-actions { display: flex; gap: 10px; justify-content: flex-end; }

.booking-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
.bk-rec-strip {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: var(--gold-soft); border: 1px solid rgba(201, 168, 106, .35);
  border-radius: 14px; padding: 12px 18px; margin-bottom: 18px; font-size: 13.5px;
}
.bk-rec-strip img { height: 44px; width: auto; }
.bk-rec-strip b { color: var(--gold); }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 14px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font-size: 15px; font-family: inherit; font-weight: 500;
  background: var(--bg2); color: var(--ink); outline: none; transition: border-color .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--teal); }
.form-row textarea { min-height: 74px; resize: vertical; }
.form-row input[readonly] { opacity: .85; }
.booking-note {
  font-size: 13.5px; font-weight: 600; color: var(--sub); margin-top: 10px;
  padding: 10px 14px; background: var(--bg2); border-radius: 8px;
}
.my-bookings { margin-top: 26px; }
.bk-item {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line2); border-radius: 12px;
  padding: 13px 18px; margin-bottom: 10px;
}
.bk-item .bk-status { margin-left: auto; }
.bk-empty {
  text-align: center; padding: 26px; color: var(--sub); font-size: 13.5px;
  border: 1.5px dashed var(--line); border-radius: 14px;
}

@media (max-width: 1024px) {
  .booking-grid { grid-template-columns: 1fr; }
}

/* ---------- 疗愈文化动画区（暖金背景 · 粒子缓缓上升） ---------- */
.culture-stage {
  position: relative; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201, 168, 106, .28) 0%, transparent 60%),
    radial-gradient(ellipse 45% 60% at 50% 20%, rgba(212, 185, 106, .15) 0%, transparent 55%),
    linear-gradient(160deg, #2a2418 0%, #332b1c 50%, #3d3320 100%);
  padding: 30px; min-height: 420px; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 60px rgba(201, 168, 106, .08);
}
.culture-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.culture-caption {
  position: absolute; left: 24px; bottom: 16px; z-index: 3;
  font-size: 13px; color: rgba(240, 220, 170, .82); letter-spacing: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

/* ---------- 粒子剧场（Three.js 原版引擎区块） ---------- */
.particle-stage {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #08090c;
  min-height: 460px; box-shadow: var(--shadow-lg);
}
.particle-stage canvas { display: block; }
.particle-stage .ps-hint {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
  text-align: center; font-size: 12px; letter-spacing: 3px;
  color: rgba(240, 234, 220, .4); pointer-events: none;
}
.particle-stage .ps-corner {
  position: absolute; top: 16px; left: 20px; z-index: 3;
  font-size: 12px; letter-spacing: 3px; color: rgba(240, 234, 220, .45);
  pointer-events: none;
}

/* ---------- 首页目录卡（3D 立体化 · 独特配色 · 均衡布局） ---------- */
.home-catalog {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 860px) { .home-catalog { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .home-catalog { grid-template-columns: 1fr; } }
.catalog-card {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: 18px; padding: 28px 24px 26px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform .35s cubic-bezier(.22,.8,.26,1), box-shadow .35s;
  transform: perspective(800px) rotateX(2deg);
  min-height: 180px; display: flex; flex-direction: column;
}
.catalog-card:hover {
  transform: perspective(800px) translateY(-8px) rotateX(-1deg) scale(1.03);
  box-shadow: 0 20px 44px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.catalog-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.18) 0%, transparent 50%);
}
.catalog-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%; z-index: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.18), transparent);
  pointer-events: none;
}
/* 六卡独立配色 — 与页面浅色/深色基调截然不同 */
.catalog-card[data-variant="0"] { background: linear-gradient(145deg, #2a4a6e 0%, #1a3a5a 100%); }
.catalog-card[data-variant="1"] { background: linear-gradient(145deg, #3a6e52 0%, #2a5a42 100%); }
.catalog-card[data-variant="2"] { background: linear-gradient(145deg, #6e5a2a 0%, #5a4818 100%); }
.catalog-card[data-variant="3"] { background: linear-gradient(145deg, #6e3a3a 0%, #5a2828 100%); }
.catalog-card[data-variant="4"] { background: linear-gradient(145deg, #4a3a6e 0%, #38285a 100%); }
.catalog-card[data-variant="5"] { background: linear-gradient(145deg, #2a6e6e 0%, #185a5a 100%); }
.catalog-card .cc-ico {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin-bottom: 16px;
  font-family: var(--serif); position: relative; z-index: 1;
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.95);
  box-shadow: 0 4px 12px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
}
.catalog-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; margin-bottom: 8px; color: #fff; position: relative; z-index: 1; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.catalog-card p { font-size: 14px; color: rgba(255,255,255,.75); position: relative; z-index: 1; line-height: 1.6; flex: 1; }
.catalog-card .cc-arrow {
  position: absolute; top: 24px; right: 22px; z-index: 1;
  color: rgba(255,255,255,.4); font-size: 20px; transition: all .3s;
}
.catalog-card:hover .cc-arrow { color: #fff; transform: translateX(4px) translateY(-2px); }

@media (max-width: 860px) {
  .confirm-grid { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
}
/* ---------- 登录页（沉浸式粒子叙事） ---------- */
body.landing-on .nav, body.landing-on footer { display: none !important; }
body.landing-on main { padding: 0; }
body.landing-on #toast-root { z-index: 999; }

.landing {
  position: fixed; inset: 0; z-index: 5;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(183, 154, 74, .10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(176, 58, 46, .08), transparent 65%),
    linear-gradient(165deg, #10141c 0%, #1a2030 45%, #241d14 100%);
  overflow: hidden; display: flex; flex-direction: column;
}
.landing #ld-fx, .landing #landing-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.landing #ld-fx canvas { display: block; }
.ld-eyebrow {
  position: absolute; top: 34px; left: 0; right: 0; z-index: 3;
  text-align: center; font-size: 13.5px; letter-spacing: 8px;
  color: rgba(242, 237, 224, .55); pointer-events: none;
  animation: ld-fade 2.2s ease both .3s;
}
.ld-sub {
  position: absolute; left: 0; right: 0; bottom: 30%; z-index: 3;
  text-align: center; font-size: 15.5px; letter-spacing: 4px;
  color: rgba(242, 237, 224, .82); pointer-events: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity 1.1s ease, transform 1.1s ease;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.ld-sub.show { opacity: 1; transform: none; }
.ld-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 0 24px 30px; animation: ld-fade 1.6s ease both 1.2s;
}
.ld-loc { font-size: 13.5px; color: rgba(242, 237, 224, .68); letter-spacing: 1px; }
.ld-loc b { color: var(--gold2); }
.ld-enter {
  padding: 15px 58px; border-radius: 999px; border: 1.5px solid rgba(212, 185, 106, .55);
  background: rgba(212, 185, 106, .12); color: #f2ede0; font-size: 16.5px;
  letter-spacing: 6px; font-family: var(--serif); cursor: pointer;
  backdrop-filter: blur(6px); transition: all .3s;
  animation: ld-breath 3.4s ease-in-out infinite 2s;
}
.ld-enter:hover {
  background: linear-gradient(135deg, rgba(212,185,106,.3), rgba(176,58,46,.3));
  border-color: var(--gold2); transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(212, 185, 106, .3);
}
@keyframes ld-breath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 185, 106, .0); }
  50% { box-shadow: 0 0 30px 4px rgba(212, 185, 106, .22); }
}
@keyframes ld-fade { from { opacity: 0; } to { opacity: 1; } }
.ld-skip {
  position: absolute; top: 30px; right: 34px; z-index: 4;
  background: none; border: none; color: rgba(242, 237, 224, .5);
  font-size: 13px; letter-spacing: 2px; cursor: pointer; padding: 6px 10px;
  transition: color .2s;
}
.ld-skip:hover { color: var(--gold2); }
.ld-foot {
  font-size: 11.5px; color: rgba(242, 237, 224, .38); text-align: center;
  line-height: 1.9; letter-spacing: 1px;
}
@media (max-width: 720px) {
  .ld-eyebrow { font-size: 11px; letter-spacing: 5px; top: 26px; }
  .ld-sub { font-size: 13px; bottom: 34%; }
  .ld-enter { padding: 13px 44px; font-size: 15px; letter-spacing: 4px; }
}

@media (max-width: 1024px) {
  .hero { padding: 54px 32px 44px; }
  .hero h1 { font-size: 36px; }
  .hero-bottles { display: none; }
  .oil-detail { grid-template-columns: 1fr; }
  .detail-visual { position: static; }
  .therapy-grid { grid-template-columns: 1fr; }
  .theory-layout { grid-template-columns: 1fr; }
  .theory-nav { position: static; flex-direction: row; overflow-x: auto; }
  .focus-card { grid-template-columns: 1fr; max-width: 560px; }
  .focus-visual { padding: 24px; }
  .focus-visual img.bottle-main { height: 200px; }
}
@media (max-width: 720px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .intro-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .intro-stat { min-height: 170px; padding: 22px 14px 16px; }
  .intro-stat .num { font-size: 36px; }
  .intro-stat .is-seal { width: 40px; height: 40px; font-size: 21px; margin-bottom: 10px; }
  .intro-stat .is-foot { font-size: 11px; letter-spacing: 2px; }
  .today-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 14px; }
  .oil-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .sel-bar { bottom: 10px; padding: 10px 14px; gap: 10px; }
  .sel-slot { width: 74px; height: 64px; }
  .nav-inner { gap: 8px; }
  .result-count { display: none; }
  .search-box { min-width: 150px; flex: 1; }
  .detail-visual .stage { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
}

/* ---------- 登录页诗意文案（字幕轮播） ---------- */
.ld-poem {
  position: absolute; left: 50%; bottom: 14%; z-index: 3;
  transform: translateX(-50%);
  text-align: center; max-width: 620px; width: 90%;
  pointer-events: none; height: 40px;
}
.ld-poem-line {
  font-family: var(--serif);
  font-size: 15.5px; line-height: 1.8;
  color: rgba(242, 237, 224, .78);
  letter-spacing: 3px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
.ld-poem-line.show { opacity: 1; transform: none; }
@media (max-width: 720px) {
  .ld-poem { bottom: 18%; max-width: 92%; }
  .ld-poem-line { font-size: 13px; letter-spacing: 2px; }
  .ld-sub { bottom: 36%; }
}





