:root {
  --brand: #0f6b4f;
  --brand-dark: #0a4a36;
  --brand-light: #1e8a68;
  --gold: #c9a15a;
  --gold-light: #e6c98a;
  --ink: #24312c;
  --ink-soft: #5a6b62;
  --bg: #f7faf8;
  --card: #ffffff;
  --line: #e3ece7;
  --red: #c0392b;
  --shadow: 0 6px 24px rgba(15, 107, 79, 0.08);
  --shadow-lg: 0 14px 40px rgba(15, 107, 79, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--brand-dark);
  color: #cfe7dd;
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
  letter-spacing: 0.3px;
}

/* ---------- 导航 ---------- */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  color: var(--brand);
  letter-spacing: 1px;
}
.brand .logo-badge {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(15,107,79,0.3);
}
.nav .tagline { font-size: 12px; color: var(--ink-soft); margin-top: 2px; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-links a.active::after, .nav-links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.nav .cart-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--brand); color: #fff;
  padding: 9px 18px; border-radius: 30px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.nav .cart-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.cart-count {
  background: var(--gold); color: #fff;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; padding: 0 5px;
}

/* ---------- 容器 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff;
  padding: 13px 26px; border-radius: 30px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,107,79,0.25); }
.btn.outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn.outline:hover { background: var(--brand); color: #fff; }
.btn.gold { background: var(--gold); }
.btn.gold:hover { background: #b18a43; }
.btn.full { width: 100%; }
.btn.sm { padding: 9px 16px; font-size: 13px; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--brand-dark);
  color: #cfe7dd;
  padding: 50px 0 30px;
  margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer p, .footer li { font-size: 14px; color: #b6d5c9; line-height: 1.9; }
.footer ul { list-style: none; }
.footer a:hover { color: #fff; }
.footer .brand-line { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 36px; padding-top: 20px;
  font-size: 13px; color: #9dc0b3; text-align: center;
}

/* ---------- 通用 ---------- */
.section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .kicker {
  display: inline-block; color: var(--gold); font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px;
}
.section-head h2 { font-size: 30px; color: var(--brand-dark); margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; }

.empty { text-align: center; color: var(--ink-soft); padding: 60px 0; }
.breadcrumb { font-size: 13px; color: var(--ink-soft); padding: 18px 0; }
.breadcrumb a { color: var(--brand); }

/* ---------- 购物车抽屉 ---------- */
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 100%;
  height: 100%; background: #fff; z-index: 300;
  box-shadow: -8px 0 30px rgba(0,0,0,0.12);
  transition: right 0.3s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-drawer-head {
  padding: 20px 22px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-drawer-head h3 { font-size: 18px; color: var(--brand-dark); }
.cart-drawer-head .close { font-size: 24px; cursor: pointer; color: var(--ink-soft); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-item {
  display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #f0f4f1; }
.cart-item .info { flex: 1; }
.cart-item .name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item .price { font-size: 15px; color: var(--brand); font-weight: 700; }
.cart-item .qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button {
  width: 24px; height: 24px; border: 1px solid var(--line);
  background: #f2f6f4; border-radius: 6px; cursor: pointer;
  font-size: 14px; line-height: 1; color: var(--ink);
}
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.cart-item .remove { color: #c0392b; font-size: 12px; cursor: pointer; align-self: flex-start; }
.cart-drawer-foot { padding: 20px 22px; border-top: 1px solid var(--line); background: #fafcfb; }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 14px; }
.cart-total b { color: var(--brand); font-size: 22px; }

/* ---------- 遮罩 ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(10,74,54,0.4);
  z-index: 290; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--brand-dark); color: #fff; padding: 13px 24px;
  border-radius: 30px; font-size: 14px; z-index: 500;
  opacity: 0; transition: all 0.3s; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 15px; font-family: inherit;
  background: #fff; color: var(--ink); transition: border 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }

.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-option {
  flex: 1; min-width: 140px;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; transition: border 0.2s, background 0.2s;
}
.radio-option:hover { border-color: var(--brand); }
.radio-option.sel { border-color: var(--brand); background: #eef8f3; }
.radio-option .t { font-weight: 700; font-size: 15px; }
.radio-option .s { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }

/* ---------- 汉堡菜单 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2.5px; background: var(--ink);
  border-radius: 2px; transition: all 0.3s;
}

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -280px;
    width: 260px; height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 28px 30px;
    gap: 0;
    box-shadow: -8px 0 30px rgba(0,0,0,0.12);
    transition: right 0.3s ease;
    z-index: 260;
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a.active::after, .nav-links a:hover::after { display: none; }
  .nav-links .cart-btn { margin: 18px 0 0; width: 100%; justify-content: center; }
  .nav-close {
    position: absolute; top: 18px; right: 20px;
    font-size: 30px; line-height: 1; color: var(--ink-soft);
    cursor: pointer; background: none; border: none;
  }
  .nav-mask {
    position: fixed; inset: 0; background: rgba(10,74,54,0.4);
    z-index: 250; opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .nav-mask.show { opacity: 1; pointer-events: auto; }
}
@media (max-width: 560px) {
  .nav-inner { padding: 12px 16px; }
  .nav .brand { font-size: 20px; }
  .section { padding: 44px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .hero-trust { gap: 12px; }
}
