/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #050510; color: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Neon Theme */
:root {
    --neon-blue: #00f3ff;
    --neon-purple: #b026ff;
    --dark-bg: #050510;
    --card-bg: rgba(10, 10, 25, 0.8);
}

/* Navigation */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: rgba(5, 5, 16, 0.9); border-bottom: 1px solid rgba(0, 243, 255, 0.2); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(2px); }
.nav-logo { font-size: 24px; font-weight: bold; color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 16px; transition: color 0.3s; }
.nav-links a:hover { color: var(--neon-blue); text-shadow: 0 0 5px var(--neon-blue); }
.btn-download-nav { padding: 8px 20px; border: 1px solid var(--neon-blue); border-radius: 20px; color: var(--neon-blue); box-shadow: 0 0 10px rgba(0, 243, 255, 0.3) inset; transition: all 0.3s; font-weight: bold; }
.btn-download-nav:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 20px var(--neon-blue); }

/* Hero Section */
.hero { position: relative; padding: 100px 5%; text-align: center; overflow: hidden; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.circuit-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; background-image: linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px); background-size: 40px 40px; }
.circuit-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-content { z-index: 1; max-width: 800px; margin: 0 auto; position: relative; }
.hero h1 { font-size: 48px; margin-bottom: 20px; text-shadow: 0 0 15px rgba(0, 243, 255, 0.8); }
.hero p { font-size: 18px; margin-bottom: 40px; color: #ccc; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-bottom: 50px; flex-wrap: wrap; position: relative; z-index: 2; }
.btn-neon { padding: 15px 40px; font-size: 18px; font-weight: bold; border: 2px solid var(--neon-blue); border-radius: 30px; color: var(--neon-blue); background: rgba(0, 243, 255, 0.05); box-shadow: 0 0 15px rgba(0, 243, 255, 0.4) inset, 0 0 20px rgba(0, 243, 255, 0.2); transition: all 0.3s; }
.btn-neon:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 30px var(--neon-blue); }
.btn-pc { border-color: var(--neon-purple); color: var(--neon-purple); box-shadow: 0 0 15px rgba(176, 38, 255, 0.4) inset, 0 0 20px rgba(176, 38, 255, 0.2); background: rgba(176, 38, 255, 0.1); text-shadow: 0 0 5px var(--neon-purple); }
.btn-pc:hover { background: var(--neon-purple); color: #fff; box-shadow: 0 0 30px var(--neon-purple); }
.hero-images { display: flex; justify-content: center; gap: 20px; margin-top: 40px; z-index: 1; }
.hero-images img { max-width: 30%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2); border: 1px solid rgba(0, 243, 255, 0.3); object-fit: cover; }

/* Features Section */
.features { padding: 80px 5%; background: linear-gradient(180deg, var(--dark-bg) 0%, #0a0a1a 100%); }
.section-title { text-align: center; font-size: 36px; margin-bottom: 50px; color: var(--neon-blue); text-shadow: 0 0 10px rgba(0, 243, 255, 0.5); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.feature-card { background: var(--card-bg); padding: 30px; border-radius: 15px; border: 1px solid rgba(0, 243, 255, 0.1); transition: transform 0.3s, box-shadow 0.3s; text-align: center; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0, 243, 255, 0.2); border-color: var(--neon-blue); }
.feature-card h3 { font-size: 22px; margin-bottom: 15px; color: var(--neon-blue); }
.feature-card p { color: #aaa; font-size: 15px; }

/* Blog Section */
.blog { padding: 80px 5%; background: #0f101a; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.blog-card { background: var(--card-bg); border-radius: 15px; overflow: hidden; border: 1px solid rgba(0, 243, 255, 0.1); display: flex; flex-direction: column; transition: transform 0.3s; }
.blog-card:hover { transform: translateY(-5px); border-color: var(--neon-blue); box-shadow: 0 5px 15px rgba(0, 243, 255, 0.2); }
.blog-card img { width: 100%; height: 250px; object-fit: cover; }
.blog-content { padding: 25px; }
.blog-date { color: var(--neon-purple); font-size: 14px; margin-bottom: 10px; display: block; }
.blog-content h3 { font-size: 20px; margin-bottom: 15px; }
.blog-content p { color: #aaa; margin-bottom: 20px; }
.btn-more { display: block; width: 200px; margin: 50px auto 0; text-align: center; padding: 12px; border: 1px solid var(--neon-blue); border-radius: 25px; color: var(--neon-blue); transition: all 0.3s; }
.btn-more:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 15px var(--neon-blue); }

/* FAQ Section */
.faq { padding: 80px 5%; max-width: 900px; margin: 0 auto; }
.faq-item { background: var(--card-bg); margin-bottom: 20px; border-radius: 10px; border: 1px solid rgba(0, 243, 255, 0.1); padding: 25px; transition: border-color 0.3s; }
.faq-item:hover { border-color: var(--neon-blue); }
.faq-question { font-size: 18px; font-weight: bold; color: var(--neon-blue); margin-bottom: 15px; }
.faq-answer { color: #ccc; line-height: 1.8; }

/* Footer */
.footer { background: #030308; padding: 60px 5% 20px; border-top: 1px solid rgba(0, 243, 255, 0.2); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto 40px; }
.footer-col h4 { font-size: 18px; color: var(--neon-blue); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #aaa; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--neon-blue); text-shadow: 0 0 5px var(--neon-blue); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #666; font-size: 14px; }

/* Page specific headers */
.page-header { padding: 100px 5% 50px; text-align: center; background: linear-gradient(180deg, rgba(0, 243, 255, 0.1) 0%, var(--dark-bg) 100%); border-bottom: 1px solid rgba(0, 243, 255, 0.1); position: relative; overflow: hidden;}
.page-header h1 { font-size: 40px; color: var(--neon-blue); margin-bottom: 15px; text-shadow: 0 0 15px rgba(0, 243, 255, 0.6); position: relative; z-index: 1;}
.page-header p { color: #aaa; font-size: 18px; position: relative; z-index: 1;}

/* Download Page Grid */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1000px; margin: 50px auto; padding: 0 5%; }
.download-card { background: var(--card-bg); border: 1px solid rgba(0, 243, 255, 0.2); border-radius: 15px; padding: 40px 20px; text-align: center; transition: all 0.3s; }
.download-card:hover { transform: translateY(-10px); border-color: var(--neon-purple); box-shadow: 0 10px 20px rgba(176, 38, 255, 0.2); }
.download-card h3 { color: var(--neon-blue); font-size: 24px; margin-bottom: 15px; }
.download-card p { color: #aaa; margin-bottom: 25px; }
.download-card .btn-neon { display: inline-block; padding: 10px 30px; font-size: 16px; }

/* === perf: reduce motion & lower GPU cost === */
.feature-card,
.blog-card,
.hero-content,
.glass-panel,
.pearl-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.navbar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* perf: limit decorative infinite layers on mid/low-end devices */
@media (max-width: 768px) {
    .bubble:nth-child(n+3),
    .tiny-plane:nth-child(n+3),
    .bg-shard:nth-child(n+4),
    .orb:nth-child(n+2) {
        display: none !important;
    }
}
