/* 流量光 Custom CSS - Premium Cyber/Neon aesthetics */

:root {
    --primary: #00ffcc;
    --primary-alt: #00b38f;
    --secondary: #ff00cc;
    --accent: #7000ff;
    --bg-dark: #03000f;
    --bg-card: rgba(15, 10, 30, 0.4);
    --text-light: #ffffff;
    --text-dim: #aeb4c0;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(0, 255, 204, 0.2);
    /* Legacy variables for articles */
    --card-bg: var(--bg-card);
    --border-color: var(--glass-border);
    --accent-cyan: var(--primary);
    --text-muted: var(--text-dim);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.65;
    overflow-x: hidden;
}

/* Background Atmosphere */
.bg-glow {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: 
        radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 204, 0.1), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 204, 0.05), transparent 60%);
    z-index: -1;
    animation: bgPulse 12s ease-in-out infinite alternate;
}

.bg-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(rgba(0, 255, 204, 0.1) 1px, transparent 1px),
        radial-gradient(rgba(255, 0, 204, 0.08) 1.5px, transparent 1.5px);
    background-size: 80px 80px, 150px 150px;
    background-position: 0 0, 0 0;
    animation: particleAnimation 90s linear infinite;
    opacity: 0.6;
}

@keyframes particleAnimation {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 800px 800px, -750px 750px; }
}

@keyframes bgPulse {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.8; transform: scale(1); }
}

.bg-canvas {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    position: sticky;
    top: 0;
    background: rgba(3, 0, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo a {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: 1.5px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 204, 0.4));
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .nav-cta {
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: #fff;
    margin-left: 2.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-links .nav-cta::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}

.nav-links .nav-cta:hover::after {
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 5% 4rem;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(0, 255, 204, 0.2));
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 800px;
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.cta-button {
    padding: 1.1rem 2.8rem;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    background: linear-gradient(90deg, var(--primary), var(--primary-alt));
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.6);
}

.secondary-btn {
    background: rgba(255,255,255,0.03);
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Base Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: #fff;
    background: linear-gradient(90deg, #fff, var(--text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 2.5rem;
}

/* Feature Cards */
.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: all 0.6s;
}

.card:hover::before {
    left: 200%;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(25, 15, 45, 0.5);
    border-color: rgba(0, 255, 204, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 204, 0.1);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0,255,204,0.3));
    display: inline-block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.card p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
}

/* Pricing Grid */
.pricing-section {
    background: linear-gradient(180deg, transparent, rgba(112, 0, 255, 0.05), transparent);
}

/* Pricing Table override for the WOW feeling */
.pricing-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.pricing-table {
    width: 100%;
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
}

.pricing-table th, .pricing-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.pricing-table th {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-table td {
    color: var(--text-light);
    font-size: 1.15rem;
    transition: background 0.3s;
}

.pricing-table tbody tr {
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.pricing-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: scale(1.01);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-radius: 12px;
}

.pricing-table tbody tr:hover td {
    border-bottom-color: transparent;
}
.pricing-table tbody tr:hover td:first-child {
    border-top-left-radius: 12px; border-bottom-left-radius: 12px;
}
.pricing-table tbody tr:hover td:last-child {
    border-top-right-radius: 12px; border-bottom-right-radius: 12px;
}

.pricing-table strong {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
}

/* Nodes Section */
.node-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.8rem;
}
.node-card {
    background: rgba(20, 15, 35, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
}
.node-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(255, 0, 204, 0.15);
    transform: translateY(-5px);
}
.node-flag { font-size: 2.5rem; margin-bottom: 1rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); }
.node-name { font-size: 1.1rem; margin-bottom: 1rem; font-weight: 700; color: #fff; }
.latency {
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
}
.latency.low { color: #00ffcc; background: rgba(0, 255, 204, 0.1); border: 1px solid rgba(0, 255, 204, 0.3); }
.latency.mid { color: #ffae00; background: rgba(255, 174, 0, 0.1); border: 1px solid rgba(255, 174, 0, 0.3); }
.latency.high { color: #ff0055; background: rgba(255, 0, 85, 0.1); border: 1px solid rgba(255, 0, 85, 0.3); }

/* Knowledge Base */
.knowledge-section {
    background: rgba(3, 0, 15, 0.95);
}
.kb-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}
.kb-card {
    padding: 2.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.kb-card:hover { 
    border-color: var(--primary); 
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 255, 204, 0.1);
}
.kb-card h3 { margin-bottom: 1.2rem; font-size: 1.4rem; line-height: 1.5; }
.kb-card a { color: #fff; text-decoration: none; transition: color 0.2s;}
.kb-card h3 a:hover { color: var(--primary); }
.kb-card p { color: var(--text-dim); margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.6; }
.kb-link { 
    color: var(--primary)!important; 
    font-weight: 700; 
    display: inline-flex;
    align-items: center;
}
.kb-link:hover {
    text-shadow: 0 0 10px rgba(0,255,204,0.5);
}

/* FAQ Section */
.faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}
.faq-card {
    padding: 2.5rem;
}
.faq-card h3 { 
    font-size: 1.3rem; 
    color: var(--secondary); 
    margin-bottom: 1rem; 
    line-height: 1.4;
    text-shadow: 0 0 15px rgba(255,0,204,0.3);
}
.faq-card p { color: var(--text-dim); line-height: 1.7; font-size: 1rem; }

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 5rem 0 3rem;
    background: #010005;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.8rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-brand p { color: var(--text-dim); font-size: 1.1rem; }
.copyright {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2.5rem;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-actions { flex-direction: column; width: 100%; padding: 0 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2.2rem; }
    .pricing-table-wrapper { padding: 1rem; }
}
