/* Nexus Epoch - Cyber Blue Theme */
:root {
    /* 核心主题色：冰川蓝/赛博青 */
    --theme-cyan: #00f3ff; 
    --theme-blue: #0078ff;
    --theme-bg: #050608;
    --theme-panel: #0e1016;
    --text-main: #ffffff;
    --text-dim: #8899a6;
    --border-dim: rgba(0, 243, 255, 0.15);
    
    --font-main: "Impact", "Arial Black", sans-serif;
    --font-body: "Microsoft YaHei", "Inter", sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 基础重置 */
* { box-sizing: border-box; margin: 0; padding: 0; cursor: none; }
html { scroll-behavior: auto; }

body {
    background-color: var(--theme-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- 全局特效 --- */
.noise-overlay {
    position: fixed; inset: 0; pointer-events: none; z-index: 999;
    opacity: 0.03; background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAABMTExERERmZmYzMzNmZmYAAAC80RXYAAAACHRSTlMzAJmZzMxmZvYz1O0AAAAJcEhZcwAAFiUAABYlAUlSJPAAAAA6SURBVDjLY2AYBaNgKLgCg8EUDNwBBlYGFjQ2EwM7G4OJCQODCQuDiQUDI4OFCQODhQWNiY2BgZ2BAQAmXw+x21/2OQAAAABJRU5ErkJggg==');
}
.scanlines {
    position: fixed; inset: 0; pointer-events: none; z-index: 998;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(0, 255, 255, 0.03), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
}
.grid-background {
    position: fixed; inset: 0; z-index: -2;
    background-image: linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}
#particles-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}

/* --- 光标 --- */
.rog-cursor {
    position: fixed; width: 8px; height: 8px; background: var(--theme-cyan);
    transform: translate(-50%, -50%); pointer-events: none; z-index: 10001;
    box-shadow: 0 0 10px var(--theme-cyan);
}
.cursor-follower {
    position: fixed; width: 40px; height: 40px;
    border: 1px solid rgba(0, 243, 255, 0.5); transform: translate(-50%, -50%);
    pointer-events: none; z-index: 10000; transition: width 0.2s, height 0.2s, border-color 0.2s;
}
body.hover-active .cursor-follower {
    width: 60px; height: 60px; border-color: var(--theme-cyan); background: rgba(0, 243, 255, 0.1);
}

/* --- HUD 滚动条 --- */
.rog-scroll-bar {
    position: fixed; right: 10px; top: 50%; transform: translateY(-50%);
    height: 30vh; width: 4px; background: rgba(255,255,255,0.1); z-index: 100;
    display: flex; flex-direction: column; justify-content: space-between;
}
.rog-scroll-progress { width: 100%; background: var(--theme-cyan); height: 0%; transition: height 0.1s linear; }
.bar-deco { width: 10px; height: 2px; background: var(--theme-cyan); position: relative; left: -3px; }

/* --- 导航栏 --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 900; padding: 20px 0;
    transition: all 0.3s; background: rgba(5,6,8, 0.8); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-family: var(--font-main); font-size: 24px; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 36px; }
.highlight { color: var(--theme-cyan); }

.nav-menu { display: flex; gap: 30px; list-style: none; }
.nav-link {
    text-decoration: none; color: var(--text-main); font-weight: 700; font-size: 14px;
    text-transform: uppercase; position: relative; overflow: hidden; display: block; padding: 5px 0;
}
.nav-link::before {
    content: attr(data-text); position: absolute; top: 100%; left: 0;
    color: var(--theme-cyan); transition: top 0.3s var(--ease-out);
}
.nav-link:hover::before { top: 0; }
.nav-link:hover { color: transparent; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger .line { width: 25px; height: 3px; background: white; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* --- Hero Section --- */
.hero { height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-slider-bg { position: absolute; inset: 0; z-index: -1; }
.hero-slider-bg .slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s; filter: brightness(0.7) contrast(1.1);
}
.hero-slider-bg .slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(5,6,8,0.95) 0%, rgba(5,6,8,0.6) 50%, rgba(5,6,8,0.2) 100%);
}

.hero-content { position: relative; z-index: 2; width: 100%; display: flex; align-items: flex-end; justify-content: space-between; height: 60%; }
.hero-text-wrapper { max-width: 800px; }

.cyber-badge {
    display: inline-block; padding: 6px 12px; background: rgba(0, 243, 255, 0.1); 
    border: 1px solid var(--theme-cyan); color: var(--theme-cyan);
    font-weight: bold; font-family: monospace; font-size: 12px; letter-spacing: 2px; margin-bottom: 20px;
}
.hero-title {
    font-family: var(--font-main); font-size: 72px; line-height: 1.1; text-transform: uppercase;
    margin-bottom: 20px; letter-spacing: -1px;
}
.stroke-text { -webkit-text-stroke: 2px var(--theme-cyan); color: transparent; text-shadow: 0 0 15px rgba(0,243,255,0.3); }
.hero-subtitle { font-size: 20px; color: var(--text-dim); margin-bottom: 40px; font-family: monospace; letter-spacing: 4px; }

.hero-buttons { display: flex; gap: 20px; }

/* ROG Button */
.rog-btn {
    position: relative; display: inline-flex; justify-content: center; align-items: center;
    padding: 15px 40px; background: rgba(0, 243, 255, 0.05); border: 1px solid var(--theme-cyan);
    color: var(--theme-cyan); text-decoration: none; font-weight: bold; text-transform: uppercase; 
    letter-spacing: 1px; clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: all 0.3s; overflow: hidden; cursor: none;
}
.rog-btn:hover { background: var(--theme-cyan); color: black; }
.rog-btn.secondary { border-color: white; color: white; }
.rog-btn.secondary:hover { background: white; color: black; }
.btn-glitch {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--text-main); color: black; display: flex; align-items: center; justify-content: center;
    transform: translateX(-105%) skewX(-15deg); transition: transform 0.3s;
}
.rog-btn:hover .btn-glitch { transform: translateX(0) skewX(-15deg); }

.slider-controls-rog { display: flex; flex-direction: column; align-items: flex-end; }
.slider-dots { display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border: 1px solid white; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--theme-cyan); border-color: var(--theme-cyan); box-shadow: 0 0 10px var(--theme-cyan); }

.deco-text-bg {
    position: absolute; bottom: -50px; right: -20px; font-size: 200px; font-family: var(--font-main);
    color: rgba(255,255,255,0.02); z-index: 0; white-space: nowrap; pointer-events: none;
}

/* --- Section Styling --- */
.section { padding: 120px 0; position: relative; }
.dark-section { background: rgba(14, 16, 22, 0.6); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }

.section-header { margin-bottom: 60px; position: relative; }
.section-title { font-family: var(--font-main); font-size: 48px; text-transform: uppercase; line-height: 1; }
.cn-sub { font-size: 14px; font-family: monospace; color: var(--theme-cyan); display: block; margin-top: 5px; letter-spacing: 2px; }
.rog-line { width: 80px; height: 4px; background: var(--theme-cyan); margin-top: 20px; }

/* --- Intro Section --- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.rog-desc { font-size: 16px; color: #ccc; line-height: 1.8; margin-bottom: 15px; border-left: 2px solid rgba(255,255,255,0.1); padding-left: 15px; }
.rog-desc.highlight { border-color: var(--theme-cyan); color: white; font-weight: bold; }
.steam-widget-box { margin-top: 30px; border: 1px solid var(--border-dim); padding: 5px; }

.card-visual {
    position: relative; height: 500px; overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%);
    background: #000;
}
.scan-mask {
    position: absolute; inset: 0; background: var(--theme-cyan); z-index: 5; opacity: 0.5;
    transform: scaleX(0); transform-origin: left; pointer-events: none;
}
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.card-visual:hover img { transform: scale(1.05); }

/* --- Info Grid --- */
.info-grid-rog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.info-card-rog {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    padding: 30px; position: relative; transition: all 0.3s;
}
.info-card-rog:hover { 
    background: rgba(0, 243, 255, 0.05); border-color: var(--theme-cyan); 
    transform: translateY(-5px); 
}
.info-card-rog .icon { font-size: 32px; color: var(--theme-blue); margin-bottom: 20px; }
.info-card-rog h3 { font-size: 18px; margin-bottom: 10px; font-weight: bold; }
.info-card-rog p { color: var(--text-dim); font-size: 14px; }
.countdown-text { color: var(--theme-cyan); font-weight: bold; font-family: monospace; margin-top: 10px; font-size: 12px; }
.corner-deco {
    position: absolute; bottom: 0; right: 0; width: 0; height: 0;
    border-bottom: 15px solid var(--theme-cyan); border-left: 15px solid transparent; opacity: 0; transition: 0.3s;
}
.info-card-rog:hover .corner-deco { opacity: 1; }

/* --- Video & Gallery --- */
.video-wrapper-rog {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    margin-bottom: 40px; background: #000;
}
.video-wrapper-rog iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.gallery-grid-rog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-item-rog { height: 200px; border: 1px solid transparent; transition: 0.3s; }
.gallery-item-rog:hover { border-color: var(--theme-cyan); }
.gallery-inner { width: 100%; height: 100%; position: relative; overflow: hidden; }
.gallery-inner img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: 0.5s; }
.gallery-inner:hover img { filter: grayscale(0); transform: scale(1.1); }
.gallery-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(100%); transition: transform 0.3s;
}
.gallery-inner:hover .gallery-overlay { transform: translateY(0); }
.gallery-overlay h4 { color: var(--theme-cyan); font-family: var(--font-main); font-size: 16px; }

/* --- Team --- */
.studio-intro-box { display: flex; align-items: center; gap: 30px; margin-bottom: 50px; background: rgba(255,255,255,0.02); padding: 30px; border-left: 3px solid var(--theme-cyan); }
.studio-img { width: 120px; height: 120px; object-fit: contain; }
.studio-text h3 { font-size: 24px; margin-bottom: 10px; }
.team-grid-rog { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.member-card { 
    background: var(--theme-panel); padding: 20px; text-align: center; 
    border: 1px solid rgba(255,255,255,0.05); transition: 0.3s;
}
.member-card:hover { border-color: var(--theme-cyan); transform: translateY(-5px); }
.member-img-box { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; margin: 0 auto 15px; border: 2px solid #333; }
.member-img-box img { width: 100%; height: 100%; object-fit: cover; }
.member-info h3 { font-size: 16px; color: white; margin-bottom: 5px; }
.member-info .role { font-size: 12px; color: var(--theme-cyan); font-family: monospace; letter-spacing: 1px; }

/* --- Thanks --- */
.thanks-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; }
.thanks-item { text-align: center; opacity: 0.7; transition: 0.3s; }
.thanks-item:hover { opacity: 1; transform: scale(1.05); }
.thanks-item img { height: 60px; margin-bottom: 10px; }
.thanks-item h3 { font-size: 14px; color: var(--text-dim); }

/* --- Contact & Terminal --- */
.contact-section { background: black; overflow: hidden; }
.contact-container { position: relative; z-index: 2; display: flex; gap: 60px; }
.contact-left { flex: 1.2; }
.contact-right { flex: 0.8; }
.redeem-terminal {
    background: rgba(0, 243, 255, 0.05); border: 1px solid var(--border-dim);
    padding: 30px; margin-bottom: 40px; position: relative;
}
.redeem-terminal::before { content: ''; position: absolute; top: -1px; left: -1px; width: 10px; height: 10px; border-top: 2px solid var(--theme-cyan); border-left: 2px solid var(--theme-cyan); }
.terminal-header { color: var(--theme-cyan); font-family: monospace; margin-bottom: 20px; border-bottom: 1px solid #222; padding-bottom: 10px; }
.redeem-form { display: flex; gap: 10px; }
.rog-input { 
    flex: 1; background: transparent; border: none; border-bottom: 2px solid #333; 
    color: white; padding: 10px; font-family: monospace; 
}
.rog-input:focus { outline: none; border-color: var(--theme-cyan); }
.rog-btn.small { padding: 10px 20px; font-size: 12px; }
.terminal-hint { font-size: 12px; color: #555; margin-top: 10px; }

.detail-row { font-family: monospace; margin-bottom: 10px; font-size: 14px; }
.detail-row .label { color: #666; width: 100px; display: inline-block; }
.detail-row .val { color: white; }

.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.social-tile {
    display: flex; align-items: center; gap: 15px; padding: 20px;
    background: #111; border: 1px solid #222; color: #888; text-decoration: none;
    transition: 0.3s;
}
.social-tile:hover { border-color: var(--theme-cyan); color: white; background: rgba(0, 243, 255, 0.05); }

/* --- Footer --- */
.footer { background: #020202; border-top: 1px solid #111; padding: 40px 0; text-align: center; }
.footer-logo { font-family: var(--font-main); font-size: 24px; color: var(--theme-cyan); margin-bottom: 10px; }
.footer-links a { color: #555; margin: 0 10px; text-decoration: none; font-size: 12px; }
.footer-links a:hover { color: white; }

/* --- Modals --- */
.rog-modal {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 10000;
    justify-content: center; align-items: center; backdrop-filter: blur(5px);
}
.modal-content {
    background: #0a0b10; border: 1px solid var(--theme-cyan); width: 400px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}
.modal-header {
    background: rgba(0, 243, 255, 0.1); padding: 10px 20px; display: flex; justify-content: space-between;
    border-bottom: 1px solid var(--border-dim); font-family: monospace; color: var(--theme-cyan);
}
.close { cursor: pointer; }
.modal-body { padding: 30px; text-align: center; }
.modal-icon { font-size: 40px; color: var(--theme-cyan); margin-bottom: 20px; }
.qr-box { margin: 20px auto; width: 150px; height: 150px; position: relative; }
.qr-box img { width: 100%; }
.scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--theme-cyan);
    animation: scan 2s infinite linear; box-shadow: 0 0 10px var(--theme-cyan);
}
@keyframes scan { 0% {top:0;} 100% {top:100%;} }

/* Image Modal */
.image-mode img { max-width: 90vw; max-height: 90vh; border: 1px solid var(--theme-cyan); }
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 30px; color: white; cursor: pointer; }

/* 响应式适配 */
@media (max-width: 768px) {
    .hero-title { font-size: 40px; }
    .hero-content { flex-direction: column; justify-content: center; gap: 40px; }
    .intro-grid, .info-grid-rog, .gallery-grid-rog, .contact-container { grid-template-columns: 1fr; }
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .rog-scroll-bar { display: none; }
}