/* ================================
   VPS HUNTER - 像素游戏风格主题
   ================================ */

/* 颜色主题变量 - 默认黄绿色 */
:root {
    /* 黄绿色主题 */
    --primary: #9ECF30;
    --primary-dark: #7AA321;
    --primary-light: #C5E86C;
    --secondary: #FFD700;
    --accent: #FF6B9D;

    --bg-dark: #1a1a2e;
    --bg-medium: #16213e;
    --bg-light: #0f3460;

    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #6c6c6c;

    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;

    --pixel-border: 4px;
    --shadow-pixel: 4px 4px 0 rgba(0, 0, 0, 0.8);
}

/* 青色主题 */
[data-color="cyan"] {
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --primary-light: #22d3ee;
    --secondary: #8b5cf6;
}

/* 洋红主题 */
[data-color="magenta"] {
    --primary: #ec4899;
    --primary-dark: #db2777;
    --primary-light: #f472b6;
    --secondary: #fbbf24;
}

/* 橙色主题 */
[data-color="orange"] {
    --primary: #fb923c;
    --primary-dark: #ea580c;
    --primary-light: #fdba74;
    --secondary: #fbbf24;
}

/* 红色主题 */
[data-color="red"] {
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --primary-light: #f87171;
    --secondary: #fbbf24;
}

/* 紫色主题 */
[data-color="purple"] {
    --primary: #a855f7;
    --primary-dark: #9333ea;
    --primary-light: #c084fc;
    --secondary: #ec4899;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

body {
    font-family: 'VT323', monospace;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 像素化背景 */
.pixel-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        ),
        linear-gradient(
            135deg,
            var(--bg-dark) 0%,
            var(--bg-medium) 50%,
            var(--bg-light) 100%
        );
    z-index: -2;
    animation: bgScroll 20s linear infinite;
}

@keyframes bgScroll {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* CRT 扫描线效果 */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    z-index: 9999;
    animation: scanlineMove 0.1s linear infinite;
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* 颜色选择器 */
.color-picker-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
}

.color-picker-btn {
    width: 60px;
    height: 60px;
    background: var(--bg-medium);
    border: 4px solid var(--primary);
    cursor: pointer;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
    box-shadow: var(--shadow-pixel);
}

.color-picker-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
}

.color-picker-menu {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--bg-medium);
    border: 4px solid var(--primary);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-pixel);
}

.color-picker-menu.active {
    display: flex;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.color-option {
    width: 50px;
    height: 50px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--bg-light);
    border: 2px solid var(--primary);
    transition: all 0.1s;
}

.color-option:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* 像素容器 */
.pixel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 像素导航栏 */
.pixel-nav {
    background: var(--bg-medium);
    border-bottom: 4px solid var(--primary);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
}

.pixel-nav .pixel-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pixel-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pixel-icon {
    font-size: 32px;
}

.pixel-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: var(--primary);
    text-shadow: 2px 2px 0 var(--bg-dark);
}

.pixel-menu {
    display: flex;
    gap: 20px;
}

.pixel-menu-item {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 20px;
    background: var(--bg-light);
    border: 3px solid var(--primary);
    transition: all 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pixel-menu-item:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
}

.menu-icon {
    font-size: 16px;
}

.mobile-menu-btn {
    display: none;
    font-size: 32px;
    background: none;
    border: 3px solid var(--primary);
    color: var(--primary);
    padding: 5px 15px;
    cursor: pointer;
}

/* Hero 区域 */
.hero-section {
    padding: 120px 20px 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.pixel-art-server {
    text-align: center;
    margin-bottom: 30px;
}

.server-art {
    font-family: 'Press Start 2P';
    font-size: 14px;
    color: var(--primary);
    line-height: 1.2;
    display: inline-block;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 4px solid var(--primary);
    animation: textGlitch 0.5s infinite;
}

@keyframes textGlitch {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

.pixel-dialog-box {
    background: var(--bg-medium);
    border: 6px solid var(--primary);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
    position: relative;
}

.pixel-dialog-box::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--primary);
}

.dialog-header {
    background: var(--primary);
    padding: 10px;
    margin: -30px -30px 20px -30px;
    text-align: center;
}

.dialog-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: var(--bg-dark);
}

.dialog-content {
    padding: 20px;
}

.pixel-hero-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.pixel-hero-text {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* 关键信息展示 */
.hero-key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.key-point {
    background: var(--bg-light);
    border: 3px solid var(--primary);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.key-point:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
}

.key-icon {
    font-size: 24px;
}

.key-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    line-height: 1.4;
}

/* 像素按钮 */
.pixel-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    padding: 15px 30px;
    background: var(--bg-light);
    border: 4px solid var(--primary);
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.1s;
    box-shadow: var(--shadow-pixel);
}

.pixel-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
}

.pixel-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

.pixel-btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.pixel-btn-secondary {
    background: transparent;
}

.pixel-button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 像素角色装饰 */
.pixel-characters {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 40px;
    pointer-events: none;
}

.pixel-character.char-horizontal {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
}

.pixel-character.char-vertical {
    position: absolute;
    right: 160px;
    bottom: 0;
}

/* 区块标题 */
.section-title-box {
    text-align: center;
    margin-bottom: 50px;
}

.pixel-section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 28px;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: var(--bg-medium);
    border: 6px solid var(--primary);
    box-shadow: var(--shadow-pixel);
}

.title-icon {
    font-size: 32px;
}

/* 功能特色区域 */
.features-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.pixel-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.pixel-skill-card {
    background: var(--bg-medium);
    border: 4px solid var(--primary);
    padding: 25px;
    position: relative;
    transition: all 0.2s;
    box-shadow: var(--shadow-pixel);
    cursor: pointer;
}

.pixel-skill-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
    border-color: var(--primary-light);
}

.skill-icon-box {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 40px;
}

.skill-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 15px;
}

.skill-level {
    height: 20px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.level-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
    animation: levelGrow 1.5s ease;
    position: relative;
}

.level-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shine 2s infinite;
}

@keyframes levelGrow {
    from { width: 0; }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.skill-desc {
    font-size: 18px;
    color: var(--text-secondary);
}

.skill-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--bg-dark);
    padding: 5px 15px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    border: 2px solid var(--bg-dark);
}

/* 服务商展示区域 */
.providers-section {
    padding: 80px 20px;
}

/* 统计信息网格 */
.pixel-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pixel-stat-card {
    background: var(--bg-medium);
    border: 4px solid var(--primary);
    padding: 25px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-pixel);
    transition: all 0.2s;
    overflow: hidden;
}

.pixel-stat-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
}

.pixel-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.stat-number {
    font-family: 'Press Start 2P', cursive;
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 10px;
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.stat-icon {
    font-size: 32px;
    opacity: 0.3;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.pixel-filter-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pixel-tab {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    padding: 12px 25px;
    background: var(--bg-light);
    border: 4px solid var(--primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pixel-tab:hover,
.pixel-tab.active {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
}

.tab-icon {
    font-size: 16px;
}

/* 城堡卡片网格 */
.pixel-castle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.pixel-castle-card {
    background: var(--bg-medium);
    border: 4px solid var(--primary);
    padding: 20px;
    transition: all 0.2s;
    box-shadow: var(--shadow-pixel);
    cursor: pointer;
}

.pixel-castle-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
}

.castle-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.castle-icon {
    font-size: 40px;
}

.castle-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: var(--primary);
    flex-grow: 1;
}

.castle-rank {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    padding: 5px 15px;
    border: 3px solid;
}

.rank-ss {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--bg-dark);
    border-color: #ffd700;
}

.rank-s {
    background: linear-gradient(135deg, #a855f7, #c084fc);
    color: white;
    border-color: #a855f7;
}

.rank-a {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    border-color: #3b82f6;
}

.rank-b {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border-color: #10b981;
}

.castle-stats {
    margin-bottom: 15px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 18px;
}

.stat-icon {
    font-size: 20px;
}

.stat-warning {
    color: var(--warning);
}

.stat-info {
    color: var(--info);
}

.castle-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pixel-tag {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    padding: 5px 12px;
    border: 2px solid;
}

.tag-gold {
    background: #ffd700;
    color: var(--bg-dark);
    border-color: #ffd700;
}

.tag-cyan {
    background: #06b6d4;
    color: white;
    border-color: #06b6d4;
}

.tag-lime {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.tag-green {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.tag-orange {
    background: #fb923c;
    color: white;
    border-color: #fb923c;
}

.tag-red {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* 运营商指南区域 */
.guide-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.pixel-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.pixel-map-card {
    background: var(--bg-medium);
    border: 4px solid var(--primary);
    padding: 25px;
    transition: all 0.2s;
    box-shadow: var(--shadow-pixel);
}

.pixel-map-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
}

.map-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.map-icon {
    font-size: 40px;
}

.map-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: var(--primary);
}

.map-content {
    margin-bottom: 20px;
}

.quest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background: var(--bg-light);
    border-left: 4px solid;
    font-size: 18px;
}

.quest-success {
    border-color: var(--success);
}

.quest-warning {
    border-color: var(--warning);
}

.quest-danger {
    border-color: var(--danger);
}

.quest-icon {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
}

.quest-success .quest-icon {
    color: var(--success);
}

.quest-warning .quest-icon {
    color: var(--warning);
}

.quest-danger .quest-icon {
    color: var(--danger);
}

.map-reward {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 15px;
    text-align: center;
    border: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reward-icon {
    font-size: 24px;
}

.reward-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--bg-dark);
}

/* CTA 区域 */
.cta-section {
    padding: 80px 20px;
}

.pixel-quest-box {
    background: var(--bg-medium);
    border: 6px solid var(--primary);
    padding: 40px;
    text-align: center;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.quest-header {
    margin-bottom: 30px;
}

.quest-icon-large {
    font-size: 60px;
    display: block;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.quest-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    color: var(--primary);
}

.quest-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.quest-hint {
    font-size: 16px;
    color: var(--info);
    margin-top: 15px;
}

/* 快速导航 */
.quick-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.quick-nav-item {
    background: var(--bg-light);
    border: 3px solid var(--primary);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quick-nav-item:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
}

.nav-icon {
    font-size: 32px;
}

.nav-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: inherit;
}

.quick-nav-item:hover .nav-label {
    color: var(--bg-dark);
}

.pixel-btn-quest {
    font-size: 16px;
    padding: 20px 40px;
}

/* 页脚 */
.pixel-footer {
    background: var(--bg-medium);
    border-top: 4px solid var(--primary);
    padding: 50px 20px 30px;
    margin-top: 80px;
    position: relative;
}

.pixel-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary) 20%,
        var(--primary) 80%,
        transparent
    );
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pixel-logo-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.footer-link {
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--bg-light);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
}

.footer-divider {
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--bg-light) 20%,
        var(--bg-light) 80%,
        transparent
    );
    margin-bottom: 20px;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-badges {
    display: flex;
    gap: 12px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-light);
    border: 2px solid var(--primary);
    font-size: 12px;
    font-family: 'Press Start 2P', cursive;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-badge:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--primary-dark);
}

.footer-badge svg {
    flex-shrink: 0;
}

.footer-separator {
    display: none;
}

/* 响应式 Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-links,
    .footer-stats {
        align-items: center;
    }

    .stat-item {
        justify-content: center;
        gap: 20px;
    }

    .footer-copyright {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .footer-separator {
        display: none;
    }
}

/* 隐藏元素 */
.pixel-castle-card.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pixel-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-medium);
        border: 4px solid var(--primary);
        padding: 20px;
        flex-direction: column;
        gap: 10px;
    }

    .pixel-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .pixel-hero-title {
        font-size: 18px;
    }

    .pixel-section-title {
        font-size: 20px;
        padding: 15px 25px;
    }

    .pixel-skills-grid,
    .pixel-castle-grid,
    .pixel-map-grid {
        grid-template-columns: 1fr;
    }

    .pixel-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-key-points {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-nav {
        grid-template-columns: 1fr;
    }

    .color-picker-container {
        top: auto;
        bottom: 20px;
        right: 20px;
    }

    .pixel-button-group {
        flex-direction: column;
    }

    .server-art {
        font-size: 10px;
    }

    .stat-number {
        font-size: 36px;
    }

    .pixel-dialog-box {
        padding: 20px;
    }

    .dialog-header {
        margin: -20px -20px 20px -20px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .pixel-stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-key-points {
        grid-template-columns: 1fr;
    }

    .pixel-tab {
        font-size: 10px;
        padding: 10px 15px;
    }
}

/* 无障碍 - 尊重减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scanlines {
        display: none;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* ================================
   SVG 图标样式
   ================================ */

/* Logo SVG 样式 */
.pixel-logo-svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* Logo 动画效果 */
.logo-ring-outer {
    animation: ringPulse 3s ease-in-out infinite;
    transform-origin: center;
}

.logo-ring-inner {
    animation: ringRotate 8s linear infinite;
    transform-origin: center;
}

.logo-scan {
    animation: scanMove 1.5s ease-in-out infinite;
    transform-origin: center;
}

.logo-center {
    animation: centerPulse 1s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scanMove {
    0%, 100% { transform: translateY(-6px); opacity: 0.3; }
    50% { transform: translateY(6px); opacity: 0.8; }
}

@keyframes centerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.logo-body {
    fill: var(--bg-medium);
    stroke: var(--primary);
    stroke-width: 1;
}

.logo-screen {
    fill: var(--primary-dark);
    stroke: var(--primary-light);
    stroke-width: 0.5;
}

.logo-power {
    fill: var(--primary);
}

.logo-crosshair {
    fill: var(--primary-light);
}

/* 调色板图标 */
.pixel-palette-icon {
    width: 20px;
    height: 20px;
}

/* 颜色选择器圆点 */
.color-dot {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-dot:hover {
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.color-lime { background: #9ECF30; }
.color-cyan { background: #06b6d4; }
.color-magenta { background: #ec4899; }
.color-orange { background: #fb923c; }
.color-red { background: #ef4444; }
.color-purple { background: #a855f7; }

/* 关键点图标 SVG */
.key-icon svg {
    width: 20px;
    height: 20px;
}

/* 统计图标 SVG */
.stat-icon svg {
    width: 16px;
    height: 16px;
}

/* 标签图标 SVG */
.tab-icon svg {
    width: 12px;
    height: 12px;
}

/* 城堡图标 SVG */
.castle-icon svg {
    width: 24px;
    height: 24px;
}

/* 服务商卡片状态图标 */
.stat-row .stat-icon svg {
    width: 12px;
    height: 12px;
}

/* 地图图标 SVG */
.map-icon svg {
    width: 32px;
    height: 32px;
}

/* 奖励图标 SVG */
.reward-icon svg {
    width: 16px;
    height: 16px;
}

/* 快速导航图标 SVG */
.nav-icon svg {
    width: 20px;
    height: 20px;
}

/* 任务图标大号 SVG */
.quest-icon-large svg {
    width: 32px;
    height: 32px;
    display: block;
}

/* 标题图标 SVG */
.title-icon svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* 按钮图标 SVG */
.btn-icon svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* 像素角色装饰 */
.pixel-character {
    font-size: 48px;
    position: relative;
}

/* 横向跳动 */
.pixel-character.char-horizontal {
    animation: bounceHorizontal 1.5s ease-in-out infinite;
}

/* 纵向跳动 */
.pixel-character.char-vertical {
    animation: bounceVertical 1.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes bounceHorizontal {
    0%, 100% { transform: translateX(-50%); }
    25% { transform: translateX(calc(-50% - 30px)); }
    75% { transform: translateX(calc(-50% + 30px)); }
}

@keyframes bounceVertical {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-25px) rotate(-10deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-12px) rotate(10deg); }
}


@keyframes pixel-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}
