:root {
  --ink: #f4f0e8;
  --muted: rgba(244, 240, 232, 0.68);
  --faint: rgba(244, 240, 232, 0.12);
  --line: rgba(244, 240, 232, 0.2);
  --green: #abc982;
  --green-deep: #283720;
  --field: #111713;
  --field-2: #172018;
  --panel: rgba(20, 28, 22, 0.72);
  --panel-strong: rgba(24, 35, 27, 0.9);
  --gold: #d8ca9d;
  --warm: #efe8d7;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  --display: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Segoe UI", sans-serif;
  --sans: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #0a0d0a;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 18% 12%, rgba(96, 124, 63, 0.32), transparent 28%),
    radial-gradient(circle at 82% 4%, rgba(190, 205, 111, 0.12), transparent 26%),
    linear-gradient(145deg, #0b0f0c 0%, #111812 48%, #070a08 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

h1,
h2,
p {
  margin: 0;
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 430px));
  gap: 28px;
  justify-content: center;
  padding: 32px;
}

.screen {
  position: relative;
  isolation: isolate;
  width: min(430px, calc(100vw - 24px));
  min-height: 812px;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 14%, rgba(143, 171, 87, 0.22), transparent 24%),
    linear-gradient(180deg, var(--field-2), var(--field) 48%, #090e0b 100%);
  box-shadow: var(--shadow);
  padding: 42px 34px 34px;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.45;
  mix-blend-mode: screen;
}

.screen::after {
  content: "";
  position: absolute;
  inset: auto -16% -8% 52%;
  z-index: -1;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 189, 86, 0.2), transparent 66%);
  filter: blur(3px);
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 34px;
}

.logo,
.icon-button,
.circle-link {
  display: inline-grid;
  place-items: center;
  color: var(--warm);
}

.logo {
  width: 48px;
  height: 48px;
}

.logo svg,
.icon-button svg,
.circle-link svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-button {
  width: 36px;
  height: 36px;
}

.page-title {
  margin-bottom: 24px;
}

.page-title.compact {
  margin-bottom: 18px;
}

.screen-kicker {
  margin-bottom: 12px;
  color: var(--green);
  font-family: var(--display);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}

.page-title h1,
.menu-hero h1,
.detail-copy h1 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: 0;
}

.page-title h1 {
  font-size: 42px;
}

.page-title span,
.detail-copy p,
.trace-list p,
.brew-steps p,
.cart-item p,
.checkout-section p,
.choice-row small {
  color: var(--muted);
  line-height: 1.7;
}

.hero-image,
.detail-visual,
.origin-image,
.product-thumb,
.cart-thumb {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.hero-image {
  height: 172px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.hero-image::after,
.detail-visual::after,
.origin-image::after,
.product-thumb::after,
.cart-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 8, 0.08), rgba(7, 10, 8, 0.55));
}

.hero-image span,
.detail-visual span {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 14px;
  color: var(--warm);
  font-size: 13px;
}

.image-leaf {
  background-image: url("assets/tea-leaves.jpg");
}

.image-mountain {
  background-image: url("assets/tea-mountain.jpg");
}

.thumb-bud {
  background-image: url("assets/tea-leaves.jpg");
}

.thumb-cloud {
  background-image: url("assets/green-loose-tea.jpg");
  filter: saturate(0.82) brightness(0.72) contrast(1.08);
}

.thumb-matcha {
  background-image: url("assets/matcha-powder-dark.jpg");
  background-position: 50% 44%;
  filter: saturate(0.82) brightness(0.8) contrast(1.08);
}

.filter-row,
.brew-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row button,
.brew-tabs button {
  min-width: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--muted);
  background: rgba(244, 240, 232, 0.04);
}

.filter-row .active,
.brew-tabs .active {
  color: #0e160f;
  border-color: var(--green);
  background: var(--green);
}

.product-list,
.cart-items,
.brew-steps,
.trace-list {
  display: grid;
  gap: 14px;
}

.product-card,
.cart-item,
.brew-steps article,
.checkout-section,
.gift-panel,
.quiet-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.product-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto 42px;
  gap: 14px;
  align-items: center;
  min-height: 98px;
  padding: 12px;
}

.product-thumb,
.cart-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.product-card span,
.cart-item span,
.checkout-section span,
.quiet-panel span,
.gift-panel span,
.trace-list span,
.brew-steps span,
.taste-grid span,
.spec-row span,
.buy-bar span {
  display: block;
  color: var(--green);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
}

.product-card h2,
.cart-item h2,
.checkout-section h2,
.brew-steps h2 {
  margin: 4px 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}

.product-card p,
.cart-item p {
  font-size: 13px;
}

.product-card strong,
.cart-item strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
}

.circle-link {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(171, 201, 130, 0.76);
  border-radius: 50%;
  color: var(--green);
}

.menu-hero {
  margin-top: 64px;
}

.menu-hero h1 {
  max-width: 7em;
  font-size: 52px;
}

.menu-list {
  display: grid;
  gap: 4px;
  margin: 38px 0 28px;
}

.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  min-height: 54px;
  border-bottom: 1px solid var(--faint);
  color: var(--warm);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 300;
}

.menu-list span {
  color: var(--green);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}

.search-strip {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.search-strip label {
  color: var(--muted);
  font-size: 13px;
}

.search-strip div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
}

.search-strip input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--warm);
  background: rgba(244, 240, 232, 0.06);
}

.search-strip button {
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  background: transparent;
}

.search-strip button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.quiet-panel,
.gift-panel {
  margin-top: 18px;
  padding: 16px;
}

.quiet-panel strong,
.gift-panel strong {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}

.detail-visual {
  height: 288px;
  border-radius: 8px;
  margin: -8px -10px 26px;
}

.detail-copy h1 {
  font-size: 50px;
}

.detail-copy p:last-child {
  margin-top: 14px;
}

.taste-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 14px;
}

.taste-grid div,
.metric-row div,
.choice-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 240, 232, 0.05);
}

.taste-grid div,
.metric-row div {
  padding: 14px 10px;
}

.taste-grid strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--faint);
}

.buy-bar {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  border: 1px solid rgba(171, 201, 130, 0.42);
  border-radius: 8px;
  padding: 12px 14px 12px 18px;
  background: rgba(9, 13, 10, 0.82);
  backdrop-filter: blur(16px);
}

.buy-bar strong {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
}

.buy-bar button {
  min-width: 132px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #0c130d;
  background: var(--green);
}

.origin-image {
  height: 230px;
  border-radius: 8px;
  margin: -4px -10px 24px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.metric-row strong {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
}

.metric-row span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.trace-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.trace-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--faint);
}

.timer-block {
  position: relative;
  display: grid;
  place-items: center;
  height: 256px;
  margin: 4px 0 20px;
}

.timer-block svg {
  position: absolute;
  width: 210px;
  height: 210px;
  fill: none;
}

.timer-block circle {
  stroke: rgba(244, 240, 232, 0.12);
  stroke-width: 8;
}

.timer-block path {
  stroke: var(--green);
  stroke-width: 8;
  stroke-linecap: round;
}

.timer-block div {
  position: relative;
  display: grid;
  justify-items: center;
}

.timer-block span,
.timer-block small {
  color: var(--muted);
}

.timer-block strong {
  font-family: var(--display);
  font-size: 58px;
  font-weight: 300;
}

.brew-steps article {
  padding: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 82px;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.quantity {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
}

.quantity button {
  width: 24px;
  height: 24px;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.quantity span {
  color: var(--warm);
  text-align: center;
}

.gift-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-section {
  margin-top: 14px;
  padding: 16px;
}

.screen-checkout .phone-header {
  margin-bottom: 24px;
}

.screen-checkout .page-title {
  margin-bottom: 14px;
}

.screen-checkout .page-title h1 {
  font-size: 40px;
}

.screen-checkout .page-title span {
  line-height: 1.5;
}

.screen-checkout .checkout-section {
  margin-top: 12px;
  padding: 14px 16px;
}

.choice-row {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 13px;
}

.choice-row.active {
  border-color: rgba(171, 201, 130, 0.72);
  background: rgba(171, 201, 130, 0.12);
}

.screen-checkout .choice-row {
  margin-top: 8px;
  padding: 10px 12px;
}

.summary p {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--faint);
  font-style: normal;
}

.summary p:last-child {
  border-bottom: 0;
}

.summary em {
  color: var(--warm);
  font-style: normal;
}

.screen-checkout .summary p {
  padding: 7px 0;
}

.screen-checkout .buy-bar {
  position: static;
  margin-top: 12px;
}

@media (max-width: 520px) {
  .board {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 12px;
  }

  .screen {
    width: 100%;
    min-height: 780px;
    border-radius: 26px;
    padding: 32px 24px 28px;
  }

  .page-title h1,
  .menu-hero h1 {
    font-size: 40px;
  }

  .product-card {
    grid-template-columns: 62px minmax(0, 1fr) auto 38px;
    gap: 10px;
  }

  .product-thumb,
  .cart-thumb {
    width: 62px;
    height: 62px;
  }

  .cart-item {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .quantity {
    grid-column: 2;
    width: 84px;
  }
}
