:root {
    --bg-primary: #fdf9e6;
    --bg-primary-gradient: linear-gradient(135deg, #fdf9e6 0%, #f5f0d8 100%);
    --bg-secondary: rgba(255, 253, 240, 0.85);
    --bg-secondary-scrolled: rgba(255, 253, 240, 0.4);
    --bg-dark: #165dff;
    --bg-dark-transparent: rgba(22, 93, 255, 0.12);
    --bg-dark-button: rgba(22, 93, 255, 0.8);
    --bg-accent: #007aff;
    --bg-accent-dark: #0051aa;
    --ios-green: #34c759;
    --ios-green-dark: #28a745;
    --ios-orange: #ff9500;
    --ios-orange-dark: #e68a00;
    --text-primary: #2d2d2a;
    --text-secondary: #6b6b65;
    --text-light: #ffffff;
    --border-light: #e9e4cf;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --button-shadow: 0 3px 10px rgba(22, 93, 255, 0.2);
    --green-shadow: 0 3px 10px rgba(52, 199, 89, 0.3);
    --orange-shadow: 0 3px 10px rgba(255, 149, 0, 0.3);
    --radius: 20px;
    --small-radius: 12px;
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-primary-gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --bg-secondary: rgba(20, 20, 20, 0.85);
    --bg-secondary-scrolled: rgba(20, 20, 20, 0.4);
    --text-primary: #f5f5f7;
    --text-secondary: #aeaeae;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--bg-primary-gradient);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主题切换按钮样式 - 确保可点击 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--bg-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
    pointer-events: auto;
    user-select: none;
}

/* 确保主题切换按钮图标颜色正确 */
.theme-toggle svg {
    color: var(--bg-accent);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: all 0.3s ease;
}

/* 简化主题切换样式 */
body {
    background: var(--bg-primary-gradient);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* 确保所有元素支持主题切换 */
* {
    transition: all 0.3s ease;
}

/* 移除多余的间距设置 */
.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 主导航栏样式 */
.main-header {
    background: var(--bg-secondary);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 95;
    transition: background 0.3s ease;
}
.main-header.scrolled {
    background: var(--bg-secondary-scrolled);
}
.main-nav {
    display: flex;
    align-items: center;
    padding: 15px 0;
    gap: 15px;
    justify-content: space-between;
}

/* 汉堡菜单按钮样式 */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
    z-index: 100;
    outline: none;
    padding: 0;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* 移动端搜索按钮样式 */
.mobile-search-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
    z-index: 100;
    outline: none;
    padding: 0;
}

.mobile-search-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* 移动端搜索容器样式 */
.mobile-search-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 10px 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    z-index: 99;
    transition: all 0.3s ease;
}

.mobile-search-container.active {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 移动端搜索输入框样式 */
.mobile-search-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--small-radius);
    font-size: 14px;
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.mobile-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.mobile-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 移动端搜索按钮样式 */
.mobile-search-btn {
    padding: 8px 16px;
    background: var(--bg-accent);
    color: var(--text-light);
    border: none;
    border-radius: var(--small-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--button-shadow);
}

.mobile-search-btn:hover {
    background: var(--bg-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

/* 移动端菜单样式 */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    z-index: 98;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 0;
}

.mobile-menu.active {
    display: block;
    max-height: 300px;
    padding: 10px 0;
}

/* 移动端导航链接样式 */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    padding: 0 20px;
}

.mobile-nav-links a {
    display: block;
    padding: 12px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
    color: var(--bg-accent);
    transform: translateX(5px);
}

.mobile-nav-links li:last-child a {
    border-bottom: none;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--bg-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}
.logo-text {
    font-size: 24px;
    white-space: nowrap;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
    margin: 0 auto;
}

/* 确保在桌面端隐藏汉堡菜单和移动端搜索按钮 */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .mobile-search-toggle {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }
    
    .mobile-search-container {
        display: none;
    }
}
.nav-links li {
    position: relative;
}
.nav-links a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-radius: var(--small-radius);
    transition: all 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
    background: var(--bg-accent);
    color: var(--text-light);
}

/* 导航栏搜索样式 - 调整为导航链接列表项 */
.nav-search-item {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin: 0;
    flex-shrink: 0;
}

/* 搜索图标按钮 - 只保留放大镜 */
.nav-search-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
    z-index: 10;
    outline: none;
    padding: 0;
    margin: 0;
    margin-top: 2px; /* 向下调整2px，与留言板链接对齐 */
}

.nav-search-toggle:hover,
.nav-search-toggle:active {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    box-shadow: none;
}

/* 确保所有模式下图标显示正常 */
.nav-search-toggle svg {
    color: var(--text-primary);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    width: 18px;
    height: 18px;
}

/* 确保深色模式下图标显示正常 */
[data-theme="dark"] .nav-search-toggle svg {
    color: var(--text-light);
}

/* 确保深色模式下主题切换按钮正常显示 */
[data-theme="dark"] .theme-toggle {
    background: rgba(40, 40, 42, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 搜索容器 */
.nav-search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    right: 50px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

/* 搜索框展开状态 */
.nav-search.active .nav-search-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-search-input {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--small-radius);
    font-size: 14px;
    color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    width: 250px;
}

.nav-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.nav-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-search-btn {
    padding: 10px 16px;
    background: var(--bg-accent);
    color: var(--text-light);
    border: none;
    border-radius: var(--small-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--button-shadow);
}
.nav-search-btn:hover {
    background: var(--bg-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 导航栏优化 - 确保分布均匀 */
    .main-nav {
        gap: 10px;
        padding: 10px 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        max-width: calc(100% - 60px);
    }
    
    /* 显示汉堡菜单和移动端搜索按钮 */
    .menu-toggle {
        display: flex;
    }
    
    .mobile-search-toggle {
        display: flex;
    }
    
    /* Logo调整 */
    .logo {
        flex: 1;
    }
    
    /* 确保导航栏元素不被挤压 */
    .main-nav {
        flex-wrap: nowrap;
        overflow: visible;
    }
    
    /* 隐藏桌面端导航链接 */
    .nav-links {
        display: none;
    }
    
    /* 增大logo尺寸 - 移动端显示 */
    .logo {
        display: flex;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    /* 首页搜索框隐藏，保留导航栏搜索 */
    .search-container {
        display: none;
    }
    
    /* 主题切换按钮位置 */
    .theme-toggle {
        right: 10px;
        top: 12px;
    }
    
    /* 搜索框调整 */
    .nav-search-container {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        background: var(--bg-secondary);
        padding: 10px;
        border-radius: var(--small-radius);
        box-shadow: var(--shadow);
        backdrop-filter: blur(12px);
        z-index: 90;
    }
    
    .nav-search.active .nav-search-container {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%);
    }
    
    .nav-search-input {
        width: 100%;
        background: rgba(255, 255, 255, 0.3);
    }
    
    /* Banner区域文字移动端适配 */
    #banner-container {
        height: 80px;
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #banner-container > div {
        padding: 0 10px;
        text-align: center;
        white-space: nowrap;
    }
    
    #banner-container > div > div {
        line-height: 1.2;
        white-space: nowrap;
    }
    
    /* 游戏列表副标题移动端适配 */
    .section-subtitle {
        font-size: 16px;
        max-width: 100%;
        margin: 0 auto 40px;
        padding: 0 10px;
    }
    
    /* 副标题与平台切换按钮组合样式移动端适配 */
    .subtitle-with-switch {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    
    .platform-switch-container {
        justify-content: center;
    }
    
    /* 搜索按钮移动端适配 */
    .search-btn {
        white-space: nowrap;
        min-width: 80px;
        text-align: center;
        padding: 0 20px;
    }
    
    /* 导航栏搜索按钮移动端适配 */
    .nav-search-btn {
        white-space: nowrap;
        min-width: 60px;
        text-align: center;
        padding: 0 16px;
    }
    
    /* 搜索结果项移动端适配 */
    #searchModal .search-result-item {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    /* 结果内容布局移动端适配 - 垂直堆叠 */
    #searchModal .result-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    /* 左侧内容移动端适配 */
    #searchModal .result-left {
        width: 100%;
    }
    
    /* 右侧内容移动端适配 */
    #searchModal .result-right {
        width: 100%;
    }
    
    /* 游戏封面容器移动端适配 */
    #searchModal .game-cover-container {
        width: 100%;
        height: 150px;
    }
    
    /* 游戏标题移动端适配 */
    #searchModal .game-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    /* 游戏标签容器移动端适配 */
    #searchModal .game-tags {
        gap: 6px;
        margin-top: 8px;
    }
    
    /* 游戏标签移动端适配 */
    #searchModal .game-tag {
        padding: 3px 10px;
        font-size: 11px;
    }
    
    /* 平台标识徽章移动端适配 */
    #searchModal .platform-badge {
        padding: 3px 6px;
        font-size: 11px;
    }
}

/* 二级菜单样式 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border-radius: var(--small-radius);
    box-shadow: var(--shadow);
    list-style: none;
    min-width: 180px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}
.dropdown li a {
    padding: 10px 20px;
    width: 100%;
}
.dropdown li:first-child a {
    border-radius: var(--small-radius) var(--small-radius) 0 0;
}
.dropdown li:last-child a {
    border-radius: 0 0 var(--small-radius) var(--small-radius);
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 搜索栏样式 - 居中并占60%宽度 */
.search-container {
    width: 60%;
    margin: 40px auto;
    display: flex;
    gap: 10px;
}
.search-input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--small-radius);
    font-size: 16px;
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}
.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}
.search-btn {
    padding: 0 24px;
    background: var(--bg-accent);
    color: var(--text-light);
    border: none;
    border-radius: var(--small-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--button-shadow);
}
.search-btn:hover {
    background: var(--bg-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

/* 英雄区域 */
header.hero {
    background: url("/imag/logo.png") no-repeat center;
    background-size: cover;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}
header.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-light);
    padding: 20px;
    max-width: 800px;
}
.hero-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 最新发布区域 - 优化部分 */
.latest-posts {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 40px 0;
    margin: 0 20px 40px;
    box-shadow: var(--shadow);
}
.latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 30px;
}
.latest-title {
    font-size: 28px;
    color: var(--bg-accent);
    font-weight: 600;
}
.ios-orange-more-btn {
    padding: 12px 28px;
    background: var(--ios-orange);
    color: var(--text-light);
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--orange-shadow);
}
.ios-orange-more-btn:hover {
    background: var(--ios-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 149, 0, 0.4);
}
.more-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.more-btn:hover, .more-btn.highlight {
    background: var(--ios-green);
    color: var(--text-light);
    box-shadow: var(--green-shadow);
}
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0 20px;
}
.latest-post {
    display: flex;
    width: 100%;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    border-radius: var(--small-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.latest-post:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.post-image {
    flex: 0 0 220px;
    border-radius: var(--small-radius);
    overflow: hidden;
    height: 140px;
}
.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.latest-post:hover .post-image img {
    transform: scale(1.05);
}
.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 10px 0;
    align-items: center;
    text-align: center;
}
.post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    transition: color 0.3s ease;
    max-width: 100%;
}
.latest-post:hover .post-title {
    color: var(--bg-accent);
}
.post-date {
    position: relative;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    white-space: nowrap;
}


.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--bg-accent);
    font-weight: 600;
}
.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 60px;
}

/* 新的两栏布局容器 */
.main-content-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    max-width: 100%;
}

/* 软件展示区 - 占75%宽度，拉伸高度 */
.software-section {
    flex: 0 0 75%;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 50px 0;
    margin: 0 0 40px;
    box-shadow: var(--shadow);
    min-height: 100%;
    box-sizing: border-box;
}

/* 热门游戏区域 - 占22%宽度，独立区域 */
.hot-games-area {
    flex: 0 0 22%;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 30px 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    margin: 0 0 40px;
    align-self: flex-start;
    position: static;
    height: fit-content;
    box-sizing: border-box;
}

/* 移除旧的两栏布局样式 */
.main-content {
    display: block;
}

/* 热门游戏标题 */
.hot-games-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--bg-accent);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 122, 255, 0.1);
}

/* 热门游戏列表 */
.hot-games-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* 热门游戏项 */
.hot-game-item {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    height: 120px;
    display: flex;
    align-items: center;
}

.hot-game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* TOP排名标签 */
.hot-game-item::before {
    position: absolute;
    top: 0;
    left: 0;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    z-index: 10;
}

.hot-game-item.rank-1::before {
    content: "TOP1";
    background: #FF6B00;
}

.hot-game-item.rank-2::before {
    content: "TOP2";
    background: #1890FF;
}

.hot-game-item.rank-3::before {
    content: "TOP3";
    background: #52C41A;
}

.hot-game-item.rank-4::before {
    content: "TOP4";
    background: #999999;
}

.hot-game-item.rank-5::before {
    content: "TOP5";
    background: #999999;
}

/* 热门游戏封面图片 */
.hot-game-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    border: none;
}

/* 热门游戏项悬停时图片缩放 */
.hot-game-item:hover .hot-game-cover {
    transform: scale(1.05);
}

/* 热门游戏内容区域 - 覆盖在封面上 */
.hot-game-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 游戏名称样式 - 白色文字，显示在封面上方 */
.hot-game-name {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: auto;
    font-weight: 600;
    color: white;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 6px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 热门游戏阅读数 - 白色文字，显示在封面上方 */
.hot-game-views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: white;
    margin: 0;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 12px;
}

/* 使用实际的眼睛图标替代emoji */
.hot-game-views::before {
    content: '';
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* 软件网格 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}
.software-card {
    background: var(--bg-primary);
    border-radius: var(--small-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
}
.software-card:hover {
    transform: translateY(-5px);
}
.software-img {
    height: 130px;
    overflow: hidden;
    position: relative;
}
.software-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.software-card:hover .software-img img {
    transform: scale(1.05);
}
/* 封面标签样式 */
.software-tags {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    z-index: 10;
}
.software-tag {
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}
/* 移除CSS中的标签颜色样式，改为使用JavaScript动态设置 */
/* 默认标签颜色 - 仅作为后备 */
.software-tag {
    background: rgba(0, 0, 0, 0.7);
}
.software-card:hover .software-tag {
    transform: translateY(-2px);
}
.software-info {
    padding: 15px;
    text-align: center;
}
.software-name {
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}
.software-card:hover .software-name {
    color: var(--bg-accent);
}
.software-category {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
/* 分类和阅读次数容器 */
.category-readcount-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0;
}
.software-info {
    padding: 15px;
    text-align: center;
}
.software-category {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
    flex: 1;
    text-align: left;
}
/* 阅读次数样式 */
.software-read-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.5); /* 背景颜色更淡 */
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* 阴影更淡 */
    transition: all 0.3s ease;
    flex-shrink: 0;
}
/* 眼睛图标 - 使用固定颜色，确保在深色模式下可见 */
.software-read-count::before {
    content: '';
    width: 16px;
    height: 16px;
    /* 使用固定颜色的SVG，确保在各种模式下可见 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
}
/* 深色模式下的阅读次数样式 */
[data-theme="dark"] .software-read-count {
    background: rgba(0, 0, 0, 0.5); /* 深色模式下使用深色背景 */
    color: var(--text-primary); /* 使用主要文本颜色，确保清晰可见 */
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.1); /* 深色模式下的阴影 */
}
/* 深色模式下的眼睛图标 - 使用浅色 */
[data-theme="dark"] .software-read-count::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

/* 移动端适配 - 游戏描述排版 */
@media (max-width: 768px) {
    .category-readcount-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .software-category {
        font-size: 13px;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
        text-align: center;
        margin-bottom: 0;
    }
    
    .software-read-count {
        margin-top: 0;
    }
    
    .software-info {
        padding: 10px;
    }
    
    .software-name {
        font-size: 16px;
        margin-bottom: 8px;
        text-align: center;
    }
}

/* 调整软件信息容器，添加相对定位 */

/* 删除详情按钮 */
.software-actions {
    display: none;
}

/* 副标题与平台切换按钮组合样式 */
.subtitle-with-switch {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* 平台切换按钮样式 */
.platform-switch-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    justify-content: flex-start;
}

.platform-switch-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--border-light);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    min-height: 32px;
}

.platform-switch-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--bg-accent);
    color: var(--bg-accent);
}

.platform-switch-btn.active {
    background: var(--bg-accent);
    color: var(--text-light);
    border-color: var(--bg-accent);
    box-shadow: var(--button-shadow);
}

.platform-switch-btn.active:hover {
    background: var(--bg-accent-dark);
    border-color: var(--bg-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.platform-switch-btn svg {
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.platform-switch-btn:hover svg {
    transform: scale(1.05);
}

/* 副标题样式调整 */
.section-subtitle {
    margin: 0;
    flex: 1;
    text-align: left;
}

/* 页脚样式 */
footer {
    background: var(--bg-secondary);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 40px 0 20px;
    margin-top: 60px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--bg-accent);
}

/* 备案信息样式优化 */
footer p {
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 备案信息容器 - 所有设备 */
footer .beian-container {
    display: block;
    text-align: center;
    margin: 10px 0;
    clear: both;
}

/* 备案图标样式 */
footer .beian-container img {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    /* 保持现有距离，不增加也不减少 */
}

/* 备案号样式 - 统一所有备案号的样式 */
footer .beian-container a,
footer .icp-number a {
    display: inline-block;
    vertical-align: middle;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin: 0;
    padding: 0;
    /* 保持现有距离，不增加也不减少 */
}

/* 确保备案信息整体居中对齐 */
footer img,
footer a {
    vertical-align: middle;
}

/* 备案链接悬停样式 */
footer a:hover {
    color: var(--bg-accent);
}

/* 津ICP号与上一行间距很小 */
footer .icp-number {
    margin: 2px 0 10px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 页脚链接间距调整 */
    .footer-links {
        gap: 15px;
    }
    
    /* 页脚链接字体大小调整 */
    .footer-links a {
        font-size: 14px;
    }
    
    /* 备案信息居中对齐 */
    footer img,
    footer img + a,
    footer p {
        display: block;
        text-align: center;
        margin: 5px auto;
    }
    
    /* 移动端分类选择弹窗样式 */
    .category-modal {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: var(--bg-primary);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }
    
    .category-modal.show {
        transform: translateY(0);
        opacity: 1;
    }
    
    .category-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-light);
        background: var(--bg-primary);
    }
    
    .category-modal-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .category-modal-btn {
        padding: 8px 16px;
        background: transparent;
        border: none;
        color: var(--bg-dark);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        border-radius: 8px;
        transition: background 0.2s ease;
    }
    
    .category-modal-btn:hover {
        background: var(--bg-secondary);
    }
    
    .category-modal-content {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: var(--bg-primary);
    }
    
    .category-modal-tag {
        padding: 10px 14px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-light);
        border-radius: 12px;
        color: var(--text-primary);
        font-size: 13px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s ease;
        margin: 0 auto;
        width: 50%;
    }
    
    .category-modal-tag:hover {
        background: var(--bg-dark-transparent);
        border-color: var(--bg-dark);
    }
    
    .category-modal-tag.active {
        background: var(--bg-dark);
        color: var(--text-light);
        border-color: var(--bg-dark);
    }
    
    /* 弹窗背景遮罩 */
    .category-modal::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .category-modal.show::before {
        opacity: 1;
    }
    
    /* 滚动条样式 */
    .category-modal-content::-webkit-scrollbar {
        width: 4px;
    }
    
    .category-modal-content::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: 2px;
    }
    
    .category-modal-content::-webkit-scrollbar-thumb {
        background: var(--border-light);
        border-radius: 2px;
    }
    
    .category-modal-content::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary);
    }
    
    /* 移动端分类标签样式 */
    @media (max-width: 768px) {
        .category-tags-container {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .category-tag-btn {
            padding: 8px 16px;
            font-size: 14px;
            border: 1px solid var(--border-light);
            background: var(--bg-secondary);
            color: var(--text-primary);
            border-radius: var(--small-radius);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .category-tag-btn.active {
            background: var(--bg-dark);
            color: var(--text-light);
            border-color: var(--bg-dark);
        }
        
        .category-tag-btn.select-btn {
            background: var(--bg-secondary);
            color: var(--text-primary);
            border: 1px solid var(--border-light);
        }
    }
    
    /* 确保备案图标和公网安备号在同一行，紧挨着 */
    footer .beian-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px; /* 减小间距，让图片和链接紧挨着 */
        margin: 10px auto;
    }
    
    /* 津ICP号换行显示 */
    footer .icp-number {
        display: block;
        margin-top: 5px;
    }
}

/* 搜索弹窗样式 */
#searchModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#searchModal .modal-content {
    position: fixed;
    top: 10%;
    left: 15%;
    width: 70%;
    height: 80%;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
#searchModal .modal-header {
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}
#searchModal .modal-title {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}
#searchModal .close-btn {
    background: rgba(255, 59, 48, 0.1);
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
#searchModal .close-btn:hover {
    background: rgba(255, 59, 48, 0.2);
    transform: scale(1.1);
}
#searchModal #modalResults {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: transparent;
}
#searchModal #modalLoading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}
#searchModal #modalLoading div:first-child {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--bg-accent);
}
#searchModal #modalLoading div:nth-child(2) {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 10px;
}
#searchModal #modalLoading div:nth-child(3) {
    font-size: 14px;
    color: var(--text-secondary);
}
#searchModal #modalEmpty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

/* 搜索结果统计样式 */
#searchModal .search-results-stats {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-hover);
    border-radius: var(--small-radius);
}

#searchModal .results-count {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

#searchModal .search-keyword {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 搜索结果项样式 - 纵向排列 */
#searchModal .search-result-item {
    display: block;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

#searchModal .search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--bg-accent);
}

/* 结果内容布局 */
#searchModal .result-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 左侧内容：游戏名称和标签 */
#searchModal .result-left {
    flex: 1;
    min-width: 0;
}

/* 右侧内容：游戏封面 */
#searchModal .result-right {
    flex: 0 0 auto;
}

/* 游戏标题样式 */
#searchModal .game-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* 游戏标签容器 */
#searchModal .game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* 游戏标签样式 */
#searchModal .game-tag {
    background: var(--bg-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* 游戏封面容器 */
#searchModal .game-cover-container {
    position: relative;
    width: 200px;
    height: 120px;
    border-radius: var(--small-radius);
    overflow: hidden;
}

/* 游戏封面图片 */
#searchModal .game-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#searchModal .search-result-item:hover .game-cover {
    transform: scale(1.05);
}

/* 平台标识徽章 - 右上角小角 */
#searchModal .platform-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-bottom-left-radius: var(--small-radius);
    transform: translate(0, 0);
}

/* 推荐搜索样式 */
#searchModal .search-recommendations {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

#searchModal .recommendations-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

#searchModal .recommendations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 热门搜索标签样式 */
#searchModal .hot-search-tag {
    background: var(--bg-hover);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px;
}

#searchModal .hot-search-tag:hover {
    background: var(--bg-accent);
    color: white;
    transform: translateY(-2px);
}
#searchModal #modalEmpty div:first-child {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}
#searchModal #modalEmpty div:nth-child(2) {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
}
#searchModal #modalEmpty div:nth-child(3) {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}
#searchModal .search-tag {
    background: rgba(0, 122, 255, 0.1);
    color: var(--bg-accent);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}
#searchModal .hot-search-tag {
    background: linear-gradient(135deg, var(--bg-accent), #0051aa);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}
#searchModal .hot-search-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
#searchModal .search-result-item {
    padding: 25px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}
#searchModal .search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--bg-accent);
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    :root {
        --radius: 16px;
    }
    .main-nav {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        align-items: flex-start;
    }
    .nav-search {
        margin-left: 0;
        width: 100%;
    }
    .nav-search-input {
        width: 100%;
    }
    .nav-links {
        width: 100%;
        flex-wrap: wrap;
    }
    .search-container {
        width: 90%;
    }
    .hero-content h1 {
        font-size: 28px;
    }
    header.hero {
        height: 250px;
    }
    .section-title {
        font-size: 26px;
    }
    /* 响应式两栏布局 - 移动端垂直堆叠 */
    .main-content-container {
        flex-direction: column;
        padding: 0 20px;
    }
    
    /* 移动端软件区和热门游戏区各占100%宽度 */
    .software-section,
    .hot-games-area {
        flex: 0 0 100%;
        margin: 0 0 20px;
        position: static;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 热门游戏列表改为横向两列布局 */
    .hot-games-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 15px;
    }
    
    /* 热门游戏项占50%宽度 */
    .hot-game-item {
        flex: 0 0 calc(50% - 5px);
        height: 140px;
        margin: 0;
        display: block;
    }
    
    /* 软件网格响应式 - 移动端两列布局 */
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* 最新发布区域响应式 */
    .latest-post {
        flex-direction: column;
    }
    .post-image {
        flex: 0 0 150px;
        width: 100%;
        height: auto;
    }
    .post-title {
        font-size: 18px;
    }
    .post-date {
        font-size: 13px;
    }
    
    /* 搜索弹窗响应式 */
    #searchModal .modal-content {
        top: 5%;
        left: 5%;
        width: 90%;
        height: 90%;
    }
}

/* FAQ页面样式 */
.faq-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.coming-soon-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.coming-soon-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.coming-soon-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--bg-accent);
    margin-bottom: 20px;
}

.coming-soon-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    width: 75%;
    height: 100%;
    background: var(--ios-green);
    border-radius: 4px;
    animation: progressAnimation 2s ease-in-out;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
    to {
        width: 75%;
    }
}

/* 联系页面样式 */
.contact-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.contact-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.contact-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--bg-accent);
    margin-bottom: 15px;
}

.contact-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.email-container {
    margin-bottom: 20px;
}

.email-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.email-address {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    border-radius: var(--small-radius);
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    word-break: break-all;
    transition: all 0.3s ease;
}

.email-address:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.copy-btn {
    background: var(--bg-accent);
    color: var(--text-light);
    border: none;
    border-radius: var(--small-radius);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--button-shadow);
    margin-bottom: 25px;
}

.copy-btn:hover {
    background: var(--bg-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

.contact-info {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    text-align: left;
}

.contact-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p::before {
    content: "•";
    color: var(--bg-accent);
    font-weight: bold;
}

/* 联系页面响应式 */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-card {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .contact-icon {
        font-size: 48px;
    }
    
    .contact-title {
        font-size: 24px;
    }
    
    .contact-description {
        font-size: 14px;
    }
    
    .email-address {
        font-size: 16px;
        padding: 12px;
    }
    
    .copy-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .contact-info {
        padding-top: 20px;
    }
    
    .contact-info p {
        font-size: 13px;
    }
}

/* 自媒体账号区域样式 */
.social-section {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.social-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: var(--bg-accent);
    margin-bottom: 40px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.social-item {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.social-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.social-item:hover .social-logo {
    transform: scale(1.1);
}

.social-item:hover .social-logo img {
    transform: scale(1.1);
}

.social-qr {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--small-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-item:hover .social-qr {
    background: rgba(255, 255, 255, 0.2);
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: var(--bg-tertiary);
    border-radius: var(--small-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px dashed var(--border-light);
    transition: all 0.3s ease;
}

.social-item:hover .qr-placeholder {
    background: var(--bg-secondary);
    transform: scale(1.05);
}

.social-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-item:hover .social-name {
    color: var(--bg-accent);
}

/* 自媒体账号区域响应式 */
@media (max-width: 768px) {
    .social-section {
        padding: 40px 0;
    }
    
    .social-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .social-grid {
        gap: 20px;
        padding: 0 20px;
    }
    
    .social-item {
        padding: 20px;
    }
    
    .social-logo {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .social-qr {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .qr-placeholder {
        width: 100px;
        height: 100px;
        font-size: 12px;
    }
    
    .social-name {
        font-size: 14px;
    }
}

/* Banner区域样式 */
.banner-section {
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(12px);
    background: rgba(255, 253, 240, 0.6);
    transition: all 0.3s ease;
}

#banner-container {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-primary);
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
}

#banner-container > div {
    text-align: center;
    padding: 0 40px;
}

#banner-container > div > div {
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 深色模式下的banner样式 */
[data-theme="dark"] .banner-section {
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}



[data-theme="dark"] #banner-container div div {
    background: linear-gradient(135deg, #ffffff 0%, #66b3ff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
}

/* 游戏列表页专用样式 */
.games-main-content {
    width: 100%;
    max-width: 100%;
}

/* 调整游戏网格布局 - 一行显示5个游戏 */
@media (min-width: 769px) {
    .software-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
        padding: 0 20px;
    }
}

/* 确保游戏卡片样式与首页一致 */
.game-card {
    background: var(--bg-primary);
    border-radius: var(--small-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-img {
    height: 130px;
    overflow: hidden;
}

.game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* 分类和阅读次数容器 */
.category-readcount-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0;
}

.game-category {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
    flex: 1;
    text-align: left;
}

/* 阅读次数样式 */
.game-read-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.5);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* 眼睛图标 */
.game-read-count::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
}

/* 深色模式下的阅读次数样式 */
[data-theme="dark"] .game-read-count {
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.1);
}

/* 深色模式下的眼睛图标 */
[data-theme="dark"] .game-read-count::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

/* 响应式调整 - 横屏一行显示5个游戏 */
@media (min-width: 1200px) {
    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

/* 分类标签容器样式 */
.category-tags-container {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 分类标签样式 */
.category-tag-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    min-height: 28px;
}

.category-tag-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--bg-accent);
    color: var(--bg-accent);
}

.category-tag-btn.active {
    background: var(--bg-accent);
    color: var(--text-light);
    border-color: var(--bg-accent);
    box-shadow: var(--button-shadow);
}

/* 排序按钮样式 */
.sort-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    min-height: 28px;
}

.sort-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--bg-accent);
    color: var(--bg-accent);
}

.sort-btn.active {
    background: var(--bg-accent);
    color: var(--text-light);
    border-color: var(--bg-accent);
    box-shadow: var(--button-shadow);
    opacity: 0.5;
}

/* 缩短h2和div之间的距离 */
.section-title {
    margin-bottom: 10px;
}

.platform-switch-container {
    margin-top: 0;
}

/* 平台切换按钮样式 */
.platform-switch-container {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    align-items: center;
}

/* 排序按钮容器 */
.sort-buttons-container {
    display: flex;
    gap: 4px;
    margin-right: auto;
}

/* 平台按钮容器 */
.platform-buttons-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

/* 确保section底部有足够空间 */
.software-section {
    position: relative;
    padding-bottom: 80px;
}

/* 分页控件样式 */
.pagination {
    display: block;
    width: 100%;
    margin: 40px 0 0;
    padding: 20px 0;
    text-align: center;
}

.pagination-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
}

.pagination-btn {
    padding: 10px 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background: var(--bg-accent);
    color: var(--text-light);
    border-color: var(--bg-accent);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--bg-accent);
    color: var(--text-light);
    border-color: var(--bg-accent);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

/* 移动端导航栏优化 */
@media (max-width: 768px) {
    /* 导航栏布局调整 */
    .main-nav {
        gap: 5px;
        padding: 8px 0;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }
    
    /* Logo调整 */
    .logo {
        display: flex;
        flex: 1;
        order: 1;
    }
    
    /* 显示汉堡菜单按钮 */
    .menu-toggle {
        display: flex !important;
        order: 2;
    }
    
    /* 显示移动端搜索按钮 */
    .mobile-search-toggle {
        display: flex !important;
        order: 3;
    }
    
    /* 隐藏桌面端导航链接 */
    .nav-links {
        display: none !important;
    }
    
    /* 主题切换按钮位置 */
    .theme-toggle {
        right: 10px;
        top: 12px;
        order: 4;
    }
    
    /* 移动端菜单显示 */
    .mobile-menu {
        display: block;
    }
}