/* ==================== 闪连VPN - 橙色暖色调主题 ==================== */

:root {
    /* 主色系 */
    --primary: #F5A623;
    --primary-dark: #E09400;
    --primary-light: #FFB74D;
    --primary-gradient: linear-gradient(135deg, #FF9500, #F5A623);
    --primary-gradient-hover: linear-gradient(135deg, #F5A623, #FF9500);

    /* 信任色 */
    --trust: #4CD964;
    --trust-dark: #34C759;

    /* 背景色 */
    --bg-warm: #FFFBF5;
    --bg-white: #FFFFFF;
    --bg-light: #FFF8F0;
    --bg-card: #FFFFFF;
    --bg-footer: #1A1A1A;

    /* 文字 */
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #B0B0B0;
    --text-white: #FFFFFF;

    /* 边框 */
    --border: #E8E8E8;
    --border-light: #F0F0F0;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 32px rgba(245, 166, 35, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 60px rgba(245, 166, 35, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-pill: 100px;

    /* 布局 */
    --container-max: 1200px;
    --nav-height: 64px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: var(--bg-warm);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== Navbar ==================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
    background: rgba(255, 251, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    flex-shrink: 0;
}
.nav-logo img { width: 32px; height: 32px; }

.nav-menu {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}
.nav-menu a {
    padding: 8px 16px;
    font-size: 0.95rem;
    color: #4A4A4A;
    border-radius: var(--radius-pill);
    transition: all 0.2s;
}
.nav-menu a:hover { color: var(--primary); }
.nav-menu a.active { color: var(--primary); font-weight: 600; }

.nav-cta { display: flex; gap: 12px; align-items: center; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary-gradient);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
}
.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 166, 35, 0.45);
}
.btn-outline {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ==================== Hero ==================== */
.hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
    background: var(--bg-warm);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08), transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -200px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(76, 217, 100, 0.06), transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
}
.hero-list {
    margin-bottom: 32px;
}
.hero-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.check-icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    background: var(--trust);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    margin-top: 2px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.hero-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--trust-dark);
    font-weight: 500;
}
.hero-trust .check-icon { width: 18px; height: 18px; font-size: 11px; }

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-visual img {
    max-width: 440px;
    width: 100%;
    filter: drop-shadow(0 20px 60px rgba(245, 166, 35, 0.15));
    animation: floatUp 4s ease-in-out infinite;
}
@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ==================== Trust Bar ==================== */
.trust-bar {
    padding: 20px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.trust-logos {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.trust-logos span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==================== Sections ==================== */
.section {
    padding: 80px 0;
}
.section:nth-child(even) { background: var(--bg-white); }
.section:nth-child(odd) { background: var(--bg-warm); }

.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.section-title p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary);
}

/* ==================== Features ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(245, 166, 35, 0.2);
}
.feature-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(255, 149, 0, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== Download ==================== */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.download-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.download-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(245, 166, 35, 0.2);
}
.download-card .icon {
    font-size: 40px;
    margin-bottom: 16px;
}
.download-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.download-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ==================== FAQ ==================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s;
}
.faq-item.active { box-shadow: var(--shadow-card); }
.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}
.faq-question .icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
    flex-shrink: 0;
}
.faq-item.active .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}
.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--bg-footer);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .nav-logo {
    color: #fff;
    margin-bottom: 16px;
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

/* ==================== Page Header (inner pages) ==================== */
.page-header, .page-hero {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 40px;
    text-align: center;
    background: var(--bg-warm);
}
.page-header h1, .page-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.page-header p, .page-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--primary); }

/* ==================== About ==================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}
.value-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.value-item .icon {
    font-size: 28px;
}
.value-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.value-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-visual img {
    max-width: 400px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.about-stat {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.about-stat .num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}
.about-stat .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==================== Contact ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.contact-info .contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.contact-info .contact-item .icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: rgba(245, 166, 35, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-warm);
    transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* ==================== 404 ==================== */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
}
.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.error-page p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 16px 0 32px;
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ==================== Table ==================== */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
th {
    background: rgba(245, 166, 35, 0.08);
    padding: 18px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    border-bottom: 2px solid var(--border);
}
td {
    padding: 14px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}
tr:last-child td {
    border-bottom: none;
}
tr:hover td {
    background: rgba(245, 166, 35, 0.04);
}

/* ==================== Responsive ==================== */
@media (max-width: 968px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { order: -1; margin-bottom: 20px; }
    .hero-content { text-align: center; }
    .hero-list { display: inline-block; text-align: left; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--bg-warm);
        padding: 16px;
        gap: 0;
        box-shadow: var(--shadow-md);
    }
    .nav-menu.active a {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-light);
        border-radius: 0;
    }
    .hero-content h1 { font-size: 1.8rem; }
    .section { padding: 60px 0; }
    .section-title h2 { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .about-stats { grid-template-columns: 1fr; }
}
