:root {
  --ink: #f7ead7;
  --muted: #bda98a;
  --line: rgba(218, 164, 79, .34);
  --paper: #0d0907;
  --soft: #1a120d;
  --card: #17100c;
  --accent: #9d252d;
  --gold: #d9a75a;
  --gold-soft: #fff0c6;
  --shadow: 0 18px 44px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 167, 90, .16), transparent 34%),
    linear-gradient(180deg, #070504, var(--paper) 38%, #120b07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
img { display: block; }

header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 7, 5, .78);
  backdrop-filter: blur(18px) saturate(1.18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.logo img {
  width: 36px;
  height: 36px;
  border: 1px solid #672327;
  border-radius: 6px;
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cart-link,
.plain-btn {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 900;
}

.cart-link b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  align-items: center;
  justify-items: center;
  color: #fff;
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 9, 7, .98), rgba(13, 9, 7, .04) 26%, rgba(13, 9, 7, .04) 74%, rgba(13, 9, 7, .98)),
    url("logo.png") center / contain no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 56px));
  align-self: end;
  padding: 0;
}

.search-strip {
  position: relative;
  z-index: 2;
  padding: 16px 28px 0;
  background: var(--paper);
}

.kicker {
  margin: 0 0 10px;
  color: #f1d58c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(35px, 6vw, 70px);
  line-height: .98;
}

.hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
}

.search {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  padding: 4px;
}

.search input {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.search button,
.buy-button {
  min-height: 38px;
  border: 1px solid #812227;
  border-radius: 6px;
  background: linear-gradient(180deg, #f0c47b, var(--gold));
  color: #1a1008;
  padding: 0 16px;
  font-weight: 900;
}

.search-results {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search-results.visible { display: block; }

.pcc-notice {
  padding: 10px 28px 0;
  background: var(--paper);
}

.pcc-notice strong {
  max-width: 760px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: #fff4d8;
  box-shadow: 0 10px 24px rgba(157, 37, 45, .16);
  padding: 7px 16px;
  text-align: center;
  font-size: clamp(15px, 2vw, 21px);
  font-weight: 950;
}

.pcc-notice img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}

.result-button {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 13px 14px;
}

.result-button:last-child { border-bottom: 0; }
.result-button strong { display: block; font-size: 14px; }
.result-button span span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

main { padding: 28px 28px 26px; }

.section-head { margin-bottom: 16px; }
.section-head h1,
.section-head h2 { margin: 0; font-size: 24px; }
.section-head p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }

.brand-sections {
  display: grid;
  gap: 28px;
  align-items: start;
}

.brand-section-block { min-width: 0; }

.column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.column-head h3 {
  margin: 0;
  font-size: 20px;
}

.column-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.brand-card {
  min-height: 170px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  color: var(--ink);
  text-align: left;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}

.brand-card:hover { transform: translateY(-2px); border-color: #d3b36b; }

.brand-emblem {
  height: 108px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(218, 164, 79, .16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 250, 235, .98), rgba(238, 224, 191, .96) 72%, rgba(218, 195, 153, .92)),
    linear-gradient(135deg, #f1e2bd, #d8bd82);
}

.brand-logo-img {
  max-width: 88%;
  max-height: 86px;
  object-fit: contain;
  filter: saturate(.98) contrast(1.02) drop-shadow(0 8px 12px rgba(82, 45, 15, .14));
}

.brand-name-logo {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #bd8036;
  text-align: center;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
  padding: 12px;
}

.brand-name-logo.is-visible {
  display: grid;
}

.brand-card-copy {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.brand-card strong { font-size: 21px; line-height: 1.2; }
.brand-card span { color: var(--muted); font-size: 13px; }
.brand-card em {
  justify-self: start;
  font-style: normal;
  color: #7a551a;
  background: var(--gold-soft);
  border: 1px solid rgba(218, 164, 79, .7);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.accessory-card {
  min-height: 150px;
}

.accessory-emblem span {
  display: grid;
  place-items: center;
  min-width: 150px;
  min-height: 48px;
  border: 1px solid rgba(189, 128, 54, .35);
  border-radius: 6px;
  background: rgba(255, 250, 240, .7);
  color: #8b5c1e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.store-info {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  box-shadow: var(--shadow);
  padding: 22px;
}

.store-copy {
  margin-bottom: 16px;
}

.store-copy h2 {
  margin: 0;
  font-size: 28px;
}

.store-copy p:not(.kicker) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.store-grid {
  display: grid;
  grid-template-columns: 1.5fr .7fr;
  gap: 12px;
}

.store-grid article {
  border: 1px solid rgba(218, 164, 79, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  padding: 13px;
}

.store-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.store-grid strong {
  display: block;
  color: var(--ink);
  line-height: 1.45;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.map-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(218, 164, 79, .58);
  border-radius: 8px;
  background: linear-gradient(180deg, #f0c47b, var(--gold));
  color: #1a1008;
  padding: 0 16px;
  font-weight: 900;
}

.map-button.secondary {
  background: rgba(255, 255, 255, .06);
  color: var(--gold-soft);
}

.content-page {
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(217, 167, 90, .18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  box-shadow: var(--shadow);
  padding: 26px;
}

.compact-hero h1,
.store-showcase h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.compact-hero p:not(.kicker),
.store-showcase p:not(.kicker) {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.qr-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  box-shadow: var(--shadow);
  padding: 14px;
  text-align: center;
}

.qr-image {
  overflow: hidden;
  border: 1px solid rgba(218, 164, 79, .28);
  border-radius: 8px;
  background: #fff;
}

.qr-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}

.douyin-card .qr-image {
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 248, 226, .98), rgba(241, 226, 190, .94) 64%, rgba(229, 206, 160, .92));
}

.douyin-card .qr-image img {
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(46, 22, 12, .18);
}

.qr-card h2 {
  margin: 14px 0 6px;
  font-size: 24px;
}

.qr-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 16px;
}

.contact-band span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.contact-band strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.store-showcase {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  box-shadow: var(--shadow);
  padding: 22px;
}

.store-showcase-image {
  overflow: hidden;
  border: 1px solid rgba(218, 164, 79, .32);
  border-radius: 8px;
  background: #050403;
}

.store-showcase-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.store-gallery {
  margin-top: 18px;
}

.store-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.store-photo {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.store-photo.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 512px;
}

.store-photo.wide {
  grid-column: span 2;
}

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

.store-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border: 1px solid rgba(218, 164, 79, .32);
  border-radius: 999px;
  background: rgba(10, 7, 5, .72);
  color: var(--gold-soft);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.store-info.standalone {
  margin-top: 18px;
}

.brand-page { padding-top: 22px; }
.back-link { display: inline-flex; margin-bottom: 18px; color: var(--muted); font-weight: 800; }

.brand-hero {
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 167, 90, .12), transparent 46%),
    var(--card);
  padding: 26px 18px 28px;
  box-shadow: var(--shadow);
}

.brand-hero-center {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.brand-detail-logo {
  width: min(420px, 72vw);
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(218, 164, 79, .18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 250, 235, .98), rgba(238, 224, 191, .96) 72%, rgba(218, 195, 153, .92)),
    linear-gradient(135deg, #f1e2bd, #d8bd82);
}

.brand-detail-logo .brand-logo-img {
  max-width: 86%;
  max-height: 82px;
}

.brand-detail-logo .brand-name-logo {
  font-size: 18px;
}

.brand-hero h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}

.brand-hero p { margin: 12px 0 0; color: var(--muted); }

.model-section { margin-top: 22px; }

.model-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.model-filter {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 6px;
  border: 1px solid rgba(218, 164, 79, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  padding: 4px;
}

.model-filter button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.model-filter button.is-active {
  background: linear-gradient(180deg, #f0c47b, var(--gold));
  color: #1a1008;
  box-shadow: 0 8px 16px rgba(217, 167, 90, .16);
}

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

.model-card {
  overflow: hidden;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.model-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / .62;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  padding: 0;
}

.model-image img,
.cart-thumb img,
.admin-thumb img,
.modal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-image span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 240, 198, .94);
  color: #27170b;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.model-info {
  display: grid;
  gap: 8px;
  padding: 11px;
}

.model-info strong { font-size: 16px; line-height: 1.25; }
.model-info p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }

.model-price-list {
  display: grid;
  gap: 0;
}

.model-price-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(218, 164, 79, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  padding: 7px 8px;
  font-size: 12px;
}

.model-price-list b { color: var(--muted); }
.model-price-list span { color: var(--gold-soft); font-weight: 900; text-align: right; }

.keyword-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.keyword-line span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(217, 167, 90, .14);
  color: var(--gold-soft);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  transition: background .18s ease;
}

.cart-drawer.open {
  pointer-events: auto;
  background: rgba(0, 0, 0, .42);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, 100vw);
  height: 100%;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: var(--card);
  padding: 18px;
  transform: translateX(100%);
  transition: transform .18s ease;
}

.cart-drawer.open .cart-panel { transform: translateX(0); }

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h2 { margin: 0; }
.modal-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
}

.cart-list { display: grid; gap: 10px; }
.cart-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.cart-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cart-thumb {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

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

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

.qty-row {
  display: grid;
  grid-template-columns: 34px 42px 34px 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.qty-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  color: var(--gold-soft);
  font-weight: 900;
}

.qty-row button:last-child {
  color: var(--muted);
}

.qty-row span { text-align: center; }

.checkout-form {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

input,
textarea,
select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  padding: 8px 10px;
  outline: none;
}

select {
  background: #17100c;
  color: var(--ink);
}

option {
  background: #fffaf0;
  color: #1a1008;
}

select option:checked {
  background: var(--gold);
  color: #1a1008;
}

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

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 12px 0;
}

.cart-total strong { color: var(--gold-soft); font-size: 24px; }
.full { width: 100%; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, .75);
}

.modal[hidden] { display: none; }

.modal img {
  width: min(920px, 92vw);
  height: min(76vh, 760px);
  object-fit: contain;
  background: #0d0907;
}

.modal p { color: #fff; font-weight: 900; }
.modal-close { position: fixed; top: 18px; right: 18px; }

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .78);
}

.checkout-modal[hidden] {
  display: none;
}

.checkout-panel {
  width: min(640px, 100%);
  max-height: min(860px, 94vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 18px;
}

.checkout-modal[data-step="info"] .checkout-panel {
  width: min(700px, 100%);
  border-color: rgba(133, 103, 58, .42);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(239, 232, 218, .98)),
    radial-gradient(circle at 12% 0%, rgba(190, 146, 74, .18), transparent 28%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .46);
  padding: 22px 24px 20px;
  color: #17110c;
  font-family: "Noto Serif SC", "Songti SC", "PingFang SC", serif;
}

.checkout-modal[data-step="info"] .modal-head {
  position: relative;
  z-index: 3;
  justify-content: flex-end;
  margin-bottom: -52px;
}

.checkout-modal[data-step="info"] .modal-head > div {
  display: none;
}

.checkout-modal[data-step="info"] .modal-head h2 {
  color: #fff3dc;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: 0;
}

.checkout-modal[data-step="info"] .modal-head p {
  color: rgba(235, 210, 170, .78);
  font-size: 15px;
  margin-top: 10px;
}

.checkout-modal[data-step="info"] .icon-btn {
  width: 48px;
  height: 48px;
  border-color: rgba(133, 103, 58, .34);
  background: rgba(29, 20, 12, .68);
  color: #fff5df;
}

.checkout-info-card {
  display: grid;
  gap: 0;
}

.checkout-modal[data-step="info"] .checkout-info-card .luxury-receipt-top {
  padding-bottom: 20px;
}

.checkout-modal[data-step="info"] .checkout-info-card .receipt-greeting {
  padding: 16px 0 15px;
  margin-bottom: 14px;
}

.checkout-modal[data-step="confirm"] .checkout-panel {
  width: min(690px, 100%);
  background:
    linear-gradient(180deg, rgba(23, 15, 10, .98), rgba(11, 7, 5, .98));
  padding: 14px;
}

.checkout-modal[data-step="confirm"] .modal-head {
  position: relative;
  z-index: 3;
  justify-content: flex-end;
  margin-bottom: -50px;
}

.checkout-modal[data-step="confirm"] .modal-head > div {
  display: none;
}

.checkout-modal[data-step="confirm"] .icon-btn {
  background: rgba(34, 21, 12, .72);
  color: #fff5df;
}

.checkout-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.checkout-summary article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(42, 27, 14, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  padding: 13px 14px;
}

.checkout-summary article div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.checkout-summary small {
  color: #7c613b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  font-family: "Inter", "PingFang SC", sans-serif;
}

.checkout-summary span {
  color: #15100b;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.checkout-summary em {
  color: #776953;
  font-style: normal;
  font-weight: 800;
  font-family: "PingFang SC", "Inter", sans-serif;
}

.checkout-summary strong {
  color: #15100b;
  font-size: 19px;
  font-weight: 900;
  white-space: nowrap;
  font-family: "Inter", "PingFang SC", sans-serif;
}

.checkout-form {
  display: grid;
  gap: 10px;
  padding: 14px 0 2px;
  border-top: 1px solid rgba(42, 27, 14, .12);
}

.checkout-form input {
  min-height: 50px;
  border-color: rgba(42, 27, 14, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .62);
  color: #15100b;
  font-size: 16px;
  font-weight: 850;
  padding: 0 16px;
  font-family: "PingFang SC", "Inter", sans-serif;
}

.checkout-form input::placeholder {
  color: rgba(42, 27, 14, .42);
}

.checkout-form input:focus {
  border-color: rgba(133, 103, 58, .54);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 0 0 3px rgba(133, 103, 58, .1);
}

.checkout-modal[data-step="info"] .cart-total {
  border-top-color: rgba(42, 27, 14, .14);
  padding-top: 15px;
  margin: 16px 0 13px;
}

.checkout-modal[data-step="info"] .cart-total span {
  color: #15100b;
  font-size: 18px;
  font-weight: 900;
}

.checkout-modal[data-step="info"] .cart-total strong {
  color: #15100b;
  font-size: 34px;
  font-weight: 900;
  font-family: "Inter", "PingFang SC", sans-serif;
}

.checkout-modal[data-step="info"] #submitOrder {
  min-height: 54px;
  border: 1px solid rgba(246, 198, 108, .36);
  background:
    linear-gradient(180deg, #2f2519, #4f3a20);
  color: #fff1d4;
  font-size: 18px;
  letter-spacing: .03em;
  box-shadow: 0 12px 28px rgba(42, 25, 10, .16);
}

.checkout-modal[data-step="info"] #submitOrder:hover {
  background:
    linear-gradient(180deg, #3a2c1c, #6a4b25);
  color: #fff7e8;
}

.checkout-modal[data-step="info"] .buy-button:not(#submitOrder) {
  color: #160e08;
}

.payment-box {
  border: 1px solid rgba(218, 164, 79, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  padding: 12px;
  margin-top: 10px;
}

.payment-box > span {
  display: block;
  color: var(--gold-soft);
  font-weight: 900;
  margin-bottom: 10px;
}

.payment-box p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.checkout-step[hidden] {
  display: none;
}

.checkout-actions {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  margin-top: 14px;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, .04);
  font-weight: 800;
}

.payment-options input {
  width: auto;
  min-height: auto;
}

.order-confirm-box {
  border: none;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: #24170e;
  padding: 0;
}

.order-confirm-box::before,
.order-confirm-box::after {
  display: none;
}

.luxury-receipt {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(133, 103, 58, .42);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(239, 232, 218, .98)),
    radial-gradient(circle at 12% 0%, rgba(190, 146, 74, .18), transparent 28%);
  color: #17110c;
  box-shadow: 0 24px 62px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 255, 255, .82);
  padding: 22px 24px 20px;
  font-family: "Noto Serif SC", "Songti SC", "PingFang SC", serif;
}

.luxury-receipt::before,
.luxury-receipt::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 82, 40, .45), transparent);
}

.luxury-receipt::before { top: 82px; }
.luxury-receipt::after { bottom: 72px; }

.luxury-receipt-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
}

.luxury-receipt-top img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(28, 18, 10, .16);
  box-shadow: 0 10px 22px rgba(42, 25, 10, .16);
}

.luxury-receipt-top div {
  display: grid;
  gap: 2px;
}

.luxury-receipt-top strong {
  color: #16100b;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.luxury-receipt-top span {
  color: #806238;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  font-family: "Inter", "PingFang SC", sans-serif;
}

.receipt-greeting {
  display: grid;
  gap: 6px;
  padding: 16px 0 13px;
  border-bottom: 1px solid rgba(42, 27, 14, .12);
}

.receipt-greeting span {
  color: #17110c;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

.receipt-greeting small,
.receipt-footer small {
  color: #776953;
  line-height: 1.55;
  font-family: "PingFang SC", "Inter", sans-serif;
}

.receipt-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
}

.receipt-meta p {
  display: grid;
  gap: 4px;
  margin: 0;
  border: 1px solid rgba(42, 27, 14, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  padding: 10px 13px;
}

.receipt-meta span,
.receipt-section h3 {
  color: #7c613b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  font-family: "Inter", "PingFang SC", sans-serif;
}

.receipt-meta b {
  color: #15100b;
  font-size: 16px;
  white-space: nowrap;
  font-family: "Inter", "PingFang SC", sans-serif;
}

.receipt-section {
  padding: 12px 0;
  border-top: 1px solid rgba(42, 27, 14, .1);
}

.receipt-section h3 {
  margin: 0 0 10px;
}

.receipt-section dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.receipt-section dl div {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 16px;
}

.receipt-section dt {
  color: #7a6a52;
  font-weight: 800;
  font-family: "PingFang SC", "Inter", sans-serif;
}

.receipt-section dd {
  margin: 0;
  color: #15100b;
  font-weight: 900;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.receipt-items {
  display: grid;
  gap: 8px;
}

.receipt-items article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(42, 27, 14, .1);
  padding: 12px 14px;
}

.receipt-items article div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.receipt-items strong {
  color: #15100b;
  font-size: 16px;
  overflow-wrap: anywhere;
  line-height: 1.35;
  font-weight: 900;
}

.receipt-items span {
  color: #776953;
  font-weight: 800;
  font-family: "PingFang SC", "Inter", sans-serif;
}

.receipt-items b {
  color: #15100b;
  font-size: 17px;
  white-space: nowrap;
  font-family: "Inter", "PingFang SC", sans-serif;
}

.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  border-top: 1px solid rgba(42, 27, 14, .14);
  padding-top: 15px;
  margin-top: 2px;
}

.receipt-total span {
  color: #15100b;
  font-weight: 900;
}

.receipt-total strong {
  color: #15100b;
  font-size: 34px;
  font-weight: 900;
  font-family: "Inter", "PingFang SC", sans-serif;
}

.receipt-footer {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(28, 19, 11, .94), rgba(81, 60, 31, .9));
  padding: 11px 14px;
  text-align: center;
}

.receipt-footer span {
  color: #f8ecd6;
  font-weight: 900;
}

.receipt-footer small {
  color: rgba(248, 236, 214, .72);
}

.receipt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.receipt-brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(94, 55, 17, .2);
}

.receipt-brand div {
  display: grid;
  gap: 1px;
}

.receipt-brand span {
  color: #2d1c10;
  font-weight: 950;
  font-size: 18px;
}

.receipt-brand strong {
  color: #7a5420;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.order-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed rgba(91, 59, 23, .28);
  border-bottom: 1px dashed rgba(91, 59, 23, .28);
  padding: 14px 0;
  margin-bottom: 14px;
}

.order-ticket-head div {
  display: grid;
  gap: 2px;
}

.order-ticket-head small {
  color: #9b7434;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
}

.order-ticket-head strong {
  color: #24170e;
  font-size: 28px;
  line-height: 1.05;
}

.order-ticket-head > b {
  border: 1px solid rgba(112, 72, 26, .28);
  border-radius: 999px;
  color: #7a5420;
  background: rgba(255, 255, 255, .42);
  padding: 6px 11px;
  white-space: nowrap;
}

.order-ticket-code {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(112, 72, 26, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .48);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.order-ticket-code span,
.order-ticket-info b,
.order-ticket-items small,
.order-ticket-note {
  color: #80623a;
}

.order-ticket-code b,
.order-ticket-info span {
  color: #24170e;
}

.order-ticket-info {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.order-ticket-info p {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  align-items: start;
  line-height: 1.45;
}

.order-ticket-info span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.order-ticket-items {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(112, 72, 26, .18);
  border-bottom: 1px solid rgba(112, 72, 26, .18);
  padding: 12px 0;
}

.ticket-section-title {
  color: #7a5420;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
}

.order-ticket-items article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: start;
  border-radius: 7px;
  background: rgba(255, 255, 255, .28);
  padding: 9px 10px;
}

.order-ticket-items span {
  color: #24170e;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.order-ticket-items strong {
  color: #5d3915;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  white-space: nowrap;
}

.order-ticket-items small {
  grid-column: 1;
  font-weight: 900;
}

.order-ticket-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 14px;
}

.order-ticket-total span {
  color: #24170e;
  font-weight: 900;
}

.order-ticket-total strong {
  color: #24170e;
  font-size: 34px;
}

.order-ticket-note {
  margin: 10px 0 0;
  font-size: 13px;
  text-align: center;
}

.payment-result {
  position: relative;
  overflow: hidden;
  margin: 14px 0;
  border: 1px solid rgba(133, 103, 58, .42);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .98), rgba(239, 232, 218, .98)),
    radial-gradient(circle at 12% 0%, rgba(190, 146, 74, .18), transparent 28%);
  color: #17110c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .82);
  padding: 20px 22px;
  font-family: "Noto Serif SC", "Songti SC", "PingFang SC", serif;
}

.payment-result .receipt-brand {
  padding-bottom: 18px;
  margin-bottom: 0;
}

.payment-result .receipt-brand span,
.payment-result .order-ticket-head strong,
.payment-result .order-ticket-code b,
.payment-result .order-ticket-info span {
  color: #15100b;
}

.payment-result .receipt-brand strong,
.payment-result .order-ticket-head small,
.payment-result .order-ticket-code span,
.payment-result .order-ticket-info b,
.payment-result .order-ticket-note {
  color: #7c613b;
}

.payment-result .order-ticket-head {
  border-top: 1px solid rgba(42, 27, 14, .12);
  border-bottom: 1px solid rgba(42, 27, 14, .12);
}

.payment-result .order-ticket-code {
  border-color: rgba(42, 27, 14, .12);
  background: rgba(255, 255, 255, .62);
}

.payment-result .order-ticket-head > b {
  border-color: rgba(133, 103, 58, .3);
  background: rgba(255, 255, 255, .68);
  color: #7c613b;
}

.admin-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 18px;
}

.admin-page.is-locked,
.is-hidden {
  display: none;
}

.admin-login {
  width: min(520px, 100%);
  margin: 64px auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 22px;
}

.admin-login h1 {
  margin: 0;
  font-size: 30px;
}

.admin-login p {
  color: var(--muted);
}

.admin-login-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
}

.login-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #ff9a9a;
  font-weight: 800;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.admin-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  padding: 12px;
}

.admin-summary span { display: block; color: var(--muted); font-size: 12px; }
.admin-summary strong { display: block; margin-top: 4px; color: var(--gold-soft); font-size: 22px; }

.admin-toolbar {
  display: grid;
  grid-template-columns: 280px minmax(260px, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.admin-toolbar label {
  display: grid;
  gap: 6px;
}

.admin-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-current-brand {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-weight: 900;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
}

.admin-thumb {
  display: block;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  margin-bottom: 8px;
}

.admin-table input,
.admin-table textarea { margin-bottom: 8px; }

.check-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.check-row input {
  width: auto;
  min-height: auto;
  margin: 0;
}

.record-item {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--paper);
}

.record-item div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.record-item small,
.record-item p,
.empty,
.no-image {
  color: var(--muted);
}

.record-item.is-pending {
  border-color: rgba(231, 184, 91, .7);
}

.order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-status {
  color: var(--cream);
  font-weight: 900;
}

.buy-button.compact {
  width: auto;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 14px;
}

.order-admin-head { margin-top: 22px; }

@media (max-width: 1020px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .store-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
  }

  main { padding: 22px 14px; }
  .hero-content { width: 100%; padding: 38px 14px; }
  .search-box { grid-template-columns: 1fr; }
  .brand-grid,
  .qr-grid,
  .model-grid,
  .admin-summary,
  .admin-toolbar,
  .store-grid { grid-template-columns: 1fr; }
  .brand-hero,
  .contact-band,
  .admin-head,
  .record-item div { flex-direction: column; align-items: stretch; }
  .model-headline { align-items: flex-start; flex-direction: column; }
  .model-filter { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .store-showcase { grid-template-columns: 1fr; }
  .store-photo,
  .store-photo.large { min-height: 260px; }
  .store-photo.large,
  .store-photo.wide { grid-column: span 1; grid-row: span 1; }
}
