/* Bus Flow: City Traffic — 官网全站样式
 * 零外部请求：不引 web 字体、不引 CDN、不引图标库。图形全部来自本目录。
 * 色板取自 work/art 现成母版（字标黄/橙渐变、City Traffic 蓝、乘客红、应用图标）。
 */

:root {
  --yellow: #ffc42b;
  --orange: #f58220;
  --sky: #2fa8f3;
  --sky-deep: #0b57c4;
  --red: #f04a4a;
  --ink: #1b2028;
  --ink-soft: #4a5462;
  --asphalt: #262b33;
  --paper: #ffffff;
  --paper-tint: #f4f9ff;
  --line: #dfe8f2;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 30px;
  --shadow-s: 0 2px 6px rgba(27, 32, 40, .07);
  --shadow-m: 0 14px 34px rgba(11, 87, 196, .12);
  --shadow-l: 0 26px 60px rgba(27, 32, 40, .18);
  --wrap: 1120px;
  --prose-w: 780px;
  --pad: clamp(18px, 4vw, 32px);
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sky-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky); }

:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -.022em;
  font-weight: 800;
  text-wrap: balance;   /* 避免"...long / streaks"这种单词孤行；不支持的浏览器自动忽略 */
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.25rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
code { overflow-wrap: anywhere; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-s) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 10px;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 56ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 30px; border-radius: 7px; box-shadow: var(--shadow-s); }
.brand .brand-sub {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: .93rem;
  padding: 9px 12px;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--ink); background: var(--paper-tint); }
/* 导航里现在没有 CTA。若日后要加：必须同时写 `.site-nav a.btn { color:#3a2405; background:none; }`，
   否则上面两条规则会把黄底按钮的文字压成灰色，橙端对比度不达 4.5:1。 */
/* 选中态。两个触发器语义不同但共用一套视觉：
   · aria-current="page" —— 这一项就是你正在看的那页（静态，写死在 HTML）；
   · .is-active —— 滚动跟踪到本页哪个区块（site.js 动态加）。
   页内跟踪故意不动 aria-current：滚动时反复改它会让读屏一路播报。
   样式取"实心蓝药丸 + 黄点"而不是早先的淡蓝底 + 深字：那版对没经验的读者太看不出来
   （用户 2026-10-20 反馈）。除颜色外还留一颗形状不同的圆点，保证不靠颜色也能认出选中
   （WCAG 1.4.1）；hover 只有淡底色、没点，与选中态不会混。对比度实测（脚本算，不是拍脑袋）：
   白字对 sky-deep 6.61:1、对 hover 的 #084499 9.14:1，都过 4.5:1；黄点对 sky-deep 4.15:1、
   对 hover 底 5.74:1，过非文本元素 3:1（黄点在淡底 paper-tint 上只 1.51:1，所以点必须跟着
   底色一起换深底）。a84 探针会把这几个比值机检，改配色改到不达标就红。 */
.site-nav a::after {
  /* 所有导航项都预留圆点位置，选中时只改颜色 —— 否则滚动切换 .is-active 会把字挤得左右抖。 */
  content: "";
  display: inline-block;
  vertical-align: 1px;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: transparent;
}
.site-nav a[aria-current="page"],
.site-nav a.is-active {
  color: #fff;                           /* 对 sky-deep 实测 6.39:1 */
  background: var(--sky-deep);
}
.site-nav a[aria-current="page"]:hover,
.site-nav a.is-active:hover {
  color: #fff;
  background: #084499;                   /* 选中项 hover 再压深一档，白字 8.90:1 */
}
.site-nav a[aria-current="page"]::after,
.site-nav a.is-active::after {
  background: var(--yellow);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #fff;
  cursor: pointer;
  padding: 12px 11px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  margin-bottom: 5px;
}
.nav-toggle span:last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: -.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: #3a2405;
  box-shadow: 0 5px 0 #c96a12, var(--shadow-s);
}
.btn-primary:hover { transform: translateY(-2px); color: #3a2405; box-shadow: 0 7px 0 #c96a12, var(--shadow-m); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #c96a12; }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-s);
}
.btn-ghost:hover { color: var(--sky-deep); border-color: #b9d7f6; }
.btn-note { font-size: .8rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% 0%, #d9efff 0%, rgba(217, 239, 255, 0) 60%),
    linear-gradient(180deg, #eef8ff 0%, var(--paper) 78%);
  padding: clamp(40px, 6vw, 76px) 0 clamp(48px, 7vw, 92px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.hero h1 { margin-bottom: .34em; }
.hero h1 .hl {
  background: linear-gradient(transparent 62%, rgba(255, 196, 43, .62) 62%);
  padding: 0 .06em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  box-shadow: var(--shadow-s);
}
.hero-art {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  aspect-ratio: 5 / 6;
  background: #cfe8ff;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  inset: auto 16px 16px auto;
  left: 16px;
  background: rgba(255, 255, 255, .93);
  border: 1px solid #fff;
  border-radius: var(--radius-m);
  padding: 12px 16px;
  box-shadow: var(--shadow-m);
  backdrop-filter: blur(6px);
}
.hero-badge strong { display: block; font-size: 1.4rem; line-height: 1.1; letter-spacing: -.03em; }
.hero-badge span { font-size: .78rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-tint { background: var(--paper-tint); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 46px); }
.section-head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-s);
}
.card h3 { margin-bottom: .38em; }
.card p:last-child { margin-bottom: 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  color: #3a2405;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  margin-bottom: 14px;
}
.dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: -1px;
}
.dot-yellow { background: var(--yellow); }
.dot-blue { background: var(--sky); }
.dot-red { background: var(--red); }

/* ---------- screenshots ---------- */
.phones {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 44px);
  justify-content: center;
  align-items: flex-start;
}
.phone {
  width: min(276px, 74vw);
  border: 11px solid var(--ink);
  border-radius: 38px;
  background: var(--ink);
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.phone img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 27px; }
figure { margin: 0; }
figcaption {
  margin-top: 14px;
  font-size: .86rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- FAQ (native accordion, works without JS) ---------- */
.faq { max-width: 78ch; margin-inline: auto; }
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}
details > summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sky-deep);
  line-height: 1;
}
details[open] > summary::after { content: "\2212"; }
details > .answer { padding: 0 22px 20px; color: var(--ink-soft); }
details > .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(47, 168, 243, .28) 0%, rgba(47, 168, 243, 0) 55%),
    linear-gradient(135deg, var(--asphalt), #171b21);
  color: #fff;
  padding: clamp(44px, 6vw, 72px) 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 54ch; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .34); }
.cta-band .btn-ghost:hover { color: #fff; border-color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }

/* ---------- footer ---------- */
.site-footer {
  background: #0f1216;
  color: rgba(255, 255, 255, .74);
  padding: clamp(40px, 5vw, 62px) 0 32px;
  font-size: .92rem;
}
.site-footer a { color: rgba(255, 255, 255, .86); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-grid h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid li a { display: inline-block; padding: 5px 0; }  /* 手机上把行内链接撑到 24px 以上的触控面积 */
.footer-brand img { width: 190px; margin-bottom: 16px; }
.footer-legal { padding-top: 22px; font-size: .8rem; color: rgba(255, 255, 255, .56); }
.footer-legal p { margin-bottom: .5em; max-width: 92ch; }

/* ---------- policy / prose pages ---------- */
.page-hero {
  background: linear-gradient(180deg, #eef8ff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(34px, 5vw, 58px) 0;
}
/* 纯法务页：标题列与正文列对齐，不让 h1 比正文靠左 145px */
.page-hero-narrow .wrap { max-width: calc(var(--prose-w) + 2 * var(--pad)); }
.prose { max-width: var(--prose-w); margin-inline: auto; padding: clamp(30px, 4vw, 52px) 0 clamp(50px, 6vw, 80px); }
.prose h2 { margin-top: 2em; font-size: clamp(1.3rem, 2.4vw, 1.62rem); }
.prose h2:first-of-type { margin-top: .4em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }
.prose .meta {
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 22px;
  font-size: .92rem;
  margin-bottom: 2.2em;
}
/* 第二列必须 minmax(0,1fr)：1fr 的自动最小值是 min-content，包名那种不可断行的长 code 会把整页撑出横向滚动 */
.prose .meta dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; }

.prose .meta dt { font-weight: 800; color: var(--ink); }
.prose .meta dd { margin: 0; color: var(--ink-soft); }
.notice {
  border-left: 5px solid var(--yellow);
  background: #fffaf0;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 16px 20px;
  font-size: .95rem;
}
.toc {
  list-style: none;
  margin: 0 0 2.4em;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  columns: 2;
  column-gap: 34px;
  font-size: .92rem;
}
.toc li { margin-bottom: 7px; break-inside: avoid; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--sky-deep); text-decoration: underline; }

/* 站上不再公开邮箱，原先的 copy-email widget（.copy-row / .copy-row code / .copy-feedback）
   已整块删掉。要恢复：同时补回 support 页的 DOM、site.js 里的 [data-copy] 处理，三者缺一。
   复制反馈的文字色用 var(--sky-deep)，别再写死 hex。 */

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* 手机上徽标不再压在图上：绝对定位会盖掉主视觉近一半，改成图下方独立一行。
     不用 order 把图提到标题前——那会让视觉顺序与 DOM/朗读顺序不一致。 */
  .hero-art {
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-art img { border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
  .hero-badge { position: static; margin-top: 14px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .toc { columns: 1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px clamp(18px, 4vw, 32px) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-m);
    display: none;
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 13px 12px; border-radius: var(--radius-s); }
  .site-nav .btn { margin-top: 8px; }
  .header-cta { display: none; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

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

@media print {
  .site-header, .site-footer, .hero-art, .cta-band, .nav-toggle, .site-nav { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .prose { max-width: none; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
