:root {
  --ink: #141a18;
  --muted: #66706b;
  --line: #e4e6df;
  --paper: #f7f3eb;
  --panel: #ffffff;
  --deep: #101f1a;
  --green: #0d6b45;
  --gold: #c58a2f;
  --red: #be3b2f;
  --blue: #496b78;
  --shadow: 0 22px 60px rgba(18, 26, 23, 0.14);
  --radius: 8px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(73, 107, 120, 0.16), transparent 520px),
    linear-gradient(90deg, rgba(197, 138, 47, 0.08), transparent 36%),
    var(--paper);
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

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

.topbar {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.topbar__inner,
.topbar nav,
.header-main,
.brand,
.header-actions,
.category-strip__inner,
.hero-poster__actions,
.section-head,
.product-tools,
.sort-tabs,
.footer__grid,
.footer nav {
  display: flex;
  align-items: center;
}

.topbar__inner {
  min-height: 36px;
  justify-content: space-between;
  gap: 18px;
}

.topbar nav {
  gap: 16px;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(228, 230, 223, 0.86);
  background: rgba(247, 243, 235, 0.94);
  backdrop-filter: blur(18px);
}

.header-main {
  min-height: 92px;
  gap: 26px;
}

.brand {
  min-width: 236px;
  gap: 12px;
}

.brand__logo {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep), var(--green));
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(13, 107, 69, 0.2);
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__text {
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 24px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.search {
  display: grid;
  grid-template-columns: 1fr 108px;
  width: min(520px, 100%);
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(13, 107, 69, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  margin-left: auto;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: transparent;
}

.search button,
.primary-btn {
  border: 0;
  background: linear-gradient(135deg, var(--green), #194434);
  color: #fff;
  font-weight: 800;
}

.header-actions {
  gap: 10px;
  white-space: nowrap;
}

.soft-btn,
.cart-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.soft-btn {
  padding: 0 16px;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

.cart-button b {
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
}

.category-strip {
  border-top: 1px solid rgba(228, 230, 223, 0.78);
  background: rgba(255, 255, 255, 0.72);
}

.category-strip__inner {
  min-height: 52px;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.category-strip button,
.filters button,
.sort-tabs button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.category-strip button {
  padding: 10px 16px;
}

.category-strip button.is-active,
.filters button.is-active,
.sort-tabs button.is-active {
  border-color: rgba(13, 107, 69, 0.28);
  background: #fff;
  color: var(--green);
  box-shadow: 0 8px 20px rgba(18, 26, 23, 0.08);
}

.hero {
  padding: 26px 0 18px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
}

.hero-poster {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--deep);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-poster img,
.hero-poster__shade {
  position: absolute;
  inset: 0;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-poster__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 31, 26, 0.9), rgba(16, 31, 26, 0.62) 43%, rgba(16, 31, 26, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.26), transparent 42%);
}

.hero-poster__content {
  width: min(610px, 82%);
  padding: 72px 64px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.hero-poster h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-poster p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.9;
}

.hero-poster__actions {
  gap: 12px;
  margin-top: 30px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
}

.primary-btn {
  box-shadow: 0 16px 30px rgba(13, 107, 69, 0.25);
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 800;
}

.hero-side {
  display: grid;
  gap: 14px;
}

.side-card,
.feature-row article,
.origin-poster,
.product-card,
.modal__panel,
.drawer__panel {
  border: 1px solid rgba(228, 230, 223, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(18, 26, 23, 0.08);
}

.side-card {
  min-height: 170px;
  padding: 22px;
}

.side-card span {
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.side-card strong {
  display: block;
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.24;
}

.side-card p,
.origin-copy p,
.section-head p,
.service__grid p,
.product-card p,
.product-modal__body p,
.footer p {
  color: var(--muted);
  line-height: 1.75;
}

.side-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green);
  font-weight: 850;
}

.side-card--dark {
  background: linear-gradient(145deg, #10231d, #264b3f);
  color: #fff;
}

.side-card--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.side-card--gold {
  background: linear-gradient(145deg, #fff5df, #ffffff);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 8px 0 34px;
}

.feature-row article {
  min-height: 112px;
  padding: 20px;
}

.feature-row b,
.feature-row span {
  display: block;
}

.feature-row b {
  color: var(--green);
  font-size: 20px;
}

.feature-row span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.origin-section {
  padding: 64px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4)),
    rgba(73, 107, 120, 0.13);
}

.origin__grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 34px;
  align-items: center;
}

.origin-copy h2,
.section-head h2,
.service__grid h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: 0;
}

.origin-points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.origin-points span {
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 255, 255, 0.72);
  color: #3f4a45;
  line-height: 1.6;
}

.origin-poster {
  margin: 0;
  overflow: hidden;
  background: #d6e1e3;
}

.origin-poster img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  background: #d6e1e3;
}

.section {
  padding: 68px 0;
}

.section-head {
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.filters,
.product-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters button,
.sort-tabs button {
  padding: 9px 14px;
}

.product-tools {
  justify-content: space-between;
  margin-bottom: 18px;
}

.sort-tabs {
  gap: 8px;
  flex-wrap: wrap;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  background: #fff;
}

.product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #e6e2d5;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(16, 31, 26, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.product-card__body {
  padding: 16px;
}

.product-card h3 {
  min-height: 48px;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.product-card p {
  min-height: 74px;
  margin: 10px 0 0;
  font-size: 14px;
}

.product-card__meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.product-card__meta strong {
  color: var(--red);
  font-size: 24px;
}

.product-card__meta span {
  color: var(--muted);
  font-size: 13px;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.product-card__actions button {
  min-height: 40px;
  border-radius: var(--radius);
  font-weight: 800;
}

.product-card__actions button:first-child {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green);
}

.product-card__actions button:last-child {
  border: 0;
  background: var(--deep);
  color: #fff;
}

.product-card__actions button:disabled {
  background: #b7beb9;
  cursor: not-allowed;
}

.service-band {
  padding: 70px 0;
  background: var(--deep);
  color: #fff;
}

.service__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.service__grid p {
  color: rgba(255, 255, 255, 0.72);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.process article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.process b,
.process span {
  display: block;
}

.process b {
  color: var(--gold);
}

.process span {
  margin-top: 42px;
  line-height: 1.5;
  font-size: 18px;
  font-weight: 850;
}

.footer {
  padding: 34px 0;
  background: #fff;
}

.footer__grid {
  justify-content: space-between;
  gap: 20px;
}

.footer strong {
  display: block;
  font-size: 20px;
}

.footer nav {
  gap: 16px;
  color: var(--green);
  font-weight: 800;
}

.drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.drawer.is-open,
.modal.is-open {
  display: block;
}

.drawer__overlay,
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 12, 0.46);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  padding: 22px;
  overflow: auto;
}

.drawer__head,
.cart-summary,
.cart-item,
.price-line,
.modal-actions {
  display: flex;
  align-items: center;
}

.drawer__head,
.cart-summary,
.price-line {
  justify-content: space-between;
  gap: 14px;
}

.close-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef1ec;
  color: var(--ink);
  font-size: 22px;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.cart-item {
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-item img {
  width: 62px;
  height: 62px;
  border-radius: 7px;
  object-fit: cover;
}

.cart-item div {
  flex: 1;
}

.cart-item strong,
.cart-item small {
  display: block;
}

.cart-item small {
  margin-top: 6px;
  color: var(--muted);
}

.cart-item button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3e4df;
  color: var(--red);
  font-size: 20px;
}

.modal__panel {
  position: relative;
  width: min(980px, calc(100% - 32px));
  max-height: calc(100vh - 36px);
  margin: 18px auto;
  overflow: auto;
}

.modal__panel > .close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.product-modal {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
}

.product-modal__image {
  margin: 0;
  min-height: 560px;
  background: #e9e4d7;
}

.product-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal__body {
  padding: 52px 42px;
}

.product-modal__body h3 {
  margin: 16px 0 0;
  font-size: 34px;
  line-height: 1.18;
}

.price-line {
  margin: 22px 0;
}

.price-line strong {
  color: var(--red);
  font-size: 32px;
}

.price-line span {
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
}

.modal-actions {
  gap: 10px;
}

.modal-actions .secondary-btn {
  border-color: rgba(13, 107, 69, 0.22);
  background: #fff;
  color: var(--green);
}

.mini-panel {
  max-width: 440px;
  padding: 34px;
}

.member-panel {
  max-width: 520px;
}

.member-panel h3 {
  margin: 14px 0 8px;
  font-size: 30px;
}

.member-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.75;
}

.member-form {
  display: grid;
  gap: 14px;
}

.member-form label {
  display: grid;
  gap: 8px;
  color: #36443d;
  font-weight: 850;
}

.member-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  outline: 0;
}

.member-form input:focus {
  border-color: rgba(13, 107, 69, 0.58);
  box-shadow: 0 0 0 3px rgba(13, 107, 69, 0.1);
}

.code-row span {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 8px;
}

.code-row button,
.member-logout {
  min-height: 46px;
  border: 1px solid rgba(13, 107, 69, 0.24);
  border-radius: var(--radius);
  background: #fff;
  color: var(--green);
  font-weight: 850;
}

.code-row button:disabled {
  color: var(--muted);
  background: #eef1ec;
  cursor: not-allowed;
}

#codeHint {
  min-height: 20px;
  color: var(--gold);
  line-height: 1.5;
}

.member-card {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 20px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16, 31, 26, 0.94), rgba(13, 107, 69, 0.88)),
    var(--deep);
  color: #fff;
}

.member-card span,
.member-card small {
  color: rgba(255, 255, 255, 0.76);
}

.member-card strong {
  font-size: 26px;
}

.member-logout {
  width: 100%;
  margin-top: 14px;
}

.coupon-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.coupon-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff7e6;
}

.coupon-list b {
  color: var(--red);
  font-size: 24px;
}

.empty-cart {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(16, 31, 26, 0.94);
  color: #fff;
  transition: 0.2s ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 1040px) {
  .header-main,
  .hero__grid,
  .origin__grid,
  .service__grid {
    grid-template-columns: 1fr;
  }

  .header-main {
    display: grid;
  }

  .search {
    width: 100%;
    margin-left: 0;
  }

  .hero-side,
  .feature-row,
  .product-grid,
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1220px);
  }

  .topbar__inner,
  .section-head,
  .product-tools,
  .footer__grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    width: 100%;
    overflow-x: auto;
  }

  .header-main {
    gap: 14px;
    padding: 14px 0;
  }

  .brand {
    min-width: 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-poster {
    min-height: 520px;
  }

  .hero-poster__content {
    width: 100%;
    padding: 42px 24px;
  }

  .hero-poster__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-side,
  .feature-row,
  .product-grid,
  .process,
  .product-modal {
    grid-template-columns: 1fr;
  }

  .origin-section,
  .section,
  .service-band {
    padding: 44px 0;
  }

  .product-modal__image {
    min-height: 340px;
  }

  .product-modal__body {
    padding: 34px 22px;
  }

  .code-row span {
    grid-template-columns: 1fr;
  }
}
