/* 冬日狂想曲 Winter Memories - 像素风格响应式样式文件 */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 冬季像素风主色调 */
    --primary-color: #6b9bd2;
    --secondary-color: #4a7ba7;
    --accent-color: #87ceeb;
    --winter-blue: #b0e0e6;
    --snow-white: #f8f8ff;
    --warm-orange: #ffa500;
    --cozy-brown: #8b4513;
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --text-light: #7f8c8d;
    --background-light: #f0f8ff;
    --shadow: rgba(107, 155, 210, 0.15);
    --shadow-hover: rgba(107, 155, 210, 0.25);
    --shadow-dark: rgba(0, 0, 0, 0.1);

    /* 像素风渐变色 */
    --gradient-primary: linear-gradient(135deg, #6b9bd2, #4a7ba7);
    --gradient-winter: linear-gradient(135deg, #b0e0e6, #87ceeb);
    --gradient-warm: linear-gradient(135deg, #ffa500, #ff8c00);
    --gradient-background: linear-gradient(135deg, #f0f8ff, #e6f3ff);

    /* 字体 */
    --font-primary: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Segoe UI", Arial, sans-serif;
    --font-pixel: "Courier New", "Monaco", "Menlo", monospace;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* 边距和尺寸 */
    --border-radius: 8px;
    --border-radius-small: 4px;
    --border-radius-large: 16px;
    --container-max-width: 1200px;
    --navbar-height: 70px;

    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* 像素风效果 */
    --pixel-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
    --pixel-border: 2px solid #4a7ba7;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--gradient-background);
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 加载屏幕 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity var(--transition-slow);
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: var(--snow-white);
}

.loading-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: pixelFloat 2s ease-in-out infinite;
    image-rendering: pixelated;
}

.loading-text {
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 20px;
    font-family: var(--font-pixel);
}

.loading-progress {
    width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-small);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--snow-white);
    width: 0%;
    animation: loadingProgress 2s ease-in-out infinite;
}

@keyframes pixelFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(248, 248, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(248, 248, 255, 0.98);
    box-shadow: 0 4px 12px var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--font-pixel);
}

.nav-logo img {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    padding: 8px 12px;
    border-radius: var(--border-radius-small);
    position: relative;
    transition: all var(--transition-fast);
    font-family: var(--font-pixel);
}

.nav-link:hover,
.nav-link.active {
    color: var(--snow-white);
    background: var(--primary-color);
    box-shadow: var(--pixel-shadow);
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 英雄区域 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -2;
}

.snow-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 100px 100px, 80px 80px, 60px 60px;
    animation: snowFall 20s linear infinite;
    z-index: -1;
}

.winter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(176, 224, 230, 0.1) 25%,
            transparent 25%,
            transparent 75%,
            rgba(176, 224, 230, 0.1) 75%);
    background-size: 40px 40px;
    z-index: -1;
}

@keyframes snowFall {
    0% {
        transform: translateY(-100px);
    }

    100% {
        transform: translateY(100vh);
    }
}

.hero-content {
    color: var(--snow-white);
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    font-family: var(--font-pixel);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font-pixel);
    text-transform: uppercase;
}

.btn-primary {
    background: var(--snow-white);
    color: var(--primary-color);
    border-color: var(--snow-white);
    box-shadow: var(--pixel-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    background: var(--warm-orange);
    color: var(--snow-white);
}

.btn-secondary {
    background: transparent;
    color: var(--snow-white);
    border-color: var(--snow-white);
}

.btn-secondary:hover {
    background: var(--snow-white);
    color: var(--primary-color);
    box-shadow: var(--pixel-shadow);
}

.download-icon,
.arrow-up {
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.arrow-up {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E") no-repeat center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 5px;
    font-family: var(--font-pixel);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 章节样式 */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    font-family: var(--font-pixel);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* 关于游戏区域 */
.about {
    background: var(--snow-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: var(--font-pixel);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.game-info {
    margin-top: 30px;
    background: var(--background-light);
    padding: 25px;
    border-radius: var(--border-radius);
    border: var(--pixel-border);
    box-shadow: var(--pixel-shadow);
}

.info-item {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: var(--text-primary);
    font-family: var(--font-pixel);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-large);
    border: var(--pixel-border);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-normal);
    image-rendering: pixelated;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* 游戏特色 */
.features {
    background: var(--gradient-background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--snow-white);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border: var(--pixel-border);
    box-shadow: var(--pixel-shadow);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-pixel);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 游戏截图 */
.gallery {
    background: var(--snow-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    border: var(--pixel-border);
    box-shadow: var(--pixel-shadow);
    transition: transform var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    image-rendering: pixelated;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--snow-white);
    padding: 20px;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: var(--font-pixel);
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 角色介绍 */
.characters {
    background: var(--gradient-background);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.character-card {
    background: var(--snow-white);
    padding: 30px;
    border-radius: var(--border-radius-large);
    text-align: center;
    border: var(--pixel-border);
    box-shadow: var(--pixel-shadow);
    transition: all var(--transition-normal);
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.2);
}

.character-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gradient-winter);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-color);
}

.avatar-placeholder {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    font-family: var(--font-pixel);
}

.character-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: var(--font-pixel);
}

.character-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 系统要求 */
.system-requirements {
    background: var(--snow-white);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.requirement-card {
    background: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius-large);
    border: var(--pixel-border);
    box-shadow: var(--pixel-shadow);
    position: relative;
    transition: transform var(--transition-normal);
}

.requirement-card:hover {
    transform: translateY(-3px);
}

.requirement-card.recommended {
    background: var(--gradient-winter);
    color: var(--text-primary);
}

.requirement-card.recommended::before {
    content: "推荐";
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--warm-orange);
    color: var(--snow-white);
    padding: 5px 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-pixel);
    box-shadow: var(--pixel-shadow);
}

.requirement-card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-family: var(--font-pixel);
}

.requirement-card ul {
    list-style: none;
}

.requirement-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.requirement-card li:last-child {
    border-bottom: none;
}

.requirement-card li strong {
    font-family: var(--font-pixel);
}

/* 更新日志 */
.update-log {
    background: var(--background-light);
    padding: 40px;
    border-radius: var(--border-radius-large);
    border: var(--pixel-border);
    box-shadow: var(--pixel-shadow);
    margin-top: 40px;
}

.update-log h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-family: var(--font-pixel);
}

.log-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.log-section h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: var(--font-pixel);
}

.log-section ul {
    list-style: none;
}

.log-section li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.log-section li::before {
    content: '❄️';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* 下载区域 */
.download {
    background: var(--gradient-primary);
    color: var(--snow-white);
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-pixel);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.download-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.download-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.download-stats {
    display: flex;
    gap: 60px;
}

.download-stats .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.download-stats .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 5px;
    font-family: var(--font-pixel);
}

.download-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--snow-white);
    color: var(--primary-color);
    padding: 20px 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-pixel);
    text-transform: uppercase;
    border: 3px solid var(--snow-white);
    box-shadow: var(--pixel-shadow);
    transition: all var(--transition-normal);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
    background: var(--warm-orange);
    color: var(--snow-white);
}

.platform-support {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.platform-icon {
    font-size: 1.2rem;
}

.download-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
}

/* 页脚 */
.footer {
    background: var(--text-primary);
    color: var(--snow-white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-pixel);
}

.footer-logo img {
    width: 30px;
    height: 30px;
    image-rendering: pixelated;
}

.footer-info {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    color: var(--snow-white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    font-family: var(--font-pixel);
}

.footer-links a:hover {
    opacity: 1;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--snow-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--pixel-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .log-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: var(--snow-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left var(--transition-normal);
        box-shadow: 4px 0 8px var(--shadow);
        border-right: var(--pixel-border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .download-stats {
        flex-direction: column;
        gap: 20px;
    }

    .platform-support {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .requirement-card {
        padding: 25px 20px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* 辅助功能 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式 */
@media print {

    .navbar,
    .back-to-top,
    .download {
        display: none;
    }

    body {
        background: white;
    }

    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --shadow: rgba(0, 0, 0, 0.4);
        --shadow-hover: rgba(0, 0, 0, 0.5);
        --pixel-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
    }

    .feature-card,
    .requirement-card,
    .gallery-item,
    .character-card {
        border-width: 3px;
    }
}