/* ========================================
   Aany-Z 官网样式表
   Official Website Stylesheet
   ======================================== */

/* ---------- CSS 变量 ---------- */
:root {
    --primary: #667eea;
    --primary-dark: #5a6fd6;
    --secondary: #764ba2;
    --accent: #f5576c;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cyan: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-green: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8888a0;
    --bg-white: #ffffff;
    --bg-light: #f8f9ff;
    --bg-dark: #0f0f23;
    --border: #e8e8f0;
    --shadow-sm: 0 2px 8px rgba(102, 126, 234, 0.08);
    --shadow-md: 0 8px 32px rgba(102, 126, 234, 0.12);
    --shadow-lg: 0 16px 48px rgba(102, 126, 234, 0.16);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --max-width: 1200px;
    --nav-height: 72px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

.btn-dark:hover {
    background: #2a2a4e;
    transform: translateY(-2px);
}

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232, 232, 240, 0.5);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 10px;
    font-weight: 800;
    font-size: 20px;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
    background: var(--bg-white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #4facfe;
    top: 40%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(40px, 40px) scale(1.05); }
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 80px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 50px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    width: fit-content;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Terminal */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-terminal {
    width: 100%;
    max-width: 520px;
    background: #1a1b2e;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: terminalFloat 6s ease-in-out infinite;
}

@keyframes terminalFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    margin-left: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

.terminal-line .prompt {
    color: #4CAF50;
    font-weight: 600;
    flex-shrink: 0;
}

.terminal-line .prompt.ai {
    color: var(--primary);
}

.terminal-line .cmd {
    color: #e0e0e0;
}

.terminal-line .output {
    color: #b0b0c8;
}

.terminal-line.response {
    margin-bottom: 12px;
}

.code-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.code-comment {
    color: #6a9955;
}

.terminal-cursor {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: #e0e0e0;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ========================================
   Features
   ======================================== */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(102, 126, 234, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   About
   ======================================== */
.about {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-content .section-title {
    margin-bottom: 0;
}

.about-content .section-desc {
    margin: 0;
    text-align: left;
    font-size: 16px;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.highlight-item i {
    color: #43e97b;
    font-size: 18px;
}

/* Architecture Diagram */
.architecture-diagram {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
}

.arch-layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    max-width: 340px;
}

.layer-frontend {
    background: var(--gradient-primary);
    color: white;
}

.layer-frontend small {
    font-weight: 400;
    font-size: 13px;
    opacity: 0.8;
}

.layer-core {
    background: var(--gradient-cyan);
    color: white;
}

.layer-core small {
    font-weight: 400;
    font-size: 13px;
    opacity: 0.8;
}

.arch-arrow {
    color: var(--text-muted);
    font-size: 20px;
}

.layer-models {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    justify-content: center;
}

.model-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.model-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.model-chip i {
    color: var(--primary);
}

/* ========================================
   Tech Stack
   ======================================== */
.tech {
    padding: 100px 0;
    background: var(--bg-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tech-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tech-logo {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--primary);
}

.tech-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.tech-card p {
    font-size: 13px;
    color: var(--text-muted);
}
}

/* ========================================
   Chat Demo — Redesigned
   ======================================== */
.chat-demo {
    padding: 100px 0;
    background: var(--bg-white);
}

/* ---------- Grid Layout ---------- */
.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

/* ========== LEFT: Chat Container ========== */
.demo-chat-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

/* ========== 智能体工作台（左侧栏） ========== */
.demo-agent-sidebar {
    width: 170px;
    min-width: 170px;
    background: var(--bg-light);
    border-right: 1px solid var(--border);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agent-sidebar-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    text-transform: uppercase;
}

.agent-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.agent-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--text-secondary);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.agent-item:hover {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.25);
    transform: translateX(2px);
}

.agent-item.active {
    background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(139,92,246,0.12));
    border-color: rgba(99,102,241,0.45);
    box-shadow: inset 3px 0 0 #6366F1;
}

.agent-icon {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.agent-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.agent-name {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.agent-item.active .agent-name {
    color: #6366F1;
}

.agent-sub {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.agent-tag {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(34,197,94,0.14);
    color: #16A34A;
    border: 1px solid rgba(34,197,94,0.3);
}

.agent-sidebar-foot {
    font-size: 9.5px;
    color: var(--text-muted);
    text-align: center;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

/* 主区：聊天窗口 */
.demo-chat-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
}

/* Chat Header */
.demo-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}

.demo-chat-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}

/* Breathing green dot */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    margin-left: 4px;
    vertical-align: middle;
    animation: breath 2s ease-in-out infinite;
}

@keyframes breath {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.status-text {
    font-size: 13px;
    color: #22C55E;
    font-weight: 500;
    vertical-align: middle;
}

.demo-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* Chat Body (messages + chips + glow) */
.demo-chat-body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.demo-chat-messages {
    padding: 20px 20px 8px;
    min-height: 260px;
    max-height: 340px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Message bubbles */
.demo-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 85%;
}

.demo-msg.assistant {
    align-self: flex-start;
}

.demo-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.msg-avatar-ai {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
}

.msg-avatar-user {
    background: #e5e7eb;
    color: #6b7280;
    font-size: 13px;
}

.demo-msg-content {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.55;
}

.demo-msg.assistant .demo-msg-content {
    background: #f3f4f6;
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
}

/* 模式说明消息 - 问答模式提示 */
.demo-msg-content.demo-msg-mode {
    background: rgba(99, 102, 241, 0.06) !important;
    border: 1px dashed rgba(99, 102, 241, 0.25);
    font-size: 0.82em;
    padding: 10px 14px;
    color: #6b7280;
    line-height: 1.5;
}
.demo-msg-content.demo-msg-mode strong {
    color: #6366F1;
    font-weight: 600;
}
.mode-badge {
    font-size: 14px !important;
    line-height: 36px !important;
    text-align: center !important;
}

.demo-msg.user .demo-msg-content {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    border-bottom-right-radius: 4px;
}

/* Quick-chat chips */
.demo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 20px 16px;
}

.chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.chip:hover {
    border-color: #6366F1;
    color: #6366F1;
    background: #f5f3ff;
    transform: translateY(-1px);
}

/* Glow decoration */
.chat-glow {
    position: absolute;
    right: -20px;
    bottom: 40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Input area */
.demo-chat-input {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    gap: 10px;
    background: var(--bg-white);
}

.input-prefix {
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}

.demo-chat-input input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
    font-family: inherit;
    background: #f9fafb;
}

.demo-chat-input input:focus {
    border-color: #6366F1;
    background: white;
}

.send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 15px;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}

/* Typing indicator */
.demo-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 14px;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    margin: 4px 20px;
}

.demo-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6366F1;
    animation: dotBounce 1.4s infinite;
}

.demo-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 60%, 100% { opacity: 0.25; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.3); }
}

/* ========== RIGHT: Sidebar ========== */
.demo-sidebar {
    background: #fafafa;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Title */
.sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: linear-gradient(180deg, #6366F1, #8B5CF6);
    border-radius: 2px;
}

.sidebar-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.sidebar-desc strong {
    color: #111827;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
}

.tl-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 0;
}

.tl-step-highlight .tl-node {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.tl-step-highlight .tl-num {
    font-size: 16px;
}

.tl-step-highlight .tl-body strong {
    font-size: 15px;
}

.tl-node {
    position: relative;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.2s;
}

.tl-num {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.tl-icon {
    display: none;
    font-size: 14px;
    color: white;
}

.tl-step-highlight .tl-num { display: none; }
.tl-step-highlight .tl-icon { display: flex; }

.tl-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-top: 6px;
}

.tl-body strong {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

.tl-body span {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

.tl-line {
    width: 2px;
    height: 24px;
    margin-left: 17px;
    background: linear-gradient(180deg, #6366F1, rgba(99,102,241,0.15));
}

/* Capabilities cards */
.capabilities {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.cap-card {
    background: white;
    border-radius: 12px;
    padding: 14px 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: all 0.2s;
}

.cap-card:hover {
    border-color: #6366F1;
    box-shadow: 0 2px 8px rgba(99,102,241,0.1);
}

.cap-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #6366F1;
}

.cap-text strong {
    display: block;
    font-size: 13px;
    color: #111827;
    font-weight: 600;
    margin-bottom: 2px;
}

.cap-text span {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.3;
}

/* Sidebar CTA button */
.sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.sidebar-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}

.sidebar-enterprise {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin: 0;
}

/* ========================================
   CTA
   ======================================== */
.cta {
    padding: 80px 0;
    background: var(--bg-light);
}

.cta-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 64px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-card h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cta-actions .btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.cta-actions .btn-dark {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

.cta-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: white;
    -webkit-text-fill-color: white;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-credit {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-content { align-items: center; }
    .hero-subtitle { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-content { align-items: center; text-align: center; }
    .about-content .section-desc { text-align: center; }
    .about-highlights { align-items: flex-start; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section-title {
        font-size: 32px;
    }

    .section-desc {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        padding: 40px 24px;
    }

    .cta-card h2 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .architecture-diagram {
        padding: 24px 16px;
    }

    .layer-models {
        flex-wrap: wrap;
    }

    .demo-chat-container {
        border-radius: var(--radius-md);
        flex-direction: column;
    }

    /* 移动端：侧边栏收成顶部横向按钮条 */
    .demo-agent-sidebar {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        scrollbar-width: none;
    }

    .demo-agent-sidebar::-webkit-scrollbar {
        display: none;
    }

    .agent-sidebar-title,
    .agent-sidebar-foot {
        display: none;
    }

    .agent-list {
        flex-direction: row;
        gap: 6px;
        flex: 0 0 auto;
    }

    .agent-item {
        width: auto;
        padding: 6px 12px;
        border-radius: 999px;
        border-color: var(--border);
        flex: 0 0 auto;
    }

    .agent-item.active {
        box-shadow: none;
    }

    .agent-sub {
        display: none;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .demo-msg {
        max-width: 90%;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-number {
        font-size: 22px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid {
        gap: 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tech-card {
        padding: 20px 16px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-white: #16162a;
        --bg-light: #1a1a30;
        --text-primary: #e8e8f0;
        --text-secondary: #a0a0c0;
        --text-muted: #6a6a8a;
        --border: #2a2a4a;
    }

    .navbar {
        background: rgba(22, 22, 42, 0.85);
        border-bottom-color: rgba(42, 42, 74, 0.5);
    }

    .navbar.scrolled {
        background: rgba(22, 22, 42, 0.95);
    }

    .nav-links {
        background: rgba(22, 22, 42, 0.98);
    }

    .nav-link:hover {
        background: rgba(102, 126, 234, 0.15);
    }

    .hero-terminal {
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: var(--shadow-lg), 0 0 60px rgba(102, 126, 234, 0.05);
    }

    .demo-chat-container,
    .demo-chat-messages,
    .demo-chat-header,
    .demo-chat-input {
        background: var(--bg-white);
        border-color: var(--border);
    }

    .demo-sidebar {
        background: #1c1c32;
        border-color: #2a2a4a;
    }

    .demo-agent-sidebar {
        background: #1c1c32;
        border-color: #2a2a4a;
    }

    .agent-item:hover {
        background: rgba(99,102,241,0.16);
    }

    .agent-item.active {
        background: linear-gradient(135deg, rgba(99,102,241,0.24), rgba(139,92,246,0.18));
    }

    .demo-msg.assistant .demo-msg-content {
        background: #1c1c32;
        color: var(--text-primary);
    }

    .chip {
        background: var(--bg-light);
        border-color: var(--border);
        color: var(--text-secondary);
    }

    .chip:hover {
        border-color: #6366F1;
        color: #6366F1;
        background: rgba(99,102,241,0.12);
    }

    .demo-chat-input input {
        background: var(--bg-light);
        color: var(--text-primary);
        border-color: var(--border);
    }

    .demo-chat-input input:focus {
        background: var(--bg-white);
        border-color: #6366F1;
    }

    .msg-avatar-user {
        background: #2a2a4a;
        color: #9ca3af;
    }

    .cap-card {
        background: var(--bg-white);
        border-color: var(--border);
    }

    .cap-icon {
        background: rgba(99,102,241,0.15);
        color: #818cf8;
    }

    .cap-text strong {
        color: var(--text-primary);
    }

    .cap-text span {
        color: var(--text-muted);
    }

    .sidebar-title {
        color: var(--text-primary);
    }

    .sidebar-desc strong {
        color: var(--text-primary);
    }

    .tl-body strong {
        color: var(--text-primary);
    }

    .tl-body span {
        color: var(--text-muted);
    }

    .tl-node {
        background: #2a2a4a;
    }

    .tl-step-highlight .tl-node {
        background: linear-gradient(135deg, #6366F1, #8B5CF6);
    }


    .layer-models .model-chip {
        background: var(--bg-light);
    }

    .tech-card,
    .feature-card {
        background: var(--bg-white);
    }

    .about-highlights .highlight-item i {
        color: #43e97b;
    }

    .footer {
        background: #0d0d1a;
    }

    .stat-number {
        color: var(--text-primary);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
