@font-face {
  font-family: "Source Han Sans SC";
  src: url("./assets/source-han-sans-sc-heavy-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --ink: #183128;
  --ink-soft: #496158;
  --forest: #234b3a;
  --forest-2: #31634e;
  --tea: #be7b42;
  --tea-light: #e0ad72;
  --cream: #f7f2e8;
  --intro-cream: #f4ecdd;
  --paper: #fffaf2;
  --paper-2: #faf2e6;
  --line: #e5d9c8;
  --gold: #c89b51;
  --danger: #a44a3f;
  --shadow: 0 18px 45px rgba(32, 54, 44, .11);
  --shadow-soft: 0 8px 24px rgba(32, 54, 44, .08);
  --radius: 22px;
  --sidebar: 252px;
  --font-hei: "Source Han Sans SC", "Heiti SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --heading-ink: #102c22;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--cream);
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app-shell {
  min-height: 100vh;
  background: var(--cream);
}
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 20;
  display: flex; flex-direction: column; padding: 28px 20px 24px;
  color: #f8f2e8; background:
    radial-gradient(circle at 10% 0%, rgba(224, 173, 114, .15), transparent 18rem),
    linear-gradient(175deg, #284f3e 0%, #173529 100%);
  border-right: 1px solid rgba(255,255,255,.08);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; padding: 0 8px 24px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #244c3b; background: linear-gradient(145deg, #ecd7ad, #cfa56b); box-shadow: inset 0 1px rgba(255,255,255,.55); }
.brand-mark svg { width: 30px; height: 30px; stroke-width: 1.8; }
.brand strong { display: block; font-family: "Songti SC", "STSong", serif; font-size: 24px; font-weight: 700; letter-spacing: .12em; }
.brand small { display: block; margin-top: 1px; font-size: 8px; letter-spacing: .14em; opacity: .55; }
.main-nav { display: grid; gap: 7px; margin-top: 12px; }
.nav-item {
  width: 100%; border: 0; display: grid; grid-template-columns: 23px 1fr auto; align-items: center; gap: 13px;
  padding: 13px 14px; border-radius: 14px; color: rgba(255,255,255,.66); background: transparent; cursor: pointer; text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-item:hover { color: white; background: rgba(255,255,255,.06); transform: translateX(2px); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.11); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.nav-item svg { width: 22px; height: 22px; }
.nav-item span { font-size: 15px; font-weight: 600; }
.nav-item em { color: rgba(255,255,255,.48); font-size: 11px; font-style: normal; background: rgba(0,0,0,.15); border-radius: 999px; padding: 2px 7px; }
.sidebar-foot { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.storage-status { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.54); font-size: 11px; margin-bottom: 12px; }
.storage-status span { width: 6px; height: 6px; border-radius: 50%; background: #85c79f; box-shadow: 0 0 0 4px rgba(133,199,159,.1); }
.text-button { border: 0; padding: 0; color: rgba(255,255,255,.54); font-size: 11px; cursor: pointer; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { color: white; }

.main-content { min-height: 100vh; margin-left: var(--sidebar); padding: 30px clamp(24px, 4vw, 58px) 64px; }
.topbar { min-height: 88px; display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.topbar-copy { min-width: 0; }
.topbar-copy p, .dialog-head p { margin: 0 0 4px; color: var(--tea); font-size: 10px; font-weight: 800; letter-spacing: .22em; }
.topbar h1 { margin: 0; font-family: "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.05; letter-spacing: .04em; font-weight: 700; }
.topbar-copy > span { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 13px; }
.topbar-actions { margin-left: auto; display: flex; gap: 10px; }
.primary-button, .secondary-button, .danger-button, .icon-button, .close-button { border: 0; cursor: pointer; transition: .18s ease; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 14px; color: #fff; background: var(--forest); box-shadow: 0 8px 18px rgba(35,75,58,.2); font-size: 13px; font-weight: 700; }
.primary-button:hover { background: var(--forest-2); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(35,75,58,.24); }
.primary-button svg { width: 18px; height: 18px; }
.secondary-button { min-height: 44px; padding: 0 18px; border-radius: 14px; background: #eee9df; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.secondary-button:hover { background: #e5ded1; color: var(--ink); }
.danger-button { min-height: 44px; padding: 0 14px; border-radius: 14px; color: var(--danger); background: #f7e8e4; font-size: 12px; font-weight: 700; }
.danger-button:hover { color: #fff; background: var(--danger); }
.dialog-spacer { flex: 1; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.74); border: 1px solid var(--line); color: var(--ink-soft); }
.icon-button:hover { color: var(--forest); background: white; }
.icon-button svg { width: 20px; height: 20px; }
.mobile-brand { display: none; }

.view { animation: viewIn .35s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { min-height: 114px; padding: 18px 20px; border-radius: 18px; background: rgba(255,253,249,.82); border: 1px solid rgba(228,221,208,.86); box-shadow: var(--shadow-soft); }
.stat-card.accent { color: #fff; background: linear-gradient(145deg, #2f624d, #1c4132); border-color: transparent; }
.stat-card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 11px; }
.stat-card.accent p { color: rgba(255,255,255,.63); }
.stat-card strong { display: block; font-family: var(--font-hei); font-size: 30px; font-weight: 500; line-height: 1; }
.stat-card small { display: block; margin-top: 8px; color: #89968f; font-size: 10px; }
.stat-card.accent small { color: rgba(255,255,255,.58); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0; }
.search-box { flex: 1 1 240px; max-width: 420px; position: relative; }
.search-box svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; color: #8a978f; transform: translateY(-50%); }
.search-box input, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); outline: none; border-radius: 13px; background: rgba(255,255,255,.78); color: var(--ink); transition: border .18s ease, box-shadow .18s ease, background .18s ease; }
.search-box input { min-height: 44px; padding: 0 16px 0 42px; font-size: 13px; }
.search-box input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(49,99,78,.48); box-shadow: 0 0 0 4px rgba(49,99,78,.08); background: white; }
.filter-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; color: var(--ink-soft); background: rgba(255,255,255,.55); cursor: pointer; font-size: 11px; white-space: nowrap; }
.chip:hover, .chip.active { color: #fff; border-color: var(--forest); background: var(--forest); }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.tea-card, .record-card, .session-card, .process-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,249,.88); box-shadow: var(--shadow-soft); }
.tea-card { min-height: 246px; padding: 21px; display: flex; flex-direction: column; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.tea-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(190,123,66,.35); }
.tea-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--tea-color, var(--tea)); }
.tea-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tea-type { color: var(--tea); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.favorite { border: 0; padding: 0; color: #ddb35d; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; }
.tea-card h3 { margin: 13px 0 6px; font-family: "Songti SC", "STSong", serif; font-size: 23px; line-height: 1.2; }
.tea-meta { color: var(--ink-soft); font-size: 11px; }
.tea-notes { margin: 19px 0 0; color: #627168; font-size: 12px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tea-card-foot { display: flex; align-items: center; gap: 11px; margin-top: auto; padding-top: 17px; }
.rating { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { border-radius: 999px; padding: 4px 8px; color: #5e705f; background: #eef3eb; font-size: 10px; }
.card-menu { margin-left: auto; border: 0; border-radius: 8px; padding: 5px 7px; background: transparent; color: #9da8a1; cursor: pointer; }
.card-menu:hover { background: #f2eee6; color: var(--ink); }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 26px 0 13px; }
.section-title h2 { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif; font-size: 22px; font-weight: 500; }
.section-title p { margin: 3px 0 0; color: var(--ink-soft); font-size: 11px; }
.link-button { border: 0; padding: 0; color: var(--forest); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.empty-state { grid-column: 1/-1; min-height: 300px; display: grid; place-items: center; padding: 40px; text-align: center; border: 1px dashed #d8d0c2; border-radius: var(--radius); background: rgba(255,255,255,.4); }
.empty-state .empty-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 22px; color: var(--forest); background: #e7eee8; font-family: "Songti SC", serif; font-size: 27px; }
.empty-state h3 { margin: 0 0 7px; font-family: "Songti SC", serif; font-size: 20px; }
.empty-state p { max-width: 320px; margin: 0 auto 18px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }

.process-card { padding: 21px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.process-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.process-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.process-head h3, .record-card h3, .session-card h3 { margin: 0 0 5px; font-family: "Songti SC", "STSong", serif; font-size: 20px; }
.process-head p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.status-pill { padding: 5px 9px; border-radius: 999px; background: #edf3ee; color: var(--forest); font-size: 10px; white-space: nowrap; }
.status-pill.doing { color: #a06227; background: #fbf0df; }
.status-pill.done { color: #397050; background: #eaf4ed; }
.process-line { display: flex; gap: 0; margin: 25px 2px 20px; }
.step { position: relative; flex: 1; min-width: 0; color: #9ca69f; text-align: center; font-size: 9px; }
.step::after { content: ""; position: absolute; left: 50%; top: 6px; width: 100%; height: 1px; background: #ddd7cc; }
.step:last-child::after { display: none; }
.step i { position: relative; z-index: 1; display: block; width: 13px; height: 13px; margin: 0 auto 8px; border: 3px solid var(--paper); border-radius: 50%; background: #d9d6cd; box-shadow: 0 0 0 1px #d9d6cd; }
.step.complete { color: var(--forest); }
.step.complete::after { background: #9bb8a4; }
.step.complete i { background: var(--forest); box-shadow: 0 0 0 1px var(--forest); }
.process-note { min-height: 40px; margin: 0; color: #64736b; font-size: 11px; line-height: 1.7; }

.tasting-layout { display: grid; grid-template-columns: minmax(270px,.85fr) minmax(0,1.5fr); gap: 16px; align-items: start; }
.radar-panel { padding: 23px; border-radius: var(--radius); color: white; background: linear-gradient(155deg, #2f624d, #173c2e); box-shadow: var(--shadow); }
.radar-panel .panel-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 14px; }
.radar-panel h2 { margin: 0; font-family: var(--font-hei); font-size: 21px; }
.radar-panel p { margin: 4px 0 0; color: rgba(255,255,255,.55); font-size: 10px; }
.radar-panel .average { color: #f1ce91; font-family: var(--font-hei); font-size: 32px; }
.radar-wrap { display: grid; place-items: center; min-height: 285px; }
.radar-wrap svg { width: 100%; max-width: 320px; overflow: visible; }
.radar-label { fill: rgba(255,255,255,.68); font-size: 9px; stroke: none; }
.radar-value { fill: #e7c78e; font-size: 8px; stroke: none; }
.radar-panel .legend { display: flex; justify-content: center; gap: 18px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.55); font-size: 10px; }
.legend i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #e5c58c; }
.record-list { display: grid; gap: 12px; }
.record-card { padding: 18px 19px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.record-card:hover { transform: translateX(3px); box-shadow: var(--shadow-soft); border-color: rgba(49,99,78,.24); }
.record-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.record-top time { color: #87938c; font-size: 10px; }
.score-badge { min-width: 43px; border-radius: 13px; padding: 7px 8px; color: var(--forest); background: #edf3ee; text-align: center; font-family: var(--font-hei); font-size: 18px; font-weight: 700; }
.record-notes { margin: 12px 0 0; color: #64736b; font-size: 11px; line-height: 1.7; }
.score-bars { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 15px; }
.score-bar span { display: flex; justify-content: space-between; color: #7c8982; font-size: 9px; }
.score-bar b { color: var(--forest); font-weight: 700; }
.score-bar i { display: block; height: 4px; margin-top: 4px; border-radius: 999px; background: #e6e5de; overflow: hidden; }
.score-bar i::before { content: ""; display: block; width: var(--score); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9cbb9f, #3c7358); }

.timeline { position: relative; display: grid; gap: 17px; padding-left: 27px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 11px; bottom: 11px; width: 1px; background: #d9d2c6; }
.session-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 12px;
}
.session-search > svg {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  color: #87938c;
  pointer-events: none;
}
.session-search input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: rgba(255,253,249,.88);
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.session-search input:focus {
  border-color: rgba(49,99,78,.44);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(49,99,78,.07);
}
.session-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.session-search-clear {
  position: absolute;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  color: #718078;
  background: #f1eee8;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.session-search-clear:hover { color: var(--forest); background: #e6efe8; }
.session-search-summary {
  margin: -3px 2px 10px;
  color: var(--ink-soft);
  font-size: 10px;
}
.session-search-empty {
  padding: 28px 18px;
  border: 1px dashed #d8d0c2;
  border-radius: 16px;
  color: var(--ink-soft);
  background: rgba(255,253,249,.45);
  font-size: 12px;
  text-align: center;
}
.session-month-groups {
  display: grid;
  gap: 12px;
}
.session-month-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,253,249,.5);
}
.session-month-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 17px;
  color: var(--ink);
  background: rgba(229,217,200,.24);
  cursor: pointer;
  list-style: none;
}
.session-month-toggle::-webkit-details-marker { display: none; }
.session-month-toggle strong {
  font-family: var(--font-hei);
  font-size: 16px;
  font-weight: 700;
}
.session-month-toggle span {
  color: var(--ink-soft);
  font-size: 10px;
}
.session-month-chevron {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--forest);
  transition: transform .2s ease;
}
.session-month-group[open] .session-month-chevron { transform: rotate(180deg); }
.session-month-list {
  margin: 0 17px;
  padding-top: 16px;
  padding-bottom: 2px;
}
.session-card { padding: 20px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.session-card:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.session-card::before { content: ""; position: absolute; left: -27px; top: 26px; width: 13px; height: 13px; border: 3px solid var(--cream); border-radius: 50%; background: var(--tea); box-shadow: 0 0 0 1px var(--tea); }
.session-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.session-date { color: var(--tea); font-size: 10px; font-weight: 700; }
.session-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #eee9df; color: #78867f; font-size: 10px; }
.session-meta span b { color: var(--ink); font-weight: 600; }
.session-note { margin: 13px 0 0; color: #64736b; font-size: 11px; line-height: 1.8; }

.entity-dialog { width: min(680px, calc(100% - 28px)); max-height: min(850px, calc(100vh - 30px)); padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px rgba(19,38,30,.3); overflow: hidden; }
.entity-dialog::backdrop { background: rgba(15,35,27,.5); backdrop-filter: blur(4px); }
.entity-dialog[open] { animation: dialogIn .22s ease both; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
#entityForm { display: flex; flex-direction: column; max-height: min(850px, calc(100vh - 30px)); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; padding: 25px 27px 19px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-family: "Songti SC", serif; font-size: 25px; }
.close-button { width: 36px; height: 36px; border-radius: 10px; color: #819087; background: #f1eee8; font-size: 24px; line-height: 1; }
.close-button:hover { color: var(--ink); background: #e9e4da; }
.dialog-body { overflow-y: auto; padding: 23px 27px 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1/-1; }
.field label { color: #55675e; font-size: 11px; font-weight: 700; }
.field label span { color: #a4aea8; font-weight: 400; }
.field input, .field select { height: 43px; padding: 0 12px; font-size: 12px; }
.field textarea { min-height: 92px; padding: 11px 12px; resize: vertical; font-size: 12px; line-height: 1.6; }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check-label { position: relative; }
.check-label input { position: absolute; opacity: 0; }
.check-label span { display: block; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: #fff; font-size: 10px; cursor: pointer; }
.check-label input:checked + span { color: #fff; border-color: var(--forest); background: var(--forest); }
.form-section-title { grid-column: 1/-1; margin: 5px 0 -5px; padding-top: 9px; border-top: 1px solid #eee9df; color: var(--tea); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.dialog-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 17px 27px 22px; border-top: 1px solid var(--line); background: #fdfaf4; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; padding: 12px 17px; border-radius: 12px; color: #fff; background: #18382b; box-shadow: 0 12px 30px rgba(16,42,30,.25); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: .24s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.bottom-nav { display: none; }

@media (max-width: 1180px) {
  :root { --sidebar: 220px; }
  .main-content { padding-inline: 30px; }
  .content-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 840px) {
  body { padding-bottom: 76px; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 19px 16px 95px; }
  .topbar { min-height: 64px; align-items: center; gap: 11px; margin-bottom: 17px; }
  .topbar-copy p, .topbar-copy > span { display: none; }
  .topbar h1 { font-size: 29px; }
  .topbar-actions { gap: 7px; }
  .topbar-actions .search-trigger { display: none; }
  .topbar .primary-button { width: 44px; padding: 0; border-radius: 13px; }
  .topbar .primary-button span { display: none; }
  .mobile-brand { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 0; background: transparent; cursor: pointer; }
  .mobile-brand .mini-leaf { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #2a503f; background: #dfc596; font-family: "Songti SC", serif; font-size: 18px; }
  .mobile-brand strong { display: none; font-family: "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .stat-card { min-height: 93px; padding: 14px; }
  .stat-card strong { font-size: 25px; }
  .stat-card small { margin-top: 5px; }
  .content-grid, .tasting-layout { grid-template-columns: 1fr; }
  .toolbar { gap: 9px; }
  .search-box { max-width: none; }
  .bottom-nav { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,1fr); padding: 7px; border: 1px solid rgba(255,255,255,.65); border-radius: 20px; background: rgba(250,247,240,.9); box-shadow: 0 14px 35px rgba(27,50,39,.2); backdrop-filter: blur(16px); }
  .bottom-nav button { display: grid; place-items: center; gap: 2px; border: 0; padding: 7px 2px; border-radius: 14px; color: #7f8c85; background: transparent; font-size: 9px; cursor: pointer; }
  .bottom-nav button.active { color: #fff; background: var(--forest); }
  .bottom-nav svg { width: 20px; height: 20px; }
  .dialog-head, .dialog-body, .dialog-foot { padding-left: 19px; padding-right: 19px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full, .form-section-title { grid-column: auto; }
}
@media (max-width: 430px) {
  .stat-card p { margin-bottom: 9px; font-size: 10px; }
  .stat-card small { display: none; }
  .tea-card { min-height: 222px; }
  .score-bars { grid-template-columns: repeat(2,1fr); }
}


[hidden] { display: none !important; }
.mountain-hero {
  position: relative;
  overflow: hidden;
  min-height: 305px;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid var(--forest);
  border-radius: 28px;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
}
.mountain-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("./assets/jieziyuan.png") right bottom / contain no-repeat;
  opacity: .38;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.mountain-kicker { position: relative; z-index: 1; margin: 0 0 17px; color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .24em; }
.mountain-hero h2 { position: relative; z-index: 1; max-width: 650px; margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif; font-size: clamp(32px, 5vw, 54px); font-weight: 500; line-height: 1.28; letter-spacing: .04em; }
.mountain-hero > p:last-child { position: relative; z-index: 1; max-width: 570px; margin: 25px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.9; }
.mountain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.mountain-card summary {
  position: relative;
  display: block;
  cursor: pointer;
  list-style: none;
}
.mountain-card summary::-webkit-details-marker { display: none; }
.mountain-card summary::after {
  content: "›";
  position: absolute;
  top: 0;
  right: 0;
  color: var(--tea);
  font-size: 20px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform .2s ease;
}
.mountain-card[open] summary::after { transform: rotate(-90deg); }
.mountain-card-content { min-height: 0; }
.mountain-card[open] .mountain-card-content { min-height: 64px; }
.mountain-card { min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,249,.86); box-shadow: var(--shadow-soft); }
.mountain-card span { color: var(--tea); font-family: "Songti SC", serif; font-size: 12px; font-weight: 700; }
.mountain-card h3 { margin: 31px 0 9px; font-family: "Songti SC", serif; font-size: 21px; }
.mountain-card p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.8; }
.mountain-quote { margin: 26px 0 0; padding: 28px 0 10px; color: var(--forest); border-top: 1px solid var(--line); font-family: "Songti SC", "STSong", serif; font-size: clamp(22px, 3vw, 31px); text-align: center; }
.mountain-quote cite { display: block; margin-top: 9px; color: #8b9890; font-family: inherit; font-size: 10px; font-style: normal; }

@media (max-width: 840px) {
  .mountain-hero { min-height: 260px; padding: 33px 27px; }
  .mountain-grid { grid-template-columns: 1fr; }
  .mountain-card { min-height: 145px; }
  .mountain-card h3 { margin-top: 20px; }
}

.tea-making-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 24px 0 0;
  padding: 14px 20px;
  border: 1px solid rgba(35,75,58,.65);
  border-radius: 16px;
  color: var(--heading-ink);
  background: rgba(35,75,58,.06);
  font-family: var(--font-hei);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .12em;
  text-align: center;
}
.tea-section-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 20px;
}
.tea-section-tab {
  min-width: 0;
  min-height: 86px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink-soft);
  background: rgba(255,253,249,.78);
  box-shadow: 0 5px 16px rgba(32,54,44,.05);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.tea-section-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(49,99,78,.28);
  background: var(--paper);
}
.tea-section-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, #31634e, #214b39);
  box-shadow: 0 10px 24px rgba(35,75,58,.18);
}
.tea-section-tab span,
.tea-section-tab small {
  display: block;
  color: var(--tea);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.tea-section-tab strong {
  display: block;
  margin: 8px 0 5px;
  overflow: hidden;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tea-section-tab.active span,
.tea-section-tab.active small { color: #dfb878; }
.tea-section-tab.active strong { color: #fff; }

.tea-process-intro {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.tea-process-figure {
  width: min(100%, 760px);
  margin: 0 auto;
}
.tea-process-figure img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  filter: contrast(1.02);
  user-select: none;
}
.process-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.process-guide-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 21px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,249,.86);
  box-shadow: var(--shadow-soft);
}
.process-guide-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--guide-tone);
}
.process-guide-card header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.process-guide-card header span {
  color: var(--guide-tone);
  font-size: 10px;
  font-weight: 800;
}
.process-guide-card h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 23px;
}
.process-guide-card em {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--guide-tone);
  background: color-mix(in srgb, var(--guide-tone) 12%, white);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}
.guide-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 25px;
}
.guide-flow b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.guide-flow i {
  color: #a5afa8;
  font-size: 10px;
  font-style: normal;
}
.process-guide-card p {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.8;
}

@media (max-width: 1180px) {
  .tea-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .tea-making-heading {
    min-height: 50px;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 16px;
  }
  .tea-section-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 16px 0 18px;
    padding: 0;
    overflow: visible;
  }
  .tea-section-tab {
    min-height: 79px;
    padding: 12px 13px;
  }
  .tea-section-tab:last-child {
    grid-column: auto;
  }
  .process-guide-grid { grid-template-columns: 1fr; }
  .process-guide-card { min-height: 188px; }
}

.stats-grid.stats-count-1 {
  grid-template-columns: minmax(220px, 360px);
}
@media (max-width: 840px) {
  .stats-grid.stats-count-1 {
    grid-template-columns: 1fr;
  }
}

.tasting-view,
.tasting-view * {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif !important;
  font-weight: 500 !important;
}

.stats-grid.stats-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tasting-method {
  position: relative;
  overflow: hidden;
  padding: clamp(27px, 4vw, 44px);
  border: 1px solid var(--forest);
  border-radius: 26px;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.tasting-method > p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .23em;
}
.tasting-method h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-hei);
  font-size: clamp(30px, 4.5vw, 47px);
}
.tasting-method > span {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 760px;
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.85;
}
.method-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 27px;
}
.method-steps article {
  padding: 15px;
  border: 1px solid rgba(35,75,58,.22);
  border-radius: 15px;
  background: rgba(35,75,58,.035);
}
.method-steps b,
.method-steps strong,
.method-steps small { display: block; }
.method-steps b { color: var(--tea); font-size: 9px; }
.method-steps strong { margin: 8px 0 4px; font-family: var(--font-hei); font-size: 17px; }
.method-steps small { color: var(--ink-soft); font-size: 9px; }
.tasting-guide-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.tasting-guide-tab {
  min-height: 78px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink-soft);
  background: rgba(255,253,249,.85);
  box-shadow: 0 5px 16px rgba(32,54,44,.05);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.tasting-guide-tab:hover { transform: translateY(-2px); border-color: rgba(49,99,78,.27); background: #fff; }
.tasting-guide-tab.active { color: #fff; border-color: transparent; background: linear-gradient(145deg, #31634e, #214b39); }
.tasting-guide-tab span { display: block; color: var(--tea); font-size: 9px; font-weight: 800; }
.tasting-guide-tab strong { display: block; margin: 8px 0 0; color: var(--ink); font-family: var(--font-hei); font-size: 17px; }
.tasting-guide-tab.active span { color: #e0b977; }
.tasting-guide-tab.active strong { color: #fff; }
.tasting-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 5px;
}
.tasting-guide-layout.guide-only { grid-template-columns: 1fr; }
.guide-detail-card {
  padding: 25px 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,249,.88);
  box-shadow: var(--shadow-soft);
}
.guide-detail-card > p {
  margin: 0 0 10px;
  color: var(--tea);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.guide-detail-card h2 {
  margin: 0;
  font-family: var(--font-hei);
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.65;
}
.guide-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 23px;
}
.guide-focus span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #315d48;
  background: #edf3ee;
  font-size: 10px;
}
.guide-focus-pours {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
.guide-focus-pours span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}
.guide-focus-pours span b { font-weight: 500; }
.guide-focus-pours svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--forest);
  opacity: .72;
}
.guide-advice {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.guide-advice b,
.guide-advice span { display: block; }
.guide-advice b { margin-bottom: 8px; color: var(--ink); font-size: 11px; }
.guide-advice span { color: var(--ink-soft); font-size: 11px; line-height: 1.8; white-space: pre-line; }
.guide-vocabulary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.guide-vocabulary > b {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 11px;
}
.guide-vocabulary > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.guide-vocabulary span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #315d48;
  background: #edf3ee;
  font-size: 10px;
}
.guide-tips {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.guide-tips > b {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
}
.guide-tips ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  list-style: none;
}
.guide-tips li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 11px;
  line-height: 1.7;
}
.guide-tips li b {
  color: var(--forest);
  font-size: 11px;
}
.radar-empty {
  min-height: 285px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.62);
  text-align: center;
  font-family: "Songti SC", serif;
  font-size: 18px;
  line-height: 1.8;
}
.radar-empty small { color: rgba(255,255,255,.38); font-family: inherit; font-size: 10px; }

@media (max-width: 840px) {
  .method-steps,
  .tasting-guide-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tasting-guide-layout { grid-template-columns: 1fr; }
  .guide-detail-card { padding: 22px; }
}

.session-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: center;
}
.session-detail-copy { min-width: 0; }
.session-sensory {
  min-height: 230px;
  padding-left: 20px;
  border-left: 1px solid #e9e4da;
}
.session-sensory-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.session-sensory-head span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}
.session-sensory-head strong {
  color: var(--forest);
  font-family: "Songti SC", serif;
  font-size: 21px;
}
.session-sensory svg {
  display: block;
  width: 100%;
  height: 220px;
  overflow: visible;
  margin-top: 4px;
}
.session-sensory svg line {
  stroke: #ddd8cd;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.session-sensory svg polygon {
  fill: rgba(62,112,84,.025);
  stroke: #d9d3c7;
  stroke-width: 1;
}
.session-sensory svg text {
  fill: #7d8982;
  font-size: 9px;
  stroke: none;
}
.session-sensory svg .session-radar-data {
  fill: rgba(62,112,84,.22);
  stroke: #4f8064;
  stroke-width: 1.8;
}
.session-sensory svg circle {
  fill: #d9b06c;
  stroke: #fff;
  stroke-width: 1.5;
}
.session-sensory.empty {
  display: grid;
  place-content: center;
  color: #96a099;
  text-align: center;
}
.session-sensory.empty span { font-size: 10px; font-weight: 700; }
.session-sensory.empty p { margin: 7px 0 0; font-size: 9px; }

@media (max-width: 650px) {
  .session-detail-grid { grid-template-columns: 1fr; gap: 13px; }
  .session-sensory {
    min-height: 0;
    padding: 16px 0 0;
    border-top: 1px solid #e9e4da;
    border-left: 0;
  }
  .session-sensory svg { height: 235px; }
  .session-sensory.empty { min-height: 95px; }
}

.session-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eee9df;
}
.session-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(35,75,58,.2);
  border-radius: 12px;
  color: var(--forest);
  background: #edf3ee;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.session-save-button:hover {
  border-color: rgba(35,75,58,.38);
  background: #e2ede5;
  transform: translateY(-1px);
}
.session-save-button:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}
.session-save-button svg {
  width: 15px;
  height: 15px;
}
.image-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15,35,27,.58);
  backdrop-filter: blur(5px);
}
.image-preview-panel {
  display: grid;
  gap: 14px;
  width: min(100%, 620px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(19,38,30,.34);
}
.image-preview-panel > div:first-child {
  display: grid;
  gap: 3px;
}
.image-preview-panel > div:first-child strong {
  color: var(--ink);
  font-size: 17px;
}
.image-preview-panel > div:first-child span {
  color: var(--ink-soft);
  font-size: 11px;
}
.image-preview-panel img {
  display: block;
  width: min(100%, 430px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.image-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.image-preview-actions .secondary-button,
.image-preview-actions .primary-button {
  min-height: 40px;
  text-decoration: none;
}
.session-tea-meta {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 10px;
}

.sensory-score-fields {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
}
.sensory-score-row {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(260px, 1.2fr);
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid #e8e2d7;
  border-radius: 14px;
  background: #fcfaf5;
}
.sensory-score-row b,
.sensory-score-row small { display: block; }
.sensory-score-row b { color: var(--ink); font-size: 11px; }
.sensory-score-row small { margin-top: 3px; color: #8a968f; font-size: 9px; }
.sensory-score-options {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
.sensory-score-option {
  position: relative;
  cursor: pointer;
}
.sensory-score-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sensory-score-option span {
  display: grid;
  place-items: center;
  height: 34px;
  border: 1px solid #e0d9cd;
  border-radius: 10px;
  color: #7d8982;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  transition: .16s ease;
}
.sensory-score-option:hover span { border-color: rgba(49,99,78,.4); color: var(--forest); }
.sensory-score-option input:checked + span {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
  box-shadow: 0 5px 12px rgba(35,75,58,.16);
}

@media (max-width: 600px) {
  .sensory-score-row { grid-template-columns: 1fr; gap: 10px; }
}

.sensory-profile-label {
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--forest);
  background: #edf3ee;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
}
.sensory-profile-empty {
  padding: 18px;
  border: 1px dashed #d8d0c2;
  border-radius: 14px;
  color: var(--ink-soft);
  background: #fcfaf5;
  font-size: 11px;
  line-height: 1.7;
}

.intro-open {
  overflow: hidden;
}
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: var(--intro-cream);
  background-image: none;
  opacity: 1;
  animation: introPageReveal .9s ease;
  transition: opacity .78s ease, visibility .78s ease;
}
@keyframes introPageReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.intro-splash.leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-paper-grain {
  display: none;
}
.intro-splash::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(72,47,24,.2);
  box-shadow: inset 0 0 52px rgba(83,53,28,.08);
  pointer-events: none;
}
.intro-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(78vw, 740px);
  height: min(88vh, 1080px);
}
.intro-art img {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(84vh, 1020px);
  object-fit: contain;
  opacity: 0;
  transform: translateY(10px) scale(1.025);
  filter: contrast(1.04) sepia(.08);
  animation: introArtReveal 2.25s cubic-bezier(.2,.72,.24,1) .25s forwards;
  user-select: none;
  -webkit-user-drag: none;
}
.intro-enter {
  position: absolute;
  z-index: 2;
  bottom: max(34px, env(safe-area-inset-bottom));
  left: 50%;
  padding: 10px 18px;
  border: 1px solid rgba(69,45,23,.22);
  border-radius: 999px;
  color: #5b4024;
  background: rgba(244,229,198,.45);
  font-size: 11px;
  letter-spacing: .16em;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, 8px);
  backdrop-filter: blur(4px);
  animation: introHintReveal .7s ease 2.35s forwards;
}
.intro-enter:hover {
  background: rgba(250,240,216,.72);
}
@keyframes introArtReveal {
  0% { opacity: 0; transform: translateY(10px) scale(1.025); }
  65% { opacity: .86; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes introHintReveal {
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 840px) {
  .intro-splash::after { inset: 9px; }
  .intro-art { width: min(91vw, 560px); height: min(86vh, 760px); }
  .intro-art img { height: min(82vh, 720px); }
}
@media (prefers-reduced-motion: reduce) {
  .intro-art img,
  .intro-enter { animation-duration: .01ms; animation-delay: 0ms; }
  .intro-splash { animation: none; transition-duration: .01ms; }
}

.process-flat-tree {
  margin-top: 22px;
}
.process-flat-root {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  min-height: 56px;
  margin: 0 auto;
  padding: 14px 20px;
  border: 1px solid rgba(35,75,58,.65);
  border-radius: 16px;
  color: var(--heading-ink);
  background: rgba(35,75,58,.06);
  box-shadow: none;
  font-family: var(--font-hei);
}
.process-flat-root span {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .12em;
}
.process-flat-root small {
  color: rgba(35,75,58,.58);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .08em;
}
.process-flat-stem {
  width: 1px;
  height: 22px;
  margin: 0 auto;
  background: #c7b79d;
}
.process-flat-paths {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 18px;
}
.process-flat-paths::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: #c7b79d;
}
.process-flat-paths::after {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 18px;
  border-left: 1px solid #c7b79d;
  border-right: 1px solid #c7b79d;
  pointer-events: none;
}
.process-flat-path {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,253,249,.72);
}
.process-flat-path > header {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(229,217,200,.28);
}
.process-flat-path h3 {
  margin: 0;
  font-family: "Heiti SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  line-height: 1.2;
}
.process-flat-path header small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: .04em;
}
.process-flat-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}
.process-flat-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  background: #fffdf8;
}
.process-flat-tea {
  position: relative;
  display: grid;
  gap: 2px;
  padding-left: 11px;
}
.process-flat-tea::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--tea-tone);
}
.process-flat-tea strong {
  color: #263a31;
  font-size: 13px;
}
.process-flat-tea small {
  color: #859088;
  font-size: 9px;
  white-space: nowrap;
}
.process-flat-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}
.process-flat-steps span {
  position: relative;
  padding: 6px 9px;
  border: 1px solid #e4dccf;
  border-radius: 9px;
  color: #314b40;
  background: #f4f0e8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.process-flat-steps span:not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: -10px;
  color: #b7a78e;
  font-size: 13px;
  font-weight: 400;
  transform: translateY(-50%);
}
@media (max-width: 840px) {
  .process-flat-root {
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 14px;
  }
  .process-flat-root span { font-size: 16px; }
  .process-flat-paths { gap: 10px; }
  .process-flat-stem { height: 16px; }
  .process-flat-path > header { padding: 14px 13px; }
  .process-flat-row {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 11px;
  }
  .process-flat-steps { gap: 11px; }
}
@media (max-width: 520px) {
  .process-flat-root {
    width: 100%;
    gap: 8px;
  }
  .process-flat-paths { gap: 8px; }
  .process-flat-path { border-radius: 14px; }
  .process-flat-path > header {
    padding: 12px 10px;
  }
  .process-flat-path h3 { font-size: 16px; }
  .process-flat-path header small {
    font-size: 9px;
    line-height: 1.35;
  }
  .process-flat-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 9px;
  }
  .process-flat-tea {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding-left: 9px;
  }
  .process-flat-tea strong { font-size: 12px; }
  .process-flat-tea small { font-size: 8px; }
  .process-flat-steps { gap: 10px; }
  .process-flat-steps span {
    padding: 5px 7px;
    border-radius: 7px;
    font-size: 10px;
  }
  .process-flat-steps span:not(:last-child)::after {
    right: -8px;
    font-size: 11px;
  }
}

/* Tea production process image */
.tea-flow-card {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 22px;
}
.tea-flow-head {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
}
.tea-flow-head p {
  margin: 0 0 7px;
  color: var(--tea);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.tea-flow-head h2 {
  margin: 0;
  font-family: var(--font-hei);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: .05em;
}
.tea-flow-head > div:first-child > span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}
.tea-flow-stage {
  padding: 20px clamp(12px, 3vw, 30px) 24px;
  background: transparent;
}
.tea-flow-canvas {
  width: min(100%, 780px);
  margin: 0 auto;
}
.tea-flow-base {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  user-select: none;
}
@media (max-width: 840px) {
  .tea-flow-head { padding: 20px 18px 17px; }
  .tea-flow-stage { padding: 10px 8px 16px; }
}

.tea-section-tab {
  position: relative;
  padding-right: 32px;
}
.tea-section-tab::after {
  content: "▸";
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--tea);
  font-size: 16px;
  line-height: 1;
  transform: translateY(-50%);
}
.tea-section-tab.active::after { color: #dfb878; }
