:root {
  --ink: #17323a;
  --muted: #62747b;
  --teal: #087e78;
  --line: #dbe4df;
  --paper: #f5f7f3;
  --soft: #eaf2ec;
  --orange: #a95d31;
  --media: #5b6874;
  --media-text: #f1f4f6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 90px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.85 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: var(--teal); text-underline-offset: 4px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #d88748; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.4; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
.wrap { width: min(1160px, calc(100% - 56px)); margin: auto; }
.topbar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: #f5f7f3f5; backdrop-filter: blur(12px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 65px; }
.brand { font-weight: 750; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand b { display: inline-grid; place-items: center; background: var(--teal); color: white; width: 29px; height: 29px; border-radius: 7px; margin-right: 8px; }
.bar nav { display: flex; gap: 23px; font-size: 12px; white-space: nowrap; }
.bar nav a { text-decoration: none; }
.hero { padding: 32px 0 28px; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { color: var(--teal); font-size: 11px; letter-spacing: 1.8px; font-weight: 750; }
.topline > span { color: var(--muted); font-size: 11px; }
.hero h1 { font-size: 37px; letter-spacing: -.8px; margin: 14px 0 15px; }
.hero h1 span { color: var(--teal); }
.setting { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.setting strong { font-size: 11px; color: var(--ink); }
.setting small { margin-left: auto; font-size: 11px; }
.key-results { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; margin-top: 22px; padding: 18px 21px; border: 1px solid #ceded4; border-radius: 10px; background: #edf4ee; }
.key-results article + article { border-left: 1px solid #ceded4; padding-left: 22px; }
.key-results h2 { font-size: 11px; color: var(--teal); margin-bottom: 5px; }
.key-results p { font-size: 13px; line-height: 1.75; }
.key-results p strong { font-weight: 650; }
.section { padding: 25px 0 31px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-head h2 { font-size: 24px; }
.section-head > span { font: 11px ui-monospace, monospace; color: var(--muted); }
.legend { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.legend strong { color: var(--ink); font-weight: 550; }
.comparison { max-width: 1040px; margin: auto; background: white; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.overview-board { max-width: none; }
.comparison a { display: block; position: relative; cursor: zoom-in; }
.comparison a::after { content: '放大原图 ↗'; position: absolute; bottom: 12px; right: 12px; background: #183038df; color: white; font-size: 11px; padding: 4px 10px; border-radius: 5px; }
.comparison img { display: block; width: 100%; height: auto; background: var(--media); }
.comparison figcaption { display: flex; justify-content: space-between; gap: 15px; padding: 9px 15px; color: var(--muted); font-size: 12px; }
.comparison b { color: var(--ink); }
.observations { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 21px auto 0; max-width: 1040px; }
.observations article { padding-left: 15px; border-left: 2px solid #b4cec2; }
.observations h3 { font-size: 13px; margin-bottom: 5px; }
.observations p { font-size: 12px; color: var(--muted); }
.file-links { display: flex; flex-wrap: wrap; gap: 9px 20px; margin: 18px auto 0; max-width: 1040px; font-size: 12px; }
.compare-toolbar { max-width: 1040px; margin: 0 auto 16px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.compare-toolbar p { font-size: 12px; color: var(--muted); }
.mode-switch { display: flex; gap: 3px; background: #e6ede7; padding: 3px; border: 1px solid #d3ded5; border-radius: 7px; flex-shrink: 0; }
.mode-switch button { padding: 6px 16px; border: 0; border-radius: 4px; background: transparent; font-size: 12px; color: #526b68; }
.mode-switch button[aria-pressed="true"] { background: white; color: var(--teal); box-shadow: 0 1px 4px #18303814; font-weight: 650; }
.wipe-shell { max-width: 1040px; margin: auto; padding: 18px 24px 15px; border-radius: 11px; background: var(--media); color: var(--media-text); }
.wipe-labels { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 13px; font-size: 11px; letter-spacing: .6px; }
.wipe-stage { position: relative; aspect-ratio: 960 / 587; isolation: isolate; background: var(--media); }
.wipe-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wipe-base { position: relative; }
.wipe-overlay { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--position)) 0 0); pointer-events: none; }
.wipe-divider { position: absolute; top: 0; bottom: 0; left: var(--position); width: 2px; background: #f7faf4; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 4px #18303888; }
.wipe-divider span { display: grid; place-items: center; position: absolute; top: 50%; left: 1px; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: white; color: var(--ink); box-shadow: 0 2px 12px #18303844; font-size: 18px; }
.wipe-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; z-index: 2; touch-action: pan-y; }
.wipe-stage:focus-within { outline: 3px solid #e5b580; outline-offset: 4px; }
.wipe-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 11px; }
.wipe-controls > div { display: flex; gap: 6px; }
.wipe-controls button { color: white; background: #ffffff0c; border: 1px solid #c8d3db77; border-radius: 4px; padding: 4px 10px; font-size: 11px; }
.wipe-controls button:hover { background: #ffffff20; }
.figure-note { color: var(--muted); font-size: 11px; max-width: 1040px; margin: 10px auto 0; }
.crop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1040px; margin: 25px auto 0; }
.crop-card { min-width: 0; }
.crop-card h3 { font-size: 13px; margin-bottom: 10px; }
.crop-card h3 span { font: 10px ui-monospace, monospace; color: var(--teal); margin-right: 7px; }
.crop-card a { display: flex; align-items: center; justify-content: center; height: 220px; border-radius: 8px; overflow: hidden; background: var(--media); border: 1px solid #4d5c68; cursor: zoom-in; }
.crop-card img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--media); }
.crop-card p { font-size: 12px; color: var(--muted); margin-top: 10px; }
.crop-note { margin-top: 14px; }
.detail-panel { border: 1px solid var(--line); border-radius: 9px; background: white; margin-top: 11px; overflow: hidden; scroll-margin-top: 90px; }
.detail-panel > summary { display: flex; align-items: center; gap: 20px; padding: 17px 20px; cursor: pointer; list-style: none; }
.detail-panel > summary::-webkit-details-marker { display: none; }
.detail-panel > summary > span { font-size: 14px; font-weight: 650; }
.detail-panel > summary > small { font-size: 11px; color: var(--muted); margin-left: auto; }
.detail-panel > summary::after { content: '＋'; font-size: 17px; color: var(--teal); }
.detail-panel[open] > summary { border-bottom: 1px solid var(--line); background: #f1f6f2; }
.detail-panel[open] > summary::after { content: '−'; }
.detail-content { padding: 20px 22px 23px; }
.detail-content h3 { font-size: 16px; margin: 17px 0 8px; }
.detail-content h3:first-child { margin-top: 0; }
.detail-content p, .detail-content li { font-size: 13px; color: var(--muted); }
.detail-content p + p { margin-top: 10px; }
.detail-content p > a { display: inline-block; margin-right: 14px; }
.detail-content .subnote { margin: 14px 0 11px; font-size: 12px; }
.detail-content .linked-row { margin-top: 15px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 540px; }
th, td { text-align: left; vertical-align: top; padding: 12px 15px; border-bottom: 1px solid var(--line); }
th { background: #edf3ee; font-size: 11px; color: #52716c; }
tbody tr:last-child td { border-bottom: 0; }
.pass { color: var(--teal); font-weight: 600; }
code { font: 11px/1.6 ui-monospace, monospace; overflow-wrap: anywhere; }
.notice { padding: 15px 18px; margin-top: 16px; background: #fff7ec; border-left: 3px solid #c68d59; font-size: 12px; color: #725435; }
.diagnostic { max-width: 720px; margin: 19px auto 0; }
.detail-files { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-files a { display: inline-block; margin-right: 13px; }
.progress-viewer { max-width: 780px; margin: 20px auto; }
.progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.progress-head h3 { margin: 0; font-size: 15px; }
.progress-head span { color: var(--muted); font-size: 11px; }
.progress-canvas { padding: 18px; border-radius: 9px; background: var(--media); }
.progress-canvas a { display: block; cursor: zoom-in; }
.progress-canvas img { display: block; width: 100%; height: auto; max-width: 640px; margin: auto; }
.stage-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 10px; }
.stage-buttons button { background: white; color: var(--teal); border: 1px solid var(--line); border-radius: 5px; padding: 5px 12px; font-size: 11px; }
.stage-buttons button[aria-pressed="true"], .stage-buttons button:hover { border-color: var(--teal); background: var(--soft); }
.detail-content #progress-note { font-size: 12px; }
.source-note { padding: 20px 0 28px; color: var(--muted); font-size: 11px; }
footer { border-top: 1px solid var(--line); padding: 22px 0 33px; font-size: 11px; color: var(--muted); }
footer a { margin-left: 10px; }
.lightbox { width: min(96vw, 1880px); max-width: 96vw; max-height: 96vh; padding: 0; background: var(--media); border: 1px solid #82929f; border-radius: 10px; color: white; }
.lightbox::backdrop { background: #0d191ee8; }
.lightbox:modal { display: flex; flex-direction: column; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 17px; font-size: 12px; background: #435360; }
.lightbox-actions { display: flex; align-items: center; gap: 12px; }
.lightbox button { border: 1px solid #a2b0b8; border-radius: 5px; padding: 4px 12px; color: white; background: transparent; font-size: 12px; }
.lightbox a { color: white; font-size: 11px; }
.lightbox-body { overflow: auto; padding: 16px; max-height: calc(96vh - 56px); background: var(--media); }
.lightbox img { display: block; max-width: 100%; height: auto; margin: auto; }
.lightbox.native-size img { max-width: none; width: auto; max-height: none; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }
  .bar { display: block; padding: 12px 0; }
  .bar nav { gap: 19px; overflow-x: auto; margin-top: 7px; }
  .hero { padding: 24px 0 22px; }
  .topline { display: block; }
  .topline > span { display: block; margin-top: 5px; }
  .hero h1 { font-size: 29px; letter-spacing: -.5px; }
  .hero h1 span { display: inline-block; }
  .setting { display: block; font-size: 12px; }
  .setting strong { margin-right: 8px; }
  .setting small { display: block; margin-top: 5px; }
  .key-results { grid-template-columns: 1fr; gap: 12px; padding: 16px 18px; }
  .key-results article + article { border-left: 0; border-top: 1px solid #ceded4; padding: 11px 0 0; }
  .key-results p { font-size: 12px; }
  .section-head { gap: 10px; }
  .section-head h2 { font-size: 21px; }
  .section-head > span { font-size: 9px; max-width: 32%; text-align: right; overflow-wrap: anywhere; }
  .legend { display: block; }
  .legend > span { display: block; margin-top: 4px; }
  .comparison figcaption { display: block; font-size: 11px; }
  .comparison figcaption span { display: block; }
  .comparison a::after { font-size: 10px; padding: 2px 6px; bottom: 7px; right: 7px; }
  .observations, .detail-files { grid-template-columns: 1fr; gap: 16px; }
  .compare-toolbar { flex-wrap: wrap; gap: 10px; }
  .mode-switch button { padding: 6px 15px; }
  .wipe-shell { padding: 12px; }
  .wipe-labels { font-size: 9px; letter-spacing: 0; margin-bottom: 9px; }
  .wipe-divider span { width: 29px; height: 29px; font-size: 15px; }
  .wipe-controls { display: block; font-size: 10px; }
  .wipe-controls > div { margin-top: 8px; }
  .crop-grid { grid-template-columns: 1fr; gap: 22px; }
  .crop-card a { height: auto; aspect-ratio: 1.7; }
  .crop-card img { height: 100%; }
  .crop-card p { margin-top: 7px; }
  .detail-panel > summary { padding: 15px; gap: 10px; }
  .detail-panel > summary > small { display: none; }
  .detail-panel > summary::after { margin-left: auto; }
  .detail-content { padding: 18px 16px; }
  .progress-head { display: block; }
  .progress-head span { display: block; margin-top: 5px; }
  .progress-canvas { padding: 10px; }
  .stage-buttons button { padding: 7px 10px; }
  .lightbox-bar { display: block; padding: 10px 12px; }
  .lightbox-actions { margin-top: 7px; gap: 8px; justify-content: space-between; }
  .lightbox-body { padding: 8px; max-height: calc(96vh - 96px); }
  .lightbox { width: 98vw; max-width: 98vw; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .topbar, .mode-switch, .lightbox, .stage-buttons { display: none; }
  .wrap { width: 100%; }
  body { background: white; }
  .hero h1 { font-size: 28px; }
  .comparison, .crop-card { break-inside: avoid; }
  .key-results { grid-template-columns: repeat(3, 1fr); }
  .crop-grid { grid-template-columns: repeat(3, 1fr); }
}
