/* ============================================================
   东正物流 DONGZHENG LOGISTICS
   设计规范(依据 design-taste-frontend skill)
   - 主色:深海军蓝 + 国际橙(唯一强调色),冷灰中性底
   - 圆角规则:卡片/图片 12px,按钮 8px,字标方块 8px
   - 字体:Barlow Semi Condensed(拉丁/数字)+ 系统中文黑体
   - 图标:Phosphor fill 系列,currentColor 统一
   - 动效:低强度,全部尊重 prefers-reduced-motion
   ============================================================ */

/* ---------- 字体 ---------- */
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 设计令牌 ---------- */
:root {
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Barlow Semi Condensed", var(--font-body);

  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --card: #ffffff;
  --line: #dde5ec;
  --text: #22384c;
  --heading: #0e2438;
  --muted: #55677a;
  --navy: #0b2a4a;
  --navy-ink: #f2f6fa;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --on-accent: #ffffff;
  --stat-num: #0b2a4a;
  --header-border: rgba(14, 36, 56, 0.08);
  --header-shadow: 0 8px 24px rgba(14, 36, 56, 0.06);
  --radius-card: 12px;
  --radius-btn: 8px;
}

:root[data-theme="dark"] {
  --bg: #0d1521;
  --bg-alt: #111c2b;
  --card: #142031;
  --line: rgba(230, 238, 246, 0.14);
  --text: #dce5ee;
  --heading: #f2f6fa;
  --muted: #93a4b5;
  --navy: #17304f;
  --navy-ink: #f2f6fa;
  --accent: #c2410c;
  --accent-hover: #d4531a;
  --on-accent: #ffffff;
  --stat-num: #e7edf4;
  --header-border: rgba(230, 238, 246, 0.1);
  --header-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1521;
    --bg-alt: #111c2b;
    --card: #142031;
    --line: rgba(230, 238, 246, 0.14);
    --text: #dce5ee;
    --heading: #f2f6fa;
    --muted: #93a4b5;
    --navy: #17304f;
    --navy-ink: #f2f6fa;
    --accent: #c2410c;
    --accent-hover: #d4531a;
    --on-accent: #ffffff;
    --stat-num: #e7edf4;
    --header-border: rgba(230, 238, 246, 0.1);
    --header-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
section { scroll-margin-top: 88px; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.ic {
  width: 22px;
  height: 22px;
  flex: none;
  display: inline-block;
  vertical-align: -0.2em;
}

/* ---------- 按钮(全站唯一强调色按钮,统一标签:获取报价) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn-ghost {
  background: transparent;
  color: var(--heading);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--heading);
}

/* ---------- 顶部导航(单行,72px) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--header-border);
  box-shadow: var(--header-shadow);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
  letter-spacing: 0;
}
.logo-img {
  height: 46px;
  width: auto;
  display: block;
  background: #ffffff;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-nav a:not(.btn):hover { color: var(--accent); }
.nav-cta { padding: 10px 22px; }
.lang {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--heading);
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--heading);
  cursor: pointer;
}
.nav-toggle .ic-close { display: none; }
.nav-toggle.is-open .ic-menu { display: none; }
.nav-toggle.is-open .ic-close { display: block; }

/* ---------- Hero(首屏,不对称左右分栏) ---------- */
.hero {
  background: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100dvh - 72px);
  padding-top: 48px;
  padding-bottom: 64px;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
}
.hero-sub {
  margin-top: 20px;
  max-width: 34em;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-media { margin: 0; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}
.hero-media figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 数据条(示例数据) ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 28px;
  padding-bottom: 28px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 36px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--stat-num);
}
.stat-num em {
  font-style: normal;
  font-size: 0.52em;
  font-weight: 600;
  color: var(--accent);
  margin-left: 2px;
}
.stat-label { font-size: 14px; color: var(--muted); }

/* ---------- 版块标题 ---------- */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}
.section-head p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- 服务项目(Bento,4列不对称) ---------- */
.services { padding: 96px 0; background: var(--bg-alt); }
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.bento-photo {
  margin: 0;
  position: relative;
}
.bento-photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}
.bento-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 13px;
  color: #ffffff;
  background: rgba(10, 20, 32, 0.62);
  padding: 4px 12px;
  border-radius: 6px;
  line-height: 1.5;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.tile .ic { width: 26px; height: 26px; color: var(--accent); }
.tile h3 { font-size: 19px; }
.tile p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.tile-navy {
  background: var(--navy);
  border-color: var(--navy);
}
.tile-navy h3, .tile-navy p { color: var(--navy-ink); }
.tile-navy p { opacity: 0.82; }
.tile-navy .ic { color: #f2a06f; }
.tile-accent {
  background: var(--accent);
  border-color: var(--accent);
}
.tile-accent h3, .tile-accent p { color: var(--on-accent); }
.tile-accent p { opacity: 0.88; }
.tile-accent .ic { color: #ffd9c2; }

/* ---------- 航线网络(图片卡片 2x2) ---------- */
.routes { padding: 96px 0; background: var(--bg); }
.routes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.route-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.route-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(14, 36, 56, 0.1);
}
.route-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.route-body { padding: 22px 26px 26px; }
.route-body h3 { font-size: 20px; }
.route-ports { margin-top: 8px; font-size: 15px; color: var(--text); }
.route-note { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

/* ---------- 左右分栏(特种货物 / 德国分公司) ---------- */
.special, .germany { padding: 96px 0; background: var(--bg-alt); }
.germany { background: var(--bg); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.split-copy .lead {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
  max-width: 56ch;
}
.check-list { margin-top: 32px; display: flex; flex-direction: column; gap: 22px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .ic { color: var(--accent); margin-top: 4px; }
.check-list strong {
  display: block;
  font-size: 16.5px;
  color: var(--heading);
  font-weight: 600;
}
.check-list span {
  display: block;
  margin-top: 2px;
  font-size: 14.5px;
  color: var(--muted);
}
.split-media { margin: 0; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

/* ---------- 合作流程(4步,顶部强调线) ---------- */
.process { padding: 96px 0; background: var(--bg-alt); }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.steps li {
  border-top: 2px solid var(--accent);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.steps .ic { width: 26px; height: 26px; color: var(--accent); }
.steps h3 { font-size: 19px; }
.steps p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* ---------- 询价横幅(全站唯一深色色块) ---------- */
.quote { padding: 96px 0; background: var(--bg); }
.quote-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--navy);
  border-radius: var(--radius-card);
  padding: 52px 56px;
}
.quote-copy h2 { color: #ffffff; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.quote-copy p { margin-top: 12px; color: rgba(242, 246, 250, 0.78); font-size: 15.5px; }
.quote-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: none;
}
.quote-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(242, 246, 250, 0.85);
  transition: color 0.2s ease;
}
.quote-phone:hover { color: #ffffff; }
.quote-qr { display: flex; align-items: center; gap: 14px; }
.quote-qr img {
  width: 88px;
  height: 88px;
  background: #ffffff;
  border-radius: 8px;
  padding: 5px;
}
.quote-qr span { color: rgba(242, 246, 250, 0.85); font-size: 14px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 34em;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-size: 15px;
  color: var(--heading);
  margin-bottom: 6px;
}
.footer-col a, .footer-col span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-col .ic { width: 18px; height: 18px; color: var(--accent); }
.footer-contact a, .footer-contact span { align-items: flex-start; }
.footer-contact .ic { margin-top: 3px; }
.qr { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.qr img {
  width: 116px;
  height: 116px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
}
.qr span { font-size: 13px; color: var(--muted); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 入场动效(仅 JS 可用且未减少动效时) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
  }
  .bento-photo { grid-column: span 2; grid-row: span 2; }
  .tile-wide { grid-column: span 2; }
  .routes-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--header-shadow);
    padding: 8px 24px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav-cta { margin-top: 16px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 72px;
  }
  .hero-media img { aspect-ratio: 16 / 10; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .quote-panel { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 639px) {
  .container { padding: 0 20px; }
  .logo-name { font-size: 13px; }
  .hero-copy h1 { font-size: 2rem; }
  .hero-cta .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .stat + .stat { border-left: none; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; }
  .services, .routes, .special, .germany, .process, .quote { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .bento { gap: 16px; }
  .tile { padding: 24px; }
  .routes-grid { gap: 16px; }
  .route-body { padding: 18px 20px 22px; }
  .steps { gap: 26px; }
  .quote-phone { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}
