/* Cyber-Oriental Mesh Aesthetic Variables */
:root {
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-pill: 9999px;
    --radius-bento: 24px;
}

/* 深色模式 (Dark Mode) - 默认 */
html[data-theme="dark"] {
    --bg-main: #08090C;
    --bg-secondary: #0F1116;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    
    --text-main: #FFFFFF;
    --text-muted: #8B949E;
    
    --accent-emerald: #00F299;
    --accent-orange: #FF4D26;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --glow-emerald: rgba(0, 242, 153, 0.15);
    --glow-orange: rgba(255, 77, 38, 0.15);
    
    --shadow-card: 0 10px 30px -10px rgba(0,0,0,0.5);
    --nav-bg: rgba(8, 9, 12, 0.85);
}

/* 浅色模式 (Light Mode) */
html[data-theme="light"] {
    --bg-main: #F4F5F7;
    --bg-secondary: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    
    --text-main: #08090C;
    --text-muted: #57606A;
    
    --accent-emerald: #00B371; /* 加深一点以保证对比度 */
    --accent-orange: #E63E1C;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    
    --glow-emerald: rgba(0, 179, 113, 0.08);
    --glow-orange: rgba(230, 62, 28, 0.08);
    
    --shadow-card: 0 10px 30px -10px rgba(0,0,0,0.05);
    --nav-bg: rgba(244, 245, 247, 0.85);
}

/* 重置与基础设置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: 100px; /* 留出导航栏空间 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.text-emerald { color: var(--accent-emerald) !important; }
.text-orange { color: var(--accent-orange) !important; }
.bg-secondary { background-color: var(--bg-secondary); }

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.section-desc { font-size: 1.1rem; color: var(--text-muted); }

/* 导航栏 (Glassmorphism) */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 76px; }

.logo a { display: flex; align-items: center; gap: 12px; }
.brand-name { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.05em; }

/* 协议状态徽章 (Pulsating Ping) */
.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: var(--radius-pill);
    background: var(--bg-card); border: 1px solid var(--border-color);
    font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
}
.ping-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 0 0 rgba(0, 242, 153, 0.7);
    animation: pulse-ping 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulse-ping {
    to { box-shadow: 0 0 0 10px rgba(0, 242, 153, 0); }
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
    font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
    transition: color var(--transition-fast);
}
.nav-links a:hover { color: var(--text-main); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

/* 昼夜切换按钮 */
.theme-toggle-btn {
    background: transparent; border: 1px solid var(--border-color);
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-muted);
    transition: all var(--transition-fast);
}
.theme-toggle-btn:hover { color: var(--text-main); border-color: var(--text-main); }
.theme-toggle-btn svg { width: 18px; height: 18px; fill: currentColor; }
html[data-theme="light"] .icon-sun, html[data-theme="dark"] .icon-moon { display: none; }

/* 按钮样式 */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 12px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; border: 1px solid transparent; transition: all var(--transition-fast);
}
.btn-pill { border-radius: var(--radius-pill); padding: 10px 24px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); }
.btn-pill:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }

.btn-emerald { background: var(--accent-emerald); color: #000; }
.btn-emerald:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 20px -6px var(--accent-emerald); }

.btn-orange { background: var(--accent-orange); color: #fff; }
.btn-orange:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 20px -6px var(--accent-orange); }

.btn-outline { background: transparent; border-color: var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-main); background: var(--bg-card); }
.btn-block { width: 100%; }

/* 主视觉区 (Hero) with Canvas */
.hero {
    position: relative; padding-top: 180px; padding-bottom: 120px;
    min-height: 100vh; display: flex; align-items: center; overflow: hidden;
}
#network-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0.6;
}
.hero-content {
    max-width: 760px; position: relative; z-index: 2;
}
.headline {
    font-size: 4rem; font-weight: 800; line-height: 1.15;
    margin-bottom: 24px; letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.subtitle {
    font-size: 1.25rem; color: var(--text-muted); margin-bottom: 48px; max-width: 600px;
}
.latency-widget {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 24px; border-radius: var(--radius-bento);
    backdrop-filter: blur(10px); display: inline-block;
}
.latency-info { margin-bottom: 20px; font-family: monospace; font-size: 1.1rem; }
.latency-label { color: var(--text-muted); }
.latency-value { font-weight: 700; color: var(--text-main); margin-left: 12px; font-size: 1.3rem; transition: color 0.2s; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: minmax(240px, auto);
}
.bento-large { grid-column: span 2; }

/* Bento Card Style & Micro-interactions */
.bento-card {
    position: relative; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-bento); padding: 32px;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    box-shadow: var(--shadow-card);
    transform-style: preserve-3d;
}
.bento-card:hover {
    border-color: var(--border-hover);
    /* Transform handled by JS for floating tilt effect */
}

/* Mouse-following Radial Glow */
.card-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: inherit;
    pointer-events: none; z-index: 0; opacity: 0;
    transition: opacity var(--transition-fast);
}
.bento-card:hover .card-glow { opacity: 1; }

.card-icon {
    position: relative; z-index: 1; margin-bottom: 24px;
    width: 48px; height: 48px; color: var(--text-main);
}
.bento-card h3 { position: relative; z-index: 1; font-size: 1.4rem; margin-bottom: 12px; }
.bento-card p { position: relative; z-index: 1; color: var(--text-muted); line-height: 1.6; }

/* 定价表 */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card { display: flex; flex-direction: column; }
.popular { border-color: var(--accent-emerald); position: relative; }
.popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--accent-emerald); color: #000;
    padding: 4px 12px; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 700;
}
.tier-name { font-size: 1.2rem !important; color: var(--text-muted); margin-bottom: 16px !important; }
.price { font-size: 3rem; font-weight: 800; margin-bottom: 8px; line-height: 1; color: var(--text-main); }
.currency { font-size: 1.5rem; vertical-align: top; }
.period { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.tier-desc { font-size: 0.95rem !important; margin-bottom: 24px !important; min-height: 45px; }
.features-list { flex-grow: 1; margin-bottom: 32px; position: relative; z-index: 1; }
.features-list li {
    padding: 8px 0; color: var(--text-muted); display: flex; align-items: center; border-bottom: 1px solid var(--border-color);
}
.features-list li:last-child { border-bottom: none; }
.features-list li::before {
    content: "✦"; color: var(--accent-emerald); margin-right: 12px; font-size: 0.8rem;
}

/* 用户评价 */
.reviews-grid { grid-template-columns: repeat(3, 1fr); }
.review-card { display: flex; flex-direction: column; justify-content: space-between; }
.stars { font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 2px; }
.author { margin-top: 24px; font-weight: 600; font-size: 0.9rem; }

/* FAQ */
.faq-accordion { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.faq-item { padding: 24px 32px; }
.faq-q { font-size: 1.15rem; margin-bottom: 12px; color: var(--text-main); }
.faq-a { color: var(--text-muted); }

/* Footer */
.footer {
    padding: 60px 0; border-top: 1px solid var(--border-color);
    text-align: center; background: var(--bg-main);
}
.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 24px; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--text-main); }
.footer-copyright { color: var(--text-muted); font-size: 0.85rem; opacity: 0.6; }

/* 通用页面样式 (用于隐私、关于我们等) */
.page-hero { padding: 160px 0 60px; text-align: center; border-bottom: 1px solid var(--border-color); }
.page-title { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; }
.content-wrapper { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 20px; color: var(--text-main); }
.prose p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.05rem; }
.prose ul { padding-left: 24px; margin-bottom: 20px; color: var(--text-muted); list-style-type: square; }
.prose li { margin-bottom: 10px; }

/* 响应式设计 (Media Queries) */
@media (max-width: 992px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-large { grid-column: span 2; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .headline { font-size: 3.2rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; } /* 移动端隐藏中间导航，保留动作按钮 */
    .bento-grid, .pricing-grid, .reviews-grid { grid-template-columns: 1fr; }
    .bento-large { grid-column: span 1; }
    .headline { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .section { padding: 60px 0; }
}
