@charset "UTF-8";
:root {
  color-scheme: dark;
  --ink: #f1f4fb;
  --muted: #acb5ca;
  --blue: #cad1e0;
  --blue-dark: #cad1e0;
  --line: #30394f;
  --surface: #101728;
  --soft: #182034;
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: transparent; }
button:disabled { cursor: not-allowed; opacity: .6; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* 按钮公用类 */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.button-light {
  color: #f1f4fb;
  background: #101728;
  border-color: #77829d;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.button-light:hover { background: #182034; border-color: #acb5ca; }

.button-blue {
  background: var(--blue);
  color: #101728;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}
.button-blue:hover { background: var(--blue-dark); }

.button-outline {
  background: transparent;
  border-color: #77829d;
  color: #cad1e0;
}
.button-outline:hover { background: #182034; }

.button-small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
}

/* 面板卡片 */
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.page-heading {
  padding: 40px 0 24px;
}
.page-heading .back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.page-heading .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue);
}
.page-heading h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 6px 0;
}
.page-heading p {
  color: var(--muted);
  font-size: 14px;
}

/* 下单与结账布局 */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  align-items: start;
  gap: 28px;
  margin-bottom: 64px;
}

.section-heading {
  display: flex;
  gap: 10px;
  align-items: center;
}
.section-heading h2 {
  font-size: 17px;
  font-weight: 700;
}
.form-number {
  width: 24px;
  height: 24px;
  display: grid;
  place-content: center;
  border-radius: 6px;
  background: #182034;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.section-copy {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.section-spaced {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all 0.15s ease;
}
.choice:has(input:checked) {
  border-color: var(--blue);
  background: #182034;
}
.choice strong {
  font-size: 13px;
  display: block;
}
.choice small {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.field-label {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #cad1e0;
}
.field-label span {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}
.form-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #101728;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.form-input:focus {
  border-color: var(--blue);
}
.field-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* 订单摘要侧栏 */
.order-summary {
  padding: 24px;
  background: #182034;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.summary-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.summary-product {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}
.product-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  border-radius: 10px;
  background: #182034;
  color: var(--blue);
  font-weight: 800;
  font-size: 18px;
}
.summary-product h2 {
  font-size: 16px;
  font-weight: 700;
}
.summary-product p {
  font-size: 12px;
  color: var(--muted);
}
.order-summary dl {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.order-summary dl div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.order-summary dt { color: var(--muted); }
.order-summary dd { margin: 0; font-weight: 500; }
.summary-total {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.summary-total strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* 状态标签 */
.status-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.status-tag.blue { background: #182034; color: #cad1e0; }
.status-tag.green { background: #182034; color: #16a34a; }
.status-tag.amber { background: #fffbeb; color: #d97706; }
.status-tag.red { background: #182034; color: #dc2626; }
.status-tag.muted { background: #182034; color: #acb5ca; }

/* 订单行与列表 */
.order-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-top: 20px;
}
.order-tabs button {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 6px;
  color: var(--muted);
}
.order-tabs button.selected {
  background: #182034;
  color: var(--blue);
  font-weight: 600;
}
.order-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 8px;
  border-bottom: 1px solid #182034;
  transition: background 0.15s;
}
.order-row:hover {
  background: #182034;
}
.order-product-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-content: center;
  background: #182034;
  color: var(--blue);
  font-weight: 700;
  border-radius: 8px;
}
.order-info { flex: 1; min-width: 0; }
.order-info strong { font-size: 14px; display: block; }
.order-info span { font-size: 12px; color: var(--muted); }
.order-amount { text-align: right; font-size: 14px; font-weight: 600; }
.order-amount small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; }

/* 详情时间轴 */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}
.timeline-step::before {
  content: "";
  position: absolute;
  left: -50%;
  right: 50%;
  top: 12px;
  height: 2px;
  background: #30394f;
  z-index: 0;
}
.timeline-step:first-child::before { display: none; }
.timeline-step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #182034;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-content: center;
  position: relative;
  z-index: 1;
}
.timeline-step.done span {
  background: var(--blue);
  color: #101728;
}
.timeline-step strong {
  font-size: 12px;
  margin-top: 6px;
  color: var(--muted);
}
.timeline-step.done strong {
  color: var(--ink);
}
.timeline-step small {
  font-size: 10px;
  color: #acb5ca;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #f1f4fb;
  color: #101728;
  border-radius: 8px;
  padding: 10px 18px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
  z-index: 99;
  font-size: 13px;
}