/* ===== 基础样式 ===== */
:root {
    /* 主色调：科技蓝 */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #06b6d4;
    --accent: #10b981;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* 背景：深灰黑（不带紫色调） */
    --bg-dark: #0f1419;
    --bg-darker: #080a0d;
    --bg-card: #161b22;
    --bg-card-hover: #1f262e;
    
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    --border-color: #30363d;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* 渐变：蓝青色系 */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

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

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

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

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

.btn-xl {
    padding: 20px 48px;
    font-size: 18px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

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

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== Hero区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.hero-stats {
    display: flex;
    gap: 48px;
}

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

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ===== 代码展示窗口 ===== */
.hero-demo {
    perspective: 1000px;
}

.code-window {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.code-window:hover {
    transform: rotateY(0) rotateX(0);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

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

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.code-title {
    flex: 1;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.code-body {
    padding: 24px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-line {
    margin-bottom: 12px;
}

.code-line.comment {
    color: var(--text-muted);
    font-style: italic;
}

.code-line.prompt {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.08);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.code-line.response {
    color: var(--success);
}

.user-tag {
    color: var(--secondary);
    font-weight: 600;
    margin-right: 8px;
}

.ai-tag {
    color: var(--success);
    font-weight: 600;
    margin-right: 8px;
}

.code-block {
    background: var(--bg-darker);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    border: 1px solid var(--border-color);
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.code-block code {
    color: var(--text-primary);
    font-size: 13px;
}

/* ===== Section样式 ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 功能特点 ===== */
.features {
    background: var(--bg-darker);
}

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

.feature-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.feature-link {
    color: var(--primary-light);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: var(--primary);
}

/* ===== 使用步骤 ===== */
.how-it-works {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

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

.step-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

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

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}

.step-content {
    margin-top: 16px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-icon {
    font-size: 40px;
    margin-top: 20px;
}

/* ===== 优势展示 ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.advantage-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.2);
}

.advantage-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.advantage-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.advantage-subtitle {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.advantage-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== 价格方案 ===== */
.pricing {
    background: var(--bg-darker);
}

.pricing-table {
    overflow-x: auto;
    margin-bottom: 40px;
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.pricing-table th,
.pricing-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    background: var(--bg-darker);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-table td {
    color: var(--text-secondary);
}

.pricing-table tr.highlight {
    background: rgba(59, 130, 246, 0.08);
}

.pricing-table tr.highlight td {
    color: var(--text-primary);
}

.model-name {
    font-weight: 600;
    color: var(--text-primary);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.badge-primary {
    background: var(--gradient-primary);
    color: white;
}

.badge-secondary {
    background: rgba(14, 165, 233, 0.2);
    color: var(--secondary);
}

.pricing-notes {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-note-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 32px;
    border: 1px solid var(--border-color);
}

.pricing-note-card h4 {
    font-size: 18px;
    margin-bottom: 16px;
}

.pricing-note-card ul {
    list-style: none;
}

.pricing-note-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.pricing-note-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.pricing-note-card li strong {
    color: var(--text-primary);
}

/* ===== 技术优势 ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tech-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--border-color);
}

.tech-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tech-subtitle {
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.tech-desc {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== FAQ ===== */
.faq {
    background: var(--bg-darker);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 24px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    text-align: center;
    padding: 100px 0;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    padding: 8px 0;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== 动画 ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== 粒子效果 ===== */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-demo {
        display: none;
    }
    
    .features-grid,
    .steps-grid,
    .advantages-grid,
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid,
    .steps-grid,
    .advantages-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pricing-table {
        font-size: 14px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .cta-title {
        font-size: 28px;
    }
}
