/* 飞鸽快传 ShuttleTool —— 航空邮政风
   色板: 纸白 / 牛皮 / 墨 / 邮政红(唯一亮色) / 航空蓝 / 淡墨 */

@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/SpaceMono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/SpaceMono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Black";
  src: url("assets/fonts/ArchivoBlack-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #F5F1E6;
  --kraft: #E6DABE;
  --kraft-deep: #D8C9A3;
  --ink: #262217;
  --ink-soft: #6C6350;
  --red: #C0361D;
  --red-tint: rgba(192, 54, 29, .08);
  --blue: #31519C;
  --line: #C9BC9C;

  --mono: "Space Mono", ui-monospace, Consolas, monospace;
  --disp: "Archivo Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

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

.mono { font-family: var(--mono); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px; }

/* ---------- 航空条纹 ---------- */

.airmail {
  height: 10px;
  background: repeating-linear-gradient(135deg,
    var(--red) 0 14px, var(--paper) 14px 28px,
    var(--blue) 28px 42px, var(--paper) 42px 56px);
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px 28px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { flex: none; }
.brand-cn { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.brand-en {
  font-family: var(--disp);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  transform: translateY(2px);
}

.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.topnav a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: 600 15px/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-s { min-height: 38px; padding: 6px 16px; font-size: 14px; }
.btn-big { min-height: 54px; padding: 14px 34px; font-size: 17px; }

.linklike {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font: 600 15px/1.6 var(--sans);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.linklike:hover { color: var(--red); }

.err { color: var(--red); font-size: 14px; margin-top: 14px; }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 8px;
}
.online .dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Hero 寄出柜台 ---------- */

.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  font-size: 44px;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 1px;
}
.hero-sub {
  max-width: 560px;
  margin: 18px auto 44px;
  color: var(--ink-soft);
  font-size: 17px;
  text-align: center;
}

.counter {
  max-width: 640px;
  margin: 0 auto;
  padding: 26px 28px 32px;
  background: var(--kraft);
  border: 2px solid var(--ink);
  border-radius: 6px;
  text-align: left;
}

.counter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1.5px dashed var(--ink-soft);
  margin-bottom: 20px;
}
.counter-title { font-size: 17px; font-weight: 800; letter-spacing: 2px; }
.chip-open { font-size: 13px; color: var(--ink-soft); }

.dropzone {
  position: relative;
  padding: 44px 24px 36px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.dropzone.drag, .dropzone:hover { border-color: var(--red); }
.dropzone.drag { background: #FBF6EA; }

.slot {
  width: 210px;
  height: 13px;
  margin: 0 auto 26px;
  background: var(--ink);
  border-radius: 7px;
  box-shadow: inset 0 3px 4px rgba(0, 0, 0, .5);
  transition: background-color .15s ease;
}
.dropzone.drag .slot { background: var(--red); }

.dz-main { font-size: 17px; font-weight: 700; }
.dz-hint { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }

/* 寄出流程态 */

.flow { padding: 26px 8px 8px; }
.flow-file {
  font-family: var(--mono);
  font-size: 14px;
  margin-bottom: 16px;
  word-break: break-all;
}
.flow-track {
  height: 14px;
  background: var(--kraft-deep);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
}
.flow-bar {
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width .2s ease;
}
.flow-line {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 14px;
}
.flow-stage {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}
.flow-stage::after { content: "…"; }

/* 回执：邮票 */

.receipt {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
  padding-top: 20px;
}
.receipt.show .stamp { animation: stampIn .5s cubic-bezier(.2, .85, .3, 1.15) both; }
.receipt.show .postmark { animation: postmarkIn .4s ease .3s both; }
@keyframes stampIn {
  0% { transform: rotate(-2deg) scale(1.7); opacity: 0; }
  62% { transform: rotate(-2deg) scale(.95); opacity: 1; }
  100% { transform: rotate(-2deg) scale(1); }
}
@keyframes postmarkIn {
  from { transform: rotate(10deg) scale(1.25); opacity: 0; }
  to { transform: rotate(10deg) scale(1); opacity: .55; }
}

.receipt-stamp { display: flex; justify-content: center; }

.stamp {
  position: relative;
  width: 252px;
  padding: 26px 16px 20px;
  background: #FCFAF1;
  border: 3px solid var(--red);
  color: var(--red);
  text-align: center;
  transform: rotate(-2deg);
}
/* 齿孔：用柜台底色在四边打圆点 */
.stamp::before, .stamp::after {
  content: "";
  position: absolute;
  inset: -7px;
  pointer-events: none;
}
.stamp::before {
  background-image:
    radial-gradient(circle 3.5px at 7px 7px, var(--kraft) 97%, transparent),
    radial-gradient(circle 3.5px at 7px 7px, var(--kraft) 97%, transparent);
  background-size: 14px 14px;
  background-position: 0 0, 0 100%;
  background-repeat: repeat-x, repeat-x;
}
.stamp::after {
  background-image:
    radial-gradient(circle 3.5px at 7px 7px, var(--kraft) 97%, transparent),
    radial-gradient(circle 3.5px at 7px 7px, var(--kraft) 97%, transparent);
  background-size: 14px 14px;
  background-position: 0 0, 100% 0;
  background-repeat: repeat-y, repeat-y;
}

.stamp-brand { display: block; font-size: 14px; font-weight: 800; letter-spacing: 6px; }
.stamp-code {
  display: block;
  margin: 10px 0 12px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 3px;
  color: var(--ink);
  cursor: copy;
  user-select: all;
}
.stamp-foot {
  display: block;
  font-family: var(--disp);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
}

.postmark {
  position: absolute;
  top: -26px;
  right: -30px;
  width: 104px;
  height: 104px;
  border: 2.5px dashed var(--blue);
  border-radius: 50%;
  color: var(--blue);
  opacity: .55;
  transform: rotate(10deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.postmark b { font-family: var(--disp); font-size: 10px; letter-spacing: 1px; font-weight: 400; }
.postmark i { font-family: var(--mono); font-size: 12px; font-style: normal; }

.receipt-info .r-file {
  font-family: var(--mono);
  font-size: 15px;
  word-break: break-all;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--ink-soft);
}
.r-count { margin-top: 12px; font-size: 15px; }
.r-count b { font-size: 20px; font-weight: 700; }
.r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.r-hint { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

/* ---------- 取件窗口 ---------- */

.fetch { padding: 64px 0 72px; }
.fetch h2, .ledger h2, .steps h2, .faq h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
}
.sec-sub { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }

.fetch-form { display: flex; gap: 14px; margin-top: 30px; }
.code-input {
  width: 240px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 7px;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
}
.code-input::placeholder { letter-spacing: 2px; font-size: 16px; font-weight: 400; color: var(--ink-soft); }
.code-input:focus { border-color: var(--red); outline: none; }

.demo-try { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

.parcel-card {
  margin-top: 26px;
  padding: 24px 26px;
  background: var(--kraft);
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.parcel-grid {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 26px;
  padding-bottom: 18px;
  border-bottom: 1.5px dashed var(--ink-soft);
}
.parcel-grid dt { font-size: 12.5px; color: var(--ink-soft); }
.parcel-grid dd { font-size: 15px; font-weight: 700; margin-top: 2px; }
#p-name { word-break: break-all; }

.parcel-card .btn { margin-top: 20px; }

.nudge {
  margin-top: 18px;
  padding: 16px 18px;
  border: 2px dashed var(--red);
  border-radius: 4px;
  background: var(--red-tint);
}
.nudge p { font-size: 14.5px; }
.nudge .btn { margin-top: 12px; }

/* ---------- 邮路台账 ---------- */

.ledger { padding: 30px 0 76px; }
.ledger .waybill {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
  background: var(--kraft);
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
}
.waybill > div { padding: 22px 26px 24px; }
.waybill > div + div { border-left: 2px dashed var(--line); }
.waybill dt { font-size: 13px; color: var(--ink-soft); }
.waybill dd { margin-top: 4px; font-size: 30px; font-weight: 700; line-height: 1.2; }

/* ---------- Windows 客户端 ---------- */

.client {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 84px 0 90px;
}
.client-stripe { position: absolute; top: 0; left: 0; right: 0; }
.client-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 64px;
  align-items: center;
}
.client .sec-sub { color: #B8AF9B; }
.client h2 { color: var(--paper); font-size: 30px; }

.mock {
  background: var(--paper);
  border: 2.5px solid var(--kraft-deep);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .35);
  color: var(--ink);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--kraft);
  border-bottom: 2px solid var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.mock-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--kraft-deep);
  border: 1.5px solid var(--ink-soft);
}
.mock-bar span { margin-left: 8px; }
.mock-body { padding: 26px 26px 30px; }
.mock-label { font-size: 13px; color: var(--ink-soft); }
.mock-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  align-items: stretch;
}
.mock-code {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 5px;
}
.mock-go {
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  font-weight: 700;
  font-size: 15px;
}
.mock-progress {
  height: 10px;
  margin-top: 24px;
  background: var(--kraft-deep);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
}
.mock-progress i { display: block; height: 100%; background: var(--red); }
.mock-status { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }

.client-list {
  list-style: none;
  margin: 22px 0 30px;
  display: grid;
  gap: 12px;
}
.client-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: #DDD5C2;
}
.client-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 2px;
  transform: rotate(45deg) translateY(-50%);
}
.client .btn-red:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.client-meta { margin-top: 14px; font-size: 13px; color: #B8AF9B; }

/* ---------- 三步 ---------- */

.steps { padding: 76px 0; }
.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 36px;
  counter-reset: step;
}
.steps-grid li { position: relative; padding-top: 8px; }
.steps-grid li + li::before {
  content: "";
  position: absolute;
  top: 34px;
  left: -32px;
  width: 26px;
  border-top: 2px dashed var(--ink-soft);
}
.steps-grid b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--disp);
  font-size: 20px;
}
.steps-grid h3 { margin-top: 16px; font-size: 19px; font-weight: 800; }
.steps-grid p { margin-top: 6px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */

.faq { padding: 20px 0 84px; }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-weight: 700;
  font-size: 22px;
  color: var(--red);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 4px 22px; color: var(--ink-soft); font-size: 15px; max-width: 620px; }

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

.foot {
  padding: 44px 0 52px;
  border-top: 2px solid var(--ink);
  text-align: center;
}
.foot-brand { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.foot-line { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }
.foot-copy { margin-top: 18px; font-size: 12.5px; color: var(--ink-soft); }

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

@media (max-width: 920px) {
  .client-grid { grid-template-columns: 1fr; gap: 44px; }
  .mock { max-width: 440px; }
  .ledger .waybill { grid-template-columns: 1fr 1fr; }
  .waybill > div + div { border-left: 0; }
  .waybill > div:nth-child(even) { border-left: 2px dashed var(--line); }
  .waybill > div:nth-child(n+3) { border-top: 2px dashed var(--line); }
}

@media (max-width: 680px) {
  .topnav { display: none; }
  .topbar { gap: 16px; }
  .topbar .btn { margin-left: auto; }
  .topbar .brand-en { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 32px; }
  .counter { padding: 20px 18px 26px; }
  .receipt { grid-template-columns: 1fr; gap: 26px; }
  .fetch-form { flex-wrap: wrap; }
  .steps-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps-grid li + li::before {
    top: -22px;
    left: 25px;
    width: 0;
    height: 18px;
    border-top: 0;
    border-left: 2px dashed var(--ink-soft);
  }
  .parcel-grid { grid-template-columns: 1fr 1fr; }
  .waybill > div { padding: 18px 20px; }
  .waybill dd { font-size: 24px; }
}

/* ---------- 动效偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-delay: 0s !important;
    transition-duration: .001s !important;
  }
}
