/* ==================== 详情页布局 ==================== */
.detail-page {
    background-color: #f5f5f5;
    padding: 20px 0 40px;
}

.detail-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
    min-height: 0;
}

/* ==================== 左侧边栏 ==================== */
.detail-sidebar {
    width: 240px;
    flex-shrink: 0;
}

/* 游戏卡片 */
.sidebar-game-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.game-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.game-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
}

/* 下载按钮组 */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-android-download,
.btn-pc-download {
    position: relative;
    width: 100%;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.btn-android-download {
    background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
    color: white;
    padding: 12px 15px;
    justify-content: space-between;
}

.btn-android-download:hover {
    background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 123, 0, 0.3);
}

.btn-android-download .btn-icon {
    font-size: 18px;
}

.btn-android-download .btn-text {
    flex: 1;
    text-align: center;
    font-size: 14px;
}

.btn-android-download .btn-qr {
    font-size: 16px;
    padding: 4px 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 12px;
}

.btn-pc-download {
    /*background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);*/
    background-color: #cccccc;
    color: #7a7575;
    padding: 12px 50px 12px 15px;
    justify-content: flex-start;
    gap: 8px;
    text-align: center;
}

/*.btn-pc-download:hover {*/
/*    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);*/
/*}*/

.btn-pc-download .btn-icon {
    font-size: 18px;
}

.btn-pc-download .btn-text {
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
}

.btn-pc-download.btn-download-center {
    justify-content: center;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
}

.btn-pc-download.btn-download-center .btn-text {
    flex: none;
    display: block;
    width: 100%;
    text-align: center;
}

.btn-pc-download .btn-sub {
    font-size: 10px;
    opacity: 0.85;
    display: block;
    margin-top: 2px;
    font-weight: normal;
}

.btn-pc-download .btn-cloud {
    font-size: 24px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* 游戏详细信息 */
.game-details {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    text-align: left;
    min-width: 0;
    overflow: hidden;
}

.detail-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.5;
    min-width: 0;
    overflow: hidden;
}

.detail-label {
    color: #999;
    min-width: 45px;
    flex-shrink: 0;
    font-weight: 500;
}

.detail-value {
    color: #333;
    margin-right: 20px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.detail-value.full {
    margin-top: 0;
    margin-right: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    line-height: 1.5;
}

.detail-value.stars {
    color: #ffa500;
    font-size: 14px;
}

/* 应用权限行 + 点击查看按钮 */
.info-permission-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    min-width: 0;
    overflow: hidden;
}

.info-permission-row .detail-label {
    flex-shrink: 0;
}

.permission-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    cursor: pointer;
    transition: all 0.25s ease;
}

.permission-link:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #096dd9 100%);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.35);
}

/* 权限弹窗 - 居中显示 */
.permission-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-sizing: border-box;
}

.permission-modal[style*="flex"] {
    pointer-events: auto;
}

.permission-modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.permission-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.permission-modal .permission-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    margin: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.permission-modal .permission-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    flex-shrink: 0;
}

.permission-modal .permission-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.permission-modal .permission-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.permission-modal .permission-close:hover {
    background: #f0f0f0;
    color: #333;
}

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

.permission-modal .permission-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.permission-modal .permission-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.permission-modal .permission-item h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.permission-modal .permission-item p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.permission-modal .permission-empty {
    margin: 0;
    color: #999;
    font-size: 14px;
}

.permission-modal .permission-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
    flex-shrink: 0;
}

.permission-modal .permission-confirm {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    cursor: pointer;
    transition: all 0.25s;
}

.permission-modal .permission-confirm:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #096dd9 100%);
}

/* 排行榜标签 */
.rank-tabs-sidebar {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.rank-tab {
    flex: 1;
    padding: 12px 10px;
    border: none;
    background-color: #f5f5f5;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.rank-tab:hover {
    background-color: #e8f5e9;
}

.rank-tab.active {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
    font-weight: bold;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 排行榜列表 */
.rank-list-sidebar {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.rank-item-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.rank-item-sidebar:last-child {
    border-bottom: none;
}

.rank-item-sidebar.top {
    background-color: #fffbf0;
    margin: 0 -15px;
    padding: 10px 15px;
    border-bottom: 1px solid #ffe4b5;
}

.rank-crown {
    font-size: 20px;
}

.rank-number {
    min-width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1890ff;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

.rank-item-sidebar img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.rank-info {
    flex: 1;
}

.rank-info h4 {
    font-size: 13px;
    color: #333;
    margin: 0 0 3px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.rank-text {
    flex: 1;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 专题推荐 */
.topic-recommend {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.topic-title {
    font-size: 16px;
    font-weight: bold;
    color: #00c853;
    margin: 0 0 15px 0;
    text-align: center;
}

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

.topic-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.topic-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.topic-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ==================== 主内容区 ==================== */
.detail-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* 内容块 */
.content-block {
    background-color: #fff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.block-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid #ff8c00;
}

/* 游戏截图轮播：图片占满区域 */
.screenshot-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.screenshot-carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.screenshot-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.screenshot-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.screenshot-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.screenshot-carousel-prev,
.screenshot-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.screenshot-carousel-prev:hover,
.screenshot-carousel-next:hover {
    background: rgba(0, 0, 0, 0.75);
}

.screenshot-carousel-prev {
    left: 12px;
}

.screenshot-carousel-next {
    right: 12px;
}

.screenshot-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.screenshot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.screenshot-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.screenshot-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .screenshot-carousel {
        max-height: 280px;
        aspect-ratio: 16 / 9;
    }

    .screenshot-carousel-prev,
    .screenshot-carousel-next {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

/* 兼容旧结构：手机截图（若其他页面仍使用） */
.phone-screenshots {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.phone-screenshot {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-frame {
    width: 180px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 25px;
    padding: 12px 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 游戏简介 */
.game-description {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.game-description p {
    margin: 15px 0;
    text-indent: 2em;
}

.game-description p img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

/* 游戏特色 */
.game-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-row {
    padding: 12px;
    background-color: #f9f9f9;
    border-left: 3px solid #ff8c00;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.feature-row strong {
    color: #333;
    margin-right: 8px;
}

/* 信息表格 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.info-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 12px 15px;
    line-height: 1.6;
}

.info-table td.label {
    background-color: #f9f9f9;
    color: #666;
    font-weight: 500;
    width: 120px;
}

.info-table td.value {
    background-color: #fff;
    color: #333;
}

/* 相关推荐网格 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: stretch;
}

.related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
    transition: all 0.3s;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.related-card h4 {
    padding: 12px 15px 5px;
    margin: 0;
    font-size: 15px;
    color: #333;
}

.related-card p {
    padding: 0 15px 12px;
    margin: 0;
    font-size: 13px;
    color: #999;
}

/* ==================== 资讯详情页样式 ==================== */

/* 资讯详情页容器 */
.news-detail-page {
    background-color: #f5f5f5;
    padding: 20px 0 40px;
}

/* 资讯详情包裹层 */
.news-detail-wrap {
    display: flex;
    gap: 20px;
    align-items: stretch;
    min-height: 0;
}

/* 文章主内容区 */
.article-main {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* 文章头部 */
.article-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

/* 文章标题 */
.article-title {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

/* 文章元信息 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #999;
}

.meta-item em {
    color: #666;
    font-style: normal;
}

/* 文章正文 */
.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.article-content p {
    margin: 15px 0;
    text-indent: 2em;
}

.article-content h2.content-subtitle {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 25px 0 15px 0;
    padding-left: 10px;
    border-left: 4px solid #ff8c00;
}

/* 文章图片 */
.article-img {
    margin: 20px 0;
    text-align: center;
}

.article-img img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 引用块 */
.article-quote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f0f8ff;
    border-left: 4px solid #1890ff;
    border-radius: 4px;
}

.article-quote p {
    margin: 0;
    text-indent: 0;
    color: #555;
    font-style: italic;
}

/* 分享区域 */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.share-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.share-weixin {
    background-color: #07c160;
    color: white;
}

.share-weibo {
    background-color: #e6162d;
    color: white;
}

.share-qzone {
    background-color: #fdbe18;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 评论区 */
.comment-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.comment-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: #1890ff;
}

.comment-submit {
    align-self: flex-start;
    padding: 10px 30px;
    background: linear-gradient(135deg, #1890ff 0%, #0066cc 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
}

.comment-submit:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(24, 144, 255, 0.4);
}

/* 相关推荐 */
.related-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.related-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.related-list .related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.related-card h4 {
    padding: 12px 15px 5px;
    margin: 0;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-date {
    padding: 0 15px 12px;
    margin: 0;
    font-size: 12px;
    color: #999;
}

/* 右侧边栏 */
.news-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 边栏组件 */
.sidebar-widget {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    padding-left: 10px;
    border-left: 3px solid #ff8c00;
}

/* 热门资讯列表 */
.hot-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e5e5;
}

.hot-news-item:last-child {
    border-bottom: none;
}

.hot-news-item a {
    flex: 1;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.hot-news-item a:hover {
    color: #ff8c00;
}

.news-date {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    margin-left: 10px;
}

/* 火爆游戏网格 */
.hot-games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
}

.hot-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.25s ease;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    color: inherit;
}

.hot-game-item:hover {
    background-color: #f5f5f5;
}

.hot-game-item img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.hot-game-item span {
    font-size: 12px;
    color: #666;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    min-width: 0;
}

/* ==================== 资讯详情页响应式 ==================== */

@media (max-width: 1200px) {
    .news-detail-wrap {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-detail-page {
        padding: 15px 0 30px;
    }

    .article-main {
        padding: 20px;
    }

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

    .article-meta {
        gap: 12px;
        font-size: 12px;
    }

    .article-content {
        font-size: 14px;
    }

    .related-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .article-main {
        padding: 15px;
    }

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

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .hot-games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .hot-game-item img {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }

    .hot-game-item span {
        font-size: 11px;
    }
}

/* ==================== 专题详情页全新样式 ==================== */

/* 专题页面整体 */
.zt-page {
    background-color: #f5f5f5;
    padding: 20px 0 40px;
}

/* 顶部区域（横幅+信息） */
.zt-top-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
    min-height: 0;
}

/* 专题大图横幅 */
.zt-banner {
    flex: 0 0 58%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
}

.zt-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右侧信息盒子 */
.zt-info-box {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

/* 应用网格容器 */
.zt-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    align-items: stretch;
}

/* 应用盒子 */
.zt-app-box {
    background-color: #fff;
    padding: 16px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.zt-app-box:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 应用图标 */
.zt-app-logo {
    width: 75px;
    height: 75px;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

/* 应用标题 */
.zt-app-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* 应用时间 */
.zt-app-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

/* 应用星级 */
.zt-app-stars {
    color: #ffa500;
    font-size: 13px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* 应用下载按钮 */
.zt-app-btn {
    padding: 7px 22px;
    background: linear-gradient(135deg, #1890ff 0%, #0066cc 100%);
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
    margin-bottom: 10px;
}

.zt-app-btn:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(24, 144, 255, 0.4);
}

/* 应用简介 */
.zt-app-intro {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    word-break: break-all;
}

/* 热门专题区块 */
.zt-hot-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* 热门专题头部 */
.zt-hot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

/* 热门专题标题 */
.zt-hot-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding-left: 10px;
    border-left: 3px solid #00c853;
}

/* 更多链接 */
.zt-hot-more {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #ff8c00;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.zt-hot-more:hover {
    color: #ff6600;
}

.zt-hot-more span:last-child {
    font-size: 18px;
    font-weight: bold;
}

/* 热门专题列表 */
.zt-hot-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: stretch;
}

/* 热门专题项 */
.zt-hot-item {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/9;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.zt-hot-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* 热门专题遮罩 */
.zt-hot-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.zt-hot-mask h4 {
    margin: 0;
    font-size: 13px;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 专题名称 */
.zt-info-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

/* 信息元数据 */
.zt-info-meta {
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

/* 信息项 */
.zt-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.zt-info-item:last-child {
    margin-bottom: 0;
}

/* 信息键 */
.zt-info-key {
    color: #999;
    min-width: 75px;
    flex-shrink: 0;
}

/* 信息值 */
.zt-info-val {
    color: #333;
    flex: 1;
}

/* 专题描述文字 */
.zt-info-text {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}

.zt-info-text p {
    margin: 0;
    text-indent: 2em;
}

/* ==================== 专题页响应式 ==================== */

/* 平板 */
@media (max-width: 1200px) {
    .zt-top-section {
        flex-direction: column;
    }

    .zt-banner {
        flex: 1;
        width: 100%;
    }

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

/* 小屏幕 */
@media (max-width: 768px) {
    .zt-page {
        padding: 15px 0 30px;
    }

    .zt-app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .zt-app-box {
        padding: 14px 12px;
    }

    .zt-app-logo {
        width: 65px;
        height: 65px;
    }

    .zt-app-title {
        font-size: 13px;
    }

    .zt-app-time {
        font-size: 11px;
    }

    .zt-app-stars {
        font-size: 12px;
    }

    .zt-app-btn {
        padding: 6px 20px;
        font-size: 12px;
    }

    .zt-hot-section {
        padding: 18px;
    }

    .zt-hot-list {
        gap: 10px;
    }

    .zt-info-box {
        padding: 18px;
    }

    .zt-info-name {
        font-size: 18px;
    }
}

/* 手机 */
@media (max-width: 576px) {
    .zt-app-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .zt-app-box {
        padding: 14px;
    }

    .zt-app-logo {
        width: 70px;
        height: 70px;
    }

    .zt-app-title {
        font-size: 14px;
    }

    .zt-hot-section {
        padding: 15px;
    }

    .zt-hot-title {
        font-size: 16px;
    }

    .zt-hot-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .zt-info-box {
        padding: 15px;
    }

    .zt-info-name {
        font-size: 17px;
    }

    .zt-info-key {
        min-width: 70px;
    }
}

/* ==================== 专题详情页样式 ==================== */
.topic-detail-page {
    background-color: #f5f5f5;
    padding: 20px 0 40px;
}

.topic-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 左侧主内容区 */
.topic-main {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 320px);
}

/* 专题横幅 */
.topic-banner {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

/* 应用网格列表 */
.topic-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    align-items: stretch;
}

.app-grid-item {
    background-color: #fff;
    padding: 16px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.app-grid-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.app-grid-icon {
    width: 75px;
    height: 75px;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

.app-grid-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.app-grid-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.app-grid-rating {
    color: #ffa500;
    font-size: 13px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.app-grid-download {
    padding: 7px 22px;
    background: linear-gradient(135deg, #1890ff 0%, #0066cc 100%);
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.3);
    margin-bottom: 10px;
}

.app-grid-download:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(24, 144, 255, 0.4);
}

.app-grid-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    word-break: break-all;
}

/* 热门专题区块 */
.hot-topics-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding-left: 10px;
    border-left: 3px solid #1890ff;
}

.more-link {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #1890ff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.more-link:hover {
    color: #1890ff;
}

.more-link .arrow {
    font-size: 18px;
    font-weight: bold;
}

.hot-topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.hot-topic-card {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/9;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hot-topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hot-topic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.topic-overlay h4 {
    margin: 0;
    font-size: 13px;
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 右侧信息栏 */
.topic-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.topic-info-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 20px;
}

.topic-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.topic-meta-info {
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.meta-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.meta-label {
    color: #999;
    min-width: 75px;
    flex-shrink: 0;
}

.meta-value {
    color: #333;
    flex: 1;
}

.topic-description {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}

.topic-description p {
    margin: 0;
    text-indent: 2em;
}

/* ==================== 专题页响应式设计 ==================== */
@media (max-width: 1200px) {
    .topic-layout {
        flex-direction: column;
    }

    .topic-main {
        max-width: 100%;
    }

    .topic-sidebar {
        width: 100%;
    }

    .topic-info-card {
        position: static;
    }

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

@media (max-width: 768px) {
    .topic-detail-page {
        padding: 15px 0 30px;
    }

    .topic-apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .app-grid-item {
        padding: 14px 12px;
    }

    .app-grid-icon {
        width: 65px;
        height: 65px;
    }

    .app-grid-name {
        font-size: 13px;
    }

    .app-grid-date {
        font-size: 11px;
    }

    .app-grid-rating {
        font-size: 12px;
    }

    .app-grid-download {
        padding: 6px 20px;
        font-size: 12px;
    }

    .hot-topics-section {
        padding: 18px;
    }

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

    .topic-info-card {
        padding: 18px;
    }

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

@media (max-width: 576px) {
    .topic-apps-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .app-grid-item {
        padding: 14px;
    }

    .app-grid-icon {
        width: 70px;
        height: 70px;
    }

    .app-grid-name {
        font-size: 14px;
    }

    .hot-topics-section {
        padding: 15px;
    }

    .section-title {
        font-size: 16px;
    }

    .hot-topics-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .topic-info-card {
        padding: 15px;
    }

    .topic-title {
        font-size: 17px;
    }

    .meta-label {
        min-width: 70px;
    }
}

/* 截图放大遮罩层 */
.screenshot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

.overlay-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.close-overlay {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-overlay:hover {
    background-color: white;
    transform: rotate(90deg);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .detail-layout {
        flex-direction: column;
    }

    .detail-sidebar {
        width: 100%;
    }

    .phone-screenshots {
        justify-content: space-between;
    }

    .phone-frame {
        width: 160px;
    }
}

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

@media (max-width: 768px) {
    .detail-page {
        padding: 15px 0 30px;
    }

    .detail-sidebar {
        width: 100%;
    }

    .content-block {
        padding: 20px;
    }

    .phone-screenshots {
        justify-content: center;
    }

    .phone-frame {
        width: 140px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sidebar-game-card {
        padding: 15px;
    }

    .game-icon {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .content-block {
        padding: 15px;
    }

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

    .phone-screenshots {
        gap: 15px;
    }

    .phone-frame {
        width: 130px;
    }

    .btn-download-large {
        width: 100%;
        padding: 12px 30px;
    }

    .info-table td.label {
        width: 100px;
        font-size: 13px;
    }
}
