.site-header { min-height: 88px; }
main { padding: 18px 0 30px; }
.hero-logo { width: min(300px, 100%); }
h1 { margin: 0 0 10px; font-size: 29px; }
.hero-actions { margin-top: 26px; }
.timeline-demo { --demo-row-height: 164px; --demo-head-height: 36px; --demo-nav-width: 48px; --demo-columns: var(--demo-nav-width) minmax(0, 1.7fr) minmax(0, 1fr); width: min(560px, 100%); margin: 26px auto 0; text-align: left; }
.demo-window { position: relative; overflow: hidden; border: 1px solid #343434; border-radius: 12px; background: #0e0e0e; box-shadow: 0 12px 45px #0006; }
.demo-bar { display: flex; align-items: center; position: relative; height: 34px; border-bottom: 1px solid #292929; background: #131313; color: #8a8a8a; font-size: 11px; }
.demo-address { display: inline-flex; align-items: center; gap: 6px; padding-left: 13px; }
.demo-address-dot { width: 4px; height: 4px; border-radius: 50%; background: #737373; }
.demo-rail-title { display: flex; align-items: center; gap: 7px; height: var(--demo-head-height); padding-left: 14px; border-bottom: 1px solid #292929; color: #e4e4e4; font-size: 12px; }
.demo-rail-title img { width: 16px; height: 15px; filter: invert(1); }
.demo-rail-title strong { font-weight: 600; }
.demo-toggle { position: absolute; right: 7px; top: 3px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; padding: 5px; border-radius: 5px; color: #9b9b9b; background: transparent; cursor: pointer; }
.demo-toggle:hover { color: #fff; background: #252525; }
.demo-toggle svg { width: 13px; height: 13px; }
.demo-toggle [hidden] { display: none; }
.demo-play-icon { display: none; }
[data-state="paused"] .demo-play-icon { display: block; }
[data-state="paused"] .demo-pause-icon { display: none; }
.demo-columns { position: relative; display: grid; grid-template-columns: var(--demo-columns); height: calc(var(--demo-head-height) + var(--demo-row-height) * 3); }
.demo-columns, .demo-bar { direction: ltr; }
.demo-nav { display: flex; flex-direction: column; align-items: center; gap: 15px; padding: 17px 0 14px; border-right: 1px solid #292929; }
.demo-x-mark { width: 20px; height: 20px; color: #e5e5e5; margin-bottom: 4px; }
.demo-nav-item { display: grid; place-items: center; width: 31px; height: 29px; color: #777; border-radius: 7px; }
.demo-nav-item.is-selected { color: #ededed; background: #222; }
.demo-nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.demo-nav-profile { margin-top: auto; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #bcbcbc, #494949); }
.demo-timeline { min-width: 0; overflow: hidden; border-right: 1px solid #303030; }
.demo-timeline-head { height: var(--demo-head-height); border-bottom: 1px solid #292929; }
.demo-feed-viewport, .demo-response-viewport { height: calc(var(--demo-row-height) * 3); overflow: hidden; position: relative; }
.demo-feed-viewport, .demo-response-viewport { touch-action: pan-x pinch-zoom; }
[data-zoomed="true"] .demo-feed-viewport, [data-zoomed="true"] .demo-response-viewport { touch-action: auto; }
[data-touch="drag"] .demo-pointer, [data-touch="inertia"] .demo-pointer, [data-touch="multi"] .demo-pointer { opacity: 0; }
.demo-feed-track, .demo-response-track { will-change: transform; }
.demo-post { height: var(--demo-row-height); display: flex; gap: 9px; padding: 12px; border-bottom: 1px solid #282828; color: #cecece; transition: background .3s; }
.demo-post.is-current { background: #ffffff03; }
.demo-post-avatar { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(135deg, #d4d4d4, #616161); box-shadow: inset 0 0 0 1px #ffffff10; }
.demo-post:nth-child(3n+2) .demo-post-avatar { background: linear-gradient(45deg, #484848, #c1c1c1); }
.demo-post:nth-child(3n) .demo-post-avatar { background: #999; }
.demo-post-content { min-width: 0; flex: 1; }
.demo-post-name { display: block; color: #ededed; font-size: 11px; font-weight: 600; line-height: 1.5; }
.demo-post-text { margin: 7px 0 10px; color: #c9c9c9; font-size: 13px; line-height: 1.7; white-space: pre-line; }
.demo-post-actions { display: flex; justify-content: space-between; width: 85%; max-width: 150px; color: #666; }
.demo-post-actions svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.demo-insights { min-width: 0; overflow: hidden; background: #ffffff01; }
.demo-response { height: var(--demo-row-height); padding: 12px; border-bottom: 1px solid #282828; transition: background .3s; }
.demo-response.is-current { background: #ffffff03; }
.demo-explanation, .demo-fact-check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; align-items: start; }
html:not([lang^="zh"]) .demo-explanation, html:not([lang^="zh"]) .demo-fact-check { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.demo-response-label, .demo-fact-label { color: #818181; font-size: 10px; line-height: 1.9; }
.demo-fact-label { color: #c4c4c4; }
.demo-response-text, .demo-fact-text { margin: 0; color: #c9c9c9; font-size: 12px; line-height: 1.6; min-height: 19.2px; }
.demo-fact-check { margin-top: 7px; }
.demo-fact-text { color: #aeaeae; }
[data-state="running"] .demo-response.is-streaming .demo-response-text::after,
[data-state="running"] .demo-response.is-checking .demo-fact-text::after { content: ""; display: inline-block; width: 1px; height: 11px; margin-left: 2px; background: #aaa; vertical-align: -1px; animation: demo-caret 1s steps(1) infinite; }
.demo-sources { display: flex; align-items: center; gap: 5px; margin: 9px 0 0 34px; opacity: 0; visibility: hidden; transition: opacity .25s; }
html:not([lang^="zh"]) .demo-sources { margin-left: 0; }
.demo-sources.is-visible { opacity: 1; visibility: visible; }
.demo-sources a { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 28px; height: 24px; padding: 0 4px; border: 1px solid #393939; border-radius: 4px; color: #cecece; background: #191919; font-size: 10px; line-height: 1; transition: background .2s, border-color .2s; }
.demo-sources a svg { width: 9px; height: 9px; }
.demo-sources a:hover, .demo-sources a:focus-visible { color: #fff; background: #303030; border-color: #888; }
.demo-sources a:focus-visible { outline-offset: 2px; }
.demo-pointer { position: absolute; z-index: 4; left: 43%; top: 58%; width: 21px; height: 24px; pointer-events: none; filter: drop-shadow(1px 2px 2px #0009); transition: opacity .25s; }
.demo-pointer svg { display: block; width: 100%; height: 100%; }
.demo-wheel { position: absolute; left: 21px; top: 8px; width: 12px; height: 20px; border: 1px solid #939393; border-radius: 7px; background: #181818; opacity: 0; transition: opacity .2s; }
.demo-wheel::after { content: ""; display: block; width: 2px; height: 5px; margin: 4px auto 0; border-radius: 1px; background: #fff; }
[data-phase="scroll"][data-state="running"] .demo-wheel { opacity: 1; }
[data-phase="scroll"][data-state="running"] .demo-wheel::after { animation: demo-wheel-roll .65s ease-in-out infinite; }
[data-state="paused"] .demo-pointer, [data-state="reduced"] .demo-pointer { opacity: 0; }
.timeline-demo figcaption { margin-top: 10px; text-align: center; color: #717171; font-size: 11px; line-height: 1.6; }
@keyframes demo-caret { 50% { opacity: 0; } }
@keyframes demo-wheel-roll { 0% { transform: translateY(0); opacity: .4; } 50% { opacity: 1; } 100% { transform: translateY(5px); opacity: .1; } }
@media (max-width: 800px) {
  main { padding: 15px 0 28px; }
  .hero-logo { width: min(280px, 100%); margin-left: auto; }
  h1 { margin: 0 0 10px; font-size: 28px; }
  .hero-actions { margin-top: 25px; }
}
@media (max-width: 540px) {
  .timeline-demo { --demo-row-height: 210px; --demo-head-height: 34px; --demo-nav-width: 35px; --demo-columns: var(--demo-nav-width) minmax(0, 1.7fr) minmax(0, 1fr); margin-top: 23px; }
  .hero-logo { width: min(270px, 100%); margin-left: auto; }
  h1 { font-size: 25px; }
  .demo-bar { height: 31px; }
  .demo-address { padding-left: 9px; font-size: 10px; }
  .demo-rail-title { gap: 5px; padding-left: 8px; font-size: 10px; }
  .demo-rail-title img { width: 12px; height: 12px; }
  .demo-toggle { right: 2px; top: 2px; width: 25px; height: 25px; }
  .demo-nav { gap: 15px; padding-top: 15px; }
  .demo-x-mark { width: 17px; height: 17px; }
  .demo-nav-item { width: 25px; height: 25px; }
  .demo-nav-item svg { width: 15px; height: 15px; }
  .demo-nav-profile { width: 15px; height: 15px; }
  .demo-post { padding: 14px 8px; gap: 6px; }
  .demo-post-avatar { width: 16px; height: 16px; }
  .demo-post-name { font-size: 9px; }
  .demo-post-text { font-size: 11px; margin: 9px 0 16px; line-height: 1.65; }
  .demo-post-actions svg { width: 10px; height: 10px; }
  .demo-response { padding: 10px 6px; }
  .demo-explanation, .demo-fact-check { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  html[lang="en"] .timeline-demo { --demo-row-height: 230px; }
  html[lang="en"] .demo-explanation, html[lang="en"] .demo-fact-check { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .demo-response-label, .demo-fact-label { font-size: 9px; line-height: 1.7; }
  .demo-response-text, .demo-fact-text { font-size: 11px; line-height: 1.55; min-height: 17px; }
  .demo-fact-check { margin-top: 6px; }
  .demo-sources { margin: 8px 0 0; gap: 3px; }
  html[lang="en"] .demo-sources { margin-left: 0; }
  .demo-sources a { min-width: 24px; height: 24px; padding: 0 2px; font-size: 9px; }
  .demo-sources a svg { width: 8px; height: 8px; }
  .demo-pointer { width: 17px; height: 20px; left: 42%; }
  .demo-wheel { left: 17px; width: 10px; height: 18px; }
  .hero-actions { margin-top: 24px; }
  .timeline-demo figcaption { font-size: 10px; }
}
@media (max-width: 540px) and (orientation: portrait) {
  .timeline-demo { --demo-head-height: 30px; flex: 1 1 0; min-height: 0; width: 100%; margin: 10px auto 0; display: flex; flex-direction: column; }
  .demo-window { flex: 1 1 0; min-height: 0; max-height: calc(28px + var(--demo-head-height) + var(--demo-row-height) * 3 + 2px); display: flex; flex-direction: column; }
  .demo-bar { flex: 0 0 28px; height: 28px; }
  .demo-toggle { top: 1px; }
  .demo-columns { flex: 1 1 0; min-height: 0; height: auto; }
  .demo-timeline, .demo-insights { min-height: 0; display: grid; grid-template-rows: var(--demo-head-height) minmax(0, 1fr); }
  .demo-feed-viewport, .demo-response-viewport { height: 100%; min-height: 0; }
  .demo-nav { min-height: 0; gap: 10px; padding: 10px 0; overflow: hidden; }
  .demo-nav-item { flex: 0 0 25px; }
  .demo-x-mark, .demo-nav-profile { flex-shrink: 0; }
  .timeline-demo figcaption { flex: 0 0 auto; margin: 6px 0 0; font-size: 10px; line-height: 1.4; }
}
@media (max-width: 540px) and (max-height: 600px) and (orientation: portrait) {
  .timeline-demo { margin-top: 8px; }
  .timeline-demo figcaption { margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-pointer { display: none; }
  .demo-toggle { visibility: hidden; }
  .demo-response-text::after, .demo-fact-text::after { display: none !important; }
  .demo-feed-track, .demo-response-track { will-change: auto; }
}
