/* ==========================================================================
   FlyingBird（飞鸟）青柠电车站设计系统 Design System
   ========================================================================== */

:root {
  --fb-bg: #F9FFFC;
  --fb-green: #66BB6A;
  --fb-green-dark: #388E3C;
  --fb-green-pale: #C8E6C9;
  --fb-green-tint: #E8F5E9;
  --fb-text: #263238;
  --fb-surface: #FFFFFF;
  --fb-border: #DDEBE1;
  --fb-muted: #607D6A;
  --fb-yellow: #F9E79F;

  /* 路线编号配色 — 保持在青柠/站牌色系内，用于区分栏目路线 */
  --fb-line-01: #66BB6A; /* 品牌评测线 */
  --fb-line-02: #4DB6AC; /* 套餐选择线 */
  --fb-line-03: #9CCC65; /* 客户端教程线 */
  --fb-line-04: #81C784; /* 网络知识线 */
  --fb-line-05: #A1887F; /* 故障排查线 */
  --fb-line-06: #E0A64D; /* 风险提示线 */

  --fb-radius-s: 6px;
  --fb-radius-m: 10px;
  --fb-radius-l: 16px;
  --fb-shadow: 0 2px 10px rgba(38, 66, 43, 0.06);
  --fb-shadow-hover: 0 6px 20px rgba(38, 66, 43, 0.10);
  --fb-maxw: 1200px;
  --fb-prose: 740px;
  --fb-dur: 220ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--fb-bg);
  color: var(--fb-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--fb-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; color: var(--fb-text); }
h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); margin: 2em 0 .7em; }
h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); margin: 1.4em 0 .5em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .4em; }

.container { max-width: var(--fb-maxw); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--fb-prose); margin: 0 auto; }
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-alt { background: var(--fb-green-tint); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,255,252,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--fb-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--fb-text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--fb-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; flex-shrink: 0;
}
.brand-zh { color: var(--fb-muted); font-weight: 500; font-size: .8rem; }

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a { color: var(--fb-text); font-size: .95rem; font-weight: 500; }
.nav-desktop a:hover { color: var(--fb-green-dark); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--fb-border); border-radius: var(--fb-radius-s);
  width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--fb-text); position: relative; transition: transform var(--fb-dur);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.nav-mobile {
  display: none; flex-direction: column; gap: 2px; padding: 10px 20px 18px;
  border-bottom: 1px solid var(--fb-border); background: var(--fb-surface);
}
.nav-mobile a { padding: 10px 4px; color: var(--fb-text); border-bottom: 1px dashed var(--fb-border); font-size: .98rem; }
.nav-mobile.is-open { display: flex; }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform var(--fb-dur), box-shadow var(--fb-dur), background var(--fb-dur);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--fb-green); color: #fff; box-shadow: var(--fb-shadow); }
.btn-primary:hover { background: var(--fb-green-dark); box-shadow: var(--fb-shadow-hover); }
.btn-secondary { background: transparent; color: var(--fb-green-dark); border-color: var(--fb-green-pale); }
.btn-secondary:hover { background: var(--fb-green-tint); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Hero / Station ---------- */
.hero { padding: 52px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.station-plate {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fb-surface); border: 2px solid var(--fb-green);
  border-radius: 999px; padding: 6px 16px 6px 6px; font-size: .82rem; font-weight: 700;
  color: var(--fb-green-dark); margin-bottom: 20px;
}
.station-plate .num { background: var(--fb-green); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .78rem; }

.hero p.lead { font-size: 1.08rem; color: var(--fb-muted); max-width: 620px; }
.hero .note {
  margin-top: 18px; padding: 12px 16px; background: var(--fb-green-tint);
  border-left: 3px solid var(--fb-green); border-radius: var(--fb-radius-s);
  font-size: .88rem; color: var(--fb-muted);
}
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* Departure-board style hero visual */
.board {
  background: #1F2A24; color: var(--fb-green-tint); border-radius: var(--fb-radius-l);
  padding: 22px 20px; font-family: "Courier New", monospace; box-shadow: var(--fb-shadow-hover);
}
.board-title { display: flex; justify-content: space-between; font-size: .78rem; color: var(--fb-yellow); border-bottom: 1px dashed rgba(249,231,159,.35); padding-bottom: 10px; margin-bottom: 10px; letter-spacing: .05em; }
.board-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(200,230,201,.12); font-size: .88rem; }
.board-row:last-child { border-bottom: none; }
.board-row .stop { color: #fff; font-weight: 700; }
.board-row .status { color: var(--fb-green-pale); font-size: .8rem; }

/* ---------- Route Map (使用路线图) ---------- */
.route-map { display: flex; justify-content: space-between; gap: 8px; margin: 28px 0; position: relative; }
.route-map::before {
  content: ""; position: absolute; top: 19px; left: 5%; right: 5%; height: 3px;
  background: repeating-linear-gradient(90deg, var(--fb-green-pale) 0 10px, transparent 10px 16px);
}
.route-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.route-step .dot {
  width: 40px; height: 40px; border-radius: 50%; background: var(--fb-surface); border: 3px solid var(--fb-green);
  color: var(--fb-green-dark); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-weight: 800;
}
.route-step .label { font-size: .84rem; font-weight: 600; color: var(--fb-text); }
@media (max-width: 760px) {
  .route-map { flex-direction: column; gap: 22px; }
  .route-map::before { top: 0; bottom: 0; left: 19px; right: auto; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--fb-green-pale) 0 10px, transparent 10px 16px); }
  .route-step { display: flex; align-items: center; gap: 14px; text-align: left; }
  .route-step .dot { margin: 0; flex-shrink: 0; }
}

/* ---------- Line tags (FB-01 style) ---------- */
.line-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800;
  padding: 4px 10px; border-radius: 6px; color: #fff; letter-spacing: .02em;
}
.line-tag.l01 { background: var(--fb-line-01); }
.line-tag.l02 { background: var(--fb-line-02); }
.line-tag.l03 { background: var(--fb-line-03); }
.line-tag.l04 { background: var(--fb-line-04); }
.line-tag.l05 { background: var(--fb-line-05); }
.line-tag.l06 { background: var(--fb-line-06); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stop-card {
  background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: var(--fb-radius-m);
  padding: 22px; box-shadow: var(--fb-shadow); transition: box-shadow var(--fb-dur), transform var(--fb-dur);
  display: flex; flex-direction: column; height: 100%;
}
.stop-card:hover { box-shadow: var(--fb-shadow-hover); transform: translateY(-2px); }
.stop-card h3 { margin-top: 0; font-size: 1.08rem; }
.stop-card .tags { margin-bottom: 12px; }
.stop-card p { color: var(--fb-muted); font-size: .92rem; flex-grow: 1; }
.stop-card .more { font-size: .88rem; font-weight: 700; margin-top: 10px; }

/* ---------- Info board table (站牌信息表) ---------- */
.info-board { width: 100%; border-collapse: collapse; background: var(--fb-surface); border-radius: var(--fb-radius-m); overflow: hidden; border: 1px solid var(--fb-border); }
.info-board tr:not(:last-child) th, .info-board tr:not(:last-child) td { border-bottom: 1px solid var(--fb-border); }
.info-board th, .info-board td { text-align: left; padding: 14px 18px; font-size: .94rem; vertical-align: top; }
.info-board th { width: 30%; background: var(--fb-green-tint); color: var(--fb-green-dark); font-weight: 700; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0; }
.table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--fb-surface); }
.table-scroll th, .table-scroll td { border: 1px solid var(--fb-border); padding: 10px 14px; font-size: .9rem; text-align: left; }
.table-scroll th { background: var(--fb-green-tint); color: var(--fb-green-dark); }

/* ---------- Answer / Callout blocks ---------- */
.callout {
  background: var(--fb-surface); border: 1px solid var(--fb-border); border-left: 4px solid var(--fb-green);
  border-radius: var(--fb-radius-s); padding: 18px 20px; margin: 1.4em 0;
}
.callout-title { font-weight: 800; color: var(--fb-green-dark); font-size: .85rem; text-transform: none; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.callout.risk { border-left-color: var(--fb-line-06); background: #FFF8E7; }
.callout.risk .callout-title { color: #8A5A00; }
.callout.summary { border-left-color: var(--fb-line-02); }

/* ---------- FAQ (native details/summary, no JS) ---------- */
.faq-item { border: 1px solid var(--fb-border); border-radius: var(--fb-radius-m); background: var(--fb-surface); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--fb-green); flex-shrink: 0; transition: transform var(--fb-dur); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--fb-muted); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .84rem; color: var(--fb-muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--fb-muted); }
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .current { color: var(--fb-text); font-weight: 600; }

/* ---------- Tags / badges ---------- */
.badge { display: inline-block; background: var(--fb-green-tint); color: var(--fb-green-dark); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 0 6px 6px 0; }
.badge.yellow { background: var(--fb-yellow); color: #6b5400; }

/* ---------- Meta rows (updated date etc.) ---------- */
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: .83rem; color: var(--fb-muted); margin-bottom: 8px; }

/* ---------- Article layout ---------- */
.article-header { padding: 28px 0 8px; }
.article-body h2 { border-top: 1px solid var(--fb-border); padding-top: .7em; }
.article-body h2:first-child { border-top: none; padding-top: 0; }
.toc { background: var(--fb-green-tint); border-radius: var(--fb-radius-m); padding: 16px 20px; margin: 1.4em 0; font-size: .92rem; }
.toc-title { font-weight: 800; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }

/* ---------- Related links ---------- */
.related-links { display: grid; gap: 10px; }
.related-links a { display: block; background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: var(--fb-radius-s); padding: 12px 16px; font-weight: 600; }
.related-links a:hover { border-color: var(--fb-green); background: var(--fb-green-tint); text-decoration: none; }

/* ---------- Section headings ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .view-all { font-size: .9rem; font-weight: 700; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--fb-green-dark); background: var(--fb-green-tint); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: #1F2A24; color: var(--fb-green-tint); padding: 52px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .84rem; letter-spacing: .04em; margin: 0 0 14px; }
.site-footer a { color: var(--fb-green-pale); font-size: .88rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(200,230,201,.15); margin-top: 36px; padding-top: 20px; font-size: .8rem; color: var(--fb-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Pros/Cons ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons .box { border-radius: var(--fb-radius-m); padding: 20px; border: 1px solid var(--fb-border); }
.pros-cons .pros { background: var(--fb-green-tint); }
.pros-cons .cons { background: #FBF6EC; }
.pros-cons h3 { margin-top: 0; }

/* ---------- 404 ---------- */
.error-station { text-align: center; padding: 90px 0; }
.error-station .code { font-size: 5rem; }

/* Utility */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--fb-muted); }
.center { text-align: center; }
