/* 赛博朋克深空/量子环网变量 */
:root {
    /* 默认设为白天模式（透明玻璃态），但强烈推荐深色模式 */
    --bg-main: #f0f4f8;
    --bg-alt: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.6);
    --bg-hud: rgba(255, 255, 255, 0.85);
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: rgba(2, 132, 199, 0.3);
    
    --neon-purple: #9333ea;
    --laser-cyan: #0284c7;
    --ring-color: rgba(2, 132, 199, 0.2);
    --alert-red: #ef4444;
    
    --shadow-cyan: 0 0 15px rgba(2, 132, 199, 0.4);
    --shadow-purple: 0 0 15px rgba(147, 51, 234, 0.4);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    /* 纯深黑画布 (#050508) 满足 UI 提示词 */
    --bg-main: #050508;
    --bg-alt: #0a0a0f;
    --bg-card: rgba(10, 10, 15, 0.7);
    --bg-hud: rgba(5, 5, 8, 0.85);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(6, 182, 212, 0.3);
    
    --neon-purple: #a855f7;
    --laser-cyan: #06b6d4;
    --ring-color: rgba(6, 182, 212, 0.2);
    --alert-red: #ef4444;
    
    --shadow-cyan: 0 0 15px rgba(6, 182, 212, 0.5);
    --shadow-purple: 0 0 15px rgba(168, 85, 247, 0.5);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* 锚点过渡动态效果 */
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

a { text-decoration: none; color: var(--laser-cyan); transition: var(--transition); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 强调文字 */
.cyber-accent {
    color: var(--laser-cyan);
    opacity: 0.6;
    font-size: 0.5em;
    letter-spacing: 2px;
    vertical-align: middle;
    margin-left: 10px;
}

/* 按钮通用 */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 4px;
    font-weight: 600; cursor: pointer; transition: var(--transition);
    border: 1px solid transparent; letter-spacing: 1px;
    text-transform: uppercase; position: relative; overflow: hidden;
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-large { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; }

.btn-cyan { background: var(--laser-cyan); color: #fff !important; }
.btn-cyan:hover { box-shadow: var(--shadow-cyan); transform: translateY(-2px); }

.btn-purple { background: var(--neon-purple); color: #fff !important; }
.btn-purple:hover { box-shadow: var(--shadow-purple); transform: translateY(-2px); }

.btn-outline-cyan { background: transparent; border-color: var(--laser-cyan); color: var(--laser-cyan) !important; }
.btn-outline-cyan:hover { background: rgba(6, 182, 212, 0.1); box-shadow: var(--shadow-cyan); }

/* 发光特效 */
.glow-effect { animation: pulse-glow 2s infinite; }
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* HUD 顶部导航栏 */
.hud-navbar {
    position: fixed; top: 0; width: 100%;
    background-color: var(--bg-hud);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.hud-left { display: flex; align-items: center; gap: 15px; }
.brand-title { font-size: 1.4rem; font-weight: bold; color: var(--text-main); letter-spacing: 1px; }
.hud-badge { font-size: 0.75rem; color: var(--laser-cyan); border: 1px solid var(--laser-cyan); padding: 2px 6px; border-radius: 2px; }

.hud-menu { display: flex; gap: 20px; }
.hud-menu a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.hud-menu a:hover, .hud-menu a.active { color: var(--laser-cyan); text-shadow: 0 0 8px var(--laser-cyan); }
.nav-highlight { color: var(--neon-purple) !important; font-weight: bold; }

.hud-right { display: flex; align-items: center; gap: 15px; }

/* 昼夜切换按钮 */
.theme-toggle-btn {
    background: transparent; border: none; cursor: pointer; color: var(--text-main);
    display: flex; align-items: center; justify-content: center;
    padding: 8px; border-radius: 50%; transition: var(--transition);
}
.theme-toggle-btn:hover { background-color: rgba(128, 128, 128, 0.2); }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }

/* 章节通用 */
.section { padding: 100px 0; }
.bg-cyber-dark { background-color: var(--bg-alt); }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 50px; color: var(--text-main); font-weight: 800; letter-spacing: 1px; }
.left-align { text-align: left; margin-bottom: 20px; }

/* 赛博卡片 (带渐变边框效果) */
.cyber-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s, box-shadow 0.3s;
}
.cyber-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, var(--neon-purple), transparent 30%);
    animation: rotate-border 4s linear infinite;
    opacity: 0; z-index: -2; transition: opacity 0.3s;
}
.cyber-card::after {
    content: ''; position: absolute; inset: 1px; background: var(--bg-card);
    border-radius: 7px; z-index: -1;
}
.cyber-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-cyan); border-color: transparent; }
.cyber-card:hover::before { opacity: 1; }
@keyframes rotate-border { 100% { transform: rotate(360deg); } }

/* Hero 首屏 */
.hero-cyber {
    padding: 160px 0 80px; text-align: center;
    background: radial-gradient(circle at center, var(--ring-color) 0%, transparent 60%);
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
}
.headline { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; color: var(--text-main); letter-spacing: 2px; }
.sub-headline { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }
.hero-actions { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }

/* 雷达模拟器 Widget */
.radar-container {
    position: relative; width: 320px; height: 320px; margin: 0 auto;
    border-radius: 50%; border: 1px dashed var(--border-color);
    display: flex; justify-content: center; align-items: center;
}
.radar-ring {
    position: absolute; border-radius: 50%; border: 1px solid var(--laser-cyan); opacity: 0.2;
}
.r1 { width: 100px; height: 100px; animation: ping 3s infinite; }
.r2 { width: 200px; height: 200px; animation: ping 3s infinite 1s; }
.r3 { width: 300px; height: 300px; animation: ping 3s infinite 2s; }
@keyframes ping {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.2); opacity: 0; }
}
.radar-node {
    position: absolute; width: 14px; height: 14px; background: var(--laser-cyan);
    border-radius: 50%; box-shadow: var(--shadow-cyan); transition: var(--transition);
}
.n1 { top: 10%; left: 50%; transform: translate(-50%, -50%); }
.n2 { top: 50%; right: 10%; transform: translate(50%, -50%); }
.n3 { bottom: 10%; left: 50%; transform: translate(-50%, 50%); }
.n4 { top: 50%; left: 10%; transform: translate(-50%, -50%); }

.radar-node.rerouting { background: var(--alert-red); box-shadow: 0 0 20px var(--alert-red); animation: blink 0.2s infinite; }
.radar-node.secured { background: var(--neon-purple); box-shadow: var(--shadow-purple); }
@keyframes blink { 50% { opacity: 0.3; } }
.radar-btn { position: absolute; z-index: 10; font-size: 0.85rem; padding: 6px 12px; }

/* 网格布局 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card-icon svg { width: 50px; height: 50px; stroke: var(--laser-cyan); fill: none; stroke-width: 1.5; margin-bottom: 20px; }

/* 分割布局 & 面板 */
.split-layout { display: flex; align-items: center; gap: 60px; }
.split-layout.reverse { flex-direction: row-reverse; }
.split-text { flex: 1; }
.split-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }
.split-image { flex: 1; width: 100%; }

.mock-panel { font-family: monospace; padding: 20px; }
.panel-header { font-size: 0.9rem; color: var(--laser-cyan); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; margin-bottom: 15px; text-transform: uppercase; }
.status-row { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--text-muted); }
.status-ok { color: var(--laser-cyan); }

/* 协议切换器 */
.protocol-box { max-width: 700px; margin: 0 auto; text-align: center; padding: 0 !important; }
.protocol-tabs { display: flex; border-bottom: 1px solid var(--border-color); }
.ptab {
    flex: 1; background: transparent; border: none; color: var(--text-muted);
    padding: 15px; cursor: pointer; font-weight: bold; transition: var(--transition);
}
.ptab:hover, .ptab.active { color: var(--laser-cyan); background: rgba(6, 182, 212, 0.05); }
.ptab.active { border-bottom: 2px solid var(--laser-cyan); }
.protocol-content { padding: 40px; }
.qr-code-placeholder {
    width: 150px; height: 150px; margin: 0 auto 20px;
    border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(6, 182, 212, 0.05) 10px, rgba(6, 182, 212, 0.05) 20px);
}
.qr-text { font-size: 0.85rem; color: var(--text-muted); }

/* 价格表 */
.pricing-card { text-align: center; padding: 40px 30px; }
.pricing-card.popular { border-color: var(--neon-purple); transform: scale(1.05); }
.pricing-card.popular:hover { transform: scale(1.05) translateY(-5px); box-shadow: var(--shadow-purple); }
.glow-badge {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    background: var(--neon-purple); color: white; padding: 6px 18px; border-radius: 0 0 12px 12px;
    font-size: 0.85rem; font-weight: bold; box-shadow: var(--shadow-purple);
}
.price { font-size: 2.8rem; font-weight: 900; margin: 20px 0; color: var(--laser-cyan); }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: normal; }
.pricing-features { text-align: left; margin-bottom: 30px; }
.pricing-features li { padding: 12px 0; border-bottom: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.95rem; }
.pricing-features li:last-child { border-bottom: none; }

/* 评价档案 */
.review-card .stars { color: var(--laser-cyan); margin-bottom: 15px; font-size: 1.2rem; letter-spacing: 2px; }
.review-card p { font-style: italic; margin-bottom: 20px; color: var(--text-muted); }
.user-info { font-weight: bold; color: var(--text-main); font-family: monospace; }
.user-info span { color: var(--text-muted); font-weight: normal; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-item h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--laser-cyan); }
.faq-item p { color: var(--text-muted); font-size: 0.95rem; }

/* 页脚 */
.footer { padding: 40px 0; border-top: 1px solid var(--border-color); text-align: center; background: var(--bg-main); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.footer-bottom p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--neon-purple); }

/* 全局点击波纹 (量子引力波) */
.quantum-ripple {
    position: fixed; border: 2px solid var(--laser-cyan); border-radius: 50%;
    transform: translate(-50%, -50%); pointer-events: none;
    animation: ripple-expand 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; z-index: 9999;
}
@keyframes ripple-expand {
    0% { width: 0; height: 0; opacity: 0.6; }
    100% { width: 200px; height: 200px; opacity: 0; }
}

/* 响应式 */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-5px); }
    .desktop-only { display: none; }
}

@media (max-width: 768px) {
    .hud-menu { display: none; } /* 移动端隐藏中间菜单 */
    .headline { font-size: 2.2rem; }
    .hero-cyber { padding: 120px 0 60px; min-height: auto; }
    .hero-actions { flex-direction: column; padding: 0 20px; }
    .grid-3 { grid-template-columns: 1fr; }
    .split-layout, .split-layout.reverse { flex-direction: column; text-align: center; }
    .left-align { text-align: center; }
    .radar-container { transform: scale(0.8); }
    .btn { min-height: 44px; }
}
