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

:root {
  --ink: #16211c;
  --muted: #5d6a64;
  --line: #dfe7e2;
  --surface: #ffffff;
  --soft: #f4f8f5;
  --brand: #15a66a;
  --brand-dark: #0e704a;
  --accent: #e7b84a;
}

body {
  min-width: 320px;
  color: var(--ink);
  background: #f6f8f6;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 0 36px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.nav-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #405048;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a.active,
.nav-btn.primary {
  color: #fff;
  background: var(--ink);
}

.nav-btn {
  border-color: var(--line);
  background: #fff;
}

main {
  flex: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.hero-grid,
.detail-layout,
.checkout-layout {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(280px, 0.86fr);
  align-items: stretch;
  padding: 34px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.hero-badge,
.badge,
.product-tag {
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #eaf7f0;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.hero-title {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-desc,
.section-head p,
.product-desc,
.desc,
.lead,
.bottom-note,
.tip {
  color: var(--muted);
  line-height: 1.8;
}

.hero-panel {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.hero-panel h2,
.section-head h2 {
  font-size: 24px;
  line-height: 1.2;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.metric strong {
  display: block;
  font-size: 24px;
}

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

.section {
  margin-top: 24px;
}

.claim-banner,
.bottom-note,
.panel,
.detail-card,
.summary-card,
.info-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.claim-banner {
  margin-bottom: 20px;
  padding: 22px 24px;
  border-left: 4px solid var(--brand);
}

.claim-banner h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

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

.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.product-visual {
  min-height: 176px;
  padding: 22px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: #eff8f3;
}

.product-visual.paid,
.detail-visual.companion {
  background: linear-gradient(135deg, #183427, #256d51);
}

.product-visual.claim,
.detail-visual.white-lobster {
  background: linear-gradient(135deg, #f9fbfa, #dff3ec);
}

.claim-model-mark {
  width: min(320px, 100%);
  min-height: 118px;
  padding: 18px;
  border: 1px solid #cde2d8;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 22px;
  font-weight: 900;
}

.claim-model-mark span {
  display: block;
  margin-top: 7px;
  color: var(--brand-dark);
  font-size: 13px;
}

.product-body,
.detail-card,
.panel,
.summary-card,
.info-block {
  padding: 24px;
}

.product-body {
  display: grid;
  gap: 13px;
}

.product-topline,
.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.product-price,
.price,
.summary-price {
  white-space: nowrap;
  font-weight: 900;
}

.product-price {
  font-size: 22px;
}

.product-title {
  font-size: 25px;
  line-height: 1.2;
}

.product-points,
.summary-list {
  display: grid;
  gap: 7px;
  color: #3b4a43;
  font-size: 14px;
}

.product-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.product-btn,
.action-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.product-btn.primary,
.action-btn.primary {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.action-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.bottom-note {
  margin-top: 18px;
  padding: 18px 20px;
  background: #fbfdfb;
}

.detail-layout {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.detail-visual {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.detail-visual.white-lobster {
  color: var(--ink);
}

.detail-visual h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
}

.detail-visual p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

.detail-visual.white-lobster p {
  color: var(--muted);
}

.detail-card {
  display: grid;
  gap: 20px;
}

.title-row h2,
.panel h1 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.16;
}

.price,
.summary-price {
  font-size: 30px;
}

.detail-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.detail-section h3,
.info-block h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.detail-section ul,
.info-block ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: #3b4a43;
  line-height: 1.75;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.summary-card {
  color: #fff;
  background: #16211c;
}

.summary-card .summary-list {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

label,
.payment-method {
  display: grid;
  gap: 8px;
  color: #293831;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ccd8d1;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.payment-method {
  width: min(240px, 100%);
  margin-top: 20px;
}

.tip {
  margin-top: 12px;
  min-height: 24px;
  font-size: 13px;
}

.payment-qr {
  width: 148px;
  height: 148px;
  margin-top: 10px;
  border-radius: 8px;
}

.payment-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--brand-dark);
  font-weight: 900;
}

.order-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-row h3 {
  font-size: 18px;
  line-height: 1.3;
}

.order-row p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.order-status {
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--brand-dark);
  background: #eaf7f0;
  font-size: 12px;
  font-weight: 800;
}

.order-total {
  margin-top: 18px;
}

.footer-v2 {
  border-top: 1px solid var(--line);
  padding: 20px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

@media (max-width: 960px) {
  .nav-bar {
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
  }

  main {
    width: min(100% - 28px, 1180px);
    padding-top: 18px;
  }

  .hero-grid,
  .detail-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 22px;
  }

  .hero-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }

  .metric-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .detail-visual {
    min-height: 360px;
  }

  .title-row,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .brand span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-btn {
    padding: 0 10px;
  }

  .product-body,
  .detail-card,
  .panel,
  .summary-card,
  .info-block {
    padding: 18px;
  }

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