:root {
    /* --- 默认深色系 --- */
    --primary: #f472b6;
    --secondary: #a78bfa;
    --bg-body: #0f172a;
    --bg-section-alt: #1e293b;
    --bg-card: #0f172a;
    --bg-nav: rgba(15, 23, 42, 0.9);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    --grid-color: rgba(255, 255, 255, 0.05);

    --gradient-text: linear-gradient(135deg, #f472b6 0%, #c084fc 100%);
    --gradient-btn: linear-gradient(135deg, #ec4899, #8b5cf6);
}

/* --- 浅色模式 --- */
body.light-theme {
    --primary: #ec4899;
    --secondary: #8b5cf6;
    --bg-body: #f5f7f9;
    --bg-section-alt: #ffffff;
    --bg-card: #e2e8f0;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow: 0 15px 30px -5px rgba(148, 163, 184, 0.2);
    --grid-color: rgba(0, 0, 0, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', -apple-system, sans-serif; background: var(--bg-body); color: var(--text-main); line-height: 1.6; transition: background 0.3s ease, color 0.3s ease; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }

/* --- 导航栏 --- */
.navbar { position: fixed; top: 0; width: 100%; background: var(--bg-nav); backdrop-filter: blur(12px); z-index: 1000; border-bottom: 1px solid var(--border-color); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 70px; display: flex; justify-content: space-between; align-items: center; }
.nav-logo h2 { font-size: 1.8rem; font-weight: 900; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-menu { display: flex; gap: 2rem; list-style: none; transition: all 0.3s ease; }
.nav-link { text-decoration: none; color: var(--text-main); opacity: 0.8; transition: 0.2s; }
.nav-link:hover { color: var(--primary); }

/* 汉堡菜单 */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 4px; padding: 5px; z-index: 1001; }
.hamburger div { width: 25px; height: 3px; background-color: var(--text-main); transition: all 0.3s ease; }
.hamburger.active div:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active div:nth-child(2) { opacity: 0; }
.hamburger.active div:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 英雄区 --- */
.hero { position: relative; min-height: 100vh; padding-top: 80px; display: flex; align-items: center; overflow: hidden; background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px); background-size: 50px 50px; background-position: center top; }
.hero::before { content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 80%; height: 60%; background: var(--primary); filter: blur(120px); opacity: 0.15; pointer-events: none; }
.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.hero-title { font-size: 4rem; line-height: 1.1; margin-bottom: 0.5rem; font-weight: 900; letter-spacing: -2px; color: var(--text-main); }
.hero-title .text-h1-p2 { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 5px rgba(236, 72, 153, 0.4); font-size: 1.1em; display: block; margin-top: 10px; }
.hero-subtitle { font-size: 1.25rem; font-weight: 600; color: var(--secondary); margin-bottom: 1.5rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 600px; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 36px; border-radius: 12px; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.btn-primary { background: var(--gradient-btn); color: white; box-shadow: 0 10px 20px -5px rgba(236, 72, 153, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.6); }

/* --- 手机演示 & POV 文本 --- */
.hero-visual { display: flex; justify-content: center; position: relative; }
.phone-mockup { width: 340px; height: 680px; background: #0f172a; border-radius: 55px; border: 10px solid #334155; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(0, 0, 0, 0.5); position: relative; z-index: 10; overflow: hidden; animation: phoneShake 0.5s ease-in-out infinite alternate; will-change: transform; }
.phone-mockup::before { content: ''; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 100px; height: 25px; background: #000; border-radius: 20px; z-index: 20; }
.phone-screen { width: 100%; height: 100%; background: #000; position: relative; display: flex; flex-direction: column; }
.pov-viewport { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; perspective: 1000px; }
.pov-text { font-family: 'Impact', sans-serif; font-size: 18rem; line-height: 1; white-space: nowrap; text-transform: uppercase; transform-origin: center; animation: textSuspended 0.5s ease-in-out infinite alternate; will-change: transform; transition: opacity 0.3s ease-in-out; }
.screen-hint { position: absolute; bottom: 30px; width: 100%; text-align: center; color: rgba(255, 255, 255, 0.3); font-size: 0.8rem; pointer-events: none; }

@keyframes phoneShake { 0% { transform: translateY(0) translateX(-40%) rotate(-2deg); } 100% { transform: translateY(0) translateX(40%) rotate(2deg); } }
@keyframes textSuspended { 0% { transform: translateX(40%) rotate(2deg); } 100% { transform: translateX(-40%) rotate(-2deg); } }

/* --- 通用 Section --- */
.section { padding: 80px 0; position: relative; }
.section-alt { background: var(--bg-section-alt); padding: 100px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

/* --- 核心特性 (新 Grid 布局) --- */
.feature-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 2.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 3rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }

.feature-card { background: var(--bg-card); padding: 2rem; border-radius: 20px; border: 1px solid var(--border-color); text-align: center; transition: all 0.3s ease; backdrop-filter: blur(10px); }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--primary); }
.feature-card .icon-box { width: 60px; height: 60px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem auto; font-size: 1.5rem; color: var(--primary); }
.feature-card h3 { font-size: 1.1rem; color: var(--text-main); font-weight: 600; margin-bottom: 0.5rem; }

/* --- 下载区域 (新 Flex 布局) --- */
.download-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 30px; padding: 4rem; display: flex; align-items: center; justify-content: center; gap: 4rem; box-shadow: var(--shadow); position: relative; overflow: hidden; margin: 0 auto; }
.download-box::before { content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: var(--secondary); filter: blur(80px); opacity: 0.1; pointer-events: none; }
.qr-area { background: #fff; padding: 15px; border-radius: 16px; min-width: 180px; }
.qr-label { display: block; text-align: center; margin-top: 10px; font-size: 0.8rem; color: #000; font-weight: 600; text-transform: uppercase; opacity: 0.6; }
.download-content { max-width: 450px; }
.download-content h2 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 800; }
.download-content p { font-size: 1.1rem; margin-bottom: 2rem; color: var(--text-muted); }

/* --- 动态 JS 样式 (已迁移至 CSS) --- */
/* 粒子特效 */
.particles-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; z-index: 0; }
.particle { position: absolute; background: var(--primary); border-radius: 50%; animation-name: floatUp; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes floatUp { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 50% { opacity: 0.5; } 100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; } }

/* 主题切换按钮 */
.theme-toggle { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%; background: var(--primary); color: white; border: none; cursor: pointer; z-index: 99; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: transform 0.3s ease; }
.theme-toggle:hover { transform: scale(1.1) rotate(15deg); }

/* --- 页脚 --- */
.footer { background: var(--bg-body); padding: 40px 0; border-top: 1px solid var(--border-color); }
.footer-container { max-width: 1200px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 15px; }
.footer-info p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: var(--primary); }

/* --- 语言切换器 --- */
.lang-dropdown-container { position: relative; margin-left: 20px; }
.lang-toggle-btn { padding: 5px 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--text-main); cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.lang-dropdown-list { position: absolute; top: 100%; right: 0; list-style: none; background: var(--bg-nav); backdrop-filter: blur(8px); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: var(--shadow); padding: 5px 0; min-width: 120px; z-index: 2000; display: none; }
.lang-dropdown-list.active { display: block; }
.lang-dropdown-list li { padding: 8px 15px; cursor: pointer; color: var(--text-main); font-size: 0.95rem; }
.lang-dropdown-list li:hover { background: var(--border-color); color: var(--primary); }

/* --- 响应式适配 --- */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .hero-container { grid-template-columns: 1fr; text-align: center; padding-top: 20px; }
    .hero-visual { margin-top: 50px; transform: scale(0.9); }
    .hero-desc { margin-left: auto; margin-right: auto; }

    .nav-menu { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background: var(--bg-nav); flex-direction: column; padding: 30px 20px; align-items: flex-start; gap: 15px; transition: left 0.3s ease; }
    .nav-menu.active { left: 0; }
    .nav-menu li { width: 100%; }

    /* 修正特性和下载区 */
    .download-box { flex-direction: column; padding: 2.5rem; text-align: center; gap: 2rem; }
    .download-content h2 { font-size: 2rem; }
    .lang-dropdown-container { margin: 20px 0 0 0; }
    .lang-dropdown-list { left: 0; right: auto; }
}

/* RTL 模式 */
body.rtl-mode { direction: rtl; text-align: right; }
body.rtl-mode .nav-container, body.rtl-mode .hero-container, body.rtl-mode .download-box { flex-direction: row-reverse; }
body.rtl-mode .feature-card { text-align: right; }
@media (max-width: 900px) {
    body.rtl-mode .download-box { flex-direction: column; }
    body.rtl-mode .nav-menu { left: auto; right: -100%; align-items: flex-end; }
    body.rtl-mode .nav-menu.active { right: 0; }
}

/* =========================================
   5. 文字特效引擎 (恢复丢失的特效)
   ========================================= */

/* 基础特效类 - 霓虹 */
.fx-neon {
    color: transparent;
    -webkit-text-stroke: 6px #fff;
    text-shadow: 0 0 10px #fff, 0 0 25px #ec4899, 0 0 50px #ec4899, 0 0 100px #ec4899;
}

/* 赛博朋克 */
.fx-cyber {
    color: #0f0;
    text-shadow: 2px 0 #fff, -2px 0 #fff, 0 0 20px #0f0, 0 0 40px #0f0;
    letter-spacing: 5px;
}

/* 火焰粒子 */
.fx-fire {
    background: linear-gradient(to bottom, #fef08a 0%, #f97316 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    filter: blur(0.5px);
    text-shadow: 0 -10px 20px rgba(249, 115, 22, 0.6);
}

/* 彩虹流动 */
.fx-rainbow {
    background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    animation: textSuspended 0.5s ease-in-out infinite alternate, rainbowBg 2s linear infinite;
}
@keyframes rainbowBg {
    0% { background-position: 0%; }
    100% { background-position: 200%; }
}

/* 故障风 (Glitch) */
.fx-glitch {
    color: #f0f;
    text-shadow: 4px 0 #0ff, -4px 0 #ff0, 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px #f0f;
    animation: textSuspended 0.5s ease-in-out infinite alternate;
    /* 如果您有 glitchShift 动画定义在 animations.css，可以加上: , glitchShift 0.1s steps(2) infinite */
}

/* 冰霜效果 */
.fx-icicles {
    background: linear-gradient(to top, #67e8f9 0%, #ffffff 70%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.8px #a5f3fc;
    filter: drop-shadow(0 0 6px #0ea5e9);
    text-shadow: 0 0 8px #a5f3fc, 0 -10px 4px #0e7490, 2px -15px 6px #06b6d4;
    animation: textSuspended 0.5s ease-in-out infinite alternate, iceShimmer 2s ease-in-out infinite alternate;
}
@keyframes iceShimmer {
    0% { filter: drop-shadow(0 0 6px #0ea5e9); }
    50% { filter: drop-shadow(0 0 10px #38bdf8); }
    100% { filter: drop-shadow(0 0 6px #0ea5e9); }
}

/* 轮廓线 */
.fx-outline {
    color: transparent;
    -webkit-text-stroke: 4px var(--primary);
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px rgba(255, 255, 255, 0.4);
}

/* 金属质感 */
.fx-metallic {
    background: linear-gradient(to right, #a8a8a8 0%, #ffffff 20%, #888888 40%, #cccccc 60%, #a8a8a8 80%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #333;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}

/* 蒸汽波 (Vaporwave) */
.fx-vaporwave {
    background: linear-gradient(45deg, #ff00ff 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 3px #fff;
    text-shadow: -5px 5px 0 #f0f, 5px -5px 0 #0ff;
}

/* 燃烧边缘 (默认特效) */
.fx-burning-edge {
    background: linear-gradient(to bottom, #fef08a 10%, #f97316 60%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #fff;
    text-shadow: 0 -10px 10px #f97316, 0 -20px 20px #ef4444;
    filter: blur(0.5px) contrast(2.0);
    animation: textSuspended 0.5s ease-in-out infinite alternate, burningFlicker 1.0s ease-in-out infinite alternate;
}
@keyframes burningFlicker {
    0% { text-shadow: 0 -10px 8px #f97316, 0 -20px 18px #ef4444; filter: blur(0.4px); }
    50% { text-shadow: 0 -12px 12px #ffff00, 0 -25px 25px #dc2626; filter: blur(0.7px); }
    100% { text-shadow: 0 -10px 8px #f97316, 0 -20px 18px #ef4444; filter: blur(0.4px); }
}