:root {
  --ink: #172033;
  --muted: #6b7280;
  --line: #e7e9ef;
  --surface: #ffffff;
  --soft: #f6f7fb;
  --accent: #e65378;
  --accent-dark: #c93861;
  --success: #138a5b;
  --warning: #a16207;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(31, 41, 55, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0, #f8f7fb 420px, #f4f5f8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(231, 233, 239, .85);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px;
  color: white; background: linear-gradient(135deg, #ff86a4, var(--accent));
  font-weight: 800; box-shadow: 0 9px 24px rgba(230, 83, 120, .25);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; }
.brand small { color: var(--muted); margin-top: 2px; font-size: 12px; }
nav { display: flex; gap: 10px; }
nav a { padding: 10px 14px; color: #4b5563; border-radius: 10px; }
nav a:hover { background: var(--soft); color: var(--ink); }

.page { min-height: calc(100vh - 158px); padding-top: 44px; padding-bottom: 64px; }
.hero {
  display: flex; align-items: end; justify-content: space-between; gap: 32px;
  padding: 44px; border: 1px solid #f1d6df; border-radius: 28px;
  background: radial-gradient(circle at 85% 15%, #ffe2eb 0, transparent 34%),
              linear-gradient(135deg, #fff 0, #fff8fa 100%);
  box-shadow: var(--shadow);
}
.hero h1 { max-width: 700px; margin: 8px 0 14px; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -2px; }
.hero p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.eyebrow { margin: 0; color: var(--accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0; }
.category-pills a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: white; color: #4b5563; }
.category-pills a:hover { border-color: #efafc0; color: var(--accent-dark); }
.product-section { margin-top: 44px; scroll-margin-top: 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 6px 0 0; font-size: 28px; }
.section-heading > span { color: var(--muted); font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card {
  min-height: 280px; display: flex; flex-direction: column; padding: 24px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
  box-shadow: 0 12px 35px rgba(31, 41, 55, .04); transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stock, .delivery { padding: 6px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.stock { color: var(--success); background: #eaf8f1; }
.stock-empty { color: var(--danger); background: #fff0ee; }
.delivery { color: #6440b8; background: #f0ebff; }
.product-card h3 { margin: 24px 0 10px; font-size: 20px; }
.product-card p { flex: 1; margin: 0; color: var(--muted); line-height: 1.7; }
.product-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.price { color: var(--accent-dark); font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.price small { margin-right: 3px; font-size: 15px; }
.price-large { margin: 20px 0; font-size: 42px; }
.primary-button, .secondary-button, .disabled-button {
  display: inline-flex; min-height: 42px; align-items: center; justify-content: center;
  padding: 10px 18px; border: 0; border-radius: 11px; font-weight: 750; cursor: pointer;
}
.primary-button { color: white; background: var(--accent); box-shadow: 0 8px 18px rgba(230, 83, 120, .22); }
.primary-button:hover { background: var(--accent-dark); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.secondary-button { border: 1px solid var(--line); background: white; color: #374151; }
.disabled-button { color: #9ca3af; background: #f1f2f4; cursor: default; }
.full-button { width: 100%; margin-top: 8px; }

.breadcrumb { display: flex; gap: 10px; margin-bottom: 22px; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--accent-dark); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 24px; align-items: start; }
.detail-card, .form-card, .order-card, .secrets-card, .narrow-card {
  border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow);
}
.detail-card, .form-card { padding: 32px; }
.detail-card h1, .narrow-card h1 { margin: 9px 0 0; font-size: 34px; }
.description { color: #4b5563; line-height: 1.8; }
.assurances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 30px 0 0; list-style: none; }
.assurances li { padding: 15px; border-radius: 13px; background: var(--soft); }
.assurances strong, .assurances span { display: block; }
.assurances strong { margin-bottom: 6px; font-size: 14px; }
.assurances span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-card h2 { margin: 7px 0 26px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-weight: 750; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; color: var(--ink);
  border: 1px solid #d8dce5; border-radius: 11px; background: white; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #e87996; box-shadow: 0 0 0 3px #fce7ed; }
.field small, .form-note { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.field-error { display: block; margin-top: 6px; color: var(--danger); font-size: 13px; }
.form-errors { margin-bottom: 18px; padding: 12px 14px; color: var(--danger); background: #fff0ee; border-radius: 10px; }
.form-errors ul { margin: 0; padding-left: 18px; }

.messages { display: grid; gap: 10px; margin-bottom: 20px; }
.message { padding: 13px 16px; border-radius: 11px; border: 1px solid var(--line); background: white; }
.message-success { color: var(--success); border-color: #a7dec5; background: #effaf5; }
.message-error { color: var(--danger); border-color: #f1b9b3; background: #fff3f1; }
.message-warning { color: var(--warning); border-color: #efd89b; background: #fff9e8; }

.empty-state { margin-top: 38px; padding: 70px 24px; text-align: center; border: 1px dashed #d6d9e0; border-radius: 22px; background: white; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 18px; color: white; background: var(--accent); font-weight: 800; }
.empty-state h2 { margin: 0 0 10px; }
.empty-state p { margin: 0; color: var(--muted); }

.order-shell { display: grid; gap: 22px; }
.order-status { display: flex; align-items: center; gap: 18px; padding: 28px 32px; border-radius: 22px; color: white; }
.status-paid { background: linear-gradient(135deg, #10744d, #19a56f); }
.status-pending { background: linear-gradient(135deg, #8c5b08, #d08a13); }
.status-expired, .status-failed { background: linear-gradient(135deg, #8f2f2a, #c4473f); }
.status-icon { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 16px; background: rgba(255,255,255,.18); font-size: 28px; font-weight: 900; }
.order-status .eyebrow { color: rgba(255,255,255,.72); }
.order-status h1 { margin: 5px 0 0; font-size: 28px; }
.order-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.order-card, .secrets-card { padding: 28px; }
.order-card h2 { margin: 0 0 20px; }
.order-card p { color: var(--muted); line-height: 1.7; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
dl div:last-child { border-bottom: 0; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-weight: 650; overflow-wrap: anywhere; }
dd button, .query-code button, .secret-row button {
  margin-left: 8px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; color: #4b5563; background: white; cursor: pointer;
}
.query-code { margin: 20px 0; padding: 17px; border: 1px dashed #e597ab; border-radius: 12px; color: var(--accent-dark); background: #fff6f8; text-align: center; font: 800 24px ui-monospace, monospace; letter-spacing: .12em; }
.secret-list { display: grid; gap: 10px; }
.secret-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.secret-row code { min-width: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 750; }
.narrow-card { width: min(560px, 100%); margin: 30px auto; padding: 34px; }
.narrow-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.test-summary { margin: 24px 0; }

.site-footer { border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 13px; }
.site-footer .shell { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-layout, .order-grid { grid-template-columns: 1fr; }
  .hero { align-items: start; flex-direction: column; padding: 34px; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 22px, 1120px); }
  .nav { min-height: 66px; }
  nav a { padding: 8px; font-size: 13px; }
  .brand small { display: none; }
  .page { padding-top: 24px; }
  .hero { padding: 26px 22px; border-radius: 20px; }
  .hero h1 { font-size: 36px; letter-spacing: -1.4px; }
  .product-grid { grid-template-columns: 1fr; }
  .detail-card, .form-card, .order-card, .secrets-card, .narrow-card { padding: 22px; border-radius: 18px; }
  .assurances { grid-template-columns: 1fr; }
  .product-card { min-height: 0; }
  .order-status { padding: 22px; }
  .order-status h1 { font-size: 22px; }
  dl div { align-items: flex-start; flex-direction: column; gap: 4px; }
  dd { text-align: left; }
  .secret-row { align-items: stretch; flex-direction: column; }
  .secret-row button { margin-left: 0; }
  .site-footer .shell { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
}

