/* ========================================
   聚友互娱游戏宇宙 - 赛博朋克主题样式
   官网: http://www.l0j.cn
   ======================================== */

:root {
    --cp-red: #ff0040;
    --cp-red-light: #ff3366;
    --cp-red-dark: #cc0033;
    --cp-neon-pink: #ff2d7b;
    --cp-neon-cyan: #00f0ff;
    --cp-neon-yellow: #ffe600;
    --cp-dark: #0a0a0f;
    --cp-darker: #050508;
    --cp-card: rgba(15, 15, 25, 0.85);
    --cp-card-border: rgba(255, 0, 64, 0.25);
    --cp-text: #e0e0e8;
    --cp-text-muted: #8888a0;
    --cp-glow-red: rgba(255, 0, 64, 0.5);
    --cp-glow-cyan: rgba(0, 240, 255, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cp-darker);
    min-height: 100vh;
    color: var(--cp-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== 全局动画背景 ========== */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 0, 64, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 45, 123, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #050508 0%, #0a0a1a 50%, #0f0a18 100%);
}

.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 0, 64, 0.015) 2px,
        rgba(255, 0, 64, 0.015) 4px
    );
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 0, 64, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 64, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ========== 导航栏 ========== */
.navbar-cyber {
    background: rgba(5, 5, 10, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 0, 64, 0.3);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-cyber.scrolled {
    background: rgba(5, 5, 10, 0.98) !important;
    box-shadow: 0 4px 30px rgba(255, 0, 64, 0.15);
}

.navbar-brand-cyber {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 1px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 0 15px var(--cp-glow-red);
}

.brand-text {
    background: linear-gradient(90deg, #fff, var(--cp-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link-cyber {
    color: var(--cp-text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link-cyber:hover,
.nav-link-cyber.active {
    color: var(--cp-red-light) !important;
    text-shadow: 0 0 10px var(--cp-glow-red);
}

.nav-link-cyber::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cp-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--cp-glow-red);
}

.nav-link-cyber:hover::after,
.nav-link-cyber.active::after {
    width: 60%;
}

.btn-nav-download {
    background: linear-gradient(135deg, var(--cp-red), var(--cp-red-dark));
    color: #fff !important;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-nav-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 64, 0.5);
    color: #fff !important;
}

/* ========== 通用按钮 ========== */
.btn-cyber-primary {
    background: linear-gradient(135deg, var(--cp-red), var(--cp-neon-pink));
    border: none;
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px var(--cp-glow-red);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
}

.btn-cyber-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-cyber-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px var(--cp-glow-red), 0 10px 30px rgba(0,0,0,0.3);
    color: #fff;
}

.btn-cyber-primary:hover::before {
    left: 100%;
}

.btn-cyber-outline {
    background: transparent;
    border: 2px solid var(--cp-red);
    color: var(--cp-red-light);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
}

.btn-cyber-outline:hover {
    background: var(--cp-red);
    color: #fff;
    box-shadow: 0 0 30px var(--cp-glow-red);
    transform: translateY(-3px);
}

/* ========== 区块标题 ========== */
.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-heading h2 .text-glow {
    background: linear-gradient(90deg, var(--cp-red-light), var(--cp-neon-pink), var(--cp-neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
}

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

.section-heading p {
    color: var(--cp-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    background: rgba(255, 0, 64, 0.1);
    border: 1px solid rgba(255, 0, 64, 0.3);
    color: var(--cp-red-light);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

/* ========== 卡片组件 ========== */
.cyber-card {
    background: var(--cp-card);
    border: 1px solid var(--cp-card-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cp-red), var(--cp-neon-pink), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cyber-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 64, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 0, 64, 0.1);
}

.cyber-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 0, 64, 0.15), rgba(255, 45, 123, 0.15));
    border: 1px solid rgba(255, 0, 64, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.1);
}

.cyber-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
}

.cyber-card p {
    color: var(--cp-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========== 故障效果文字 ========== */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: var(--cp-neon-cyan);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
    color: var(--cp-red);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
    100% { transform: translate(0); }
}

/* ========== 霓虹边框 ========== */
.neon-border {
    border: 1px solid var(--cp-red);
    box-shadow: 0 0 10px var(--cp-glow-red), inset 0 0 10px rgba(255, 0, 64, 0.05);
}

/* ========== 浮动粒子 ========== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ========== 页脚 ========== */
.footer-cyber {
    background: rgba(5, 5, 10, 0.95);
    border-top: 1px solid rgba(255, 0, 64, 0.2);
    padding: 60px 0 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, var(--cp-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: var(--cp-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--cp-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--cp-red-light);
    text-shadow: 0 0 8px var(--cp-glow-red);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 0, 64, 0.15);
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--cp-text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--cp-red-light);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ========== 统计数据条 ========== */
.stats-bar {
    padding: 50px 0;
    background: rgba(10, 10, 18, 0.7);
    border-top: 1px solid rgba(255, 0, 64, 0.15);
    border-bottom: 1px solid rgba(255, 0, 64, 0.15);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cp-red), var(--cp-neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    color: var(--cp-text-muted);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== 下载按钮组 ========== */
.download-btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--cp-card);
    border: 1px solid var(--cp-card-border);
    border-radius: 14px;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    min-width: 220px;
}

.download-btn:hover {
    border-color: var(--cp-red);
    box-shadow: 0 0 25px var(--cp-glow-red);
    transform: translateY(-3px);
    color: #fff;
}

.download-btn .icon {
    font-size: 2rem;
}

.download-btn .info {
    display: flex;
    flex-direction: column;
}

.download-btn .info small {
    color: var(--cp-text-muted);
    font-size: 0.75rem;
}

.download-btn .info strong {
    font-size: 1.1rem;
}

/* ========== 面包屑 ========== */
.breadcrumb-cyber {
    padding: 120px 0 30px;
}

.breadcrumb-cyber .breadcrumb-item a {
    color: var(--cp-text-muted);
    text-decoration: none;
}

.breadcrumb-cyber .breadcrumb-item a:hover {
    color: var(--cp-red-light);
}

.breadcrumb-cyber .breadcrumb-item.active {
    color: var(--cp-red-light);
}

.breadcrumb-cyber .breadcrumb-item + .breadcrumb-item::before {
    color: var(--cp-text-muted);
}

/* ========== 响应式 ========== */
@media (max-width: 991px) {
    .section-heading h2 { font-size: 2rem; }
    .download-btn-group { justify-content: center; }
}

@media (max-width: 767px) {
    .section-heading h2 { font-size: 1.6rem; }
    .btn-cyber-primary, .btn-cyber-outline {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    .stat-number { font-size: 2rem; }
    .download-btn { min-width: 100%; }
}

/* ========== 自定义滚动条 ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cp-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cp-red), var(--cp-red-dark));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--cp-neon-pink), var(--cp-red));
}

/* ========== 页面切换加载条 ========== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: rgba(255, 0, 64, 0.2);
}

.page-loader .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--cp-red), var(--cp-neon-pink), var(--cp-neon-cyan));
    width: 0%;
    animation: page-load 1.5s ease-in-out forwards;
}

@keyframes page-load {
    0% { width: 0%; }
    50% { width: 80%; }
    100% { width: 100%; opacity: 0; }
}
