:root {
  color-scheme: light;
  --ink: #152238;
  --muted: #687386;
  --surface: #ffffff;
  --soft: #f3f6fa;
  --line: #dce3ec;
  --accent: #1473e6;
  --accent-dark: #0c55ad;
  --success: #087f5b;
  --warning: #a15c00;
  --shadow: 0 12px 36px rgba(24, 42, 70, .09);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--soft);
}
button, input, textarea { font: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  padding: 54px 0 34px;
  color: white;
  background:
    radial-gradient(circle at 90% 10%, rgba(77, 169, 255, .35), transparent 32%),
    linear-gradient(135deg, #0a1930, #143a6d 66%, #176ac2);
}
.eyebrow, .section-kicker {
  margin: 0 0 8px;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 800;
}
.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.8rem); }
.intro { max-width: 620px; margin: 12px 0 22px; color: #dfeeff; line-height: 1.7; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #cce2ff; font-size: .9rem; }
button {
  border: 0;
  border-radius: 10px;
  padding: 11px 17px;
  font-weight: 750;
  cursor: pointer;
  color: white;
  background: var(--accent);
}
button:hover { background: var(--accent-dark); }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { padding: 8px 13px; color: white; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); }
main { padding: 28px 0 56px; }
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 38px;
}
.summary article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.summary strong { display: block; font-size: 2rem; }
.summary span { color: var(--muted); font-size: .88rem; }
section + section { margin-top: 52px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.section-kicker { color: var(--accent); }
.section-heading h2 { margin: 0; font-size: 1.55rem; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.image-wrap { position: relative; min-height: 210px; display: grid; place-items: center; background: #e8edf4; overflow: hidden; }
.product-image { width: 100%; height: 260px; object-fit: contain; background: white; display: none; }
.image-placeholder { font-weight: 900; letter-spacing: .12em; color: #96a1b2; }
.status-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 7px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 800;
  background: rgba(21,34,56,.9); color: white;
}
.product-body { padding: 20px; }
.product-title-row { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.model-code { margin: 0 0 5px; font-weight: 900; color: var(--accent); letter-spacing: .04em; }
.product-name { margin: 0; font-size: 1.1rem; }
.price { margin: 0; white-space: nowrap; font-size: 1.25rem; font-weight: 900; }
.facts { margin: 14px 0; color: var(--muted); font-size: .9rem; }
.order-form { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.order-form label { display: grid; gap: 7px; font-size: .86rem; font-weight: 700; }
input, textarea {
  width: 100%; border: 1px solid #cbd4df; border-radius: 10px;
  padding: 11px 12px; color: var(--ink); background: white;
}
input:focus, textarea:focus { outline: 3px solid rgba(20,115,230,.14); border-color: var(--accent); }
textarea { resize: vertical; }
.save-status { min-height: 1.2em; margin: 0; color: var(--success); font-size: .85rem; }
.message, .empty {
  padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white;
}
.message.error { color: #a61b1b; background: #fff0f0; border-color: #ffc9c9; }
footer { padding: 26px 0; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); background: white; }
@media (max-width: 760px) {
  .summary { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-title-row { flex-direction: column; gap: 8px; }
  .hero { padding-top: 38px; }
}
