/* ==========================================================================
   AETHERIA // 赛博量子概念矩阵 - 极致视觉与特效样式表
   ========================================================================== */

:root {
    --bg-dark: #07080e;
    --primary-cyan: #00f0ff;
    --primary-magenta: #ff0077;
    --primary-purple: #8b00ff;
    --text-main: #f0f4fc;
    --text-muted: #8e9bb0;
    --glass-bg: rgba(14, 18, 28, 0.65);
    --glass-border: rgba(0, 240, 255, 0.22);
    --glass-glow: rgba(0, 240, 255, 0.15);
    --font-mono: 'SF Mono', Monaco, 'Fira Code', Consolas, monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    overflow-x: hidden;
    position: relative;
    cursor: none; /* 使用自定义光标 */
    min-height: 100vh;
}

/* 自定义激光离子光标 */
#cursor-dot {
    position: fixed;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    background: var(--primary-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px var(--primary-cyan), 0 0 20px var(--primary-cyan);
}

#cursor-aura {
    position: fixed;
    top: -24px;
    left: -24px;
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
}

#cursor-aura.active {
    width: 68px;
    height: 68px;
    top: -34px;
    left: -34px;
    border-color: var(--primary-magenta);
    background: rgba(255, 0, 119, 0.08);
    box-shadow: 0 0 25px rgba(255, 0, 119, 0.4);
}

/* 全屏背景 Canvas */
#quantum-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* 电视扫描线 & 赛博微噪点 */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* 页面主容器 */
.app-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

/* 全息顶部导航 */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin-bottom: 60px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-gem {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    box-shadow: 0 0 14px var(--primary-cyan);
    animation: pulseGem 2.5s infinite ease-in-out;
}

.logo-title {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.badge-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid var(--primary-cyan);
    border-radius: 4px;
    color: var(--primary-cyan);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-cyan);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: blinkDot 1.4s infinite;
}

.cyber-btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cyber-btn-outline:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    color: var(--primary-cyan);
}

.audio-active {
    border-color: var(--primary-magenta) !important;
    color: var(--primary-magenta) !important;
    box-shadow: 0 0 15px rgba(255, 0, 119, 0.4) !important;
}

/* HERO 主视觉区 */
.hero-section {
    text-align: center;
    padding: 40px 10px 80px;
    position: relative;
}

.hero-pill-announcement {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    background: rgba(255, 0, 119, 0.1);
    border: 1px solid rgba(255, 0, 119, 0.35);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #ff77b4;
    margin-bottom: 28px;
    box-shadow: 0 0 20px rgba(255, 0, 119, 0.2);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.gradient-shimmer {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-cyan) 40%, var(--primary-magenta) 75%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerGrad 5s linear infinite;
}

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

.hero-subtitle span {
    color: var(--primary-cyan);
    font-weight: 600;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 极度浮夸的大型超频按钮 */
.btn-overclock {
    position: relative;
    padding: 18px 44px;
    background: linear-gradient(90deg, #ff0077, #7000ff);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 35px rgba(255, 0, 119, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-overclock:hover {
    transform: scale(1.05);
    box-shadow: 0 0 55px rgba(255, 0, 119, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.btn-overclock::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.7s;
}

.btn-overclock:hover::before {
    transform: rotate(45deg) translateY(100%);
}

.btn-secondary {
    padding: 18px 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-cyan);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

/* 虚无监控仪表阵列 (Telemetry Dashboard) */
.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 70px;
}

.metric-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 22px;
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

.metric-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), transparent);
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.metric-val {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.oscilloscope-container {
    grid-column: 1 / -1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 20px 24px;
    backdrop-filter: blur(14px);
}

.osc-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-cyan);
    margin-bottom: 12px;
}

#telemetry-wave-canvas {
    width: 100%;
    height: 100px;
    display: block;
    background: rgba(0, 10, 20, 0.4);
    border-radius: 8px;
}

/* 核心黑话特性 3D Tilt 卡片 */
.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 80px;
    perspective: 1200px;
}

.tilt-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 34px 28px;
    backdrop-filter: blur(16px);
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.12s ease-out, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.tilt-card:hover {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 16px 40px rgba(0, 240, 255, 0.18);
}

/* 全息反射镜面光斑 */
.tilt-card::before {
    content: '';
    position: absolute;
    top: var(--my, -100%);
    left: var(--mx, -100%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
}

.card-icon {
    font-size: 2.6rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
    transform: translateZ(25px);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #ffffff;
    transform: translateZ(20px);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    transform: translateZ(15px);
}

/* 荒诞价格体系 (Pricing) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.plan-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 38px 30px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card.featured {
    border: 1.5px solid var(--primary-magenta);
    box-shadow: 0 0 35px rgba(255, 0, 119, 0.25);
    background: linear-gradient(180deg, rgba(255, 0, 119, 0.08) 0%, var(--glass-bg) 100%);
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-magenta);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 100px;
    letter-spacing: 1px;
}

.plan-header {
    margin-bottom: 24px;
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-price {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary-cyan);
}

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

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

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--primary-cyan);
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-cyan);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.plan-btn:hover {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

.plan-card.featured .plan-btn {
    background: var(--primary-magenta);
    border-color: var(--primary-magenta);
    color: #fff;
}

.plan-card.featured .plan-btn:hover {
    box-shadow: 0 0 25px rgba(255, 0, 119, 0.8);
}

/* 全息脚标 */
.footer-bar {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 超维过载全屏 Glitch 与模态视窗 */
.hidden {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #0d111d;
    border: 2px solid #ff0055;
    box-shadow: 0 0 60px rgba(255, 0, 85, 0.5), inset 0 0 25px rgba(255, 0, 85, 0.2);
    border-radius: 18px;
    max-width: 640px;
    width: 100%;
    padding: 32px;
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 0, 85, 0.3);
    padding-bottom: 12px;
}

.modal-title {
    font-family: var(--font-mono);
    color: #ff0055;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.modal-close {
    background: transparent;
    border: none;
    color: #ff77a9;
    font-size: 1.6rem;
    cursor: pointer;
}

.console-box {
    background: #05070a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px;
    height: 220px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: #00ffaa;
    margin-bottom: 24px;
}

.log-line {
    animation: logFadeIn 0.2s ease-out;
}

/* 屏幕色散故障动画 */
body.screen-glitch-active {
    animation: screenShake 0.45s infinite;
}

@keyframes screenShake {
    0% { transform: translate(0, 0); filter: hue-rotate(0deg); }
    20% { transform: translate(-3px, 2px); filter: hue-rotate(90deg); }
    40% { transform: translate(3px, -2px); filter: hue-rotate(180deg); }
    60% { transform: translate(-2px, -3px); filter: hue-rotate(270deg); }
    80% { transform: translate(2px, 3px); filter: hue-rotate(360deg); }
    100% { transform: translate(0, 0); filter: hue-rotate(0deg); }
}

@keyframes shimmerGrad {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGem {
    0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    50% { transform: scale(1.25) rotate(45deg); filter: brightness(1.5); }
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

@keyframes modalPop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes logFadeIn {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 移动端媒体查询适配 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .header-bar {
        flex-direction: column;
        gap: 16px;
    }
    .features-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    body {
        cursor: default;
    }
    #cursor-dot, #cursor-aura {
        display: none;
    }
}
