/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; 
    background: #0b0f19; 
    color: #e2e8f0; 
    line-height: 1.6; 
    min-height: 100vh; 
    overflow-x: hidden; 
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Particle Theme Variables */
:root {
    --pt-bg: #0b0f19;
    --pt-card: rgba(15, 23, 42, 0.7);
    --pt-cyan: #00f2fe;
    --pt-blue: #4facfe;
    --pt-text: #f8fafc;
    --pt-muted: #94a3b8;
    --pt-border: rgba(0, 242, 254, 0.2);
}

/* Navigation */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5%; 
    background: rgba(11, 15, 25, 0.85); 
    border-bottom: 1px solid var(--pt-border); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    backdrop-filter: blur(2px);
}
.nav-logo { 
    font-size: 26px; 
    font-weight: 900; 
    color: var(--pt-cyan); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}
.nav-links { display: flex; gap: 30px; align-items: center; font-weight: bold; }
.nav-links a { 
    font-size: 16px; 
    transition: all 0.3s; 
    color: var(--pt-text); 
}
.nav-links a:hover { 
    color: var(--pt-cyan); 
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}
.btn-download-nav { 
    padding: 8px 24px; 
    background: linear-gradient(135deg, var(--pt-blue), var(--pt-cyan));
    border-radius: 30px; 
    color: #fff !important; 
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3); 
    transition: all 0.3s; 
    border: none;
}
.btn-download-nav:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5); 
}

/* Hero Section */
.hero { 
    position: relative; 
    padding: 100px 5% 60px; 
    text-align: center; 
    min-height: 90vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden;
}
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content { z-index: 3; max-width: 900px; margin: 0 auto; position: relative; }
.hero h1 { 
    font-size: 52px; 
    margin-bottom: 20px; 
    color: #fff; 
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.6); 
    line-height: 1.3; 
    letter-spacing: 1px;
}
.hero p { 
    font-size: 20px; 
    margin-bottom: 40px; 
    color: var(--pt-muted); 
    font-weight: 400; 
}

.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-bottom: 50px; flex-wrap: wrap; }
.btn-pt { 
    padding: 15px 35px; 
    font-size: 18px; 
    font-weight: bold; 
    background: rgba(0, 242, 254, 0.1); 
    color: var(--pt-cyan); 
    border: 1px solid var(--pt-cyan);
    border-radius: 30px; 
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2); 
    transition: all 0.3s; 
    cursor: pointer; 
    backdrop-filter: blur(2px);
}
.btn-pt:hover { 
    background: var(--pt-cyan); 
    color: #0b0f19;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6); 
    transform: translateY(-3px);
}
.btn-pc { 
    background: linear-gradient(135deg, var(--pt-blue), var(--pt-cyan));
    color: #fff; 
    border: none;
}
.btn-pc:hover { 
    background: linear-gradient(135deg, #3bb2f6, #00d4ff);
    color: #fff;
}

.hero-images { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    z-index: 3; 
    align-items: flex-end; 
    position: relative;
}
.hero-images img { 
    max-width: 28%; 
    border-radius: 12px; 
    border: 1px solid var(--pt-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.1); 
    transition: transform 0.4s, box-shadow 0.4s; 
}
.hero-images img:hover { 
    transform: translateY(-15px) scale(1.02); 
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.3);
    border-color: var(--pt-cyan);
}

/* Features Section */
.features { padding: 100px 5%; background: #080b13; position: relative; }
.section-title { 
    text-align: center; 
    font-size: 38px; 
    margin-bottom: 60px; 
    color: #fff; 
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.feature-card { 
    background: var(--pt-card); 
    padding: 40px 30px; 
    border-radius: 16px; 
    border: 1px solid var(--pt-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    text-align: center; 
    backdrop-filter: blur(2px);
}
.feature-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--pt-cyan);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.15); 
}
.feature-card h3 { 
    font-size: 22px; 
    margin-bottom: 15px; 
    color: var(--pt-cyan); 
}
.feature-card p { color: var(--pt-muted); font-size: 15px; line-height: 1.7; }

/* Blog Section */
.blog { padding: 100px 5%; background: #0f172a; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 1100px; margin: 0 auto; }
.blog-card { 
    background: var(--pt-card); 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.4); 
    transition: all 0.3s; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    border: 1px solid var(--pt-border); 
}
.blog-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--pt-blue);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.2); 
}
.blog-card img { width: 100%; height: 260px; object-fit: cover; opacity: 0.9; transition: opacity 0.3s; }
.blog-card:hover img { opacity: 1; }
.blog-content { padding: 30px; }
.blog-date { display: inline-block; color: var(--pt-cyan); font-size: 14px; margin-bottom: 15px; }
.blog-content h3 { font-size: 22px; margin-bottom: 15px; color: #fff; }
.blog-content p { color: var(--pt-muted); margin-bottom: 0; }
.btn-more { 
    display: block; 
    width: 220px; 
    margin: 60px auto 0; 
    text-align: center; 
    padding: 14px; 
    background: transparent; 
    color: var(--pt-cyan); 
    border: 1px solid var(--pt-cyan); 
    border-radius: 30px; 
    font-weight: bold; 
    transition: all 0.3s; 
}
.btn-more:hover { 
    background: rgba(0, 242, 254, 0.1); 
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3); 
}

/* FAQ Section */
.faq { padding: 100px 5%; max-width: 900px; margin: 0 auto; background: #0b0f19; margin-bottom: 80px; }
.faq-item { 
    background: var(--pt-card); 
    margin-bottom: 20px; 
    border-radius: 12px; 
    padding: 25px 30px; 
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 4px solid var(--pt-blue); 
    transition: all 0.3s; 
}
.faq-item:hover { 
    background: rgba(30, 41, 59, 0.8);
    border-left-color: var(--pt-cyan);
    transform: translateX(5px); 
}
.faq-question { font-size: 18px; font-weight: bold; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.faq-question::before { content: 'Q:'; color: var(--pt-cyan); font-size: 22px; }
.faq-answer { color: var(--pt-muted); line-height: 1.8; font-size: 15px; padding-left: 32px; }

/* Footer */
.footer { background: #05070c; padding: 80px 5% 30px; color: #fff; border-top: 1px solid var(--pt-border); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto 50px; }
.footer-col h4 { font-size: 18px; color: #fff; margin-bottom: 25px; font-weight: bold; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--pt-muted); transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--pt-cyan); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); color: #64748b; font-size: 14px; }

/* Page specific headers */
.page-header { 
    padding: 140px 5% 80px; 
    text-align: center; 
    background: #0b0f19;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--pt-border);
}
.page-header h1 { 
    font-size: 42px; 
    color: #fff; 
    margin-bottom: 20px; 
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.5); 
    position: relative;
    z-index: 2;
}
.page-header p { color: var(--pt-muted); font-size: 18px; max-width: 600px; margin: 0 auto; position: relative; z-index: 2;}

/* Download Page Grid */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; max-width: 1100px; margin: 60px auto; padding: 0 5%; }
.download-card { 
    background: var(--pt-card); 
    border-radius: 16px; 
    padding: 40px 30px; 
    text-align: center; 
    border: 1px solid var(--pt-border);
    transition: all 0.3s; 
}
.download-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--pt-cyan);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.1); 
}
.download-card h3 { color: #fff; font-size: 24px; margin-bottom: 15px; }
.download-card p { color: var(--pt-muted); margin-bottom: 30px; font-size: 15px; }

/* === 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;
    }
}
