:root {
  --bg: #111110;
  --card: #1a1a18;
  --line: #33322e;
  --gold: #f1c65b;
  --text: #f5f2e9;
  --muted: #c8c2b6;
  --field: #23211b;
}

* { box-sizing: border-box; }
html, body { margin: 0; touch-action: pan-x pan-y; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
button, input, select { font: inherit; color: inherit; }
.wrap { width: min(960px, calc(100% - 48px)); margin: 0 auto; padding: 18px 0 36px; }
.top { min-height: 52px; padding: 4px 0 10px; }
.brand-name {
  font-family: "Arial Black", "Arial Bold", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1;
  color: var(--gold);
}
.brand-sub {
  margin-top: 4px;
  color: #cfc8ba;
  font-size: 10px;
  letter-spacing: 1.7px;
}
.hero {
  display: flex;
  align-items: center;
  aspect-ratio: 956 / 188;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #3a372d;
  background: #12110f url("/static/hero.jpg") right center / cover no-repeat;
}
.hero-copy { padding: 0 34px; max-width: 68%; }
.hero h1 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: 1px; line-height: 1.15; }
.hero .gold { color: var(--gold); }
.hero p { margin: 10px 0 0; color: #ddd6c8; font-size: 14px; }
.tabs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #161614;
}
.tab {
  border: 0;
  background: transparent;
  color: #e6e0d4;
  border-radius: 8px;
  min-height: 40px;
  cursor: pointer;
}
.tab.is-on {
  background: #332a17;
  color: #f7f4ec;
  font-weight: 700;
  box-shadow: inset 0 1px 0 #6d5830;
}
.tab.is-done {
  color: var(--gold);
  box-shadow: inset 0 0 0 1px #8a6a32;
}
.tab.is-locked {
  color: #6d675c;
  cursor: default;
}
.tab-note {
  margin: 8px 4px 0;
  color: #e7c27a;
  font-size: 13px;
}
.panel {
  margin-top: 14px;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.panel h2 { margin: 0 0 16px; font-size: 22px; font-weight: 700; }
.field { display: block; color: var(--text); font-size: 14px; }
.select-wrap { position: relative; display: block; margin-top: 8px; max-width: 440px; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--gold);
  transform: translateY(-30%);
  pointer-events: none;
}
select, input {
  width: 100%;
  background: var(--field);
  border: 1px solid #5b513c;
  border-radius: 6px;
  min-height: 40px;
  padding: 0 40px 0 14px;
  outline: none;
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
}
select::-ms-expand { display: none; }
input { padding-right: 14px; }
select:focus, input:focus { border-color: var(--gold); }
.hint { color: #b7ad9c; font-size: 13px; margin: 10px 0 0; }
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.tier {
  text-align: left;
  min-height: 112px;
  border: 1px solid #6a5a38;
  background: #16130f;
  border-radius: 8px;
  padding: 14px 16px 12px;
  cursor: pointer;
}
.tier.is-on { border-color: #e6c36a; background: #1c1812; }
.tier-name { font-size: 14px; color: #f4f0e6; }
.tier-lessons { margin-top: 8px; font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: 0.5px; }
.tier-price { margin-top: 8px; color: var(--gold); font-size: 16px; font-weight: 700; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 8px; }
.split-fields .select-wrap { max-width: none; }
#panel-fitness > .field .select-wrap { max-width: calc(50% - 14px); }
.picked { margin: 0; color: var(--gold); font-size: 14px; }
.stage-line { margin: 6px 0 8px; color: #f4f0e6; font-size: 14px; }
.detail-kicker { margin: 0; color: #f4f0e6; font-size: 15px; }
.detail-sub { margin: 6px 0 16px; color: #b7ad9c; font-size: 14px; }
.detail-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-card {
  border: 1px solid #6a5a38;
  border-radius: 10px;
  background: #14110e;
  padding: 18px 18px 16px;
  min-height: 156px;
}
.detail-label { font-size: 15px; font-weight: 700; }
.detail-lessons { margin-top: 14px; font-size: 32px; font-weight: 700; letter-spacing: 0.5px; }
.detail-meta { margin-top: 8px; color: #b7ad9c; font-size: 13px; }
.detail-price { margin-top: 16px; color: var(--gold); font-size: 22px; font-weight: 700; }
.detail-rows { margin-top: 8px; }
.detail-rows div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 2px;
  border-bottom: 1px solid #2c2822;
  color: #d9d0c0;
  font-size: 15px;
}
.detail-rows i { flex: 1; border-bottom: 1px dotted #6a5a38; transform: translateY(-4px); }
.detail-rows strong { color: var(--gold); font-size: 16px; font-weight: 700; }
.detail-rows div:last-child strong { font-size: 22px; }
.panel-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.ghost, .gold-btn {
  border-radius: 8px;
  min-height: 38px;
  padding: 0 16px;
  cursor: pointer;
}
.ghost {
  background: #14120f;
  color: #f4f0e6;
  border: 1px solid #5c513c;
}
.gold-btn {
  border: 0;
  background: linear-gradient(180deg, #f3d48a, #e2b44c);
  color: #1c160c;
  font-weight: 700;
}
.gold-btn:disabled { opacity: 0.4; cursor: default; }
.cards { display: grid; gap: 10px; margin-top: 14px; }
.card {
  text-align: left;
  width: 100%;
  border: 1px solid #3d3424;
  background: #120f0c;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
}
.card.is-on { border-color: var(--gold); background: #221b10; }
.card-name { grid-column: 1; grid-row: 1; font-size: 16px; font-weight: 650; }
.card-meta { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 13px; }
.card-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: end; color: var(--gold); font-size: 20px; font-weight: 700; }
.pay-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #3a311c;
  border: 1px solid #6a5a38;
}
.pay-summary span { color: #f4f0e6; font-size: 16px; }
.pay-summary strong { color: var(--gold); font-size: 28px; font-weight: 700; white-space: nowrap; }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pay-methods.is-single { grid-template-columns: calc((100% - 24px) / 3); justify-content: center; }
.pay-method {
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid #5c513c;
  background: #14120f;
  color: #f4f0e6;
  cursor: pointer;
}
.pay-method.is-on { border-color: #e6c36a; background: #332a17; color: #f3d48a; }
.pay-sheet {
  margin-top: 16px;
  min-height: 148px;
  border: 1px dashed #6a5a38;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 16px;
  gap: 8px;
}
.pay-sheet strong { font-size: 16px; font-weight: 700; }
.pay-sheet p { margin: 0; color: #b7ad9c; font-size: 14px; }
.pay-sheet img { width: min(320px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; }
.pay-form { margin-top: 16px; display: grid; gap: 8px; max-width: 460px; }
.pay-form label { color: var(--muted); font-size: 14px; }
.submit {
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  min-height: 46px;
  background: linear-gradient(180deg, #e4c16a, #b8892e);
  color: #1a1408;
  font-weight: 700;
  cursor: pointer;
}
.submit:disabled { opacity: 0.6; cursor: default; }
.form-error { min-height: 1.2em; margin: 0; color: #e7a0a0; font-size: 13px; }
.success {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #243322;
  color: #d8ecbf;
}
.pay-qr {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  color: #1a1408;
}
.pay-qr img { width: 168px; height: 168px; object-fit: contain; background: #fff; }
.pay-qr p { margin: 0; max-width: 240px; line-height: 1.6; }
.quote {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #161614;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.quote-kicker { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.quote-lines { color: #d9d0c0; font-size: 14px; margin-top: 4px; }
.quote-amount { color: var(--gold); font-size: 28px; font-weight: 700; white-space: nowrap; }
.foot {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d7d1c6;
  font-size: 13px;
}
.foot span:last-child { color: var(--gold); letter-spacing: 1px; font-weight: 700; }
.hidden { display: none; }
@media (max-width: 800px) {
  .wrap { width: min(960px, calc(100% - 24px)); }
  .hero {
    aspect-ratio: 16 / 9;
    align-items: flex-end;
    background-image:
      linear-gradient(180deg, rgba(12, 11, 10, 0.05) 20%, rgba(12, 11, 10, 0.78) 100%),
      url("/static/hero.jpg");
    background-position: center, right center;
    background-size: cover, cover;
    background-repeat: no-repeat;
  }
  .hero h1 { font-size: 28px; }
  .hero-copy { padding: 0 16px 16px; max-width: 100%; }
  .hero p { font-size: 12px; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .select-wrap, #panel-fitness > .field .select-wrap { max-width: none; }
  .tiers, .split-fields, .detail-cards, .pay-methods, .pay-methods.is-single { grid-template-columns: 1fr; }
  .tier-lessons { font-size: 24px; }
  .quote { align-items: flex-start; flex-direction: column; }
  .foot { flex-direction: column; }
}
