/* ==========================================================================
   飞鱼加速 - Xingchi VPN 风格现代响应式样式表
   ========================================================================== */

:root {
    --primary: #33c681;
    --primary-hover: #2bb374;
    --primary-light: #e8f8f0;
    --nav-btn-bg: #06332c;
    --nav-btn-hover: #0a473e;
    --text-black: #000000;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --bg-btn-inactive: #f4f6f8;
    --bg-btn-inactive-hover: #eaeff2;
    --bg-footer: #f6f6f6;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
    --map-scale: 7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    background: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header 导航栏 (关于我们 | 服务条款 | 隐私政策 | [立即下载])
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-black);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.brand-sub {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-btn-download {
    background-color: var(--nav-btn-bg);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 26px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(6, 51, 44, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-btn-download:hover {
    background-color: var(--nav-btn-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(6, 51, 44, 0.35);
}

.mobile-menu-btn {
    display: none;
    padding: 8px;
    color: var(--text-black);
    font-size: 22px;
    cursor: pointer;
}

/* ==========================================================================
   Hero 主屏区域 (PC端双栏 + 特性标签 + 平台下载按钮组)
   ========================================================================== */
.hero-section {
    padding: 50px 0 70px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfb 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: clamp(2.3rem, 4.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.18;
    color: #000000;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.badge-text {
    font-size: 19px;
    font-weight: 700;
    color: #000000;
}

/* 平台下载按钮组 (完美还原: 激活项绿色长胶囊 + 未激活项纯圆图标按钮，同一排无换行) */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    width: 100%;
    max-width: 520px;
}

.platform-btn {
    height: 56px;
    width: 56px;
    border-radius: 50%;
    background-color: var(--bg-btn-inactive);
    color: #000000;
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.platform-btn:hover {
    background-color: var(--bg-btn-inactive-hover);
    transform: translateY(-2px);
}

.platform-btn.active {
    width: auto;
    padding: 0 28px;
    border-radius: 9999px;
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(51, 198, 129, 0.35);
    flex-shrink: 0;
}

.platform-btn.active:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(51, 198, 129, 0.45);
}

.platform-btn .platform-icon {
    width: 28px;
    height: 28px;
    display: block;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.platform-btn.active .platform-icon {
    width: 24px;
    height: 24px;
}

.platform-btn .btn-label {
    display: none;
    font-size: 17px;
    font-weight: 700;
    margin-left: 10px;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.platform-btn.active .btn-label {
    display: inline;
}

/* Hero 右侧 Mockup 视觉展示 */
.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-wrap, .mockup-pc-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.08));
    animation: floatHero 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hero-feiyu-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.mockup-pc-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.mockup-phone-wrap {
    position: absolute;
    bottom: -15px;
    left: -20px;
    width: 27%;
    max-width: 160px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
}

.mockup-phone-img {
    width: 100%;
    height: auto;
}

@keyframes floatHero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ==========================================================================
   Section 1: 为什么选择飞鱼加速？ (6张优势卡片)
   ========================================================================== */
.features-section {
    padding: 90px 0;
    background: #ffffff;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 16px;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.feature-body {
    flex: 1;
}

.feature-title {
    font-size: 21px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ==========================================================================
   Section 2: 飞鱼的基础设施 (全球节点动效地图)
   ========================================================================== */
.infrastructure-section {
    padding: 90px 0 60px;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.server-map-wrapper {
    position: relative;
    width: 100%;
    margin: 40px auto 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.server-map {
    height: calc(91.1 * var(--map-scale) * 1px);
    width: calc(173.2 * var(--map-scale) * 1px);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    position: relative;
    background-image: url('../img/map.jpg');
}

.server__point {
    cursor: pointer;
    position: absolute;
    z-index: 10;
}

.server__point-wave {
    width: calc(0.5 * var(--map-scale) * 1px);
    height: calc(0.5 * var(--map-scale) * 1px);
    left: calc(-0.25 * var(--map-scale) * 1px);
    top: calc(-0.25 * var(--map-scale) * 1px);
    border: 1px solid rgba(51, 198, 129, 0.88);
    border-radius: 50%;
    position: absolute;
    pointer-events: none;
}

.server__point-wave0 {
    animation: 3s linear infinite waveAnimation;
}

.server__point-wave1 {
    animation: 3s linear 1s infinite waveAnimation;
}

.server__point-wave3 {
    animation: 3s linear 2s infinite waveAnimation;
}

.server__point-value {
    width: calc(var(--map-scale) * 1px);
    height: calc(var(--map-scale) * 1px);
    left: calc(-0.5 * var(--map-scale) * 1px);
    top: calc(-0.5 * var(--map-scale) * 1px);
    background: var(--primary);
    border-radius: 50%;
    animation: 1s linear infinite pulseAnimation;
    position: absolute;
    box-shadow: 0 0 8px rgba(51, 198, 129, 0.8);
}

@keyframes waveAnimation {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(3); }
    to { opacity: 0; transform: scale(5); }
}

@keyframes pulseAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    to { transform: scale(1); }
}

/* ==========================================================================
   Section 3: 立即免费试用 (全平台下载卡片矩阵)
   ========================================================================== */
.download-matrix-section {
    padding: 70px 0 100px;
    background: #ffffff;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.matrix-card {
    padding: 24px 20px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 1px solid #eef2f6;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.25s ease;
}

.matrix-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(51, 198, 129, 0.15);
}

.matrix-card.highlight {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(51, 198, 129, 0.3);
}

.matrix-card.highlight:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.matrix-card .platform-icon {
    width: 42px;
    height: 42px;
    display: block;
    fill: currentColor;
    margin: 0 auto;
}

.matrix-card .card-title {
    font-size: 18px;
    font-weight: 700;
}

.matrix-card .card-sub {
    font-size: 13px;
    opacity: 0.8;
}

/* ==========================================================================
   Footer 底部版权与协议链接
   ========================================================================== */
.site-footer {
    background: var(--bg-footer);
    color: #475569;
    padding: 70px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-logo-img {
    height: 34px;
    width: auto;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-black);
}

.footer-slogan {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-black);
}

.footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}

.footer-col-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* ==========================================================================
   弹窗组件 (关于我们, 服务条款, 隐私政策, iOS教程)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #ffffff;
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--text-black);
    background: #f1f5f9;
}

.modal h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-black);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 12px;
}

.modal p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 14px;
    text-align: justify;
}

.modal-btn-primary {
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-top: 22px;
    box-shadow: 0 4px 14px rgba(51, 198, 129, 0.3);
    cursor: pointer;
}

.modal-btn-primary:hover {
    background: var(--primary-hover);
}

/* ==========================================================================
   移动端与响应式适配
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 36px;
    }
    .features-grid {
        gap: 30px 40px;
    }
    .matrix-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }
    .header-nav .nav-link {
        display: none;
    }
    .nav-btn-download {
        padding: 7px 18px;
        font-size: 13.5px;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-section {
        padding: 30px 0 50px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual {
        order: -1;
    }
    .mockup-wrap, .mockup-pc-wrap {
        max-width: 440px;
        margin: 0 auto;
    }
    .mockup-phone-wrap {
        left: -10px;
        bottom: -10px;
    }
    .hero-title {
        text-align: center;
        margin-bottom: 18px;
    }
    .hero-badges {
        justify-content: center;
        gap: 16px;
        margin-bottom: 28px;
    }
    .badge-text {
        font-size: 16px;
    }
    .hero-actions {
        margin: 10px auto 0;
        justify-content: center;
        gap: 12px;
    }
    .platform-btn {
        height: 50px;
        width: 50px;
    }
    .platform-btn.active {
        padding: 0 20px;
    }
    .platform-btn .platform-icon {
        width: 24px;
        height: 24px;
    }
    .platform-btn.active .platform-icon {
        width: 22px;
        height: 22px;
    }
    .platform-btn .btn-label {
        font-size: 15px;
    }
    .features-section {
        padding: 60px 0;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .feature-card {
        padding: 10px 0;
    }
    .feature-icon-wrap {
        width: 60px;
        height: 60px;
    }
    .feature-icon-img {
        width: 56px;
        height: 56px;
    }
    .feature-title {
        font-size: 18px;
    }
    .feature-desc {
        font-size: 14px;
    }
    .infrastructure-section {
        padding: 60px 0 40px;
    }
    .download-matrix-section {
        padding: 50px 0 70px;
    }
    .matrix-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .matrix-card {
        padding: 18px 12px;
    }
    .matrix-card .card-title {
        font-size: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 440px) {
    .hero-actions {
        gap: 8px;
    }
    .platform-btn {
        height: 46px;
        width: 46px;
    }
    .platform-btn.active {
        padding: 0 16px;
    }
    .platform-btn .platform-icon {
        width: 22px;
        height: 22px;
    }
    .platform-btn.active .platform-icon {
        width: 20px;
        height: 20px;
    }
    .platform-btn .btn-label {
        font-size: 14px;
        margin-left: 6px;
    }
}
