/* ============================================================
   QuickQ VPN - 官方完整样式表
   文件: css/style.css
   包含: 重置、全局变量、全新导航栏、Hero、核心功能、节点、
         价格方案、设备支持、FAQ、全新页脚及响应式处理
   ============================================================ */

/* ----- 1. CSS Reset & 全局基础 ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #090a10;
    color: #e2e8f0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 动态背景背景光晕效果 */
body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ----- 2. 全新原创导航栏 (Header / Navbar) ----- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    margin: 20px 0 30px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand-zone .brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-zone .brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.brand-zone .brand-icon i {
    color: #ffffff;
    font-size: 1.3rem;
}

.brand-zone .brand-text {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.brand-zone .brand-text span {
    color: #3b82f6;
    font-weight: 600;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.menu-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
}

.menu-link:hover,
.menu-link.active {
    color: #ffffff;
}

.menu-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.menu-link:hover::before,
.menu-link.active::before {
    width: 100%;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s;
}

.lang-selector:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-download-app {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ----- 3. HERO 首屏横幅 ----- */
.hero {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: none;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(37, 99, 235, 0.5);
}

.btn-ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: none;
}

.btn-ghost:hover {
    border-color: #3b82f6;
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

/* ----- 4. 通用 Section 标题 ----- */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
}

.section-title i {
    color: #3b82f6;
    margin-right: 10px;
}

.section-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

/* ----- 5. 核心优势卡片 ----- */
.features {
    padding: 50px 0 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 30px 24px;
    border-radius: 24px;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 2rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ----- 6. 全球节点分布 ----- */
.nodes-section {
    padding: 50px 0 30px;
}

.nodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.node-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 16px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.node-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    background: rgba(59, 130, 246, 0.03);
}

.node-card i {
    font-size: 2.2rem;
    color: #60a5fa;
    margin-bottom: 12px;
}

.node-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.node-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ----- 7. 价格与订阅套餐 ----- */
.pricing-section {
    padding: 50px 0 30px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px 24px;
    border-radius: 28px;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
}

.pricing-card.popular {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.1);
}

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 20px;
    border-radius: 20px;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
}

.period {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.pricing-card ul {
    list-style: none;
    margin: 10px 0 24px;
    flex: 1;
}

.pricing-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.pricing-card ul li i {
    color: #3b82f6;
}

.pricing-card .btn-primary {
    width: 100%;
    justify-content: center;
}

/* ----- 8. 多设备支持 ----- */
.device-section {
    padding: 40px 0 20px;
    text-align: center;
}

.device-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.device-section h2 i {
    color: #3b82f6;
    margin-right: 10px;
}

.device-section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 6px auto 24px;
}

.device-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.device-item i {
    font-size: 1.3rem;
    color: #3b82f6;
}

/* ----- 9. 常见问题 (FAQ) ----- */
.faq-section {
    padding: 50px 0 20px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
}

.faq-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h4 i {
    color: #3b82f6;
}

.faq-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ----- 10. 全新原创页脚 (Footer Area) ----- */
.app-footer {
    margin-top: 80px;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 18, 0.8);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.brand-col .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.brand-col .footer-brand i {
    color: #3b82f6;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-heading {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #3b82f6;
}

.footer-bottom-bar {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.social-channels {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.social-link:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-3px);
}

/* ----- 11. 响应式布局自适应 ----- */
@media (max-width: 1024px) {
    .feature-grid,
    .nodes-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .app-header {
        padding: 14px 20px;
    }
    .main-menu, .lang-selector {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.6rem;
    }
    .feature-grid,
    .nodes-grid,
    .pricing-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}