/* BeltRoad Cargo — beltroadcargo.com · brand per CI v1.0 */
:root {
  --ink: #0B0F13;
  --ink-800: #131A22;
  --surface: #0E1319;
  --border: #1D242D;
  --border-2: #2A3340;
  --porcelain: #F2EFE7;
  --steel: #A8AFB9;
  --muted: #6E7682;
  --cinnabar: #D6482F;
  --cinnabar-hi: #E0563A;
  --rail: #E0563A;
  --mid: #D9A13E;
  --sea: #3FA8B8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--porcelain);
  font-family: Archivo, 'Noto Sans SC', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--cinnabar-hi); text-decoration: none; }
a:hover { color: var(--porcelain); }
.zh { font-family: 'Noto Sans SC', sans-serif; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,15,19,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; padding-top: 13px; padding-bottom: 13px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--porcelain); }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .18em; }
.brand-slogan { font-size: 8.5px; font-weight: 600; letter-spacing: .24em; color: var(--steel); white-space: nowrap; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav a { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--steel); }
.nav a:hover { color: var(--porcelain); }
.brand-name .rmark { font-size: .62em; vertical-align: super; letter-spacing: 0; margin-left: 1px; }

/* account area: sign in / sign up in the header */
.nav-account { display: flex; align-items: center; gap: 10px; }
.nav-account .sep { width: 1px; height: 18px; background: var(--border-2); }
.link-signin {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--steel);
  background: none; border: 0; font-family: inherit; cursor: pointer; padding: 0;
  transition: color .15s;
}
.link-signin:hover { color: var(--porcelain); }
.btn-signup { padding: 9px 16px; font-size: 12px; }
.account-chip {
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; color: var(--porcelain); background: var(--ink-800);
  border: 1px solid var(--border-2); border-radius: 7px; padding: 7px 12px;
  cursor: pointer; font-family: inherit; transition: border-color .15s;
}
.account-chip:hover { border-color: var(--cinnabar); }
.account-chip .avatar {
  width: 20px; height: 20px; border-radius: 50%; background: var(--cinnabar);
  color: var(--porcelain); display: grid; place-items: center; font-size: 10px; font-weight: 700;
}

/* ---------- modal (sign in / sign up / live quotation) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(6,9,12,.72);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px;
  overflow-y: auto;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px;
  width: 100%; max-width: 460px; padding: 30px 32px; position: relative;
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.modal.wide { max-width: 660px; }
.modal h3 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.modal .modal-sub { margin: 0 0 22px; font-size: 13px; line-height: 1.6; color: var(--steel); }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  background: none; border: 1px solid var(--border-2); border-radius: 7px;
  color: var(--steel); font: 600 15px/1 Archivo, sans-serif; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.modal-close:hover { border-color: var(--cinnabar); color: var(--porcelain); }
.modal .btn { width: 100%; text-align: center; }
.modal-alt { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.modal-alt button {
  background: none; border: 0; font: inherit; font-weight: 600; color: var(--cinnabar-hi);
  cursor: pointer; padding: 0;
}
.modal-alt button:hover { color: var(--porcelain); }

/* live quotation */
.lq-summary {
  background: var(--ink-800); border: 1px solid #242D37; border-radius: 10px;
  padding: 16px 18px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px;
}
.lq-summary .lq-route { font-size: 15px; font-weight: 600; }
.lq-summary .lq-figures { display: flex; gap: 24px; flex-wrap: wrap; font-size: 12.5px; color: var(--steel); }
.lq-summary .lq-figures b { color: var(--porcelain); font-weight: 600; }
.lq-note { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin: 14px 0 0; }

.btn {
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  border-radius: 7px; padding: 11px 20px; cursor: pointer; transition: background .15s, border-color .15s;
  display: inline-block;
}
.btn-primary { background: var(--cinnabar); color: var(--porcelain); border: 0; }
.btn-primary:hover { background: var(--cinnabar-hi); color: var(--porcelain); }
.btn-ghost { background: none; color: var(--porcelain); border: 1px solid var(--border-2); }
.btn-ghost:hover { border-color: var(--cinnabar); color: var(--porcelain); }
.nav .btn { padding: 9px 16px; font-size: 12px; }
.lang-sel {
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  background: var(--ink-800); color: var(--porcelain);
  border: 1px solid var(--border-2); border-radius: 7px; padding: 8px 10px;
  cursor: pointer; outline: none; transition: border-color .15s;
}
.lang-sel:hover, .lang-sel:focus { border-color: var(--cinnabar); }

/* ---------- hero ---------- */
.hero { padding: 92px 0 64px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-bg path { opacity: .13; }
.hero-bg .hb-ends { opacity: .35; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg .hb-mover { display: none; }
}
.hero::after {
  content: ''; position: absolute; right: -14%; top: -40%; width: 55%; aspect-ratio: 1;
  border-radius: 50%; border: 1.5px solid var(--border-2); pointer-events: none;
}
.hero::before {
  content: ''; position: absolute; right: -6%; top: -22%; width: 38%; aspect-ratio: 1;
  border-radius: 50%; border: 1.5px solid var(--cinnabar); opacity: .45; pointer-events: none;
}
.hero h1 { margin: 28px 0 0; font-size: clamp(40px, 6vw, 62px); font-weight: 700; letter-spacing: .05em; line-height: 1.08; }
.hero .slogan { font-size: 15px; font-weight: 600; letter-spacing: .34em; color: var(--steel); margin-top: 14px; }
.hero p.lead { max-width: 580px; font-size: 16px; line-height: 1.7; color: var(--steel); margin: 30px 0 0; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.hero-stats .stat span { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.sec-head .num { font-size: 13px; font-weight: 700; color: var(--cinnabar); }
.sec-head h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.sec-sub { font-size: 14px; color: var(--steel); max-width: 640px; margin: 0 0 36px; line-height: 1.7; }

/* ---------- globe / network ---------- */
.globe-frame {
  display: grid; grid-template-columns: 1fr 330px; min-height: 620px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.globe-stage { position: relative; min-width: 0; background: radial-gradient(ellipse 90% 90% at 50% 45%, #10161E 0%, #0B0F13 70%); }
.globe-stage brc-globe { position: absolute; inset: 0; }
.globe-legend {
  position: absolute; left: 16px; bottom: 12px; display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 10.5px; color: var(--muted); pointer-events: none; max-width: 90%;
}
.globe-legend span { display: flex; align-items: center; gap: 6px; }
.lg-swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.lg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; box-sizing: border-box; }

.globe-side { border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.side-block { padding: 18px 20px 8px; }
.side-label { font-size: 11px; font-weight: 600; letter-spacing: .22em; color: var(--muted); margin-bottom: 12px; }

.corridor-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--ink-800); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; cursor: pointer; font-family: inherit;
  transition: opacity .2s, border-color .2s; margin-bottom: 8px;
}
.corridor-btn:hover { border-color: #3A4552; }
.corridor-btn.on { border-color: rgba(255,255,255,.14); }
.corridor-btn.off { opacity: .42; }
.corridor-swatch { width: 20px; border-top: 3px solid; flex: none; }
.corridor-btn .c-label { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.corridor-btn .c-label b { font-size: 13px; font-weight: 600; color: var(--porcelain); }
.corridor-btn .c-label i { font-style: normal; font-size: 11px; color: var(--muted); }
.corridor-btn .c-state { font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--steel); }
.corridor-btn.off .c-state { color: #4A525D; }

.port-detail-empty {
  border: 1px dashed var(--border-2); border-radius: 10px; padding: 22px 18px;
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
}
.port-detail {
  background: var(--ink-800); border: 1px solid #242D37; border-radius: 10px; padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.port-detail .pd-head { display: flex; align-items: center; gap: 10px; }
.pd-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; box-sizing: content-box; border: 2px solid; }
.pd-name { font-size: 17px; font-weight: 600; }
.pd-zh { font-size: 13px; color: var(--steel); }
.pd-kicker { font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-bottom: 2px; }
.pd-days { font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.pd-via { font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.pd-note { font-size: 12.5px; line-height: 1.55; color: var(--steel); }
.pd-foot { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.side-foot { margin-top: auto; padding: 14px 20px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); line-height: 1.6; }

/* ---------- calculator ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px 30px;
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14px; color: var(--porcelain);
  background: var(--ink-800); border: 1px solid var(--border-2); border-radius: 7px;
  padding: 11px 13px; outline: none; transition: border-color .15s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cinnabar); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

.calc-result { display: flex; flex-direction: column; gap: 0; }
.calc-result .cr-corridor { font-size: 11px; font-weight: 600; letter-spacing: .08em; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.cr-swatch { width: 20px; border-top: 3px solid; display: inline-block; }
.cr-route { font-size: 17px; font-weight: 600; margin-bottom: 22px; }
.cr-route .zh { color: var(--steel); font-size: 13px; font-weight: 500; }
.cr-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cr-metric { background: var(--ink-800); border: 1px solid #242D37; border-radius: 10px; padding: 16px 18px; }
.cr-metric .k { font-size: 10px; letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; }
.cr-metric .v { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.cr-metric .u { font-size: 12px; color: var(--steel); }
.cr-total { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cr-total .k { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.cr-total .v { font-size: 30px; font-weight: 700; }
.cr-note { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--steel); }
.cr-disclaimer { margin-top: 14px; font-size: 11px; color: var(--muted); }
.cr-empty { color: var(--muted); font-size: 13px; line-height: 1.7; padding: 8px 0; }
.cr-quote { margin-top: 18px; width: 100%; text-align: center; }

/* ---------- corridor cards ---------- */
.corridor-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.corridor-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px 28px; }
.corridor-card .cc-swatch { width: 44px; border-top: 4px solid; display: block; margin-bottom: 16px; }
.corridor-card.candidate .cc-swatch { border-top-style: dashed; }
.corridor-card h3 { margin: 0; font-size: 17px; font-weight: 600; }
.corridor-card .cc-zh { font-size: 12px; color: var(--muted); margin-top: 2px; }
.corridor-card p { font-size: 13px; line-height: 1.7; color: var(--steel); margin: 14px 0 0; }
.corridor-card .cc-days { margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: .06em; }

/* ---------- forms ---------- */
.forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.form-msg { display: none; margin-top: 4px; font-size: 13px; line-height: 1.6; border-radius: 7px; padding: 12px 14px; }
.form-msg.ok { display: block; background: rgba(63,168,184,.1); border: 1px solid rgba(63,168,184,.4); color: #9FD4DC; }
.form-msg.err { display: block; background: rgba(214,72,47,.1); border: 1px solid rgba(214,72,47,.45); color: #F0A093; }
.card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.card .card-sub { font-size: 13px; color: var(--steel); margin: 0 0 22px; line-height: 1.6; }
.newsletter-row { display: flex; gap: 10px; }
.newsletter-row input { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 22px; }

/* ---------- footer ---------- */
.site-footer { padding: 36px 0 44px; }
.site-footer .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.site-footer .spacer { flex: 1; }
.site-footer a { font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .globe-frame { grid-template-columns: 1fr; }
  .globe-stage { min-height: 440px; }
  .globe-side { border-left: 0; border-top: 1px solid var(--border); }
  .calc-grid, .forms-grid, .corridor-cards { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
}
