/* ==========================================================================
   基础与组件样式
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-strong);
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  font-weight: 680;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }

p { margin: 0; }

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover { color: var(--blue-500); }

ul, ol { margin: 0; padding-left: 1.15rem; }

img, svg { display: block; max-width: 100%; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--silver-100);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ---------- 布局 ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--sp-8) 0; }
.section--tight { padding: var(--sp-7) 0; }
.section--muted {
  background: #f3f6fc;
  border-top: 1px solid var(--silver-200);
  border-bottom: 1px solid var(--silver-200);
}
.section--dark {
  background: linear-gradient(160deg, var(--ink-900), var(--navy-700));
  color: var(--text-invert);
}
.section--dark h2,
.section--dark h3 { color: #ffffff; }

.stack { display: grid; gap: var(--sp-4); }
.stack--lg { gap: var(--sp-6); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--sp-6);
}

.section-head p {
  margin-top: var(--sp-3);
  color: var(--text-muted);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}

/* 标题下的冷金短线：全站统一的品牌记号 */
.section-head h2::after,
.page-head h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: var(--sp-3);
  background: linear-gradient(90deg, var(--gold-400), rgba(201, 162, 39, 0));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--sp-3);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold-400);
}

.section--dark .eyebrow,
.hero .eyebrow { color: var(--gold-300); }

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(8, 14, 28, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.34);
}

/* 顶部一条冷金细线：品牌识别，不占视觉重量 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--gold-500),
    var(--gold-300) 42%,
    var(--blue-400) 100%
  );
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 750;
  font-size: var(--fs-lg);
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand:hover { color: #ffffff; }

.brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(150deg, var(--blue-500), var(--navy-500));
  border: 1px solid rgba(221, 188, 85, 0.45);
  display: grid;
  place-items: center;
  color: var(--gold-300);
  font-size: 13px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-left: auto;
}

.nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  font-weight: 550;
}

.nav a:hover { color: #ffffff; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.site-header .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

.site-header .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.42);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 620;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--navy-600);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.btn--primary:hover {
  background: var(--navy-700);
  color: #ffffff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-body);
  border-color: var(--silver-300);
}

.btn--ghost:hover {
  border-color: var(--silver-400);
  background: var(--silver-50);
}

.btn--gold {
  background: var(--gold-400);
  color: var(--ink-900);
}

.btn--gold:hover { background: var(--gold-300); color: var(--ink-900); }

.btn--lg { padding: 0.9rem 1.5rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  /* 首屏要「撑起来」：上下留白用视口单位做两端夹紧，窄屏不至于过高。 */
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem);
  color: var(--text-invert);
  background:
    radial-gradient(1180px 620px at 16% -12%, rgba(43, 84, 164, 0.62) 0%, transparent 64%),
    radial-gradient(900px 520px at 88% 10%, rgba(201, 162, 39, 0.22) 0%, transparent 60%),
    linear-gradient(168deg, var(--ink-900) 0%, var(--navy-800) 46%, var(--navy-600) 100%);
  overflow: hidden;
}

/* 细网格纹理，给深色区一点质感，不用图片 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero .eyebrow {
  color: var(--gold-300);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #ffffff;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-300);
}

.hero__sub {
  margin: var(--sp-5) auto 0;
  max-width: 720px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #b3c0d6;
  line-height: var(--lh-snug);
}

/* 报价输入框：首屏唯一交互，深色背景上的白卡片 */
.quote-box {
  margin: var(--sp-7) auto 0;
  max-width: 840px;
  background: #ffffff;
  border: 1px solid rgba(221, 188, 85, 0.35);
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: var(--sp-3);
  text-align: left;
}

.quote-box__row {
  display: flex;
  gap: var(--sp-2);
}

.quote-box input[type="url"] {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--text-strong);
  background: var(--silver-50);
  transition: border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.quote-box input[type="url"]:focus {
  outline: none;
  border-color: var(--blue-400);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--blue-100);
}

.quote-box input::placeholder { color: var(--silver-500); }

.quote-box__meta {
  margin-top: var(--sp-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.quote-box__hint {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  color: var(--text-muted);
  text-align: left;
}

/* 平台徽标行 */
.platform-row {
  margin-top: var(--sp-5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: #93a3bd;
}

.platform-row span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
}

/* 信任数字 */
.stats {
  margin-top: var(--sp-6);
  display: flex;
  justify-content: center;
  gap: var(--sp-7);
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat__value {
  font-size: var(--fs-xl);
  font-weight: 720;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.stat__label {
  margin-top: 2px;
  font-size: var(--fs-xs);
  color: #8494ae;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- 卡片 ---------- */

.card {
  background: #ffffff;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease);
}

.card--hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--navy-600);
  color: var(--gold-300);
  font-weight: 750;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
  box-shadow: inset 0 0 0 1px rgba(221, 188, 85, 0.35);
}

.card h3 { margin-bottom: var(--sp-2); }

.card p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.card__list {
  margin-top: var(--sp-4);
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-body);
}

.card__list li {
  padding-left: 1.1rem;
  position: relative;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold-400);
}

/* ---------- 步骤 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--sp-5);
  border-top: 2px solid var(--silver-200);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: var(--fs-xs);
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--gold-500);
  margin-bottom: var(--sp-2);
}

.step h3 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }

.step p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-snug);
}

/* ---------- 表格 ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-md);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  background: #ffffff;
}

table.data th,
table.data td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--silver-200);
  vertical-align: top;
}

table.data th {
  background: var(--ink-800);
  font-weight: 650;
  color: #ffffff;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 2px solid var(--gold-400);
}

table.data tr:last-child td { border-bottom: none; }

table.data td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  white-space: nowrap;
}

table.data tr.is-total td {
  background: var(--silver-50);
  font-weight: 700;
  color: var(--text-strong);
  border-top: 2px solid var(--silver-300);
}

/* 深色区块里的表格是白底，文字必须回到深色，否则白底白字 */
.section--dark table.data td,
.section--dark table.data th {
  color: var(--text-body);
}

.section--dark table.data th {
  color: var(--text-strong);
}

.section--dark table.data tr.is-total td {
  color: var(--text-strong);
}

/* ---------- 提示条 ---------- */

.notice {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  border: 1px solid;
}

.notice--info {
  background: var(--blue-100);
  border-color: #cfe0f7;
  color: #1c3d70;
}

.notice--warn {
  background: var(--gold-100);
  border-color: #f0e3b8;
  color: #6d5310;
}

.notice--error {
  background: #fdf0ee;
  border-color: #f3d3ce;
  color: var(--danger);
}

.notice__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: var(--silver-500);
}

.notice--info .notice__icon { background: var(--blue-600); }
.notice--warn .notice__icon { background: var(--warning); }
.notice--error .notice__icon { background: var(--danger); }

.notice strong { font-weight: 680; }

/* ---------- 徽标 ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 650;
  background: var(--silver-100);
  color: var(--text-muted);
}

.badge--gold { background: var(--gold-100); color: var(--gold-600); }
.badge--blue { background: var(--blue-100); color: var(--navy-600); }
.badge--green { background: #e8f5ef; color: var(--success); }

/* ---------- 表单 ---------- */

.field { display: grid; gap: var(--sp-2); }

.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-strong);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--silver-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--fs-sm);
  color: var(--text-strong);
  background: #ffffff;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.checkline {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--text-body);
}

.checkline input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 16px;
  height: 16px;
  accent-color: var(--blue-500);
  flex: 0 0 auto;
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--ink-900);
  color: #9aa7bd;
  padding: var(--sp-7) 0 var(--sp-5);
  font-size: var(--fs-sm);
  border-top: 3px solid var(--gold-500);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-6);
}

.site-footer h4 {
  color: #ffffff;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}

.site-footer a { color: #9aa7bd; }
.site-footer a:hover { color: #ffffff; }

.site-footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-2);
}

.footer-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: var(--fs-base);
  margin-bottom: var(--sp-2);
}

.footer-note {
  line-height: var(--lh-snug);
  font-size: var(--fs-xs);
  color: #7d8aa1;
  max-width: 34ch;
}

.footer-disclaimer {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  color: #7d8aa1;
}

.footer-bottom {
  margin-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: #6b7891;
}

/* ---------- 页面标题区 ---------- */

.page-head {
  position: relative;
  padding: var(--sp-7) 0 var(--sp-6);
  border-bottom: 3px solid var(--gold-500);
  color: #b9c6da;
  background:
    radial-gradient(760px 320px at 12% -20%, rgba(46, 90, 172, 0.42) 0%, transparent 64%),
    linear-gradient(150deg, var(--ink-900) 0%, var(--navy-700) 58%, var(--navy-600) 100%);
  overflow: hidden;
}

.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 22% 0%, #000 0%, transparent 74%);
  pointer-events: none;
}

.page-head .container { position: relative; z-index: 1; }

.page-head h1 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.025em;
  color: #ffffff;
}

.page-head p {
  margin-top: var(--sp-3);
  max-width: 640px;
  color: #b3c0d6;
}

.breadcrumb {
  display: flex;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: #8fa3c4;
  margin-bottom: var(--sp-3);
}

.breadcrumb a { color: #a9b8d0; }
.breadcrumb a:hover { color: var(--gold-300); }
.breadcrumb span { color: #64758f; }

/* ---------- 结账与订单查询 ---------- */

.card--brand {
  border-left: 4px solid var(--gold-400);
  background: linear-gradient(180deg, #ffffff, #f7f9fd);
  box-shadow: var(--shadow-sm);
}

.order-no {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-700);
  word-break: break-all;
}

/* 渠道选择行 */
.choice {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--silver-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}

.choice:hover {
  border-color: var(--blue-400);
  background: var(--silver-50);
}

.choice:has(input:checked) {
  border-color: var(--navy-600);
  background: #f5f8fd;
  box-shadow: inset 0 0 0 1px var(--navy-600);
}

.choice input[type="checkbox"],
.choice input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy-600);
  flex: 0 0 auto;
}

.choice__body {
  display: grid;
  gap: 2px;
}

.choice__title {
  font-weight: 640;
  color: var(--text-strong);
}

.choice__meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.choice__price {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy-700);
  white-space: nowrap;
}

.field input:disabled {
  background: var(--silver-100);
  color: var(--text-muted);
}

/* 订单进度 */
.progress {
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0 0;
  display: flex;
}

.progress__step {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  text-align: center;
  padding: var(--sp-4) var(--sp-1) 0;
  border-top: 3px solid var(--silver-200);
}

.progress__step.is-done { border-top-color: var(--navy-600); }
.progress__step.is-current { border-top-color: var(--gold-400); }

.progress__dot {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--silver-300);
  border: 2px solid #ffffff;
}

.is-done .progress__dot {
  background: var(--navy-600);
  box-shadow: 0 0 0 1px var(--navy-600);
}

.is-current .progress__dot {
  background: var(--gold-400);
  box-shadow: 0 0 0 1px var(--gold-400);
}

.progress__label {
  display: block;
  font-size: var(--fs-xs);
  line-height: 1.25;
  color: var(--text-muted);
}

.is-done .progress__label {
  color: var(--text-strong);
  font-weight: 600;
}

/* 状态时间线 */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-4);
}

.timeline__item {
  position: relative;
  padding-left: var(--sp-5);
  display: grid;
  gap: 2px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
}

.timeline__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 1.1em;
  bottom: -1em;
  width: 1px;
  background: var(--silver-300);
}

.timeline__time {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.timeline__label {
  font-size: var(--fs-sm);
  font-weight: 640;
  color: var(--text-strong);
}

.timeline__note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.steps--compact { gap: var(--sp-3); }

/* ---------- 关键词选品 ---------- */

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: flex-end;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--silver-200);
}

.product {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4);
}

.product__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--silver-100);
  border: 1px solid var(--silver-200);
}

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

.product__flag {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 14, 28, 0.84);
  color: var(--gold-300);
  font-size: var(--fs-xs);
  font-weight: 650;
}

.product__title {
  font-size: var(--fs-base);
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product__price {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 720;
  color: var(--navy-700);
}

.product__price-note {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-muted);
}

.product__meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.product__actions {
  margin-top: auto;
  display: grid;
  gap: var(--sp-2);
}

.product__link {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-decoration: underline;
}

.product__link:hover { color: var(--navy-700); }

.hero__alt {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: #9fb0c9;
}

.hero__alt a {
  color: var(--gold-300);
  text-decoration: underline;
}

/* ---------- 购物车 ---------- */

.cart-list {
  display: grid;
  gap: var(--sp-3);
}

.cart-row {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cart-row__main { min-width: 0; flex: 1 1 320px; }

.cart-row__title {
  font-weight: 600;
  color: var(--text-strong);
  line-height: var(--lh-snug);
}

.cart-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.cart-row__url {
  display: inline-block;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--blue-500);
  word-break: break-all;
}

.cart-row__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.cart-row__actions form { margin: 0; }

/* 令牌链接很长（cart.html?t=…），必须允许任意位置换行，否则整页被撑出
   横向滚动条——实测过：页头都会跟着偏到右边。 */
.cart-list code,
.notice code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

@media (max-width: 620px) {
  .cart-row { align-items: flex-start; }
  .cart-row__actions { width: 100%; }
  .cart-row__actions .btn { flex: 1 1 auto; }
}

/* ---------- 响应式 ---------- */

/* 平板横屏 / 小笔记本：主导航仍显示，但必须收紧间距，
   否则 901–1024px 区间品牌名 + 七个导航项 + 两个按钮会撑破页头 */
@media (max-width: 1080px) {
  .site-header__inner { gap: var(--sp-4); }
  .nav { gap: var(--sp-4); }
  .nav a { font-size: var(--fs-xs); }
  .nav__actions { gap: var(--sp-2); }
}

@media (max-width: 900px) {
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }

  /* 主导航隐藏后，自动外边距失效，这里把按钮组顶到右侧 */
  .nav__actions { margin-left: auto; }
  .site-header__inner { gap: var(--sp-3); }
}

@media (max-width: 620px) {
  :root {
    --fs-4xl: 2.1rem;
    --fs-3xl: 1.8rem;
  }

  /* 窄屏左右留白收窄，给内容多留 16px */
  .container { padding: 0 var(--sp-4); }

  /* 头部：390px 下放不下「Track order + Get a quote」两个按钮，
     隐藏次要入口（页脚仍有 Order lookup），只保留报价 CTA。
     品牌名过长时省略，不允许撑破视口产生横向滚动。 */
  .site-header__inner { gap: var(--sp-2); }

  .brand {
    min-width: 0;
    font-size: var(--fs-base);
  }

  .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav__actions { gap: var(--sp-2); flex: 0 0 auto; }

  .site-header .btn {
    padding: 0.55rem 0.7rem;
    font-size: var(--fs-xs);
  }

  .hero { padding: var(--sp-7) 0 var(--sp-6); }
  .hero__sub { font-size: var(--fs-base); }
  .quote-box { padding: var(--sp-2); }
  .quote-box__meta { gap: var(--sp-2); }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .quote-box__row { flex-direction: column; }
  .quote-box .btn { width: 100%; }

  .stats { gap: var(--sp-4); justify-content: space-between; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .section { padding: var(--sp-7) 0; }

  /* 进度条竖排，避免九个状态挤成一行 */
  .progress {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .progress__step {
    border-top: 0;
    border-left: 3px solid var(--silver-200);
    text-align: left;
    padding: 0 0 0 var(--sp-4);
  }

  .progress__step.is-done { border-left-color: var(--navy-600); }
  .progress__step.is-current { border-left-color: var(--gold-400); }

  .progress__dot {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
  }
}

/* 超窄屏（iPhone SE 一类）：两个按钮会挤掉品牌名，隐藏次要入口；
   页脚 Order lookup 仍可进入查单页 */
@media (max-width: 380px) {
  .site-header .nav__actions .btn--ghost { display: none; }
}

/* ---------- 博客文章排版 ---------- */
.prose {
  max-width: 68ch;
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--text-body);
}
.prose > p { margin: 0 0 var(--sp-4); }
.prose h2 {
  margin: var(--sp-6) 0 var(--sp-3);
  font-size: var(--fs-2xl);
  line-height: 1.25;
  color: var(--text-strong);
}
.prose h3 {
  margin: var(--sp-5) 0 var(--sp-2);
  font-size: var(--fs-xl);
  color: var(--text-strong);
}
.prose ul, .prose ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.2rem;
}
.prose li { margin: 0 0 var(--sp-2); }
.prose a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose strong { color: var(--text-strong); }
.prose blockquote {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--gold-500);
  background: var(--bg-sunken);
}

/* ---------- 阿拉伯语（RTL）最小适配 ---------- */
html[dir="rtl"] body {
  text-align: right;
}
html[dir="rtl"] .site-nav,
html[dir="rtl"] .footer__grid {
  direction: rtl;
}
html[dir="rtl"] .prose ul,
html[dir="rtl"] .prose ol {
  padding-right: 1.2rem;
  padding-left: 0;
}
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  text-align: right;
}
