:root {
    /* 颜色变量 - 科技感配色方案 */
    --color-bg-base: #05050A;
    --color-primary: #00F0FF; /* 霓虹蓝 */
    --color-secondary: #7000FF; /* 霓虹紫 */
    --color-text-main: #FFFFFF;
    --color-text-muted: #8A93A6;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.08);
    --border-glow: 0 0 15px rgba(0, 240, 255, 0.5);
    
    /* 字体 */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-tech: 'Orbitron', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* 全局背景图 */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0.4;
    transition: transform 0.1s ease-out;
}

/* 背景渐变遮罩 */
.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--color-bg-base) 100%);
    z-index: -1;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 100;
    background: rgba(5, 5, 10, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 5%;
    background: rgba(5, 5, 10, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--font-tech);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 2px;
}

.logo-icon {
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: var(--border-glow);
    animation: pulse 2s infinite;
}

.logo-en {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 400;
}

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

.nav-links a {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
    box-shadow: var(--border-glow);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

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

/* 按钮样式 */
.btn-primary, .btn-primary-sm, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-main);
    gap: 10px;
}

.btn-primary-sm {
    padding: 8px 20px;
    font-size: 14px;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0), 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-primary-sm:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.3), 0 0 20px rgba(0, 240, 255, 0.4);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

.btn-primary {
    padding: 15px 35px;
    font-size: 16px;
    background: linear-gradient(45deg, var(--color-primary), #00a2ff);
    color: #000;
    border: none;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

.btn-primary.large {
    font-size: 18px;
    padding: 18px 45px;
}

.btn-secondary {
    padding: 15px 35px;
    font-size: 16px;
    background: var(--color-surface);
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 文本高亮 */
.text-highlight {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 首屏 Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    font-family: var(--font-main);
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
}

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

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--color-primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 83px, 0); }
    20% { clip: rect(62px, 9999px, 14px, 0); }
    40% { clip: rect(98px, 9999px, 35px, 0); }
    60% { clip: rect(15px, 9999px, 93px, 0); }
    80% { clip: rect(54px, 9999px, 7px, 0); }
    100% { clip: rect(32px, 9999px, 56px, 0); }
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 2px;
    box-shadow: var(--border-glow);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* 功能区域 */
.features-section {
    padding: 120px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 80px;
    font-family: var(--font-tech);
}

.feature-container {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.reverse {
    flex-direction: row-reverse;
}

.feature-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 20px var(--color-bg-base);
    z-index: 2;
    pointer-events: none;
}

.feature-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-img {
    transform: scale(1.05);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, transparent, var(--color-primary), transparent);
    z-index: 3;
    opacity: 0.5;
    animation: scan 4s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { top: -10%; }
    100% { top: 110%; }
}

.feature-text {
    flex: 1;
}

.feature-icon {
    font-family: var(--font-tech);
    font-size: 4rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 240, 255, 0.3);
    margin-bottom: 20px;
    font-weight: 900;
}

.feature-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* 下载区域 */
.cta-section {
    padding: 100px 5%;
    position: relative;
    z-index: 10;
}

.cta-box {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 240, 255, 0.05) 100%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(10px);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.version-info {
    font-size: 0.9rem !important;
    margin-top: 20px;
    margin-bottom: 0 !important;
    opacity: 0.6;
}

/* 页脚 */
footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    background: var(--color-bg-base);
    position: relative;
    z-index: 10;
}

/* 脉冲动画 */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-title { font-size: 4rem; }
    .feature-card, .feature-card.reverse { flex-direction: column; text-align: center; gap: 40px; }
    .feature-text { order: 2; }
    .feature-image-wrapper { order: 1; width: 100%; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .nav-links { display: none; }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; }
    .section-title { font-size: 2.5rem; }
}
