:root {
  --ink: #17231d;
  --muted: #667069;
  --paper: #f4f0e8;
  --card: #fffdf8;
  --line: rgba(23, 35, 29, .14);
  --green: #214e3b;
  --orange: #e56d43;
  --yellow: #edc85b;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .04em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-family: serif;
}
.header-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.header-nav > a { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.cart-trigger { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; }
.cart-trigger span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 5px; padding: 0 6px; border-radius: 999px; color: #fff; background: var(--green); font-size: 11px; }

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
  padding: 64px 7%;
  border: 1px solid var(--line);
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(237,200,91,.32), transparent 24%),
    linear-gradient(135deg, #fffdf7 0%, #eee8da 100%);
}
.eyebrow { margin: 0 0 22px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .19em; }
.hero h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(54px, 7vw, 90px); line-height: 1.03; letter-spacing: -.05em; }
.hero h1 em { color: var(--green); font-weight: 400; }
.hero-text { max-width: 560px; margin: 30px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button { min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--green); }
.button-quiet { background: transparent; border: 1px solid var(--line); }
.hero-card {
  position: relative;
  justify-self: center;
  width: min(360px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--green);
  color: white;
  box-shadow: 26px 28px 0 var(--yellow);
}
.hero-number { font: 400 112px/.8 Georgia, serif; opacity: .95; }
.hero-card p { margin: 24px 0 0; line-height: 1.6; letter-spacing: .14em; }
.hero-orbit { position: absolute; inset: -28px; border: 1px dashed rgba(33,78,59,.35); border-radius: 50%; animation: spin 26s linear infinite; }
.hero-orbit::after { content: ""; position: absolute; top: 28px; right: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); }
@keyframes spin { to { transform: rotate(360deg); } }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 110px; border-block: 1px solid var(--line); }
.promise p { margin: 0; padding: 24px; text-align: center; font-weight: 700; }
.promise p + p { border-left: 1px solid var(--line); }
.promise span { margin-right: 9px; color: var(--orange); font: italic 18px Georgia, serif; }

.products-section { scroll-margin-top: 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading h2, .how-it-works h2, .contact-panel h2 { margin: 0; font: 400 clamp(40px, 5vw, 64px)/1.1 Georgia, "Songti SC", serif; }
.section-heading > p { margin: 0 0 7px; color: var(--muted); font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(23,35,29,.09); }
.product-visual { min-height: 285px; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--product-bg, #e5dfd2); }
.product-visual::before { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.58); border-radius: 50%; }
.product-visual::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 40% 60% 55% 45%; background: rgba(255,255,255,.34); transform: rotate(18deg); }
.product-icon { z-index: 1; font-size: 82px; filter: drop-shadow(0 12px 12px rgba(23,35,29,.15)); }
.product-image { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.has-image .product-visual::before, .has-image .product-visual::after, .has-image .product-icon { display: none; }
.product-index { position: absolute; top: 20px; left: 22px; font: italic 16px Georgia, serif; }
.product-badge { position: absolute; top: 17px; right: 17px; z-index: 2; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.74); backdrop-filter: blur(6px); font-size: 11px; font-weight: 800; }
.product-body { padding: 24px; }
.product-category { margin: 0 0 10px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.product-name { margin: 0; font: 400 27px/1.2 Georgia, "Songti SC", serif; }
.product-description { min-height: 50px; margin: 13px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.product-stock { margin: -14px 0 20px; color: var(--muted); font-size: 12px; }
.product-footer { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.price-prefix { display: block; color: var(--muted); font-size: 11px; }
.product-price { display: block; margin-top: 3px; font: 600 24px Georgia, serif; }
.inquiry-button { padding: 9px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.inquiry-button span { display: inline-block; margin-left: 5px; transition: transform .2s; }
.inquiry-button:hover span { transform: translateX(4px); }
.product-actions { display: flex; align-items: center; gap: 12px; }
.detail-button { padding: 9px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.inquiry-button:disabled, .button:disabled { cursor: not-allowed; opacity: .45; }
.loading { grid-column: 1 / -1; padding: 80px; text-align: center; color: var(--muted); }

.how-it-works { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; margin: 130px 0; padding: 70px 0; border-block: 1px solid var(--line); }
.how-it-works ol { margin: 0; padding: 0; list-style: none; }
.how-it-works li { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.how-it-works li:first-child { padding-top: 0; }
.how-it-works li > span { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--yellow); font: italic 18px Georgia, serif; }
.how-it-works strong { font-size: 17px; }
.how-it-works li p { margin: 7px 0 0; color: var(--muted); }

.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 28px; padding: 70px; border-radius: 32px; color: white; background: var(--green); }
.contact-panel .eyebrow { color: var(--yellow); }
.contact-panel > div > p:last-child { margin: 18px 0 0; color: rgba(255,255,255,.72); }
.button-light { flex: 0 0 auto; color: var(--ink); background: var(--yellow); }
footer { display: flex; justify-content: space-between; padding: 32px 0 44px; color: var(--muted); font-size: 13px; }

.locked { overflow: hidden; }
.cart-drawer { position: fixed; inset: 0; z-index: 20; visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(15,25,20,.46); opacity: 0; transition: opacity .25s; }
.cart-drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; inset: 0 0 0 auto; width: min(480px, 100%); padding: 34px; display: flex; flex-direction: column; background: var(--card); transform: translateX(100%); transition: transform .28s ease; box-shadow: -18px 0 60px rgba(15,25,20,.16); }
.cart-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-heading { display: flex; align-items: start; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.drawer-heading h2, .checkout-dialog h2 { margin: 0; font: 400 42px/1.1 Georgia,"Songti SC",serif; }
.icon-button,.dialog-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 25px; cursor: pointer; }
.cart-items { flex: 1; overflow: auto; padding: 18px 0; }
.cart-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-item-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: var(--c); font-size: 26px; }
.cart-item h3 { margin: 0 0 6px; font-size: 15px; }
.cart-item p { margin: 0; color: var(--muted); font-size: 13px; }
.quantity { display: flex; align-items: center; gap: 9px; }
.quantity button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.cart-summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-top: 1px solid var(--line); }
.cart-summary strong { font: 600 28px Georgia,serif; }
.checkout-button { width: 100%; }
.checkout-button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.empty-cart { padding: 90px 0; text-align: center; color: var(--muted); }
.empty-cart span { display: block; font-size: 70px; color: var(--line); }
.empty-cart a { color: var(--green); border-bottom: 1px solid currentColor; }
.checkout-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 42px; border: 0; border-radius: 28px; color: var(--ink); background: var(--card); box-shadow: 0 28px 100px rgba(15,25,20,.28); }
.checkout-dialog::backdrop { background: rgba(15,25,20,.58); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 22px; right: 22px; }
.dialog-intro { margin: 14px 0 28px; color: var(--muted); line-height: 1.65; }
#checkout-form { display: grid; gap: 15px; }
.checkout-dialog label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.checkout-dialog label span { color: var(--muted); font-weight: 400; }
.checkout-dialog input,.checkout-dialog textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; font: inherit; resize: vertical; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 2px; border-top: 1px solid var(--line); }
.checkout-total strong { font: 600 25px Georgia,serif; }
.form-error { min-height: 20px; margin: 0; color: #aa3c26; font-size: 13px; text-align: center; }
.order-success { padding: 22px 0 0; text-align: center; }
.success-mark { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; color: #fff; background: var(--green); font-size: 30px; }
.order-success h3 { margin: 0 0 25px; font: 400 32px Georgia,"Songti SC",serif; }
.order-success p { color: var(--muted); }
.order-success strong { display: block; margin: 8px 0 20px; font-size: 20px; letter-spacing: .04em; }
.product-dialog { width: min(860px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 28px; color: var(--ink); background: var(--card); box-shadow: 0 28px 100px rgba(15,25,20,.28); overflow: hidden; }
.product-dialog::backdrop { background: rgba(15,25,20,.58); backdrop-filter: blur(3px); }
.product-dialog .dialog-close { z-index: 3; background: rgba(255,255,255,.85); }
.detail-visual { min-height: 330px; display: grid; place-items: center; background: var(--detail-bg, #e5dfd2); overflow: hidden; }
.detail-visual img { width: 100%; height: 330px; object-fit: cover; }
.detail-visual span { font-size: 100px; }
.detail-copy { padding: 34px; }
.detail-copy h2 { margin: 0; font: 400 40px/1.1 Georgia,"Songti SC",serif; }
.detail-description { color: var(--muted); line-height: 1.7; }
.detail-text { padding: 20px 0; border-block: 1px solid var(--line); white-space: pre-wrap; color: var(--muted); line-height: 1.8; }
.detail-buy { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.detail-buy strong { display: block; font: 600 28px Georgia,serif; }
.detail-buy span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 70px 8% 90px; }
  .hero-card { width: 260px; justify-self: start; margin: 30px 0 0 20px; }
  .hero-number { font-size: 84px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .how-it-works { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { height: 70px; }
  .hero { padding: 54px 22px 70px; border-radius: 24px; }
  .hero h1 { font-size: 52px; }
  .hero-text { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-card { width: 210px; margin-left: 12px; }
  .hero-number { font-size: 66px; }
  .promise { margin-bottom: 80px; }
  .promise p { padding: 18px 4px; font-size: 12px; }
  .promise span { display: block; margin: 0 0 4px; }
  .section-heading { align-items: start; flex-direction: column; }
  .product-grid { grid-template-columns: 1fr; }
  .product-visual { min-height: 250px; }
  .how-it-works { margin: 90px 0; padding: 55px 0; }
  .contact-panel { align-items: stretch; flex-direction: column; padding: 45px 26px; }
  .contact-panel h2 { font-size: 39px; }
  footer { gap: 10px; flex-direction: column; }
  .header-nav > a { display: none; }
  .drawer-panel { padding: 24px 18px; }
  .checkout-dialog { padding: 36px 20px 24px; }
  .dialog-close { top: 16px; right: 16px; }
  .product-actions { gap: 8px; }
  .detail-visual, .detail-visual img { min-height: 240px; height: 240px; }
  .detail-copy { padding: 26px 20px; }
  .detail-buy { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
