.hot-article-section {
    padding: 20px 0;
    background-color: #f5f5f5;
}

.section-title {
    font-size: 22px;
    color: #333;
    position: relative;
    padding-left: 0px;
    margin: 0;
    font-weight: 700;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 4px;
    height: 22px;
    /*background-color: #1e88e5;*/
    border-radius: 2px;
}

.more-link {
    color: #3ac173;
    font-size: 14px;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #15a754;
}

/* 文章卡片网格 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

/* 文章卡片项 */
.article-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-item a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.article-img {
    flex: 2;
    padding: 0 10px;
    border-radius: 15px;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-img img {
    border-radius: 15px;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-item:hover .article-img img {
    transform: scale(1.05);
}

.article-info {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 响应式布局 */
@media (min-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-title {
        font-size: 18px;
    }

    .article-info {
        flex: 1;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 120px;
    }
}

@media (min-width: 992px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-title {
        font-size: 20px;
        -webkit-line-clamp: 1;
        margin-bottom: 5px;
    }

    .article-desc {
        -webkit-line-clamp: 2;
        margin-top: 5px;
        margin-bottom: 0;
    }

    .article-info {
        padding: 10px;
        min-height: 100px;
    }
}

@media (min-width: 1200px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 18px;
    }
    .article-img {
        width: 100%;
        height: 160px;
    }

    .article-info {
        padding: 12px;
    }

    .article-title {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .article-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

.page-500 {
    width: 100%;
    height: 98vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    font-family: Arial, sans-serif;
}

.page-500-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 600px;
    height: 400px;
    text-align: center;
}

.page-500-title {
    font-size: 22px;
    color: #333;
    margin: 15px 0;
}

.page-500-button {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.page-500-button:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    .page-500-container {
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .page-500-title {
        font-size: 18px;
    }
}

.page-404 {
    width: 100%;
    height: 98vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    font-family: Arial, sans-serif;
}

.page-404-container {
    /*background-color: #00b7ee;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 600px;
    height: 400px;
    text-align: center;
}

.page-404-image {
    width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.page-404-title {
    font-size: 22px;
    color: #333;
    margin: 15px 0;
}

.page-404-countdown {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.page-404-button {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.page-404-button:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    .page-404-container {
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .page-404-image {
        width: 280px;
    }

    .page-404-title {
        font-size: 18px;
    }

    .page-404-countdown {
        font-size: 14px;
    }
}

.breadcrumb-list {
    margin-bottom: 20px;
}

.sitemap-content p {
    text-indent: 2em;
    color: #666;
    line-height: 38px;
}

.sitemap-content h3 {
    margin: 20px 0px;
    line-height: 36px;
    font-size: 20px;
}

.specialtopic-tabs {
    margin: auto;
    display: flex;
    margin-top: 10px;
    background: #f3f8f7;
    border-radius: 30px;
    padding: 4px 4px;
    width: 220px;
}

.specialtopic-tabs .tab {
    flex: 1;
    text-align: center;
    font-size: 16px;
    color: #bdbdbd;
    padding: 8px 0;
    border-radius: 30px;
    background: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.specialtopic-tabs {
    width: 160px;
    font-size: 13px;
}

.specialtopic-tabs .tab {
    font-size: 13px;
    padding: 6px 0;
}

.info-label {
    width: 370px;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* 超出的空白区域不换行 */
    overflow: hidden; /* 超出隐藏 */
    text-overflow: ellipsis; /* 文本超出显示省略号 */
}

.specialtopic-more:hover {
    color: #15a754;
}

.specialtopic-icon {
    width: 56px;
    height: 56px;
    margin-right: 14px;
    object-fit: contain;
}

.specialtopic-tabs {
    margin: auto;
    display: flex;
    margin-top: 10px;
    background: #f3f8f7;
    border-radius: 30px;
    padding: 4px 4px;
    width: 220px;
}

.specialtopic-tabs .tab {
    flex: 1;
    text-align: center;
    font-size: 16px;
    color: #bdbdbd;
    padding: 8px 0;
    border-radius: 30px;
    background: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.specialtopic-tabs .tab {
    flex: 1;
    text-align: center;
    font-size: 16px;
    color: #bdbdbd;
    padding: 8px 0;
    border-radius: 30px;
    background: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.specialtopic-tabs .tab.active {
    background-color: #15a754;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 182, 230, 0.08);
}

/* 游戏分类 */
.game-category {
    width: 100%;
    background-color: #fff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* 修改section-header样式 */
.section-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    width: 100%;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

@media screen and (min-width: 768px) {
    .game-category .section-title,
    .app-category .section-title {
        display: block;
    }
}

.more-link {
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

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

.more-link a:hover {
    color: #3ac173;
}

/* 游戏网格和排行榜弹性布局 */
.game-grid-index {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* 移动端响应式布局 */
@media (max-width: 767px) {
    .game-grid-index {
        flex-direction: column;
    }

    .game-grid-index .grid-game {
        flex: 1;
        gap: 10px;
    }

    .game-category {
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 3%;
        margin-right: 3%;
        width: 94%; /* 100% - 左右3%的margin */
    }
}

.game-grid-index .grid-game {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 -10px;
    width: 100%;
}

.grid-game .game-item {
    padding: 0 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 18%; /* PC端一行4个 */
    flex: 0 0 auto;
}

.grid-game .game-item a {
    display: block;
    text-decoration: none;
    color: #333;
    width: 100%;
}

/* 中等屏幕尺寸 */
@media (max-width: 992px) and (min-width: 768px) {
    .grid-game .game-item {
        width: 33.333%; /* 平板端一行3个 */
    }
}

/* 移动端响应式布局 */
@media (max-width: 767px) {
    .grid-game .game-item {
        width: 30%; /* 移动端一行3个 */
    }
}

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

.grid-game .game-img {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 宽高比 */
    overflow: hidden;
}

.grid-game .game-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.game-info {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.game-info h3 {
    font-size: 14px;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    font-weight: 500;
}

.game-item .game-type {
    color: #999;
    font-size: 10px;
    margin: 0 0 5px;
}

.game-grid-index .download-rank-section {
    flex: 1;
    margin-top: 0;
    height: 100%;
}

/* 下载周榜样式 */
.download-rank-section {
    background-color: #fff;
    border-radius: 10px;
    overflow: visible;
    height: auto;
}

.download-rank-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f8f8f8;
}

.download-rank-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f8f8f8;
}

.rank-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.rank-more {
    margin-left: auto;
    color: #999;
    font-size: 13px;
    text-decoration: none;
}

.rank-list-index {
    padding: 0 15px;
    max-height: none;
    overflow: visible;
    margin-bottom: 15px;
    max-height: none;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.rank-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.rank-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    z-index: 2;
}

.rank-item:nth-child(1) .rank-number,
.rank-item:nth-child(2) .rank-number,
.rank-item:nth-child(3) .rank-number {
    color: #ff6b6b;
}

.rank-number {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

.rank-game-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
    background-color: #f0f0f0;
    display: inline-block;
    position: relative;
    border: 1px solid #eaeaea;
    vertical-align: middle;
}

.rank-item.simple .rank-game-img {
    display: none;
}

.rank-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #f0f0f0;
    vertical-align: middle;
}

/* 处理备用图片的显示 */
.rank-game-img .fallback-text {
    color: #999;
    font-size: 12px;
    text-align: center;
}

/* 图片加载中的动画 */
@keyframes imgLoading {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.rank-game-img.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    animation: imgLoading 1.5s infinite;
}

.rank-game-info {
    flex: 1;
    overflow: visible;
    min-width: 0;
}

.rank-game-info h3 {
    margin: 0 0 3px;
    font-size: 14px;
    color: #333;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-weight: normal;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.rank-game-info p {
    font-size: 12px;
    color: #999;
}

.rank-item:not(.simple) .rank-game-date {
    display: block;
}

.rank-download-btn {
    background-color: #3ac173;
    color: #fff;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 15px;
    margin-left: 10px;
    flex-shrink: 0;
    display: none;
    cursor: pointer;
}

.rank-item:not(.simple) .rank-download-btn {
    display: block;
}

.rank-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    z-index: 2;
}

/* 排行列表部分 */
.rank-list-index {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
}

@media (max-width: 1200px) {
    .game-info h3 {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .game-info {
        padding: 8px 5px;
    }

    .download-btn {
        padding: 8px 15px;
        font-size: 14px;
        min-width: 100px;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px 0;
    border-radius: 8px;
}
/* 权限弹窗样式 */
.permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.permission-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.permission-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0;
    min-width: 30vw;
    max-width: 30vw;
    min-height: 50vh;
    max-height: 50vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.permission-header {
    font-weight: bold;
    text-align: center;
    margin-bottom: 0;
    font-size: 16px;
    padding: 20px 20px 15px 20px;
    background: white;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1;
    position: relative;
}

.permission-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.permission-close:hover {
    background: #f5f5f5;
    color: #666;
    transform: scale(1.1);
}

.permission-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
}

.permission-item {
    margin-bottom: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
}

.permission-item:last-of-type {
    border-bottom: none;
}

.permission-footer {
    text-align: center;
    padding: 15px 20px 20px 20px;
    margin-top: 0;
    background: white;
    flex-shrink: 0;
}

.permission-confirm {
    background: linear-gradient(135deg, #3ac173, #15a754);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.permission-confirm:hover {
    background: linear-gradient(135deg, #3ac173, #15a754);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .permission-modal-content {
        margin: auto;
        min-width: 360px;
    }

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

.permission-link {
    color: #3ac173;
    background: none;
    border: none;
    text-decoration: none;
    font-weight: 600;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.permission-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}
