@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --bg-midnight: #0B0B12;
    --coin-gold: #FFC400;
    --life-red: #FF3355;
    --sky-cyan: #00E0FF;
    --text-color: #EDEDF4;
}

body {
    background-color: var(--bg-midnight);
    color: var(--text-color);
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    text-transform: uppercase;
    line-height: 1.8;
    margin: 0; padding: 0;
    overflow-x: hidden;
}

body::before {
    content: ""; 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%);
    background-size: 100% 4px; z-index: 9998; pointer-events: none;
}
@keyframes flicker {
    0% { opacity: 0.95; } 5% { opacity: 0.85; } 10% { opacity: 0.95; }
    15% { opacity: 1; } 100% { opacity: 1; }
}
body::after {
    content: ""; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255, 255, 255, 0.02); animation: flicker 0.15s infinite;
    z-index: 9999; pointer-events: none;
}

.arcade-machine {
    padding: 20px; max-width: 1000px; margin: 0 auto; position: relative; min-height: 100vh;
}
.arcade-screen {
    border: 8px solid var(--text-color); background: rgba(0, 0, 0, 0.9);
    border-radius: 24px; padding: 30px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 1), inset 0 0 15px var(--sky-cyan), 0 0 30px var(--life-red);
}

.pixel-border {
    border: 4px solid var(--text-color); box-shadow: 6px 6px 0 var(--coin-gold);
    background: rgba(11, 11, 18, 0.9); padding: 25px; margin-bottom: 20px; transition: transform 0.2s;
}
.pixel-border:hover { transform: translateY(-4px); }

h1, h2, h3, h4 { color: var(--coin-gold); text-shadow: 3px 3px 0 var(--life-red); margin-bottom: 20px; line-height: 1.4; }
h1 { font-size: 24px; } h2 { font-size: 16px; } h3 { font-size: 12px; }
p { margin-bottom: 15px; }
a { color: var(--sky-cyan); text-decoration: none; }
a:hover { color: var(--coin-gold); }
.text-center { text-align: center; }

.grid { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

header {
    border-bottom: 4px dashed var(--sky-cyan); padding-bottom: 30px; margin-bottom: 40px;
    display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 30px;
}
.logo { text-align: center; display: inline-block; }
.logo .sprite { font-size: 40px; margin-bottom: 10px; image-rendering: pixelated; }
.logo .text { font-size: 24px; color: var(--coin-gold); text-shadow: 4px 4px 0 var(--life-red); }
.logo .player { font-size: 10px; color: var(--sky-cyan); margin-top: 10px; }

.nav-area { display: flex; flex-direction: column; align-items: flex-end; }
.life-bar { font-size: 16px; color: var(--life-red); display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.life-bar span { color: var(--text-color); font-size: 10px; }

.nav-links { display: flex; gap: 15px; flex-wrap: wrap; }
.nav-links a { 
    color: var(--text-color); padding: 10px 15px; border: 4px solid var(--text-color); 
    transition: all 0.2s; background: var(--bg-midnight);
}
.nav-links a:hover { 
    background: var(--coin-gold); color: var(--bg-midnight); border-color: var(--coin-gold); 
    box-shadow: 4px 4px 0 var(--life-red);
}

.blink { animation: blinker 1s cubic-bezier(1,0,0,1) infinite; }
@keyframes blinker { 50% { opacity: 0; } }

.btn {
    display: inline-block; padding: 18px 24px; background: var(--bg-midnight); color: var(--text-color);
    border: 4px solid var(--text-color); font-family: inherit; font-size: 10px; text-align: center;
    box-shadow: 6px 6px 0 var(--life-red); cursor: pointer; transition: transform 0.1s;
}
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--life-red); }
.btn:hover { background: var(--text-color); color: var(--bg-midnight); }
.btn-primary { border-color: var(--coin-gold); color: var(--coin-gold); }
.btn-primary:hover { background: var(--coin-gold); color: #000; }
.btn-secondary { border-color: var(--sky-cyan); color: var(--sky-cyan); box-shadow: 6px 6px 0 var(--coin-gold); }
.btn-secondary:hover { background: var(--sky-cyan); color: #000; }

.pricing ul { list-style: none; padding: 0; }
.pricing ul li { margin-bottom: 15px; position: relative; padding-left: 20px; line-height: 1.5; }
.pricing ul li::before { content: ">"; position: absolute; left: 0; color: var(--sky-cyan); }
.price { font-size: 20px; color: var(--sky-cyan); margin: 20px 0; text-shadow: 2px 2px 0 #000; }

/* Article Content Styles */
.article-content {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    text-transform: none; font-size: 15px; line-height: 1.8; color: #d1d5db;
    background: rgba(0,0,0,0.8); border: 4px solid var(--text-color);
    box-shadow: 6px 6px 0 var(--coin-gold); padding: 30px; margin-top: 20px;
}
.article-content h1, .article-content h2, .article-content h3 {
    font-family: 'Press Start 2P', monospace; text-transform: uppercase;
    color: var(--coin-gold); text-shadow: 2px 2px 0 var(--life-red); margin: 40px 0 20px 0;
}
.article-content h1 { font-size: 20px; text-align: center; line-height: 1.5; }
.article-content h2 { font-size: 14px; border-bottom: 2px dashed #444; padding-bottom: 10px; }
.article-content h3 { font-size: 12px; color: var(--sky-cyan); text-shadow: 1px 1px 0 #000; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 20px; }
.article-content li { margin-bottom: 10px; }
.article-content a { color: var(--sky-cyan); text-decoration: underline; text-transform: none; }
.article-content a:hover { color: var(--coin-gold); }

.breadcrumb { font-size: 10px; color: #888; margin-bottom: 20px; font-family: 'Press Start 2P', monospace; text-transform: uppercase; }
.breadcrumb a { color: var(--sky-cyan); text-decoration: none; }
.post-meta { font-size: 9px; color: #aaa; text-align: center; margin-bottom: 30px; font-family: 'Press Start 2P', monospace; }

footer { border-top: 4px dashed var(--life-red); padding-top: 30px; margin-top: 60px; text-align: center; }
footer a { margin: 0 15px; text-decoration: none; color: var(--sky-cyan); display: inline-block; margin-bottom: 15px;}
footer a:hover { color: var(--coin-gold); }
.page-container { margin: 40px 0; }

/* Floating Nav */
.floating-nav { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 10000; }
.floating-btn {
    background: var(--bg-midnight); color: var(--coin-gold); border: 4px solid var(--coin-gold);
    padding: 12px; font-family: 'Press Start 2P', monospace; font-size: 10px; text-align: center;
    text-decoration: none; box-shadow: 4px 4px 0 var(--life-red); transition: transform 0.1s; cursor: pointer;
}
.floating-btn:hover { background: var(--coin-gold); color: #000; }
.floating-btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--life-red); }

/* Next Article */
.next-article { margin-top: 40px; padding-top: 20px; border-top: 4px dashed #444; display: flex; justify-content: space-between; font-family: 'Press Start 2P', monospace; font-size: 10px; }
.next-article a { text-decoration: none; padding: 10px; border: 2px solid transparent; transition: all 0.2s; }
.next-article a:hover { border-color: var(--coin-gold); background: rgba(255, 196, 0, 0.1); }

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    header { flex-direction: column; align-items: center; text-align: center; }
    .nav-area { align-items: center; width: 100%; }
    .nav-links { flex-direction: column; width: 100%; }
    .nav-links a { width: 100%; box-sizing: border-box; }
    .btn { width: 100%; box-sizing: border-box; }
    .arcade-screen { padding: 15px; border-width: 4px; }
    .article-content { padding: 15px; font-size: 14px; }
}

/* =========================================
   CHINESE READABILITY & ACCESSIBILITY FIX
   ========================================= */
/* 将所有大段落阅读文字强制切换为现代无衬线黑体，彻底解决像素字体渲染中文模糊发虚的问题 */
body, p, li, div, span, a {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    line-height: 1.8;
}

/* 仅在核心视觉元素（如大标题、Logo、按钮、价格）保留 8-bit 街机像素字体风格 */
h1, h2, h3, .btn, .logo .text, .logo .player, .price, .nav-links a, .life-bar, .floating-btn, .next-article, .pixel-border h3, .pixel-border h4 {
    font-family: 'Press Start 2P', 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
}

/* 针对长篇资讯文章，进一步放大正文并增加行间距 */
.article-content p, .article-content li {
    font-size: 18px !important;
    line-height: 2 !important;
    color: #EDEDF4;
}

/* =========================================
   ULTIMATE FONT SCALING OVERRIDE (BRUTE-FORCE)
   ========================================= */
/* 强制覆盖所有可能存在的极小字体设定 */
html, body {
    font-size: 20px !important; /* 基准字号大幅提升 */
}

/* 全局正文文字放大 */
p, li, span, td, th, div.faq-answer, .pixel-border p {
    font-size: 20px !important;
    line-height: 1.9 !important;
}

/* 资讯文章内文 特大号阅读体验 */
.article-content p, .article-content li {
    font-size: 24px !important; 
    line-height: 2 !important;
}

/* 标题分级暴涨，确保层级依然分明 */
h1 {
    font-size: 48px !important; 
    line-height: 1.4 !important;
}
h2 {
    font-size: 36px !important; 
    line-height: 1.5 !important;
}
h3 {
    font-size: 28px !important; 
    line-height: 1.5 !important;
}
h4 {
    font-size: 24px !important; 
}

/* 导航与按钮同步放大 */
.nav-links a {
    font-size: 22px !important;
}
.btn {
    font-size: 24px !important;
    padding: 18px 30px !important;
}
.price {
    font-size: 38px !important;
}

/* 页脚与角落组件 */
footer, footer p, footer a, footer div {
    font-size: 18px !important;
}
.floating-btn {
    font-size: 20px !important;
    padding: 18px !important;
}
.next-article, .next-article a {
    font-size: 20px !important;
}

/* 移动端保护：防止大字体撑爆手机屏幕 */
@media (max-width: 768px) {
    h1 { font-size: 36px !important; }
    h2 { font-size: 28px !important; }
    .article-content p { font-size: 20px !important; }
    .btn { font-size: 20px !important; }
}
