/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    min-width: 1200px;
    margin: 0 auto;
}

.showcase-bar {
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    /*margin-bottom: 20px;*/
}

.three-one {
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    margin-bottom: 20px;
}

.three-two {
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    margin-bottom: 20px;
}

.three-three {
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    margin-bottom: 20px;
}

.max {
    background: url("../image/绘制游戏图片 (2).png") no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

.three-for {
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    margin-bottom: 20px;
}

/* 顶部导航样式 */
.header {
    background: linear-gradient(135deg, #FF6B35 0%, #E65100 50%, #E65100 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /*position: sticky;*/
    top: 0;
    z-index: 1000;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    font-size: 24px;
    font-weight: bold;
    color: #00BFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.logo-url {
    font-size: 12px;
    color: #90EE90;
    font-weight: normal;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.nav-item:hover,
.nav-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown > a {
    color: white;
    text-decoration: none;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 10px;
    background-color: #f8f9fa;
}

.dropdown-item {
    color: #666;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: white;
    text-align: center;
    display: block;
    border: none;
}

.dropdown-item:hover {
    background-color: #F5F5F5;
    color: #E65100;
    transform: translateY(-1px);
}


.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 0;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input {
    border: none;
    outline: none;
    padding: 10px 15px;
    width: 250px;
    border-radius: 0;
    font-size: 14px;
}

.search-btn {
    background: #FF6B35;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #E65100;
}

/* 分类展示区域 */
.category-showcase {
    padding: 15px 0;
}

.category-row-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.category-label {
    background: #FF6B35;
    color: white;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.category-row-bar:nth-child(2) .category-label {
    background: #FF8C00;
}

.category-row-bar:nth-child(3) .category-label {
    background: #FF69B4;
}

.category-link {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.category-link:hover {
    color: #FF6B35;
}

.icon-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.category-row-bar::-webkit-scrollbar,
.icon-row::-webkit-scrollbar {
    height: 5px;
}

.category-row-bar::-webkit-scrollbar-track,
.icon-row::-webkit-scrollbar-track {
    background: transparent;
}

.category-row-bar::-webkit-scrollbar-thumb,
.icon-row::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.category-row-bar::-webkit-scrollbar-thumb:hover,
.icon-row::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.software-item-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 65px;
    flex-shrink: 0;
}

.software-item-showcase:hover {
    transform: translateY(-2px);
}

.software-item-showcase img {
    width: 71px;
    height: 71px;
    margin-bottom: 4px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.software-item-showcase span {
    font-size: 11px;
    color: #666;
    font-weight: 400;
    line-height: 1.1;
    max-width: 65px;
    word-wrap: break-word;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 主要内容区域 */
.main-content {
    padding: 20px 0;
    max-width: 1200px;
    margin: auto;
}

.recommend {
    padding: 20px 0;
    max-width: 1200px;
    margin: auto;
    background: white;
}

/* 三栏布局 */
.three-column-section {
    display: grid;
    grid-template-columns: 350px 500px 280px;
    gap: 20px;
}

/* 左栏 - 电脑游戏 */
.left-column {
    background: white;
}

/* 轮播图容器 */
.carousel-container {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
    height: 200px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: auto;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-title-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background: #FF6B35;
    width: 24px;
    border-radius: 4px;
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 左右箭头按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.section-title-simple {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FF6B35;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.game-card {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 70px;
    overflow: hidden;
}

.game-card:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.game-card img {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    object-fit: cover;
}

.game-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-card h4 {
    font-size: 12px;
    color: #333;
    margin: 0 0 3px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card p {
    font-size: 10px;
    color: #666;
    margin: 1px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 中栏 - 软件分类 */
.middle-column {
    background: white;
}


.software-category-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #f0f0f0;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 13px 12px;
    background: white;
    gap: 10px;
    transition: background 0.3s ease;
}

.category-item:hover {
    background: #f8f9fa;
}

.category-tag {
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.software-link {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.software-link:hover {
    color: #FF6B35;
}

.category-item .date {
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}

/* 右栏 */
.right-column {
    width: 260px;
    background: white;
}

.chrome-banner {
    margin-bottom: 20px;
}

.chrome-banner img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.mobile-games-section,
.recommended-topics {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FF6B35;
}

.section-header h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.more-link {
    color: #FF6B35;
    text-decoration: none;
    font-size: 12px;
}

.more-link:hover {
    text-decoration: underline;
}

.mobile-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mobile-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-game-item:hover {
    transform: translateY(-3px);
}

.mobile-game-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
    border-radius: 8px;
}

.mobile-game-item span {
    font-size: 11px;
    color: #666;
}

.topic-item {
    margin-bottom: 15px;
    position: relative;
}

.topic-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.topic-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    z-index: 10;
    display: block;
    min-height: 20px;
    line-height: 1.2;
}

.topic-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.topic-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.topic-links a:hover {
    color: #FF6B35;
}

/* 电脑常用软件和排行榜区域 */
.software-ranking-section {
    display: grid;
    grid-template-columns: 880px 280px;
    gap: 20px;
    margin-bottom: 30px;
    background: white;
    padding: 20px 0;
}

.section-main-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #FF6B35;
}

/* 左侧 - 电脑常用软件 */
.pc-software-area {
    padding-right: 20px;
}

.software-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}

.software-stats strong {
    color: #FF6B35;
}

.more-software {
    color: #FF6B35;
    text-decoration: none;
    margin-left: auto;
}

.more-software:hover {
    text-decoration: underline;
}

.software-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 180px);
}

.category-group {
    background: white;
}

.category-group-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.category-software-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.software-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    transition: all 0.3s ease;
}

.software-link-item:hover {
    background: #f8f9fa;
    color: #FF6B35;
}

.software-link-item img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.software-link-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 右侧 - 软件下载排行榜 */
.ranking-sidebar {
    background: white;
    padding: 0 15px;
}

.ranking-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item-box {
    height: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ranking-item-box:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.rank-badge {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #999;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.rank-badge.rank-1 {
    background: #FF6B35;
}

.rank-badge.rank-2 {
    background: #FF9800;
}

.rank-badge.rank-3 {
    background: #FFC107;
}

.ranking-item-box img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.ranking-item-box h4 {
    flex: 1;
    font-size: 12px;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-item-info {
    flex: 1;
}

.ranking-item-info h4 {
    font-size: 13px;
    color: #333;
    margin: 0 0 5px 0;
}

.ranking-item-info p {
    font-size: 11px;
    color: #999;
    margin: 0;
}

.ranking-download-btn {
    background: #FF6B35;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.ranking-download-btn:hover {
    background: #E65100;
}


/* 分类更新区域 */
.category-updates-section {
    background: white;
    margin-bottom: 30px;
    padding: 20px 0;
}

.updates-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

/* 左侧更新列表 */
.updates-main {
    border: 1px solid #e9ecef;
}

.updates-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: white;
    border-bottom: 2px solid #FF6B35;
}

.updates-title {
    font-size: 18px;
    color: #333;
    margin: 0;
    padding-left: 10px;
    border-left: 4px solid #FF6B35;
}


.more-link {
    margin-left: auto;
    color: #FF6B35;
    text-decoration: none;
    font-size: 14px;
}

.more-link:hover {
    text-decoration: underline;
}

.update-list {
    display: none;
    padding: 10px 0;
}

.update-list.active {
    display: block;
}

.update-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.update-item:hover {
    background: #f8f9fa;
}

.update-category {
    color: #999;
    font-size: 13px;
    min-width: 80px;
}

.update-link {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-link:hover {
    color: #FF6B35;
}

.update-date {
    color: #999;
    font-size: 13px;
    min-width: 50px;
    text-align: right;
}

/* 右侧推荐列表 */
.updates-sidebar {
    border: 1px solid #e9ecef;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: white;
    border-bottom: 2px solid #FF6B35;
}

.chart-icon {
    font-size: 20px;
}

.sidebar-header h3 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.recommend-list {
    padding: 10px 0;
}

.recommend-item:hover {
    background: #f8f9fa;
}

.rank-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ccc;
    color: white;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.rank-number.rank-1 {
    background: #FF6B35;
}

.rank-number.rank-2 {
    background: #FF9800;
}

.rank-number.rank-3 {
    background: #FFC107;
}

.recommend-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
    display: none;
}

.recommend-item:hover .recommend-icon,
.recommend-item:first-child .recommend-icon {
    display: block;
}

.recommend-content {
    flex: 1;
    min-width: 0;
}

.recommend-link {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-link:hover {
    color: #FF6B35;
}

.recommend-extra {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.recommend-item:hover .recommend-extra,
.recommend-item:first-child .recommend-extra {
    display: flex;
}

.file-size {
    color: #FF9800;
    font-size: 11px;
}

.detail-btn {
    padding: 3px 10px;
    background: transparent;
    border: 1px solid #FF6B35;
    color: #FF6B35;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.detail-btn:hover {
    background: #FF6B35;
    color: white;
}

.links-grid a {
    color: #666;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 0;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid #e9ecef;
}

.links-grid a:hover {
    background: #FF6B35;
    color: white;
    transform: translateY(-2px);
}

/* 最新合集区域 */
.latest-collection-section {
    background: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

.collection-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #FF6B35;
}

.collection-title {
    font-size: 18px;
    color: #333;
    margin: 0;
    padding-left: 10px;
    border-left: 4px solid #FF6B35;
}

.collection-tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.collection-tabs {
    display: flex;
    gap: 10px;
}

.collection-tab {
    padding: 10px 30px;
    background: #f8f9fa;
    border: none;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.collection-tab.active {
    background: #FF6B35;
    color: white;
}

.collection-tab:hover {
    background: #E65100;
    color: white;
}

.collection-content {
    display: none;
}

.collection-content.active {
    display: block;
}

.collection-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.collection-grid.active {
    display: grid;
}

.collection-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    transition: all 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.collection-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.collection-card:hover img {
    opacity: 0.8;
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 15px;
}

.card-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: block;
}

/* 底部 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #FF6B35;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #E65100;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .software-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        gap: 15px;
    }

    .software-ranking-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ranking-sidebar {
        padding: 0;
    }

    .software-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }


    .updates-container {
        grid-template-columns: 1fr;
    }

    .updates-header {
        flex-wrap: wrap;
    }

    .updates-title {
        width: 100%;
        margin-bottom: 10px;
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .nav-menu {
        order: 3;
        gap: 15px;
        flex-direction: column;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: 0;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 10px;
    }

    .dropdown-item {
        margin-bottom: 10px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .category-row-bar {
        gap: 10px;
    }

    .category-label {
        padding: 4px 10px;
        font-size: 12px;
    }

    .category-link {
        font-size: 12px;
    }

    .icon-row {
        gap: 15px;
    }

    .software-item-showcase {
        min-width: 60px;
        padding: 2px;
    }

    .software-item-showcase img {
        width: 40px;
        height: 40px;
    }

    .software-item-showcase span {
        font-size: 10px;
        max-width: 60px;
    }

    .three-column-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .mobile-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-row {
        grid-template-columns: 1fr;
    }

    .software-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.free-games,
.software-categories,
.latest-collections,
.friend-links {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    border-top-color: #FF6B35;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E65100;
}

/* ========== 分页样式 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px 0;
    padding: 20px 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.page-link.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
    font-weight: 500;
}

.page-prev,
.page-next {
    font-weight: 500;
}

.page-ellipsis {
    color: #999;
    padding: 0 5px;
}

