/* ========================================
   DragonAI Engine - 开放、无限、自由
   OpenClaw 的最佳搭档
   ======================================== */

/* CSS 变量 */
:root {
    /* 主色调 - 小龙虾橙红 + 科技蓝 */
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-glow: rgba(255, 107, 53, 0.3);
    
    /* 辅助色 */
    --secondary: #00d4ff;
    --accent: #ffd700;
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff0055;
    
    /* 背景色 */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 30, 0.9);
    --bg-card-hover: rgba(30, 30, 45, 0.95);
    
    /* 文字色 */
    --text-primary: #ffffff;
    --text-secondary: #9999bb;
    --text-muted: #555566;
    
    /* 边框 */
    --border: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(255, 107, 53, 0.3);
    
    /* 字体 */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* 阴影 */
    --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.2);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 粒子背景 */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   导航栏
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

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

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

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* ========================================
   按钮
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--primary-glow);
}

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

.btn-outline:hover {
    background: rgba(255, 107, 53, 0.1);
}

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

.btn-small {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #cc0044);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff1a66, var(--danger));
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #cc8800);
    color: var(--bg-dark);
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffbb33, var(--warning));
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #00cc66);
    color: var(--bg-dark);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #33ff99, var(--success));
    transform: translateY(-2px);
}

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

.btn-arrow {
    width: 18px;
    height: 18px;
}

/* ========================================
   Hero 区域
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 60px 60px;
    position: relative;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid var(--border-glow);
    border-radius: 30px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 600;
}

.hero-badge.partner {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(0, 212, 255, 0.1));
    border: 1px solid var(--primary);
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-large {
    font-size: 32px;
    font-weight: 500;
    color: var(--text-primary);
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

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

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

/* Hero 装饰 */
.hero-visual {
    position: relative;
    width: 450px;
    height: 450px;
}

.infinity-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 4px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--primary-glow), inset 0 0 40px var(--primary-glow);
    animation: infinity-pulse 3s ease-in-out infinite;
    z-index: 1;
}

.infinity-circle {
    display: none;
}

@keyframes infinity-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        border-color: var(--primary);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        border-color: var(--secondary);
    }
}

.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.floating-card {
    position: absolute;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-card);
    white-space: nowrap;
}

/* 六条龙均匀分布在圆环周围，每60度一个 */
/* 紫金龙 - 0度（正上方）- 1600B */
.floating-card.card-6 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg) translateY(-180px) rotate(0deg);
    animation: float-6 4s ease-in-out infinite;
    animation-delay: 2.5s;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(255, 215, 0, 0.1));
    border-color: rgba(155, 89, 182, 0.5);
}

/* 白龙 - 300度（左上）- 80B */
.floating-card.card-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(300deg) translateY(-180px) rotate(-300deg);
    animation: float-1 4s ease-in-out infinite;
}

/* 绿龙 - 240度（左下）- 122B */
.floating-card.card-2 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(240deg) translateY(-180px) rotate(-240deg);
    animation: float-2 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* 红龙 - 180度（正下方）- 200B */
.floating-card.card-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg) translateY(-180px) rotate(-180deg);
    animation: float-3 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* 金龙 - 120度（右下）- 400B */
.floating-card.card-4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(120deg) translateY(-180px) rotate(-120deg);
    animation: float-4 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* 白金龙 - 60度（右上）- 1000B */
.floating-card.card-5 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(60deg) translateY(-180px) rotate(-60deg);
    animation: float-5 4s ease-in-out infinite;
    animation-delay: 2s;
    background: linear-gradient(135deg, rgba(229, 228, 226, 0.15), rgba(255, 215, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.3);
}

@keyframes float-1 {
    0%, 100% { transform: translate(-50%, -50%) rotate(300deg) translateY(-180px) rotate(-300deg); }
    50% { transform: translate(-50%, -50%) rotate(300deg) translateY(-190px) rotate(-300deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(-50%, -50%) rotate(240deg) translateY(-180px) rotate(-240deg); }
    50% { transform: translate(-50%, -50%) rotate(240deg) translateY(-190px) rotate(-240deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(-50%, -50%) rotate(180deg) translateY(-180px) rotate(-180deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg) translateY(-190px) rotate(-180deg); }
}

@keyframes float-4 {
    0%, 100% { transform: translate(-50%, -50%) rotate(120deg) translateY(-180px) rotate(-120deg); }
    50% { transform: translate(-50%, -50%) rotate(120deg) translateY(-190px) rotate(-120deg); }
}

@keyframes float-5 {
    0%, 100% { transform: translate(-50%, -50%) rotate(60deg) translateY(-180px) rotate(-60deg); }
    50% { transform: translate(-50%, -50%) rotate(60deg) translateY(-190px) rotate(-60deg); }
}

@keyframes float-6 {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg) translateY(-180px) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(0deg) translateY(-190px) rotate(0deg); }
}

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

/* ========================================
   痛点区域
   ======================================== */

.pain-points {
    padding: 80px 60px;
    background: linear-gradient(180deg, var(--bg-dark), rgba(255, 107, 53, 0.05));
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
}

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

.pain-card {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.pain-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.pain-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--danger);
}

.pain-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

.solution-arrow {
    text-align: center;
    margin-top: 40px;
}

.arrow-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--danger), var(--primary));
    margin: 0 auto 15px;
}

.arrow-text {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--primary);
    font-weight: 700;
}

/* ========================================
   解决方案
   ======================================== */

.solution {
    padding: 100px 60px;
}

.solution-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.solution-left {
    flex: 1;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--border-glow);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary);
}

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

.solution-right {
    flex: 1;
}

.code-example {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.code-header {
    padding: 15px 20px;
    background: rgba(255, 107, 53, 0.1);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--primary);
}

.code-body {
    padding: 25px;
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 2;
    color: var(--text-primary);
}

/* ========================================
   模型展示
   ======================================== */

.models {
    padding: 100px 60px;
    background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.03));
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -30px;
    margin-bottom: 50px;
}

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

.model-card {
    position: relative;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.model-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
}

.model-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.model-ribbon {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 5px 15px;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
}

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

.model-name {
    font-size: 22px;
    font-weight: 700;
}

.model-status {
    font-size: 12px;
    color: var(--success);
}

.model-id {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
    margin-bottom: 10px;
}

.model-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.model-features {
    list-style: none;
}

.model-features li {
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
}

.model-badge-openclaw {
    margin-top: 15px;
    padding: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
}

/* ========================================
   无限 Token 说明
   ======================================== */

.pricing {
    padding: 100px 60px;
}

.pricing-explain {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.explain-card {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}

.explain-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.explain-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

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

.cta-box {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(0, 212, 255, 0.05));
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
}

.cta-box h3 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* ========================================
   快速开始
   ======================================== */

.quickstart {
    padding: 100px 60px;
    background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.05));
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.step {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-width: 200px;
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    color: var(--bg-dark);
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

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

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* ========================================
   页脚
   ======================================== */

.footer {
    padding: 40px 60px;
    border-top: 1px solid var(--border);
    text-align: center;
}

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

.footer-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

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

/* ========================================
   模态框
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 400px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
}

/* ========================================
   表单
   ======================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

/* ========================================
   仪表盘布局
   ======================================== */

.dashboard-body {
    display: flex;
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: rgba(10, 10, 15, 0.95);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 25px;
    border-bottom: 1px solid var(--border);
}

.sidebar-nav {
    flex: 1;
    padding: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
}

.nav-item.active {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-details {
    flex: 1;
}

.user-name {
    display: block;
    font-weight: 600;
}

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

.logout-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* 用户菜单 */
.user-menu-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.user-info:hover .user-menu-arrow {
    color: var(--primary);
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.user-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.user-menu.active {
    display: block;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.user-menu-item svg {
    width: 18px;
    height: 18px;
}

.user-menu-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
}

.user-menu-item.logout {
    border-top: 1px solid var(--border);
}

.user-menu-item.logout:hover {
    background: rgba(255, 0, 85, 0.1);
    color: var(--danger);
}

/* 主内容 */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

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

.page-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
}

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

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ========================================
   统计卡片
   ======================================== */

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

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.stat-icon {
    width: 50px;
    height: 50px;
    padding: 12px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-content {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
}

/* ========================================
   卡片
   ======================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
}

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

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

/* API Key */
.api-key-display {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.api-key-display code {
    flex: 1;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: var(--primary);
}

.copy-btn {
    padding: 0 16px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.api-key-warning {
    font-size: 13px;
    color: var(--warning);
}

/* Admin Section */
.admin-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-section .card {
    margin-top: 25px;
}

.key-cell {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--primary);
}

.nvidia-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.nvidia-status.bound {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
}

.nvidia-status.unbound {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning);
}

.user-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.user-status.active {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
}

.user-status.inactive {
    background: rgba(255, 0, 85, 0.15);
    color: var(--danger);
}

/* 数据表格 */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.data-table td {
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 40px !important;
}

/* Playground */
.playground-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.playground-options .form-group {
    flex: 1;
    margin-bottom: 0;
}

.playground-actions {
    margin: 20px 0;
}

.response-area {
    margin-top: 20px;
}

.response-area label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.response-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-height: 150px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.response-content .placeholder {
    color: var(--text-muted);
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider {
    background: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background: var(--bg-dark);
}

/* 响应式 */
@media (max-width: 1024px) {
    .pain-grid,
    .pricing-explain,
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solution-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        flex-direction: column;
        padding: 100px 20px 40px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .pain-grid,
    .pricing-explain,
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-connector {
        width: 2px;
        height: 40px;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   搜索框
   ======================================== */

.search-bar {
    position: relative;
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.search-bar svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

/* ========================================
   分页
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
}

.page-btn {
    padding: 8px 20px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.page-info strong {
    color: var(--primary);
}

/* 旋转动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
