/* ============ 全局重置与基础 ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --primary-light: #A29BFE;
    --accent: #00CEC9;
    --accent-dark: #00B5B0;
    --bg-dark: #0A0A1A;
    --bg-card: #12122A;
    --bg-input: #1A1A3E;
    --text: #E8E8F0;
    --text-secondary: #9090B0;
    --text-muted: #606080;
    --border: #2A2A4A;
    --success: #00D2A0;
    --warning: #FDCB6E;
    --danger: #FF7675;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary-light); }

/* ============ 导航栏 ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.navbar .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.navbar .nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    transition: var(--transition);
}

.navbar .nav-links a:hover {
    color: var(--text);
}

.navbar .nav-btns {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ============ 按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary-light);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 206, 201, 0.3);
}
.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 206, 201, 0.45);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============ 首页 Hero ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 206, 201, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(108, 92, 231, 0.08) 0%, transparent 40%);
    z-index: -1;
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(1%, -1%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============ 特性区块 ============ */
.section {
    padding: 80px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .section-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(0, 206, 201, 0.1);
    border: 1px solid rgba(0, 206, 201, 0.25);
    border-radius: 50px;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 特性卡片 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(108, 92, 231, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    background: rgba(108, 92, 231, 0.1);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============ 工作流程图 ============ */
.how-it-works {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    counter-reset: step;
}

.step-card {
    text-align: center;
    padding: 36px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary);
}

.step-number {
    width: 44px;
    height: 44px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.step-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

.step-arrow {
    display: none;
}

@media (min-width: 900px) {
    .step-arrow {
        display: block;
        position: absolute;
        right: -28px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 20px;
    }
    .step-card:last-child .step-arrow {
        display: none;
    }
}

/* ============ 演示区 ============ */
.demo-section {
    padding: 80px 40px;
}

.demo-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.demo-box h3 {
    font-size: 22px;
    margin-bottom: 8px;
    text-align: center;
}

.demo-box .demo-hint {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.demo-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.demo-input-group textarea {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 100px;
    transition: var(--transition);
}

.demo-input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.demo-input-group textarea::placeholder {
    color: var(--text-muted);
}

.demo-input-bottom {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

.demo-response {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: none;
}

.demo-response.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

.demo-response .ai-label {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}

.demo-response .ai-content {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-dots {
    display: inline-flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ 页脚 ============ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ============ 登录/注册页面 ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-dark);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow);
}

.auth-card h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-group .input-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.form-tabs button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.form-tabs button.active {
    background: var(--primary);
    color: #fff;
}

.form-error {
    background: rgba(255, 118, 117, 0.1);
    border: 1px solid rgba(255, 118, 117, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--danger);
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.form-error.show {
    display: block;
}

.form-success {
    background: rgba(0, 210, 160, 0.1);
    border: 1px solid rgba(0, 210, 160, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--success);
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.form-success.show {
    display: block;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    font-weight: 600;
}

/* ============ Dashboard ============ */
.dashboard {
    min-height: 100vh;
    padding-top: 64px;
}

.dashboard-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.user-detail h4 {
    font-size: 16px;
    font-weight: 600;
}

.user-detail span {
    font-size: 12px;
    color: var(--text-muted);
}

.dashboard-main {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: calc(100vh - 64px - 83px);
    gap: 0;
}

/* 侧边栏 - 项目列表 */
.sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px 20px;
    overflow-y: auto;
}

.sidebar h3 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.project-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-item {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.project-item:hover {
    background: var(--bg-input);
    color: var(--text);
}

.project-item.active {
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
    font-weight: 600;
}

.project-item .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.creating { background: var(--warning); }
.status-dot.generating { background: var(--accent); animation: pulse 1.5s ease-in-out infinite; }
.status-dot.completed { background: var(--success); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.project-item .badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: auto;
}

.badge-creating { background: rgba(253, 203, 110, 0.15); color: var(--warning); }
.badge-generating { background: rgba(0, 206, 201, 0.15); color: var(--accent); }
.badge-completed { background: rgba(0, 210, 160, 0.15); color: var(--success); }

/* 聊天主区域 */
.chat-area {
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
}

.chat-header {
    padding: 20px 32px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.chat-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.chat-header .chat-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
}

.chat-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.chat-empty h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.chat-empty p {
    font-size: 14px;
    max-width: 400px;
}

.message {
    display: flex;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.message.ai .message-avatar {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.message-bubble {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message.ai .message-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.message.user .message-time {
    text-align: right;
}

/* 聊天输入区 */
.chat-input-area {
    padding: 20px 32px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.chat-input-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input-group textarea {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 52px;
    max-height: 120px;
    transition: var(--transition);
    line-height: 1.5;
}

.chat-input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.chat-input-group textarea::placeholder {
    color: var(--text-muted);
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.btn-send {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-voice {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-voice:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-voice.recording {
    border-color: var(--danger);
    color: var(--danger);
    animation: pulse 1.5s ease-in-out infinite;
    background: rgba(255, 118, 117, 0.1);
}

/* ============ 新建需求弹窗 ============ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.modal .form-group {
    margin-bottom: 16px;
}

.modal textarea {
    min-height: 100px;
}

.modal-btns {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .dashboard-main {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 200px;
    }
    
    .chat-input-area {
        padding: 16px;
    }
    
    .demo-box {
        padding: 24px 16px;
    }
    
    .dashboard-header {
        padding: 14px 20px;
    }
    
    .chat-messages {
        padding: 16px 20px;
    }
    
    .message-bubble {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .chat-input-group {
        flex-wrap: wrap;
    }
    
    .chat-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Toast */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s forwards;
    box-shadow: var(--shadow);
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--primary); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* 防止未登录闪烁 */
#dashboardPage { display: none; }
#authPage { display: none; }
