/* ============================================================
   joodex · 国际物流官网  设计系统
   风格：简约大气 · 深蓝 + 青色物流感 · 大量留白
   ============================================================ */

:root {
  /* 品牌色 */
  --navy:        #0b1f3a;   /* 主色：深海军蓝 */
  --navy-2:      #102a4c;
  --blue:        #1d4ed8;   /* 强调蓝 */
  --blue-soft:   #eaf1ff;
  --cyan:        #00b4d8;   /* 物流青 */
  --cyan-soft:   #e3f6fb;

  /* 中性色 */
  --ink:         #16233a;   /* 正文 */
  --muted:       #6b7891;   /* 次要文字 */
  --line:        #e7ebf1;   /* 描边 */
  --bg:          #ffffff;
  --bg-soft:     #f5f8fc;
  --bg-dark:     #0b1f3a;

  /* 尺寸 */
  --radius:      16px;
  --radius-sm:   10px;
  --maxw:        1180px;
  --gap:         clamp(20px, 4vw, 48px);

  /* 阴影 */
  --shadow:      0 18px 50px -22px rgba(11, 31, 58, 0.28);
  --shadow-sm:   0 8px 24px -16px rgba(11, 31, 58, 0.35);

  --font: "Inter", "Segoe UI", system-ui, -apple-system,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #fff; }

/* ---------- 文字工具 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: #7fd9ee; }
.h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
}
.section--dark .h2 { color: #fff; }
.lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 640px;
}
.section--dark .lead { color: #c4d2e6; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px -12px rgba(29,78,216,.7); }
.btn--primary:hover { background: #1742c4; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #eef3fb; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { background: rgba(255,255,255,.08); }
.arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: .02em;
}
.brand .logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 800;
}
.brand .logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--blue); }
.nav-links a.active { color: var(--blue); background: var(--blue-soft); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 5px auto; border-radius: 2px; transition: .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 540px at 80% -10%, rgba(0,180,216,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(29,78,216,.20), transparent 55%),
    var(--bg-dark);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  /* 抽象航线网络 */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  opacity: .6;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  padding: clamp(70px, 10vw, 130px) 0 clamp(70px, 9vw, 120px);
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #6fd3ee, #4f8bff);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p.lead { color: #c4d2e6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats {
  display: flex; gap: clamp(20px, 4vw, 46px);
  margin-top: 48px; flex-wrap: wrap;
}
.hero-stats .num { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: #fff; }
.hero-stats .lbl { font-size: 13px; color: #9fb2cf; }

/* Hero 视觉卡片 */
.hero-visual {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.hero-visual .tag {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #7fd9ee; font-weight: 600;
}
.track {
  margin-top: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 16px 18px;
}
.track-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.track-code { font-weight: 700; letter-spacing: .04em; }
.track-status {
  font-size: 12px; color: #0b1f3a; background: #8fe3a3;
  padding: 3px 10px; border-radius: 999px; font-weight: 700;
}
.track-bar {
  height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.14); overflow: hidden;
}
.track-bar i { display: block; height: 100%; width: 72%;
  background: linear-gradient(90deg, var(--cyan), #6fd3ee); border-radius: 999px; }
.track-steps { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11px; color: #9fb2cf; }
.track-steps b { color: #fff; }

/* ---------- 服务预览网格 ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* 图标统一大小 */
.card .ico svg { width: 26px; height: 26px; }

/* ---------- 特性 / 为何选择 ---------- */
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--blue); transform: translateY(-4px); }
.feature .ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--cyan-soft); color: var(--cyan);
}
.feature h4 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--muted); }

/* ---------- 数据指标条 ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.metric { text-align: center; }
.metric .num {
  font-size: clamp(30px, 4vw, 46px); font-weight: 800;
  background: linear-gradient(90deg, #6fd3ee, #4f8bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric .lbl { color: #c4d2e6; font-size: 14px; margin-top: 6px; }

/* ---------- 时间线（发展历程） ---------- */
.timeline { position: relative; margin-top: 20px; }
.timeline::before {
  content: ""; position: absolute; left: 16px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.tl-item { position: relative; padding: 0 0 34px 52px; }
.tl-item::before {
  content: ""; position: absolute; left: 9px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
}
.tl-year { font-weight: 800; color: var(--blue); font-size: 15px; }
.tl-item h4 { font-size: 17px; color: var(--navy); margin: 4px 0 6px; }
.tl-item p { color: var(--muted); font-size: 14px; }

/* ---------- 价值观 ---------- */
.value {
  text-align: center; padding: 32px 24px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
.value .ico {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 14px;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--blue);
}
.value h4 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 14px; }

/* ---------- CTA 区 ---------- */
.cta {
  background: linear-gradient(120deg, var(--blue), #0e63c9 60%, var(--cyan));
  border-radius: 24px;
  padding: clamp(40px, 6vw, 64px);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta h2 { font-size: clamp(24px, 3.4vw, 36px); }
.cta p { color: #e4eefb; margin-top: 10px; max-width: 520px; }

/* ---------- 服务详情（services 页） ---------- */
.svc {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.svc:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.svc .ico {
  width: 72px; height: 72px; border-radius: 16px;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--blue);
}
.svc h3 { color: var(--navy); font-size: 20px; margin-bottom: 6px; }
.svc p { color: var(--muted); font-size: 15px; }
.svc .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.svc .tag {
  font-size: 12px; color: var(--blue); background: var(--blue-soft);
  padding: 4px 12px; border-radius: 999px; font-weight: 600;
}
.svc-list { display: grid; gap: 18px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .err { color: #e23d3d; font-size: 13px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #e23d3d; }
.field.invalid .err { display: block; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }

.info-card {
  background: var(--bg-dark); color: #fff; border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
}
.info-card h3 { font-size: 22px; margin-bottom: 18px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.info-row:last-child { border-bottom: none; }
.info-row .ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; background: rgba(255,255,255,.08); color: #6fd3ee; }
.info-row .k { font-size: 13px; color: #9fb2cf; }
.info-row .v { font-size: 15px; color: #fff; font-weight: 600; }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: #e6f9ec; color: #1e9e4a; display: grid; place-items: center;
}

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-dark); color: #c4d2e6; padding: 60px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand .logo-img {
  height: 46px;
}
.footer p.desc { font-size: 14px; color: #9fb2cf; max-width: 300px; }
.footer h5 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 14px; color: #9fb2cf; transition: color .18s; }
.footer ul li a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #8295b3;
}

/* ---------- 滚动出现动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 14px 20px 22px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transform: translateY(-130%); transition: transform .28s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .svc { grid-template-columns: 1fr; text-align: center; }
  .svc .ico { margin: 0 auto; }
  .svc .tags { justify-content: center; }
}
