﻿:root {
    color-scheme: dark;
    --bg0: #030712;
    --bg1: #07111f;
    --glass: rgba(255, 255, 255, 0.075);
    --glass-strong: rgba(255, 255, 255, 0.13);
    --stroke: rgba(255, 255, 255, 0.15);
    --stroke-soft: rgba(148, 163, 184, 0.16);
    --text: #f8fbff;
    --muted: #92a4bd;
    --muted2: #64748b;
    --cyan: #43e8ff;
    --blue: #4f7cff;
    --violet: #a78bfa;
    --pink: #fb7185;
    --green: #5eead4;
    --shadow: 0 32px 100px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "SF Pro Display", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 16% 10%, rgba(67, 232, 255, .20), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(167, 139, 250, .19), transparent 30%),
        linear-gradient(145deg, #020617 0%, #08111f 48%, #030712 100%);
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 50% 35%, black, transparent 72%);
}
.mesh { position: fixed; border-radius: 999px; filter: blur(70px); opacity: .45; pointer-events: none; animation: float 12s ease-in-out infinite alternate; }
.mesh-one { width: 360px; height: 360px; background: #0ea5e9; left: -90px; top: -100px; }
.mesh-two { width: 440px; height: 440px; background: #7c3aed; right: -120px; top: 120px; animation-delay: -3s; }
.mesh-three { width: 300px; height: 300px; background: #14b8a6; left: 42%; bottom: -160px; animation-delay: -6s; }
@keyframes float { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(22px, -20px, 0) scale(1.08); } }
.stage { position: relative; z-index: 1; min-height: 100vh; max-width: 1220px; margin: 0 auto; padding: 44px 30px; display: grid; grid-template-columns: minmax(420px, 1fr) 500px; gap: 60px; align-items: center; }
.hero-card { padding: 42px; border: 1px solid var(--stroke); border-radius: 36px; background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.045)); box-shadow: var(--shadow); backdrop-filter: blur(28px) saturate(150%); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid rgba(67,232,255,.24); background: rgba(67,232,255,.09); border-radius: 999px; color: #b7f4ff; font-size: 13px; letter-spacing: .4px; }
.eyebrow span { width: 8px; height: 8px; border-radius: 999px; background: var(--green); box-shadow: 0 0 18px var(--green); }
h1 { margin: 24px 0 18px; font-size: clamp(48px, 6vw, 76px); line-height: .96; letter-spacing: -3px; }
h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, #e0f2fe, #67e8f9, #c4b5fd); -webkit-background-clip: text; background-clip: text; }
.hero-card p { max-width: 620px; color: #adc0d7; font-size: 18px; line-height: 1.85; margin: 0; }
.hero-actions { display: flex; gap: 14px; margin: 34px 0; }
.metric { flex: 1; padding: 18px; border-radius: 24px; border: 1px solid var(--stroke-soft); background: rgba(15,23,42,.42); }
.metric strong { display: block; font-size: 28px; color: #e0faff; }
.metric span { color: var(--muted); font-size: 13px; }
.scenario-list { display: grid; gap: 12px; }
.scenario-list div { display: flex; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid var(--stroke-soft); border-radius: 22px; background: rgba(255,255,255,.055); }
.scenario-list b { color: #eff6ff; }
.scenario-list span { color: var(--muted); font-size: 14px; text-align: right; }
.phone-wrap { display: flex; justify-content: center; position: relative; }
.orb { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: conic-gradient(from 180deg, #22d3ee, #6366f1, #fb7185, #22d3ee); filter: blur(38px); opacity: .42; top: 150px; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.phone { position: relative; width: 448px; height: 812px; padding: 12px; border-radius: 54px; border: 1px solid rgba(255,255,255,.18); background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.045) 38%, rgba(2,6,23,.72)); box-shadow: 0 40px 120px rgba(0,0,0,.58), inset 0 0 0 10px rgba(2,6,23,.70), inset 0 0 45px rgba(67,232,255,.08); backdrop-filter: blur(24px); overflow: hidden; }
.phone::after { content: ""; position: absolute; inset: 12px; border-radius: 42px; border: 1px solid rgba(255,255,255,.08); pointer-events: none; }
.dynamic-island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 118px; height: 28px; border-radius: 999px; background: #030712; border: 1px solid rgba(255,255,255,.08); z-index: 2; }
.status-bar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; color: #c8d5e6; font-size: 12px; }
.chat-header { margin: 2px 8px 0; padding: 16px; display: flex; align-items: center; gap: 13px; border-radius: 28px; background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.06)); border: 1px solid var(--stroke); box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.agent-mark { position: relative; width: 52px; height: 52px; display: grid; place-items: center; }
.agent-mark .ring { position: absolute; inset: 0; border-radius: 18px; background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--pink), var(--cyan)); filter: saturate(150%); }
.agent-mark .core { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: rgba(3,7,18,.86); color: #e0fbff; font-size: 23px; font-weight: 900; }
.agent-title h2 { margin: 0; font-size: 18px; letter-spacing: -.2px; }
.agent-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.icon-button { margin-left: auto; width: 38px; height: 38px; border: 1px solid var(--stroke); border-radius: 14px; color: #dbeafe; background: rgba(255,255,255,.08); cursor: pointer; transition: .2s ease; }
.icon-button:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); }
.context-card { display: flex; gap: 12px; margin: 14px 16px 0; padding: 13px 14px; border-radius: 24px; border: 1px solid rgba(67,232,255,.18); background: linear-gradient(135deg, rgba(67,232,255,.12), rgba(99,102,241,.09)); }
.spark { width: 30px; height: 30px; border-radius: 12px; display: grid; place-items: center; color: #04111f; background: #a5f3fc; box-shadow: 0 8px 25px rgba(67,232,255,.28); }
.context-card strong { display: block; font-size: 13px; }
.context-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.quick-prompts { display: flex; gap: 9px; margin: 14px 0 4px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.quick-prompts::-webkit-scrollbar { display: none; }
.quick-prompts button { flex: 0 0 auto; max-width: 260px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.075); color: #dff7ff; font-size: 12px; cursor: pointer; transition: .2s ease; backdrop-filter: blur(16px); }
.quick-prompts button:hover { transform: translateY(-2px); border-color: rgba(67,232,255,.42); background: rgba(67,232,255,.12); }
.messages { height: 492px; overflow-y: auto; overflow-x: hidden; padding: 14px 16px 22px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(125, 211, 252, .35) transparent; }
.messages::-webkit-scrollbar { width: 5px; }
.messages::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }
.messages::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(67,232,255,.35), rgba(167,139,250,.28)); border-radius: 999px; }
.messages::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(67,232,255,.65), rgba(167,139,250,.55)); }
.message { display: flex; gap: 9px; margin: 14px 0; animation: rise .22s ease-out; min-width: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.message.user { justify-content: flex-end; }
.avatar-mini { flex: 0 0 38px; width: 38px; height: 38px; margin-top: 2px; border-radius: 999px; display: block; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.88); box-shadow: 0 10px 22px rgba(6,182,212,.20), 0 0 0 3px rgba(103,232,249,.12); }
.avatar-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bubble { max-width: 84%; min-width: 0; padding: 13px 14px; border-radius: 22px; line-height: 1.68; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.bot .bubble { color: #eaf3ff; border-top-left-radius: 7px; background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.07)); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.user .bubble { color: white; border-top-right-radius: 7px; background: linear-gradient(135deg, #3b82f6, #06b6d4 62%, #2dd4bf); box-shadow: 0 12px 30px rgba(37,99,235,.25); }
.answer-card { width: min(100%, 366px); max-width: calc(100% - 38px); padding: 12px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.answer-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.answer-header > div { display: inline-flex; align-items: center; gap: 8px; color: #f8fbff; font-size: 13px; letter-spacing: .1px; }
.answer-dot { width: 9px; height: 9px; border-radius: 999px; background: linear-gradient(135deg, #67e8f9, #a78bfa); box-shadow: 0 0 18px rgba(103,232,249,.8); }
.answer-section { margin-top: 9px; padding: 11px 12px; border-radius: 18px; background: rgba(2,6,23,.28); border: 1px solid rgba(148,163,184,.14); }
.answer-section.primary { background: linear-gradient(135deg, rgba(67,232,255,.12), rgba(99,102,241,.10)); border-color: rgba(67,232,255,.24); }
.answer-section h3 { margin: 0 0 7px; color: #93e5ff; font-size: 12px; font-weight: 900; letter-spacing: .2px; }
.answer-body { color: #eaf3ff; font-size: 13px; line-height: 1.72; overflow-wrap: anywhere; word-break: break-word; }
.answer-body p { margin: 0; }
.answer-body ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 7px; }
.answer-body li { position: relative; padding-left: 15px; }
.answer-body li::before { content: ''; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 999px; background: #67e8f9; box-shadow: 0 0 10px rgba(103,232,249,.5); }
.answer-details.collapsed { max-height: 132px; overflow: hidden; mask-image: linear-gradient(180deg, #000 58%, transparent); }
.answer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.answer-action { border: 1px solid rgba(125,211,252,.22); border-radius: 999px; padding: 7px 10px; color: #cffafe; background: rgba(14,165,233,.10); font-size: 12px; cursor: pointer; transition: .18s ease; }
.answer-action:hover { transform: translateY(-1px); border-color: rgba(125,211,252,.44); background: rgba(14,165,233,.18); }
.source-panel { margin-top: 10px; border-radius: 17px; background: rgba(2,6,23,.38); border: 1px solid rgba(148,163,184,.18); overflow: hidden; }
.source-toggle { padding: 10px 11px; color: #b7c5d8; font-size: 12px; cursor: pointer; user-select: none; }
.source-list { display: grid; gap: 8px; padding: 0 10px 10px; }
.source-card { min-width: 0; padding: 9px 10px; border-radius: 14px; background: rgba(15,23,42,.56); border: 1px solid rgba(148,163,184,.18); color: #b7c5d8; font-size: 12px; }
.source-card strong { display: block; color: #e0f2fe; font-size: 12px; margin-bottom: 3px; }
.source-card span { display: inline-flex; margin-bottom: 5px; padding: 2px 6px; border-radius: 999px; color: #a7f3d0; background: rgba(45,212,191,.10); font-size: 10px; }
.source-card p { margin: 0; line-height: 1.55; color: #9fb0c6; overflow-wrap: anywhere; word-break: break-word; }
.mode-tag { display: inline-flex; flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: #a7f3d0; background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.18); font-size: 11px; }
.mode-tag.llm-mode { color: #ddd6fe; background: rgba(167,139,250,.13); border-color: rgba(167,139,250,.22); }
.mode-tag.knowledge-mode { color: #a7f3d0; background: rgba(45,212,191,.12); border-color: rgba(45,212,191,.18); }
.composer { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 26px; border: 1px solid rgba(255,255,255,.14); background: rgba(3,7,18,.72); box-shadow: 0 18px 40px rgba(0,0,0,.28); backdrop-filter: blur(24px); }
.input-shell { flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 13px; border-radius: 18px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.08); }
.input-shell span { color: var(--cyan); font-weight: 800; }
.input-shell input { width: 100%; border: 0; outline: 0; color: #f8fafc; background: transparent; font-size: 14px; }
.input-shell input::placeholder { color: #718096; }
.composer button { height: 44px; min-width: 70px; padding: 0 16px; border: 0; border-radius: 18px; color: #04111f; background: linear-gradient(135deg, #67e8f9, #a7f3d0); font-weight: 900; cursor: pointer; transition: .2s ease; }
.composer button:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(45,212,191,.25); }
.composer button:disabled { opacity: .58; cursor: wait; transform: none; box-shadow: none; }
@media (max-width: 980px) {
    .stage { grid-template-columns: 1fr; gap: 30px; padding: 24px 16px; }
    .hero-card { padding: 26px; }
    .hero-actions { flex-direction: column; }
    .scenario-list div { flex-direction: column; }
    .scenario-list span { text-align: left; }
    .phone { width: min(448px, 96vw); }
}
@media (max-width: 430px) {
    .phone { height: 780px; }
    .messages { height: 462px; }
}

.message.bot .bubble.answer-card { max-width: calc(100% - 38px); }
.answer-header, .answer-section, .source-panel { min-width: 0; max-width: 100%; }

.assistant-tools { margin-top: 10px; display: grid; gap: 8px; }
.feedback-tools { display: flex; gap: 8px; }
.assistant-tools .answer-actions { margin-top: 0; }
.assistant-tools .answer-action { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; }
.assistant-tools .answer-action span { display: inline-grid; place-items: center; min-width: 17px; height: 17px; border-radius: 999px; color: #04111f; background: rgba(207,250,254,.88); font-size: 10px; font-weight: 900; line-height: 1; }
.assistant-tools .answer-action em { font-style: normal; }
.assistant-tools .answer-action.selected { color: #04111f; background: linear-gradient(135deg, #67e8f9, #a7f3d0); border-color: rgba(167,243,208,.72); box-shadow: 0 10px 22px rgba(45,212,191,.18); }
.assistant-tools .answer-action.selected span { background: rgba(2,6,23,.9); color: #a7f3d0; }
.tool-note { padding: 8px 10px; border-radius: 14px; color: #a7f3d0; background: rgba(45,212,191,.10); border: 1px solid rgba(45,212,191,.16); font-size: 12px; line-height: 1.5; }

