/* Demo页面专用样式 */

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo h2 {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff2442 0%, #ff6b8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #e74c3c;
}

/* Demo横幅 */
.demo-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 70px;
    text-align: center;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.xiaohongshu-logo {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff2442 0%, #ff6b8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    -webkit-text-fill-color: white;
    background: none;
    color: white;
}

.logo-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-top: 10px;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

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

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Demo控制台 */
.demo-console {
    padding: 60px 0;
    background: #f8f9fa;
}

.console-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.control-panel {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    height: fit-content;
}

.panel-section {
    margin-bottom: 30px;
}

.panel-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-section h3 i {
    color: #e74c3c;
}

.status-grid {
    display: grid;
    gap: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.status-label {
    color: #666;
    font-size: 0.9rem;
}

.status-value {
    font-weight: 600;
    color: #333;
}

.status-value.running {
    color: #4ade80;
}

.status-value.connected {
    color: #3b82f6;
}

.status-value.stopped {
    color: #ef4444;
}

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

.param-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.param-group input,
.param-group select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.param-group input:focus,
.param-group select:focus {
    outline: none;
    border-color: #e74c3c;
}

.param-group input[type="range"] {
    padding: 0;
}

#budget-value {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #666;
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Demo窗口 */
.demo-window-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-window {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.demo-header {
    background: #2d2d2d;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-dots {
    display: flex;
    gap: 8px;
}

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

.demo-dot.red { background: #ff5f56; }
.demo-dot.yellow { background: #ffbd2e; }
.demo-dot.green { background: #27ca3f; }

.demo-title {
    color: #fff;
    font-size: 0.9rem;
    margin-left: 10px;
}

.demo-content {
    padding: 20px;
    height: 400px;
    overflow-y: auto;
}

/* 数据可视化 */
.data-visualization {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
}

.chart-container h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.metric-icon {
    font-size: 2rem;
    color: #e74c3c;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
}

/* API信息 */
.api-info {
    padding: 80px 0;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.api-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.api-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.api-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.api-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.api-endpoints,
.ai-features,
.deployment-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.endpoint,
.feature {
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #e5e7eb;
}

/* 日志样式 */
.log-container {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.log-entry {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    padding: 5px 0;
}

.log-time {
    color: #888;
    min-width: 80px;
}

.log-level {
    min-width: 60px;
    font-weight: bold;
}

.log-level.info {
    color: #3b82f6;
}

.log-level.success {
    color: #4ade80;
}

.log-level.warning {
    color: #f59e0b;
}

.log-level.error {
    color: #ef4444;
}

.log-message {
    color: #fff;
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .console-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .api-grid {
        grid-template-columns: 1fr;
    }
    
    .xiaohongshu-logo {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .xiaohongshu-logo {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
} 