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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --border-color: #374151;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

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

.nav-actions {
    display: flex;
    gap: 1rem;
}

.theme-toggle, .language-toggle {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover, .language-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

/* 语言下拉 */
.language-dropdown {
    position: relative;
}

.language-menu {
    list-style: none;
    position: absolute;
    right: 0;
    top: 110%;
    width: 180px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 6px;
    display: none;
}

.language-dropdown.open .language-menu {
    display: block;
}

.language-menu li {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
}

.language-menu li:hover {
    background: var(--bg-secondary);
}

.language-menu li.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-color);
    font-weight: 600;
}

[data-theme="dark"] .language-menu {
    box-shadow: var(--shadow-lg);
}

/* 主页英雄部分 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* 语音演示区域 */
.voice-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.microphone-container {
    text-align: center;
}

.microphone-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.microphone-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.microphone-btn.recording {
    background: #ef4444;
    border-color: #dc2626;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.status-text {
    margin-top: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.usage-tips {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.usage-tips h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.usage-tips ul {
    list-style: none;
    text-align: left;
}

.usage-tips li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.usage-tips li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* 特性部分 */
.features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.features h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.features > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-item {
    margin-bottom: 1.5rem;
}

.feature-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 架构部分 */
.architecture {
    padding: 80px 0;
    background: var(--bg-primary);
}

.architecture h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.architecture > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.architecture-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.arch-item {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.arch-item.traditional {
    border-color: #f59e0b;
}

.arch-item.unified {
    border-color: var(--primary-color);
}

.arch-item h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.arch-flow {
    margin: 2rem 0;
}

.flow-step {
    background: var(--bg-secondary);
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.unified-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.unified-flow .flow-step {
    margin: 0;
}

.capabilities {
    margin: 1.5rem 0;
}

.capability {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
}

/* 核心特性展示 */
.core-features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.core-features h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.core-features > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-demo {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.feature-demo h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-demo p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 性能部分 */
.performance {
    padding: 80px 0;
    background: var(--bg-primary);
}

.performance h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.performance > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.metric {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.metric-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.metric-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.metric-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 客户案例 */
.customer-spotlight {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.customer-spotlight h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.customer-spotlight h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.customer-spotlight > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.customer-story {
    max-width: 900px;
    margin: 0 auto;
}

.quote {
    margin-bottom: 3rem;
}

.quote blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.quote cite {
    text-align: center;
    display: block;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.challenge-solution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.challenge, .solution {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.challenge h4, .solution h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.challenge p, .solution p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ 部分 */
.faq {
    padding: 80px 0;
    background: var(--bg-primary);
}

.faq h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.faq > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

/* 行动号召 */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta > .container > p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 3rem;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.newsletter {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #0891b2;
}

/* 页脚 */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .feature-grid, .architecture-comparison, .features-showcase, .performance-metrics, .challenge-solution, .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .microphone-btn {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
    
    .unified-flow {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .feature-card, .arch-item, .feature-demo, .metric, .challenge, .solution, .faq-item {
        padding: 1.5rem;
    }
} 