
/*
 * 小旋风蜘蛛池Pro模板 - 像素街机 (Pixel Arcade)
 * Author: Manus AI
 * Version: 1.0
 * Description: 8bit像素游戏复古风格模板
 */

@font-face {
    font-family: 'PixelFont';
    src: url('../fonts/pixel-font.woff2') format('woff2'),
         url('../fonts/pixel-font.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #0a0a2e;
    --primary-green: #33ff33;
    --primary-red: #ff3333;
    --primary-yellow: #ffff33;
    --primary-blue: #3333ff;
    --primary-white: #ffffff;
    --font-family-pixel: 'PixelFont', monospace, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--primary-white);
    font-family: var(--font-family-pixel);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 扫描线 CRT 效果 */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.8; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 像素化边框效果 */
.pixel-border {
    box-shadow: 
        0 2px 0 0 var(--primary-green),
        0 -2px 0 0 var(--primary-green),
        2px 0 0 0 var(--primary-green),
        -2px 0 0 0 var(--primary-green),
        2px 2px 0 0 var(--primary-green),
        -2px -2px 0 0 var(--primary-green),
        2px -2px 0 0 var(--primary-green),
        -2px 2px 0 0 var(--primary-green);
    border: 2px solid var(--bg-color);
    image-rendering: pixelated;
}

.pixel-border-red {
    box-shadow: 
        0 2px 0 0 var(--primary-red),
        0 -2px 0 0 var(--primary-red),
        2px 0 0 0 var(--primary-red),
        -2px 0 0 0 var(--primary-red);
    border: 2px solid var(--bg-color);
}

.pixel-border-blue {
    box-shadow: 
        0 2px 0 0 var(--primary-blue),
        0 -2px 0 0 var(--primary-blue),
        2px 0 0 0 var(--primary-blue),
        -2px 0 0 0 var(--primary-blue);
    border: 2px solid var(--bg-color);
}

a {
    color: var(--primary-yellow);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-white);
    text-shadow: 0 0 5px var(--primary-yellow);
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 随机像素块背景 */
#pixel-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.pixel {
    position: absolute;
    width: 4px;
    height: 4px;
    animation: flash 2s infinite alternate;
}

@keyframes flash {
    0% { opacity: 0; }
    50% { opacity: 0.7; }
    100% { opacity: 0; }
}
/* Header */
.header {
    background-color: rgba(10, 10, 46, 0.8);
    padding: 10px 0;
    border-bottom: 2px solid var(--primary-blue);
    box-shadow: 0 2px 0 0 var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 120px;
    height: auto;
    margin-right: 15px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-yellow);
    text-shadow: 2px 2px 0 var(--primary-red);
}

.navigation ul {
    list-style: none;
    display: flex;
}

.navigation li a {
    padding: 10px 15px;
    font-size: 18px;
    color: var(--primary-white);
    transition: all 0.2s ease;
}

.navigation li a:hover {
    background-color: var(--primary-green);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--primary-green);
    text-shadow: none;
}

.search-container .search-input {
    background-color: var(--bg-color);
    border: 2px solid var(--primary-blue);
    color: var(--primary-white);
    padding: 8px 12px;
    font-family: var(--font-family-pixel);
    width: 200px;
}

.search-container .search-button {
    background-color: var(--primary-red);
    border: 2px solid var(--primary-red);
    color: var(--primary-white);
    padding: 8px 15px;
    cursor: pointer;
    font-family: var(--font-family-pixel);
    margin-left: -5px;
}

.search-container .search-button:hover {
    background-color: var(--primary-yellow);
    color: var(--bg-color);
    border-color: var(--primary-yellow);
}
/* Main Content & Sections */
.main-content {
    padding: 40px 0;
}

.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0 var(--primary-blue);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::before, .section-title::after {
    content: '★';
    color: var(--primary-yellow);
    font-size: 20px;
    margin: 0 15px;
    animation: blink 1s infinite;
}

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

/* Horizontal Scroll Container */
.horizontal-scroll-wrapper {
    position: relative;
}

.horizontal-scroll-container {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    padding-bottom: 20px; /* For scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--bg-color);
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-color);
    border: 1px solid var(--primary-blue);
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-green);
    border-radius: 4px;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-red);
    color: var(--primary-white);
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    font-family: var(--font-family-pixel);
}

.scroll-arrow.left {
    left: -20px;
}

.scroll-arrow.right {
    right: -20px;
}

/* Card Styles */
.card {
    flex: 0 0 280px;
    margin-right: 20px;
    background-color: #14143c;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 
        0 4px 0 0 var(--primary-yellow),
        0 -4px 0 0 var(--primary-yellow),
        4px 0 0 0 var(--primary-yellow),
        -4px 0 0 0 var(--primary-yellow);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-blue);
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    color: var(--primary-white);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
    height: 60px;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--primary-green);
}
/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 64px;
    color: var(--primary-yellow);
    text-shadow: 4px 4px 0 var(--primary-red), 8px 8px 0 var(--primary-blue);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-subtitle {
    font-size: 24px;
    color: var(--primary-white);
}

/* Floating Stars/Notes */
.floating-element {
    position: absolute;
    font-size: 20px;
    color: var(--primary-white);
    animation: float-up 10s infinite linear;
    opacity: 0;
}

@keyframes float-up {
    0% { transform: translateY(100vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh); opacity: 0; }
}

/* List Page */
.list-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.list-card {
    width: 100%;
    background-color: #14143c;
}

.list-card .card-image {
    height: 200px;
}

/* Show Page */
.show-container {
    display: flex;
    gap: 30px;
}

.show-main {
    flex: 3;
}

.show-sidebar {
    flex: 1;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-green);
}

.article-title {
    font-size: 36px;
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

.article-meta {
    margin-bottom: 20px;
    color: #ccc;
}

.article-content {
    line-height: 1.8;
}

.article-content img {
    display: block;
    margin: 20px auto;
    max-width: 80%;
    border: 4px solid var(--primary-blue);
}

.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background-color: var(--primary-blue);
    color: var(--primary-white);
    border: 2px solid var(--primary-blue);
}

.pagination a:hover, .pagination .current {
    background-color: var(--primary-green);
    color: var(--bg-color);
}

/* Sidebar */
.sidebar {
    padding-left: 20px;
}

.sidebar-widget {
    margin-bottom: 30px;
    background-color: #14143c;
    padding: 20px;
}

.widget-title {
    font-size: 20px;
    color: var(--primary-green);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
}

.widget-list li {
    margin-bottom: 10px;
    list-style: none;
}
/* Footer */
.footer {
    background-color: #05051a;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 4px solid var(--primary-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-heading {
    font-size: 20px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.footer-links li {
    margin-bottom: 8px;
    list-style: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .list-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .show-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    .navigation ul {
        margin: 15px 0;
    }
    .list-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .list-container {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .card {
        flex-basis: 90%;
    }
}

/* Anti-Interference CSS */
.xf7k2m { color: transparent; }
.qw3p8n { font-size: 0; }
.zt9v1x { display: none; }
