:root {
  --ink: #18221d;
  --muted: #657069;
  --paper: #f6f7f2;
  --card: rgba(255, 255, 255, .92);
  --green: #08633f;
  --green-dark: #06462f;
  --gold: #c69a48;
  --line: #dfe4dc;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body.intro-lock{overflow:hidden}
.intro-splash{position:fixed;z-index:1000;inset:0;display:grid;place-content:center;justify-items:center;overflow:hidden;color:#fff;background:radial-gradient(circle at 50% 42%,#294f7d 0,#172f52 34%,#0d1d35 72%,#091426 100%);animation:splashLeave .55s cubic-bezier(.65,0,.35,1) 1.55s forwards;pointer-events:none}.intro-splash::before{content:"";position:absolute;inset:-50%;background:repeating-linear-gradient(90deg,transparent 0 78px,rgba(120,174,232,.035) 79px 80px),repeating-linear-gradient(0deg,transparent 0 78px,rgba(120,174,232,.028) 79px 80px);transform:perspective(700px) rotateX(60deg) translateY(34%);mask-image:linear-gradient(to bottom,transparent 15%,#000 80%);animation:gridDrift 2.2s linear both}.intro-logo-wrap{position:relative;z-index:2;width:132px;height:132px;padding:9px;border-radius:34px;background:rgba(255,255,255,.96);box-shadow:0 0 0 1px rgba(255,255,255,.5),0 0 70px rgba(78,147,220,.45),0 28px 80px rgba(0,0,0,.35);overflow:hidden;animation:logoEnter .8s cubic-bezier(.16,1,.3,1) both}.intro-logo-wrap img{width:100%;height:100%;object-fit:contain;border-radius:26px}.intro-scan{position:absolute;z-index:3;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,#65baff,white,#65baff,transparent);box-shadow:0 0 16px #65baff;animation:scanLogo 1.15s ease-in-out .25s both}.intro-splash>strong{position:relative;z-index:2;margin-top:22px;font:700 36px "Songti SC",SimSun,serif;letter-spacing:.22em;text-indent:.22em;text-shadow:0 0 28px rgba(91,167,239,.45);animation:textReveal .65s ease .32s both}.intro-splash>small{position:relative;z-index:2;margin-top:7px;color:#b9cce4;letter-spacing:.3em;text-indent:.3em;animation:textReveal .65s ease .48s both}.intro-orbit{position:absolute;left:50%;top:50%;border:1px solid rgba(107,171,234,.23);border-radius:50%;transform:translate(-50%,-56%);animation:orbitPulse 1.7s ease-out both}.orbit-one{width:260px;height:260px}.orbit-two{width:380px;height:380px;animation-delay:.18s}.intro-progress{position:relative;z-index:2;width:176px;height:2px;margin-top:25px;overflow:hidden;background:rgba(255,255,255,.12)}.intro-progress i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#4b91d2,#e5bd6c);transform-origin:left;animation:progressFill 1.35s cubic-bezier(.22,1,.36,1) .18s both}.intro-splash.finished{opacity:0;transition:opacity .4s ease}.site-header{animation:pageDrop .65s cubic-bezier(.22,1,.36,1) 1.55s both}.hero .eyebrow{animation:heroRise .65s ease 1.65s both}.hero h1{animation:heroRise .72s cubic-bezier(.22,1,.36,1) 1.73s both}.hero .intro{animation:heroRise .65s ease 1.82s both}.hero .engine-badge{animation:heroRise .65s ease 1.9s both}.hero .suggestions button{animation:heroRise .55s ease both}.hero .suggestions button:nth-child(1){animation-delay:1.98s}.hero .suggestions button:nth-child(2){animation-delay:2.06s}.hero .suggestions button:nth-child(3){animation-delay:2.14s}.composer-wrap{animation:composerEnter .7s cubic-bezier(.22,1,.36,1) 1.85s both}
@keyframes logoEnter{from{opacity:0;transform:scale(.68) rotate(-6deg);filter:blur(8px)}60%{transform:scale(1.06) rotate(1deg)}to{opacity:1;transform:none;filter:none}}@keyframes scanLogo{from{top:-4px;opacity:0}15%{opacity:1}85%{opacity:1}to{top:136px;opacity:0}}@keyframes textReveal{from{opacity:0;transform:translateY(12px);filter:blur(7px)}to{opacity:1;transform:none;filter:none}}@keyframes orbitPulse{from{opacity:0;transform:translate(-50%,-56%) scale(.55)}45%{opacity:1}to{opacity:0;transform:translate(-50%,-56%) scale(1.18)}}@keyframes progressFill{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes gridDrift{from{transform:perspective(700px) rotateX(60deg) translateY(42%)}to{transform:perspective(700px) rotateX(60deg) translateY(30%)}}@keyframes splashLeave{to{opacity:0;visibility:hidden;transform:scale(1.025);filter:blur(4px)}}@keyframes pageDrop{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:none}}@keyframes heroRise{from{opacity:0;transform:translateY(18px);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}@keyframes composerEnter{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes fastHeroReveal{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
.fast-new-conversation .hero .eyebrow,.fast-new-conversation .hero h1,.fast-new-conversation .hero .intro,.fast-new-conversation .hero .engine-badge,.fast-new-conversation .hero .suggestions button{animation:fastHeroReveal .18s ease both}
body { margin: 0; min-height: 100vh; background:
  radial-gradient(circle at 15% 0%, rgba(8,99,63,.08), transparent 33rem),
  linear-gradient(180deg, #fafbf7 0%, var(--paper) 100%); }
button, textarea { font: inherit; }
.page-shell { min-height: 100vh; padding-bottom: 150px; }
.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: auto; padding: 0 28px; border-bottom: 1px solid rgba(8,99,63,.12); }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px 12px 12px 4px; color: white; background: var(--green); font: 700 21px serif; box-shadow: 0 7px 18px rgba(8,99,63,.19); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; letter-spacing: .08em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.history-button { border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: 13px; }
.status span:first-child { width: 8px; height: 8px; border-radius: 50%; background: #c3c9c4; }
.status.ready span:first-child { background: #2b9b62; box-shadow: 0 0 0 4px rgba(43,155,98,.12); }
main { max-width: 840px; margin: auto; padding: 0 24px; }
.hero { padding: 76px 0 36px; text-align: center; transition: .25s ease; }
.hero.compact { padding: 28px 0 12px; }
.hero.compact h1, .hero.compact .intro, .hero.compact .suggestions { display: none; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .24em; }
h1 { margin: 17px 0; font-family: "Songti SC", SimSun, serif; font-size: clamp(35px, 6vw, 56px); line-height: 1.22; font-weight: 700; letter-spacing: -.03em; }
h1 em { color: var(--green); font-style: normal; position: relative; }
h1 em::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -7px; height: 3px; background: var(--gold); border-radius: 2px; }
.intro { color: var(--muted); line-height: 1.8; }
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.suggestions button { border: 1px solid var(--line); border-radius: 99px; padding: 10px 15px; color: #435048; background: rgba(255,255,255,.72); cursor: pointer; transition: .18s; }
.suggestions button:hover { color: var(--green); border-color: #83aa96; transform: translateY(-1px); }
.conversation { display: grid; gap: 22px; padding-bottom: 20px; }
.message { animation: rise .28s ease both; }
.message.user { display: flex; justify-content: flex-end; }
.message.user .bubble { max-width: 78%; padding: 13px 17px; border-radius: 18px 18px 4px 18px; background: var(--green); color: white; line-height: 1.65; }
.answer-card { padding: 24px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 12px 35px rgba(32,50,40,.07); }
.answer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--green); font-size: 13px; font-weight: 700; }
.answer-basis{margin-left:auto;padding:4px 8px;border-radius:999px;color:#244f80;background:#e8eef6;font-size:10px;font-weight:600}.answer-basis.is-general{color:#75602d;background:#f6efdc}
.mini-mark { display: grid; place-items: center; width: 28px; height: 28px; color: white; border-radius: 8px; background: var(--green); }
.answer-text { white-space: pre-wrap; line-height: 1.85; }
.answer-text.loading::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 3px; vertical-align: -.15em; background: var(--green); animation: blink .8s infinite; }
.sources { margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.sources h3 { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.source-list { display: grid; gap: 8px; }
.source { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 10px; color: inherit; background: #f4f7f3; text-decoration: none; font-size: 13px; }
.source b { color: var(--green); }
.source span { color: var(--muted); white-space: nowrap; }
.answer-actions { display: flex; align-items: center; gap: 7px; margin-top: 14px; }
.answer-actions button { border: 0; border-radius: 8px; padding: 6px 9px; color: var(--muted); background: transparent; cursor: pointer; }
.answer-actions button:hover, .answer-actions button.selected { color: var(--green); background: #e9f2ec; }
.model-label { margin-left: auto; color: #89918c; font-size: 11px; }
.error { color: #a33636; }
.composer-wrap { position: fixed; left: 0; right: 0; bottom: 0; padding: 15px 20px 14px; background: linear-gradient(180deg, rgba(246,247,242,0), rgba(246,247,242,.96) 24%, var(--paper) 100%); }
.composer { display: flex; align-items: flex-end; gap: 12px; max-width: 800px; margin: auto; padding: 10px 10px 10px 18px; border: 1px solid #cfd8d1; border-radius: 17px; background: white; box-shadow: 0 15px 45px rgba(27,45,34,.13); }
.composer-main{display:grid;flex:1;min-width:0}.thinking-toggle{display:flex;align-items:center;gap:7px;width:max-content;margin-top:3px;color:var(--green);font-size:12px;cursor:pointer;user-select:none}.thinking-toggle input{position:absolute;opacity:0;pointer-events:none}.thinking-toggle small{color:var(--muted);font-size:10px}.toggle-track{position:relative;width:30px;height:17px;border-radius:20px;background:#cbd3dd;transition:.2s}.toggle-track i{position:absolute;top:3px;left:3px;width:11px;height:11px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}.thinking-toggle input:checked+.toggle-track{background:var(--green);box-shadow:0 0 0 3px rgba(24,63,112,.1)}.thinking-toggle input:checked+.toggle-track i{transform:translateX(13px)}
.reasoning-panel{margin:2px 0 22px;padding:0;border:0;background:transparent;color:#7b818b}.reasoning-panel summary{display:flex;align-items:center;gap:7px;min-height:28px;cursor:pointer;list-style:none;font-size:13px}.reasoning-panel summary::-webkit-details-marker{display:none}.reasoning-panel summary b{color:#676e79;font-weight:500}.reasoning-panel summary small{margin-left:3px;color:#9aa0a9;font-size:11px}.reasoning-panel summary>i{width:7px;height:7px;border-right:1px solid #9ba1aa;border-bottom:1px solid #9ba1aa;transform:rotate(45deg) translateY(-2px);transition:.2s}.reasoning-panel[open] summary>i{transform:rotate(225deg) translate(-2px,-1px)}.reasoning-text{margin-top:10px;padding-left:1px;overflow:visible;border:0;white-space:pre-wrap;color:#858a93;font-size:14px;line-height:1.9}.thinking-pulse{width:7px;height:7px;border-radius:50%;background:#7d8591}.reasoning-panel.is-thinking .thinking-pulse{background:#183f70;box-shadow:0 0 0 0 rgba(24,63,112,.22);animation:thinkingPulse 1.4s infinite}.thinking-dots{display:none;align-items:center;gap:4px;margin-top:9px;height:12px}.reasoning-panel.is-thinking[open] .thinking-dots{display:flex}.thinking-dots i{width:4px;height:4px;border-radius:50%;background:#8d929a;animation:thinkingDot 1.15s infinite}.thinking-dots i:nth-child(2){animation-delay:.16s}.thinking-dots i:nth-child(3){animation-delay:.32s}@keyframes thinkingPulse{70%{box-shadow:0 0 0 7px rgba(24,63,112,0)}}@keyframes thinkingDot{0%,70%,100%{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}
.composer:focus-within { border-color: #7da18d; box-shadow: 0 15px 45px rgba(27,45,34,.13), 0 0 0 3px rgba(8,99,63,.08); }
textarea { flex: 1; max-height: 130px; resize: none; border: 0; outline: 0; padding: 7px 0; line-height: 1.55; color: var(--ink); background: transparent; }
.send { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; color: white; background: var(--green); cursor: pointer; }
.send:disabled { opacity: .45; cursor: wait; }
.send svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice { margin: 8px auto 0; text-align: center; color: #8b938e; font-size: 11px; }
.history-panel { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; width: min(390px, 90vw); padding: 22px; background: #fbfcf8; box-shadow: -20px 0 50px rgba(18,34,25,.16); transform: translateX(105%); transition: transform .25s ease; overflow-y: auto; }
.history-panel.open { transform: translateX(0); }
.history-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.history-head button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #edf1ec; cursor: pointer; font-size: 22px; }
.history-list { display: grid; gap: 10px; padding-top: 15px; }
.history-tools{display:flex;gap:8px;margin-top:14px}.history-tools input{min-width:0;flex:1;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;outline:0}.history-tools input:focus{border-color:#718baa}.history-tools button{border:1px solid #d8c6c3;border-radius:10px;padding:0 12px;background:#fff;color:#9c423c;cursor:pointer}.history-item { position:relative;width:100%; padding:14px 82px 14px 14px; border: 1px solid var(--line); border-radius: 12px; text-align: left; background: white; cursor: pointer; }
.history-item strong, .history-item span { display: block; }
.history-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.history-item span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.history-item-actions{position:absolute;right:8px;top:50%;display:flex;gap:3px;transform:translateY(-50%)}.history-item-actions button{width:30px;height:30px;border:0;border-radius:8px;background:#eef2f6;color:#395477;cursor:pointer}.history-item-actions button[data-delete-conversation]{color:#a4423b}.history-item.is-active{border-color:#7c9abe;background:#f4f7fb}.history-open{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left;cursor:pointer;color:inherit}
.panel-mask { position: fixed; z-index: 19; inset: 0; background: rgba(17,30,23,.25); backdrop-filter: blur(2px); }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 600px) {
  .site-header { height: 66px; padding: 0 17px; }
  .brand small { display: none; }
  .status { display: none; }
  main { padding: 0 14px; }
  .hero { padding-top: 45px; }
  .suggestions { align-items: stretch; flex-direction: column; }
  .answer-card { padding: 19px 17px; }
  .message.user .bubble { max-width: 88%; }
  .composer-wrap { padding-inline: 10px; }
  .thinking-toggle small{display:none}
}
@media (prefers-reduced-motion:reduce){.intro-splash{display:none}.site-header,.hero .eyebrow,.hero h1,.hero .intro,.hero .engine-badge,.hero .suggestions button,.composer-wrap{animation:none!important}}
.engine-badge{display:inline-flex;align-items:center;gap:8px;margin:2px 0 24px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.72);color:var(--muted);font-size:11px}.engine-badge>span{width:8px;height:8px;border-radius:50%;background:#a9b2c0}.engine-badge.ready>span{background:#2d79bd;box-shadow:0 0 0 4px rgba(45,121,189,.12)}.engine-badge strong{color:inherit;font-size:11px}.engine-badge.ready strong{color:#174e83}.engine-badge small{padding-left:8px;border-left:1px solid var(--line);color:var(--muted)}
/* QQ Browser compatibility: keep the intro visible when its engine reports reduced motion, and avoid relying on grid/inset/mask without fallbacks. */
.intro-splash{top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;-webkit-animation:splashLeave .55s cubic-bezier(.65,0,.35,1) 1.55s forwards}
.intro-splash::before{top:-50%;right:-50%;bottom:-50%;left:-50%;-webkit-mask-image:linear-gradient(to bottom,transparent 15%,#000 80%)}
@-webkit-keyframes splashLeave{to{opacity:0;visibility:hidden;transform:scale(1.025);filter:blur(4px)}}
@media (prefers-reduced-motion:reduce){.intro-splash{display:flex!important;-webkit-animation:splashLeave .55s ease 1.55s forwards!important;animation:splashLeave .55s ease 1.55s forwards!important}.intro-logo-wrap,.intro-scan,.intro-splash>strong,.intro-splash>small,.intro-orbit,.intro-progress i{-webkit-animation-play-state:running!important;animation-play-state:running!important}}
@media (prefers-reduced-motion:reduce){
  .site-header{-webkit-animation:pageDrop .65s cubic-bezier(.22,1,.36,1) 1.55s both!important;animation:pageDrop .65s cubic-bezier(.22,1,.36,1) 1.55s both!important}
  .hero .eyebrow{-webkit-animation:heroRise .65s ease 1.65s both!important;animation:heroRise .65s ease 1.65s both!important}
  .hero h1{-webkit-animation:heroRise .72s cubic-bezier(.22,1,.36,1) 1.73s both!important;animation:heroRise .72s cubic-bezier(.22,1,.36,1) 1.73s both!important}
  .hero .intro{-webkit-animation:heroRise .65s ease 1.82s both!important;animation:heroRise .65s ease 1.82s both!important}
  .hero .engine-badge{-webkit-animation:heroRise .65s ease 1.9s both!important;animation:heroRise .65s ease 1.9s both!important}
  .hero .suggestions button{-webkit-animation:heroRise .55s ease both!important;animation:heroRise .55s ease both!important}
  .hero .suggestions button:nth-child(1){-webkit-animation-delay:1.98s!important;animation-delay:1.98s!important}
  .hero .suggestions button:nth-child(2){-webkit-animation-delay:2.06s!important;animation-delay:2.06s!important}
  .hero .suggestions button:nth-child(3){-webkit-animation-delay:2.14s!important;animation-delay:2.14s!important}
  .composer-wrap{-webkit-animation:composerEnter .7s cubic-bezier(.22,1,.36,1) 1.85s both!important;animation:composerEnter .7s cubic-bezier(.22,1,.36,1) 1.85s both!important}
}
