/* ============================================================
   BotongCore 中控大脑智能体 - 样式文件
   主色调：深紫(#4A1942) + 金色(#FFD700) + 深色背景
   风格：科技感、中控大脑、仪表盘
   ============================================================ */

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

:root {
    --primary-purple: #4A1942;
    --deep-purple: #2D1B69;
    --dark-purple: #1A1A4E;
    --gold: #FFD700;
    --gold-light: #F0C420;
    --gold-dark: #D4AF37;
    --bg-dark: #0D0D1A;
    --bg-card: rgba(26, 26, 46, 0.8);
    --bg-card-hover: rgba(45, 27, 105, 0.6);
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8D0;
    --text-muted: #8888AA;
    --border-color: rgba(255, 215, 0, 0.15);
    --border-glow: rgba(255, 215, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* ============================================================
   背景效果
   ============================================================ */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(74, 25, 66, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(45, 27, 105, 0.25) 0%, transparent 50%);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    background: linear-gradient(135deg, rgba(74, 25, 66, 0.95) 0%, rgba(26, 26, 78, 0.95) 100%);
    color: white;
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
}

.logo-icon-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple), var(--deep-purple));
    border-radius: 12px;
    border: 1px solid var(--border-glow);
}

.logo-icon {
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #FFD700, #F0C420, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 11px;
    opacity: 0.7;
    color: var(--text-secondary);
    margin-top: 2px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
}

.nav-links a.active {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.12);
    font-weight: 500;
}

.nav-icon {
    font-size: 16px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(76, 175, 80, 0.6); }
    50% { box-shadow: 0 0 16px rgba(76, 175, 80, 0.9); }
}

.status-dot-small {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-running .status-dot-small,
.status-online .status-dot-small {
    background: #4CAF50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.status-offline .status-dot-small {
    background: #9E9E9E;
}

/* Flash Messages */
.flash-messages {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.flash-message {
    padding: 12px 0;
    font-size: 14px;
}

.flash-error {
    color: #ff6b6b;
}

.flash-success {
    color: #51cf66;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: linear-gradient(135deg, rgba(13, 13, 26, 0.98) 0%, rgba(26, 26, 46, 0.98) 100%);
    color: var(--text-muted);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-icon {
    font-size: 24px;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(90deg, #FFD700, #F0C420);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.copyright {
    font-size: 13px;
    margin-bottom: 6px;
}

.footer-sub {
    font-size: 12px;
    opacity: 0.7;
}

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--primary-purple);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: var(--gold);
    color: var(--gold);
}

.btn-large {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 0;
}

.btn-text:hover {
    text-decoration: underline;
}

/* ============================================================
   Hero Section (首页)
   ============================================================ */
.hero-section {
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    font-size: 13px;
    color: var(--gold);
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: status-pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
    color: white;
}

.gradient-text {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* 大搜索框 */
.hero-search {
    max-width: 700px;
    margin: 0 auto 50px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 6px 6px 6px 20px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.search-input-wrapper.focused {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.15);
}

.search-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    padding: 16px 0;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--primary-purple);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    flex-shrink: 0;
}

.search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.btn-arrow {
    font-size: 16px;
}

/* 示例chips */
.example-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    justify-content: center;
}

.chips-label {
    font-size: 13px;
    color: var(--text-muted);
}

.example-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.example-chip:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

/* Hero 统计 */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 4px;
    background: linear-gradient(180deg, #FFD700, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Hero装饰 */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero-deco-1 {
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 215, 0, 0.08);
}

.hero-deco-2 {
    bottom: 10%;
    left: 5%;
    width: 250px;
    height: 250px;
    background: rgba(138, 43, 226, 0.1);
}

/* ============================================================
   通用 Section
   ============================================================ */
.section-title {
    font-size: 26px;
    color: white;
    margin-bottom: 8px;
}

.title-icon {
    margin-right: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 36px;
    font-size: 14px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
}

.section-header .section-title {
    text-align: left;
    margin-bottom: 4px;
}

.section-header .section-subtitle {
    text-align: left;
    margin-bottom: 0;
}

/* ============================================================
   智能体卡片网格
   ============================================================ */
.agents-section {
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

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

.agent-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--agent-color), transparent);
    opacity: 0.8;
}

.agent-card:hover {
    transform: translateY(-6px);
    border-color: var(--agent-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(255, 215, 0, 0.05);
}

.agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.agent-icon {
    font-size: 36px;
}

.agent-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.status-running {
    background: rgba(76, 175, 80, 0.15);
    color: #51cf66;
}

.status-offline {
    background: rgba(158, 158, 158, 0.15);
    color: #9E9E9E;
}

.agent-name {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.agent-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    min-height: 40px;
}

.agent-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.agent-stats {
    font-size: 12px;
    color: var(--text-muted);
}

.agent-arrow {
    font-size: 14px;
    color: var(--gold);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.agent-card:hover .agent-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   示例需求卡片
   ============================================================ */
.examples-section {
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.examples-section .section-title,
.examples-section .section-subtitle {
    text-align: center;
}

.example-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.example-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.example-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: var(--bg-card-hover);
}

.example-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.example-text {
    font-size: 15px;
    color: white;
    margin-bottom: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.example-agents {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mini-agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 11px;
}

/* ============================================================
   仪表盘预览（首页两栏）
   ============================================================ */
.dashboard-preview {
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

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

.dashboard-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: white;
}

.panel-icon {
    font-size: 20px;
}

.panel-more {
    font-size: 13px;
    color: var(--gold);
    text-decoration: none;
}

.panel-more:hover {
    text-decoration: underline;
}

.panel-badge {
    font-size: 11px;
    padding: 3px 10px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    border-radius: 12px;
    border: 1px solid var(--border-glow);
}

.panel-body {
    padding: 16px 24px 20px;
}

/* 项目列表 */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.project-name {
    font-size: 14px;
    color: white;
    margin-bottom: 2px;
    font-weight: 500;
}

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

.project-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.project-status.status-in_progress {
    background: rgba(33, 150, 243, 0.15);
    color: #64B5F6;
}

.project-status.status-completed {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
}

.project-status.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #FFD54F;
}

.empty-state-small {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

/* 趋势列表 */
.trend-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trend-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.trend-info {
    flex: 1;
    min-width: 0;
}

.trend-title {
    font-size: 14px;
    color: white;
    margin-bottom: 2px;
    font-weight: 500;
}

.trend-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trend-hot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hot-bar {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.hot-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #FFD700);
    border-radius: 3px;
}

.hot-value {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
    min-width: 32px;
    text-align: right;
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
    padding: 50px 0;
    position: relative;
    z-index: 1;
}

.cta-content {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--deep-purple) 100%);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-text h2 {
    font-size: 22px;
    color: white;
    margin-bottom: 6px;
}

.cta-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================================
   Chat 对话页
   ============================================================ */
.chat-page {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

.chat-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    height: calc(100vh - 180px);
}

.chat-main {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-purple), var(--deep-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 2px solid var(--border-glow);
}

.avatar-pulse {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    animation: avatar-pulse 2s ease-out infinite;
}

@keyframes avatar-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.chat-title {
    font-size: 16px;
    color: white;
    font-weight: 600;
}

.chat-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.status-online {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
}

/* 对话消息区 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.2);
    border-radius: 3px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.message-ai {
    align-self: flex-start;
}

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

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message-ai .message-avatar {
    background: linear-gradient(135deg, var(--primary-purple), var(--deep-purple));
    border: 1px solid var(--border-glow);
}

.message-user .message-avatar {
    background: linear-gradient(135deg, var(--gold), #FFA500);
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-bubble {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.message-ai .message-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-top-left-radius: 4px;
}

.message-user .message-bubble {
    background: linear-gradient(135deg, var(--primary-purple), var(--deep-purple));
    color: white;
    border-top-right-radius: 4px;
}

.message-bubble p {
    margin-bottom: 8px;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble ul {
    list-style: none;
    padding-left: 0;
    margin: 8px 0;
}

.message-bubble ul li {
    padding: 4px 0;
    font-size: 13px;
}

/* 意图分析结果 */
.analysis-result {
    margin-top: 8px;
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.analysis-icon {
    font-size: 18px;
}

.analysis-header h3 {
    font-size: 15px;
    color: var(--gold);
    font-weight: 600;
    flex: 1;
}

.confidence-badge {
    padding: 3px 10px;
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.analysis-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.matched-agents h4 {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.matched-agent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.matched-agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid var(--agent-color);
}

.agent-avatar {
    width: 36px;
    height: 36px;
    background: var(--agent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.matched-agent-item .agent-info {
    flex: 1;
    min-width: 0;
}

.matched-agent-item .agent-name {
    font-size: 13px;
    color: white;
    font-weight: 500;
    display: block;
}

.matched-agent-item .agent-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.agent-score {
    text-align: right;
    flex-shrink: 0;
}

.agent-score span {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.score-bar {
    width: 60px;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--agent-color);
    border-radius: 3px;
}

/* 工作流 */
.workflow-section {
    margin-top: 8px;
}

.workflow-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.workflow-icon {
    font-size: 18px;
}

.workflow-header h3 {
    font-size: 15px;
    color: var(--gold);
    font-weight: 600;
}

.workflow-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.workflow-timeline {
    margin-bottom: 20px;
}

.timeline-item {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: 16px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 2px solid var(--border-color);
}

.timeline-item.status-completed .timeline-dot {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.timeline-item.status-in_progress .timeline-dot {
    background: var(--primary-purple);
    color: var(--gold);
    border-color: var(--gold);
}

.dot-pulse {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    animation: status-pulse 1.5s ease-in-out infinite;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-content {
    flex: 1;
    padding-top: 2px;
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-header h4 {
    font-size: 14px;
    color: white;
    font-weight: 500;
}

.timeline-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

.timeline-item.status-completed .timeline-status {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
}

.timeline-item.status-in_progress .timeline-status {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
}

.timeline-item.status-pending .timeline-status {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.timeline-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.timeline-link {
    font-size: 12px;
    color: var(--gold);
    text-decoration: none;
}

.timeline-link:hover {
    text-decoration: underline;
}

.workflow-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.workflow-actions .btn {
    padding: 10px 18px;
    font-size: 13px;
}

/* 输入区 */
.chat-input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.chat-input-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 8px 8px 8px 16px;
    transition: all 0.2s;
}

.chat-input-form .input-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.chat-textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 14px;
    resize: none;
    max-height: 120px;
    font-family: inherit;
    line-height: 1.5;
    padding: 8px 0;
}

.chat-textarea::placeholder {
    color: var(--text-muted);
}

.send-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--primary-purple);
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    flex-shrink: 0;
}

.send-btn:hover {
    transform: scale(1.02);
}

.input-hints {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* 侧边栏 */
.chat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    backdrop-filter: blur(10px);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: white;
    margin-bottom: 14px;
    font-weight: 600;
}

.sidebar-icon {
    font-size: 16px;
}

.quick-examples {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-example-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    transition: all 0.2s;
}

.quick-example-item:hover {
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
}

.quick-agents {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-agent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border-left: 3px solid var(--agent-color);
}

.quick-agent-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.qa-icon {
    font-size: 20px;
}

.qa-info {
    flex: 1;
    min-width: 0;
}

.qa-name {
    font-size: 13px;
    color: white;
    font-weight: 500;
    display: block;
}

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

/* ============================================================
   Dashboard 数据看板页
   ============================================================ */
.dashboard-page {
    padding: 30px 0;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-icon {
    font-size: 32px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.update-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

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

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-color), transparent);
}

.stat-card-gradient {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(26, 26, 46, 0.9) 100%);
}

.stat-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.stat-card-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.stat-card-trend {
    margin-top: 10px;
    font-size: 11px;
}

.trend-up {
    color: #51cf66;
}

.trend-label {
    color: var(--text-muted);
    margin-left: 4px;
}

/* Dashboard 行 */
.dashboard-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: white;
    font-weight: 600;
}

.card-icon {
    font-size: 20px;
}

.card-badge {
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border-glow);
}

.chart-legend {
    display: flex;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.card-body {
    padding: 20px 24px;
}

/* 图表容器 */
.chart-container {
    display: flex;
    height: 200px;
    gap: 12px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 10px;
    border-right: 1px solid var(--border-color);
}

.y-label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    min-width: 36px;
}

.chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 8px;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar-group {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 160px;
}

.bar {
    width: 12px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s;
}

.bar:hover {
    opacity: 0.8;
    transform: scaleY(1.02);
}

.bar-purple {
    background: linear-gradient(180deg, #9C27B0, #6A1B9A);
}

.bar-blue {
    background: linear-gradient(180deg, #2196F3, #1565C0);
}

.bar-green {
    background: linear-gradient(180deg, #4CAF50, #2E7D32);
}

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

/* 数据库状态列表 */
.db-status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.db-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.db-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.db-info {
    flex: 1;
    min-width: 0;
}

.db-name {
    font-size: 13px;
    color: white;
    font-weight: 500;
    display: block;
}

.db-table {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
}

.db-count {
    font-size: 12px;
    color: var(--gold);
    font-weight: 500;
    flex-shrink: 0;
}

.db-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.db-status-dot.status-online {
    background: #4CAF50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

/* 排行榜 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: all 0.2s;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rank-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.rank-badge.rank-top {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--primary-purple);
}

.rank-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-name {
    font-size: 13px;
    color: white;
    font-weight: 500;
    display: block;
}

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

.rank-hot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hot-bar-mini {
    width: 50px;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.hot-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #FFD700);
    border-radius: 3px;
}

.hot-value-mini {
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
    min-width: 28px;
    text-align: right;
}

/* ============================================================
   Projects 项目列表页
   ============================================================ */
.projects-page {
    padding: 30px 0;
}

.projects-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(10px);
}

.overview-icon {
    font-size: 32px;
}

.overview-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.overview-label {
    font-size: 13px;
    color: var(--text-muted);
}

.overview-card.overview-progress .overview-value {
    color: #64B5F6;
}

.overview-card.overview-completed .overview-value {
    color: #81C784;
}

.overview-card.overview-pending .overview-value {
    color: #FFD54F;
}

/* 筛选栏 */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 70px;
}

.filter-tabs {
    display: flex;
    gap: 4px;
}

.filter-tab {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.filter-tab.active {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    font-weight: 500;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 5px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.filter-chip:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-chip.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

/* 项目卡片网格 */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.project-type-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.project-type-badge.type-mixed {
    background: rgba(156, 39, 176, 0.15);
    color: #CE93D8;
}

.project-type-badge.type-create {
    background: rgba(156, 39, 176, 0.15);
    color: #CE93D8;
}

.project-type-badge.type-search {
    background: rgba(33, 150, 243, 0.15);
    color: #64B5F6;
}

.project-type-badge.type-ip {
    background: rgba(255, 152, 0, 0.15);
    color: #FFB74D;
}

.project-type-badge.type-quote {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
}

.project-type-badge.type-make {
    background: rgba(96, 125, 139, 0.15);
    color: #90A4AE;
}

.project-type-badge.type-local {
    background: rgba(233, 30, 99, 0.15);
    color: #F48FB1;
}

.project-status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.project-status-badge.status-in_progress {
    background: rgba(33, 150, 243, 0.15);
    color: #64B5F6;
}

.project-status-badge.status-completed {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
}

.project-status-badge.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #FFD54F;
}

.project-card-title {
    font-size: 16px;
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-progress {
    margin-bottom: 14px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #FFA500);
    border-radius: 3px;
    transition: width 0.3s;
}

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

.project-agents {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.pa-label {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.pa-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pa-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.pa-more {
    font-size: 10px;
    color: var(--text-muted);
    padding-left: 4px;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.project-date {
    font-size: 12px;
    color: var(--text-muted);
}

.project-arrow {
    font-size: 12px;
    color: var(--gold);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s;
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.page-btn {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.page-info {
    font-size: 13px;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 24px;
}

/* ============================================================
   Project Detail 项目详情页
   ============================================================ */
.project-detail-page {
    padding: 30px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb-sep {
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb-current {
    color: white;
    font-weight: 500;
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 30px;
    flex-wrap: wrap;
}

.project-type-big {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.project-type-big.type-mixed {
    background: rgba(156, 39, 176, 0.15);
    color: #CE93D8;
}

.project-type-big.type-create {
    background: rgba(156, 39, 176, 0.15);
    color: #CE93D8;
}

.project-type-big.type-search {
    background: rgba(33, 150, 243, 0.15);
    color: #64B5F6;
}

.project-type-big.type-ip {
    background: rgba(255, 152, 0, 0.15);
    color: #FFB74D;
}

.project-type-big.type-quote {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
}

.project-type-big.type-make {
    background: rgba(96, 125, 139, 0.15);
    color: #90A4AE;
}

.project-type-big.type-local {
    background: rgba(233, 30, 99, 0.15);
    color: #F48FB1;
}

.project-title {
    font-size: 28px;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
}

.project-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    max-width: 600px;
}

.project-meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.project-header-right {
    min-width: 250px;
}

.project-status-big {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.project-status-big.status-in_progress {
    border-color: rgba(33, 150, 243, 0.3);
    color: #64B5F6;
}

.project-status-big.status-completed {
    border-color: rgba(76, 175, 80, 0.3);
    color: #81C784;
}

.project-status-big.status-pending {
    border-color: rgba(255, 193, 7, 0.3);
    color: #FFD54F;
}

.status-icon {
    font-size: 20px;
}

.project-progress-big {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    backdrop-filter: blur(10px);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.progress-bar-large {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-large {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #FFA500);
    border-radius: 4px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.detail-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: white;
    font-weight: 600;
}

.dci {
    font-size: 20px;
}

.step-count {
    font-size: 12px;
    color: var(--text-muted);
}

.detail-card-body {
    padding: 24px;
}

/* 流程时间线 */
.process-timeline {
    padding-left: 10px;
}

.process-step {
    display: flex;
    gap: 16px;
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24px;
    flex-shrink: 0;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.process-step.status-completed .step-dot {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.process-step.status-in_progress .step-dot {
    background: var(--primary-purple);
    color: var(--gold);
    border-color: var(--gold);
}

.step-pulse {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    animation: status-pulse 1.5s ease-in-out infinite;
}

.step-line {
    flex: 1;
    width: 2px;
    background: var(--border-color);
    min-height: 20px;
}

.process-step.status-completed .step-line {
    background: #4CAF50;
}

.step-content {
    flex: 1;
    padding-bottom: 24px;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.step-title {
    font-size: 15px;
    color: white;
    font-weight: 500;
}

.step-status-badge {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.step-status-badge.status-completed {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
}

.step-status-badge.status-in_progress {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
}

.step-status-badge.status-pending {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.step-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.step-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 10px;
}

.step-agent-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.step-agent-name {
    flex: 1;
    font-size: 13px;
    color: white;
    font-weight: 500;
}

.step-agent-link {
    font-size: 12px;
    color: var(--gold);
    text-decoration: none;
}

.step-agent-link:hover {
    text-decoration: underline;
}

.step-result {
    padding: 10px 12px;
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 8px;
}

.result-label {
    font-size: 11px;
    color: #81C784;
    margin-bottom: 6px;
    font-weight: 500;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-item {
    font-size: 12px;
    color: var(--text-secondary);
}

.result-key {
    color: var(--text-muted);
    margin-right: 6px;
}

.result-value {
    color: white;
    font-weight: 500;
}

/* 详情页侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-agents {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border-left: 3px solid var(--agent-color);
}

.related-agent:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ra-icon {
    font-size: 20px;
}

.ra-info {
    flex: 1;
    min-width: 0;
}

.ra-name {
    font-size: 13px;
    color: white;
    font-weight: 500;
    display: block;
}

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

.ra-arrow {
    font-size: 14px;
    color: var(--gold);
}

.project-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    font-family: inherit;
    text-align: left;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    color: var(--gold);
}

.action-btn.action-primary {
    background: linear-gradient(135deg, var(--gold), #FFA500);
    color: var(--primary-purple);
    border-color: transparent;
    font-weight: 600;
}

.action-btn.action-primary:hover {
    opacity: 0.9;
}

.action-btn.action-danger:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.08);
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.2s;
}

.quick-link:hover {
    background: rgba(255, 215, 0, 0.08);
    color: var(--gold);
}

/* ============================================================
   Agents 智能体管理页
   ============================================================ */
.agents-page {
    padding: 30px 0;
}

.agents-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.agents-overview .overview-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.agents-overview .overview-icon {
    margin-bottom: 8px;
}

.agents-overview .overview-info {
    text-align: center;
}

.overview-card.overview-online .overview-value {
    color: #81C784;
}

.overview-card.overview-calls .overview-value {
    color: var(--gold);
}

.overview-card.overview-total .overview-value {
    color: #64B5F6;
}

.agent-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.agent-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.agent-detail-card:hover {
    transform: translateY(-6px);
    border-color: var(--agent-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.adc-header {
    position: relative;
    padding: 24px 24px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.adc-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--agent-color), rgba(0,0,0,0.3));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.adc-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, var(--agent-color) 0%, transparent 70%);
    opacity: 0.4;
    border-radius: 50%;
    filter: blur(10px);
}

.adc-body {
    padding: 16px 24px 20px;
    flex: 1;
}

.adc-name {
    font-size: 18px;
    color: white;
    font-weight: 600;
    margin-bottom: 6px;
}

.adc-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    min-height: 40px;
}

.adc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.adc-stat {
    text-align: center;
    padding: 10px 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.adc-stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.adc-stat-label {
    font-size: 10px;
    color: var(--text-muted);
}

.adc-mini-chart {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.mini-chart-title {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mini-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.mini-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--agent-color), transparent);
    border-radius: 2px 2px 0 0;
    min-height: 4px;
    opacity: 0.7;
}

.adc-footer {
    padding: 16px 24px 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-color);
}

.adc-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.adc-btn.adc-btn-primary {
    background: linear-gradient(135deg, var(--gold), #FFA500);
    color: var(--primary-purple);
}

.adc-btn.adc-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.adc-btn.adc-btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.adc-btn.adc-btn-outline:hover {
    border-color: var(--agent-color);
    color: var(--agent-color);
}

/* 架构图 */
.architecture-section {
    margin-top: 10px;
}

.arch-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.arch-header {
    text-align: center;
    margin-bottom: 40px;
}

.arch-title {
    font-size: 22px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.arch-icon {
    font-size: 28px;
}

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

.arch-diagram {
    position: relative;
    width: 100%;
    height: 400px;
}

.arch-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.arch-center-inner {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-purple), var(--deep-purple));
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.arch-center-icon {
    font-size: 36px;
    margin-bottom: 4px;
}

.arch-center-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}

.arch-center-desc {
    font-size: 10px;
    color: var(--text-muted);
}

.arch-center-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    animation: ring-rotate 20s linear infinite;
}

.arch-center-ring.ring-2 {
    width: 200px;
    height: 200px;
    border-color: rgba(255, 215, 0, 0.15);
    animation-duration: 30s;
    animation-direction: reverse;
}

@keyframes ring-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.arch-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.arch-node-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border: 2px solid var(--node-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.arch-node:hover .arch-node-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.arch-node-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .agent-grid,
    .example-card-grid,
    .project-grid,
    .agent-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dashboard-row {
        grid-template-columns: 1fr;
    }
    
    .chat-layout {
        grid-template-columns: 1fr;
    }
    
    .chat-sidebar {
        display: none;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .nav-links a span:not(.nav-icon) {
        display: none;
    }
    
    .agent-grid,
    .example-card-grid,
    .project-grid,
    .agent-detail-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-overview,
    .agents-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .cta-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
