/* =========================================================
   biyobiyo.com.cn — 企业官网
   风格：运单 / 编辑排版 / 纸张质感
   无外部字体与 CDN，全部离线可用
   ========================================================= */

:root {
  --paper: #f4f0e7;
  --paper-2: #ece6d9;
  --paper-3: #e3dbc9;
  --ink: #14171c;
  --ink-soft: #3d434b;
  --ink-mute: #6b7079;
  --rule: rgba(20, 23, 28, 0.14);
  --rule-strong: rgba(20, 23, 28, 0.32);
  --accent: #c2452c;
  --accent-soft: rgba(194, 69, 44, 0.12);
  --jade: #1d4b3f;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 2px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC",
    "Noto Serif CJK SC", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono",
    Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(194, 69, 44, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(29, 75, 63, 0.06), transparent 55%),
    repeating-linear-gradient(0deg, rgba(20, 23, 28, 0.018) 0 1px, transparent 1px 4px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- 版式骨架 ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.rule-top {
  border-top: 1px solid var(--rule);
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- 顶部 ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 240, 231, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-cn {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 14px;
  padding: 6px 0;
  color: var(--ink-soft);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 8px;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 11px;
  cursor: pointer;
  color: var(--ink-mute);
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.menu-btn {
  display: none;
  margin-left: auto;
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* ---------- 首屏 ---------- */

.hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 76px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  margin: 22px 0 26px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.08em;
  background: var(--accent-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.btn--solid:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn--ghost:hover {
  background: var(--paper-2);
}

/* ---------- 运单卡 ---------- */

.manifest {
  position: relative;
  border: 1px solid var(--rule-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16));
  padding: 22px 22px 20px;
  box-shadow: 0 24px 60px -40px rgba(20, 23, 28, 0.5);
}

.manifest::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(20, 23, 28, 0.18);
  pointer-events: none;
}

.manifest-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.manifest-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 18px 0 22px;
}

.route-city {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
}

.route-city small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-top: 4px;
}

.route-line {
  position: relative;
  height: 1px;
  background: var(--rule-strong);
}

.route-line::before,
.route-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  transform: translateY(-50%);
}

.route-line::before {
  left: 0;
}

.route-line::after {
  right: 0;
  background: var(--accent);
  border-color: var(--accent);
}

.route-line span {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  white-space: nowrap;
}

.manifest-rows {
  display: grid;
  gap: 8px;
}

.manifest-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--rule);
}

.manifest-row span:first-child {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.stamp {
  position: absolute;
  right: 14px;
  bottom: -14px;
  transform: rotate(-7deg);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 6px 10px;
  background: rgba(244, 240, 231, 0.9);
}

/* ---------- 数据条 ---------- */

.strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(236, 230, 217, 0.6);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-item {
  padding: 26px 22px;
  border-right: 1px solid var(--rule);
}

.strip-item:last-child {
  border-right: 0;
}

.strip-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.strip-label {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}

/* ---------- 章节 ---------- */

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-top: 14px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 46ch;
}

/* ---------- 卡片 ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule);
}

.cards--5 {
  grid-template-columns: repeat(5, 1fr);
}

.cards--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  padding: 30px 26px 34px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
}

.card:hover {
  background: var(--paper-2);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}

.card h3 {
  font-size: 22px;
  margin: 26px 0 12px;
}

.card p {
  font-size: 14px;
  color: var(--ink-soft);
}

.card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.card li {
  font-size: 13px;
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

/* ---------- 两栏 ---------- */

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.prose p + p {
  margin-top: 16px;
}

.prose {
  font-size: 15px;
  color: var(--ink-soft);
}

.prose h2 {
  font-size: 24px;
  color: var(--ink);
  margin: 38px 0 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.prose li {
  font-size: 15px;
  color: var(--ink-soft);
}

.prose li::marker {
  color: var(--accent);
}

.facts {
  border-top: 1px solid var(--rule-strong);
}

.fact {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.fact dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 4px;
}

.fact dd {
  margin: 0;
  color: var(--ink);
}

.fact dd a {
  border-bottom: 1px solid var(--rule-strong);
}

.fact dd a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 联系 ---------- */

.contact-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 7vw, 84px) 0;
}

.contact-band .mono {
  color: rgba(244, 240, 231, 0.6);
}

.contact-band h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 16px 0 12px;
}

.contact-band p {
  color: rgba(244, 240, 231, 0.72);
  max-width: 52ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 38px;
  border-top: 1px solid rgba(244, 240, 231, 0.2);
  padding-top: 30px;
}

.contact-item {
  font-size: 14px;
}

.contact-item .mono {
  display: block;
  margin-bottom: 8px;
}

.contact-item a {
  border-bottom: 1px solid rgba(244, 240, 231, 0.35);
}

.contact-item a:hover {
  color: #fff;
  border-color: var(--accent);
}

/* ---------- 页脚 ---------- */

.site-foot {
  padding: 44px 0 32px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-soft);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.foot-brand {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
}

.foot-links {
  display: grid;
  gap: 8px;
}

.foot-links a:hover {
  color: var(--accent);
}

.legal {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-mute);
}

.legal a {
  border-bottom: 1px solid var(--rule-strong);
}

.legal a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.icp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ---------- 内容页 ---------- */

.page-head {
  padding: clamp(44px, 6vw, 80px) 0 clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--rule);
}

.page-head h1 {
  font-size: clamp(34px, 5vw, 62px);
  margin-top: 18px;
}

.page-body {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}

.doc {
  max-width: 78ch;
}

.doc h2 {
  font-size: 24px;
  margin: 40px 0 14px;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}

.doc p,
.doc li {
  font-size: 15px;
  color: var(--ink-soft);
}

.doc p + p {
  margin-top: 14px;
}

.doc ul,
.doc ol {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.doc li::marker {
  color: var(--accent);
}

.note {
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 14px;
  color: var(--ink);
}

.hash {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

/* ---------- 动效 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

/* 无 JS 时不能把内容藏起来 */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

.is-in .reveal,
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.d1 { transition-delay: 0.06s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.22s; }
.d4 { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .is-in .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .section-head,
  .split,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .cards--5 {
    grid-template-columns: 1fr 1fr;
  }

  .strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .strip-item:nth-child(2n) {
    border-right: 0;
  }

  .strip-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 18px var(--pad) 24px;
    flex-direction: column;
    gap: 14px;
  }

  .nav.is-open {
    display: flex;
  }

  .menu-btn {
    display: inline-block;
  }

  .lang {
    margin-left: 0;
  }

  .head-inner {
    position: relative;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .cards--5 {
    grid-template-columns: 1fr;
  }

  .fact {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
