:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --navy: #142d3d;
  --ink: #16313e;
  --muted: #4c6270;
  --paper: #fff;
  --surface: #f1f5f7;
  --line: #dae4e9;
  --teal: #176650;
  --teal-dark: #11503f;
  --mint: #e3f3e9;
  --shadow: 0 17px 42px #142d3d0e;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--surface); color: var(--ink); }
a { color: var(--teal-dark); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid #cb7f26; outline-offset: 3px; }
.frame { width: min(100% - clamp(1.75rem, 8vw, 8rem), 79rem); margin-inline: auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 65px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 750; text-decoration: none; }
.brand-icon { width: 34px; height: 34px; display: grid; align-content: center; gap: 4px; padding: 0 7px; background: var(--navy); border-radius: 8px; }
.brand-icon i { width: 17px; height: 2px; background: #aadbca; border-radius: 1px; }
.brand-icon i:nth-child(2) { width: 12px; }
.topbar-link { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 650; text-decoration: none; }
.topbar-link:hover { text-decoration: underline; }
.external-icon { display: inline-block; width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.external-icon::after { content: ""; position: absolute; top: -3px; right: -3px; width: 6px; height: 6px; border-top: 1.5px solid; border-right: 1.5px solid; background: #fff; }

.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.4rem; padding-block: clamp(2.25rem, 6vw, 4.6rem) clamp(1.45rem, 3.6vw, 2.5rem); }
.context { display: inline-flex; align-items: center; gap: .52rem; color: var(--teal-dark); font-size: .9rem; font-weight: 720; }
.context span { width: .45rem; height: .45rem; border-radius: .45rem; background: #2c8b69; }
h1 { font-size: clamp(2.05rem, 4.1vw, 3.65rem); letter-spacing: -.055em; font-weight: 780; line-height: 1.1; margin-block: .66rem .65rem; }
.intro-copy { font-size: 1rem; line-height: 1.65; color: var(--muted); }
.button { min-height: 39px; padding: .58rem .9rem; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font-size: .9rem; line-height: 1.35; font-weight: 680; white-space: nowrap; text-decoration: none; }
.button-primary { background: var(--teal); color: #fff; }
.button-primary:hover { background: var(--teal-dark); }
.button-white { color: var(--navy); background: #fff; }
.button-white:hover { background: #dbefe9; }
.button-outline { border-color: #baccc7; color: var(--teal-dark); background: #fff; }
.button-outline:hover { background: #f0f8f4; }
.button-play { min-height: 48px; padding: .78rem 1.05rem; font-size: .98rem; box-shadow: 0 6px 18px #17665029; }
.play-icon { width: 11px; height: 13px; flex: 0 0 auto; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.button-play[data-state="running"] .play-icon { clip-path: polygon(0 0, 36% 0, 36% 100%, 0 100%, 0 0, 64% 0, 100% 0, 100% 100%, 64% 100%, 64% 0); }

.demo-grid { display: grid; grid-template-columns: minmax(0, 2.55fr) minmax(16rem, 1fr); align-items: start; gap: clamp(.85rem, 2vw, 1.55rem); }
.stage, .workflow { min-width: 0; border-radius: 15px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.stage { overflow: hidden; }
.stage-header { min-height: 55px; padding: .65rem 1.1rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1.25rem; background: #f7fafb; border-bottom: 1px solid var(--line); }
.stage-title { display: flex; align-items: center; gap: 8px; }
.stage-title h2 { font-size: .94rem; font-weight: 720; }
.stage-icon { width: 15px; height: 13px; border: 1.5px solid #497083; border-radius: 3px; display: inline-block; background: linear-gradient(#497083,#497083) top 3px center / 100% 1px no-repeat; }
.stage-address { color: #4a6270; font-family: system-ui, sans-serif; font-size: .83rem; overflow-wrap: anywhere; }
.stage-content { min-height: 375px; }
.scene { min-height: inherit; padding: clamp(1.05rem, 3vw, 2rem); }
.scene h3 { color: var(--ink); font-size: clamp(1.35rem, 2.65vw, 2rem); line-height: 1.35; letter-spacing: -.035em; overflow-wrap: anywhere; }
.scene h4 { font-size: 1rem; letter-spacing: -.012em; }
.portal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  color: #e7f0f2;
  background:
    linear-gradient(90deg, #77acaf12 1px, transparent 1px) 50% 50% / 38px 38px,
    linear-gradient(#77acaf12 1px, transparent 1px) 50% 50% / 38px 38px,
    radial-gradient(ellipse at top right, #276367 0%, transparent 68%),
    #173848;
}
.portal-identity { display: flex; align-items: flex-start; gap: clamp(.75rem, 1.5vw, 1.35rem); margin-top: clamp(.3rem,2vw,1.4rem); }
.portal-identity h3 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.8rem); }
.portal-identity p { margin-top: .58rem; color: #d3e6e9; font-size: 1rem; line-height: 1.6; }
.portal-icon { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; width: clamp(40px, 5.4vw, 63px); aspect-ratio: 1; padding: .67rem; gap: 4px; flex: 0 0 auto; background: #b6e0d3; border-radius: 12px; }
.portal-icon i { background: #2f655d; border-radius: 2px; }
.portal-icon i:first-child { background: #53897f; }
.portal-icon i:last-child { background: #74ada0; }
.portal-entry { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem; padding: clamp(1rem, 2.2vw, 1.5rem); border: 1px solid #93c5c24f; border-radius: 12px; background: #f2faff12; }
.portal-entry strong { color: #fff; font-size: 1.08rem; }
.portal-entry p { margin-top: .35rem; color: #d3e6e9; font-size: .9rem; line-height: 1.5; }

.scene-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem 1rem; justify-content: space-between; }
.match-count, .stage-kicker { color: var(--teal-dark); font-size: .89rem; font-weight: 650; }
.notice-search { display: flex; gap: .6rem; margin-block: 1.15rem 1rem; }
.notice-search input { min-width: 0; flex: 1; padding: .62rem .7rem; border: 1px solid #c4d3dc; border-radius: 8px; color: var(--ink); font-size: .95rem; background: #fff; }
.notice-search input::placeholder { color: #56707d; }
.notice-table { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.notice-labels, .notices li { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: .75rem; }
.notice-labels { padding: .48rem .7rem; background: #f4f7f9; color: var(--muted); font-weight: 680; font-size: .85rem; }
.notices { margin: 0; padding: 0; list-style: none; }
.notices li { align-items: center; min-height: 66px; padding: .65rem .7rem; border-top: 1px solid var(--line); }
.notices li.is-target { outline-offset: -3px; }
.notice-link, .notice-name { color: var(--ink); text-align: left; font-weight: 690; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.notice-link { padding: 0; border: 0; background: none; color: var(--teal-dark); }
.notice-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.notices p, .notices time { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.notices p { margin-top: .25rem; }
.no-results { padding: 1.2rem; color: var(--muted); }

.detail-scene h3 { margin-top: .4rem; }
.notice-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem 1rem; margin-block: 1.1rem 1.25rem; padding: .9rem; border: 1px solid var(--line); border-radius: 10px; background: #f7fafb; }
.notice-facts dt { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.notice-facts dd { margin-top: .2rem; font-weight: 665; font-size: .95rem; overflow-wrap: anywhere; }
.attachments-heading { margin-bottom: .65rem; }
.file-row, .result-download { display: flex; align-items: center; gap: .65rem; min-height: 62px; padding: .62rem; border: 1px solid var(--line); border-radius: 10px; }
.file-type { display: grid; place-items: center; flex: 0 0 auto; width: 35px; min-height: 38px; border-radius: 7px; color: #983b40; background: #fae9ea; font-size: .72rem; font-weight: 750; }
.file-details { flex: 1 1 auto; min-width: 0; }
.file-details strong { display: block; font-size: .9rem; font-weight: 690; line-height: 1.4; overflow-wrap: anywhere; }
.file-details small { display: block; margin-top: .25rem; color: var(--muted); font-size: .8rem; }

.result-banner { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; padding: .85rem; background: var(--mint); border: 1px solid #cde5d9; border-radius: 9px; }
.result-banner a { margin-left: auto; }
.check-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; background: #197456; color: #fff; border-radius: 50%; }
.check-icon::before { content: ""; width: 13px; height: 7px; margin-top: -2px; border: solid; border-width: 0 0 2px 2px; rotate: -45deg; }
.result-banner h3 { font-size: 1.38rem; }
.result-name { margin-top: .9rem; font-size: 1.06rem; font-weight: 720; line-height: 1.5; }
.result-reference { margin-top: .23rem; font-size: .85rem; color: var(--muted); }
.result-download { margin-top: .9rem; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; gap: .7rem; margin-block: .9rem; }
.result-panel { min-width: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; padding-bottom: .6rem; }
.result-panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem .7rem; flex-wrap: wrap; padding: .68rem .75rem; background: #f5f8f9; border-bottom: 1px solid var(--line); }
.result-panel-title a { font-size: .85rem; font-weight: 650; }
.result-original { max-height: 17.75rem; overflow: auto; padding: .75rem; color: var(--ink); font-size: .91rem; line-height: 1.68; }
.result-original p + p { margin-top: .46rem; }
.result-original .source-heading { font-weight: 740; margin-top: .62rem; }
.result-original .source-note { color: var(--muted); font-size: .84rem; }
.analysis-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; padding: .66rem .75rem .5rem; color: var(--teal-dark); }
.analysis-metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .38rem; padding: .38rem .5rem; background: #eef6f2; border-radius: 6px; }
.analysis-metric strong { font-variant-numeric: tabular-nums; font-size: 1.08rem; }
.analysis-metric span { font-size: .83rem; }
.analysis-items { list-style: none; margin: 0; padding: 0 .75rem; }
.analysis-item { padding: .5rem 0; border-top: 1px solid var(--line); }
.analysis-item:first-child { border-top: 0; }
.analysis-label { font-size: .93rem; font-weight: 690; line-height: 1.48; overflow-wrap: anywhere; }
.analysis-meta, .analysis-detail { margin-top: .22rem; font-size: .84rem; line-height: 1.48; color: var(--muted); overflow-wrap: anywhere; }
.analysis-expand { margin: .1rem .75rem 0; border-top: 1px solid var(--line); }
.analysis-expand summary { padding: .52rem 0 .15rem; color: var(--teal-dark); font-size: .88rem; cursor: pointer; }
.analysis-expand .analysis-items { padding: 0; max-height: 18rem; overflow: auto; }

.workflow { padding: 1.05rem 1.15rem 1.16rem; }
.workflow-head { display: flex; align-items: baseline; justify-content: space-between; gap: .45rem 1rem; flex-wrap: wrap; }
.workflow-head h2 { font-size: 1.15rem; }
#demo-status { color: var(--teal-dark); font-size: .84rem; line-height: 1.4; }
.progress-track { height: 5px; border-radius: 4px; overflow: hidden; margin-top: .76rem; background: #e6edef; }
#progress-fill { width: 0; height: 100%; background: #25826b; border-radius: inherit; transition: width .26s ease; }
.steps { list-style: none; margin: .8rem 0 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 9px; align-items: start; padding: .72rem .46rem; border-radius: 8px; }
.steps li + li { margin-top: .16rem; }
.step-number { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #456071; background: #eaf0f3; font-size: .81rem; font-weight: 740; }
.steps strong { display: block; color: var(--ink); font-size: .94rem; line-height: 1.48; }
.steps p { margin-top: .16rem; color: var(--muted); font-size: .865rem; line-height: 1.48; }
.steps [data-state="current"] { background: #edf6f1; }
.steps [data-state="current"] .step-number { color: #fff; background: var(--teal); }
.steps [data-state="done"] .step-number { color: var(--teal-dark); background: #e0f0e6; }
.steps [data-state="done"] .step-number::before { content: "✓"; font-size: .94rem; }
.steps [data-state="done"] .step-number { font-size: 0; }
.page-footer { margin-block: 1.1rem 2.2rem; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.is-target { outline: 3px solid #de9b42; outline-offset: 3px; animation: attention .68s ease-out; }
@keyframes attention { from { box-shadow: 0 0 0 0 #e3a95899; } to { box-shadow: 0 0 0 9px #e3a95800; } }

@media (max-width: 880px) {
  .demo-grid { grid-template-columns: minmax(0,1fr); }
  .workflow { padding-inline: 1rem; }
  .steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .25rem; }
  .steps li + li { margin-top: 0; }
}
@media (max-width: 555px) {
  .topbar-inner { min-height: 54px; }
  .topbar-link { font-size: .82rem; text-align: right; line-height: 1.33; }
  .topbar-link .external-icon { display: none; }
  .brand { font-size: .9rem; white-space: nowrap; }
  .brand-icon { width: 28px; height: 28px; padding-inline: 5px; }
  .intro { flex-direction: column; align-items: flex-start; gap: .85rem; }
  .stage-header { padding-inline: .78rem; }
  .stage-content { min-height: 320px; }
  .portal { gap: 1.25rem; }
  .portal-identity { flex-wrap: wrap; }
  .portal-entry { align-items: flex-start; }
  .result-grid { grid-template-columns: minmax(0,1fr); }
  .file-row, .result-download { flex-wrap: wrap; }
  .file-row .button, .result-download .button { margin-left: auto; }
  .result-banner a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
