:root {
  --bg: #f5efe3;
  --paper: #fffaf0;
  --ink: #293127;
  --muted: #6f7566;
  --green: #244a37;
  --green-2: #3f6b4e;
  --moss: #77906b;
  --gold: #b07b35;
  --gold-soft: #e7d3ae;
  --line: #ddd2bd;
  --danger: #9d3d33;
  --shadow: 0 18px 50px rgba(45, 40, 28, .12);
  --radius: 18px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(176,123,53,.10), transparent 60%),
    linear-gradient(180deg, #faf5e9 0%, var(--bg) 55%, #efe6d4 100%);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,245,233,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221,210,189,.8);
}
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(145deg, var(--green), #183728);
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(36,74,55,.25);
}
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-family: var(--serif); font-size: 17px; letter-spacing: .04em; }
.brand-text span { color: var(--muted); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 9px 14px; border-radius: 999px; color: #465043; font-size: 14px;
}
.site-nav a:hover, .site-nav a.active { background: rgba(36,74,55,.09); color: var(--green); }
.nav-cta {
  margin-left: 8px; padding: 10px 18px !important; border-radius: 999px !important;
  color: #fff !important; background: var(--green) !important;
  box-shadow: 0 8px 20px rgba(36,74,55,.22);
}
.nav-cta:hover { background: #183728 !important; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 12px; }

.hero { position: relative; padding: 76px 0 56px; overflow: hidden; }
.hero:before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(250,245,233,.96) 0%, rgba(250,245,233,.80) 45%, rgba(250,245,233,.18) 100%),
    url("../img/covers/hero.jpg") center/cover no-repeat;
  opacity: .95;
}
.hero:after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.hero h1 { margin: 14px 0 18px; font-family: var(--serif); font-size: clamp(34px, 5.2vw, 62px); line-height: 1.15; letter-spacing: .02em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-lead { max-width: 560px; color: #555d4f; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; font-size: 14px; font-weight: 600;
  transition: .18s ease;
}
.btn-primary { color: #fff; background: var(--green); box-shadow: 0 10px 24px rgba(36,74,55,.22); }
.btn-primary:hover { background: #183728; transform: translateY(-1px); }
.btn-ghost { color: var(--green); background: rgba(255,250,240,.75); border-color: rgba(36,74,55,.2); }
.btn-ghost:hover { background: #fffaf0; }
.btn-gold { color: #fff; background: var(--gold); }
.btn-small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.hero-card {
  position: relative; border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow);
  background: rgba(255,250,240,.7); transform: rotate(1.2deg);
}
.hero-card img { width: 100%; height: 340px; object-fit: cover; }
.hero-card-caption {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  padding: 14px 18px; border-radius: 16px; color: #fff;
  background: linear-gradient(90deg, rgba(24,55,40,.88), rgba(24,55,40,.55));
  backdrop-filter: blur(6px); font-size: 13px;
}
.hero-card-caption strong { display: block; font-family: var(--serif); font-size: 17px; }

.section { padding: 54px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3.2vw, 36px); }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-link { color: var(--green); font-size: 14px; font-weight: 600; white-space: nowrap; }
.category-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.category-tile {
  padding: 20px 18px; border-radius: var(--radius); background: rgba(255,250,240,.72);
  border: 1px solid var(--line); transition: .18s ease;
}
.category-tile:hover { transform: translateY(-3px); border-color: var(--moss); box-shadow: 0 14px 30px rgba(45,40,28,.08); }
.category-tile span { color: var(--gold); font-size: 12px; letter-spacing: .14em; }
.category-tile strong { display: block; margin-top: 6px; font-family: var(--serif); font-size: 18px; }
.category-tile em { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-style: normal; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(255,250,240,.86); border: 1px solid var(--line);
  border-radius: var(--radius); transition: .2s ease; min-height: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(119,144,107,.6); }
.product-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #d8cbb3; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.product-card:hover .product-cover img { transform: scale(1.04); }
.product-cover .badge {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px;
  border-radius: 999px; color: #fff; background: rgba(36,74,55,.86);
  font-size: 11px; letter-spacing: .08em;
}
.product-cover .badge.restricted { background: rgba(157,61,51,.9); }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body .kicker { color: var(--gold); font-size: 12px; letter-spacing: .12em; }
.product-body h3 { margin: 5px 0 8px; font-family: var(--serif); font-size: 20px; line-height: 1.35; }
.product-body p { margin: 0 0 14px; color: var(--muted); font-size: 13px; flex: 1; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { padding: 3px 9px; border-radius: 999px; color: #5c6354; background: #f0e8d7; font-size: 11px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-footer span { color: var(--muted); font-size: 12px; }
.product-card.locked .product-cover img { filter: blur(3px) saturate(.6); transform: scale(1.06); }
.product-card.locked .lock-note { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(24,55,40,.52); }
.lock-note div { text-align: center; }
.lock-note strong { display: block; font-family: var(--serif); font-size: 18px; }
.lock-note small { opacity: .85; }

.notice-band {
  padding: 18px 22px; border: 1px solid var(--gold-soft); border-radius: 16px;
  color: #6b4c22; background: linear-gradient(90deg, #fff8e8, #f7ecd5);
  font-size: 13px;
}
.announcement-list { display: grid; gap: 12px; }
.announcement-item {
  display: flex; gap: 18px; align-items: baseline; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,250,240,.7);
}
.announcement-item time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.announcement-item h3 { margin: 0 0 3px; font-family: var(--serif); font-size: 17px; }
.announcement-item p { margin: 0; color: var(--muted); font-size: 13px; }

.member-cta {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  padding: 34px 36px; border-radius: 24px; color: #f9f3e6;
  background: linear-gradient(130deg, #244a37, #355d43 55%, #8a6a3a);
  box-shadow: var(--shadow);
}
.member-cta h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 28px; }
.member-cta p { margin: 0; color: rgba(255,255,255,.78); font-size: 14px; }

.page-hero { padding: 46px 0 26px; }
.page-hero h1 { margin: 8px 0 8px; font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); }
.page-hero p { margin: 0; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 26px; }
.search-box { flex: 1; min-width: 220px; position: relative; }
.search-box input {
  width: 100%; height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,250,240,.9); outline: none;
}
.search-box input:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(119,144,107,.15); }
.filter-chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,250,240,.7); color: #5b6254; font-size: 13px;
}
.filter-chip.active { color: #fff; background: var(--green); border-color: var(--green); }

.detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; padding: 26px 0 60px; }
.detail-cover { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #d8cbb3; }
.detail-cover img { width: 100%; max-height: 480px; object-fit: cover; }
.detail h1 { margin: 8px 0 12px; font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.25; }
.detail .lead { color: var(--muted); font-size: 15px; }
.detail-body { margin-top: 22px; color: #4d5549; white-space: pre-line; }
.feature-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.panel {
  padding: 22px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255,250,240,.78);
}
.panel h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 20px; }
.panel + .panel { margin-top: 14px; }
.purchase-panel { border-color: var(--gold-soft); background: linear-gradient(160deg, #fff8e8, #f8edd8); }
.purchase-panel .contact { display: grid; gap: 8px; margin: 12px 0; font-size: 14px; }
.purchase-panel .contact b { color: var(--green); }

.member-page { padding: 36px 0 70px; }
.member-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.member-head h1 { margin: 0; font-family: var(--serif); font-size: 34px; }
.member-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 22px; align-items: start; }
.member-side .panel { margin-bottom: 14px; }
.member-tabs { display: flex; gap: 8px; margin: 20px 0; }
.member-tabs button { border: 1px solid var(--line); background: transparent; padding: 8px 16px; border-radius: 999px; }
.member-tabs button.active { background: var(--green); color: #fff; border-color: var(--green); }

.form-card { max-width: 460px; margin: 20px auto 60px; padding: 30px; border-radius: 22px; background: rgba(255,250,240,.92); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h1 { margin: 0 0 6px; font-family: var(--serif); font-size: 30px; }
.form-card .hint { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 6px; color: #4e574a; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px;
  border: 1px solid var(--line); background: #fffdf7; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--moss); }
.form-error { min-height: 20px; margin: 4px 0 10px; color: var(--danger); font-size: 13px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.checkline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.checkline input { width: auto; }

.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }
.site-footer { margin-top: 50px; padding: 34px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a:hover { color: var(--green); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  padding: 12px 18px; border-radius: 999px; color: #fff; background: rgba(24,55,40,.94);
  font-size: 13px; z-index: 80; opacity: 0; pointer-events: none; transition: .2s;
}
.toast.show { opacity: 1; bottom: 36px; }

@media (max-width: 980px) {
  .hero-inner, .detail, .member-grid { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .category-strip { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-nav { display: none; position: absolute; left: 14px; right: 14px; top: 64px; padding: 12px; flex-direction: column; align-items: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 14px; }
  .menu-toggle { display: block; margin-left: auto; }
  .hero { padding-top: 48px; }
  .hero-card img { height: 230px; }
  .category-strip { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .member-cta { grid-template-columns: 1fr; padding: 26px 24px; }
  .member-head { align-items: flex-start; flex-direction: column; }
  .announcement-item { flex-direction: column; gap: 4px; }
}
