
/* ============ 基础与设计变量 ============ */
:root {
  --paper: #f6f1e4;
  --paper-2: #fbf7ec;
  --paper-3: #efe7d3;
  --ink: #2f2a24;
  --ink-soft: #5c5346;
  --ink-faint: #8d8171;
  --cinnabar: #a63a2b;
  --cinnabar-dark: #8c2f22;
  --moss: #4a6352;
  --moss-deep: #38503f;
  --ochre: #8a6d4b;
  --line: #ddd2bd;
  --line-soft: #e7ddc9;
  --shadow: rgba(64, 53, 37, 0.08);
  --shadow-hover: rgba(64, 53, 37, 0.14);
  --font-title: "KaiTi", "STKaiti", "楷体", "楷体_GB2312", "DFKai-SB", serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(74, 99, 82, 0.05), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(166, 58, 43, 0.04), transparent 30%),
    radial-gradient(circle at 6% 82%, rgba(138, 109, 75, 0.05), transparent 28%);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* ============ 顶部导航 ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 241, 228, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

/* 顶栏右侧操作组：搜索框 + 返回按钮(hidden) + 暗色切换（min-width:0 允许在窄屏压缩，避免溢出） */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 4px 8px 4px 0;
  border-radius: 8px;
}

.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--cinnabar);
  border-radius: 6px;
  color: var(--cinnabar);
  font-size: 15px;
  line-height: 24px;
  text-align: center;
  background: rgba(166, 58, 43, 0.06);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-6deg);
  background: rgba(166, 58, 43, 0.14);
  box-shadow: 0 2px 8px rgba(166, 58, 43, 0.18);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 14px;
  /* transform 由 GSAP animateDetailIn 驱动（x:8 入场），transition 仅保留非 transform 属性避免拖尾 */
  transition: border-color 0.22s, color 0.22s, box-shadow 0.22s;
}

.back-btn:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(64, 53, 37, 0.10);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  text-align: center;
  padding: 58px 20px 20px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(74, 99, 82, 0.10), transparent 70%);
}

.hero::before { width: 280px; height: 280px; top: -70px; left: -90px; }
.hero::after  { width: 220px; height: 220px; bottom: -40px; right: -60px; background: radial-gradient(circle, rgba(166, 58, 43, 0.07), transparent 70%); }

.hero-badge {
  display: inline-block;
  padding: 5px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  background: rgba(251, 247, 236, 0.7);
}

.hero-title {
  margin-top: 22px;
  font-family: var(--font-title);
  font-size: clamp(46px, 8vw, 72px);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--ink);
  position: relative;
  display: inline-block;
}

.hero-title::after {
  content: "中国名茶";
  display: block;
  margin-top: 6px;
  font-size: clamp(17px, 2.6vw, 22px);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--cinnabar);
}

.hero-sub {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: clamp(14px, 2.2vw, 17px);
  letter-spacing: 0.18em;
}

.hero-art {
  margin: 26px auto 0;
  max-width: 920px;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 16px 40px var(--shadow);
  will-change: transform;
}

.hero-note {
  margin-top: 18px;
  font-family: var(--font-title);
  font-size: 15px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
}

/* ============ 筛选区 ============ */
.filters {
  margin-top: 46px;
  padding: 20px 20px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px var(--shadow);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-row + .filter-row { margin-top: 12px; }

.filter-label {
  flex: none;
  font-family: var(--font-title);
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  margin-right: 4px;
}

.chip {
  flex: none;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  /* transform 由 GSAP 驱动，transition 仅保留非 transform 属性避免冲突 */
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.chip:hover {
  border-color: var(--moss);
  color: var(--moss);
  box-shadow: 0 2px 10px rgba(74, 99, 82, 0.16);
}

.chip.active {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #fdf9ef;
  box-shadow: 0 2px 12px rgba(166, 58, 43, 0.28);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.chip.region.active {
  background: var(--moss);
  border-color: var(--moss);
  box-shadow: 0 2px 12px rgba(74, 99, 82, 0.28);
}

.region-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
}

.region-scroll::-webkit-scrollbar { height: 5px; }
.region-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.filter-status {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}

.filter-status .count {
  font-family: var(--font-title);
  font-size: 15px;
  color: var(--cinnabar);
}

/* ============ 卡片网格 ============ */
.list-view { padding: 38px 20px 10px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  /* transform 由 GSAP 驱动，transition 仅保留非 transform 属性避免冲突 */
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  will-change: transform;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--moss), transparent 80%);
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 4px 14px rgba(64, 53, 37, 0.06), 0 20px 44px var(--shadow-hover);
  border-color: var(--line);
  outline: none;
}

.card:hover::before { opacity: 0.9; }

.card-svg-wrap {
  padding: 12px 12px 0;
}

.card-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.card:hover .card-svg-wrap svg,
.card:focus-visible .card-svg-wrap svg {
  transform: scale(1.045);
}

.card-body {
  padding: 14px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-name {
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

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

.tag {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(251, 247, 236, 0.8);
}

.tag.red { border-color: rgba(166, 58, 43, 0.35); color: var(--cinnabar); background: rgba(166, 58, 43, 0.06); }
.tag.green { border-color: rgba(74, 99, 82, 0.35); color: var(--moss-deep); background: rgba(74, 99, 82, 0.08); }

.card-tagline {
  font-size: 13.5px;
  color: var(--ink-faint);
  line-height: 1.65;
}

.card-enter {
  margin-top: auto;
  align-self: flex-end;
  font-size: 13px;
  color: var(--cinnabar);
  letter-spacing: 0.1em;
}

.empty {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-faint);
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 0.2em;
}

/* ============ 详情视图 ============ */
.detail-view { padding: 34px 20px 60px; }

.detail-head {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
  align-items: start;
}

.detail-art {
  position: sticky;
  top: 78px;
}

.detail-art svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 14px 36px var(--shadow);
  will-change: transform;
}

.detail-info {
  padding-top: 6px;
}

.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.detail-name {
  margin-top: 14px;
  font-family: var(--font-title);
  font-size: clamp(30px, 4.6vw, 40px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.detail-origin {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 15px;
}

.detail-origin b { color: var(--cinnabar); font-weight: 400; }

.detail-tagline {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(166, 58, 43, 0.05);
  border-left: 3px solid var(--cinnabar);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.detail-quote {
  margin-top: 14px;
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
}

.dim-section-title {
  margin: 46px 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dim-section-title span {
  font-family: var(--font-title);
  font-size: 24px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.dim-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.dimensions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.dim {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px 20px;
  /* transform 由 GSAP 入场动画驱动，transition 仅保留非 transform 属性 */
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.dim:hover {
  box-shadow: 0 10px 26px var(--shadow);
  border-color: var(--line);
}

.dim h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 12px;
}

.dim-no {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--cinnabar);
  border-radius: 50%;
  color: var(--cinnabar);
  font-size: 13px;
  font-family: var(--font-title);
}

.dim p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.dim p + p { margin-top: 10px; }

.dim .suit {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(74, 99, 82, 0.07);
  font-size: 13.5px;
}

.dim .suit strong {
  color: var(--moss-deep);
  font-weight: 600;
  margin-right: 4px;
}

.dim .warn {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(166, 58, 43, 0.06);
  font-size: 13.5px;
}

.dim .warn strong {
  color: var(--cinnabar);
  font-weight: 600;
  margin-right: 4px;
}

/* ============ 页脚 ============ */
.footer {
  margin-top: 30px;
  padding: 34px 20px 40px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer p:first-child { font-family: var(--font-title); font-size: 16px; letter-spacing: 0.14em; }

.footer-note { margin-top: 8px; font-size: 12.5px; color: var(--ink-faint); }

/* ============ GSAP 动效增强（配合 tea-anim.js） ============ */
.topbar.scrolled {
  box-shadow: 0 6px 18px rgba(64, 53, 37, 0.08);
}

/* 减弱动态偏好：关闭过渡与动画，内容直接可见 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .detail-head { grid-template-columns: 1fr; }
  .detail-art { position: static; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .filters { padding: 16px 14px 14px; }
  .filter-label { font-size: 14px; }
  .chip { padding: 5px 13px; font-size: 13px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .dimensions { grid-template-columns: 1fr; gap: 14px; }
  .dim { padding: 15px 16px; }
  .list-view, .detail-view { padding: 24px 14px 8px; }
  .hero { padding: 40px 14px 12px; }
  .brand { font-size: 17px; }
  .back-btn { font-size: 13px; padding: 6px 12px; }
  .filter-status { font-size: 12.5px; }
}

/* ============ 新增：顶部模块导航 + 全局搜索 ============ */
.topnav-row {
  display: flex;
  align-items: center;
  padding: 6px 20px 10px;
  border-top: 1px solid var(--line-soft);
  background: rgba(251, 247, 236, 0.55);
}

.search-box { position: relative; flex: 0 0 300px; min-width: 170px; }

.search-box .search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-faint);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 7px 30px 7px 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(166, 58, 43, 0.08);
}

.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* 顶栏内搜索框紧凑化：适配 topbar-inner 58px 高度（作用域限定顶栏，不影响 season-search-box 等其他场景；
   flex 尺寸沿用基础 .search-box 规则（桌面 0 0 300px，≤640 由媒体查询改为 1 1 auto）） */
.topbar-inner .search-box .search-icon { left: 9px; }
.topbar-inner .search-box input {
  padding: 5px 28px 5px 30px;
  font-size: 13px;
  min-width: 0;
}

.search-clear {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

.search-clear:hover { background: var(--cinnabar); color: #fdf9ef; }

.navtabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.navtabs::-webkit-scrollbar { display: none; }

.navtab {
  flex: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.navtab:hover { color: var(--moss); border-color: var(--line); }

.navtab.active {
  background: var(--ink);
  color: #fdf9ef;
  box-shadow: 0 3px 12px rgba(47, 42, 36, 0.22);
}

/* ============ 新增：模块容器 ============ */
.module { padding-top: 6px; }

.module-head { margin-top: 34px; }

.module-head:focus { outline: none; }

.module-head h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-title);
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.module-head h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.module-sub { margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; max-width: 860px; }

.module-count { margin-left: auto; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }

/* ============ 新增：茶叶百科 ============ */
.type-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 16px 18px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px var(--shadow);
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
  padding-bottom: 10px;
}

.type-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  will-change: transform;
}

.type-card:hover,
.type-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(64, 53, 37, 0.06), 0 20px 44px var(--shadow-hover);
  border-color: var(--line);
  outline: none;
}

.type-card.open { border-color: rgba(166, 58, 43, 0.45); }

.type-card-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; }

.type-emoji { font-size: 30px; line-height: 1; }

.type-name { font-family: var(--font-title); font-size: 22px; letter-spacing: 0.06em; color: var(--ink); }

.type-pinyin { margin-top: 2px; font-size: 12.5px; color: var(--ink-faint); }

.type-badges { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 12px; }

.type-card-summary { padding: 0 20px 14px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }

.type-card-summary b { color: var(--moss-deep); font-weight: 600; }

.type-card-more {
  margin-top: auto;
  padding: 12px 20px 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--cinnabar);
  letter-spacing: 0.08em;
  text-align: right;
}

.type-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.55s ease, opacity 0.4s ease;
}

.type-card.open .type-detail { max-height: 3400px; opacity: 1; }

.type-dim { padding: 14px 20px 0; }

.type-dim-h {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--moss-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-dim-h::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
  opacity: 0.6;
}

.type-dim p { margin-top: 5px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.85; }

.type-teas { padding: 14px 20px 6px; }

.type-teas-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.type-note {
  margin: 12px 20px 0;
  padding: 8px 12px;
  background: rgba(166, 58, 43, 0.05);
  border-left: 3px solid var(--cinnabar);
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: var(--cinnabar);
  line-height: 1.7;
}

.type-link-price {
  margin: 14px 20px 18px;
  align-self: flex-start;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--moss-deep);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.22s, color 0.22s, box-shadow 0.22s;
}

.type-link-price:hover {
  border-color: var(--moss);
  color: var(--moss-deep);
  box-shadow: 0 2px 10px rgba(74, 99, 82, 0.18);
}

/* ============ 新增：茶史文化 ============ */
.timeline { position: relative; margin: 30px 0 20px; padding-left: 34px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--moss), var(--ochre), var(--cinnabar));
  opacity: 0.35;
}

.tl-item { position: relative; padding: 0 0 28px; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(166, 58, 43, 0.12);
}

.tl-era {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--cinnabar);
  border: 1px solid rgba(166, 58, 43, 0.4);
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(166, 58, 43, 0.04);
}

.tl-title { margin-top: 10px; font-family: var(--font-title); font-size: 22px; font-weight: 400; letter-spacing: 0.05em; color: var(--ink); }

.tl-year { margin-left: 10px; font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.02em; }

.tl-text { margin-top: 8px; max-width: 780px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.9; }

/* ============ 新增：选购指南 ============ */
.buy-section { margin-top: 36px; }

.buy-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.buy-no {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--moss);
  color: var(--moss-deep);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-family: var(--font-title);
}

.buy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }

.buy-card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px 18px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.buy-card:hover { box-shadow: 0 10px 26px var(--shadow); border-color: var(--line); }

.buy-card h4 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 8px;
}

.buy-card ul { list-style: none; }

.buy-card li {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.buy-card li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--cinnabar);
  font-weight: 700;
}

.buy-card li b { color: var(--moss-deep); font-weight: 600; }

.buy-tip {
  margin-top: 22px;
  padding: 12px 16px;
  background: rgba(74, 99, 82, 0.06);
  border-left: 3px solid var(--moss);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ============ 新增：价格对比 ============ */
.price-disclaimer {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(74, 99, 82, 0.07);
  border: 1px dashed rgba(74, 99, 82, 0.35);
  border-radius: 10px;
  font-size: 13px;
  color: var(--moss-deep);
  line-height: 1.8;
}

.price-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; font-size: 12.5px; color: var(--ink-faint); }

.price-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding: 16px 18px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px var(--shadow);
}

.price-toolbar .price-count { align-self: flex-end; }

.price-hint { font-size: 12.5px; color: var(--ink-faint); }

.price-table-wrap { margin-top: 18px; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.price-table thead th {
  background: var(--paper-3);
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink);
  white-space: nowrap;
}

.price-table thead th.sorted { color: var(--cinnabar); }

.price-table th .sort-btn {
  font: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
}

.price-table th .sort-btn:hover { color: var(--cinnabar); }

.sort-arrow { font-size: 11px; opacity: 0.75; }

.price-table tbody tr { transition: background-color 0.2s ease; }

.price-table tbody tr:hover { background: rgba(74, 99, 82, 0.05); }

.price-table .type-cell { font-family: var(--font-title); font-size: 15px; letter-spacing: 0.03em; }

.price-table .price-cell { color: var(--cinnabar); font-family: var(--font-title); white-space: nowrap; }

.price-table .stars { color: var(--ochre); letter-spacing: 1px; font-size: 13.5px; white-space: nowrap; }

.price-table .stars .off { opacity: 0.28; }

.price-value-notes {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.value-notes-title {
  font-family: var(--font-title);
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 10px;
}

.value-note-row {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  padding: 5px 0;
}

.value-note-row b { flex: none; width: 96px; color: var(--moss-deep); font-weight: 600; }

.price-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.8;
}

.price-cards { display: none; }

.pc-card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px var(--shadow);
}

.pc-head { display: flex; align-items: center; gap: 10px; }

.pc-head .type-name { font-size: 19px; }

.pc-head .stars { color: var(--ochre); letter-spacing: 1px; font-size: 13px; margin-left: 2px; }

.pc-head .stars .off { opacity: 0.28; }

.pc-rows { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }

.pc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line-soft);
  padding-bottom: 7px;
}

.pc-row .platform { font-size: 12.5px; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line); }

.pc-row .price { font-family: var(--font-title); color: var(--cinnabar); }

.pc-note { margin-top: 8px; font-size: 12px; color: var(--ink-faint); line-height: 1.7; }

/* ============ 2026-08 增强：价格对比（茶种 / 四平台 / 店铺 / 数据说明） ============ */
#priceVarietyRow .chip { font-size: 13px; padding: 5px 13px; }

.price-table .num-cell { font-family: var(--font-title); white-space: nowrap; }
.price-table .variety-name { color: var(--moss-deep); font-size: 13px; }
.price-table .variety-name.cat { opacity: 0.55; font-size: 12px; }
.pc-row .pc-avg { font-style: normal; font-size: 11px; color: var(--ink-faint); margin-left: 6px; }

.price-compare-section { margin-top: 22px; }
.table-scroll { overflow-x: auto; padding-bottom: 6px; }
.pcmp-title { font-family: var(--font-title); font-size: 15px; letter-spacing: 0.05em; color: var(--moss-deep); margin-bottom: 8px; }
.pcmp-table th, .pcmp-table td { text-align: center; white-space: nowrap; }
.pcmp-plat { font-weight: 600; }
.pcmp-cell { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.pcmp-min { font-family: var(--font-title); color: var(--cinnabar); }
.pcmp-avg { font-size: 11.5px; color: var(--ink-faint); }
.best-platform { background: rgba(212, 175, 55, 0.10) !important; }
.best-platform .pcmp-plat { color: var(--ochre); font-weight: 700; }
.best-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: linear-gradient(135deg, #e8b63c, #c9951e);
  color: #3a2c05;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 6px rgba(201, 149, 30, 0.4);
}

.shops-section { margin-top: 26px; }
.shops-filter-note { font-size: 12.5px; color: var(--ink-faint); margin: 4px 0 10px; line-height: 1.7; }
.shops-title { font-family: var(--font-title); font-size: 16px; letter-spacing: 0.06em; color: var(--ink); margin: 14px 0 8px; }
.shops-table .badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--moss);
  color: var(--moss);
  white-space: nowrap;
}
.best-shop { background: rgba(212, 175, 55, 0.10) !important; }
.best-shop .shop-name { color: var(--ochre); font-weight: 600; }
.shops-table .coupon { color: var(--moss-deep); }
.shops-table .final { color: var(--cinnabar); font-weight: 600; }

.price-data-note {
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.8;
}
.price-data-note summary { cursor: pointer; font-weight: 600; color: var(--moss-deep); }
.price-data-note p { margin: 6px 0 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ 新增模块响应式 ============ */
@media (max-width: 980px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .buy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topnav-row { padding: 6px 14px 10px; }
  .search-box { flex: 1 1 auto; min-width: 0; }
  .topbar-actions { flex: 1 1 auto; gap: 6px; }
  .topbar-actions .dark-toggle { flex: none; }
  .topbar-inner .search-box input { font-size: 12.5px; padding: 5px 26px 5px 28px; }
  .navtabs { gap: 4px; }
  .navtab { padding: 6px 13px; font-size: 13.5px; }
  .type-grid { grid-template-columns: 1fr; gap: 14px; }
  .module-head { margin-top: 26px; }
  .module-sub { font-size: 13.5px; }
  .type-toolbar, .price-toolbar { padding: 14px 12px 12px; }
  .timeline { padding-left: 28px; }
  .tl-item::before { left: -28px; width: 10px; height: 10px; }
  .tl-title { font-size: 19px; }
  .buy-grid { gap: 12px; }
  .buy-card { padding: 14px 14px; }
  .price-table-wrap { display: none; }
  .price-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
  .value-note-row { flex-direction: column; gap: 2px; }
  .value-note-row b { width: auto; }
}

/* ============ 2026-08 增强：茶叶实拍图 ============ */
.card-svg-wrap .card-img,
.detail-art .detail-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.card:hover .card-img,
.card:focus-visible .card-img {
  transform: scale(1.045);
}
.detail-art .detail-img {
  border-radius: 14px;
  box-shadow: 0 14px 36px var(--shadow);
  max-height: 420px;
  width: 100%;
  object-fit: cover;
}

/* ============ 2026-08 增强：冲泡参数速查 ============ */
.brew-table-wrap { margin-top: 18px; overflow-x: auto; }
.brew-table th, .brew-table td { padding: 9px 12px; font-size: 13.5px; }
.brew-name { font-family: var(--font-title); font-size: 15px; letter-spacing: 0.04em; color: var(--ink); }

/* ============ 2026-08 增强：双茶五维对比 ============ */
.cmp-pickers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 18px;
}
.cmp-pick { min-width: 180px; }
.compare-select {
  width: 100%;
  padding: 9px 12px;
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.compare-select:hover, .compare-select:focus {
  outline: none;
  border-color: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(166, 58, 43, 0.08);
}
.cmp-vs {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--cinnabar);
  letter-spacing: 0.08em;
}
.cmp-board {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 10px 30px var(--shadow);
}
.cmp-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 8px;
}
.cmp-tea h3 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.cmp-tea p { margin-top: 4px; font-size: 13px; color: var(--ink-faint); }
.cmp-tea.tea-a { text-align: left; border-left: 4px solid var(--cinnabar); padding-left: 12px; }
.cmp-tea.tea-b { text-align: right; border-right: 4px solid var(--moss); padding-right: 12px; }
.cmp-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cmp-row:last-child { border-bottom: none; }
.cmp-label {
  font-family: var(--font-title);
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.cmp-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp-bar-wrap { display: flex; flex-direction: column; gap: 4px; }
.cmp-bar-wrap.right { align-items: flex-end; text-align: right; }
.cmp-bar {
  height: 16px;
  border-radius: 999px;
  position: relative;
  min-width: 8px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.cmp-bar.bar-a { background: linear-gradient(90deg, var(--cinnabar), #d98e52); }
.cmp-bar.bar-b { background: linear-gradient(90deg, var(--moss), #7a9a7e); }
.cmp-bar span {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #fff;
  opacity: 0.92;
}
.cmp-desc { font-size: 12px; color: var(--ink-faint); line-height: 1.5; }

/* ============ 2026-08 增强：价格条形图 ============ */
.price-chart-section { margin-top: 26px; }
.price-chart-title {
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 4px;
}
.chart-note { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 12px; }
.chart-scroll { overflow-x: auto; padding-bottom: 8px; }
.bar-chart { display: flex; gap: 18px; min-width: 780px; padding: 14px 6px 6px; }
.bar-group {
  flex: 1;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 10px 10px;
  min-width: 96px;
}
.bar-group-label {
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 10px;
  white-space: nowrap;
}
.bar-tracks { display: flex; gap: 8px; justify-content: center; height: 170px; align-items: flex-end; }
.bar-track {
  flex: 1;
  max-width: 52px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}
.bar {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--cinnabar), #b04a32);
  position: relative;
  transform-origin: bottom center;
  box-shadow: 0 3px 10px rgba(166, 58, 43, 0.18);
}
.bar-group:nth-child(even) .bar { background: linear-gradient(180deg, var(--moss), #6b8a70); }
.bar-val {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.bar-plat { margin-top: 8px; font-size: 11px; color: var(--ink-faint); }

/* 时间线滚动生长（配合 tea-anim.js） */
.timeline.tl-grow::before { display: none; }
.timeline-line-grow {
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--moss), var(--ochre), var(--cinnabar));
  opacity: 0.35;
  transform: scaleY(0);
  transform-origin: top center;
  z-index: 0;
  pointer-events: none;
}
.timeline-line-grow + .tl-item,
.tl-item { position: relative; z-index: 1; }
.tl-item { transition: opacity 0.5s ease, transform 0.5s ease; }

/* 按钮涟漪（纯 CSS 微交互） */
.ripple-btn { position: relative; overflow: hidden; }
.ripple-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255, 255, 255, 0.5), transparent 42%);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.4s ease, transform 0.5s ease;
  pointer-events: none;
}
.ripple-btn:active::after {
  opacity: 1;
  transform: scale(2.2);
  transition: opacity 0s, transform 0.6s ease;
}

@media (max-width: 640px) {
  .cmp-head { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cmp-tea h3 { font-size: 19px; }
  .cmp-row { grid-template-columns: 42px 1fr; gap: 8px; }
  .cmp-bars { gap: 10px; }
  .cmp-pick { min-width: 130px; }
  .brew-table-wrap { display: block; }
}

/* ============ 2026-08 v3：时令推荐 / 汤色色卡 / 茶具 / 产区地图 / 辨茶挑战 / 我的茶单 / 分享图 / 茶诗茶典 ============ */

/* ---- T2 汤色色卡 ---- */
.card-name { display: flex; align-items: center; gap: 8px; }
.liquor-dot {
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(47, 42, 36, 0.18);
  box-shadow: 0 0 0 2px rgba(251, 247, 236, 0.9), 0 1px 4px rgba(64, 53, 37, 0.2);
}
.liquor-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(251, 247, 236, 0.75);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}
.liquor-label {
  flex: none;
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--cinnabar);
  letter-spacing: 0.1em;
}
.liquor-track {
  position: relative;
  flex: 1;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(47, 42, 36, 0.12);
  overflow: hidden;
}
.liquor-track i {
  position: absolute;
  left: 6px; top: 50%;
  width: 10px; height: 10px;
  transform: translateY(-50%);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.18);
}
.liquor-name {
  flex: none;
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

/* ---- T5 茶具 ---- */
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.detail-action-btn {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.22s, color 0.22s, background-color 0.22s, box-shadow 0.22s;
}
.detail-action-btn:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
  box-shadow: 0 2px 10px rgba(166, 58, 43, 0.14);
}
.detail-action-btn.active {
  background: var(--cinnabar);
  border-color: var(--cinnabar);
  color: #fdf9ef;
}
.detail-action-btn.tasted-done {
  background: var(--moss);
  border-color: var(--moss);
  color: #fdf9ef;
}
.teaware-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(251, 247, 236, 0.75);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}
.teaware-art {
  flex: none;
  width: 120px;
}
.teaware-art svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
}
.teaware-info h4 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.teaware-ware {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--moss-deep);
  font-family: var(--font-title);
  letter-spacing: 0.04em;
}
.teaware-hint {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.6;
}
.detail-share-wrap {
  margin-top: 20px;
  text-align: center;
}
.detail-share-wrap canvas {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 14px 36px var(--shadow);
}
.detail-share-wrap .share-dl-hint {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ---- T3 时令推荐 ---- */
.season-banner {
  margin: 26px auto 0;
  max-width: 1100px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(166, 58, 43, 0.06), rgba(74, 99, 82, 0.06));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px var(--shadow);
}
.season-banner-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.season-badge {
  flex: none;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--cinnabar);
  color: #fdf9ef;
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 0.12em;
  box-shadow: 0 2px 8px rgba(166, 58, 43, 0.24);
}
.season-title {
  font-family: var(--font-title);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.season-note {
  flex: 1;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.season-toggle {
  flex: none;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 26px;
  text-align: center;
  transition: border-color 0.22s, color 0.22s, transform 0.22s;
}
.season-toggle:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.season-banner.collapsed .season-toggle { transform: rotate(-90deg); }
.season-banner.collapsed .season-body { display: none; }
.season-body {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.season-tea {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.22s, color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.season-tea:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(166, 58, 43, 0.12);
}
.season-tea .season-tea-cat {
  font-size: 11px;
  color: var(--ink-faint);
  font-family: var(--font-body);
}

/* ---- T6 辨茶挑战 ---- */
.quiz-wrap {
  margin-top: 22px;
}
.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.quiz-sub {
  font-size: 13.5px;
  color: var(--ink-soft);
}
.quiz-restart {
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--cinnabar);
  font-size: 13px;
  font-family: var(--font-title);
  letter-spacing: 0.06em;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.quiz-restart:hover { border-color: var(--cinnabar); box-shadow: 0 2px 10px rgba(166, 58, 43, 0.14); }
.quiz-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.quiz-question {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px 18px;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.quiz-question:hover { box-shadow: 0 10px 26px var(--shadow); border-color: var(--line); }
.quiz-q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.quiz-q-no {
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--cinnabar);
}
.quiz-q-type {
  font-size: 11.5px;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}
.quiz-media {
  margin-top: 12px;
  text-align: center;
}
.quiz-media img {
  max-width: 100%;
  max-height: 160px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  object-fit: cover;
}
.quiz-liquor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper-3);
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--ink-soft);
}
.quiz-liquor-swatch {
  width: 34px; height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(47, 42, 36, 0.15);
}
.quiz-q-text {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
}
.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.quiz-opt:hover { border-color: var(--moss); background: rgba(74, 99, 82, 0.05); }
.quiz-opt input { accent-color: var(--cinnabar); }
.quiz-opt.selected { border-color: var(--cinnabar); background: rgba(166, 58, 43, 0.06); color: var(--ink); }
.quiz-opt.correct { border-color: var(--moss); background: rgba(74, 99, 82, 0.12); color: var(--moss-deep); }
.quiz-opt.wrong { border-color: var(--cinnabar); background: rgba(166, 58, 43, 0.1); color: var(--cinnabar); }
.quiz-explain {
  margin-top: 10px;
  padding: 8px 12px;
  border-left: 3px solid var(--moss);
  background: rgba(74, 99, 82, 0.06);
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.quiz-submit {
  display: block;
  margin: 20px auto 0;
  padding: 10px 34px;
  border-radius: 999px;
  background: var(--cinnabar);
  border: 1px solid var(--cinnabar);
  color: #fdf9ef;
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 14px rgba(166, 58, 43, 0.26);
  transition: transform 0.2s, box-shadow 0.2s;
}
.quiz-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(166, 58, 43, 0.32); }
.quiz-result {
  margin-top: 22px;
  padding: 22px 24px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow);
  text-align: center;
}
.quiz-result .quiz-score {
  font-family: var(--font-title);
  font-size: 40px;
  color: var(--cinnabar);
}
.quiz-result .quiz-score small { font-size: 18px; color: var(--ink-faint); }
.quiz-result .quiz-comment {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink);
  font-family: var(--font-title);
  letter-spacing: 0.06em;
}
.quiz-result .quiz-reco {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.quiz-reco-btn {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--moss-deep);
  font-family: var(--font-title);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.quiz-reco-btn:hover { border-color: var(--moss); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(74, 99, 82, 0.16); }

/* ---- T7 我的茶单 ---- */
.fav-empty {
  text-align: center;
  padding: 54px 20px;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-faint);
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 2;
}
.fav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.fav-card {
  display: flex;
  gap: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 18px var(--shadow);
}
.fav-card img {
  flex: none;
  width: 84px; height: 84px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  object-fit: cover;
}
.fav-card-body { flex: 1; min-width: 0; }
.fav-card-name {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.05em;
  cursor: pointer;
}
.fav-card-name:hover { color: var(--cinnabar); }
.fav-card-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-faint);
}
.fav-card-note {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-style: italic;
}
.fav-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.fav-del-btn {
  font-size: 12px;
  color: var(--cinnabar);
  border: 1px solid rgba(166, 58, 43, 0.35);
  border-radius: 999px;
  padding: 3px 12px;
  background: rgba(166, 58, 43, 0.04);
  transition: background-color 0.2s;
}
.fav-del-btn:hover { background: rgba(166, 58, 43, 0.12); }
.fav-tasted-badge {
  font-size: 11px;
  color: var(--moss-deep);
  border: 1px solid rgba(74, 99, 82, 0.35);
  border-radius: 999px;
  padding: 2px 10px;
  background: rgba(74, 99, 82, 0.07);
}
.fav-sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.fav-sort-row .filter-label { margin-right: 0; }

/* ---- T10 茶诗茶典 ---- */
.poems-section { margin-top: 34px; }
.poems-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.poems-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.poem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.poem-card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px 20px;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.poem-card:hover { box-shadow: 0 10px 26px var(--shadow); border-color: var(--line); }
.poem-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.poem-title {
  font-family: var(--font-title);
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.poem-by {
  font-size: 12.5px;
  color: var(--ink-faint);
}
.poem-dynasty {
  font-size: 11.5px;
  color: var(--cinnabar);
  border: 1px solid rgba(166, 58, 43, 0.35);
  border-radius: 999px;
  padding: 1px 10px;
}
.poem-text {
  margin-top: 12px;
  font-family: var(--font-title);
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: pre-line;
}
.poem-note {
  margin-top: 10px;
  padding: 8px 12px;
  border-left: 3px solid var(--ochre);
  background: rgba(138, 109, 75, 0.07);
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}
.poem-note b { color: var(--ochre); font-weight: 600; }

/* ---- B2 茶人茶事 ---- */
.people-section { margin-top: 34px; }
.people-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.people-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.people-sub { margin-top: 6px; font-size: 13px; color: var(--ink-faint); }
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.people-card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.people-card:hover { box-shadow: 0 10px 26px var(--shadow); border-color: var(--line); }
.people-card-head { display: flex; align-items: center; gap: 12px; }
.people-icon {
  flex: none;
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(74, 99, 82, 0.1);
  font-size: 20px;
}
.people-titles { flex: 1; min-width: 0; }
.people-name {
  font-family: var(--font-title);
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.people-era {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.people-arrow {
  flex: none;
  color: var(--cinnabar);
  font-size: 14px;
  transition: transform 0.25s;
}
.people-card.open .people-arrow { transform: rotate(180deg); }
.people-role {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.85;
}
.people-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.people-card.open .people-detail {
  max-height: 260px;
  opacity: 1;
  margin-top: 12px;
}
.people-poem {
  padding: 10px 14px;
  border-left: 3px solid var(--cinnabar);
  background: rgba(166, 58, 43, 0.05);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-title);
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.9;
  letter-spacing: 0.03em;
}
.people-poem b { color: var(--cinnabar); font-weight: 600; margin-right: 4px; }

/* ---- B2 节气茶事 ---- */
.season-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px auto 6px;
}
.season-search-box { max-width: 320px; }
.season-count {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.season-today-btn {
  margin-left: auto;
  padding: 7px 16px;
  border: 1px solid var(--cinnabar);
  border-radius: 999px;
  background: rgba(166, 58, 43, 0.06);
  color: var(--cinnabar);
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.season-today-btn:hover { background: var(--cinnabar); color: #fbf7ec; box-shadow: 0 4px 14px rgba(166, 58, 43, 0.28); }
.season-group { margin-top: 26px; }
.season-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.season-group-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--moss);
  border-radius: 50%;
  color: var(--moss-deep);
  font-size: 14px;
}
.season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.season-card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}
.season-card:hover { box-shadow: 0 10px 26px var(--shadow); border-color: var(--line); transform: translateY(-2px); }
.season-card.today {
  border-color: var(--cinnabar);
  background: linear-gradient(180deg, rgba(166, 58, 43, 0.05), var(--paper-2) 45%);
  box-shadow: 0 8px 24px rgba(166, 58, 43, 0.12);
}
.season-card-head { display: flex; align-items: center; gap: 10px; }
.season-card-icon { font-size: 22px; flex: none; }
.season-card-titles { flex: 1; min-width: 0; }
.season-card-name {
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.season-today-badge {
  flex: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--cinnabar);
  color: #fbf7ec;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.season-card-range {
  display: block;
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.season-card-arrow {
  flex: none;
  color: var(--cinnabar);
  font-size: 12px;
  transition: transform 0.25s;
}
.season-card.open .season-card-arrow { transform: rotate(180deg); }
.season-card-teas {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--moss-deep);
  line-height: 1.7;
}
.season-card-teas b { color: var(--ink-faint); font-weight: 400; margin-right: 4px; }
.season-card-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
}
.season-card.open .season-card-detail {
  max-height: 520px;
  opacity: 1;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.season-solar-tip {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.9;
}
.season-solar-tip b {
  color: var(--cinnabar);
  font-weight: 600;
  margin-right: 4px;
}
.season-tea-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.season-tea-label {
  font-size: 12px;
  color: var(--ink-faint);
}
.season-tea-chip {
  padding: 4px 12px;
  border: 1px solid var(--moss);
  border-radius: 999px;
  background: rgba(74, 99, 82, 0.07);
  color: var(--moss-deep);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  transition: all 0.2s;
}
.season-tea-chip:hover:not(:disabled) { background: var(--moss); color: #fbf7ec; }
.season-tea-chip:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---- B2 茶叶百科免责声明 ---- */
.encyc-disclaimer {
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(74, 99, 82, 0.05);
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---- B2 品茶指南卡片分享按钮 ---- */
.guide-sub {
  margin: 8px 2px 2px;
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.card-share-btn {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.03em;
  transition: all 0.2s;
}
.card-share-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); background: rgba(166, 58, 43, 0.05); }

/* 新增模块响应式 */
@media (max-width: 980px) {
  .fav-grid { grid-template-columns: repeat(2, 1fr); }
  .poem-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .season-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .quiz-list { grid-template-columns: 1fr; gap: 12px; }
  .fav-grid { grid-template-columns: 1fr; gap: 12px; }
  .poem-grid { gap: 12px; }
  .poem-card { padding: 14px 14px; }
  .season-banner { padding: 12px 14px; }
  .season-note { flex-basis: 100%; }
  .teaware-box { flex-direction: column; align-items: flex-start; }
  .teaware-art { width: 100%; max-width: 200px; }
  .detail-actions { gap: 6px; }
  .detail-action-btn { padding: 6px 12px; font-size: 12.5px; }
  .people-grid { grid-template-columns: 1fr; gap: 12px; }
  .season-grid { grid-template-columns: 1fr; gap: 12px; }
  .season-today-btn { margin-left: 0; }
  .season-search-box { max-width: 100%; }
}

/* ============ 茶事工具（B1 快赢：冲泡计时 / 口味画像 / 每日一茶） ============ */
.tools-stack { display: flex; flex-direction: column; gap: 22px; padding-bottom: 40px; }
.tools-card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px var(--shadow);
  padding: 24px 26px;
}
.tools-card-head { margin-bottom: 16px; }
.tools-card-head h3 { font-family: var(--font-title); font-size: 21px; letter-spacing: 0.05em; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.tools-card-no { display: inline-block; min-width: 34px; height: 34px; line-height: 34px; text-align: center; background: var(--cinnabar); color: #f7f2e7; border-radius: 8px; font-size: 15px; letter-spacing: 0.1em; }
.tools-card-head p { margin-top: 6px; color: var(--ink-faint); font-size: 13.5px; }

/* 工具通用按钮 */
.tools-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border-radius: 999px; font-size: 14px; letter-spacing: 0.04em; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s; }
.tools-btn-primary { background: var(--cinnabar); color: #fbf7ec; box-shadow: 0 4px 14px rgba(166, 58, 43, 0.24); }
.tools-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(166, 58, 43, 0.32); }
.tools-btn-ghost { border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-soft); }
.tools-btn-ghost:hover { border-color: var(--moss); color: var(--moss); box-shadow: 0 4px 14px rgba(74, 99, 82, 0.14); }

/* 冲泡计时器 */
.brew-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 26px; align-items: start; }
.brew-field-label { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin: 12px 0 8px; letter-spacing: 0.05em; }
.brew-types { display: flex; flex-wrap: wrap; gap: 8px; }
.brew-type { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2); font-size: 13.5px; color: var(--ink-soft); transition: all 0.2s; }
.brew-type:hover { border-color: var(--moss); color: var(--moss); }
.brew-type.active { border-color: var(--cinnabar); background: rgba(166, 58, 43, 0.07); color: var(--cinnabar); font-weight: 600; }
.brew-type-emoji { font-size: 15px; }
.brew-field { margin-top: 2px; }
.brew-select { width: 100%; max-width: 320px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); color: var(--ink); font-size: 14px; font-family: inherit; }
.brew-select:focus { outline: 2px solid rgba(74, 99, 82, 0.35); border-color: var(--moss); }
.brew-params { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; margin-top: 14px; }
.brew-param { background: rgba(74, 99, 82, 0.05); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 8px; text-align: center; }
.brew-param-k { display: block; font-size: 11.5px; color: var(--ink-faint); margin-bottom: 3px; }
.brew-param-v { display: block; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.brew-tea-line { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.brew-tea-line b { color: var(--cinnabar); }
.brew-tip { margin-top: 8px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.7; }
.brew-timer { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px 8px; }
.brew-ring-wrap { position: relative; width: 220px; height: 220px; }
.brew-ring { width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 9; }
.ring-fg { fill: none; stroke: var(--cinnabar); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 540.35; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 0.4s linear; }
.brew-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; font-family: var(--font-title); font-size: 52px; color: var(--ink); letter-spacing: 0.02em; }
.brew-unit { font-size: 17px; color: var(--ink-faint); margin-left: 2px; font-family: var(--font-body); }
.brew-steep { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.12em; }
.brew-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.brew-done { font-size: 16px; color: var(--cinnabar); font-weight: 600; letter-spacing: 0.06em; animation: brewPulse 0.9s ease-in-out infinite; }
@keyframes brewPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* 口味画像 */
.palette-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.palette-bar { flex: 1; height: 6px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.palette-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--moss), var(--ochre)); border-radius: 999px; transition: width 0.35s ease; }
.palette-step { font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.06em; }
.palette-q { font-family: var(--font-title); font-size: 19px; color: var(--ink); margin: 4px 0 18px; letter-spacing: 0.04em; }
.palette-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.palette-opt { padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); color: var(--ink-soft); font-size: 14.5px; text-align: left; transition: all 0.2s; }
.palette-opt:hover { border-color: var(--moss); background: rgba(74, 99, 82, 0.06); color: var(--moss); transform: translateY(-2px); box-shadow: 0 4px 12px var(--shadow); }
.palette-result { text-align: center; }
.palette-seal { display: inline-block; width: 64px; height: 64px; line-height: 64px; font-size: 30px; background: rgba(166, 58, 43, 0.08); border: 1.5px solid var(--cinnabar); border-radius: 12px; margin-bottom: 12px; }
.palette-name { font-family: var(--font-title); font-size: 23px; color: var(--cinnabar); letter-spacing: 0.06em; margin-bottom: 10px; }
.palette-desc { max-width: 620px; margin: 0 auto 10px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.85; }
.palette-fit { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(74, 99, 82, 0.1); color: var(--moss-deep); font-size: 13px; margin-bottom: 16px; }
.palette-sub { font-size: 13px; color: var(--ink-faint); margin-bottom: 10px; letter-spacing: 0.1em; }
.palette-teas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto; }
.palette-tea { text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); transition: all 0.2s; }
.palette-tea:hover { border-color: var(--cinnabar); box-shadow: 0 6px 16px var(--shadow); transform: translateY(-2px); }
.palette-tea-name { display: block; font-family: var(--font-title); font-size: 17px; color: var(--ink); }
.palette-tea-cat { display: inline-block; margin: 5px 0 4px; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: rgba(74, 99, 82, 0.1); color: var(--moss-deep); }
.palette-tea-tag { display: block; font-size: 12px; color: var(--ink-faint); line-height: 1.6; min-height: 38px; }
.palette-tea-go { display: block; margin-top: 8px; font-size: 12.5px; color: var(--cinnabar); letter-spacing: 0.06em; }
.palette-tip { margin: 14px auto 4px; max-width: 640px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.7; }
.palette-actions { margin-top: 16px; }

/* 每日一茶 */
.daily-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(74, 99, 82, 0.06), rgba(166, 58, 43, 0.04)); border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px 22px; }
.daily-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--cinnabar); color: #fbf7ec; font-size: 12px; letter-spacing: 0.14em; margin-bottom: 10px; }
.daily-name { font-family: var(--font-title); font-size: 24px; color: var(--ink); letter-spacing: 0.06em; }
.daily-cat { margin-left: 10px; font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-body); letter-spacing: 0.04em; }
.daily-reason { margin-top: 8px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; max-width: 640px; }
.daily-brew { margin-top: 6px; font-size: 12.5px; color: var(--ink-faint); }
.daily-actions { display: flex; gap: 10px; }

/* 辨茶挑战：成绩称号 + 分享卡入口（B1） */
.quiz-title-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.quiz-title { display: inline-block; padding: 3px 18px; border-radius: 999px; background: var(--cinnabar); color: #fbf7ec; font-family: var(--font-title); font-size: 20px; letter-spacing: 0.12em; }
.quiz-title-desc { font-size: 13px; color: var(--ink-faint); letter-spacing: 0.06em; }
.quiz-share-row { margin-top: 16px; text-align: center; }
.quiz-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; border: 1px solid var(--cinnabar); border-radius: 999px; color: var(--cinnabar); font-size: 14px; letter-spacing: 0.05em; background: rgba(166, 58, 43, 0.05); transition: all 0.2s; }
.quiz-share-btn:hover { background: var(--cinnabar); color: #fbf7ec; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(166, 58, 43, 0.3); }

/* 辨茶挑战：战绩榜 */
.board-wrap { margin-top: 26px; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: 0 6px 20px var(--shadow); padding: 22px 24px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.board-head h3 { font-family: var(--font-title); font-size: 19px; color: var(--ink); letter-spacing: 0.06em; }
.board-clear { font-size: 12.5px; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; transition: all 0.2s; }
.board-clear:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.board-table-wrap { overflow-x: auto; }
.board-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.board-table th { text-align: left; padding: 9px 12px; font-size: 12.5px; color: var(--ink-faint); font-weight: 600; border-bottom: 1px solid var(--line); letter-spacing: 0.06em; }
.board-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
.board-table tbody tr:last-child td { border-bottom: none; }
.board-table tr.board-current { background: rgba(166, 58, 43, 0.07); }
.board-table tr.board-current td { color: var(--cinnabar); font-weight: 600; }
.board-rank { font-family: var(--font-title); color: var(--ochre); }
.board-title { color: var(--moss-deep); }
.board-date { color: var(--ink-faint); font-size: 12.5px; }
.board-note { margin-top: 10px; font-size: 12px; color: var(--ink-faint); }
.board-empty { padding: 26px 10px; text-align: center; color: var(--ink-faint); font-size: 14px; }

/* 成绩分享弹层 */
.share-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; background: rgba(47, 42, 36, 0.5); padding: 20px; }
.share-modal[hidden] { display: none; }
.share-modal-box { background: var(--paper-2); border-radius: 16px; padding: 20px; max-width: 640px; width: 100%; box-shadow: 0 20px 60px rgba(47, 42, 36, 0.35); }
.share-modal-box img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-soft); }
.share-modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.share-dl-btn { display: inline-flex; align-items: center; padding: 9px 22px; border-radius: 999px; background: var(--cinnabar); color: #fbf7ec; font-size: 14px; text-decoration: none; letter-spacing: 0.04em; transition: all 0.2s; }
.share-dl-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(166, 58, 43, 0.32); }
.share-modal-note { margin-top: 10px; text-align: center; font-size: 12px; color: var(--ink-faint); }

/* 茶事工具响应式 */
@media (max-width: 980px) {
  .brew-layout { grid-template-columns: 1fr; }
  .palette-opts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tools-card { padding: 18px 16px; }
  .brew-ring-wrap { width: 180px; height: 180px; }
  .brew-count { font-size: 42px; }
  .palette-opts { grid-template-columns: 1fr; }
  .palette-teas { grid-template-columns: 1fr 1fr; }
  .daily-card { flex-direction: column; align-items: flex-start; }
  .daily-actions { width: 100%; }
  .daily-actions .tools-btn { flex: 1; }
  .board-wrap { padding: 16px 14px; }
}

/* ============ 产区分布 3D 地图（region 模块，合并 T3/T4） ============ */
.region3d-card {
  margin-top: 22px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px var(--shadow);
  overflow: hidden;
}
.region3d-map-wrap {
  position: relative;
  height: 520px;
  background: linear-gradient(180deg, rgba(246, 241, 228, 0.4), rgba(239, 231, 211, 0.5));
}
#region3D {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.region3d-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 17px;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  background: rgba(251, 247, 236, 0.85);
}
.region3d-loading[hidden] { display: none; }
.region3d-loading .brush-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cinnabar);
  opacity: 0.35;
  animation: region3dPulse 1.1s ease-in-out infinite;
}
@keyframes region3dPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}
.region3d-fail {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--cinnabar);
  background: rgba(251, 247, 236, 0.9);
}
.region3d-fail[hidden] { display: none; }
.region3d-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 13px 18px;
  border-top: 1px dashed var(--line);
}
.region3d-legend-label {
  font-family: var(--font-title);
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.region3d-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1;
}
.region3d-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.region3d-hint {
  padding: 0 18px 6px;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.7;
}
.region3d-foot {
  padding: 0 18px 14px;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.7;
}
.region3d-foot b { color: var(--ink-soft); font-weight: 400; }
.region3d-detail-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(47, 42, 36, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.region3d-detail-mask[hidden] { display: none; }
.region3d-detail-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 82vh;
  overflow: auto;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(47, 42, 36, 0.3);
  padding: 26px 28px 24px;
}
.region3d-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper-3);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.22s, color 0.22s, background-color 0.22s, transform 0.22s;
}
.region3d-detail-close:hover {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
  background: rgba(166, 58, 43, 0.06);
  transform: rotate(90deg);
}
.region3d-detail-name {
  font-family: var(--font-title);
  font-size: clamp(26px, 4.6vw, 32px);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink);
  padding-right: 36px;
}
.region3d-detail-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.region3d-detail-type {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.region3d-tag { font-weight: 400; }
.region3d-detail-body { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.region3d-detail-intro {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.85;
  background: rgba(74, 99, 82, 0.05);
  border-left: 3px solid var(--moss);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
}
.region3d-detail-facts { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.region3d-detail-fact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.7;
}
.region3d-fact-label {
  flex: none;
  min-width: 40px;
  text-align: center;
  padding: 1px 0;
  border-radius: 6px;
  background: rgba(138, 109, 75, 0.12);
  color: var(--ochre);
  font-family: var(--font-title);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}
.region3d-fact-val { color: var(--ink-soft); }
.region3d-fact-note { color: var(--moss-deep); }
.region3d-detail-teas-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.region3d-detail-teas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.region3d-detail-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--cinnabar);
  border-radius: 999px;
  background: rgba(166, 58, 43, 0.06);
  color: var(--cinnabar);
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: background-color 0.22s, color 0.22s, box-shadow 0.22s;
}
.region3d-detail-link:hover {
  background: var(--cinnabar);
  color: #fdf9ef;
  box-shadow: 0 4px 14px rgba(166, 58, 43, 0.28);
}
@media (max-width: 980px) {
  .region3d-map-wrap { height: 460px; }
}
@media (max-width: 640px) {
  .region3d-map-wrap { height: 60vh; min-height: 320px; }
  .region3d-detail-mask { padding: 0; align-items: flex-end; }
  .region3d-detail-card {
    width: 100%;
    max-height: 78vh;
    border-radius: 18px 18px 0 0;
    padding: 22px 20px 20px;
  }
  .region3d-legend { gap: 8px 12px; padding: 11px 14px; }
  .region3d-hint, .region3d-foot { padding-left: 14px; padding-right: 14px; }
}

/* ============ 产区分布 水墨丹青（region 模块 ink 重绘） ============ */
/* —— 地图容器：改用 aspect-ratio 铺满宽度（覆盖上方 region3d-map-wrap 固定高度） —— */
.region-ink-wrap {
  position: relative;
  width: 100%;
  height: auto; /* 覆盖 .region3d-map-wrap 的固定 height，让 aspect-ratio 生效 */
  aspect-ratio: 1080 / 780;
  min-height: 470px;
  max-height: 700px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(246, 241, 228, 0.9), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  cursor: grab;
}
.region-ink-wrap.region-ink-dragging { cursor: grabbing; }
.region-ink-wrap #region3D {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  outline: none;
}
.region-ink-wrap #region3D svg { width: 100%; height: 100%; display: block; }

/* —— 水墨晕染动态背景（CSS 大圆 radial，青绿/墨/赭石，缓慢流动呼吸） —— */
.region-ink-blob {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
  will-change: transform, opacity;
}
.region-ink-blob-1 {
  width: 46%; height: 46%;
  left: -6%; top: -8%;
  background: radial-gradient(circle, rgba(74, 99, 82, 0.30), transparent 70%);
  animation: regionInkDrift1 26s ease-in-out infinite alternate;
}
.region-ink-blob-2 {
  width: 40%; height: 40%;
  right: -4%; top: 34%;
  background: radial-gradient(circle, rgba(138, 109, 75, 0.26), transparent 70%);
  animation: regionInkDrift2 32s ease-in-out infinite alternate;
}
.region-ink-blob-3 {
  width: 44%; height: 44%;
  left: 22%; bottom: -14%;
  background: radial-gradient(circle, rgba(47, 42, 36, 0.20), transparent 72%);
  animation: regionInkDrift3 38s ease-in-out infinite alternate;
}
@keyframes regionInkDrift1 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(9%, 7%) scale(1.12); opacity: 1; }
}
@keyframes regionInkDrift2 {
  0%   { transform: translate(0, 0) scale(1.06); opacity: 0.75; }
  100% { transform: translate(-8%, -6%) scale(0.94); opacity: 1; }
}
@keyframes regionInkDrift3 {
  0%   { transform: translate(0, 0) scale(0.96); opacity: 0.65; }
  100% { transform: translate(6%, -8%) scale(1.1); opacity: 0.95; }
}

/* —— SVG 内部：省份墨色 path（浓淡随 CSS 变量，暗色自适应） —— */
.region-ink-provinces path {
  fill: var(--ink-province, #f3ecdd);
  stroke: var(--ink-province-stroke, rgba(47, 42, 36, 0.75));
  vector-effect: non-scaling-stroke;
  transition: fill 0.25s ease;
}
.region-ink-provinces path:hover {
  fill: var(--ink-province-hover, #e9dfc6);
}
/* 青绿晕染 stop 颜色变量（浅色 / 暗色各自覆盖；stop 位于 <defs>，直接按 class 命中） */
.ink-wash-stop-green { stop-color: var(--wash-green, #4a6352); }
.ink-wash-stop-ochre { stop-color: var(--wash-ochre, #8a6d4b); }
.ink-wash-stop-ink   { stop-color: var(--wash-ink, #2f2a24); }

.region-ink-province-label {
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 0.12em;
  fill: var(--ink-province-label, rgba(47, 42, 36, 0.5));
  pointer-events: none;
}

/* —— 标记点 —— */
.region-ink-dot { cursor: pointer; }
.region-ink-dot-circle {
  stroke: var(--paper-2);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  transition: r 0.2s ease, filter 0.2s ease;
}
.region-ink-dot:hover .region-ink-dot-circle,
.region-ink-dot:focus .region-ink-dot-circle {
  filter: drop-shadow(0 0 4px rgba(166, 58, 43, 0.55));
}
.region-ink-dot-core-ring {
  fill: none;
  stroke: var(--cinnabar);
  stroke-opacity: 0.55;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

/* —— 南海诸岛小图 —— */
.region-ink-inset-box {
  fill: var(--paper-3);
  fill-opacity: 0.55;
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
.region-ink-inset-line {
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.1;
  stroke-dasharray: 3 2.5;
  vector-effect: non-scaling-stroke;
}
.region-ink-inset-label {
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.14em;
  fill: var(--ink-soft);
}

/* —— 地图内左下朱砂小印 —— */
.region-ink-map-seal-text {
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 0.1em;
  fill: var(--cinnabar);
}

/* —— hover 水墨气泡 —— */
.region-ink-tip {
  position: absolute;
  z-index: 8;
  min-width: 96px;
  max-width: 180px;
  padding: 8px 12px 9px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px 10px 10px 2px;
  box-shadow: 0 8px 22px rgba(47, 42, 36, 0.18);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  pointer-events: none;
  transform: rotate(-0.6deg);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.region-ink-tip[hidden] { display: none; }
.region-ink-tip:not([hidden]) { opacity: 1; }
.region-ink-tip-name {
  display: block;
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.region-ink-tip-alt {
  display: inline-block;
  margin-right: 8px;
  color: var(--cinnabar);
}
.region-ink-tip-type {
  display: inline-block;
  color: var(--ink-faint);
}
.region-ink-tip-core {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid rgba(166, 58, 43, 0.4);
  border-radius: 999px;
  color: var(--cinnabar);
  font-size: 11px;
}

/* —— 题跋风格模块头：朱砂印章 + 毛笔标题 —— */
.region-ink-head { position: relative; padding-right: 88px; }
.region-ink-title { position: relative; z-index: 1; }
.region-ink-title .region-ink-brush {
  position: relative;
  display: inline-block;
  width: 2px;
  height: 1.02em;
  margin-left: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cinnabar), rgba(166, 58, 43, 0.05));
  transform: rotate(8deg);
  vertical-align: -0.08em;
}
.region-ink-seal {
  position: absolute;
  top: 4px;
  right: 0;
  width: 62px;
  height: 62px;
  border: 2px solid var(--cinnabar);
  border-radius: 8px;
  background: var(--cinnabar);
  color: #fdf6e8;
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-5deg);
  box-shadow: 0 3px 10px rgba(166, 58, 43, 0.25);
  user-select: none;
}
.region-ink-seal small {
  position: absolute;
  right: 4px;
  bottom: 2px;
  font-size: 10px;
  letter-spacing: 0;
}
.region-ink-sub {
  position: relative;
  z-index: 1;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
/* 竖排题跋（桌面左缘） */
.region-ink-colophon {
  position: absolute;
  left: 14px;
  bottom: 16px;
  z-index: 5;
  writing-mode: vertical-rl;
  font-family: "STKaiti","KaiTi","楷体",var(--font-title),serif;
  font-size: 16px;
  letter-spacing: 0.28em;
  line-height: 1.7;
  color: #2C2C2C;
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

/* —— 印章样式图例（覆盖 .region3d-legend） —— */
.region-ink-legend { align-items: center; }
.region-ink-legend-label {
  font-family: var(--font-title);
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.region-ink-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1;
}
.region-ink-seal-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1px solid;
  color: #fdf6e8;
  font-family: var(--font-title);
  font-size: 11px;
  line-height: 1;
  transform: rotate(-2deg);
  flex: none;
}

/* —— 详情弹层淡入展开（复用 region3d-detail-* 骨架） —— */
.region-ink-detail-mask { background: rgba(47, 42, 36, 0.46); }
.region-ink-detail-card {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.region-ink-detail-card.region-ink-detail-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* —— 暗色模式：深色宣纸 + 青绿提亮 —— */
:root[data-theme="dark"] .region-ink-wrap {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(44, 40, 33, 0.85), transparent 62%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
}
:root[data-theme="dark"] .region-ink-provinces path {
  fill: var(--ink-province, #2e2a22);
  stroke: var(--ink-province-stroke, rgba(236, 228, 210, 0.55));
}
:root[data-theme="dark"] .region-ink-provinces path:hover {
  fill: var(--ink-province-hover, #3a352b);
}
:root[data-theme="dark"] .region-ink-province-label { fill: rgba(236, 228, 210, 0.4); }
:root[data-theme="dark"] .ink-wash-stop-green { stop-color: #6d8a70; }
:root[data-theme="dark"] .ink-wash-stop-ochre { stop-color: #b3946a; }
:root[data-theme="dark"] .ink-wash-stop-ink   { stop-color: #ece4d2; }
:root[data-theme="dark"] .region-ink-tip { background: var(--paper-3); border-color: var(--line); }
:root[data-theme="dark"] .region-ink-detail-card { background: var(--paper-2); border-color: var(--line); }

/* —— 响应式 —— */
@media (max-width: 980px) {
  .region-ink-wrap { min-height: 430px; }
}
@media (max-width: 640px) {
  .region-ink-wrap { aspect-ratio: 1080 / 920; min-height: 420px; max-height: none; }
  .region-ink-colophon { display: none; }
  .region-ink-head { padding-right: 64px; }
  .region-ink-seal { width: 52px; height: 52px; font-size: 18px; }
  .region-ink-blob-1 { width: 60%; height: 46%; }
  .region-ink-blob-2 { width: 52%; height: 40%; }
  .region-ink-blob-3 { width: 58%; height: 44%; }
}

/* —— reduced-motion：晕染静止、淡入瞬切 —— */
@media (prefers-reduced-motion: reduce) {
  .region-ink-blob { animation: none !important; }
  .region-ink-detail-card { transition: none !important; }
  .region-ink-tip { display: none; }
}

/* ============ B3 旗舰增强：茶数据仪表盘（E2） ============ */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.dash-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px 10px;
  box-shadow: 0 4px 16px var(--shadow);
  min-width: 0;
}
.dash-chart { width: 100%; height: 320px; min-width: 0; overflow: hidden; }
/* ============ P2 每日一茶诗（仪表盘顶部卡片，楷体书卷风） ============ */
.dash-poem {
  position: relative;
  background: linear-gradient(135deg, rgba(138,109,75,.05), transparent 55%), var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px 18px;
  box-shadow: 0 4px 16px var(--shadow);
  overflow: hidden;
}
.dash-poem::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--cinnabar), var(--ochre));
}
.dash-poem-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.dash-poem-title {
  font-family: var(--font-title);
  font-size: 21px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.dash-poem-meta {
  font-family: var(--font-title);
  font-size: 13px;
  color: var(--ochre);
  letter-spacing: 0.05em;
}
.dash-poem-text {
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: pre-wrap;
}
.dash-poem-seal {
  margin-top: 10px;
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--cinnabar);
  opacity: .7;
}
.dash-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 4px 8px;
}
.dash-chart-label {
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.dash-select {
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
}
.dash-select:focus { outline: 2px solid rgba(74, 99, 82, 0.35); outline-offset: 1px; }
.dash-fail {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(166, 58, 43, 0.4);
  border-radius: 10px;
  color: var(--cinnabar);
  background: rgba(166, 58, 43, 0.05);
  font-size: 13.5px;
}
.dash-note {
  margin-top: 18px;
  color: var(--ink-faint);
  font-size: 12.5px;
  line-height: 1.8;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

/* ============ B3 旗舰增强：品鉴日志（favs） ============ */
.log-section { margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--line); }
.log-head { margin-bottom: 16px; }
.log-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.log-title .tools-card-no { background: var(--cinnabar); color: #fdf9ef; }
.log-sub { margin-top: 6px; color: var(--ink-soft); font-size: 14px; }
.log-form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 4px 16px var(--shadow);
}
.log-form-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.log-form-row label, .log-field-label {
  flex: none;
  min-width: 52px;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-family: var(--font-title);
  letter-spacing: 0.04em;
}
.log-form-row input[type="date"], .log-form-row input[type="number"], .log-form-row select {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  min-width: 130px;
}
.log-form-row input:focus, .log-form-row select:focus, .log-form-row textarea:focus {
  outline: 2px solid rgba(74, 99, 82, 0.3);
  outline-offset: 1px;
}
.log-from-fav {
  padding: 5px 14px;
  border: 1px solid rgba(74, 99, 82, 0.5);
  border-radius: 999px;
  color: var(--moss-deep);
  background: rgba(74, 99, 82, 0.07);
  font-size: 12.5px;
  transition: background-color 0.2s, color 0.2s;
}
.log-from-fav:hover { background: var(--moss); color: #fdf9ef; }
.log-stars-input { display: flex; align-items: center; gap: 4px; }
.log-star-btn {
  font-size: 24px;
  line-height: 1;
  color: var(--line);
  transition: color 0.15s, transform 0.15s;
}
.log-star-btn:hover, .log-star-btn.on { color: var(--ochre); transform: scale(1.12); }
.log-star-hint { margin-left: 8px; font-size: 12px; color: var(--ink-faint); }
.log-form-row textarea {
  flex: 1;
  min-width: 220px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  resize: vertical;
}
.log-note-count { align-self: flex-end; font-size: 12px; color: var(--ink-faint); }
.log-error {
  margin: 4px 0 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(166, 58, 43, 0.35);
  background: rgba(166, 58, 43, 0.06);
  color: var(--cinnabar);
  font-size: 13px;
}
.log-form-actions { display: flex; gap: 10px; margin-top: 4px; }
.log-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.log-list-title { font-family: var(--font-title); font-size: 17px; font-weight: 400; letter-spacing: 0.05em; color: var(--ink); }
.log-count { font-size: 13px; color: var(--ink-faint); }
.log-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.log-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 3px 12px var(--shadow);
}
.log-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.log-card-title { font-family: var(--font-title); font-size: 16px; letter-spacing: 0.04em; color: var(--ink); }
.log-stars { color: var(--ochre); font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.log-star { color: var(--line); }
.log-star.on { color: var(--ochre); }
.log-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); }
.log-card-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.log-card-detail { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.log-detail-row { display: flex; gap: 10px; font-size: 13px; color: var(--ink-soft); line-height: 1.8; }
.log-detail-row + .log-detail-row { margin-top: 4px; }
.log-detail-label { flex: none; min-width: 44px; color: var(--ink-faint); font-size: 12.5px; }
.log-detail-note span:last-child { white-space: pre-wrap; word-break: break-word; }
.log-card-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.log-toggle-btn {
  font-size: 12.5px;
  color: var(--moss-deep);
  padding: 3px 6px;
  border-radius: 6px;
}
.log-toggle-btn:hover { background: rgba(74, 99, 82, 0.08); }

/* ============ B3 旗舰增强：藏茶管家（tools） ============ */
.stock-form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.stock-form-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.stock-form-row label {
  flex: none;
  min-width: 60px;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-family: var(--font-title);
  letter-spacing: 0.04em;
}
.stock-form-row select, .stock-form-row input[type="date"], .stock-form-row input[type="number"] {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  min-width: 150px;
}
.stock-form-row select:focus, .stock-form-row input:focus {
  outline: 2px solid rgba(74, 99, 82, 0.3);
  outline-offset: 1px;
}
.stock-custom-input { flex: 1; min-width: 140px; }
.stock-error {
  margin: 2px 0 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(166, 58, 43, 0.35);
  background: rgba(166, 58, 43, 0.06);
  color: var(--cinnabar);
  font-size: 13px;
}
.stock-form-actions { display: flex; gap: 10px; }
.stock-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(166, 58, 43, 0.35);
  background: rgba(166, 58, 43, 0.06);
  color: var(--cinnabar);
  font-size: 13.5px;
}
.stock-banner-icon { font-size: 16px; }
.stock-banner-text { flex: 1; }
.stock-banner-close {
  font-size: 16px;
  color: var(--cinnabar);
  padding: 0 4px;
  border-radius: 6px;
}
.stock-banner-close:hover { background: rgba(166, 58, 43, 0.12); }
.stock-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.stock-list-title { font-family: var(--font-title); font-size: 16px; font-weight: 400; letter-spacing: 0.05em; color: var(--ink); }
.stock-count { font-size: 13px; color: var(--ink-faint); }
.stock-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.stock-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: 0 3px 12px var(--shadow);
}
.stock-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stock-card-title { font-family: var(--font-title); font-size: 16px; letter-spacing: 0.04em; color: var(--ink); }
.stock-badge {
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-family: var(--font-body);
}
.stock-badge.stock-ok { color: var(--moss-deep); background: rgba(74, 99, 82, 0.1); border: 1px solid rgba(74, 99, 82, 0.4); }
.stock-badge.stock-warn { color: var(--ochre); background: rgba(138, 109, 75, 0.12); border: 1px solid rgba(138, 109, 75, 0.5); }
.stock-badge.stock-expired { color: var(--cinnabar); background: rgba(166, 58, 43, 0.08); border: 1px solid rgba(166, 58, 43, 0.45); }
.stock-card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); }
.stock-cond { color: var(--moss-deep); }
.stock-card-detail { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.stock-tip { font-size: 13px; color: var(--ink-soft); line-height: 1.8; background: rgba(74, 99, 82, 0.05); border-left: 3px solid var(--moss); border-radius: 0 8px 8px 0; padding: 8px 12px; }
.stock-card-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }

/* ============ B3 旗舰增强：茶器百科 / 茶席灵感（buy） ============ */
.ware-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.ware-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow 0.22s, border-color 0.22s, transform 0.22s;
}
.ware-card:hover { box-shadow: 0 10px 26px var(--shadow); border-color: var(--line); transform: translateY(-2px); }
.ware-card-head { display: flex; align-items: center; gap: 10px; }
.ware-icon { font-size: 26px; line-height: 1; }
.ware-titles { flex: 1; min-width: 0; }
.ware-name { font-family: var(--font-title); font-size: 17px; font-weight: 400; letter-spacing: 0.05em; color: var(--ink); }
.ware-material { font-size: 12px; color: var(--ink-faint); }
.ware-arrow { color: var(--ink-faint); font-size: 12px; transition: transform 0.22s; }
.ware-card.open .ware-arrow { transform: rotate(180deg); }
.ware-types { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.ware-detail { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.ware-points { font-size: 13px; color: var(--ink-soft); line-height: 1.8; }
.ware-care { margin-top: 8px; font-size: 13px; color: var(--moss-deep); line-height: 1.8; background: rgba(74, 99, 82, 0.06); border-radius: 8px; padding: 8px 12px; }

.table-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.table-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow 0.22s, border-color 0.22s, transform 0.22s;
}
.table-card:hover { box-shadow: 0 10px 26px var(--shadow); border-color: var(--line); transform: translateY(-2px); }
.table-card-head { display: flex; align-items: center; gap: 10px; }
.table-icon { font-size: 26px; line-height: 1; }
.table-titles { flex: 1; min-width: 0; }
.table-name { font-family: var(--font-title); font-size: 17px; font-weight: 400; letter-spacing: 0.05em; color: var(--ink); }
.table-tone { font-size: 12px; color: var(--cinnabar); }
.table-arrow { color: var(--ink-faint); font-size: 12px; transition: transform 0.22s; }
.table-card.open .table-arrow { transform: rotate(180deg); }
.table-scene { margin-top: 10px; font-size: 13px; color: var(--ink-soft); line-height: 1.75; }
.table-wares { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; }
.table-wares-label { font-size: 12px; color: var(--ink-faint); margin-right: 2px; }
.table-detail { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.table-steps-title { font-size: 13px; color: var(--ink); }
.table-steps { margin: 6px 0 0 18px; font-size: 13px; color: var(--ink-soft); line-height: 1.9; }

@media (max-width: 980px) {
  .dash-grid { grid-template-columns: 1fr; }
  .ware-grid { grid-template-columns: repeat(2, 1fr); }
  .table-grid { grid-template-columns: repeat(2, 1fr); }
  .log-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash-chart { height: 280px; }
  .dash-card { padding: 12px 10px 8px; }
  .ware-grid { grid-template-columns: 1fr; }
  .table-grid { grid-template-columns: 1fr; }
  .log-form { padding: 14px 14px; }
  .log-form-row input[type="date"], .log-form-row input[type="number"], .log-form-row select {
    min-width: 0;
    flex: 1 1 100px;
  }
  .stock-form-row select, .stock-form-row input[type="date"], .stock-form-row input[type="number"] {
    min-width: 0;
    flex: 1 1 120px;
  }
  .log-list-head { margin-top: 20px; }
}

/* ============================================================
 * B4 探索全局新增样式
 *   - 暗色模式（[data-theme="dark"] 覆盖）
 *   - AI 茶语聊天面板
 *   - 茶友留言 / 茶友投稿 / 更新订阅
 *   - 社区出题（我要出题 / 我的题目）
 *   - 价格数据过期提示条
 * ============================================================ */

/* ---------- 暗色模式：变量覆盖 ---------- */
:root[data-theme="dark"] {
  --paper: #1c1a16;
  --paper-2: #24211b;
  --paper-3: #2c2821;
  --ink: #ece4d2;
  --ink-soft: #c3b8a2;
  --ink-faint: #94897a;
  --cinnabar: #c4563f;
  --cinnabar-dark: #a84431;
  --moss: #6d8a70;
  --moss-deep: #8fae92;
  --ochre: #b3946a;
  --line: #48402f;
  --line-soft: #383126;
  --shadow: rgba(0, 0, 0, 0.35);
  --shadow-hover: rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(109, 138, 112, 0.07), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(196, 86, 63, 0.06), transparent 30%),
    radial-gradient(circle at 6% 82%, rgba(179, 148, 106, 0.06), transparent 28%);
}

/* 顶部导航 / 搜索 / 徽标等硬编码浅色底 */
:root[data-theme="dark"] .topbar { background: rgba(28, 26, 22, 0.92); }
:root[data-theme="dark"] .topnav-row { background: rgba(36, 33, 27, 0.9); }
:root[data-theme="dark"] .hero-badge { background: rgba(36, 33, 27, 0.7); }
:root[data-theme="dark"] .tag { background: rgba(36, 33, 27, 0.8); }
:root[data-theme="dark"] .liquor-bar,
:root[data-theme="dark"] .teaware-box { background: rgba(36, 33, 27, 0.75); }
:root[data-theme="dark"] .liquor-dot { box-shadow: 0 0 0 2px rgba(28, 26, 22, 0.9), 0 1px 4px rgba(0, 0, 0, 0.4); }
:root[data-theme="dark"] .region3d-card {
  background: linear-gradient(180deg, rgba(36, 33, 27, 0.55), rgba(44, 40, 33, 0.65));
}
:root[data-theme="dark"] .region3d-legend { background: rgba(36, 33, 27, 0.9); }
:root[data-theme="dark"] .region3d-legend-label { color: var(--ink-soft); }
:root[data-theme="dark"] .hero-art svg {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
:root[data-theme="dark"] .dash-card { background: var(--paper-2); border-color: var(--line); }
:root[data-theme="dark"] .price-table thead th { background: var(--paper-3); }
:root[data-theme="dark"] .price-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
:root[data-theme="dark"] .type-card, :root[data-theme="dark"] .buy-card,
:root[data-theme="dark"] .fav-card, :root[data-theme="dark"] .season-card,
:root[data-theme="dark"] .tools-card, :root[data-theme="dark"] .log-form,
:root[data-theme="dark"] .board-wrap, :root[data-theme="dark"] .quiz-question,
:root[data-theme="dark"] .share-modal-box, :root[data-theme="dark"] .compare-panel,
:root[data-theme="dark"] .price-table-wrap { background: var(--paper-2); border-color: var(--line); }
:root[data-theme="dark"] .search-box input, :root[data-theme="dark"] .log-form input,
:root[data-theme="dark"] .log-form textarea, :root[data-theme="dark"] .log-form select,
:root[data-theme="dark"] .price-table td { background: var(--paper-3); color: var(--ink); }
:root[data-theme="dark"] .footer { border-top-color: var(--line); }

/* 暗色下 ECharts 卡片容器（图表自身颜色由 tea-dash.js 动态适配） */
:root[data-theme="dark"] .dash-chart { color: var(--ink); }

/* ---------- 暗色切换按钮 ---------- */
.dark-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 17px;
  line-height: 1;
  color: var(--ink-soft);
  background: rgba(251, 247, 236, 0.5);
  transition: all 0.22s ease;
}
:root[data-theme="dark"] .dark-toggle { background: rgba(36, 33, 27, 0.7); }
.dark-toggle:hover { border-color: var(--cinnabar); color: var(--cinnabar); transform: translateY(-1px); }

/* ---------- AI 茶语聊天面板 ---------- */
.ai-wrap { display: flex; flex-direction: column; gap: 14px; }
.ai-chat-panel {
  display: flex;
  flex-direction: column;
  height: 560px;
  max-height: 66vh;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  overflow: hidden;
}
.ai-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(246, 241, 228, 0.35);
}
:root[data-theme="dark"] .ai-chat-list { background: rgba(0, 0, 0, 0.12); }
.ai-msg {
  display: flex;
  gap: 10px;
  max-width: 86%;
}
.ai-msg.bot { align-self: flex-start; }
.ai-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.ai-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: var(--cinnabar);
  color: #fdf9ef;
}
.ai-msg.user .ai-avatar { background: var(--moss); }
.ai-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--line-soft);
  word-break: break-word;
  min-width: 0;
}
.ai-msg.user .ai-bubble { background: rgba(74, 99, 82, 0.14); border-color: rgba(74, 99, 82, 0.3); }
.ai-bubble b, .ai-bubble strong { color: var(--cinnabar); font-weight: 600; }
.ai-bubble .ai-bubble-title { font-weight: 600; color: var(--moss-deep); }
.ai-tea-card {
  margin-top: 8px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(251, 247, 236, 0.5);
}
:root[data-theme="dark"] .ai-tea-card { background: rgba(0, 0, 0, 0.15); }
.ai-tea-card .ai-tea-name { font-family: var(--font-title); font-size: 16px; color: var(--cinnabar); letter-spacing: 0.05em; }
.ai-tea-card .ai-tea-line { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 2px 0;
}
.ai-chip {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper-2);
  transition: all 0.2s;
}
.ai-chip:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.ai-chat-input-row {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.ai-chat-input-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
.ai-chat-input-row input:focus { border-color: var(--cinnabar); }
.ai-chat-actions { display: flex; gap: 8px; }
.ai-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--paper-2);
  transition: all 0.2s;
}
.ai-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.ai-btn.primary { background: var(--cinnabar); border-color: var(--cinnabar); color: #fdf9ef; }
.ai-btn.primary:hover { background: var(--cinnabar-dark); }
.ai-hint { font-size: 12.5px; color: var(--ink-faint); padding: 0 4px; }

/* ---------- 茶友留言 ---------- */
.msg-section { margin-top: 34px; }
.msg-form, .sub-form, .subs-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}
.msg-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.msg-form input, .msg-form textarea,
.sub-form input, .sub-form textarea, .sub-form select,
.subs-form input {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-3);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.msg-form input:focus, .msg-form textarea:focus,
.sub-form input:focus, .sub-form textarea:focus, .sub-form select:focus,
.subs-form input:focus { border-color: var(--cinnabar); }
.msg-form input[name="name"], .sub-form input[name="name"], .subs-form input[name="name"] { flex: 0 1 180px; }
.msg-form textarea, .sub-form textarea { width: 100%; resize: vertical; min-height: 76px; }
.msg-form .field-label, .sub-form .field-label, .subs-form .field-label {
  font-size: 13px;
  color: var(--ink-soft);
  display: block;
  margin-bottom: -6px;
}
.form-error {
  display: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--cinnabar);
  background: rgba(166, 58, 43, 0.08);
  border: 1px solid rgba(166, 58, 43, 0.25);
}
.form-error.show { display: block; }
.form-success {
  display: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--moss-deep);
  background: rgba(74, 99, 82, 0.1);
  border: 1px solid rgba(74, 99, 82, 0.3);
}
.form-success.show { display: block; }
.msg-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.msg-item {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--paper-2);
}
.msg-item-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.msg-item-name { font-weight: 600; color: var(--moss-deep); font-size: 14px; }
.msg-item-time { font-size: 12px; color: var(--ink-faint); }
.msg-item-content { margin-top: 4px; font-size: 14px; color: var(--ink); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.msg-empty, .sub-empty { padding: 20px 8px; text-align: center; color: var(--ink-faint); font-size: 13.5px; }
.msg-loading { padding: 14px; text-align: center; color: var(--ink-faint); font-size: 13px; }
.msg-note { margin-top: 8px; font-size: 12px; color: var(--ink-faint); }

/* ---------- 茶友投稿 / 评分 ---------- */
.sub-section { margin-top: 34px; }
.sub-stars { display: flex; gap: 6px; align-items: center; }
.sub-star-btn {
  font-size: 26px;
  line-height: 1;
  color: var(--line);
  transition: color 0.15s, transform 0.15s;
}
.sub-star-btn:hover { transform: scale(1.15); }
.sub-star-btn.on { color: var(--ochre); }
.sub-star-hint { font-size: 12px; color: var(--ink-faint); margin-left: 6px; }
.sub-count-hint { font-size: 12px; color: var(--ink-faint); text-align: right; margin-top: -4px; }
.sub-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.sub-item {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--paper-2);
}
.sub-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub-item-tea { font-weight: 600; color: var(--cinnabar); font-size: 14px; }
.sub-item-stars { color: var(--ochre); font-size: 13px; letter-spacing: 1px; }
.sub-item-name { font-size: 12px; color: var(--ink-faint); }
.sub-item-exp { margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.sub-agg {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  background: rgba(74, 99, 82, 0.05);
}
.sub-agg b { color: var(--moss-deep); }
.sub-disclaimer { margin-top: 8px; font-size: 12px; color: var(--ink-faint); }

/* ---------- 更新订阅 ---------- */
.subs-section { margin-top: 22px; }
.subs-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.subs-form .subs-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; }
.subs-form input { width: 100%; }
.subs-privacy { font-size: 12px; color: var(--ink-faint); margin-top: 8px; }

/* ---------- 社区出题 ---------- */
.quiz-create-entry { margin-top: 18px; }
.uq-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}
.uq-form label { font-size: 13px; color: var(--ink-soft); }
.uq-form input[type="text"], .uq-form textarea, .uq-form select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-3);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.uq-form input[type="text"]:focus, .uq-form textarea:focus, .uq-form select:focus { border-color: var(--cinnabar); }
.uq-opt-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.uq-opt-row input[type="text"] { flex: 1 1 200px; }
.uq-opt-row select { flex: 0 1 140px; }
.uq-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.uq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.uq-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--paper-2);
  flex-wrap: wrap;
}
.uq-item-text { flex: 1 1 240px; font-size: 13.5px; color: var(--ink); min-width: 0; }
.uq-item-del {
  padding: 4px 12px;
  border: 1px solid rgba(166, 58, 43, 0.4);
  border-radius: 999px;
  font-size: 12px;
  color: var(--cinnabar);
  background: rgba(166, 58, 43, 0.06);
}
.uq-item-del:hover { background: var(--cinnabar); color: #fdf9ef; }
.uq-count { font-size: 13px; color: var(--ink-faint); margin-left: 8px; }

/* ---------- 价格数据过期提示条 ---------- */
.price-stale {
  margin: 10px 0 2px;
  padding: 9px 14px;
  border: 1px solid rgba(166, 58, 43, 0.35);
  border-radius: 10px;
  background: rgba(166, 58, 43, 0.07);
  color: var(--cinnabar);
  font-size: 13px;
}
.price-meta span { white-space: nowrap; }
@media (max-width: 640px) {
  .price-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ai-chat-panel { height: 70vh; }
  .ai-msg { max-width: 94%; }
  .msg-form-row { flex-direction: column; }
  .msg-form input[name="name"], .sub-form input[name="name"], .subs-form input[name="name"] { flex: 1 1 auto; }
  .subs-form { flex-direction: column; align-items: stretch; }
  .uq-opt-row { flex-direction: column; align-items: stretch; }
  .uq-opt-row input[type="text"] { flex: 1 1 auto; }
}

