/*
Theme Name: 轻蜂游戏加速器
Theme URI: https://qfgames.cn
Author: QFGame Team
Author URI: https://qfgames.cn
Description: 专为游戏加速器官网设计的现代暗色系WordPress主题，采用TailwindCSS构建，支持响应式布局，具有电竞风格的视觉设计。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qfgame
Tags: gaming, dark, tailwindcss, responsive, custom-menu, featured-images, translation-ready
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ==========================================================================
   CSS Variables - 主题颜色变量
   ========================================================================== */
:root {
    --brand-blue: #3b82f6;
    --brand-cyan: #38bdf8;
    --brand-yellow: #facc15;
    --dark-bg: #1f2937;
    --dark-card: #2d3748;
    --darker-bg: #111827;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
}

/* ==========================================================================
   Base Styles - 基础样式
   ========================================================================== */
body {
    font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-primary);
}

/* ==========================================================================
   Hero Section - 首屏样式
   ========================================================================== */
.hero-section {
    height: 80vh;
    min-height: 690px;
    max-height: 900px;
}

.hero-bg-img {
    object-position: center bottom;
}

/* ==========================================================================
   Card Styles - 卡片样式
   ========================================================================== */
.card-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.game-poster-card:hover .game-poster-title {
    color: var(--brand-cyan);
}

.game-poster-card:hover .game-poster-img {
    transform: scale(1.05);
}

/* ==========================================================================
   Platform Card Styles - 平台卡片样式
   ========================================================================== */
.platform-card {
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-6px);
    background-color: #4b5563;
}

/* ==========================================================================
   Category Card Styles - 分类卡片样式
   ========================================================================== */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px 0 rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   Footer Styles - 页脚样式
   ========================================================================== */
.footer-social-icon {
    background-color: #2d3748;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.footer-social-icon:hover {
    background-color: var(--brand-blue);
}

/* 页脚应用下载区域 */
.footer-app-download {
    background-color: #111827;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid #1f2937;
}

.footer-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.footer-platform-button {
    background-color: #1f2933;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    font-size: 1.2rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-platform-button:hover {
    background-color: var(--brand-blue);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Pricing Badge - 价格徽章
   ========================================================================== */
.pricing-badge {
    background-image: linear-gradient(to right, var(--brand-cyan), var(--brand-blue));
}

/* ==========================================================================
   Glow Effects - 发光效果
   ========================================================================== */
.shadow-glow-cyan {
    box-shadow: 0 0 25px 0 rgba(56, 189, 248, 0.3);
}

.shadow-glow-blue {
    box-shadow: 0 0 20px 0 rgba(59, 130, 246, 0.5);
}

/* ==========================================================================
   Blog Banner - 博客横幅
   ========================================================================== */
.blog-banner {
    background-image: linear-gradient(rgba(26, 32, 44, 0.85), rgba(26, 32, 44, 1)), url('assets/images/blog-banner.jpg');
}

/* ==========================================================================
   WordPress Core Styles - WordPress核心样式
   ========================================================================== */
.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Gallery */
.gallery {
    margin-bottom: 1.5em;
    display: grid;
    grid-gap: 1em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }

.gallery-caption {
    display: block;
}

/* ==========================================================================
   Screen Reader Text - 屏幕阅读器文本
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Pagination - 分页样式
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background-color: var(--dark-card);
    color: var(--text-secondary);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--brand-blue);
    color: white;
}

/* ==========================================================================
   Comments - 评论样式
   ========================================================================== */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: var(--dark-card);
    border-radius: 0.5rem;
}

.comment-list .children {
    margin-left: 2rem;
    list-style: none;
    padding: 0;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: white;
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

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

.comment-reply-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--brand-cyan);
    font-size: 0.875rem;
    font-weight: 500;
}

.comment-reply-link:hover {
    color: var(--brand-blue);
}

/* Comment Form */
.comment-form label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--dark-card);
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    color: white;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--brand-cyan);
}

.comment-form .submit {
    background: linear-gradient(to right, var(--brand-cyan), var(--brand-blue));
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    filter: brightness(1.1);
}

/* ==========================================================================
   Post Content - 文章内容样式
   ========================================================================== */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: white;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.entry-content h1 { font-size: 2.25rem; }
.entry-content h2 { font-size: 1.875rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }
.entry-content h5 { font-size: 1.125rem; }
.entry-content h6 { font-size: 1rem; }

.entry-content p {
    margin-bottom: 1.25em;
    line-height: 1.75;
}

.entry-content a {
    color: var(--brand-cyan);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--brand-blue);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.25em;
    padding-left: 1.5em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    border-left: 4px solid var(--brand-cyan);
    padding-left: 1.5rem;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--text-secondary);
}

.entry-content pre {
    background-color: var(--dark-card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5em;
}

.entry-content code {
    background-color: var(--dark-card);
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.875em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem;
    border: 1px solid #4b5563;
    text-align: left;
}

.entry-content th {
    background-color: var(--dark-card);
    font-weight: 600;
    color: white;
}

/* ==========================================================================
   Navigation Dropdown Menu - 导航下拉菜单样式
   ========================================================================== */
/* 桌面端下拉菜单 */
header nav ul li.group {
    position: relative;
}

header nav ul li.group .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background-color: var(--dark-card);
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

header nav ul li.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

header nav ul li.group .dropdown-menu li {
    margin: 0;
    list-style: none;
}

header nav ul li.group .dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #d1d5db;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    margin: 0.25rem 0.5rem;
}

header nav ul li.group .dropdown-menu a:hover {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--brand-cyan);
    padding-left: 1.25rem;
}

/* 移动端下拉菜单 */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-submenu.active {
    max-height: 500px;
    opacity: 1;
    display: block !important;
}

.mobile-submenu li {
    margin: 0;
}

.mobile-submenu a {
    padding-left: 1.5rem !important;
    font-size: 0.875rem;
    color: #9ca3af;
}

.mobile-menu-item-has-children > a {
    position: relative;
}

.mobile-menu-item-has-children button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-item-has-children button i {
    transition: transform 0.3s ease;
}

.mobile-menu-item-has-children button.active i {
    transform: rotate(180deg);
}

/* 下拉箭头动画 */
header nav ul li.group > a i {
    transition: transform 0.3s ease;
}

header nav ul li.group:hover > a i {
    transform: rotate(180deg);
}

/* 移动端菜单优化 */
@media (max-width: 768px) {
    header nav ul {
        width: 100%;
    }
    
    header nav ul li {
        width: 100%;
    }
    
    header nav ul li a {
        width: 100%;
    }
}

/* ==========================================================================
   Share Icons - 分享图标样式
   ========================================================================== */
/* 确保 Font Awesome 图标正常显示 */
.share-section i,
.share-section .fab,
.share-section .fas {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free" !important;
    font-weight: 400;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.share-section .fab.fa-weibo:before {
    content: "\f18a";
}

.share-section .fab.fa-weixin:before {
    content: "\f1d7";
}

.share-section .fab.fa-qq:before {
    content: "\f1d6";
}

.share-section .fas.fa-link:before {
    content: "\f0c1";
}

/* 分享按钮样式优化 */
.share-section a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.share-section a:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   Widget Styles - 小工具样式
   ========================================================================== */
.widget {
    background-color: var(--dark-card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-blue);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #4b5563;
}

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

.widget ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: white;
}

/* ==========================================================================
   Mobile Responsive Styles - 移动端响应式样式
   ========================================================================== */

/* 基础移动端优化 */
@media (max-width: 768px) {
    /* 容器内边距优化 */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero区域移动端优化 */
    .hero-section {
        height: 70vh;
        min-height: 500px;
        max-height: 600px;
    }
    
    /* 导航栏移动端优化 */
    header nav {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    header nav .text-xl {
        font-size: 1rem;
    }
    
    /* Logo和文字在移动端 */
    header a.text-xl span {
        font-size: 0.875rem;
    }
    
    /* 移动端菜单优化 */
    header .md\\:hidden {
        display: block;
    }
    
    /* 页脚移动端优化 */
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    footer .grid > div {
        margin-bottom: 1.5rem;
    }
    
    /* 友情链接移动端 */
    footer .flex.flex-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    
    footer .flex.flex-wrap > span {
        margin-bottom: 0.75rem;
        margin-right: 0;
    }
    
    footer .flex.flex-wrap > a {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    /* 文章内容移动端优化 */
    .entry-content h1 { font-size: 1.75rem; }
    .entry-content h2 { font-size: 1.5rem; }
    .entry-content h3 { font-size: 1.25rem; }
    .entry-content h4 { font-size: 1.125rem; }
    .entry-content h5 { font-size: 1rem; }
    .entry-content h6 { font-size: 0.875rem; }
    
    /* 表格移动端优化 */
    .entry-content table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 评论移动端优化 */
    .comment-list .children {
        margin-left: 1rem;
    }
    
    .comment-list .comment {
        padding: 1rem;
    }
    
    /* 分页移动端优化 */
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination .page-numbers {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* 小屏幕手机优化 (最大宽度 480px) */
@media (max-width: 480px) {
    /* Hero区域小屏幕优化 */
    .hero-section {
        height: 60vh;
        min-height: 400px;
        max-height: 500px;
    }
    
    /* 标题字体大小优化 */
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* 按钮移动端优化 */
    a[class*="px-10"],
    a[class*="px-12"] {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        font-size: 0.875rem;
    }
    
    /* 卡片内边距优化 */
    .bg-dark-card {
        padding: 1rem !important;
    }
    
    /* 游戏卡片网格优化 */
    .grid.grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .grid.grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* 平台卡片小屏幕优化 */
    .platform-card {
        width: 4rem !important;
        height: 4rem !important;
    }
    
    .platform-card i {
        font-size: 1.5rem !important;
    }
    
    .platform-card span {
        font-size: 0.75rem !important;
        margin-top: 0.5rem !important;
    }
    
    /* 页脚文字大小优化 */
    footer {
        font-size: 0.8125rem;
    }
    
    footer h4 {
        font-size: 0.9375rem;
    }
    
    /* 社交媒体图标优化 */
    .footer-social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    /* 搜索框移动端优化 */
    input[type="search"],
    input[type="text"] {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* 筛选按钮移动端 */
    .filter-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8125rem !important;
    }
}

/* 中等屏幕优化 (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Hero区域中等屏幕 */
    .hero-section {
        min-height: 550px;
    }
    
    /* 游戏网格中等屏幕 */
    .grid.grid-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板设备优化 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* 导航栏优化 */
    header nav {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Logo和文字大小 */
    header .text-xl {
        font-size: 1.125rem;
    }
    
    /* 导航链接间距 */
    header nav ul {
        gap: 1rem;
    }
    
    /* Hero区域平板优化 */
    .hero-section {
        min-height: 600px;
    }
    
    .hero-section h1 {
        font-size: 3rem !important;
        line-height: 1.2;
    }
    
    .hero-section p {
        font-size: 1.125rem !important;
        max-width: 42rem;
    }
    
    /* Hero下载按钮 */
    .hero-section .bg-gradient-to-r {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
    
    /* 平台卡片平板优化 */
    .platform-card {
        width: 6rem !important;
        height: 6rem !important;
    }
    
    .platform-card i {
        font-size: 2rem !important;
    }
    
    .platform-card span {
        font-size: 0.875rem !important;
    }
    
    /* 特性卡片网格 - 平板显示2列 */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* 游戏网格 - 平板显示4列 */
    .grid.grid-cols-2.sm\\:grid-cols-3.md\\:grid-cols-4.lg\\:grid-cols-6 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    /* 用户评价网格 - 平板显示2列 */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* 资讯网格 - 平板显示2列 */
    .grid.grid-cols-1.sm\\:grid-cols-2.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* FAQ网格 - 平板显示2列 */
    .grid.grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* 容器内边距优化 */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* 卡片内边距优化 */
    .bg-dark-card {
        padding: 1.5rem;
    }
    
    /* 标题大小优化 */
    h2.text-3xl.lg\\:text-4xl {
        font-size: 2rem !important;
    }
    
    /* 页脚优化 */
    footer .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* 按钮大小优化 */
    .bg-gradient-to-r.from-brand-cyan.to-brand-blue {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    /* 文字大小优化 */
    .text-sm {
        font-size: 0.9375rem;
    }
    
    .text-base {
        font-size: 1rem;
    }
    
    /* 间距优化 */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .py-16.lg\\:py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: 100vh;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增加触摸目标大小 */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 移除hover效果，使用active */
    .card-hover-effect:hover {
        transform: none;
    }
    
    .card-hover-effect:active {
        transform: translateY(-4px);
    }
    
    /* 按钮触摸反馈 */
    button:active,
    a[class*="bg-gradient"]:active {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* 确保图片在高DPI屏幕上清晰显示 */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 移动端特定组件优化 */
@media (max-width: 768px) {
    /* 首页Hero区域文字优化 */
    .hero-section h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        padding: 0 1rem;
    }
    
    .hero-section p {
        font-size: 0.9375rem !important;
        padding: 0 1rem;
    }
    
    /* 下载按钮移动端 */
    #os-download-btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* 免费试用标签移动端 */
    .bg-brand-yellow {
        font-size: 0.625rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* 特性卡片移动端 */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 > div {
        margin-bottom: 1rem;
    }
    
    /* 用户评价卡片移动端 */
    .bg-dark-card.p-8 {
        padding: 1.5rem !important;
    }
    
    /* FAQ移动端 */
    details.bg-dark-card {
        padding: 1rem !important;
    }
    
    details summary {
        font-size: 0.9375rem;
    }
    
    /* 游戏详情页移动端 */
    .hero-game-bg {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .hero-game-bg h1 {
        font-size: 2rem !important;
    }
    
    /* 游戏详情页侧边栏移动端 */
    aside .sticky {
        position: static !important;
        margin-top: 2rem;
    }
    
    /* 游戏列表页移动端 */
    .game-card {
        aspect-ratio: 3/4;
    }
    
    /* 搜索和筛选区域移动端 */
    .md\\:flex {
        flex-direction: column;
    }
    
    .md\\:flex > div:first-child {
        margin-bottom: 1rem;
    }
    
    .md\\:flex > div:last-child {
        width: 100%;
    }
}

/* 超小屏幕优化 (最大宽度 360px) */
@media (max-width: 360px) {
    /* 进一步缩小字体 */
    body {
        font-size: 0.875rem;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    /* 容器内边距进一步减小 */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* 按钮进一步优化 */
    a[class*="px-10"],
    a[class*="px-12"] {
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 0.8125rem;
    }
    
    /* 游戏卡片网格单列 */
    .grid.grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* 确保图片在移动端响应式 */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* 防止图片溢出 */
    .entry-content img,
    .wp-caption img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* 移动端滚动优化 */
@media (max-width: 768px) {
    html {
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        overflow-x: hidden;
    }
}

/* 移动端菜单动画优化 */
@media (max-width: 768px) {
    /* 确保移动端菜单平滑显示 */
    [x-show] {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    /* 移动端菜单背景 */
    header .md\\:hidden.absolute {
        background-color: var(--dark-card);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}

/* 移动端表单优化 */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px; /* 防止iOS自动缩放 */
    }
}

/* 移动端视频和嵌入内容优化 */
@media (max-width: 768px) {
    iframe,
    embed,
    object,
    video {
        max-width: 100%;
        height: auto;
    }
    
    /* 确保响应式嵌入内容 */
    .wp-block-embed,
    .entry-content iframe {
        width: 100%;
        max-width: 100%;
    }
}

/* Section间距移动端优化 */
@media (max-width: 768px) {
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    section.py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    section.py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* 移动端标题间距优化 */
@media (max-width: 768px) {
    .text-center.mb-12 {
        margin-bottom: 2rem !important;
    }
    
    h2.text-3xl,
    h2.text-4xl {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
}

/* 移动端按钮文字换行优化 */
@media (max-width: 480px) {
    #os-download-btn span {
        white-space: nowrap;
    }
    
    /* 确保按钮文字不会换行 */
    a[class*="bg-gradient"] span {
        white-space: nowrap;
    }
}

/* 移动端卡片内容优化 */
@media (max-width: 768px) {
    .bg-dark-card.p-6,
    .bg-dark-card.p-8 {
        padding: 1.25rem !important;
    }
    
    /* 用户评价卡片移动端 */
    .bg-dark-card.p-8.rounded-lg {
        padding: 1.5rem !important;
    }
}

/* 移动端游戏卡片标题优化 */
@media (max-width: 480px) {
    .game-poster-title {
        font-size: 0.8125rem;
        line-height: 1.4;
    }
}

/* 移动端平台图标优化 */
@media (max-width: 480px) {
    .platform-card i {
        font-size: 1.5rem !important;
    }
}

/* 移动端搜索框优化 */
@media (max-width: 768px) {
    input[type="search"] {
        font-size: 16px; /* 防止iOS自动缩放 */
        padding: 0.625rem 0.875rem;
    }
    
    /* 搜索按钮移动端 */
    button[type="submit"] {
        min-width: 44px;
        min-height: 44px;
    }
}

/* 移动端分页按钮优化 */
@media (max-width: 480px) {
    nav.flex.items-center.space-x-2 {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav.flex.items-center.space-x-2 a,
    nav.flex.items-center.space-x-2 span {
        margin: 0.25rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}

