/* AICG视频创作软件 - 科技感主题 v5.0 */

:root {
  --bg-primary: #EDF2F9;
  --bg-card: #FFFFFF;
  --bg-secondary: #EEF3FA;
  --bg-tertiary: #E5EAF2;
  --bg-dark: #1E293B;
  --border-light: #DDE4ED;
  --border-medium: #CDD6E0;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --accent-blue: #3B82F6;
  --accent-green: #10B981;
  --accent-purple: #8B5CF6;
  --accent-amber: #F59E0B;
  --accent-cyan: #06B6D4;
  --accent-pink: #EC4899;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

/* 背景动画 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.grid-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.floating-particles::before {
    top: 10%;
    left: 10%;
}

.floating-particles::after {
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* 顶部导航 */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.search-bar {
    flex: 1;
    max-width: 420px;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    gap: 10px;
    transition: all 0.2s;
}

.search-bar:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: var(--text-primary);
}

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

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--border-medium);
}

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

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

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.nav-link.active {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
}

/* 主内容区 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px;
    position: relative;
    z-index: 1;
}

/* 标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.section-title svg {
    color: var(--accent-blue);
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,250,252,0.9));
    border-radius: var(--radius-xl);
    margin-bottom: 48px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
}

.hero-content {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: var(--accent-blue);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    width: fit-content;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

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

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

.hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--accent-blue);
    font-weight: 600;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-blue), #2563EB);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* 代码终端 */
.hero-visual {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-terminal {
    width: 100%;
    max-width: 520px;
    background: #0D1117;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    font-family: 'JetBrains Mono', monospace;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #161B22;
    border-bottom: 1px solid #30363D;
}

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

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.terminal-title {
    margin-left: auto;
    font-size: 12px;
    color: #8B949E;
}

.terminal-code {
    padding: 20px;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
}

.terminal-code code {
    color: #E6EDF3;
}

.terminal-code .comment { color: #8B949E; }
.terminal-code .keyword { color: #FF7B72; }
.terminal-code .string { color: #A5D6FF; }
.terminal-code .number { color: #79C0FF; }

/* 实时数据监控 */
.monitor-section {
    margin-bottom: 56px;
}

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

.monitor-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.monitor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.monitor-card:hover::before {
    opacity: 1;
}

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

.monitor-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.monitor-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.monitor-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.monitor-chart {
    height: 30px;
}

.sparkline {
    width: 100%;
    height: 100%;
}

.sparkline polyline {
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.sparkline.green polyline {
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2));
}

.model-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.model-tag {
    font-size: 11px;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.uptime-bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.uptime-fill {
    height: 100%;
    width: 99.9%;
    background: linear-gradient(90deg, var(--accent-green), #059669);
    border-radius: var(--radius-full);
}

/* AI 能力展示 */
.ai-capabilities {
    margin-bottom: 56px;
}

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

.capability-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.capability-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-md);
}

.capability-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.capability-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.capability-header h3 {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.capability-badge {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.capability-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.capability-params {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.param {
    text-align: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

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

.param-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 软件列表 */
.software-section {
    margin-bottom: 56px;
}

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

.view-all {
    font-size: 14px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.software-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 软件卡片 */
.software-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    position: relative;
}

.software-card.featured {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(139, 92, 246, 0.03));
    border-color: rgba(59, 130, 246, 0.2);
}

.featured-badge {
    position: absolute;
    top: -1px;
    right: 24px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
}

.software-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.card-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.card-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

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

.card-meta .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
    font-weight: 500;
}

.card-meta .downloads {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 下载按钮 */
.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-blue), #2563EB);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.download-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: none;
}

.download-btn.secondary:hover {
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
}

/* 技术栈 */
.tech-stack {
    margin-bottom: 56px;
}

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

.tech-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s;
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.2);
}

.tech-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--accent-blue);
}

.tech-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

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

/* API 文档预览 */
.api-preview {
    margin-bottom: 56px;
}

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

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

.api-endpoint {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    font-family: 'JetBrains Mono', monospace;
}

.api-endpoint:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-sm);
}

.endpoint-method {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.endpoint-method.post {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.endpoint-method.get {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.api-endpoint code {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.api-endpoint p {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

/* 热门推荐 */
.featured-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 36px;
    border: 1px solid var(--border-light);
    margin-bottom: 48px;
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.featured-item:hover {
    background: var(--bg-tertiary);
}

.rank {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-blue), #2563EB);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.rank.gold {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
}

.rank.silver {
    background: linear-gradient(135deg, #9CA3AF, #6B7280);
}

.rank.bronze {
    background: linear-gradient(135deg, #D97706, #B45309);
}

.featured-info {
    flex: 1;
}

.featured-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.featured-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.featured-downloads {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: #1E293B;
    color: #E5E7EB;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo span {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.footer-section p {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-section a {
    font-size: 14px;
    color: #9CA3AF;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #6B7280;
}

/* 响应式 */
@media (max-width: 1200px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .api-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        display: none;
    }
    
    .monitor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .hero-content {
        padding: 40px 28px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .software-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .card-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .api-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .monitor-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .capability-params {
        grid-template-columns: 1fr;
    }
}
