/* MiraiMind 深色科技风格 */

/* 基础变量 */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #22d3ee;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #1e293b;
    --gradient: linear-gradient(135deg, #6366f1, #ec4899);
    --gradient-text: linear-gradient(135deg, #6366f1, #ec4899, #22d3ee);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* 渐变文字 */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

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

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -2s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -4s;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 14px;
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

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

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* 通用区块 */
.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
}

/* 核心价值 */
.values {
    background: var(--bg-card);
}

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

.value-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s;
}

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

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

.value-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

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

/* 功能特色 */
.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-main.reverse {
    direction: rtl;
}

.feature-main.reverse > * {
    direction: ltr;
}

.feature-tag {
    display: inline-block;
    font-size: 48px;
    font-weight: 900;
    color: var(--border);
    margin-bottom: 16px;
}

.feature-info h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.feature-info > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 16px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    color: var(--accent);
    font-size: 15px;
}

/* 手机模拟 */
.phone-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.phone-screen {
    background: var(--bg-dark);
    border-radius: 24px;
    padding: 20px;
    min-height: 300px;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.chat-bubble.bot {
    background: var(--bg-card);
    border-bottom-left-radius: 4px;
}

.chat-bubble.user {
    background: var(--gradient);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-bubble.bot.highlight {
    border: 1px solid var(--primary);
}

/* 角色网格 */
.character-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.char-card:hover {
    border-color: var(--secondary);
    transform: scale(1.05);
}

.char-avatar {
    font-size: 40px;
    margin-bottom: 12px;
}

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

/* 对比表格 */
.comparison {
    background: var(--bg-card);
}

.compare-table {
    background: var(--bg-dark);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.compare-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: var(--bg-card);
}

.compare-th {
    padding: 20px;
    font-weight: 700;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.compare-th.brand {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
}

.compare-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-td {
    padding: 16px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.compare-td.highlight {
    color: var(--accent);
    background: rgba(34, 211, 238, 0.05);
}

/* 用户评价 */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

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

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 16px;
    font-size: 18px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.author-name {
    font-weight: 600;
    font-size: 14px;
}

.author-source {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-dark);
    padding: 4px 10px;
    border-radius: 20px;
}

/* 下载CTA */
.cta-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid var(--primary);
    border-radius: 32px;
    padding: 60px;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

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

.cta-platforms {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
}

.platform-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

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

/* 页脚 */
.footer {
    background: var(--bg-card);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

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

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--primary-light);
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        display: none;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-num {
        font-size: 24px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .feature-main,
    .feature-main.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .compare-header,
    .compare-row {
        grid-template-columns: 1fr;
    }

    .compare-th,
    .compare-td {
        display: block;
        text-align: left;
        padding: 12px 16px;
    }

    .compare-th:not(:first-child),
    .compare-td:not(:first-child) {
        background: transparent;
        padding-top: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-box {
        padding: 40px 20px;
    }

    .cta-platforms {
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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