:root {
  --ink: #07131a;
  --ink-soft: #102530;
  --paper: #f6f1e8;
  --paper-2: #fffdf8;
  --line: #d9d1c4;
  --muted: #6e756f;
  --accent: #df5a31;
  --accent-dark: #b83e20;
  --gold: #d7ad63;
  --green: #287a59;
  --radius: 22px;
  color-scheme: light;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust:100%; }
body {
  margin: 0; color: var(--ink); min-height: 100vh;
  padding-left:env(safe-area-inset-left, 0px); padding-right:env(safe-area-inset-right, 0px);
  background: radial-gradient(circle at 20% 0%, rgba(215, 173, 99, .16), transparent 34rem), var(--paper);
}
button, input, textarea, select { font: inherit; }
input:not([type="checkbox"]), textarea, select { font-size:16px; min-width:0; }
button:focus-visible, a:focus-visible { outline:3px solid var(--accent-dark); outline-offset:3px; }
[hidden] { display:none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .68; }

.topbar { width:min(1120px, calc(100% - 32px)); min-height:76px; margin:0 auto; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:24px; align-items:center; }
.merchant-contact { min-width:0; display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:4px 10px; line-height:1.5; padding:8px 0; }
.merchant-contact>span { font-size:.8rem; color:var(--muted); }
.merchant-contact a { color:var(--ink); font-weight:700; overflow-wrap:anywhere; text-decoration:none; }
.merchant-contact a[href] { min-height:44px; display:inline-flex; align-items:center; }
.merchant-contact a[href]:hover { color:var(--accent-dark); text-decoration:underline; }
.brand-mark { overflow:hidden; }
.brand-mark img { width:100%; height:100%; object-fit:contain; background:#fff; }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; min-width:0; }
.brand>span:last-child { min-width:0; overflow-wrap:anywhere; }
.brand-mark,.order-link { flex-shrink:0; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff7e9; background: var(--ink); font-family: serif; font-size: 24px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.brand b, .brand small { display: block; }
.brand b { font-family: "STSong", "Songti SC", serif; font-size: 1.15rem; letter-spacing: .08em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: .75rem; letter-spacing: .12em; }
.order-link { color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding: 8px 0; }

.customer-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto 56px; }
.hero { position: relative; min-height: 390px; border-radius: 32px; overflow: hidden; isolation: isolate; background: var(--ink); box-shadow: 0 28px 80px rgba(7,19,26,.18); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,14,21,.96) 0%, rgba(4,14,21,.74) 44%, rgba(4,14,21,.06) 78%); }
.hero-copy { width: min(530px, 62%); padding: 76px 64px; color: #fff; }
.eyebrow { color: var(--gold); letter-spacing: .2em; font-size: .82rem; }
.eyebrow.dark { color: var(--accent-dark); }
h1 { margin: 18px 0 16px; font-family: "STSong", "Songti SC", serif; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.08; font-weight: 600; letter-spacing: .03em; }
.hero p { margin: 0; max-width: 32rem; color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.8; }

.workbench { position: relative; width: min(820px, calc(100% - 48px)); margin: -54px auto 0; background: var(--paper-2); border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(20,31,34,.16); overflow: hidden; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: #eee8de; color: var(--muted); padding: 18px; cursor: pointer; font-weight: 700; }
.tab.is-active { color: var(--accent-dark); background: var(--paper-2); box-shadow: inset 0 -3px 0 var(--accent); }
.panel { padding: 34px 40px 40px; }
.panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 26px; }
.panel-heading > div { display: flex; align-items: center; gap: 12px; }
.panel-heading h2 { margin: 0; font-family: "STSong", "Songti SC", serif; font-size: 1.55rem; }
.panel-heading p { margin: 0; color: var(--muted); font-size: .88rem; }
.step { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.card-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 14px; align-items: end; }
label,.panel-heading>div { min-width:0; }
label { display: grid; gap: 9px; font-size: .86rem; font-weight: 700; }
input:not([type="checkbox"]), textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); padding: 0 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:not([type="checkbox"]), select { height: 50px; }
textarea { padding-top: 13px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(223,90,49,.12); }
select:disabled { color: var(--muted); background: #f2eee6; cursor: not-allowed; }
.primary { min-height: 50px; border: 0; border-radius: 12px; padding: 0 22px; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); font-weight: 800; box-shadow: 0 10px 24px rgba(184,62,32,.22); }
.text-button { border: 0; background: none; padding: 6px 0; color: var(--accent-dark); cursor: pointer; }
.form-note { margin: 18px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.feedback { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: #fff1e8; color: #9a321c; font-size: .88rem; }
.feedback.success { color: #176244; background: #e8f5ee; }
.spec-card { display: grid; grid-template-columns: 150px minmax(0,1fr); gap:16px 22px; align-items: center; padding: 14px; border-radius: 16px; background: #f1eadf; overflow-wrap:anywhere; }
.customer-spec-facts { grid-column:1/-1; margin:0; padding:14px; display:grid; gap:10px; border-radius:10px; background:var(--paper-2); }
.customer-spec-facts>div { display:grid; grid-template-columns:5em minmax(0,1fr); gap:12px; font-size:.94rem; line-height:1.6; }
.customer-spec-facts dt { color:var(--muted); }
.customer-spec-facts dd { margin:0; font-weight:700; text-align:right; }
.spec-card .spec-description { grid-column:1/-1; margin:0; white-space:pre-wrap; line-height:1.7; }
.spec-card img { width: 150px; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.spec-card span, .spec-card small { color: var(--muted); font-size: .78rem; }
.spec-card h3 { margin: 7px 0; font-family: "STSong", "Songti SC", serif; font-size: 1.35rem; }
.spec-card p { margin: 0 0 6px; color: #4e5956; font-size: .9rem; }
.address-form { margin-top: 26px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid .wide { grid-column: 1 / -1; }
.region-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.region-help { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.privacy-check { display: flex; grid-template-columns: auto 1fr; align-items: flex-start; gap: 10px; margin: 18px 0; font-weight: 400; color: var(--muted); line-height: 1.6; }
.privacy-check input { margin-top: 4px; accent-color: var(--accent); }
.privacy-check a, footer a { color: var(--accent-dark); }
.submit-order { width: 100%; }
.success-state { text-align: center; padding: 24px 0 8px; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 2rem; }
.success-state h2 { font-family: "STSong", "Songti SC", serif; font-size: 2rem; margin: 8px 0 18px; }
.muted { color: var(--muted); }
.order-result { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.order-result > div { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(223,90,49,.12); }
.order-result dl { margin: 0; display: grid; gap: 10px; }
.order-result dl div { display: grid; grid-template-columns: 90px 1fr; border-top: 1px solid #eee7dd; padding-top: 10px; }
.order-result dt { color: var(--muted); }
.order-result dd { margin:0; min-width:0; overflow-wrap:anywhere; line-height:1.65; }
.assurance { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 42px auto 0; max-width: 900px; background: var(--line); border: 1px solid var(--line); }
.assurance div { display: grid; gap: 6px; padding: 22px 26px; background: var(--paper); }
.assurance b { font-family: "STSong", "Songti SC", serif; }
.assurance span { color: var(--muted); font-size: .82rem; }
footer { padding:26px 16px max(28px, env(safe-area-inset-bottom)); color:var(--muted); text-align:center; font-size:.8rem; line-height:1.7; overflow-wrap:anywhere; }

@media (max-width: 760px) {
  .topbar, .customer-shell { width: min(100% - 24px, 620px); }
  .topbar { min-height:68px; grid-template-columns:minmax(0,1fr) auto; gap:0 14px; padding-top:env(safe-area-inset-top, 0px); }
  .topbar .brand { grid-column:1; grid-row:1; min-height:64px; }
  .topbar .order-link { grid-column:2; grid-row:1; }
  .merchant-contact { grid-column:1/-1; grid-row:2; justify-content:flex-start; padding:0 0 6px; font-size:.9rem; }
  .order-link { font-size:.88rem; min-height:44px; display:flex; align-items:center; }
  .hero { min-height:0; border-radius:18px; }
  .hero img { object-position: 66% center; }
  .hero::after { background:linear-gradient(90deg,rgba(4,14,21,.9),rgba(4,14,21,.65)); }
  .hero-copy { width:100%; position:relative; padding:26px 22px; overflow-wrap:anywhere; }
  h1 { font-size:clamp(1.8rem,7vw,2.4rem); max-width:12em; line-height:1.25; margin:12px 0; }
  .hero p { font-size:.9rem; line-height:1.65; }
  .eyebrow { font-size:.75rem; letter-spacing:.1em; }
  .workbench { width:100%; margin-top:14px; border-radius:18px; }
  .panel { padding:22px 18px 26px; }
  .panel-heading { align-items:center; flex-wrap:wrap; gap:8px 12px; margin-bottom:18px; }
  .panel-heading h2 { font-size:1.3rem; line-height:1.4; }
  .panel-heading p { font-size:.82rem; line-height:1.6; }
  .card-form, .field-grid { grid-template-columns: 1fr; }
  .field-grid .wide { grid-column: auto; }
  .region-fields { grid-template-columns: 1fr; }
  .primary { width: 100%; margin-top: 4px; }
  .spec-card { grid-template-columns:80px minmax(0,1fr); gap:12px; padding:12px; }
  .spec-card img { width:80px; }
  .spec-card h3 { font-size:1.2rem; line-height:1.4; }
  .spec-card small { display:block; line-height:1.6; }
  .customer-spec-facts { padding:12px; }
  .field-grid { gap:18px; }
  .text-button { min-height:44px; padding:10px 4px; }
  .privacy-check { padding:8px 0; }
  .privacy-check input { width:22px; height:22px; flex-shrink:0; margin:2px 0 0; }
  .order-result { padding:16px; }
  .order-result dl div { grid-template-columns:72px minmax(0,1fr); gap:8px; font-size:.9rem; }
  .order-result dl .order-spec-row { grid-template-columns:minmax(0,1fr); gap:6px; }
  .success-state { overflow-wrap:anywhere; }
  .success-state h2 { font-size:1.6rem; }
  .tracking-panel button { width:100%; min-height:48px; }
  .assurance { grid-template-columns:1fr; margin-top:24px; }
  .assurance div { padding:14px 18px; }
}
@media (max-width:360px) {
  .panel { padding:20px 14px 24px; }
  .brand { gap:8px; }
  .brand b { font-size:1rem; letter-spacing:0; }
  .order-result dl div { grid-template-columns:minmax(0,1fr); gap:4px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
