/* chendel.cn — 青岛洺鑫圣宝国际物流
   Direction: "Trust & Authority" (ui-ux-pro-max). Light page, harbour navy for
   weight, one clear blue for actions. No web fonts: system CJK faces only, so
   the page loads fast inside mainland China. No invented stats or badges.
   Display face: Noto Serif CJK SC Bold, subset to the heading glyphs
   (deploy/subset-chendel-font.sh) so it is the same on every OS. */

@font-face { font-family: "Chendel Display"; src: url("/fonts/display.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --navy: #0b2545;
  --on-navy: #ffffff;
  --on-navy-muted: #c7d4e6;
  --primary: #0369a1;
  --primary-hover: #075985;
  --primary-soft: #e0f2fe;
  --warn: #c2410c;
  color-scheme: light;

  --font-display: "Chendel Display", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-text: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;

  --step-small: 0.875rem;
  --step-body: 1rem;
  --step-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-h3: 1.25rem;
  --step-h2: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  --step-h1: clamp(2.25rem, 1.3rem + 3.6vw, 4rem);

  --max: 76rem;
  --margin: clamp(1rem, 3vw, 2rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, 0.06), 0 16px 40px rgba(15, 23, 42, 0.1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bar-h: 4.25rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #94a3b8 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol, fieldset, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:target { scroll-margin-top: calc(var(--bar-h) + 1rem); }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 700; letter-spacing: 0.01em; text-wrap: balance; line-height: 1.25; }
h1, h2 { font-family: var(--font-display); word-break: keep-all; overflow-wrap: anywhere; }
p, dd, li { text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: 0.6rem 1rem; background: var(--navy); color: #fff; border-radius: var(--radius-sm); }
.skip:focus { top: 1rem; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.25rem; border: 1px solid transparent; border-radius: var(--radius-sm); font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.btn-lg { min-height: 3.25rem; padding: 0 1.75rem; font-size: 1.0625rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn .ic { width: 1.1em; height: 1.1em; }
.link { color: var(--primary); text-decoration: underline; text-underline-offset: 0.2em; transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--primary-hover); }
  .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
  .btn-light:hover { background: rgba(255, 255, 255, 0.22); }
  .link:hover { color: var(--primary-hover); }
}
.input { width: 100%; min-width: 0; min-height: 3rem; padding: 0 1rem; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; font-size: max(1rem, var(--step-body)); caret-color: var(--primary); transition: border-color 180ms ease, box-shadow 180ms ease; }
.input::placeholder { color: #64748b; }
.input:focus-visible, .input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 2rem; min-height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 2.75rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm); background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand-name { white-space: nowrap; display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.15; letter-spacing: 0.04em; }
.brand-name small { font-family: var(--font-text); font-weight: 500; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.2em; }
.nav { display: flex; gap: 0.25rem; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 500; transition: color 180ms ease, background-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: var(--surface-2); } }
.bar-cta { display: flex; gap: 0.5rem; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--on-navy); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 37, 69, 0.96) 0%, rgba(11, 37, 69, 0.88) 45%, rgba(11, 37, 69, 0.55) 100%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(4rem, 9vw, 7.5rem); }
.hero h1 { font-size: var(--step-h1); line-height: 1.18; }
.hero-sub { margin-top: 1.25rem; max-width: 34em; font-size: var(--step-lead); color: var(--on-navy-muted); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.quick-track { padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.qt-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.125rem; }
.qt-title .ic { color: var(--primary); }
.qt-row { margin-top: 1rem; display: flex; gap: 0.5rem; }
.qt-note { margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }

/* ---------- mode strip ---------- */
.modes { position: relative; z-index: 1; margin-top: -1.75rem; }
.mode-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.mode-list li { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1.1rem 0.75rem; font-weight: 600; }
.mode-list li + li { border-left: 1px solid var(--line); }
.mode-list .ic { color: var(--primary); width: 1.4em; height: 1.4em; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.band { padding-block: var(--section); background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2, .docs-side h2 { font-size: var(--step-h2); }
.lead { margin-top: 1rem; font-size: var(--step-lead); color: var(--muted); }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.svc { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.svc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.svc-wide { grid-column: span 2; }
.svc-wide img { aspect-ratio: auto; flex: 1 1 auto; height: 0; min-height: 14rem; object-position: 50% 40%; }
.svc-body { padding: 1.4rem 1.5rem 1.6rem; }
.svc h3 { display: flex; align-items: center; gap: 0.5rem; font-size: var(--step-h3); }
.svc h3 .ic { color: var(--primary); }
.svc-body > p { margin-top: 0.6rem; color: var(--muted); }
.facts { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: 0.4rem; font-size: 0.9375rem; }
.facts div { display: grid; grid-template-columns: 4em 1fr; gap: 0.75rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.svc-wide .svc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; }
.svc-wide .svc-body > h3, .svc-wide .svc-body > p { grid-column: 1; }
.svc-wide .facts { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; padding-top: 0; border-top: 0; padding-left: 2rem; border-left: 1px solid var(--line); align-content: start; }

/* ---------- commitments ---------- */
.more { margin-top: clamp(3rem, 6vw, 4.5rem); }
.more-title { margin-bottom: 1.5rem; font-size: var(--step-h3); }
.more .why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.why { column-gap: 2.5rem; }
.why li { display: grid; align-content: start; grid-template-columns: auto 1fr; column-gap: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.why .ic { grid-row: 1 / span 2; width: 1.5rem; height: 1.5rem; margin-top: 0.2rem; color: var(--primary); }
.why h3 { font-size: 1.125rem; }
.why p { margin-top: 0.4rem; color: var(--muted); font-size: 0.9375rem; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: s; }
.steps li { position: relative; padding-top: 1.25rem; border-top: 3px solid var(--line); }
.steps li:last-child { border-top-color: var(--primary); }
.step-n { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 0.75rem; font-size: 1.125rem; }
.steps p { margin-top: 0.4rem; color: var(--muted); font-size: 0.9375rem; }

/* ---------- documents ---------- */
.docs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.docs-photo { margin-top: 2rem; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.docs-tool { padding: clamp(1.25rem, 3vw, 2rem); }
.picker fieldset { border: 0; padding: 0; }
.picker fieldset + fieldset { margin-top: 1.1rem; }
.picker legend { padding: 0; margin-bottom: 0.5rem; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.picker label { cursor: pointer; }
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.seg { display: inline-flex; padding: 0.25rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.seg span { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1.4rem; border-radius: 6px; font-weight: 600; color: var(--muted); transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.chips input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.picker input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chips label:hover input:not(:checked) + span { border-color: var(--primary); color: var(--primary); } .seg label:hover input:not(:checked) + span { color: var(--ink); } }
.doc-table { width: 100%; margin-top: 1.75rem; border-collapse: collapse; font-size: 0.9375rem; }
.doc-table th { text-align: left; font-weight: 600; font-size: var(--step-small); color: var(--muted); padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.doc-table td { padding: 0.8rem 1rem 0.8rem 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-table td:first-child { font-weight: 600; white-space: nowrap; }
.doc-table th:last-child, .doc-table td:last-child { text-align: right; padding-right: 0; }
.doc-table td:last-child { color: var(--muted); }
.doc-table tbody tr { animation: row-in 360ms var(--ease-out) both; animation-delay: calc(var(--r, 0) * 40ms); }
.note { margin-top: 1.25rem; font-size: var(--step-small); color: var(--muted); }

/* ---------- contact ---------- */
.card-dark { background: var(--navy); color: var(--on-navy); border-radius: calc(var(--radius) * 1.5); }
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2.5rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); }
.contact h2 { font-size: var(--step-h2); }
.contact-copy > p:last-child { margin-top: 1rem; color: var(--on-navy-muted); }
.ways { display: grid; gap: 0.75rem; }
.ways .way { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-sm); color: var(--on-navy-muted); text-decoration: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; transition: background-color 180ms ease, border-color 180ms ease; }
.ways .ic { color: #7dd3fc; }
.ways b { display: block; color: var(--on-navy); font-weight: 600; }
.ways img { display: block; margin-top: 0.3rem; }

/* ---------- footer ---------- */
.foot { background: #081a33; color: #a9b8cc; font-size: var(--step-small); }
.foot-in { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: 3rem 2rem; }
.foot-name { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; margin-bottom: 0.25rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; }
.foot a { color: inherit; text-decoration: none; transition: color 180ms ease; }
.foot a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: #fff; } }
.foot-meta { text-align: center; padding-block: 1.25rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.foot-meta a img { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 0.3em; } /* beian-gongan */
.foot-meta a { display: inline; min-height: 0; padding-block: 0.5rem; }

/* ---------- motion (content stays visible without script) ---------- */
@keyframes rise { from { transform: translateY(14px); } }
@keyframes settle { from { transform: scale(1.08); filter: blur(6px); } }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { animation: rise 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .hero-bg { animation: settle 1600ms var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .doc-table tbody tr, .track-events li { animation: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .bar-cta { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; }
  .quick-track { max-width: 34rem; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-wide img { height: auto; }
  .svc-wide img { aspect-ratio: 21 / 9; flex: none; min-height: 0; }
  .why, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .docs, .contact { grid-template-columns: 1fr; }
  .docs-photo { display: none; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .more .why { grid-template-columns: 1fr; }
  .brand-name small { display: none; }
  .wide-only { display: none; }
  .btn-ghost { padding: 0 0.85rem; }
  .hero-actions .btn { flex: 1; }
  .qt-row { flex-direction: column; }
  .modes { margin-top: -1.25rem; }
  .mode-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-list li { justify-content: flex-start; padding: 0.9rem 1rem; }
  .mode-list li + li { border-left: 0; }
  .mode-list li:nth-child(even) { border-left: 1px solid var(--line); }
  .mode-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mode-list li:last-child { grid-column: 1 / -1; border-left: 0; }
  .svc-grid, .why, .steps { grid-template-columns: 1fr; }
  .svc-wide { grid-column: auto; }
  .svc-wide img { aspect-ratio: 16 / 10; }
  .svc-wide .svc-body { display: block; }
  .svc-wide .facts { margin-top: 1.1rem; padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .doc-table td:nth-child(2), .doc-table th:nth-child(2) { display: none; }
  .foot-meta .sep { display: block; height: 0; overflow: hidden; }
}

/* ---------- tracking page (/tracking/) ---------- */
body:has(.track) { display: flex; flex-direction: column; min-height: 100svh; }
.track { flex: 1; padding-block: clamp(3rem, 7vw, 5rem) var(--section); }
.track-lookup { max-width: 44rem; }
.track-title { font-size: var(--step-h1); }
.track-lead { margin-top: 1rem; font-size: var(--step-lead); color: var(--muted); }
.track-form { margin-top: 2rem; display: flex; gap: 0.5rem; padding: 0.5rem; background: var(--surface); border: 1px solid #cbd5e1; border-radius: var(--radius); }
.track-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.track-form .input:focus { box-shadow: none; }
.track-form .input { border-color: transparent; }
.track-msg { margin-top: 1rem; color: var(--muted); }
.track-result { max-width: 60rem; }
.track-head { padding: clamp(1.5rem, 4vw, 2.5rem); }
.track-ref { color: var(--muted); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.track-status { margin-top: 0.5rem; display: inline-block; font-size: var(--step-h2); color: var(--primary); }
.track-route { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5em; font-weight: 700; font-size: clamp(1.375rem, 1rem + 1.5vw, 2rem); line-height: 1.3; }
.track-arrow { color: var(--primary); }
.track-to { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.5em; }
.track-dates { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
.track-dates dt { color: var(--muted); font-size: var(--step-small); }
.track-dates dd { margin: 0.15rem 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.track-h2 { margin-top: 3rem; font-size: 1.375rem; }
.track-events { margin-top: 1.25rem; position: relative; display: grid; gap: 0; }
.track-events li { position: relative; display: grid; grid-template-columns: 10.5rem 8rem 1fr; gap: 1.25rem; align-items: baseline; padding: 1rem 0 1rem 2rem; border-left: 2px solid var(--line); margin-left: 0.5rem; animation: row-in 360ms var(--ease-out) both; animation-delay: calc(var(--r, 0) * 40ms); }
.track-events li::before { content: ""; position: absolute; left: -0.45rem; top: 1.45rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--surface); border: 2px solid #94a3b8; }
.track-events li:first-child::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.track-events li:first-child .ev-what { color: var(--primary); }
.track-events li.is-exception .ev-what { color: var(--warn); }
.track-events li.is-exception::before { border-color: var(--warn); }
.track-events li.is-exception:first-child::before { background: var(--warn); box-shadow: 0 0 0 4px #ffedd5; }
.track-events time { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.ev-what { font-weight: 700; }
.ev-desc { color: var(--muted); }
.foot-short .foot-meta { border-top: 0; padding-block: 1.25rem; }
@media (max-width: 640px) {
  .track-form { flex-direction: column; }
  .track-events li { grid-template-columns: 1fr; gap: 0.15rem; padding-left: 1.5rem; }
}
