/* 保留原有的右上角人物与左侧介绍布局。 */
:root { background: #e9eeec; color: #293e38; --blue: #587e70; }
body { background: #edf1ef; }
.app-shell { background: #f8faf8; box-shadow: 0 0 80px #344b4010; }
.home { background: linear-gradient(155deg,#f6f9f7,#fbfcfa 65%,#f6f9f7); }
/* 按可视高度分配首页空间，优先保留四个入口和底部输入栏。 */
.welcome { display: flex; flex-direction: column; inset: 0 0 calc(76px + max(17px,env(safe-area-inset-bottom))); padding: 0 0 8px; }
.welcome > * { flex-shrink: 0; }
.home-brand { position: relative; top: auto; left: auto; right: auto; margin: max(clamp(16px,calc(var(--app-height,100dvh) * .032),27px),env(safe-area-inset-top)) 7cqw 0; color: #51685f; font-size: 10px; letter-spacing: .02em; }
.home-brand > span:first-child { font-weight: 500; }
.availability { color: #81978d; font-size: 9px; }
.service-ready .availability > i { background: #769c88; box-shadow: none; }
.hero { position: relative; flex: 1 1 70cqw; min-height: 160px; max-height: 70cqw; margin: clamp(8px,calc(var(--app-height,100dvh) * .02),19px) 0 0; }
.home-avatar { position: absolute; top: 0; right: -1cqw; width: auto; height: 100%; max-width: 52cqw; max-height: 69.33cqw; aspect-ratio: 3 / 4; margin: 0; }
/* 圆环与原版人物分层；首页和开机动画共享构图，渐隐仅裁去人物下半身。 */
.portrait { border-radius: 0; background: transparent; box-shadow: none; overflow: hidden; }
.portrait::before { content: ''; position: absolute; inset: 0; opacity: .32; background: url('/static/artwork/yuxiaoyou-ring-background.webp') center top / contain no-repeat; -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 64%, transparent 90%); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 64%, transparent 90%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.portrait img { position: absolute; width: 76%; height: auto; max-width: 100%; top: 12%; left: 16%; -webkit-mask-image: linear-gradient(to bottom, #000 55%, #000e 58%, #0007 64%, transparent 70%); mask-image: linear-gradient(to bottom, #000 55%, #000e 58%, #0007 64%, transparent 70%); }
.hero-copy { position: relative; z-index: 1; margin: 0 7cqw; padding-top: clamp(16px,calc(var(--app-height,100dvh) * .045),39px); width: 55%; pointer-events: none; }
.eyebrow { font-size: 10px; font-weight: 400; color: #8c9f94; letter-spacing: .05em; margin: 0 0 12px; }
h1 { margin: 0; font-size: clamp(25px,7.2cqw,34px); line-height: 1.45; font-weight: 550; letter-spacing: -.045em; color: #293e38; white-space: normal; }
h1 span { color: #577b6b; font-weight: 500; }
.subtitle { margin: 12px 0 0; font-size: 10px; color: #889b90; letter-spacing: 0; white-space: nowrap; }
.section-title { margin: clamp(8px,calc(var(--app-height,100dvh) * .02),17px) 7cqw 10px; font-size: 12px; line-height: 1.5; font-weight: 500; color: #7a8e82; letter-spacing: .025em; }
.is-intro .section-title { opacity: 0; }
.suggestions { display: flex; flex-direction: column; margin: 0 7cqw; gap: 0; border: 1px solid #e7ede7; border-radius: 19px; background: #fffffff0; overflow: hidden; box-shadow: 0 7px 22px #39584903; }
.suggestions button:nth-child(n) { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; min-height: clamp(52px,calc(var(--app-height,100dvh) * .085),69px); width: 100%; border: 0; border-radius: 0; margin: 0; padding: clamp(8px,calc(var(--app-height,100dvh) * .015),14px) 17px; gap: 16px; text-align: left; color: #3d574b; background: transparent; box-shadow: none; transition: background 150ms, transform 150ms; }
.suggestions button + button { border-top: 1px solid #edf1ec !important; }
.suggestions button:nth-child(n) .suggestion-icon { flex-shrink: 0; display: grid; place-items: center; width: 25px; height: 30px; border: 0; border-radius: 0; margin: 0; color: #769686; background: transparent; box-shadow: none; }
.suggestion-icon .icon { width: 22px; height: 22px; stroke-width: 1.3; }
.service-copy { display: flex; flex-direction: column; gap: 6px; }
.service-copy strong { font-size: 13px; line-height: 1.3; font-weight: 500; letter-spacing: .015em; color: #42594c; }
.service-copy small { font-size: 9px; margin: 0; line-height: 1.4; color: #9aa99f; letter-spacing: 0; }
.card-arrow { position: static; margin-left: auto; align-self: center; color: #b3c1b8; font-size: 24px; font-weight: 300; }
@media(hover:hover) { .suggestions button:nth-child(n):hover { transform: none; background: #f6f9f5; box-shadow: none; } }
.suggestions button:nth-child(n):active { transform: scale(.99); background: #f0f5ef; }
.composer-area { left: 5.7cqw; right: 5.7cqw; bottom: max(17px,env(safe-area-inset-bottom)); }
.composer { height: 60px; border: 1px solid #dfe8df; border-radius: 22px; background: #ffffffed; box-shadow: 0 5px 18px #42644f08, inset 0 1px 0 #fff; }
.composer:focus-within { border-color: #afc5b4; box-shadow: 0 0 0 3px #75997f0a, 0 5px 18px #42644f08; }
#mic { color: #5c7466; }
#mic > .icon { color: #7d9a88; width: 22px; height: 22px; stroke-width: 1.4; }
#hold-label { font-size: 14px; font-weight: 400; letter-spacing: .1em; }
#keyboard { top: 8px; right: 9px; border-radius: 14px; background: #f3f6f1; border: 1px solid #e9eee5; box-shadow: none; color: #899d8e; }
#keyboard .icon { width: 21px; height: 21px; stroke-width: 1.4; }
.text-mode #keyboard { border-color: transparent; background: transparent; }
#input { color: #415e4e; }
#input::placeholder { color: #a0afa2; font-size: 14px; }
#send { top: 8px; right: 9px; background: #7f9f8c; color: #fff; box-shadow: none; border-radius: 14px; }
#send .icon { width: 21px; height: 21px; stroke-width: 1.5; }
#mic.recording { background: #eaf2e9; color: #5a7d65; }
.voice-bars i { background: #92af99; }
.status-row { color: #8a9d8e; }
#stop { position: absolute; top: 8px; right: 9px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #344b43; color: #fff; }
/* 停止与发送共用右侧位置，语音模式为键盘切换单独留位。 */
.composer:has(#stop:not([hidden])) #send { display: none; }
.composer:not(.text-mode):has(#stop:not([hidden])) #keyboard { right: 59px; }
.composer:not(.text-mode):has(#stop:not([hidden])) #mic { right: 108px; }
#stop .icon { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.conversation { bottom: 120px; }
.conversation-header { height: 80px; background: #f8faf7eb; border-color: #e8ede5; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.conversation-title strong { color: #425c4c; font-weight: 500; }.conversation-title span { font-size: 9px; letter-spacing: .025em; color: #a1afa3; }
#new-chat { color: #8ca28f; }
#voice-toggle { color: #344b43; }
.bubble { border: 1px solid #e7ede5; color: #4d6454; background: white; box-shadow: 0 3px 12px #55774403; border-radius: 5px 18px 18px; }
.user .bubble { border: 1px solid #dfe9dd; background: #e9f1e6; color: #526d56; box-shadow: none; border-radius: 18px 5px 18px 18px; }
.message-name { color: #a2b1a5; font-size: 9px; letter-spacing: .025em; }
.bubble.pending::after { background: #8fa78e; }
.toast { background: #f3f7f1f5; border: 1px solid #dce6d8; box-shadow: 0 8px 24px #395b4210; color: #526c54; }
.splash-backdrop { background: radial-gradient(ellipse at 50% 34%,#fff,#f4f8f4 80%); }
.splash-avatar { width: 62cqw; height: auto; aspect-ratio: 3 / 4; top: 40%; }
.splash-avatar .portrait { box-shadow: none; }
.splash-eyebrow { color: #7e9785; font-size: 10px; letter-spacing: .04em; }
.splash-orbits { display: none; }
.splash-copy { top: calc(40% + 40cqw); color: #516f5b; }
.splash-copy strong { font-size: 26px; font-weight: 400; letter-spacing: .1em; }
.splash-copy small { color: #a0b0a1; font-size: 10px; letter-spacing: .07em; margin-top: 17px; }
.splash-hint { color: #a6b4a6; font-size: 9px; bottom: max(36px,env(safe-area-inset-bottom)); letter-spacing: .04em; }
@media(max-height:740px) { .eyebrow { margin-bottom: 8px; }.subtitle { margin-top: 9px; } }
@media(max-height:520px) { .composer-area { bottom: max(10px,env(safe-area-inset-bottom)); }.conversation { bottom: 96px; } }
@media(prefers-reduced-transparency:reduce) { .composer,.conversation-header { background: #fafcf8; }.suggestions { background: white; } }
@media(prefers-contrast:more) { .subtitle,.service-copy small,.message-name { color: #5e7861; }.composer,.suggestions { border-color: #8fa78f; } }
