:root { --blue: #4f7fc7; --deep: #295a9f; --ink: #17325d; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); overflow: hidden; background: radial-gradient(circle at 18% 20%, rgba(255, 231, 183, .88), transparent 25%), radial-gradient(circle at 78% 8%, rgba(167, 218, 255, .85), transparent 26%), radial-gradient(circle at 78% 68%, rgba(255, 198, 222, .82), transparent 28%), linear-gradient(135deg, #eaf7ff 0%, #fff7e8 45%, #eef6ff 100%); }
.stage { min-height: 100vh; display: grid; grid-template-columns: minmax(480px, 48vw) 1fr; position: relative; padding: clamp(28px, 4vw, 58px); gap: 24px; }
.stage::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(115, 191, 255, .28), transparent 35%, rgba(255, 210, 112, .24) 60%, transparent 78%); pointer-events: none; }
.copy-panel, .human-panel { position: relative; z-index: 1; }
.copy-panel { display: flex; flex-direction: column; min-height: calc(100vh - 116px); }
.brand-mark { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--blue); color: white; font-weight: 900; box-shadow: 0 14px 30px rgba(79, 127, 199, .32); }
.brand-mark strong { display: block; font-size: 20px; letter-spacing: .02em; }
.brand-mark small { display: block; color: #6880a8; margin-top: 2px; }
.hero-copy { margin-top: min(8vh, 88px); max-width: 610px; }
.eyebrow { margin: 0 0 14px; color: var(--deep); font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(34px, 4.5vw, 62px); line-height: 1.08; color: #183b72; letter-spacing: -.04em; }
.hero-copy p:last-child { margin: 24px 0 0; font-size: clamp(17px, 1.6vw, 24px); line-height: 1.8; color: #335684; }
.quick-list { display: grid; gap: 16px; margin-top: 38px; width: min(560px, 100%); }
.quick-item { border: 0; border-radius: 999px; background: linear-gradient(135deg, #527fc8, #315fa9); color: white; padding: 18px 26px; font-size: 18px; text-align: left; cursor: pointer; box-shadow: 0 18px 38px rgba(49, 95, 169, .24); transition: transform .18s ease, box-shadow .18s ease; }
.quick-item:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(49, 95, 169, .30); }
.chat-card { width: min(680px, 100%); max-height: 26vh; margin-top: 24px; overflow: auto; border-radius: 26px; background: rgba(255,255,255,.48); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.58); display: none; }
.chat-card.active { display: block; }
.messages { padding: 18px; display: grid; gap: 12px; }
.msg { max-width: 88%; padding: 13px 16px; border-radius: 18px; line-height: 1.65; white-space: pre-wrap; }
.msg.user { justify-self: end; color: white; background: var(--blue); border-bottom-right-radius: 6px; }
.msg.assistant { justify-self: start; background: white; color: #23466f; border-bottom-left-radius: 6px; box-shadow: 0 12px 28px rgba(24, 59, 114, .08); }
.composer { margin-top: auto; width: min(720px, 100%); display: grid; grid-template-columns: 1fr 50px 92px; gap: 10px; align-items: center; padding: 10px; border-radius: 999px; background: rgba(68, 112, 184, .96); box-shadow: 0 22px 56px rgba(45, 91, 159, .28); }
.composer input { min-width: 0; height: 54px; border: 0; outline: 0; background: transparent; color: white; font-size: 17px; padding: 0 18px; }
.composer input::placeholder { color: rgba(255,255,255,.78); }
.voice, .send { height: 50px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 800; }
.voice { background: rgba(255,255,255,.16); color: white; font-size: 22px; }
.send { background: white; color: var(--deep); }
.human-panel { min-height: calc(100vh - 116px); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.halo { position: absolute; border-radius: 999px; filter: blur(4px); opacity: .68; }
.halo-a { width: 460px; height: 460px; right: 12%; bottom: 14%; background: radial-gradient(circle, rgba(116,193,255,.7), transparent 65%); }
.halo-b { width: 360px; height: 360px; right: 4%; top: 10%; background: radial-gradient(circle, rgba(255,220,132,.68), transparent 62%); }
.avatar-shell { position: relative; width: min(46vw, 620px); height: min(74vh, 820px); display: grid; place-items: end center; transition: transform .28s ease, filter .28s ease; }
.avatar-shell img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 34px 42px rgba(37, 68, 122, .24)); }
.avatar-shell.idle { animation: breathe 3.8s ease-in-out infinite; }
.avatar-shell.thinking { animation: thinking 1.2s ease-in-out infinite; }
.avatar-shell.speaking { animation: speaking .7s ease-in-out infinite alternate; }
.avatar-shell.listening { filter: drop-shadow(0 0 22px rgba(49, 95, 169, .38)); }
@keyframes breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes thinking { 0%,100% { transform: rotate(-1deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-8px); } }
@keyframes speaking { from { transform: translateY(0) scale(1); } to { transform: translateY(-6px) scale(1.018); } }
.state-pill { position: absolute; right: 12%; bottom: 32px; padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,.76); color: #315f9f; font-weight: 800; box-shadow: 0 16px 34px rgba(49,95,159,.18); backdrop-filter: blur(12px); }
@media (max-width: 980px) { body { overflow: auto; } .stage { grid-template-columns: 1fr; padding: 24px; } .copy-panel { min-height: auto; } .human-panel { min-height: 42vh; order: -1; } .avatar-shell { width: min(80vw, 420px); height: 42vh; } .composer { position: sticky; bottom: 16px; grid-template-columns: 1fr 48px 78px; } }
