* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    padding-bottom: 60px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo img {
    height: 40px;
}

.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.menu-btn i {
    font-size: 24px;
    color: #666;
}

.menu-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

.header + hr {
    margin: 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.main-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
    background-color: #fff;
    margin-bottom: 10px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    aspect-ratio: 1;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.category-card:active {
    transform: scale(0.95);
}

.category-card i {
    font-size: 24px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.25);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.category-card span {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

.category-orange {
    background: linear-gradient(180deg, #ffb84d 0%, #ff9a1f 100%);
}

.category-blue {
    background: linear-gradient(180deg, #5ec8f7 0%, #2eb5f5 100%);
}

.category-green {
    background: linear-gradient(180deg, #a0d468 0%, #8cc152 100%);
}

.category-red {
    background: linear-gradient(180deg, #ff8a9a 0%, #ff6b7a 100%);
}

.content-section {
    background-color: #fff;
    padding: 10px;
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.more-link {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    text-decoration: none;
}

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

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.app-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-name {
    font-size: 13px;
    color: #666;
    text-align: center;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
    }
    
    .app-name {
        font-size: 12px;
        max-width: 60px;
    }
}

.banner-slider {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.banner-slider img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-swiper {
    width: 100%;
    overflow: hidden;
}

.banner-swiper .swiper-slide {
    width: 55%;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0 8px;
}

.banner-swiper .swiper-slide a {
    display: block;
    text-decoration: none;
}

.banner-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-swiper .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-swiper .swiper-slide-prev,
.banner-swiper .swiper-slide-next {
    transform: scale(0.85);
    opacity: 0.6;
}

.tab-container {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 12px 0;
    background-color: #fff;
    color: #333;
    font-size: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.tab-btn.tab-active {
    background-color: #ff5a6e;
    color: #fff;
    border: none;
}

.tab-btn:hover {
    opacity: 0.9;
}

.app-list {
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background-color: #fafafa;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
}

.list-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.list-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.list-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0 0 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-rating {
    display: flex;
    gap: 2px;
    align-items: center;
    margin-bottom: 2px;
}

.list-rating img {
    width: 14px;
    height: 14px;
}

.list-rating i {
    font-size: 13px;
}

.list-rating .fa-star {
    color: #ffc107;
}

.list-rating .fa-star.star-empty {
    color: #ddd;
}

.list-date {
    margin-left: 8px;
    font-size: 11px;
    color: #999;
    font-weight: normal;
}

.list-meta {
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.4;
}

.download-btn {
    padding: 6px 20px;
    background-color: #ff5a6e;
    color: #fff;
    border-radius: 18px;
    font-size: 13px;
    flex-shrink: 0;
    cursor: pointer;
    white-space: nowrap;
}

.download-btn:hover {
    background-color: #ff4757;
}

.load-more-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.load-more-btn:hover {
    background-color: #ebebeb;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.friend-link-item {
    padding: 8px 16px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.friend-link-item:hover {
    color: #333;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #2c2c2c;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px 0;
    text-decoration: none;
    display: block;
}

.nav-label {
    font-size: 15px;
    color: #999;
    display: block;
}

.nav-item.nav-active .nav-label {
    color: #fff;
    font-weight: 500;
}

.nav-item:hover .nav-label {
    color: #fff;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 20px;
    background-color: #fff;
    margin-bottom: 10px;
}

.tag-item {
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.tag-item.tag-active {
    background-color: #ff5a6e;
    color: #fff;
}

.tag-item:hover {
    background-color: #ff7b8c;
    color: #fff;
}

.list-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.list-date {
    margin-left: 10px;
    font-size: 12px;
    color: #999;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
}

.page-btn {
    padding: 10px 20px;
    background-color: #fff;
    color: #666;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
}

.page-btn:hover {
    background-color: #f5f5f5;
    border-color: #ff5a6e;
    color: #ff5a6e;
}

.page-btn.page-active {
    background-color: #ff5a6e;
    color: #fff;
    border-color: #ff5a6e;
}

.top-banner {
    background: linear-gradient(135deg, #ff7b8c 0%, #ff5a6e 100%);
    /* padding: 20px; */
    color: #fff;
    position: relative;
    margin-bottom: 10px;
}

.banner-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.feedback-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    background-color: #fff;
    color: #ff5a6e;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.banner-desc {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.feedback-banner {
    background: none;
    padding: 0;
    margin-bottom: 10px;
}

.feedback-banner img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.breadcrumb {
    padding: 15px 20px;
    background-color: #fff;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.breadcrumb a{
    color: #666;
    text-decoration: none;
}
.breadcrumb-item {
    color: #666;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.detail-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 10px;
}

.game-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.game-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.game-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info-main {
    flex: 1;
}

.game-title-large {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.game-meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.meta-item {
    font-size: 13px;
    color: #666;
}

.download-btn-large {
    width: 100%;
    padding: 15px;
    background-color: #ff5a6e;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.download-btn-large:hover {
    background-color: #ff4757;
}

.game-screenshots {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.screenshot-item {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-content {
    margin-bottom: 20px;
}

.content-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.content-text {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.content-text p {
    margin: 0 0 10px 0;
}
.content-text p img{
    max-width: 90%;
    display: block;
    margin: auto;
}

/* ²à±ßÀ¸²Ëµ¥ */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: #fff;
    z-index: 2000;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar-menu.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.sidebar-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 20px;
}

.sidebar-close:hover {
    color: #333;
}

.sidebar-content {
    padding: 10px 0 80px 0;
}

.menu-category {
    margin-bottom: 20px;
}

.category-title {
    font-size: 15px;
    font-weight: 600;
    color: #ff5a6e;
    padding: 12px 20px;
    margin: 0;
    background-color: #FFF;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: #fff;
    padding: 1px;
}

.menu-item {
    padding: 12px 8px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.menu-item:hover {
    background-color: #e8e8e8;
    color: #ff5a6e;
}

.menu-item:active {
    background-color: #ddd;
}
