:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --ink: #14211c;
  --muted: #5d6f67;
  --line: #dce6e0;
  --brand: #1f6b4f;
  --brand-2: #2f8f6a;
  --brand-soft: #e7f4ee;
  --warn: #b45309;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 33, 28, 0.08);
  --font: "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9efe4 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #eef3ea 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(244, 247, 245, 0.88);
  border-bottom: 1px solid rgba(220, 230, 224, 0.9);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: inherit;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(145deg, var(--brand), #0f3f30);
  color: #fff; display: grid; place-items: center; font-weight: 700;
}
.brand strong { display: block; font-size: 16px; line-height: 1.2; }
.brand span { display: block; font-size: 12px; color: var(--muted); }

.nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav a, .nav button.linkish {
  border: 0; background: transparent; cursor: pointer;
  color: var(--muted); padding: 8px 10px; border-radius: 999px;
}
.nav a:hover, .nav button.linkish:hover, .nav a.active {
  color: var(--brand); background: var(--brand-soft);
}

.btn {
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 10px 16px; font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(31,107,79,.25); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.hero {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px;
  padding: 36px 0 18px;
}
.hero-card, .panel, .product-card, .shop-card, .stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card { padding: 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 600; margin-bottom: 12px;
}
.hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
.hero p { margin: 0 0 18px; color: var(--muted); line-height: 1.7; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.side-stack { display: grid; gap: 12px; }
.stat { padding: 16px 18px; }
.stat b { display: block; font-size: 22px; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 13px; }

.section { padding: 22px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 12px; margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 22px; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.shop-grid, .product-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shop-card, .product-card { padding: 16px; }
.shop-card .badge, .chip {
  display: inline-block; font-size: 12px; padding: 3px 8px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand);
}
.shop-card h3, .product-card h3 { margin: 10px 0 6px; font-size: 18px; }
.shop-card p, .product-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.meta { margin-top: 12px; font-size: 12px; color: var(--muted); }

.cover {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(160deg, #f7fbf8, #e8f3ec);
  border: 1px solid var(--line);
}
.price { font-size: 20px; font-weight: 700; color: var(--brand); }
.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-top: 14px;
}

.panel { padding: 20px; }
.panel h2, .panel h3 { margin-top: 0; }
.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; background: #fff; color: var(--ink);
}
.checks { display: grid; gap: 10px; margin: 14px 0; }
.checks label {
  display: flex; gap: 8px; align-items: flex-start;
  color: var(--ink); font-size: 14px;
}
.checks input { width: auto; margin-top: 3px; }
.muted { color: var(--muted); }
.warn-box {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 12px; padding: 12px 14px; font-size: 14px;
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.table th { color: var(--muted); font-weight: 600; }

.footer {
  margin-top: 40px; padding: 28px 0 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.footer strong { color: var(--ink); }
.footer-grid {
  display: grid; gap: 8px; grid-template-columns: 1.2fr .8fr;
}
.footer a { color: var(--brand); }

.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 20, .45);
  display: none; align-items: center; justify-content: center;
  padding: 20px; z-index: 80;
}
.modal-mask.show { display: flex; }
.modal {
  width: min(480px, 100%); background: #fff; border-radius: 16px;
  padding: 20px; box-shadow: var(--shadow);
}
.modal h3 { margin: 0 0 8px; }
.pay-options { display: grid; gap: 10px; margin: 14px 0; }
.pay-option {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.pay-option.active { border-color: var(--brand); background: var(--brand-soft); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #12352a; color: #fff; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 90;
}
.toast.show { opacity: 1; }

.legal { white-space: pre-wrap; line-height: 1.7; color: var(--muted); font-size: 14px; }
.badge-user {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 10px; font-size: 13px;
}

@media (max-width: 860px) {
  .hero, .shop-grid, .product-grid, .footer-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .topbar-inner { flex-direction: column; align-items: stretch; padding: 10px 0; }
  .nav { justify-content: flex-start; }
}
