/* 人生变化趋势图（static/js/world_trend.js） */
.trend-view{margin:18px 0 8px}
.trend-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 12px}
.trend-tiles>section{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#122033;min-width:0}
.trend-tiles small{display:block;color:var(--muted);font-size:11px;line-height:1.5}
.trend-tile-value{display:flex;align-items:baseline;gap:8px;margin:4px 0 2px}
.trend-tile-value strong{font-size:28px;font-weight:500;color:var(--text,#e8ecf4)}
.trend-tile-value span{font-size:13px;color:var(--sea)}
.trend-summary{font-size:14px;line-height:1.8;margin:0 0 12px;white-space:pre-wrap}
.trend-keyyears{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:13px;margin:0 0 14px;color:var(--muted)}
.trend-keyyears strong{color:var(--text,#e8ecf4);font-weight:500;margin-right:8px}
.trend-controls{display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:space-between;margin:6px 0 4px}
.trend-chips{display:flex;flex-wrap:wrap;gap:6px}
.trend-chips button{font-size:12px;padding:5px 11px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--muted);cursor:pointer}
.trend-chips button[aria-pressed="true"]{border-color:var(--sea);color:var(--sea);background:rgba(101,228,232,.08)}
.trend-chips button:focus-visible,.trend-plot svg:focus-visible,.trend-stages button:focus-visible{outline:2px solid var(--sea);outline-offset:2px}
.trend-plot{width:100%;margin:6px 0 0;touch-action:pan-y}
.trend-plot svg{display:block;width:100%;height:auto;overflow:visible}
.trend-band{fill:transparent}.trend-band.alt{fill:rgba(232,236,244,.03)}.trend-band.current{fill:rgba(101,228,232,.07)}
.trend-band-label{fill:var(--muted);font-size:10px;opacity:.85}
.trend-grid{stroke:#223246;stroke-width:1}.trend-grid.mid{stroke:#34485f}
.trend-axis{fill:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.trend-axis.year{font-size:10px;opacity:.75}
.trend-tick{stroke:#34485f}
.trend-stage-avg{stroke:#FFB800;stroke-width:4;stroke-linecap:round;opacity:.9}
.trend-line{fill:none;stroke:#65e4e8;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.trend-today{stroke:#e8ecf4;stroke-width:1;opacity:.75}
.trend-today-label{fill:#e8ecf4;font-size:11px}
.trend-extreme{fill:#0e1827;stroke:#65e4e8;stroke-width:2}
.trend-extreme-label{fill:var(--text,#e8ecf4);font-size:11px;paint-order:stroke;stroke:#0e1827;stroke-width:3px}
.trend-cross{stroke:#65e4e8;stroke-width:1;opacity:.55}
.trend-cross-dot{fill:#65e4e8;stroke:#0e1827;stroke-width:2}
.trend-hit{fill:transparent;cursor:crosshair}
.trend-legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:12px;color:var(--muted);margin:2px 0 4px}
.trend-legend span{display:inline-flex;align-items:center;gap:7px}
.trend-legend .key{display:inline-block;width:18px;border-radius:2px}
.trend-legend .key.line{height:2px;background:#65e4e8}.trend-legend .key.avg{height:4px;background:#FFB800}.trend-legend .key.today{width:1px;height:12px;background:#e8ecf4}
.trend-howto,.trend-disclaimer,.trend-legacy{font-size:12px;color:var(--muted);margin:4px 0 12px}
.trend-legacy{color:#FFB800}
.trend-readout{border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:#122033;margin:8px 0 18px;min-height:132px}
.trend-readout-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px}
.trend-readout-head strong{font-size:30px;font-weight:500}
.trend-readout-head span{color:var(--sea);font-size:14px}
.trend-readout-head small{color:var(--muted);font-size:12px;margin-left:auto}
.trend-readout p{margin:6px 0 10px;font-size:14px;line-height:1.7}
.trend-dims{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0}
.trend-dims div{min-width:0}.trend-dims dt{font-size:11px;color:var(--muted)}
.trend-dims dd{margin:2px 0 0;display:flex;flex-direction:column;gap:4px}
.trend-dims b{font-weight:500;font-size:15px;font-variant-numeric:tabular-nums}
.trend-dims i{display:block;height:3px;border-radius:2px;background:linear-gradient(90deg,#65e4e8 var(--v),#223246 var(--v))}
.trend-dims .active dt,.trend-dims .active b{color:var(--sea)}
.trend-section-title{font-size:15px;color:var(--sea);margin:6px 0 8px}
.trend-stages{list-style:none;padding:0;margin:0 0 14px}
.trend-stages li{border-top:1px solid var(--line)}
.trend-stages li.current{background:rgba(101,228,232,.05)}
.trend-stages button{display:grid;grid-template-columns:minmax(0,1fr) auto 72px;align-items:center;gap:12px;width:100%;padding:10px 6px;background:transparent;text-align:left;color:inherit;cursor:pointer}
.trend-stages button:hover{background:rgba(232,236,244,.04)}
.trend-stage-name strong{display:block;font-weight:500;font-size:14px}
.trend-stage-name small{color:var(--muted);font-size:11px}
.trend-stage-value{display:flex;align-items:baseline;gap:6px}
.trend-stage-value strong{font-size:18px;font-weight:500;font-variant-numeric:tabular-nums}
.trend-stage-value span{font-size:12px;color:var(--muted)}
.trend-stage-trend{font-size:12px;color:var(--muted);text-align:right}
.trend-stage-trend.up{color:#00FF94}.trend-stage-trend.down{color:#FF8099}
.trend-stage-note{margin:-4px 6px 10px;font-size:12px;color:var(--muted);line-height:1.6}
.trend-table summary{cursor:pointer;color:var(--sea);font-size:13px;padding:8px 0}
.trend-table-wrap{max-height:420px;overflow:auto;border:1px solid var(--line);border-radius:10px}
.trend-table table{border-collapse:collapse;width:100%;font-size:12px;min-width:640px}
.trend-table th,.trend-table td{padding:6px 8px;border-bottom:1px solid #1c2a3c;text-align:left;font-variant-numeric:tabular-nums;vertical-align:top}
.trend-table th{position:sticky;top:0;background:#132235;color:var(--muted);font-weight:500}
.trend-table tr.today td{color:var(--sea)}
.trend-table td:last-child{min-width:220px;color:var(--muted)}
.trend-analysis{margin:10px 0}.trend-analysis section{border-top:1px solid var(--line);padding:12px 0}
.trend-analysis h3{font-size:14px;color:var(--sea);margin:0 0 6px}.trend-analysis p{font-size:14px;line-height:1.75;margin:0}
@media(max-width:600px){
  .trend-tiles{gap:6px}.trend-tiles>section{padding:9px 9px}.trend-tiles small{font-size:10px}
  .trend-tile-value{gap:4px;flex-wrap:wrap}.trend-tile-value strong{font-size:22px}.trend-tile-value span{font-size:12px}
  .trend-dims{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.trend-dims b{font-size:13px}
  .trend-readout-head small{margin-left:0;width:100%}
  .trend-stages button{grid-template-columns:minmax(0,1fr) auto 58px;gap:8px}
}
