/*
Theme Name: Gamer Pro
Theme URI: https://example.com/gamer-pro
Author: Game Dev Studio
Author URI: https://example.com
Description: 暗色科技感游戏主题，霓虹绿高亮，响应式卡片布局
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamer-pro
*/

/* ================================
   CSS Variables
================================ */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-hover: #252535;
    
    --neon-green: #00ff88;
    --neon-green-dim: #00cc6a;
    --neon-green-glow: rgba(0, 255, 136, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #707080;
    
    --border-color: #2a2a3a;
    --border-glow: rgba(0, 255, 136, 0.5);
    
    --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Consolas', 'Monaco', monospace;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* ================================
   Reset & Base
================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--neon-green);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--neon-green-dim);
    text-shadow: 0 0 10px var(--neon-green-glow);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================
   Scrollbar
================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-green-dim);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

/* ================================
   Header
================================ */
.site-header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-title span {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-glow);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu a {
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--neon-green);
    background: var(--bg-card);
    box-shadow: 0 0 15px var(--neon-green-glow);
}

/* Search Toggle */
.search-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.search-toggle:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green-glow);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ================================
   Hero Section
================================ */
.hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, #0d0d15 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, var(--neon-green-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-title .highlight {
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green-glow), 0 0 40px var(--neon-green-glow);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--neon-green);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--neon-green-dim);
    box-shadow: 0 0 20px var(--neon-green-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green-glow);
}

/* ================================
   Main Content Area
================================ */
.site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-area {
    width: 100%;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--neon-green);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.view-all {
    color: var(--neon-green);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all:hover {
    gap: 0.75rem;
}

/* ================================
   Card Grid
================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Post Card */
.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--neon-green-glow);
}

.post-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--neon-green);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--text-primary);
}

.post-title a:hover {
    color: var(--neon-green);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    flex: 1;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.read-more:hover {
    gap: 0.75rem;
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ================================
   Single Post
================================ */
.single-post {
    max-width: 900px;
    margin: 0 auto;
}

.post-header-large {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 3rem;
}

.post-categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.post-categories a {
    background: var(--neon-green);
    color: var(--bg-primary);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-title-large {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.post-meta-large {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.post-content-large {
    font-size: 1.125rem;
    line-height: 1.9;
}

.post-content-large p {
    margin-bottom: 1.5rem;
}

.post-content-large h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--neon-green);
}

.post-content-large h3 {
    font-size: 1.375rem;
    margin: 2rem 0 1rem;
}

.post-content-large ul,
.post-content-large ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content-large li {
    margin-bottom: 0.5rem;
}

.post-content-large blockquote {
    border-left: 4px solid var(--neon-green);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content-large img {
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

/* Tags */
.post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-tags-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.tag:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: var(--bg-hover);
}

/* ================================
   Sidebar
================================ */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--neon-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-secondary);
    display: block;
}

.widget a:hover {
    color: var(--neon-green);
    padding-left: 0.5rem;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.search-form input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.search-form button {
    background: var(--neon-green);
    color: var(--bg-primary);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.search-form button:hover {
    background: var(--neon-green-dim);
    box-shadow: 0 0 15px var(--neon-green-glow);
}

/* ================================
   Footer
================================ */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-widgets {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--neon-green);
}

/* ================================
   Pagination
================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.page-numbers {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.page-numbers:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.page-numbers.current {
    background: var(--neon-green);
    color: var(--bg-primary);
    border-color: var(--neon-green);
}

/* ================================
   Comments
================================ */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
}

.comment {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 700;
    color: var(--neon-green);
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.comment-content {
    color: var(--text-secondary);
}

/* Comment Form */
.comment-form {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .form-submit input {
    background: var(--neon-green);
    color: var(--bg-primary);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-bottom: 0;
}

.comment-form .form-submit input:hover {
    background: var(--neon-green-dim);
    box-shadow: 0 0 20px var(--neon-green-glow);
}

/* ================================
   404 Page
================================ */
.error-404 {
    text-align: center;
    padding: 6rem 2rem;
}

.error-code {
    font-size: 10rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 30px var(--neon-green-glow);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ================================
   Responsive
================================ */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
        border-left: 1px solid var(--border-color);
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .error-code {
        font-size: 6rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.25rem;
    }
    
    .site-logo {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 3rem 1rem;
    }
    
    .site-main {
        padding: 2rem 1rem;
    }
}

/* ================================
   Utilities
================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.neon-text {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-glow);
}

.glow-box {
    box-shadow: 0 0 20px var(--neon-green-glow);
}

/* Loading Animation */
@keyframes loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-green);
    border-top-color: transparent;
    border-radius: 50%;
    animation: loading 1s linear infinite;
    margin-left: 0.5rem;
}

/* ICP备案信息 */
.icp-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.icp-info a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.icp-info a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green-glow);
}
