/* 
 * 极速云 (Jisuyun) - Core Design System
 * Focus: High Performance, Premium Aesthetics, Mobile-First
 */

:root {
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --secondary: #7000ff;
    --accent: #ff00c8;
    --bg-dark: #050a18;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --text-main: #e0e6ed;
    --text-dim: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Elements */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 30%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0, 242, 255, 0.1) 0%, transparent 40%);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

/* Hero Section */
.hero {
    padding: 6rem 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.runner-silhouette {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: var(--primary);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4v.01'/%3E%3Cpath d='M13 9v.01'/%3E%3Cpath d='M13 14v.01'/%3E%3Cpath d='M13 19v.01'/%3E%3Cpath d='M18 4v.01'/%3E%3Cpath d='M18 9v.01'/%3E%3Cpath d='M18 14v.01'/%3E%3Cpath d='M18 19v.01'/%3E%3Cpath d='M8 4v.01'/%3E%3Cpath d='M8 9v.01'/%3E%3Cpath d='M8 14v.01'/%3E%3Cpath d='M8 19v.01'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    animation: bounce 1s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

/* Custom Running SVG Placeholder */
.runner-box {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.runner-svg {
    width: 120px;
    height: 120px;
    fill: #fff;
    color: #fff;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    animation: run-motion 0.6s infinite linear;
}

.latency-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-family: monospace;
}

.node-name {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.ms-value {
    color: var(--primary);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ping-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.ping-dot.slow {
    background: #f59e0b;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(112, 0, 255, 0.4);
}

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

/* Features */
.features {
    padding: 8rem 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Pricing */
.pricing {
    padding: 8rem 0;
    background: rgba(112, 0, 255, 0.02);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.price-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.price-card.popular {
    border-color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-dim);
}

.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

/* FAQ */
.faq {
    padding: 8rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: #fff;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

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

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

@keyframes run-motion {
    0% { transform: translateX(-5px) rotate(-5deg); }
    50% { transform: translateX(5px) rotate(5deg); }
    100% { transform: translateX(-5px) rotate(-5deg); }
}

/* Responsive */
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.breadcrumb { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

@media (max-width: 1024px) {
    .hero-actions { justify-content: center; }
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-links {
        display: none; 
    }
}

/* ---------- 内页通用样式（about / terms / privacy / sitemap / 404） ---------- */
.content-page { padding: 4rem 0; min-height: 70vh; }
.content-page h1 { margin-bottom: 2rem; color: var(--primary); }
.content-page section { margin-bottom: 3rem; }
.content-page h2 { margin-bottom: 1rem; border-left: 4px solid var(--primary); padding-left: 1rem; }
.content-page p, .content-page li { color: var(--text-dim); margin-bottom: 0.75rem; }
.content-page ul { padding-left: 1.5rem; }
.content-page strong { color: #fff; }

/* ---------- 文章页 ---------- */
.article-content { padding: 4rem 0; max-width: 800px; margin: 0 auto; }
.article-content h1 { font-size: 2.5rem; margin-bottom: 1.5rem; color: #fff; line-height: 1.2; }
.article-meta { color: var(--text-dim); margin-bottom: 2rem; font-size: 0.9rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; }
.article-summary { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.article-summary p { margin-bottom: 0.5rem !important; }
.article-body h2 { color: var(--primary); margin: 2rem 0 1rem; border-left: 4px solid var(--primary); padding-left: 1rem; }
.article-body h3 { margin: 1.5rem 0 0.75rem; }
.article-body p { margin-bottom: 1.5rem; color: var(--text-dim); font-size: 1.1rem; line-height: 1.8; }
.article-body ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--text-dim); }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: #fff; }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; color: var(--text-dim); font-size: 0.95rem; }
.article-body th, .article-body td { border: 1px solid var(--glass-border); padding: 0.6rem 0.8rem; text-align: left; }
.article-body th { color: #fff; background: var(--glass); }
.table-wrap { overflow-x: auto; }
.internal-link { color: var(--primary); text-decoration: underline; font-weight: bold; }
.cta-box { margin-top: 3rem; padding: 2rem; background: var(--glass); border-radius: 16px; text-align: center; border: 1px solid var(--primary); }

/* ---------- 内页页脚链接 ---------- */
.footer-links { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; margin: 0 0.5rem; }
.footer-links a:hover { color: var(--primary); }

@media (max-width: 768px) {
    .article-content h1 { font-size: 1.8rem; }
}

.btn-outline { border: 1px solid var(--glass-border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
