:root {
  --forest: #1f3b2f;
  --forest-soft: #2d5240;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --ink: #1c2620;
  --muted: #6f776d;
  --line: #e3ddcf;
  --gold: #b98a3c;
  --gold-soft: #f0e2c6;
  --red: #b4452f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 12% -8%, #f0e8d6 0%, transparent 60%),
    radial-gradient(700px 420px at 100% 8%, #e8efe6 0%, transparent 55%),
    var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.cart-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
code { padding: 1px 6px; border-radius: 5px; background: #efe9dc; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
h1, h2, h3, p { margin-top: 0; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 2.4px; }
.section-note { color: var(--muted); font-size: 13px; }
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-solid:hover { background: var(--forest-soft); transform: translateY(-1px); }
.btn-line {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: 1px solid rgba(31, 59, 47, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-line:hover { border-color: var(--forest); background: rgba(31, 59, 47, 0.05); }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ demo bar */
.demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  background: var(--forest);
  color: #e8efe6;
  font-size: 12px;
  line-height: 1.5;
}
.demo-bar .dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8fd3a8;
  box-shadow: 0 0 0 4px rgba(143, 211, 168, 0.15);
}
.demo-bar button {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 11.5px;
  cursor: pointer;
}
.demo-bar button:hover { background: rgba(255, 255, 255, 0.12); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(20px, 5vw, 68px);
  border-bottom: 1px solid rgba(31, 59, 47, 0.08);
  background: rgba(247, 243, 234, 0.86);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #f7f3ea;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}
.brand strong { display: block; font-family: "Songti SC", "STSong", serif; font-size: 17px; letter-spacing: 2px; }
.brand small { display: block; color: var(--gold); font-size: 8.5px; letter-spacing: 2.6px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 13.5px; }
.site-nav a { position: relative; color: #35433a; }
.site-nav a:hover { color: var(--forest); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transition: right 0.2s ease;
}
.site-nav a:hover::after { right: 0; }
.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  margin-left: 2px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 10px;
}
.chat-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.chat-cta:hover { background: var(--forest); color: #fff; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #56a36e; box-shadow: 0 0 0 3px rgba(86, 163, 110, 0.2); }

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 92px) clamp(22px, 5vw, 68px) clamp(30px, 5vw, 60px);
}
.hero h1 {
  margin: 0 0 20px;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -1px;
}
.hero .lead { max-width: 460px; margin-bottom: 26px; color: #4c574e; font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.hero-points li::before { content: "✓"; margin-right: 6px; color: var(--gold); }
.hero-art { position: relative; min-height: 400px; }
.orb { position: absolute; border-radius: 50%; }
.orb-1 { top: 4%; right: 6%; width: 290px; height: 290px; background: radial-gradient(circle at 35% 30%, #f3e7c9, #dfceab); opacity: 0.9; }
.orb-2 { bottom: 3%; left: 2%; width: 190px; height: 190px; background: radial-gradient(circle at 35% 30%, #dbe6d8, #bfd0bf); opacity: 0.85; }
.kettle { position: absolute; top: 22%; left: 16%; width: 230px; height: 250px; }
.kettle-body {
  position: absolute;
  bottom: 0;
  left: 18px;
  width: 196px;
  height: 168px;
  border-radius: 46% 46% 34% 34% / 54% 54% 26% 26%;
  background: linear-gradient(145deg, #314b3d, #1d3328 62%, #16281f);
  box-shadow: inset -18px -12px 30px rgba(0, 0, 0, 0.25), 0 24px 40px rgba(31, 59, 47, 0.28);
}
.kettle-body::after {
  content: "";
  position: absolute;
  right: -34px;
  top: 38px;
  width: 62px;
  height: 44px;
  border: 15px solid #20372b;
  border-left: 0;
  border-radius: 0 34px 34px 0;
}
.kettle-handle {
  position: absolute;
  top: 6px;
  left: 0;
  width: 78px;
  height: 150px;
  border: 16px solid #263f31;
  border-right: 0;
  border-radius: 60px 0 0 60px;
  transform: rotate(-8deg);
}
.kettle-spout {
  position: absolute;
  top: 50px;
  right: 2px;
  width: 74px;
  height: 26px;
  border-radius: 0 18px 4px 0;
  background: linear-gradient(180deg, #35513f, #1e3428);
  transform: rotate(-18deg);
  transform-origin: left center;
}
.steam {
  position: absolute;
  top: -46px;
  left: 50%;
  width: 2px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.85));
  filter: blur(1px);
  animation: steam 3.4s ease-in-out infinite;
}
.steam-1 { margin-left: -30px; animation-delay: 0.2s; }
.steam-2 { margin-left: 4px; height: 66px; animation-delay: 1.1s; }
.steam-3 { margin-left: 34px; animation-delay: 2s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(14px) scaleY(0.7); }
  35% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-26px) scaleY(1.15); }
}
.cup { position: absolute; right: 15%; bottom: 10%; width: 104px; height: 80px; }
.cup-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 82px;
  height: 66px;
  border-radius: 8px 8px 38px 38px;
  background: linear-gradient(160deg, #fffdf7, #e9dfc9);
  box-shadow: 0 16px 24px rgba(31, 59, 47, 0.18), inset 0 -8px 14px rgba(185, 138, 60, 0.16);
}
.cup-body::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  right: 6px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #6d4a2e, #3a2418 70%);
}
.cup-handle {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 26px;
  height: 30px;
  border: 8px solid #ece1cb;
  border-left: 0;
  border-radius: 0 22px 22px 0;
}
.bean { position: absolute; color: #4a3320; font-size: 15px; opacity: 0.75; }
.bean-1 { left: 8%; bottom: 16%; transform: rotate(24deg); }
.bean-2 { right: 8%; top: 12%; font-size: 11px; transform: rotate(-18deg); }

/* ------------------------------------------------------------------ sections */
.section { max-width: 1220px; margin: 0 auto; padding: clamp(38px, 5vw, 66px) clamp(22px, 5vw, 68px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.section-head h2, .about h2, .orders h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: 1px; }
.section-head .section-note { margin: 0 0 4px; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(55, 47, 30, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(55, 47, 30, 0.09); }
.product-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  font-size: 58px;
  background: linear-gradient(150deg, #f2ead8, #e3e9dc);
}
.product-art.sold-out { filter: grayscale(0.55); opacity: 0.75; }
.product-art .stock {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(28, 38, 32, 0.78);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.4px;
}
.product-body { display: flex; flex: 1; flex-direction: column; padding: 15px 16px 16px; }
.product-body h3 { margin: 0 0 5px; font-size: 15px; letter-spacing: 0.3px; }
.product-desc { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.price small { margin-right: 1px; font-size: 11px; font-weight: 500; }
.product-actions { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #556;
  font-size: 13px;
  cursor: pointer;
}
.qty-btn:hover { border-color: var(--forest); color: var(--forest); }
.add-btn {
  padding: 6px 11px;
  border: 1px solid var(--forest);
  border-radius: 8px;
  background: transparent;
  color: var(--forest);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.add-btn:hover { background: var(--forest); color: #fff; }
.add-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ------------------------------------------------------------------ orders */
.orders { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 30px; }
.orders-copy p { max-width: 520px; }
.order-form { display: flex; gap: 8px; max-width: 480px; margin-top: 20px; }
.order-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  outline: none;
}
.order-form input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31, 59, 47, 0.08); }
.order-result {
  max-width: 520px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 13px;
}
.order-result strong { display: block; margin-bottom: 4px; }
.order-result .status { color: var(--gold); font-weight: 600; }
.orders-art { position: relative; min-height: 230px; }
.parcel {
  position: absolute;
  top: 30px;
  left: 12%;
  width: 210px;
  height: 150px;
  border-radius: 8px;
  background: linear-gradient(150deg, #cfae7c, #b9915c);
  box-shadow: 0 20px 34px rgba(62, 47, 24, 0.2);
}
.parcel-top {
  position: absolute;
  top: -18px;
  left: 14px;
  width: 182px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(150deg, #dcbf90, #c4a06c);
  transform: skewX(-22deg);
}
.parcel-tape { position: absolute; top: 0; bottom: 0; left: 92px; width: 26px; background: rgba(247, 243, 234, 0.65); }
.parcel-label {
  position: absolute;
  right: 14px;
  bottom: 16px;
  padding: 5px 9px;
  border-radius: 4px;
  background: #fffdf8;
  color: #5b4a32;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.4px;
  transform: rotate(-4deg);
}
.route { position: absolute; bottom: 20px; left: 8%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, #9c8a68 0 8px, transparent 8px 15px); }
.route span { position: absolute; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--forest); }
.route span:nth-child(1) { left: 0; }
.route span:nth-child(2) { left: 32%; opacity: 0.5; }
.route span:nth-child(3) { left: 64%; opacity: 0.35; }
.route span:nth-child(4) { right: 0; opacity: 0.25; }
.truck { position: absolute; bottom: 24px; right: 8%; color: var(--forest); font-size: 14px; }

/* ------------------------------------------------------------------ about */
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 40px; border-top: 1px solid var(--line); }
.about-copy p { max-width: 560px; color: #4c574e; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.about-stats div { padding: 20px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-align: center; }
.about-stats dt { font-family: "Songti SC", "STSong", serif; font-size: 30px; color: var(--forest); }
.about-stats dd { margin: 2px 0 0; color: var(--muted); font-size: 11px; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
  padding: 34px clamp(22px, 5vw, 68px);
  border-top: 1px solid rgba(31, 59, 47, 0.12);
  background: #efeadd;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand strong { font-family: "Songti SC", "STSong", serif; letter-spacing: 1.5px; }
.footer-brand p { margin: 1px 0 0; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; font-size: 12.5px; }
.footer-links a:hover { color: var(--gold); }
.footer-note { flex-basis: 100%; margin: 0; color: #8b8b7d; font-size: 10.5px; }

/* ------------------------------------------------------------------ cart */
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(20, 30, 24, 0.4);
  backdrop-filter: blur(2px);
  animation: fade 0.18s ease;
}
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--paper);
  box-shadow: -24px 0 60px rgba(20, 30, 24, 0.22);
  animation: slide 0.22s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 20px; font-weight: 600; }
.cart-head h2 span { color: var(--gold); font-family: inherit; }
.cart-close { border: 0; background: none; color: var(--muted); font-size: 25px; line-height: 1; cursor: pointer; }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-empty { padding: 60px 0; color: var(--muted); text-align: center; font-size: 13px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cart-thumb { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; border-radius: 12px; background: linear-gradient(150deg, #f2ead8, #e3e9dc); font-size: 24px; }
.cart-info { flex: 1; min-width: 0; }
.cart-info strong { display: block; font-size: 13px; }
.cart-info small { color: var(--muted); font-size: 11px; }
.cart-line { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.cart-line button { width: 21px; height: 21px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; line-height: 1; }
.cart-item .line-total { min-width: 58px; text-align: right; font-size: 13px; font-weight: 600; }
.cart-remove { border: 0; background: none; color: #a9a294; font-size: 12px; cursor: pointer; }
.cart-remove:hover { color: var(--red); }
.cart-foot { padding: 16px 22px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.cart-total span { color: var(--muted); font-size: 12px; }
.cart-total strong { font-size: 24px; letter-spacing: -0.5px; }
.cart-hint { margin: 0 0 12px; color: #9a9384; font-size: 10.5px; }
.cart-foot .btn-solid { border-radius: 12px; }
.cart-foot .btn-solid:disabled { opacity: 0.5; cursor: not-allowed; }

/* ------------------------------------------------------------------ toast */
.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  max-width: calc(100vw - 36px);
  padding: 10px 17px;
  border-radius: 999px;
  background: rgba(28, 38, 32, 0.94);
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 14px 30px rgba(20, 30, 24, 0.25);
  transform: translateX(-50%);
  animation: fade 0.18s ease;
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 340px; max-width: 520px; margin: 0 auto; width: 100%; }
  .orders, .about { grid-template-columns: 1fr; }
  .orders-art { min-height: 200px; }
  .site-nav { display: none; }
  .site-header { gap: 14px; }
  .chat-cta { margin-left: auto; }
}
@media (max-width: 620px) {
  .demo-bar { align-items: flex-start; padding: 9px 14px; font-size: 11px; }
  .demo-bar button { display: none; }
  .site-header { padding: 12px 16px; }
  .brand small { display: none; }
  .chat-cta { padding: 8px 12px; font-size: 11.5px; }
  .hero { padding: 34px 18px 20px; }
  .hero h1 { font-size: 36px; }
  .section { padding: 34px 18px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-art { height: 130px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .about-stats div { padding: 14px 8px; }
  .about-stats dt { font-size: 24px; }
  .site-footer { padding: 26px 18px; }
  .footer-links { margin-left: 0; }
  .cart-panel { width: 100%; }
}
