:root {
  --tea-ink: #211a2b;
  --tea-muted: #6d6577;
  --tea-purple: #4f3577;
  --tea-purple-dark: #281c3b;
  --tea-purple-pale: #eee8f6;
  --tea-yellow: #efbd37;
  --tea-red: #bd3b32;
  --tea-red-pale: #fae9e7;
  --tea-green: #28725a;
  --tea-line: #ded8e5;
  --tea-paper: #f7f5fa;
  --tea-card: #fff;
  --tea-radius: 22px;
}

html { scroll-behavior: smooth; }
body { overflow-x: clip; background: var(--tea-paper); color: var(--tea-ink); }
.tea-page { min-width: 0; font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif; }
.tea-page *, .tea-page *::before, .tea-page *::after { box-sizing: border-box; }

.tea-local-nav {
  position: sticky;
  top: 68px;
  z-index: 90;
  min-height: 56px;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid #594769;
  background: var(--tea-purple-dark);
  color: #fff;
  box-shadow: 0 10px 28px rgba(32,22,45,.16);
}
.tea-local-nav__brand { display: flex; align-items: baseline; gap: 12px; color: #fff; text-decoration: none; white-space: nowrap; }
.tea-local-nav__brand strong { font-size: 17px; font-weight: 950; letter-spacing: .12em; }
.tea-local-nav__brand span { color: #cdbfdb; font-size: 13px; font-weight: 800; }
.tea-local-nav__links { display: flex; align-items: center; gap: 25px; }
.tea-local-nav__links a { padding: 18px 0 14px; border-bottom: 3px solid transparent; color: #eee8f3; font-size: 14px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.tea-local-nav__links a:hover { border-bottom-color: var(--tea-yellow); color: #fff; }

.tea-page main { min-width: 0; }
.tea-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: clamp(64px, 8vw, 108px) max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  align-items: center;
  gap: clamp(44px, 7vw, 92px);
  background:
    radial-gradient(circle at 76% 28%, rgba(132,91,183,.28), transparent 26%),
    linear-gradient(135deg, #17111f 0%, #2b1d3e 56%, #3c2855 100%);
  color: #fff;
}
.tea-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .17;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to left, #000, transparent 72%);
}
.tea-hero__copy, .tea-hero__metrics { position: relative; z-index: 1; }
.tea-eyebrow, .tea-kicker { margin: 0 0 14px; color: var(--tea-yellow); font-size: 14px; font-weight: 950; letter-spacing: .14em; }
.tea-hero h1 { max-width: 800px; margin: 0; font-size: clamp(44px, 5vw, 72px); font-weight: 950; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.tea-hero h1 .tea-title-line { display: block; color: #fff; }
.tea-hero h1 .tea-title-line:last-child { color: #d9c4ef; }
.tea-hero__lead { max-width: 660px; margin: 26px 0 0; color: #d9d1e1; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; line-height: 1.75; }
.tea-hero__actions { margin-top: 34px; display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.tea-button { min-height: 48px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; font-size: 16px; font-weight: 900; text-decoration: none; }
.tea-button--primary { border-color: var(--tea-yellow); background: var(--tea-yellow); color: var(--tea-purple-dark); }
.tea-button--ghost:hover { background: rgba(255,255,255,.1); }
.tea-button--primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

.tea-hero__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tea-metric { min-height: 172px; padding: 22px; display: grid; align-content: space-between; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.tea-metric:first-child { grid-row: span 2; min-height: 358px; }
.tea-metric span { color: #d8cee2; font-size: 14px; font-weight: 800; }
.tea-metric strong { color: #fff; font-size: clamp(52px, 6vw, 82px); font-weight: 950; line-height: .96; letter-spacing: -.06em; }
.tea-metric:first-child strong { font-size: clamp(76px, 9vw, 118px); color: var(--tea-yellow); }
.tea-metric small { color: #d8cee2; font-size: 15px; font-weight: 750; }
.tea-metric--danger { border-color: rgba(245,120,104,.48); background: rgba(145,42,41,.21); }
.tea-metric--danger strong { color: #ff9b8d; }

.tea-alert { width: min(1180px, calc(100% - 48px)); margin: -34px auto 0; position: relative; z-index: 5; padding: 22px 26px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; border: 1px solid #d8ccdf; border-left: 6px solid var(--tea-yellow); border-radius: 18px; background: #fff; box-shadow: 0 18px 45px rgba(32,22,45,.12); }
.tea-alert strong { font-size: 20px; font-weight: 950; }
.tea-alert p { margin: 0; color: var(--tea-muted); font-size: 16px; font-weight: 650; line-height: 1.75; }

.tea-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 96px 0 24px; scroll-margin-top: 128px; }
.tea-section__head { max-width: 820px; margin-bottom: 38px; }
.tea-section__head h2 { margin: 0; font-size: clamp(34px, 4.1vw, 54px); font-weight: 950; line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; }
.tea-section__head > p:last-child { margin: 18px 0 0; color: var(--tea-muted); font-size: 18px; font-weight: 600; line-height: 1.75; }
.tea-section__head--split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.tea-data-date { margin: 0 0 6px; padding: 9px 14px; border: 1px solid var(--tea-line); border-radius: 999px; background: #fff; color: var(--tea-muted); font-size: 14px; white-space: nowrap; }

.tea-flow { display: grid; grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr) 48px minmax(0,1fr); align-items: stretch; }
.tea-flow__card { position: relative; min-width: 0; padding: 26px; border: 1px solid var(--tea-line); border-radius: var(--tea-radius); background: #fff; box-shadow: 0 14px 34px rgba(37,25,52,.06); }
.tea-flow__card--focus { border-color: #9b7db9; background: linear-gradient(180deg, #f5f0fa, #fff); }
.tea-flow__no { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--tea-purple-pale); color: var(--tea-purple); font-size: 13px; font-weight: 950; }
.tea-flow__date { margin: 22px 0 7px; color: var(--tea-muted); font-size: 13px; font-weight: 850; }
.tea-flow h3 { margin: 0; font-size: 23px; font-weight: 950; line-height: 1.3; }
.tea-flow__card > strong { margin-top: 14px; display: block; color: var(--tea-red); font-size: 27px; font-weight: 950; line-height: 1.2; }
.tea-flow__card > p:last-child { margin: 16px 0 0; color: var(--tea-muted); font-size: 15px; font-weight: 600; line-height: 1.75; }
.tea-flow__arrow { display: grid; place-items: center; color: var(--tea-purple); font-size: 24px; font-weight: 950; }

.tea-chain-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.tea-chain-grid article { padding: 24px 25px; border-radius: 18px; background: var(--tea-purple-dark); color: #fff; }
.tea-chain-grid span { color: var(--tea-yellow); font-size: 13px; font-weight: 950; letter-spacing: .12em; }
.tea-chain-grid h3 { margin: 10px 0 0; font-size: 21px; font-weight: 950; }
.tea-chain-grid p { margin: 12px 0 0; color: #d6cbdf; font-size: 15px; font-weight: 600; line-height: 1.7; }

.tea-section--search { width: 100%; margin-top: 72px; padding: 88px max(24px, calc((100vw - 1180px) / 2)); background: #eee8f4; }
.tea-searchbox { padding: 26px; border: 1px solid #d4c8df; border-radius: 22px; background: #fff; box-shadow: 0 16px 38px rgba(38,25,54,.07); }
.tea-searchbox label { display: block; margin-bottom: 10px; color: var(--tea-purple-dark); font-size: 16px; font-weight: 950; }
.tea-searchbox__row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.tea-searchbox input { width: 100%; min-height: 58px; padding: 0 18px; border: 2px solid #a992bc; border-radius: 14px; background: #faf8fc; color: var(--tea-ink); font: 750 17px/1.4 inherit; outline: none; }
.tea-searchbox input:focus { border-color: var(--tea-purple); box-shadow: 0 0 0 4px rgba(79,53,119,.12); }
.tea-searchbox button { padding: 0 20px; border: 0; border-radius: 14px; background: var(--tea-purple-dark); color: #fff; font: 900 15px/1 inherit; cursor: pointer; }
.tea-searchbox > p { margin: 13px 0 0; color: var(--tea-muted); font-size: 14px; font-weight: 600; line-height: 1.65; }
.tea-filter { margin: 18px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tea-filter button { padding: 10px 14px; border: 1px solid #cbbfd7; border-radius: 999px; background: #fff; color: var(--tea-muted); font: 850 14px/1.2 inherit; cursor: pointer; }
.tea-filter button.is-active { border-color: var(--tea-purple); background: var(--tea-purple); color: #fff; }
.tea-result-count { margin: 30px 0 12px; color: var(--tea-muted); font-size: 15px; font-weight: 800; }
.tea-records { display: grid; gap: 12px; }
.tea-record { padding: 22px; display: grid; grid-template-columns: minmax(220px,1.1fr) minmax(180px,.8fr) minmax(170px,.7fr) minmax(210px,.9fr) auto; align-items: center; gap: 20px; border: 1px solid #d7cddd; border-radius: 18px; background: #fff; }
.tea-record__product { min-width: 0; }
.tea-record__brand { margin: 0 0 5px; color: var(--tea-purple); font-size: 13px; font-weight: 950; letter-spacing: .05em; }
.tea-record h3 { margin: 0; font-size: 19px; font-weight: 950; line-height: 1.35; }
.tea-record__meta { margin: 7px 0 0; color: var(--tea-muted); font-size: 13px; font-weight: 650; line-height: 1.55; }
.tea-record__field { min-width: 0; display: grid; gap: 5px; }
.tea-record__field span { color: var(--tea-muted); font-size: 12px; font-weight: 850; }
.tea-record__field strong { overflow-wrap: anywhere; font-size: 15px; font-weight: 850; line-height: 1.5; }
.tea-record__result strong { font-size: 22px; color: var(--tea-red); }
.tea-record__result small { color: var(--tea-muted); font-size: 12px; font-weight: 700; }
.tea-status { justify-self: end; min-width: 112px; padding: 8px 11px; border-radius: 999px; text-align: center; font-size: 13px; font-weight: 950; }
.tea-status--danger { background: var(--tea-red-pale); color: var(--tea-red); }
.tea-status--warning { background: #fff4ce; color: #7d5b00; }
.tea-record__more { grid-column: 1 / -1; margin: -4px 0 0; padding-top: 15px; display: grid; grid-template-columns: 1fr auto; gap: 20px; border-top: 1px solid #ece7ef; color: var(--tea-muted); font-size: 13px; font-weight: 600; line-height: 1.65; }
.tea-record__more p { margin: 0; }
.tea-record__more a { color: var(--tea-purple); font-weight: 900; white-space: nowrap; }
.tea-empty { margin: 0; padding: 28px; border: 1px dashed #b9a9c9; border-radius: 18px; color: var(--tea-muted); text-align: center; font-weight: 750; }

.tea-accountability { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.tea-accountability article { padding: 30px; border-radius: 24px; }
.tea-accountability__done { border: 1px solid #c7dbd3; background: #eef7f3; }
.tea-accountability__missing { background: var(--tea-purple-dark); color: #fff; }
.tea-accountability__tag { margin: 0 0 12px; color: var(--tea-green); font-size: 13px; font-weight: 950; letter-spacing: .1em; }
.tea-accountability__missing .tea-accountability__tag { color: var(--tea-yellow); }
.tea-accountability h3 { margin: 0; font-size: 28px; font-weight: 950; }
.tea-accountability ul, .tea-accountability ol { margin: 22px 0 0; padding-left: 24px; }
.tea-accountability li { margin-top: 13px; font-size: 16px; font-weight: 650; line-height: 1.7; }
.tea-accountability__done li { color: #3e5e53; }
.tea-accountability__missing li { color: #ded5e5; }
.tea-accountability__missing li strong { color: #fff; }

.tea-section--method { padding-bottom: 72px; }
.tea-legend { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.tea-legend > div { padding: 22px; border: 1px solid var(--tea-line); border-radius: 18px; background: #fff; }
.tea-legend strong { margin-left: 8px; font-size: 17px; font-weight: 950; }
.tea-legend p { margin: 12px 0 0; color: var(--tea-muted); font-size: 14px; font-weight: 600; line-height: 1.65; }
.tea-dot { width: 11px; height: 11px; display: inline-block; border-radius: 50%; }
.tea-dot--danger { background: var(--tea-red); }
.tea-dot--warn { background: var(--tea-yellow); }
.tea-dot--info { background: var(--tea-purple); }
.tea-sources { margin-top: 24px; border: 1px solid var(--tea-line); border-radius: 18px; background: #fff; overflow: hidden; }
.tea-sources summary { padding: 19px 22px; color: var(--tea-ink); font-size: 17px; font-weight: 950; cursor: pointer; }
.tea-source-list { padding: 0 22px 20px; display: grid; gap: 9px; }
.tea-source { padding: 14px 0; display: grid; grid-template-columns: 180px minmax(0,1fr) auto; align-items: center; gap: 18px; border-top: 1px solid #eee9f1; }
.tea-source span { color: var(--tea-muted); font-size: 13px; font-weight: 750; }
.tea-source a { color: var(--tea-purple); font-size: 15px; font-weight: 850; line-height: 1.45; }
.tea-source time { color: var(--tea-muted); font-size: 13px; white-space: nowrap; }
.tea-method-note { margin: 18px 0 0; color: var(--tea-muted); font-size: 13px; font-weight: 650; line-height: 1.7; }

body > footer { margin-top: 0; }

@media (max-width: 980px) {
  .tea-local-nav { padding-inline: 20px; }
  .tea-local-nav__brand span { display: none; }
  .tea-local-nav__links { gap: 15px; }
  .tea-local-nav__links a { font-size: 13px; }
  .tea-hero { grid-template-columns: 1fr; min-height: 0; gap: 42px; }
  .tea-hero__copy { max-width: 800px; }
  .tea-hero__metrics { max-width: 720px; }
  .tea-metric:first-child { min-height: 250px; }
  .tea-flow { grid-template-columns: 1fr; gap: 12px; }
  .tea-flow__arrow { height: 28px; transform: rotate(90deg); }
  .tea-chain-grid { grid-template-columns: 1fr; }
  .tea-record { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tea-status { justify-self: start; }
}

@media (max-width: 720px) {
  .tea-local-nav { top: 62px; min-height: 52px; padding: 0 14px; }
  .tea-local-nav__brand strong { font-size: 15px; }
  .tea-local-nav__links { overflow-x: auto; gap: 17px; scrollbar-width: none; }
  .tea-local-nav__links::-webkit-scrollbar { display: none; }
  .tea-local-nav__links a { padding: 17px 0 13px; }
  .tea-hero { padding: 58px 20px 72px; }
  .tea-hero h1 { font-size: clamp(40px, 11vw, 48px); }
  .tea-hero h1 .tea-title-line:last-child { white-space: nowrap; }
  .tea-hero__lead { font-size: 17px; }
  .tea-hero__metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
  .tea-metric { min-height: 146px; padding: 17px; }
  .tea-metric:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 190px; }
  .tea-metric:first-child strong { font-size: 84px; }
  .tea-metric strong { font-size: 50px; }
  .tea-alert { width: calc(100% - 28px); grid-template-columns: 1fr; gap: 8px; margin-top: -28px; padding: 20px; }
  .tea-alert strong { font-size: 18px; }
  .tea-section { width: calc(100% - 36px); padding-top: 76px; }
  .tea-section--search { width: 100%; margin-top: 54px; padding: 72px 18px; }
  .tea-section__head { margin-bottom: 28px; }
  .tea-section__head h2 { font-size: 36px; }
  .tea-section__head > p:last-child { font-size: 16px; }
  .tea-section__head--split { align-items: start; flex-direction: column; gap: 12px; }
  .tea-data-date { margin: 0; }
  .tea-flow__card { padding: 22px; }
  .tea-searchbox { padding: 18px; }
  .tea-searchbox__row { grid-template-columns: 1fr; }
  .tea-searchbox button { min-height: 44px; }
  .tea-record { grid-template-columns: 1fr; gap: 15px; padding: 19px; }
  .tea-record__more { grid-template-columns: 1fr; gap: 9px; }
  .tea-accountability { grid-template-columns: 1fr; }
  .tea-accountability article { padding: 24px; }
  .tea-legend { grid-template-columns: 1fr; }
  .tea-source { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tea-button, .oil-family-switch__view { transition: none; }
}
