/* 特价机票网 9191jp.com · 2026 */
:root {
  --ink: #0b1a2b;
  --ink2: #33475f;
  --muted: #6b7c93;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: #dde6f1;
  --line2: #edf3fa;
  --navy: #0c2138;
  --navy2: #143a62;
  --blue: #1656a8;
  --blue2: #2f7ad0;
  --sky: #e9f2fc;
  --amber: #e29a2d;
  --amber2: #fff5e2;
  --red: #b83a2c;
  --r: 14px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; }
button { font: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 880px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; color: var(--ink); }
.brand img { width: auto; height: 40px; }
.brand-sub { display: flex; flex-direction: column; line-height: 1.25; padding-left: 12px; border-left: 1px solid var(--line); }
.brand-sub b { font-size: 14px; letter-spacing: .02em; }
.brand-sub i { font-style: normal; font-size: 10.5px; color: var(--muted); letter-spacing: .06em; }
.mainnav { margin-left: auto; }
.nav-in { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 8px 11px; border-radius: 8px; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.nav-link:hover { background: var(--sky); color: var(--blue); }
.nav-link.is-on { color: var(--blue); font-weight: 700; background: var(--sky); }
.hdr-act { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.hdr-search { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink2); border: 1px solid var(--line); }
.hdr-search:hover { background: var(--sky); color: var(--blue); }
.burger { display: none; width: 38px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 9px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 3px 0; border-radius: 2px; }

.announce { background: var(--navy); color: #dfe9f5; }
.announce-in { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 13px; }
.announce-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(226,154,45,.18); }
.announce p { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce a { color: #9dc0e4; font-size: 12px; white-space: nowrap; }
.announce a:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--amber); color: #241603; font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; transition: .15s; }
.btn:hover { background: #efab41; color: #241603; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-line { background: #fff; border-color: var(--line); color: var(--blue); }
.btn-line:hover { background: var(--sky); color: var(--blue); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; margin-top: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(155deg, #081a2e 0%, #0f3155 55%, #0a2542 100%); color: #fff; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(120,170,225,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(120,170,225,.12) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 72%); opacity: .55; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 54px; align-items: center; padding-top: 62px; padding-bottom: 66px; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--amber); text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { display: block; color: #a8c8e8; font-weight: 700; }
.lede { margin-top: 18px; color: #c3d6ea; font-size: 16.5px; max-width: 560px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; gap: 34px; list-style: none; padding: 0; margin-top: 34px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--mono); font-size: 24px; color: #fff; }
.hero-stats span { font-size: 12px; color: #8fadc9; }

.board { background: rgba(255,255,255,.055); border: 1px solid rgba(150,190,230,.2); border-radius: 16px; padding: 18px 20px 14px; backdrop-filter: blur(8px); }
.board-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: #89aecf; border-bottom: 1px solid rgba(150,190,230,.18); padding-bottom: 10px; }
.board-list { list-style: none; padding: 0; margin: 0; }
.board-list li { border-bottom: 1px dashed rgba(150,190,230,.16); }
.board-list a { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; color: #eaf3fc; }
.board-list a:hover { color: #fff; }
.b-code { font-size: 15px; font-weight: 700; flex: 0 0 auto; }
.b-apt { font-family: var(--mono); font-size: 11px; color: #7d9fbe; flex: 1; }
.b-price { font-family: var(--mono); font-size: 14px; color: var(--amber); }
.b-price i { font-style: normal; font-size: 10px; color: #93b2ce; margin-left: 2px; }
.board-note { margin-top: 12px; font-size: 10.5px; color: #7f9cb8; line-height: 1.5; }

/* ---------- Sections ---------- */
.sec { padding: 62px 0; }
.sec-alt { background: #eaf1f9; }
.sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 26px; }
.sec-idx { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--blue); width: 100%; margin: 0; }
.sec-title { font-size: 26px; font-weight: 800; }
.sec-sub { color: var(--muted); font-size: 13.5px; }
.sec-more { margin-left: auto; font-size: 13.5px; color: var(--blue); white-space: nowrap; }
.sec-more:hover { text-decoration: underline; }
.table-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* ---------- Price table ---------- */
.ptable { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ptable-head, .ptable-row { display: grid; grid-template-columns: 2.1fr .9fr .9fr 1fr 1.1fr; gap: 12px; align-items: center; padding: 13px 20px; }
.ptable-head { background: #f0f6fc; font-size: 11.5px; letter-spacing: .08em; color: var(--muted); font-family: var(--mono); }
.ptable-row { border-top: 1px solid var(--line2); color: var(--ink); }
.ptable-row:hover { background: #f8fbff; }
.p-route b { display: block; font-size: 15px; }
.p-route i { font-style: normal; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.ptable-row span { font-family: var(--mono); font-size: 14px; }
.ptable-row .p-high { color: var(--red); }
.ptable-row span[data-l]::before { content: none; }

/* ---------- Boarding pass cards ---------- */
.bp-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.bp-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.bp { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 148px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); transition: .18s; }
.bp::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--blue2), var(--amber)); }
.bp:hover { border-color: #bcd4ee; box-shadow: 0 10px 24px rgba(18,58,98,.08); transform: translateY(-2px); color: var(--ink); }
.bp-main { padding: 18px 18px 16px 20px; min-width: 0; }
.bp-top { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--ink2); }
.bp-code { font-weight: 700; letter-spacing: .04em; }
.bp-arrow { color: var(--amber); }
.bp-tag { margin-left: auto; font-family: inherit; font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.bp h3 { font-size: 18px; margin: 8px 0 4px; }
.bp-main p { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.bp-stub { background: #f3f8fe; border-left: 1px dashed #c4d6e9; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 14px 10px; position: relative; }
.bp-stub::before, .bp-stub::after { content: ""; position: absolute; left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.bp-stub::before { top: -8px; }
.bp-stub::after { bottom: -8px; }
.sec-alt .bp-stub::before, .sec-alt .bp-stub::after { background: #eaf1f9; }
.bp-stub span { font-size: 10.5px; color: var(--muted); }
.bp-stub strong { font-family: var(--mono); font-size: 22px; color: var(--blue); line-height: 1.2; margin-top: 2px; }
.bp-stub em { font-style: normal; font-size: 10px; color: var(--muted); }

/* ---------- Picks ---------- */
.picks { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 22px; }
.pick-lead { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: var(--r); padding: 28px 28px 24px; color: var(--ink); display: flex; flex-direction: column; }
.pick-lead:hover { border-color: #c9dcf1; color: var(--ink); box-shadow: 0 12px 28px rgba(18,58,98,.07); }
.pick-cat { align-self: flex-start; font-size: 11px; color: var(--blue); background: var(--sky); border-radius: 999px; padding: 2px 10px; }
.pick-lead h3 { font-size: 25px; line-height: 1.42; margin: 14px 0 12px; }
.pick-lead p { color: var(--muted); font-size: 14px; }
.pick-meta { margin-top: auto; padding-top: 20px; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.pick-list { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pick-list li { border-bottom: 1px solid var(--line2); }
.pick-list li:last-child { border-bottom: 0; }
.pick-list a { display: block; padding: 14px 20px; color: var(--ink); }
.pick-list a:hover { background: #f8fbff; color: var(--ink); }
.pick-cat.sm { display: inline-block; margin-bottom: 5px; }
.pick-list h4 { font-size: 15px; line-height: 1.5; font-weight: 700; }
.pick-date { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* ---------- Tool & ref & cat grids ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.tool-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px 18px; color: var(--ink); display: flex; flex-direction: column; transition: .18s; }
.tool-card:hover { border-color: #bcd4ee; box-shadow: 0 10px 22px rgba(18,58,98,.07); transform: translateY(-2px); color: var(--ink); }
.tool-ico { font-family: var(--mono); font-size: 22px; color: var(--amber); line-height: 1; margin-bottom: 14px; }
.tool-card b { font-size: 15.5px; }
.tool-card p { margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.tool-go { margin-top: auto; padding-top: 12px; font-size: 11.5px; color: var(--blue); }
.ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.ref-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; color: var(--ink); display: flex; flex-direction: column; transition: .18s; }
.ref-card:hover { border-color: #bcd4ee; box-shadow: 0 10px 22px rgba(18,58,98,.07); color: var(--ink); }
.ref-ico { font-family: var(--mono); font-size: 20px; color: var(--blue); margin-bottom: 10px; }
.ref-card b { font-size: 15px; }
.ref-card p { margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.ref-go { margin-top: auto; padding-top: 10px; font-size: 11.5px; color: var(--blue); }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; color: var(--ink); display: flex; flex-direction: column; }
.cat-card:hover { border-color: #bcd4ee; color: var(--ink); }
.cat-glyph { font-family: var(--mono); font-size: 22px; color: var(--amber); }
.cat-card b { margin-top: 8px; font-size: 16px; }
.cat-card p { font-size: 12px; color: var(--muted); margin-top: 3px; }


.ref-cta { grid-column: span 2; background: var(--navy); border-color: var(--navy); color: #dbe8f5; justify-content: center; }
.ref-cta:hover { background: #12304f; border-color: #12304f; color: #fff; }
.ref-cta .ref-ico { color: var(--amber); }
.ref-cta b { color: #fff; font-size: 17px; }
.ref-cta p { color: #a7bfd6; font-size: 12.5px; }
.ref-cta .ref-go { color: #e8b45a; }
@media (max-width: 720px) { .ref-cta { grid-column: auto; } }

/* ---------- Data ---------- */
.data-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.data-strip b { display: block; font-family: var(--mono); font-size: 30px; color: var(--navy2); letter-spacing: -.02em; }
.data-strip b span { font-size: 12px; color: var(--muted); margin-left: 3px; font-family: inherit; }
.data-strip p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 6px; }
.home-note { display: flex; align-items: center; gap: 26px; margin-top: 22px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; }
.home-note p { font-size: 13px; color: var(--ink2); line-height: 1.7; }
.home-note .btn { flex: 0 0 auto; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.stat-num { font-family: var(--mono); font-size: 32px; color: var(--navy2); line-height: 1.2; }
.stat-num span { font-size: 12px; color: var(--muted); margin-left: 4px; font-family: inherit; }
.stat-label { font-size: 13.5px; margin-top: 8px; color: var(--ink2); }
.stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Page head ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 34px 0 32px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-top: 6px; }
.page-lede { margin-top: 14px; color: var(--muted); font-size: 15.5px; max-width: 760px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { color: #b9c7d8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; color: var(--ink2); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; }
.chip i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.chip:hover { border-color: #bcd4ee; color: var(--blue); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-on i { color: #a9c4e0; }
.chip-ghost { border-style: dashed; color: var(--blue); }

/* ---------- Routes list ---------- */
.sec-route { padding-top: 46px; padding-bottom: 12px; }
.route-list { border-top: 1px solid var(--line); }
.route-row { display: grid; grid-template-columns: 170px minmax(0,1fr) 170px; gap: 20px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.route-row:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.rr-code { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--ink2); }
.rr-code i { font-style: normal; color: var(--amber); }
.rr-main h3 { font-size: 17px; }
.rr-main h3 em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.rr-main p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.rr-price { text-align: right; }
.rr-price span { display: block; font-size: 10.5px; color: var(--muted); }
.rr-price b { font-family: var(--mono); font-size: 19px; color: var(--blue); }
.rr-price i { font-style: normal; font-size: 10px; color: var(--muted); margin-left: 2px; }

/* ---------- Route detail ---------- */
.page-head-route { padding-bottom: 38px; }
.route-hero { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 32px; align-items: center; }
.rh-codes { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--navy); border-radius: 14px; color: #fff; }
.rh-codes div { display: flex; flex-direction: column; }
.rh-codes b { font-family: var(--mono); font-size: 26px; letter-spacing: .02em; }
.rh-codes span { font-size: 10px; color: #96b4d1; margin-top: 2px; }
.rh-codes i { font-style: normal; color: var(--amber); font-size: 18px; }
.route-body { display: grid; grid-template-columns: minmax(0,1fr) 318px; gap: 34px; padding-top: 40px; padding-bottom: 56px; align-items: start; }
.route-main { min-width: 0; }
.price-band { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 30px; }
.pb { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue2); border-radius: 12px; padding: 16px 16px 14px; }
.pb-mid { border-top-color: var(--navy2); }
.pb-high { border-top-color: var(--amber); }
.pb span { font-size: 11px; color: var(--muted); }
.pb b { display: block; font-family: var(--mono); font-size: 23px; margin-top: 4px; color: var(--navy2); }
.pb b i { font-style: normal; font-size: 10px; color: var(--muted); margin-left: 2px; }
.pb p { font-size: 10.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.route-side { position: sticky; top: 86px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.side-h { font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; font-family: var(--mono); }
.facts { margin: 0; }
.facts div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line2); font-size: 12.5px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { flex: 0 0 76px; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink2); }
.side-cta { background: var(--navy); border-color: var(--navy); color: #d7e5f4; }
.side-cta .side-h { color: #7fa4c9; }
.side-cta p { font-size: 12.5px; line-height: 1.6; margin-bottom: 12px; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { border-bottom: 1px dashed var(--line2); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 12.5px; color: var(--ink2); }
.side-links a span { color: var(--muted); font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
.side-links a:hover { color: var(--blue); }

/* ---------- Prose ---------- */
.prose { font-size: 16px; line-height: 1.85; color: #1c2f45; min-width: 0; }
.prose h2 { font-size: 23px; margin: 36px 0 14px; padding-left: 12px; border-left: 3px solid var(--amber); line-height: 1.45; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin: 7px 0; }
.prose strong { color: #0a1a2c; }
.prose .note { font-size: 13px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 12px; }
.prose .callout { background: #f2f8fe; border: 1px solid #d9e8f8; border-radius: 12px; padding: 16px 18px; margin: 24px 0; }
.prose .callout p { margin: 0; font-size: 13.5px; color: var(--ink2); }
.prose .tablewrap, .tablewrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.prose table, .dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 480px; }
.prose th, .dtable th { background: #f1f6fc; text-align: left; padding: 10px 12px; font-weight: 600; color: var(--ink2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose td, .dtable td { padding: 10px 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.prose tr:last-child td, .dtable tr:last-child td { border-bottom: 0; }
.tip-list { padding-left: 0; list-style: none; counter-reset: tip; }
.tip-list li { position: relative; padding-left: 34px; margin: 10px 0; }
.tip-list li::before { counter-increment: tip; content: "0" counter(tip); position: absolute; left: 0; top: 2px; font-family: var(--mono); font-size: 11px; color: var(--amber); }

/* ---------- Post list ---------- */
.sec-cat-block { padding-top: 40px; padding-bottom: 18px; }
.post-list { border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 20px; padding: 18px 2px; border-bottom: 1px solid var(--line); color: var(--ink); }
.post-row:hover { color: var(--ink); background: rgba(255,255,255,.65); }
.pr-main h2, .pr-main h3 { font-size: 17.5px; line-height: 1.55; }
.pr-main p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.pr-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pr-tags span { font-size: 10.5px; color: var(--blue); background: var(--sky); border-radius: 999px; padding: 1px 8px; }
.pr-meta { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pr-meta i { display: block; font-style: normal; margin-top: 3px; color: #8d9db1; }
.post-list-lg .post-row { padding: 22px 2px; }

/* ---------- Article ---------- */
.page-head-art { padding-bottom: 30px; }
.art-cat { display: inline-block; font-size: 11.5px; color: var(--blue); background: var(--sky); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.page-head-art h1 { font-size: clamp(26px, 3.2vw, 38px); max-width: 840px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.art-meta i { font-style: normal; }
.art-wrap { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 40px; padding-top: 40px; padding-bottom: 56px; align-items: start; }
.art-main { min-width: 0; }
.art-wrap .prose > * { min-width: 0; }
.art-side { position: sticky; top: 86px; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.toc-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 5px 0; font-size: 12.5px; }
.art-foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.art-foot p { font-size: 12.5px; color: var(--muted); }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 26px; }
.post-nav a, .post-nav > span { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.post-nav span { font-size: 10.5px; color: var(--muted); font-family: var(--mono); }
.post-nav b { display: block; font-size: 13px; line-height: 1.5; margin-top: 3px; color: var(--ink); font-weight: 600; }
.post-nav .pn-next { text-align: right; }

/* ---------- Ref detail ---------- */
.ref-body { padding-top: 38px; padding-bottom: 56px; }
.page-head-ref h1 { font-size: clamp(25px, 3vw, 34px); }

/* ---------- Tools ---------- */
.calc-wrap { padding-top: 34px; }
.calc { display: grid; grid-template-columns: minmax(0, 420px) minmax(0,1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.calc-form { padding: 26px; background: #fbfdff; border-right: 1px dashed var(--line); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink2); margin-bottom: 5px; }
.field input, .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14.5px; background: #fff; color: var(--ink); font-family: inherit; }
.field input:focus, .field select:focus { outline: 2px solid rgba(47,122,208,.25); border-color: var(--blue2); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.calc-note { font-size: 11px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.calc-out { padding: 26px; }
.co-empty { color: var(--muted); font-size: 13px; }
.co-main { padding-bottom: 16px; border-bottom: 1px solid var(--line2); }
.co-main span { display: block; font-size: 12px; color: var(--muted); }
.co-main b { font-family: var(--mono); font-size: 34px; line-height: 1.25; color: var(--navy2); letter-spacing: -.02em; }
.co-main em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 6px; }
.co-main.ok b { color: #137a52; }
.co-main.warn b { color: #a86a12; }
.co-main.bad b { color: var(--red); }
.co-rows { list-style: none; padding: 0; margin: 8px 0 0; }
.co-rows li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line2); font-size: 12.5px; color: var(--ink2); }
.co-rows li b { font-family: var(--mono); font-weight: 600; color: var(--ink); white-space: nowrap; }
.co-tip { margin-top: 14px; background: var(--amber2); border: 1px solid #f3dfb8; border-radius: 8px; padding: 11px 13px; font-size: 12.5px; line-height: 1.65; color: #5c4416; }
.tool-prose { padding-top: 38px; padding-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.faq details p { margin: 8px 0 0; font-size: 13.5px; color: var(--ink2); }

/* ---------- Search ---------- */
.search-form { display: flex; gap: 10px; margin-top: 20px; max-width: 620px; }
.search-form input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; }
.search-sum { margin-top: 16px; font-size: 13px; color: var(--muted); }
.search-list { border-top: 1px solid var(--line); }
.search-item { display: block; padding: 18px 2px; border-bottom: 1px solid var(--line); color: var(--ink); }
.search-item:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.search-item h2 { font-size: 17px; margin-top: 6px; }
.search-item p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.search-item i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.tag { display: inline-block; font-size: 10px; color: var(--blue); background: var(--sky); border-radius: 999px; padding: 1px 8px; }
.search-empty { padding: 30px 0; }
.search-empty p { color: var(--muted); margin-bottom: 16px; }

/* ---------- Error pages ---------- */
.err-page { padding: 70px 0 90px; }
.err-page h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 6px; }
.err-back { margin-top: 28px; }
.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.start-grid a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; color: var(--ink); }
.start-grid a:hover { border-color: #bcd4ee; color: var(--ink); }
.start-grid b { display: block; font-size: 15px; }
.start-grid span { font-size: 12px; color: var(--muted); }

/* ---------- Pager ---------- */
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 26px; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; background: #fff; }
.pager .cur { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager .gap { border: 0; background: transparent; }

/* ---------- Ad ---------- */
.ad-slot { max-width: 1180px; margin: 0 auto; padding: 0 24px; overflow: hidden; text-align: center; }
.ad-slot.ad-empty { height: 0; padding: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.ftr { background: var(--navy); color: #a9bfd6; margin-top: 10px; }
.ftr-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-top: 48px; padding-bottom: 30px; }
.ftr-logo { background: #fff; display: inline-block; padding: 7px 10px; border-radius: 8px; margin-bottom: 12px; }
.ftr-logo img { width: 118px; height: auto; }
.ftr-name { color: #fff; font-weight: 700; font-size: 14px; }
.ftr-desc { font-size: 12.5px; line-height: 1.75; margin-top: 8px; max-width: 360px; }
.ftr-note { font-size: 11px; line-height: 1.7; color: #7f9cba; margin-top: 10px; max-width: 380px; }
.ftr-h { color: #fff; font-size: 12.5px; letter-spacing: .06em; margin-bottom: 12px; }
.ftr-col a { display: block; font-size: 12.5px; color: #b7cbe0; padding: 4px 0; }
.ftr-col a:hover { color: #fff; }
.ftr-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.09); font-size: 11.5px; color: #8ba6c1; }
.ftr-legal a { color: #b7cbe0; }
.ftr-legal span { margin: 0 8px; color: #4d6a86; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-in { gap: 34px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .data-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0,1fr); padding-top: 46px; padding-bottom: 48px; }
  .hero-stats { gap: 24px; }
  .bp-grid, .bp-grid-3 { grid-template-columns: minmax(0,1fr); }
  .picks { grid-template-columns: minmax(0,1fr); }
  .art-wrap, .route-body { grid-template-columns: minmax(0,1fr); }
  .art-side, .route-side { position: static; }
  .calc { grid-template-columns: minmax(0,1fr); }
  .calc-form { border-right: 0; border-bottom: 1px dashed var(--line); }
  .route-hero { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .ftr-in { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .start-grid, .cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ref-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .brand-sub { display: none; }
  .nav-in { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 18px 16px; flex-direction: column; align-items: stretch; box-shadow: 0 18px 30px rgba(9,30,55,.1); }
  .mainnav.open .nav-in { display: flex; }
  .nav-link { padding: 10px 12px; }
  .burger { display: block; }
  .hdr-act .btn { display: none; }
  .hdr-in { gap: 12px; }
  .mainnav { margin-left: auto; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .sec { padding: 46px 0; }
  .sec-title { font-size: 22px; }
  .sec-more { margin-left: 0; width: 100%; }
  .hero h1 { font-size: 34px; }
  .hero-stats { flex-wrap: wrap; gap: 18px 28px; }
  .announce a { display: none; }
  .announce p { white-space: normal; font-size: 12px; line-height: 1.5; padding: 6px 0; }
  .announce-in { align-items: flex-start; padding: 4px 0; }
  .announce-dot { margin-top: 10px; }
  .ptable-head { display: none; }
  .ptable-row { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 14px; padding: 15px 16px; }
  .p-route { grid-column: 1 / -1; }
  .ptable-row span { font-size: 14px; }
  .ptable-row span[data-l]::before { content: attr(data-l); display: block; font-size: 10px; color: var(--muted); font-family: inherit; margin-bottom: 1px; }
  .bp { grid-template-columns: minmax(0,1fr) 118px; }
  .bp-stub strong { font-size: 18px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ref-grid { grid-template-columns: minmax(0,1fr); }
  .data-strip { grid-template-columns: minmax(0,1fr); }
  .stat-grid { grid-template-columns: minmax(0,1fr); }
  .route-row { grid-template-columns: minmax(0,1fr) auto; gap: 6px 14px; }
  .rr-code { grid-column: 1 / -1; font-size: 11.5px; }
  .rr-price { text-align: right; }
  .price-band { grid-template-columns: minmax(0,1fr); }
  .post-row { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .pr-meta { text-align: left; display: flex; gap: 12px; }
  .pr-meta i { display: inline; margin: 0; }
  .post-nav { grid-template-columns: minmax(0,1fr); }
  .post-nav .pn-next { text-align: left; }
  .home-note { flex-direction: column; align-items: flex-start; }
  .ftr-in { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .ftr-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .start-grid, .cat-grid { grid-template-columns: minmax(0,1fr); }
  .route-hero { gap: 14px; }
  .rh-codes b { font-size: 22px; }
  .calc-form, .calc-out { padding: 20px; }
  .row2 { grid-template-columns: minmax(0,1fr); }
  .search-form { flex-direction: column; }
  .crumbs span[aria-current="page"] { display: inline-block; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  .prose { font-size: 15.5px; }
  .prose h2 { font-size: 20px; }
  .prose table, .dtable { min-width: 520px; }
  .tool-prose, .ref-body { padding-top: 30px; }
}
