:root { --frame:1224px; }
* {box-sizing:border-box}
[hidden] {display:none!important}
html {font:100%/1.56 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;color:var(--ink);background:#fff}
body,h1,h2,h3,p,ul,figure {margin:0}
body {overflow-wrap:break-word}
button,input,textarea,select {font:inherit;color:inherit}
button {cursor:pointer;min-height:44px;background:white;border:1px solid var(--line);border-radius:9px;padding:7px 15px}
a {color:var(--link);text-underline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {outline:3px solid var(--link);outline-offset:3px}
button:hover,summary:hover {color:var(--link)}
.frame {width:min(var(--frame),calc(100% - 112px));margin-inline:auto}
.symbols {position:absolute;inline-size:0;block-size:0;overflow:hidden}
.ui-icon {width:20px;height:20px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.brand {display:inline-flex;min-height:44px;align-items:center;text-decoration:none;flex:none}
.wordmark {width:218px;height:auto;display:block}
.mast {border-bottom:1px solid var(--line);background:#fff}
.mast-inner,.mast nav,.nav-guide,.language {display:flex;align-items:center}
.mast-inner {min-height:76px;justify-content:space-between;gap:18px}
.mast nav {gap:24px;color:var(--ink)}
.mast nav a,.mast nav button,.site-foot nav a,.site-foot nav button {font-size:14px;line-height:1.35;font-weight:540;text-decoration:none;color:inherit}
.mast nav button {background:transparent}
.mast nav a:hover,.mast nav button:hover,.site-foot nav a:hover,.site-foot nav button:hover {color:var(--link)}
.nav-guide {min-height:44px;gap:8px}
.nav-guide .ui-icon {height:17px;width:17px}
.mast nav .nav-account {display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:1px solid var(--line);border-radius:8px;padding-inline:10px;white-space:nowrap}
.nav-account .ui-icon {height:17px;width:17px}
.live-controls .save-conversation {display:inline-flex;align-items:center;min-height:44px;margin-inline-start:12px;font-size:13px;font-weight:600}
.about-link {padding:0;border:none}
.language-wrap {position:relative;border-inline-start:1px solid var(--line);padding-inline-start:18px}
.language {gap:7px;border:0;padding:4px 0}
.language .ui-icon {width:17px;height:17px}
.language .ui-icon:last-child {width:13px}
#locale-menu {position:absolute;z-index:5;inset-inline-end:0;top:calc(100% + 7px);width:max-content;min-width:165px;max-width:calc(100vw - 28px);background:#fff;border:1px solid var(--line);padding:5px;border-radius:12px;box-shadow:0 12px 36px #26394f1a}
#locale-menu button {display:block;width:100%;text-align:start;border:0;padding:9px 13px}
#locale-menu button:hover,#locale-menu button[aria-checked=true],#locale-menu button[aria-selected=true],#locale-menu button[aria-current=true] {background:var(--mist);color:var(--link)}
.landing {
  --opening-width:780px;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  justify-items:center;
  row-gap:clamp(22px,3vw,42px);
  padding-block:clamp(34px,4.1vw,56px) clamp(27px,3.8vw,52px);
  background:radial-gradient(ellipse at center, #f3f6fa, var(--paper) 70%);
}
.hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,44%);
  align-items:center;
  gap:clamp(14px,2.6vw,32px);
  width:min(100%,var(--opening-width));
}
.hero-copy,.hero-route {min-width:0}
.category {display:flex;align-items:center;gap:7px;color:var(--link);font-size:14px;font-weight:650;letter-spacing:.025em}
.category .ui-icon {width:20px;height:20px}
.hero h1 {font-family:"Helvetica Neue","PingFang SC","Microsoft YaHei",Inter,Arial,sans-serif;font-size:clamp(34px,3.65vw,52px);font-weight:660;line-height:1.095;letter-spacing:-.056em;color:var(--ink);text-wrap:balance;margin-block:10px 12px}
.hero h1 em {font-style:normal;color:var(--ink)}
:lang(zh) .hero h1 {font-weight:620;line-height:1.14;letter-spacing:-.052em}
.description {font-size:clamp(16px,1.18vw,19px);line-height:1.6;color:var(--muted);max-width:48ch;text-wrap:pretty}
.hero-route {display:grid;grid-template-columns:minmax(0,1fr);justify-items:center}
.hero-art {width:100%;mix-blend-mode:multiply}
.hero-art img {display:block;width:100%;height:auto;aspect-ratio:2.08;object-fit:cover;object-position:center 58%}
.story-stages {
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:100%;
  margin-block-start:6px;
}
.story-stages::before {
  content:"";
  position:absolute;
  inset-inline:16.6667%;
  inset-block-start:9px;
  height:1px;
  background:color-mix(in srgb, var(--clay) 26%, var(--line));
  pointer-events:none;
}
.story-stages a {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  min-width:0;
  min-height:44px;
  padding:6px 4px 3px;
  color:var(--muted);
  font-size:clamp(12px,1vw,13px);
  font-weight:550;
  line-height:1.35;
  text-decoration:none;
  text-align:center;
}
.story-stages a span {overflow-wrap:anywhere;text-wrap:balance}
.story-stages a::before {content:"";flex:none;width:7px;height:7px;border:1px solid var(--clay);border-radius:50%;background:var(--paper)}
.story-stages a:is(:hover,:focus-visible) {color:var(--ink);text-decoration:underline}
.story-stages a:is(:hover,:focus-visible)::before {background:var(--clay)}
body:not([data-guide=xiaozhe]) .story-stages {display:none}
body:not([data-guide=xiaozhe]) .hero-art {max-width:168px}
body:not([data-guide=xiaozhe]) .hero-art img {aspect-ratio:1;object-fit:contain}
.nav-tools {display:inline-flex;min-height:44px;align-items:center;justify-content:center}
.nav-tools .nav-short {display:none}
.workarea {display:grid;align-items:start;min-width:0;gap:20px}
.card {background:#fff;border:1px solid var(--line);border-radius:17px;min-width:0}
body:not(.has-chat) .workarea {width:min(100%,var(--opening-width))}
.chat {min-width:0}
.greeting,.conversation-label,.result-heading {display:flex;align-items:center;gap:11px}
.avatar {display:block;flex:none;width:43px;height:43px;object-fit:contain}
.agent-name,.speaker {font-size:13px;color:var(--muted);font-weight:650}
.hello {text-wrap:pretty;font-size:clamp(16px,1.3vw,20px);font-weight:600;line-height:1.5;color:var(--ink)}
.examples {display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.examples button {min-height:44px;padding:6px 11px;border:1px solid var(--line);border-radius:24px;background:var(--paper);font-size:14px;line-height:1.35;color:var(--link)}
.examples button:hover {background:var(--mist);border-color:var(--control-edge)}
.composer {display:flex;align-items:center;gap:8px;background:white;border:1px solid var(--control-edge);border-radius:12px;padding:5px 6px 5px 13px}
.composer:focus-within {border-color:var(--link);box-shadow:0 0 0 2px var(--mist)}
.composer textarea {border:0;padding:4px 0;width:100%;min-width:0;flex:1;min-height:31px;max-height:110px;resize:none;line-height:1.5;background:transparent}
.composer textarea:focus-visible {outline:none}
.composer textarea::placeholder {color:var(--muted);opacity:1}
.send {display:grid;place-items:center;border:0;min-width:44px;width:44px;height:44px;min-height:44px;padding:0;background:var(--ink);color:white;border-radius:10px}
.send:hover {background:var(--link);color:white}
.send .ui-icon {width:22px;height:22px;stroke-width:1.9}
.send-label {display:none}
body:not(.has-chat) .greeting {gap:11px;margin-block-end:12px}
body:not(.has-chat) .greeting .avatar {width:clamp(39px,3.4vw,47px);height:auto;border-radius:10px}
body:not(.has-chat) .hello {font-size:clamp(17px,1.6vw,22px);line-height:1.4}
body:not(.has-chat) .composer {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:0;
  padding:15px 12px 11px 17px;
  border-radius:18px;
  border-color:color-mix(in srgb, var(--control-edge) 55%, var(--paper));
  box-shadow:0 12px 36px -26px rgb(30 48 69 / 40%),0 2px 7px rgb(30 48 69 / 5%);
}
body:not(.has-chat) .composer:focus-within {border-color:var(--link);box-shadow:0 0 0 3px rgb(49 79 112 / 12%)}
body:not(.has-chat) .composer textarea {min-height:clamp(86px,7vw,102px);max-height:145px;font-size:17px;padding-block:2px 8px}
body:not(.has-chat) .send {display:flex;justify-self:end;align-items:center;gap:7px;width:auto;min-height:46px;padding-inline:15px;font-size:14px;font-weight:650}
body:not(.has-chat) .send-label {display:inline}
body:not(.has-chat) .send .ui-icon {width:18px;height:18px}
body:not(.has-chat) #examples {margin:13px 0 0;gap:8px}
#examples button {padding-inline:14px;font-weight:560}
.privacy {display:flex;align-items:baseline;gap:7px;margin-top:7px;color:var(--muted);font-size:12px}
body:not(.has-chat) .privacy {margin-block-start:12px}
.lock {flex:none;height:8px;width:9px;border:1px solid currentColor;border-radius:2px;position:relative;margin-inline:2px}
.lock::before {content:"";position:absolute;inset-inline-start:1px;top:-5px;width:4px;height:4px;border:1px solid currentColor;border-bottom:0;border-radius:4px 4px 0 0}
.shelf {background:var(--paper);border-block:1px solid var(--line);padding-block:41px 44px}
.shelf-head {display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.shelf h2 {font-size:clamp(25px,2.1vw,34px);line-height:1.35;font-weight:640;letter-spacing:-.035em;color:var(--ink)}
.shelf-head p {margin-top:5px;font-size:15px;color:var(--muted)}
.all-guides {display:inline-flex;align-items:center;gap:7px;min-height:44px;text-decoration:none;font-size:14px;font-weight:600;flex:none}
.all-guides:hover {text-decoration:underline}
.all-guides .ui-icon {width:14px;height:14px;stroke-width:2}
[dir=rtl] .all-guides .ui-icon {transform:scaleX(-1)}
.tile-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.guide-tile {display:block;position:relative;min-width:0;min-height:172px;padding:16px 20px 20px;background:white;border:1px solid var(--line);border-radius:13px;text-decoration:none;color:var(--ink)}
.guide-tile:hover {border-color:var(--control-edge)}
.guide-tile:hover h3 {color:var(--link)}
.tile-art {display:inline-grid;width:45px;height:45px;place-items:center;margin-bottom:11px}
.tile-art .ui-icon {width:45px;height:45px;stroke-width:2;color:var(--ink)}
.tile-art .wash {fill:var(--paper);stroke:none}
.tile-art .detail {stroke:var(--ink)}
.tile-meta {display:block;font-size:13px;color:var(--muted)}
.guide-tile h3 {font-size:clamp(16px,1.23vw,20px);line-height:1.5;font-weight:600;margin-top:4px;letter-spacing:-.025em}
.site-foot {background:white;color:var(--muted);font-size:14px}
.foot-main,.foot-base,.site-foot nav {display:flex;justify-content:space-between;align-items:center;gap:20px}
.foot-main {padding-block:25px 22px}
.site-foot .wordmark {width:176px}
.site-foot p {margin-top:1px;font-size:14px}
.site-foot nav {gap:24px;flex-wrap:wrap;justify-content:flex-end}
.site-foot nav a,.site-foot nav button {display:inline-flex;align-items:center;min-height:44px}
.foot-base {border-top:1px solid var(--line);padding-block:16px 22px}
.foot-base small {font-size:12px;display:inline-flex;align-items:center;gap:5px}
.foot-base .ui-icon {width:15px;height:15px}
.has-chat .landing {display:block;padding-block:28px 40px;background:none}
.session-head {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.session-head h1 {font-size:clamp(28px,3.1vw,42px);letter-spacing:-.04em;line-height:1.2;color:var(--ink);margin-top:6px}
.has-materials .workarea {grid-template-columns:minmax(0,1.22fr) minmax(0,1fr)}
.has-chat:not(.has-materials) .workarea {max-width:850px;margin-inline:auto}
.has-chat .chat,.results {padding:clamp(18px,2vw,30px);margin:0}
.conversation-label h2,.result-heading h2 {font-size:21px;font-weight:620;line-height:1.35;letter-spacing:-.025em;color:var(--ink)}
.conversation {min-width:0;overflow-wrap:anywhere}
.has-chat .conversation {margin:17px 0;max-height:min(49vh,440px);overflow:auto;overscroll-behavior:contain;padding-inline-end:5px}
.question {padding:10px 14px;max-width:91%;width:fit-content;margin:0 0 11px auto;border-radius:14px 14px 4px 14px;background:var(--mist);color:var(--ink)}
[dir=rtl] .question {margin:0 auto 11px 0}
.turn+.turn {margin-top:22px}
.reply {margin-top:5px}
.delta,.source-date,.small,.status,.note {font-size:13px;color:var(--muted)}
.delta {margin-top:8px;border-inline-start:2px solid var(--control-edge);padding-inline-start:8px}
.followups:empty {display:none}
.quiet,.actions button {font-size:14px;color:var(--link)}
details {margin-top:14px;border-top:1px solid var(--line)}
summary {min-height:44px;padding-block:12px 0;cursor:pointer;color:var(--muted);font-size:14px}
.fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:12px 0}
.fields label {font-size:13px;font-weight:600}
.fields input,.fields select,#manual {width:100%;min-height:44px;border:1px solid var(--control-edge);border-radius:7px;padding:7px;background:white}
[data-guide=xiaozhe] .results {position:relative;overflow:hidden;border-start-end-radius:4px}
[data-guide=xiaozhe] .results::after {content:"";position:absolute;inset-block-start:0;inset-inline-end:0;width:26px;height:26px;pointer-events:none;background:linear-gradient(45deg,var(--fold-light) 5%,var(--clay) 49%,#fff 51%);border-bottom-left-radius:6px;box-shadow:-1px 1px 2px #60432218}
[dir=rtl] [data-guide=xiaozhe] .results::after {transform:scaleX(-1)}
[data-guide=xiaozhe] .result-heading {padding-inline-end:15px}
.scope {margin:10px 0 2px;color:var(--link);font-size:14px}
.results ul {list-style:none;padding:0;margin-top:14px}
.item {padding:12px 0;border-top:1px solid var(--line)}
.item label {display:flex;gap:8px;align-items:baseline;cursor:pointer;font-weight:600}
.item input {accent-color:var(--link)}
.item p {margin-block:4px 0;margin-inline-start:25px;color:var(--muted);font-size:14px}
.kind {color:var(--muted);font-size:12px;font-weight:600}
.evidence,.bilingual {background:var(--mist);border:1px solid var(--line);border-radius:11px;padding:14px 16px;margin:12px 0}
.evidence h3,.bilingual h3 {font-size:16px;color:var(--ink)}
.evidence p,.bilingual p {margin-top:5px;font-size:14px}
.evidence a {display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:600}
.actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.status:not(:empty){margin-top:7px}
#manual {min-height:90px}
dialog {width:min(470px,90vw);padding:27px;border:1px solid var(--line);border-radius:17px;color:var(--ink);box-shadow:0 16px 55px #26394f29}
dialog::backdrop {background:rgb(19 29 49 / .35)}
#about form {float:inline-end}
.close {min-width:44px;border:none;padding:0;font-size:24px}
dialog h2 {font-size:24px;margin:8px 0}
dialog p {margin-top:10px}
.sr-only {position:absolute;height:1px;width:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
@media (max-width:1050px) {
  .frame {width:calc(100% - 64px)}
  .guide-tile {padding-inline:15px}
}
@media (max-width:800px) {
  .frame {width:calc(100% - 40px)}
  .wordmark {width:180px}
  .mast nav {flex-wrap:wrap;justify-content:flex-end;gap:0 15px}
  .hero h1,:lang(zh) .hero h1 {font-size:clamp(33px,5vw,43px)}
  .tile-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .has-materials .workarea {grid-template-columns:1fr}
  .shelf {padding-block:30px}
  .site-foot nav {gap:14px}
}
@media (max-width:580px) {
  .frame {width:calc(100% - 32px)}
  .wordmark {width:174px}
  .mast-inner {min-height:62px;gap:8px}
  .mast nav {gap:11px}
  .mast nav a,.mast nav button {font-size:13px}
  .mast .about-link,.nav-tools .nav-wide,.nav-guide .ui-icon {display:none}
  .nav-tools .nav-short {display:inline}
  .nav-tools {min-width:44px}
  .language-wrap {padding-inline-start:9px}
  .language {gap:4px}
  .language .ui-icon {width:14px;height:14px}
  .language .ui-icon:last-child {width:11px}
  .landing {row-gap:8px;padding-block:16px 16px}
  .category {gap:4px;font-size:12px;letter-spacing:0}
  .category .ui-icon {width:15px;height:15px}
  .hero {display:block}
  .hero h1,:lang(zh) .hero h1 {font-size:clamp(21px,5.4vw,29px);line-height:1.18;font-weight:650;margin-block:8px 9px}
  :is(:lang(zh),:lang(ja)) .hero h1 {font-size:clamp(22px,6.65vw,37px)}
  .description {font-size:14px;line-height:1.55}
  .hero-route {display:none}
  body:not(.has-chat) .greeting {gap:9px}
  body:not(.has-chat) .composer {padding:12px;border-radius:15px}
  body:not(.has-chat) .composer textarea {min-height:78px;font-size:16px}
  .greeting {gap:7px}
  .avatar {width:39px;height:39px}
  .hello {text-wrap:pretty;font-size:16px}
  .examples {gap:6px;margin:11px 0}
  .examples button {padding:5px 10px;font-size:13px}
  #examples button {padding-inline:9px}
  .privacy {font-size:12px}
  .shelf-head {align-items:flex-start;gap:9px;flex-wrap:wrap;margin-bottom:14px}
  .shelf-head p {font-size:14px}
  .all-guides {min-height:44px}
  .guide-tile {padding:12px;min-height:150px}
  .tile-grid {gap:9px}
  .tile-meta {font-size:12px}
  .tile-art {margin-bottom:6px}
  .guide-tile h3 {font-size:16px}
  .foot-main,.foot-base {flex-direction:column;align-items:flex-start;gap:8px}
  .site-foot nav {gap:3px 16px;justify-content:flex-start}
  .foot-base {padding-block:12px 18px}
  .foot-main {padding-block:16px 12px}
  .has-chat .landing {padding-block:19px 28px}
  .session-head h1 {font-size:27px}
  .has-chat .conversation {max-height:47vh}
}
@media (max-width:370px) {
  .frame {width:calc(100% - 24px)}
  .mast .wordmark {width:160px}
  .mast nav {gap:7px}
  .tile-grid {grid-template-columns:1fr}
  .guide-tile {min-height:auto;display:grid;grid-template-columns:43px 1fr;column-gap:10px}
  .tile-art {grid-row:span 2;align-self:center}
  .guide-tile h3 {margin-top:0}
}

@media (max-width:460px) {
  .mast .wordmark {width:clamp(116px,35vw,174px)}
  .mast .nav-guide {position:relative;min-width:40px;justify-content:center}
  .mast .nav-guide .ui-icon {display:block;width:17px;height:17px}
  .mast .language {min-width:44px;justify-content:center}
  .mast .language-wrap {padding:0;border:0}
  .mast .language .ui-icon:last-child {display:none}
  .mast nav .nav-account {position:relative;min-width:44px;padding-inline:0}
  .mast .nav-guide span,.mast .nav-account span,.mast [data-locale-label] {position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)}
  .mast nav {gap:4px}
}
@media (max-width:370px) {
  .mast-inner {gap:4px;width:calc(100% - 12px)}
  .language-wrap {padding-inline-start:0}
  .language .ui-icon:last-child {display:none}
  .mast .nav-guide {min-width:44px}
}
