/* ==========================================================================
   一分机场 官网全局样式表 (High-end Light Ocean Aesthetic: 浅色系海洋风)
   ========================================================================== */

:root {
    --bg-dark: #F0F7FF;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --bg-section-alt: rgba(224, 242, 254, 0.35);
    --accent-teal: #06B6D4;
    --accent-cyan: #0284C7;
    --accent-blue: #0369A1;
    --accent-purple: #3B82F6;
    --text-primary: #0C4A6E;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --border-light: rgba(14, 165, 233, 0.16);
    --border-hover: rgba(2, 132, 199, 0.4);
    --border-glow: rgba(6, 182, 212, 0.3);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow-sm: 0 2px 10px rgba(2, 132, 199, 0.04);
    --shadow-card: 0 10px 30px -5px rgba(2, 132, 199, 0.07), 0 4px 12px rgba(2, 132, 199, 0.03);
    --shadow-glow: 0 12px 35px rgba(6, 182, 212, 0.18);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Layout Elements */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Typography Helpers */
.section-title-wrap {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
}

.badge-tag .dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.25;
}

.gradient-text {
    background: linear-gradient(135deg, #0C4A6E 0%, var(--accent-cyan) 60%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(6, 182, 212, 0.5);
    background: linear-gradient(135deg, #0369A1 0%, #0891B2 100%);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #F0F7FF;
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* 1. Header Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
}

.site-header.scrolled {
    padding: 14px 0;
    background: rgba(240, 247, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 25px rgba(2, 132, 199, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 800;
}

.brand-logo .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.brand-logo .logo-badge {
    font-size: 0.75rem;
    padding: 3px 9px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--accent-cyan);
    border-radius: 6px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 2. Hero Section */
.hero-section {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* 3. Node Latency & Status Section */
.node-section {
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.node-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.node-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.node-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.node-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.node-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.node-flag {
    font-size: 2rem;
}

.node-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.node-type {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    margin-top: 4px;
    display: inline-block;
    font-weight: 600;
}

.node-status-wrap {
    text-align: right;
}

.node-ping-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    font-size: 0.875rem;
    color: #10B981;
    font-weight: 600;
}

.ping-dot {
    width: 10px;
    height: 10px;
    background-color: #10B981;
    border-radius: 50%;
    position: relative;
}

.ping-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    border: 2px solid #10B981;
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.latency-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

/* 4. Core Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
    opacity: 0;
    transition: var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-cyan);
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.975rem;
    line-height: 1.7;
}

/* 5. Pricing Packages Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-card);
}

.pricing-card.featured {
    border: 2px solid var(--accent-cyan);
    background: #FFFFFF;
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.18);
    transform: scale(1.02);
}

.featured-badge {
    position: absolute;
    top: -14px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.plan-price {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--accent-cyan);
    margin-bottom: 24px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.plan-features li i {
    color: var(--accent-cyan);
    font-weight: bold;
}

/* 6. Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-card);
}

.testimonial-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #FFFFFF;
    font-size: 1.2rem;
}

.user-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.user-quote {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 7. FAQ Section */
.faq-container {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 24px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.faq-icon {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    display: none;
    line-height: 1.7;
}

.faq-item.active {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* 8. Knowledge Base Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
}

.article-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    font-weight: 600;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-primary);
}

.article-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Footer */
.site-footer {
    background: #0C4A6E;
    border-top: 1px solid var(--border-light);
    padding: 80px 0 40px;
    color: #BAE6FD;
    font-size: 0.9rem;
}

.footer-brand .brand-logo {
    color: #FFFFFF;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    max-width: 340px;
    line-height: 1.7;
    color: #E0F2FE;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #E0F2FE;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: #38BDF8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 30px;
    text-align: center;
    color: #7DD3FC;
}

/* Responsive Rules */
@media (max-width: 992px) {
    .hero-title { font-size: 2.75rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .pricing-card.featured { transform: none; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(240, 247, 255, 0.98);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
    }
    .nav-links.active {
        transform: translateY(0);
    }
    .mobile-menu-toggle { display: block; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta-group { flex-direction: column; }
    .hero-stats { grid-template-columns: 1fr; }
}
