/*
Theme Name: APP单页下载主题
Theme URI: 
Author: appdown
Author URI: 
Description: APP单页下载主题 - 含首页/新闻/公告/活动/攻略分类、3D轮播、截图画廊、SEO设置
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: appdown
Tags: app-download, one-column, responsive, custom-colors, custom-logo, featured-images, translation-ready
*/

/* ==================== 全局 ==================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #3a2a1a;
    background: linear-gradient(135deg, #f5e6c8 0%, #e8d4a8 100%);
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #b87333; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
::selection { background: #b87333; color: #fff; }

/* ==================== 容器 ==================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==================== Header ==================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(184, 115, 51, 0.25);
    transition: background .3s;
}
.nav { width: 100%; }
.nav-container {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 24px;
    gap: 20px;
}

/* Logo（左） */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo > a { display: flex; align-items: center; line-height: 0; }
.logo-img {
    height: 48px;
    width: 48px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.logotext { display: flex; flex-direction: column; justify-content: center; line-height: 1.25; }
.logo-text {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #f5e6c8;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,.4);
}
.logo-text a { color: inherit; }
.logo-text2 {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(245, 230, 200, .65);
    white-space: nowrap;
}

/* 导航菜单（居中） */
.nav-menu {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-menu li { margin: 0; }
.nav-menu a.nav-link,
.nav-menu > a {
    display: inline-block;
    padding: 8px 18px;
    color: #f5e6c8;
    font-size: 15px;
    border-radius: 4px;
    transition: all .2s;
    position: relative;
    white-space: nowrap;
}
.nav-menu a.nav-link:hover,
.nav-menu > a:hover,
.nav-menu li.current-menu-item > a.nav-link {
    color: #fff;
}
.nav-menu li.current-menu-item > a.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 18px; right: 18px;
    height: 2px;
    background: #d4a054;
    border-radius: 1px;
}

/* 右侧操作区（下载按钮） */
.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 24px;
    background: linear-gradient(135deg, #d4302a 0%, #a02020 100%);
    color: #fff !important;
    border-radius: 22px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(212, 48, 42, .45);
    transition: all .2s;
    white-space: nowrap;
}
.download-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(212, 48, 42, .55); color: #fff; }

/* 移动端汉堡按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    margin-left: auto;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #f5e6c8;
    border-radius: 1px;
    transition: .3s;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== Hero ==================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3a2a1a 0%, #1a1208 100%);
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}
.hero-content {
    position: absolute;
    bottom: 60px;
    left: 0; right: 0;
    z-index: 10;
}
.hero-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: end;
}
.game-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    border: 2px solid rgba(184, 115, 51, .5);
    flex-shrink: 0;
}
.game-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #b87333, #8b4513);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
}
.game-details { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.game-title {
    margin: 0 0 8px;
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 1px;
}
.game-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rating-text { font-size: 14px; color: #f5e6c8; }
.game-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px 24px;
    margin-top: 8px;
}
.info-item { font-size: 13px; }
.info-label { color: rgba(245, 230, 200, .7); }
.info-value { color: #fff; font-weight: 500; }
.stars { color: #ffd700; letter-spacing: 2px; }
.download-game-section { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.download-game-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #d4302a 0%, #a02020 100%);
    color: #fff !important;
    border-radius: 28px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(212, 48, 42, .5);
    transition: all .3s;
}
.download-game-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(212, 48, 42, .6); }
.download-game-btn.secondary { background: linear-gradient(135deg, #b87333 0%, #8b4513 100%); }
.btn-icon { fill: currentColor; }

/* ==================== 区块标题 ==================== */
.section-title {
    text-align: center;
    margin: 0 0 30px;
    position: relative;
}
.section-title h2 {
    display: inline-block;
    margin: 0;
    padding: 0 40px;
    font-size: 24px;
    color: #3a2a1a;
    position: relative;
}
.section-title h2::before,
.section-title h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #b87333;
}
.section-title h2::before { right: 100%; }
.section-title h2::after { left: 100%; }

/* ==================== News 区块 ==================== */
.news-section { padding: 60px 0; background: rgba(255, 255, 255, 0.4); }
.news-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.game-preview { position: relative; }
/* 视口：固定不动，负责圆角、裁切、比例占位 */
.preview-slideshow {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    aspect-ratio: 16 / 10;
    background: #f5e6c8;
}
/* 轨道：横向排列，JS 对此元素做 translateX */
.slideshow-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .6s ease;
}
.slide { flex: 0 0 100%; width: 100%; height: 100%; }
.preview-img { width: 100%; height: 100%; object-fit: cover; }
.slideshow-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: all .2s;
}
.dot.active { background: #d4302a; transform: scale(1.2); }

.news-content-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.news-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #f0e6d2;
    margin-bottom: 16px;
}
.tab-btn {
    padding: 8px 18px;
    background: none;
    border: none;
    color: #8b7355;
    font-size: 14px;
    border-radius: 4px 4px 0 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}
.tab-btn.active {
    color: #b87333;
    border-bottom-color: #b87333;
    font-weight: bold;
}
.news-content { min-height: 240px; }
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-list.hidden { display: none; }
.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #f0e6d2;
}
.news-item:last-child { border-bottom: none; }
.news-title {
    color: #3a2a1a;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 12px;
}
.news-title:hover { color: #b87333; }
.sub-category {
    color: #d4302a;
    font-weight: bold;
    margin-right: 6px;
    font-size: 13px;
}
.news-date { color: #a89888; font-size: 13px; flex-shrink: 0; }

/* ==================== 手游特色 3D 轮播 ==================== */
.features-section { padding: 60px 0; }
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
}
.carousel-track {
    position: relative;
    width: 100%;
    height: 600px;
    transform-style: preserve-3d;
}
.carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    aspect-ratio: 9 / 16;
    transition: all .6s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    transform: translate(-50%, -50%);
}
.carousel-slide.center {
    z-index: 10;
    transform: translate(-50%, -50%) translateZ(60px) scale(1);
}
.carousel-slide.left {
    z-index: 5;
    transform: translate(-50%, -50%) translateX(-290px) rotateY(35deg) scale(.85);
    opacity: .75;
}
.carousel-slide.right {
    z-index: 5;
    transform: translate(-50%, -50%) translateX(290px) rotateY(-35deg) scale(.85);
    opacity: .75;
}
.carousel-slide.hidden-slide {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}
.feature-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(184, 115, 51, .9);
    color: #fff;
    border: none;
    font-size: 24px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-btn:hover { background: #b87333; }

/* ==================== 视觉盛宴 ==================== */
.visual-section { padding: 60px 0; background: rgba(255, 255, 255, 0.4); }
.visual-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
}
.visual-tab-btn {
    padding: 8px 24px;
    background: #fff;
    border: 1px solid #f0e6d2;
    color: #8b7355;
    border-radius: 20px;
    transition: all .2s;
}
.visual-tab-btn.active {
    background: #b87333;
    color: #fff;
    border-color: #b87333;
}
.visual-gallery { }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    aspect-ratio: 16/10;
    transition: transform .3s;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-img { width: 100%; height: 100%; object-fit: cover; }

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.9);
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.modal.actives { display: flex; }
.modal-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.close-btn,
.nav-btn {
    position: absolute;
    background: rgba(255,255,255,.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.close-btn { top: 20px; right: 20px; }
.close-btn:hover { background: rgba(255,255,255,.4); }
.nav-btn { top: 50%; transform: translateY(-50%); }
.nav-btn.prev-btn { left: 20px; }
.nav-btn.next-btn { right: 20px; }
.counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
}

/* ==================== 关注我们 ==================== */
.social-section { padding: 60px 0; }
.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.qr-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transition: transform .3s;
}
.qr-content:hover { transform: translateY(-4px); }
.qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    border-radius: 8px;
}
.qr-info { text-align: center; }
.qr-text {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: bold;
    color: #3a2a1a;
}
.qr-subtext {
    margin: 0;
    font-size: 12px;
    color: #8b7355;
}
.linkbox {
    text-align: center;
    padding: 16px;
    background: rgba(255,255,255,.5);
    border-radius: 8px;
}
.linkbox a {
    display: inline-block;
    margin: 0 8px;
    padding: 4px 12px;
    color: #8b4513;
    font-size: 13px;
    border-bottom: 1px dashed transparent;
}
.linkbox a:hover { border-bottom-color: #b87333; }

/* ==================== Footer ==================== */
.footer {
    background: #1a1208;
    color: #c8b890;
    padding: 40px 0 20px;
    margin-top: 0;
}
.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.back-to-top {
    display: inline-block;
    margin-bottom: 20px;
    color: #b87333;
    font-size: 14px;
    padding: 6px 16px;
    border: 1px solid #b87333;
    border-radius: 20px;
    transition: all .2s;
}
.back-to-top:hover { background: #b87333; color: #fff; }
.copyright {
    margin: 6px 0;
    font-size: 12px;
    color: #8b7355;
}
.copyright.icp-line { color: #a89888; }
.footer-custom { margin-top: 12px; }
.footer-custom * { color: #c8b890; }

/* ==================== 列表页/详情页通用 ==================== */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 30px 0;
    max-width: 1200px;
    margin: 0 auto;
}
.content-area {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.breadcrumb {
    font-size: 13px;
    color: #8b7355;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0e6d2;
}
.breadcrumb a { color: #b87333; }
.breadcrumb a:hover { text-decoration: underline; }
.page-header h1 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #3a2a1a;
    padding-bottom: 12px;
    border-bottom: 2px solid #b87333;
}
.post-title {
    margin: 0 0 12px;
    font-size: 24px;
    color: #3a2a1a;
    line-height: 1.4;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #8b7355;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0e6d2;
}
.post-content {
    font-size: 15px;
    line-height: 1.8;
    color: #3a2a1a;
}
.post-content p { margin: 0 0 16px; }
.post-content h2, .post-content h3 { margin: 24px 0 12px; color: #3a2a1a; }
.post-content img { border-radius: 8px; margin: 16px 0; }
.post-content a { color: #b87333; text-decoration: underline; }
.post-content blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    background: #f5e6c8;
    border-left: 4px solid #b87333;
    color: #5a4a3a;
}
.post-content code {
    background: #f5e6c8;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}
.post-content pre {
    background: #1a1208;
    color: #f5e6c8;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
}
.post-content pre code { background: none; color: inherit; }
.post-tags { }
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0e6d2;
}
.post-navigation a {
    display: inline-block;
    max-width: 48%;
    padding: 8px 16px;
    background: #f5e6c8;
    border-radius: 6px;
    font-size: 13px;
    color: #3a2a1a;
}
.post-navigation a:hover { background: #b87333; color: #fff; }

/* 归档列表 */
.archive-list { }
.archive-list .news-item { padding: 14px 0; }
.archive-list .news-item .news-title { font-size: 15px; }

/* ==================== 侧边栏 ==================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.widget-title {
    margin: 0 0 16px;
    font-size: 16px;
    color: #3a2a1a;
    padding-bottom: 10px;
    border-bottom: 2px solid #b87333;
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0e6d2;
    font-size: 14px;
}
.widget li:last-child { border-bottom: none; }
.widget li a { color: #3a2a1a; }
.widget li a:hover { color: #b87333; }
.search-form {
    display: flex;
    gap: 6px;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #f0e6d2;
    border-radius: 4px;
    font-size: 14px;
    background: #fafafa;
}
.search-submit {
    padding: 8px 16px;
    background: #b87333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

/* ==================== 文章卡片 ==================== */
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.post-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-content { padding: 16px; }
.post-title { margin: 0 0 8px; font-size: 16px; line-height: 1.4; }
.post-title a { color: #3a2a1a; }
.post-title a:hover { color: #b87333; }
.post-excerpt {
    margin: 0 0 12px;
    font-size: 13px;
    color: #8b7355;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #a89888;
}
.post-meta .cat a { color: #b87333; }

/* ==================== 404 ==================== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}
.error-404 h1 {
    font-size: 72px;
    color: #b87333;
    margin: 0 0 20px;
}
.error-404 p { font-size: 18px; color: #8b7355; margin-bottom: 30px; }
.error-404 .btn {
    display: inline-block;
    padding: 10px 30px;
    background: #b87333;
    color: #fff;
    border-radius: 24px;
    font-size: 14px;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-block;
    padding: 8px 20px;
    background: #b87333;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}
.btn:hover { background: #8b4513; }

/* ==================== 入场动画 ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s, transform .8s;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    .game-icon { margin: 0 auto; }
    .game-info-grid { grid-template-columns: repeat(2, 1fr); }
    .news-container { grid-template-columns: 1fr; }
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .social-grid { grid-template-columns: repeat(2, 1fr); }

    /* 手游特色：笔记本/平板缩小一档，保证两侧卡完整露出 */
    .carousel-track { height: 460px; }
    .carousel-slide { width: 240px; }
    .carousel-slide.left  { transform: translate(-50%,-50%) translateX(-210px) rotateY(35deg) scale(.85); }
    .carousel-slide.right { transform: translate(-50%,-50%) translateX(210px) rotateY(-35deg) scale(.85); }
}

@media (max-width: 768px) {
    .nav-container { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
    .logotext { display: none; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(0, 0, 0, .98);
        padding: 12px 16px;
        gap: 4px;
        border-bottom: 1px solid rgba(184, 115, 51, .25);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu ul,
    .nav-menu li {
        display: block;
        width: 100%;
    }
    .nav-menu a.nav-link,
    .nav-menu > a {
        display: block;
        padding: 12px 16px;
        border-radius: 4px;
    }
    .nav-menu li.current-menu-item > a.nav-link::after { display: none; }
    .header-actions { display: none; }
    .mobile-menu-toggle { display: flex; }

    .hero { min-height: 500px; height: 80vh; }
    .game-title { font-size: 24px; }
    .game-icon { width: 90px; height: 90px; }
    .game-icon-img { font-size: 28px; }
    .download-game-btn { padding: 12px 28px; font-size: 14px; }

    .section-title h2 { font-size: 20px; }
    .news-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .tab-btn {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 13px;
    }
    .gallery-grid { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .qr-code { width: 100px; height: 100px; }

    .content-area { padding: 20px; }
    .post-title { font-size: 20px; }
    .post-content { font-size: 14px; }
    .post-navigation { flex-direction: column; gap: 8px; }
    .post-navigation a { max-width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero { min-height: 450px; }
    .game-title { font-size: 20px; }
    .game-info-grid { grid-template-columns: 1fr; gap: 4px; }
    .social-grid { grid-template-columns: 1fr; }
    .footer { padding: 24px 0 16px; }

    /* 手游特色：手机只突出中间卡，两侧卡露出一小边 */
    .carousel-track { height: 360px; }
    .carousel-slide { width: 190px; }
    .carousel-slide.left  { transform: translate(-50%,-50%) translateX(-135px) rotateY(35deg) scale(.8); opacity: .5; }
    .carousel-slide.right { transform: translate(-50%,-50%) translateX(135px) rotateY(-35deg) scale(.8); opacity: .5; }
}

/* ==================== 工具类 ==================== */
.hidden { display: none !important; }
.text-center { text-align: center; }
