:root {
  --ink: #142017;
  --muted: #69736b;
  --line: #e5e9e5;
  --cream: #f5f4ee;
  --white: #fff;
  --green: #176b45;
  --lime: #d9f268;
  --orange: #ff7657;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
button { font: inherit; cursor: pointer; }
.topbar { height: 72px; max-width: 1240px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 800; text-decoration: none; }
.brand small { display: block; margin-top: 1px; color: #8a938b; font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.brand-dot { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; }
nav { padding: 4px; display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.7); }
nav button { padding: 7px 15px; border: 0; border-radius: 99px; color: var(--muted); background: transparent; font-size: 12px; }
nav button.active { color: white; background: var(--ink); }
.about-link { color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; }
main { max-width: 1240px; margin: auto; padding: 0 24px 70px; }
.hero { min-height: 460px; padding: 62px; display: grid; grid-template-columns: 1.5fr .8fr; gap: 60px; align-items: center; border-radius: 30px; background: #e8eadf; position: relative; overflow: hidden; }
.hero:after { content: ""; width: 380px; height: 380px; border: 70px solid rgba(255,255,255,.45); border-radius: 50%; position: absolute; right: -230px; top: -230px; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.hero h1 { margin: 18px 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(40px,5vw,66px); line-height: 1.06; font-weight: 500; letter-spacing: -2px; }
.hero h1 em { color: var(--green); font-style: italic; }
.hero-copy > p { max-width: 580px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 10px; }
.primary, .go-button { padding: 13px 20px; border: 0; border-radius: 10px; color: white; background: var(--green); font-weight: 700; }
.hero-card { padding: 24px; border: 1px solid rgba(255,255,255,.8); border-radius: 22px; background: rgba(255,255,255,.6); backdrop-filter: blur(10px); }
.hero-card > span { font-size: 11px; font-weight: 800; }
.hero-card ol { margin: 18px 0 0; padding: 0; list-style: none; }
.hero-card li { padding: 14px 0; display: flex; align-items: center; gap: 13px; border-top: 1px solid rgba(20,32,23,.09); }
.hero-card li b { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--lime); font-size: 10px; }
.hero-card li strong, .hero-card li small { display: block; }
.hero-card li strong { font-size: 12px; }
.hero-card li small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.trust-strip { margin: 18px 0 66px; padding: 19px 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.6); color: var(--muted); font-size: 11px; }
.trust-strip b { margin-right: 6px; color: var(--green); }
.section-head { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; }
.section-head h2, .guide h2 { margin: 7px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 31px; font-weight: 500; }
.section-head p { color: var(--muted); font-size: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.product-card { padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); transition: .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 18px 45px rgba(31,48,36,.09); }
.product-image { width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: #edf0ea; }
.product-image img { width: auto; height: calc(100% - 36px); max-width: calc(100% - 36px); object-fit: contain; }
.product-image span { display: none; color: var(--green); font-family: Georgia, "Songti SC", serif; font-size: 28px; }
.product-image.placeholder span, .product-image.image-error span { display: block; }
.product-image.placeholder { background: radial-gradient(circle at 75% 20%, rgba(217,242,104,.7), transparent 25%), #e8eadf; }
.product-image.modal-image { width: 70px; aspect-ratio: 1; }
.product-image.modal-image span { font-size: 17px; }
.category { display: block; margin-top: 18px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .8px; }
.product-card h3 { min-height: 42px; margin: 7px 0 11px; font-size: 15px; line-height: 1.4; }
.seller { margin: 18px 0; padding: 13px 0; display: flex; gap: 9px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seller-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 10px; }
.seller strong, .seller small { display: block; }
.seller strong { margin-top: 4px; font-size: 10px; }
.seller small { color: var(--muted); font-size: 8px; }
.product-bottom { display: flex; align-items: end; justify-content: space-between; }
.product-bottom small, .product-bottom strong { display: block; }
.product-bottom small { margin-bottom: 3px; color: var(--muted); font-size: 8px; }
.product-bottom strong { font-size: 17px; }
.product-bottom button { padding: 9px 11px; border: 0; border-radius: 8px; color: white; background: var(--ink); font-size: 10px; font-weight: 700; }
.product-bottom button span { color: var(--lime); margin-left: 3px; }
.product-bottom button.unconfigured { color: var(--muted); background: #edf0ec; }
.guide { margin-top: 72px; padding: 44px; display: grid; grid-template-columns: .7fr 1.5fr; gap: 48px; border-radius: 24px; color: white; background: var(--ink); }
.guide .eyebrow { color: var(--lime); }
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.guide article { border-left: 1px solid rgba(255,255,255,.14); padding-left: 16px; }
.guide article b { color: var(--lime); font-size: 10px; }
.guide h3 { margin: 14px 0 7px; font-size: 12px; }
.guide p { margin: 0; color: #a9b3ac; font-size: 9px; line-height: 1.8; }
footer { max-width: 1240px; margin: auto; padding: 22px 24px 30px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
footer b { color: var(--ink); font-size: 13px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; background: rgba(18,31,22,.7); backdrop-filter: blur(5px); }
.modal { width: min(440px,100%); padding: 28px; border-radius: 22px; background: white; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.close { position: absolute; right: 17px; top: 14px; border: 0; color: var(--muted); background: none; font-size: 22px; }
.modal h2 { margin: 17px 0 7px; font-family: Georgia, "Songti SC", serif; font-size: 27px; font-weight: 500; }
.modal p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.modal.compact .go-button { margin-top: 15px; }
.ref-code { margin: 18px 0; padding: 13px; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border: 1px dashed #b8c5bb; border-radius: 10px; background: #f5f7f4; }
.ref-code span { color: var(--muted); font-size: 9px; }
.ref-code strong { letter-spacing: 1px; }
.ref-code button { padding: 6px 8px; border: 0; border-radius: 6px; color: var(--green); background: #dfeee5; font-size: 9px; font-weight: 800; }
.safe-note { padding: 11px; border-radius: 9px; color: #71642e; background: #fff8dd; font-size: 9px; line-height: 1.7; }
.go-button { width: 100%; margin-top: 18px; }
.go-button.muted { color: var(--ink); background: #e9ede9; }
.modal-foot { display: block; margin-top: 10px; color: #9aa29b; font-size: 8px; text-align: center; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 40; padding: 11px 15px; border-radius: 9px; color: white; background: var(--ink); font-size: 10px; opacity: 0; transform: translateY(10px); transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media(max-width: 950px) {
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .hero { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; }
}
@media(max-width: 620px) {
  .topbar { height: auto; padding: 13px 15px; flex-wrap: wrap; gap: 10px; }
  nav { order: 3; width: 100%; }
  nav button { flex: 1; }
  .about-link { display: none; }
  main { padding: 0 12px 40px; }
  .hero { min-height: auto; padding: 30px 22px; border-radius: 20px; gap: 25px; }
  .hero h1 { font-size: 39px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .trust-strip { margin-bottom: 45px; grid-template-columns: repeat(2,1fr); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .product-grid { grid-template-columns: 1fr; }
  .guide { padding: 28px 22px; }
  .guide-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 8px; }
}
