:root {
  color-scheme: light;
  --ink: #142721;
  --muted: #4b6158;
  --white: #fff;
  --paper: #f7f9f7;
  --tint: #eaf1eb;
  --line: #d3dfd6;
  --dark: #101e1b;
  --mint: #b9f6a9;
  --deep: #1b4937;
  --radius: 1.15rem;
  --shadow: 0 12px 32px rgba(15, 42, 29, 0.07);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.65; }
a { color: inherit; text-underline-offset: 0.25em; }
button { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #db9430; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
small { font-size: 0.875rem; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
main, main > section { scroll-margin-top: 4.5rem; }

.topbar { position: sticky; top: 0; z-index: 3; background: var(--dark); color: var(--white); border-bottom: 1px solid #30423b; }
.topbar-inner { min-height: 3.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; white-space: nowrap; font-weight: 750; text-decoration: none; }
.mark { display: flex; align-items: end; gap: .17rem; padding: .32rem; border-radius: .42rem; background: var(--mint); }
.mark i { width: .18rem; height: .48rem; background: var(--dark); border-radius: .09rem; }
.mark i:nth-child(2) { height: .66rem; }
.mark i:nth-child(3) { height: .88rem; }
.desktop-nav { display: flex; gap: 1.4rem; }
.desktop-nav a { display: inline-grid; align-items: center; min-height: 2.75rem; color: #d7e5dc; font-size: .9rem; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--mint); }
.share { min-height: 2.75rem; min-width: 3.85rem; border: 1px solid #567167; border-radius: 2rem; background: none; color: var(--white); font-size: .9rem; padding: .25rem .8rem; }
.share:hover { border-color: var(--mint); color: var(--mint); }

.hero { background: radial-gradient(ellipse at 88% 10%, #254538 0, transparent 62%), var(--dark); color: var(--white); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 4rem; padding-block: clamp(3.4rem, 8vw, 7.2rem); }
.eyebrow { color: #2c634b; font-size: .88rem; font-weight: 750; letter-spacing: .08em; }
.hero-label { color: var(--mint); }
.hero-label span { margin-inline: .3em; opacity: .7; }
h1 { margin: .5rem 0 .95rem; font-size: clamp(3rem, 7vw, 6.25rem); line-height: 1.04; letter-spacing: -.05em; }
h1 span { color: var(--mint); font-family: "Avenir Next", system-ui, sans-serif; font-weight: 750; letter-spacing: -.075em; }
.hero-lead { max-width: 30rem; font-size: clamp(1.05rem, 2vw, 1.24rem); color: #d0e0d6; }
.start { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; margin-top: 1.45rem; padding: .55rem 1.35rem; border-radius: .65rem; background: var(--mint); color: var(--dark); font-weight: 800; text-decoration: none; }
.start:hover { background: #ddffd4; }
.scale { padding: clamp(1.15rem, 3vw, 2rem); border: 1px solid #58776a; border-radius: var(--radius); background: #1e332d; }
.scale figcaption { color: #f1faf4; font-weight: 730; }
.scale-data { display: flex; justify-content: space-between; gap: 1rem; margin-block: .55rem .8rem; }
.scale-data strong { display: block; font-family: "Avenir Next", system-ui, sans-serif; font-size: clamp(2.65rem, 6vw, 4.15rem); font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -.05em; }
.scale-data strong span { padding-inline-start: .08em; font-size: .52em; font-weight: 700; }
.scale-data small { display: block; color: #d0e0d6; }
.scale-next { text-align: right; color: var(--mint); }
.scale-track { position: relative; height: .56rem; margin-bottom: .85rem; border-radius: .5rem; background: #405b51; overflow: hidden; }
.scale-track span, .scale-track i { position: absolute; height: 100%; left: 0; top: 0; }
.scale-track span { width: 51%; background: var(--mint); border-radius: .5rem; }
.scale-track i { width: 41%; background: #6d9b86; border-right: 2px solid var(--dark); }
.scale p { color: #d0e0d6; font-size: .9rem; }
.scale a { display: inline-block; color: var(--mint); white-space: nowrap; }

.chapter { padding-block: clamp(2.55rem, 6vw, 5.25rem); }
.chapter-header { margin-bottom: 1.55rem; }
.chapter-header h2 { max-width: 22ch; margin: .2rem 0 .45rem; font-size: clamp(1.75rem, 4.8vw, 3.05rem); line-height: 1.22; letter-spacing: -.035em; }
.chapter-header > p:last-child { max-width: 42rem; color: var(--muted); }
.section-tint { background: var(--tint); }
.chain { display: grid; gap: .65rem; }
.layer { --label: #d8eedb; background: var(--white); border: 1px solid var(--line); border-radius: .9rem; overflow: clip; }
.layer-platform { --label: #cfe5e9; }
.layer-traffic { --label: #e9e0c6; }
.layer-support { --label: #dee4e0; }
.layer[open] { border-color: #7fa88d; box-shadow: var(--shadow); }
.layer summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; min-height: 4.45rem; padding: .7rem .95rem; list-style: none; cursor: pointer; }
.layer summary::-webkit-details-marker { display: none; }
.layer summary:focus-visible { outline-offset: -4px; }
.layer summary strong, .layer summary small { display: block; }
.layer summary strong { font-size: 1.12rem; }
.layer summary small { color: var(--muted); line-height: 1.35; }
.layer-tag { min-width: 3.15rem; padding: .25rem .45rem; border-radius: .45rem; background: var(--label); color: #1e4433; font-size: .89rem; font-weight: 750; text-align: center; }
.plus { position: relative; display: block; width: 1.1rem; height: 1.1rem; margin-inline: .15rem; }
.plus::before, .plus::after { content: ""; position: absolute; top: calc(50% - 1px); left: 7%; width: 86%; height: 2px; background: var(--deep); border-radius: 2px; }
.plus::after { transform: rotate(90deg); }
.layer[open] .plus::after { transform: rotate(0); }
.layer-detail { border-top: 1px solid var(--line); padding: .85rem .95rem 1rem; }
.layer-detail .examples { margin-top: .45rem; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }

.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.route { padding: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.route.featured { border-color: #789e87; box-shadow: var(--shadow); }
.route h3, .case h3 { font-size: 1.2rem; line-height: 1.35; }
.route p { color: var(--muted); }
.path { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .7rem 0; padding: 0; }
.path li { display: flex; align-items: center; gap: .3rem; color: var(--deep); font-size: .875rem; font-weight: 720; white-space: nowrap; }
.path li + li::before { content: ""; display: inline-block; width: .48rem; height: .48rem; margin-inline: 0 .2rem; border-top: 2px solid #6a8778; border-right: 2px solid #6a8778; transform: rotate(45deg); }
.case { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .85rem; padding: 1.15rem; border: 1px solid #a1baa8; background: #deeee1; border-radius: var(--radius); }
.case h3 { margin-block: .15rem .26rem; }
.case p:last-child { color: var(--muted); }
.source-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--deep); text-decoration-thickness: 1px; font-size: .9rem; font-weight: 750; }
.case .source-link { flex: 0 0 auto; }

.money-grid { display: grid; grid-template-columns: 1.14fr 1fr; gap: .85rem; align-items: stretch; }
.money-chart, .ledger { padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.money-chart figcaption { font-weight: 750; }
.bar { display: grid; grid-template-columns: 25fr 20fr 25fr 30fr; overflow: hidden; border-radius: .5rem; margin-block: .65rem; }
.bar > span { padding: .45rem .2rem; font-weight: 820; font-variant-numeric: tabular-nums; text-align: center; }
.bar-tax { background: #e4ece8; color: var(--ink); }
.bar-content { background: #a4cbbc; color: var(--ink); }
.bar-ops { background: #4c7464; color: #fff; }
.bar-left { background: #245341; color: #fff; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .65rem; margin-block: .5rem; padding: 0; list-style: none; font-size: .88rem; color: var(--muted); }
.legend li { display: flex; gap: .45rem; align-items: center; }
.legend i { width: .7rem; height: .7rem; border-radius: .17rem; flex: 0 0 .7rem; }
.money-key { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: .85rem; border-top: 1px solid var(--line); padding-top: .65rem; }
.money-key strong, .money-key span { display: block; }
.money-key strong { color: var(--deep); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.money-key span { color: var(--muted); font-size: .9rem; }
.ledger { display: grid; align-content: center; gap: .65rem; }
.ledger div + div { border-top: 1px solid var(--line); padding-top: .55rem; }
.ledger dt, .market dt { font-weight: 750; }
.ledger dd, .market dd { color: var(--muted); }
.note { margin-top: .75rem; color: var(--muted); font-size: .875rem; }

.market-controls { display: flex; gap: .38rem; margin-bottom: .75rem; padding: .3rem; width: fit-content; max-width: 100%; border-radius: .75rem; border: 1px solid #cbdacf; background: #dfeae1; }
.market-controls button { min-height: 2.75rem; min-width: 4.55rem; padding: .35rem .65rem; border: 1px solid transparent; border-radius: .55rem; background: transparent; color: var(--deep); line-height: 1.2; font-weight: 730; }
.market-controls button[aria-pressed="true"] { background: var(--deep); color: var(--white); }
.market { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; }
.market + .market { margin-top: .55rem; }
.market[hidden] + .market { margin-top: 0; }
.market h3 { font-size: 1.4rem; margin-bottom: .55rem; }
.market dl { display: grid; gap: .5rem; }
.market dt { font-size: .92rem; }
.market .source-link { margin: .35rem 1rem 0 0; }
.foot { color: #e9f5ee; background: var(--dark); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-block: 1.4rem; }
.foot strong, .foot small { display: block; }
.foot small { color: #c0d3c7; }
.foot a { display: inline-grid; align-items: center; min-height: 2.75rem; white-space: nowrap; color: var(--mint); font-size: .9rem; }

.mobile-nav { display: none; }
.notice { position: fixed; z-index: 5; right: 1rem; bottom: 1rem; max-width: calc(100vw - 2rem); padding: .65rem 1rem; border-radius: .6rem; background: var(--deep); color: var(--white); box-shadow: var(--shadow); }

@media (max-width: 740px) {
  body { padding-bottom: calc(3.75rem + env(safe-area-inset-bottom)); }
  .wrap { width: min(100% - 2rem, 32rem); }
  .desktop-nav { display: none; }
  .topbar-inner { min-height: 3.4rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.2rem; padding-block: 1.9rem 1.5rem; }
  h1 { font-size: clamp(2.8rem, 10.75vw, 4.6rem); margin-bottom: .7rem; }
  .hero-lead { font-size: 1rem; }
  .start { min-height: 2.85rem; margin-top: 1rem; }
  .chapter-header { margin-bottom: 1.1rem; }
  .routes, .money-grid { grid-template-columns: 1fr; }
  .case { align-items: start; flex-direction: column; gap: 0; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); z-index: 4; inset: auto 0 0; min-height: calc(3.75rem + env(safe-area-inset-bottom)); padding: .25rem max(.45rem, env(safe-area-inset-right)) calc(.25rem + env(safe-area-inset-bottom)) max(.45rem, env(safe-area-inset-left)); border-top: 1px solid #c2d2c6; background: #fbfdfb; }
  .mobile-nav a { min-height: 3.15rem; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .12rem; border-radius: .55rem; color: var(--deep); font-size: .875rem; font-weight: 730; text-decoration: none; }
  .mobile-nav a[aria-current] { background: #dcece0; color: #17412e; }
  .nav-symbol { display: block; width: 1.05rem; height: 1.05rem; position: relative; }
  .symbol-chain { border: 2px solid currentColor; border-radius: .28rem; }
  .symbol-chain::before, .symbol-chain::after { content: ""; position: absolute; height: 2px; inset: 25% 16% auto; background: currentColor; }
  .symbol-chain::after { top: 63%; }
  .symbol-routes { border-left: 2px solid currentColor; border-radius: .15rem; }
  .symbol-routes::before, .symbol-routes::after { content: ""; position: absolute; inset: 10% 5% auto 14%; height: .31rem; border: 2px solid currentColor; border-radius: .14rem; }
  .symbol-routes::after { top: auto; bottom: 1%; }
  .symbol-money { border: 2px solid currentColor; border-radius: 50%; }
  .symbol-money::before { content: ""; position: absolute; width: 2px; inset: 14% 0 14% calc(50% - 1px); background: currentColor; }
  .symbol-markets { border: 2px solid currentColor; border-radius: 50%; }
  .symbol-markets::before { content: ""; position: absolute; inset: 35% -2px; border-block: 1px solid currentColor; }
  .symbol-markets::after { content: ""; position: absolute; inset: -2px 19%; border-inline: 1px solid currentColor; border-radius: 50%; }
  .notice { bottom: calc(4.35rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 1.5rem); }
  .layer summary { gap: .6rem; padding-inline: .7rem; }
  .layer-tag { min-width: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
