/* ============================================
   设计系统 - CSS 变量定义
   这里定义了整个网站的颜色、字体、间距等基础规范
   ============================================ */
:root {
    /* 颜色系统 - Obsidian & Violet 配色方案 */
    --bg-primary: #060608;           /* 主背景色 - 近乎纯黑的黑曜石色 */
    --bg-secondary: #131316;         /* 次背景色 - 用于卡片背景 */
    --bg-tertiary: #1a1a1f;          /* 第三层背景 - 用于悬浮元素 */
    --text-primary: #E7E3E2;         /* 主文字色 - 暖灰白，避免纯白刺眼 */
    --text-secondary: #999494;       /* 次文字色 - 中性偏暖的灰色 */
    --text-muted: #737373;           /* 弱化文字色 - 中性灰色 */
    --accent-primary: rgba(255, 255, 255, 0.9);    /* 主强调色 - 白色高透明度 */
    --accent-secondary: rgba(255, 255, 255, 0.6);  /* 次强调色 - 白色中透明度 */
    --accent-glow: #A35B4A;          /* 高光色 - 暖色点缀 */
    --border-subtle: rgba(255, 255, 255, 0.08);  /* 细微边框 */
    --border-hover: rgba(255, 255, 255, 0.15);   /* 悬停边框 */

    /* 字体系统 */
    --font-display: 'Plus Jakarta Sans', sans-serif;  /* 展示字体 - 用于标题 */
    --font-body: 'Inter', sans-serif;                  /* 正文字体 */

    /* 间距系统 - 基于 8px 网格 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;

    /* 圆角系统 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 32px;
    --radius-2xl: 24px;
    --radius-full: 9999px;  /* 胶囊形状 */

    /* 过渡动画 */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ============================================
   Aceternity UI - Background Beams 动画背景
   完全复刻原版：50条光束，动态梯度位移动画
   ============================================ */
.background-beams-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: #060608;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}

.background-beams-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* ============================================
   基础重置样式
   清除浏览器默认样式，确保一致性
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 工具类 - 通用样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-5xl) 0;
    position: relative;
}

/* 渐变文字效果 - 用于大标题 */
.gradient-text, .section-title {
    background: linear-gradient(90deg, #cabfff, #fff 50%, #bfeaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ============================================
   按钮组件
   两种样式：主按钮（实心）和次按钮（描边）
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    outline: none;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    position: relative;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

/* ============================================
   区块标题组件
   统一的标题样式，用于各个模块
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, rgba(106, 175, 255, 0.08) 0%, rgba(157, 206, 255, 0.18) 100%);
    border: 1px solid rgba(106, 175, 255, 0.3);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6aafff;
    margin-bottom: var(--space-md);
}

.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #6aafff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

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

/* ============================================
   1. Header 悬浮导航区块
   采用胶囊形状的悬浮导航栏，带毛玻璃效果
   ============================================ */
.header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 48px);
    max-width: 900px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(6, 6, 8, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.nav-cta {
    padding: var(--space-sm) var(--space-lg);
    font-size: 14px;
}

.imglogo { width: 32px; }

/* ============================================
   2. Hero 首屏区块
   ============================================ */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 160px;
    padding-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, rgba(106, 175, 255, 0.08) 0%, rgba(157, 206, 255, 0.18) 100%);
    border: 1px solid rgba(106, 175, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: #6aafff;
    margin-bottom: var(--space-xl);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #6aafff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-4xl);
    position: relative;
}

/* 二维码容器 */
.qrcode-box {
    position: absolute;
    top: -204px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.qrcode-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.qrcode-img {
    width: 180px;
    height: 180px;
    display: block;
    border-radius: 4px;
}

/* ============================================
   3. 核心功能特性区块 - 现代杂志风格
   ============================================ */
.features {
    background-color: transparent;
    position: relative;
    overflow: visible;
    padding: var(--space-2xl) 0 var(--space-5xl);
}

.features-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.feature-block {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 600px;
}

.feature-block:nth-child(odd) { justify-content: flex-start; }
.feature-block:nth-child(even) { justify-content: flex-end; }

.feature-bg-number {
    position: absolute;
    font-family: var(--font-display);
    font-size: 400px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: -1;
    user-select: none;
}

.feature-block:nth-child(odd) .feature-bg-number { right: -50px; top: -100px; }
.feature-block:nth-child(even) .feature-bg-number { left: -50px; bottom: -100px; }

.feature-visual-magazine {
    position: relative;
    width: 65%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden !important;
    z-index: 1;
}

.flying-component {
    position: absolute;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(106, 175, 255, 0.3);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    z-index: 50;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-block:nth-child(1) .flying-component {
    bottom: -40px; right: -60px;
    width: 320px;
    transform: rotate(3deg);
}

.feature-block:nth-child(2) .flying-component {
    top: -40px; left: -60px;
    width: 280px;
    transform: rotate(-3deg);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-block:nth-child(3) .flying-component {
    bottom: 20px; left: -80px;
    width: 350px;
    transform: rotate(-2deg);
}

.feature-content-magazine {
    position: absolute;
    width: 40%;
    z-index: 20;
    padding: 60px;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(10px);
    border-left: 2px solid #6aafff;
}

.feature-block:nth-child(odd) .feature-content-magazine {
    right: 0;
    transform: translateX(10%);
}

.feature-block:nth-child(even) .feature-content-magazine {
    left: 0;
    transform: translateX(-10%);
    border-left: none;
    border-right: 2px solid #6aafff;
    text-align: right;
}

.feature-title-magazine {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
}

.feature-desc-magazine {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-block:nth-child(3) { margin-top: 40px; }
.feature-block:nth-child(2) .feature-bg-number { bottom: 300px; }
.feature-block:nth-child(3) .feature-bg-number { transform: translateY(40px); }

@media (max-width: 1024px) {
    .feature-block { flex-direction: column !important; min-height: auto; gap: 60px; }
    .feature-visual-magazine { width: 100%; height: 350px; }
    .feature-content-magazine {
        position: relative; width: 100%; transform: none !important;
        padding: 30px 0; background: none; backdrop-filter: none;
        border: none !important; text-align: left !important;
    }
    .flying-component { display: none; }
    .feature-bg-number { font-size: 200px; }
}

/* ============================================
   4. 为什么选择 Molili 区块
   ============================================ */
.why-section {
    background: transparent;
    position: relative;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.benefit-card {
    background: rgba(19, 19, 22, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: 2;
}

.benefit-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 255, 255, 0.05);
}

.benefit-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.benefit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover .benefit-image { transform: scale(1.1); }

.benefit-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.benefit-content {
    padding: var(--space-xl) var(--space-xl) var(--space-2xl);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.benefit-content h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.benefit-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   5. 立即下载区块
   ============================================ */
.download-section {
    background: transparent;
    text-align: center;
    padding-top: 40px;
}

.download-options {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: nowrap;
    align-items: stretch;
}

.download-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-lg);
    background: rgba(19, 19, 22, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-base);
    flex: 1;
    min-width: 0;
    max-width: 380px;
}

.download-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 88, 161, 0.2);
}

.download-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(100, 88, 161, 0.2) 0%, rgba(123, 111, 184, 0.2) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
}

.download-info {
    text-align: left;
}

.download-info h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.download-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   6. 教程帮助文档区块
   ============================================ */
.docs-section {
    background: transparent;
    position: relative;
}

.docs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.doc-card {
    background: rgba(19, 19, 22, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.doc-card::after {
    content: '';
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.doc-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.doc-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.7);
}

.doc-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.doc-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: gap var(--transition-fast);
}

.doc-card:hover .doc-link {
    gap: var(--space-md);
}

/* ============================================
   7. Footer 页脚
   ============================================ */
.footer {
    background: transparent;
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-brand-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-copyright a {
    color: var(--text-muted);
    text-decoration: none;
}

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

/* ============================================
   响应式设计 - 移动端适配
   ============================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 40px; }
    .section-title { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-cta { flex-direction: column; align-items: center; }
    .download-options { flex-direction: column; align-items: center; gap: var(--space-lg); }
    .footer-content { flex-direction: column; text-align: center; gap: var(--space-xl); }
    .download-card { width: 100%; justify-content: center; }
}
