/* ============================================================
   信息图样式（11 张）
   源自『对比/图形语言-样品/style.css』，去掉 body/wrap 等全局规则
   ============================================================ */

/* 变量沿用主站，这里补几个图表专用 */
.infographic {
  --paper: #e8e4d8;
  --ink: #1f1c18;
  --sub: #6b5b48;
  --zhu: #8a3324;
  --faint: #c4bfb2;
  --water: #6b7a88;
  margin: 96px -20px;
  padding: 48px 0 36px;
  border-top: 0.5px solid rgba(107, 91, 72, 0.18);
  border-bottom: 0.5px solid rgba(107, 91, 72, 0.18);
  font-family: "Noto Serif SC", "Songti SC", serif;
  color: var(--ink);
  background: transparent;
}
@media (max-width: 720px) {
  .infographic { margin: 64px -20px; padding: 32px 0 24px; }
}

.sample-title {
  font-family: "EB Garamond", "Noto Serif SC", serif;
  font-style: italic;
  font-size: 12px;
  color: var(--sub);
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  margin-bottom: 8px;
  text-align: center;
}
.sample-head {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  margin-bottom: 6px;
  text-align: center;
  color: var(--ink);
}
.sample-desc {
  font-size: 12px;
  color: var(--sub);
  letter-spacing: 0.2em;
  padding-left: 0.2em;
  margin-bottom: 44px;
  text-align: center;
}
.sample-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 0.5px solid rgba(107,91,72,0.16);
  font-size: 11px;
  color: var(--sub);
  letter-spacing: 0.2em;
  padding-left: 24px;
  padding-right: 24px;
}
.sample-foot .right {
  font-family: "EB Garamond", "Noto Serif SC", serif;
  font-style: italic;
  color: var(--zhu);
  letter-spacing: 0.22em;
  opacity: 0.85;
}

/* ===== 1. 开元人口 · 六座城 ===== */
.pop-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 240px;
  padding: 0 24px;
}
.pop-city {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.pop-city svg {
  width: 100%;
  height: calc(var(--h) * 0.01 * 200px);
  max-height: 200px;
  min-height: 40px;
  display: block;
  overflow: visible;
}
.pop-g path {
  fill: var(--ink);
  transform-origin: bottom;
  transform: scaleY(0);
  animation: pop-rise 1.4s cubic-bezier(.3,.1,.2,1) forwards;
}
.pop-zhu .pop-g path { fill: var(--zhu); }
.pop-flag { fill: var(--zhu); opacity: 0; animation: chart-fade 0.6s 2.8s forwards; }
@keyframes pop-rise {
  from { transform: scaleY(0); opacity: 0.6; }
  to   { transform: scaleY(1); opacity: 1; }
}
@keyframes chart-fade { to { opacity: 1; } }
.pop-row .pop-city:nth-child(1) path { animation-delay: 0.2s; }
.pop-row .pop-city:nth-child(2) path { animation-delay: 0.45s; }
.pop-row .pop-city:nth-child(3) path { animation-delay: 0.7s; }
.pop-row .pop-city:nth-child(4) path { animation-delay: 0.95s; }
.pop-row .pop-city:nth-child(5) path { animation-delay: 1.2s; }
.pop-row .pop-city:nth-child(6) path { animation-delay: 1.55s; }
.pop-y {
  margin-top: 12px;
  font-family: "EB Garamond", serif;
  font-size: 11px;
  color: var(--sub);
  letter-spacing: 0.2em;
  padding-left: 0.2em;
}
.pop-v {
  margin-top: 4px;
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.08em;
}
.pop-zhu .pop-v { color: var(--zhu); font-weight: 500; }

/* ===== 2 & 7. 斗米 ===== */
.dou-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 24px;
  padding: 24px 20px 8px;
}
.dou {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.dou svg {
  width: 100%;
  height: auto;
  max-width: 150px;
}
.dou-label {
  text-align: center;
  font-size: 12px;
  color: var(--sub);
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  line-height: 1.8;
}
.dou-price {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}
.dou-zhu .dou-price { color: var(--zhu); }
.dou-shell {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rice {
  fill: var(--ink);
  opacity: 0;
  animation: rice-drop 0.6s cubic-bezier(.3,.1,.2,1) forwards;
}
.dou-zhu .rice { fill: var(--zhu); }
@keyframes rice-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.two-dou {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: flex-end;
  padding: 16px 24px 8px;
}
.two-dou .dou svg { max-width: 200px; }
.two-dou .dou-zhu.dou-overflow svg {
  max-width: 240px;
  max-height: 280px;
}
.rice-spill ellipse { animation-duration: 0.8s; }

/* ===== 3. 同心城郭 ===== */
.rings-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 16px auto 0;
}
.ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}
.ring-changan { stroke-width: 2; animation: ring-draw 2.4s 0.3s ease-out forwards; }
.ring-baghdad { animation: ring-draw 2.0s 1.2s ease-out forwards; }
.ring-const   { animation: ring-draw 1.8s 2.2s ease-out forwards; }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
.ring-dot { fill: var(--zhu); opacity: 0; animation: chart-fade 0.8s 3.2s forwards; }
.ring-label {
  font-family: "Noto Serif SC", serif;
  font-size: 11px;
  fill: var(--sub);
  letter-spacing: 0.2em;
  opacity: 0;
  animation: chart-fade 0.8s forwards;
}
.ring-label-big {
  font-size: 13px;
  fill: var(--ink);
  font-weight: 500;
  letter-spacing: 0.26em;
  animation-delay: 1s;
}
.rings-svg text:nth-of-type(2) { animation-delay: 2.0s; }
.rings-svg text:nth-of-type(3) { animation-delay: 3.0s; }
.ring-label-small {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 11px;
  animation-delay: 3.4s;
}

/* ===== 4. 秤 ===== */
.scale-svg {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 16px auto 8px;
  display: block;
}
.scale-pivot { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.scale-beam {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  transform-origin: 400px 200px;
  animation: beam-tilt 2.4s 0.8s cubic-bezier(.4,.1,.3,1) forwards;
}
@keyframes beam-tilt {
  0%   { transform: rotate(0deg); }
  30%  { transform: rotate(-4deg); }
  60%  { transform: rotate(10deg); }
  100% { transform: rotate(8deg); }
}
.scale-stack {
  transform-origin: 640px 200px;
  animation: stack-down 2.4s 0.8s cubic-bezier(.4,.1,.3,1) forwards;
}
@keyframes stack-down {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(6px); }
  60%  { transform: translateY(-16px); }
  100% { transform: translateY(-12px); }
}
.scale-pan-light {
  transform-origin: 160px 200px;
  animation: pan-up 2.4s 0.8s cubic-bezier(.4,.1,.3,1) forwards;
}
@keyframes pan-up {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-6px); }
  60%  { transform: translateY(28px); }
  100% { transform: translateY(22px); }
}
.scale-block { fill: var(--ink); opacity: 0; animation: chart-fade-in 0.4s forwards; }
.scale-block-big { fill: var(--zhu); }
@keyframes chart-fade-in { to { opacity: 1; } }
.scale-label {
  font-family: "Noto Serif SC", serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  fill: var(--ink);
  opacity: 0;
  animation: chart-fade-in 0.5s forwards;
}
.scale-label-right { fill: var(--zhu); font-weight: 500; }
.scale-num {
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.16em;
  fill: var(--sub);
  opacity: 0;
  animation: chart-fade-in 0.5s 2.8s forwards;
}

/* ===== 5. 地图印章 ===== */
.map-svg { width: 100%; max-width: 800px; height: auto; display: block; margin: 8px auto; }
.map-outline {
  fill: rgba(107,91,72,0.06);
  stroke: var(--sub);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  animation: map-draw 2.2s 0.2s ease-out forwards;
}
@keyframes map-draw { to { stroke-dashoffset: 0; } }
.map-river {
  fill: none; stroke: var(--water); stroke-width: 1.4;
  stroke-dasharray: 900; stroke-dashoffset: 900; opacity: 0.6;
  animation: map-draw 2.4s 1.2s ease-out forwards;
}
.map-wall {
  fill: none; stroke: var(--ink); stroke-width: 1;
  stroke-dasharray: 4 3; opacity: 0.6; stroke-dashoffset: 900;
  animation: map-draw 2s 1.5s ease-out forwards;
}
.map-dots circle { fill: var(--ink); opacity: 0; animation: chart-fade-in 0.5s forwards; }
.map-dots g:nth-child(1) circle { animation-delay: 2.4s; }
.map-dots g:nth-child(2) circle { animation-delay: 2.6s; }
.map-dots g:nth-child(3) circle { animation-delay: 2.8s; }
.map-dots text {
  font-family: "Noto Serif SC", serif;
  font-size: 11px; fill: var(--ink); letter-spacing: 0.22em;
  opacity: 0; animation: chart-fade-in 0.5s forwards;
}
.map-dots g:nth-child(1) text { animation-delay: 2.5s; }
.map-dots g:nth-child(2) text { animation-delay: 2.7s; }
.map-dots g:nth-child(3) text { animation-delay: 2.9s; }
.map-capital circle { fill: var(--zhu); opacity: 0; animation: chart-fade-in 0.5s 3.0s forwards; }
.map-capital text {
  font-family: "Noto Serif SC", serif; font-size: 11px; fill: var(--zhu);
  letter-spacing: 0.22em; opacity: 0; animation: chart-fade-in 0.5s 3.2s forwards;
}
.map-seal {
  transform-origin: 480px 240px;
  transform: translateY(-160px) rotate(-8deg) scale(1.2);
  opacity: 0;
  animation: seal-drop 0.8s 3.6s cubic-bezier(.6,.0,.4,1.6) forwards;
}
.map-seal rect { fill: rgba(138,51,36,0.82); stroke: var(--zhu); stroke-width: 3; }
.map-seal-ch1, .map-seal-ch2 {
  font-family: "Noto Serif SC", serif;
  font-weight: 700; font-size: 74px;
  fill: #f1e8d6;
}
@keyframes seal-drop {
  0%   { transform: translateY(-160px) rotate(-8deg) scale(1.2); opacity: 0; }
  70%  { transform: translateY(6px) rotate(-3deg) scale(1.0); opacity: 1; }
  85%  { transform: translateY(-2px) rotate(-2deg) scale(1.02); }
  100% { transform: translateY(0) rotate(-3deg) scale(1.0); opacity: 1; }
}
.map-seal-bloom { fill: var(--zhu); opacity: 0; animation: seal-bloom 1.4s 4.4s ease-out forwards; }
@keyframes seal-bloom {
  0% { opacity: 0.5; r: 0; }
  100% { opacity: 0; r: 200; }
}

/* ===== 6. 钱喷泉 ===== */
.coin-stage {
  position: relative;
  width: 100%;
  margin: 16px auto 0;
}
.coin-svg {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.coin-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.coin-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 32px;
  position: relative;
  z-index: 1;
  padding: 0 24px;
}
.coin-label {
  text-align: center;
  font-family: "Noto Serif SC", serif;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 4px;
  will-change: transform;
}
.coin-label .lbl-era {
  font-size: 11px;
  color: var(--sub);
  letter-spacing: 0.26em;
  padding-left: 0.26em;
}
.coin-label .lbl-val {
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.08em;
}
.coin-label-peak .lbl-val { color: var(--zhu); font-weight: 500; }
.coin-label.coin-label-hit { animation: coin-bump 0.8s cubic-bezier(.4, -0.2, .3, 1.6); }
@keyframes coin-bump {
  0%   { transform: translateY(0) scale(1); }
  18%  { transform: translateY(10px) scale(0.94, 1.08); }
  36%  { transform: translateY(-4px) scale(1.04, 0.96); }
  58%  { transform: translateY(2px) scale(0.98, 1.02); }
  80%  { transform: translateY(-1px) scale(1.01, 0.99); }
  100% { transform: translateY(0) scale(1); }
}
.coin-rim {
  fill: none; stroke: var(--ink); stroke-width: 3;
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
  animation: coin-draw 1.6s 0.3s ease-out forwards;
}
.coin-body {
  fill: rgba(42, 38, 32, 0.04); stroke: var(--ink); stroke-width: 1;
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
  animation: coin-draw 1.6s 0.5s ease-out forwards;
}
.coin-hole-rim {
  fill: none; stroke: var(--ink); stroke-width: 1.2;
  stroke-dasharray: 500; stroke-dashoffset: 500;
  animation: coin-draw 1.2s 1s ease-out forwards;
}
.coin-hole {
  fill: var(--paper); stroke: var(--ink); stroke-width: 2.5;
  stroke-dasharray: 500; stroke-dashoffset: 500;
  animation: coin-draw 1.2s 1.2s ease-out forwards;
}
@keyframes coin-draw { to { stroke-dashoffset: 0; } }
.coin-char {
  font-family: "Noto Serif SC", "SimSun", serif;
  font-weight: 700;
  font-size: 58px;
  fill: var(--ink);
  opacity: 0;
  animation: chart-fade-in 0.6s forwards;
}
.coin-char-top    { animation-delay: 2.0s; }
.coin-char-bottom { animation-delay: 2.3s; }
.coin-char-right  { animation-delay: 2.6s; }
.coin-char-left   { animation-delay: 2.9s; }

/* ===== 8. 窄门 ===== */
.gate-svg { width: 100%; max-width: 800px; height: auto; display: block; margin: 8px auto; }
.gate-pillar, .gate-top { fill: var(--ink); }
.crowd-dot { fill: var(--sub); opacity: 0; animation: crowd-in 0.6s forwards; }
@keyframes crowd-in { to { opacity: 0.45; } }
.crowd-fig { opacity: 0; animation: crowd-in 0.5s forwards; }
.crowd-fig circle { fill: var(--ink); }
.crowd-fig line { stroke: var(--ink); }
.crowd-fig-in { animation-duration: 0.8s; }
.crowd-fig-in circle { fill: var(--zhu); }
.crowd-fig-in line { stroke: var(--zhu); }
.gate-label {
  font-family: "Noto Serif SC", serif;
  fill: var(--ink); font-size: 13px; letter-spacing: 0.28em;
  opacity: 0; animation: chart-fade-in 0.8s forwards;
}
.gate-label-in { fill: var(--zhu); font-weight: 500; animation-delay: 2.8s; }
.gate-label-mid { font-size: 12px; letter-spacing: 0.26em; animation-delay: 1.6s; }
.gate-label-far {
  fill: var(--sub); font-size: 11px; font-style: italic;
  font-family: "EB Garamond", "Noto Serif SC", serif;
  letter-spacing: 0.3em; animation-delay: 0.8s;
}

/* ===== 9. 贬谪折线 ===== */
.route-svg { width: 100%; max-width: 800px; height: auto; display: block; margin: 8px auto; }
.route-line {
  fill: none; stroke: var(--ink); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 2600; stroke-dashoffset: 2600;
  animation: route-draw 6s 0.3s cubic-bezier(.35,.05,.4,1) forwards;
}
@keyframes route-draw { to { stroke-dashoffset: 0; } }
.route-pts circle { fill: var(--ink); opacity: 0; animation: chart-fade-in 0.4s var(--d) forwards; }
.route-pts text {
  font-family: "Noto Serif SC", serif;
  font-size: 11px; fill: var(--sub); letter-spacing: 0.2em;
  opacity: 0; animation: chart-fade-in 0.5s var(--d) forwards;
}
.route-end circle { fill: var(--zhu); }
.route-end text { fill: var(--zhu); font-weight: 500; }
.route-bloom {
  fill: var(--zhu); opacity: 0;
  animation: bloom-out 2s 3.2s ease-out forwards;
}
@keyframes bloom-out {
  0%   { opacity: 0.5; r: 0; }
  100% { opacity: 0; r: 80; }
}

/* ===== 10. 行军箭 ===== */
.march-svg { width: 100%; max-width: 800px; height: auto; display: block; margin: 8px auto; }
.march-road { stroke: var(--faint); stroke-width: 0.8; stroke-dasharray: 2 3; fill: none; }
.march-trail {
  stroke: var(--zhu); stroke-width: 1.8; stroke-linecap: round; fill: none;
  stroke-dasharray: 700; stroke-dashoffset: 700;
  animation: march-draw 5s 0.8s cubic-bezier(.35,.05,.4,1) forwards;
}
@keyframes march-draw { to { stroke-dashoffset: 0; } }
.march-arrow { fill: var(--zhu); opacity: 0; animation: chart-fade-in 0.4s 5.6s forwards; }
.city { fill: var(--ink); opacity: 0; animation: city-fall 0.8s forwards; }
@keyframes city-fall {
  0%   { opacity: 1; fill: var(--ink); transform: translateY(0); }
  40%  { opacity: 1; fill: var(--ink); transform: translateY(0); }
  100% { opacity: 0.32; fill: var(--sub); transform: translateY(4px); }
}
.city-text {
  font-family: "Noto Serif SC", serif;
  font-size: 11px; fill: var(--sub); letter-spacing: 0.15em;
  opacity: 0; animation: text-fade-in 0.5s forwards;
}
@keyframes text-fade-in { to { opacity: 0.7; } }
.march-start { fill: var(--ink); opacity: 0; animation: chart-fade-in 0.5s 0.6s forwards; }
.march-start-label {
  font-family: "Noto Serif SC", serif;
  font-size: 13px; fill: var(--ink); letter-spacing: 0.2em;
  opacity: 0; animation: chart-fade-in 0.6s 0.8s forwards;
}
.march-end { fill: var(--zhu); opacity: 0; animation: chart-fade-in 0.5s 5.4s forwards; }
.march-end-label {
  font-family: "Noto Serif SC", serif;
  font-size: 14px; font-weight: 500; fill: var(--zhu); letter-spacing: 0.2em;
  opacity: 0; animation: chart-fade-in 0.6s 5.8s forwards;
}
.march-date {
  font-family: "EB Garamond", serif;
  font-style: italic; font-size: 11px; fill: var(--sub); letter-spacing: 0.22em;
  opacity: 0; animation: chart-fade-in 0.6s forwards;
}

/* ===== 11. 两条河 ===== */
.river-svg { width: 100%; max-width: 860px; height: auto; display: block; margin: 8px auto; }
.river {
  fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
}
.river-an { stroke: var(--ink); animation: river-flow 3.2s 0.4s cubic-bezier(.3,.1,.2,1) forwards; }
.river-yan { stroke: var(--ink); animation: river-flow 4.6s 0.8s cubic-bezier(.3,.1,.2,1) forwards; }
@keyframes river-flow { to { stroke-dashoffset: 0; } }
.river-break { fill: var(--zhu); opacity: 0; animation: chart-fade-in 0.6s 3.8s forwards; }
.river-break-splatter {
  fill: none; stroke: var(--zhu); stroke-width: 1.2; stroke-linecap: round;
  stroke-dasharray: 120; stroke-dashoffset: 120;
  animation: river-flow 0.8s 4s forwards;
}
.river-year {
  font-family: "EB Garamond", serif;
  font-size: 12px; fill: var(--sub); letter-spacing: 0.2em;
  opacity: 0; animation: chart-fade-in 0.8s forwards;
}
.river-svg text:nth-of-type(1) { animation-delay: 0.6s; }
.river-svg text:nth-of-type(2) { animation-delay: 3.8s; }
.river-svg text:nth-of-type(3) { animation-delay: 1.0s; }
.river-svg text:nth-of-type(4) { animation-delay: 5.2s; }
.river-name {
  font-family: "Noto Serif SC", serif;
  font-size: 14px; fill: var(--ink); font-weight: 500; letter-spacing: 0.22em;
  opacity: 0; animation: chart-fade-in 0.6s 0.4s forwards;
}
.river-svg text:nth-of-type(6) { animation-delay: 1.0s; }
.river-cross {
  stroke: var(--zhu); stroke-width: 0.8; stroke-dasharray: 3 4;
  opacity: 0; animation: chart-fade-in 0.6s 3.6s forwards;
}
.river-cross-label {
  font-family: "Noto Serif SC", serif;
  font-size: 13px; fill: var(--zhu); letter-spacing: 0.28em; font-weight: 500;
  opacity: 0; animation: chart-fade-in 0.8s 3.8s forwards;
}
.river-cross-sub {
  font-family: "EB Garamond", "Noto Serif SC", serif;
  font-style: italic; font-size: 12px; fill: var(--sub); letter-spacing: 0.2em;
  opacity: 0; animation: chart-fade-in 0.8s 4.0s forwards;
}

@media (max-width: 720px) {
  .sample-head { font-size: 18px; }
  .pop-row { height: 180px; gap: 10px; padding: 0 16px; }
  .dou-row { gap: 12px; padding: 16px 12px 4px; }
  .two-dou { grid-template-columns: 1fr; padding: 16px 16px; }
  .coin-labels { grid-template-columns: 1fr 1fr; gap: 12px; }
}
