/* 游戏页面专用样式 */

/* 两侧装饰图片 */
.side-decoration-container {
    position: fixed;
    top: 70px; /* 初始位置在顶部导航下面，与nav-wrapper高度匹配 */
    left: 0;
    width: 100%;
    height: 80vh; /* 高度占页面的80% */
    pointer-events: none;
    z-index: 9999; /* 设置最高层级，显示在最上面 */
    transition: top 0.3s ease; /* 平滑过渡效果 */
}

/* 滚动时的吸附状态 */
.side-decoration-container.scrolled {
    top: 0; /* 滚动时吸附在页面最上面 */
}

.side-decoration {
    opacity: 0.8;
    transition: all 0.3s ease;
    height: 100%; /* 占满容器高度 */
    width: 300px; /* 设置默认宽度 */
}

.left-decoration {
    left: 20px;
}

.right-decoration {
    right: 20px;
}

.side-decoration img {
    width: 300px; /* 固定宽度为300px */
    height: 100%; /* 高度占满容器 */
    object-fit: cover; /* 改为cover以保持图片不变形并填满容器 */
    display: block;
    border-radius: 8px; /* 添加圆角 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

/* 悬浮效果 */
.side-decoration:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

/* 响应式隐藏装饰图片 */
@media (max-width: 1400px) {
    .side-decoration-container {
        display: none;
    }
}

/* 主容器 */
.game-page-container {
    background: linear-gradient(to bottom, #ffeef8, #ffffff);
    min-height: 100vh;
    padding-bottom: 50px;
}

/* 面包屑导航 */
.breadcrumb-nav {
    width: 100%;
    background: url(../image/pgamebg.png) no-repeat center;
    backdrop-filter: blur(10px);
    padding: 10px 0;
    margin-bottom: 20px;
}

.breadcrumb-items {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-items li {
    color: #666;
    font-size: 14px;
}

.breadcrumb-items li:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
    color: #999;
}

.breadcrumb-items a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-items a:hover {
    color: #FF7F7F;
}

/* 页面标题区域 */
.game-header-section {
    background: url(../img/irecbg.png) no-repeat center;
    background-size: cover;
    border-radius: 15px;
    margin: 0 auto 25px;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
}

.header-bg-wrapper {
    /* background: linear-gradient(135deg, rgba(255, 107, 157, 0.9), rgba(102, 126, 234, 0.9)); */
    background: url(../img/pgamebg.png) no-repeat center;
    padding: 40px 20px;
    text-align: center;
}

.title-content {
    color: black;
}

.main-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sub-description {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

.total-count {
    color: #FF7F7F;
    font-weight: bold;
    font-size: 18px;
}

/* 分类筛选区域 */
.category-filter-section {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.filter-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-tag {
    background: #f5f7fa;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.filter-tag:hover::before {
    left: 100%;
}

.filter-tag:hover,
.filter-tag.active {
    background: linear-gradient(135deg, #FF7F7F, #FFB6B6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 64, 147, 0.3);
}

/* 游戏列表区域 */
.game-list-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* 游戏卡片 */
.game-item-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 游戏卡片容器 - 左右布局 */
.game-item-card-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.game-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF7F7F, #FFB6B6, #667eea);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.game-item-card:hover::before {
    transform: scaleX(1);
}

/* 游戏缩略图 */
.game-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

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

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

/* 状态徽章 */
.status-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 游戏详情 */
.game-details {
    flex: 1;
    min-width: 0;
}

.game-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-info-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.file-size,
.game-category,
.update-date {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    color: #FF7F7F;
    font-weight: 500;
}

.game-category {
    color: #28a745;
}

.update-date {
    color: #999;
}

/* 操作按钮 */
.action-button {
    width: 100%;
    background: linear-gradient(135deg, #FF7F7F, #FFB6B6);
    /*#FF7F7F*/
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.action-button:hover::before {
    width: 300px;
    height: 300px;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 64, 147, 0.4);
}

.action-button:active {
    transform: translateY(0);
}

/* 分页导航 */
.pagination-nav {
    margin-top: 40px;
    text-align: center;
}

.page-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    background: white;
    padding: 15px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 40px;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.page-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #FF7F7F, #FFB6B6);
    border-radius: 20px;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.page-link:hover::before,
.page-link.current::before {
    width: 100%;
    height: 100%;
}

.page-link:hover,
.page-link.current {
    color: white;
    transform: scale(1.1);
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-item-card {
    animation: fadeInUp 0.6s ease forwards;
}

.game-item-card:nth-child(1) {
    animation-delay: 0.1s;
}

.game-item-card:nth-child(2) {
    animation-delay: 0.2s;
}

.game-item-card:nth-child(3) {
    animation-delay: 0.3s;
}

.game-item-card:nth-child(4) {
    animation-delay: 0.4s;
}

.game-item-card:nth-child(5) {
    animation-delay: 0.5s;
}

.game-item-card:nth-child(6) {
    animation-delay: 0.6s;
}

.game-item-card:nth-child(7) {
    animation-delay: 0.7s;
}

.game-item-card:nth-child(8) {
    animation-delay: 0.8s;
}

/* 搜索筛选效果 */
.game-item-card.hidden {
    display: none;
}

.game-item-card.filtering {
    opacity: 0.3;
    transform: scale(0.95);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF7F7F, #FFB6B6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF7F7F, #FFB6B6);
}

/* =================== 游戏详情页面样式 =================== */

/* 游戏详情页面主容器 */
.game-detail-container {
    background: linear-gradient(to bottom, #ffeef8, #ffffff);
    min-height: 100vh;
    padding-bottom: 50px;
}

/* 游戏详情头部 */
.game-detail-header {
    background: white;
    border-radius: 15px;
    margin: 0 auto 30px;
    max-width: 1200px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    min-height: 320px;
}

/* 左侧游戏信息区域 */
.game-info-section {
    flex: 1;
    padding: 30px;
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
}

.game-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 游戏标题行 */
.game-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

/* 游戏标签 */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f0f4ff;
    color: #5678ef;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e6efff;
}

/* 游戏详情网格 */
.game-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.detail-item.detail-full {
    grid-column: 1 / -1;
}

.detail-label {
    color: #666;
    min-width: 80px;
    font-weight: 500;
}

.detail-value {
    color: #333;
    font-weight: 600;
}

/* 下载按钮 */
.download-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.download-btn {
    /*display: flex;*/
    /*flex-direction: row;*/
    /*align-items: center;*/
    /*gap: 4px;*/
    /*justify-content: center;*/
    /*padding: 12px 20px;
    */
    background: linear-gradient(135deg, #FF7F7F, #FFB6B6);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    height: 44px;
}

.android-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.android-btn a {
    display: flex;
    justify-content: center;
    flex-direction: row;
    width: 160px;
    height: 44px;
    padding: 3px;
}

.android-btn span {
    align-content: center;
}

.pc-btn a {
    display: flex;
    justify-content: center;
    flex-direction: row;
    width: 160px;
    height: 44px;
    padding: 3px;
}

.pc-btn span {
    align-content: center;
}
.pc-btn {
    background: #ccc;
    color: white;
}

.btn-subtitle {
    font-size: 10px;
    opacity: 0.9;
    font-weight: 400;
}

a {
    text-decoration: none;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.android-btn:hover {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* 右侧横幅区域 - 轮播图 */
.game-banner-section {
    border-radius: 15px;
    flex: 1.2;
    position: relative;
    overflow: hidden;
}

.banner-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.6s ease-in-out;
    transform: translateX(100%);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.carousel-slide.prev {
    transform: translateX(-100%);
    z-index: 1;
}

.carousel-slide.next {
    transform: translateX(100%);
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

/* 轮播箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

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

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 横幅覆盖层 */
.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 30px 25px 20px;
    color: white;
    transition: all 0.3s ease;
}

.banner-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease;
}

.banner-subtitle {
    font-size: 16px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* 轮播动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 轮播图暂停动画 */
.banner-carousel:hover .carousel-slide {
    animation-play-state: paused;
}

/* 游戏详情内容布局 */
.game-detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 主要内容区域 */
.main-content {
    /*background: white;*/
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: url(../image/background.jpg) no-repeat fixed;
    background-size: 100% auto;
    background-color: #fff;
}

.game-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* 文章标题区域 */
.article-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #666;
    font-size: 14px;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.publish-date::before {
    content: '📅';
    margin-right: 5px;
}

.author::before {
    content: '👤';
    margin-right: 5px;
}

.views::before {
    content: '👁️';
    margin-right: 5px;
}

/* 游戏介绍 */
.game-introduction p {
    text-indent: 4ch;
    font-size: 16px;
    line-height: 2.5;
    color: #444;
    text-align: justify;
}

.game-introduction p img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 内容图片 */
.content-image {
    text-align: center;
    margin: 30px 0;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-image img:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* 攻略章节 */
.strategy-section h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF7F7F;
    position: relative;
}

.strategy-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(135deg, #FF7F7F, #FFB6B6);
}

.strategy-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 25px 15px 15px 15px;
    position: relative;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.strategy-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
}

.strategy-section p {
    padding: 0 10px 0 10px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.strategy-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.strategy-section li {
    padding: 8px 0;
    color: #555;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.strategy-section li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #FF7F7F;
    font-size: 12px;
}

.strategy-section ol {
    counter-reset: item;
    padding: 0;
}

.strategy-section ol li {
    counter-increment: item;
    padding-left: 25px;
}

.strategy-section ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 8px;
    background: linear-gradient(135deg, #FF7F7F, #FFB6B6);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 控制技巧 */
.control-tips {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.control-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.control-action {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.control-method {
    color: #666;
    flex: 1;
}

/* 武器类型网格 */
.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.weapon-type {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #FF7F7F;
    transition: transform 0.3s ease;
}

.weapon-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.weapon-type h4 {
    color: #FF7F7F;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.weapon-type p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* 相关攻略推荐 */
.related-guides {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.related-guides h2 {
    margin-top: 0;
}

.related-guides-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.related-guides-header img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.guide-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.guide-link:hover {
    border-left-color: #FF7F7F;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.guide-title {
    font-weight: 500;
    color: #333;
}

.guide-date {
    font-size: 12px;
    color: #999;
}

/* 侧边栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar > div {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
    flex: 2;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF7F7F;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card-header img {
    width: 40px;
    height: 40px;
}
.popular-guides-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar img {
    /*flex: 1;
    */
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

/* 游戏信息卡片 */
.info-list {
    margin: 0;
}

.info-list dt {
    font-weight: 600;
    color: #333;
    float: left;
    clear: left;
    width: 80px;
    margin-bottom: 8px;
}

.info-list dd {
    color: #666;
    margin-left: 80px;
    margin-bottom: 8px;
}

/* 目录导航 */
.table-of-contents .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents .toc-list li {
    margin: 8px 0;
}

.table-of-contents .toc-list a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.table-of-contents .toc-list a:hover {
    color: #FF7F7F;
}

.table-of-contents .toc-list ul {
    margin-left: 15px;
    margin-top: 5px;
}

.table-of-contents .toc-list ul a {
    font-size: 13px;
    color: #999;
}

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

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

.popular-info {
    flex: 1;
}

.popular-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.3;
}

.popular-meta {
    font-size: 12px;
    color: #999;
}

/* 热门合集卡片样式 */
.collection-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
}

.collection-card {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.card-image {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.card-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-card:hover .card-image img {
    transform: none;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 8px 10px 6px;
    color: white;
}

.card-title {
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: block;
    line-height: 1.2;
}

/* 最新更新 */
.latest-updates .update-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.latest-updates .update-item:last-child {
    border-bottom: none;
    margin-bottom: 10px;
}

.latest-updates .update-date {
    background: #FF7F7F;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    min-width: 35px;
    text-align: center;
}

.latest-updates .update-title {
    color: #666;
    font-size: 13px;
    flex: 1;
}

.latest-updates-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.latest-updates-header img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

/* ==================== 排行榜页面样式 ==================== */

/* 排行榜顶部横幅 */
.ranking-hero-banner {
    background: linear-gradient(135deg, #FF7F7F 0%, #FFB6B6 50%, #667eea 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text-section {
    margin-bottom: 30px;
}

.hero-main-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.9;
}

.hero-decorative-elements {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.floating-icon {
    font-size: 30px;
    animation: float 3s ease-in-out infinite;
}

.floating-icon.icon-star {
    animation-delay: 0.5s;
}

.floating-icon.icon-crown {
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 排行榜标签导航 */
.ranking-tabs-container {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

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

.ranking-tab-navigation {
    width: 100%;
    justify-content: center;
    display: flex;
    gap: 0;
}

.ranking-tab-navigation a:hover, .ranking-tab-navigation a.active {
    color: #fff;
    background-color: #feedf4;
    border-color: #feedf4;
}


.tab-switch-btn {
    background: none;
    border: none;
    padding: 20px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-switch-btn.active {
    color: #FF7F7F;
    border-bottom-color: #FF7F7F;
    background: linear-gradient(135deg, rgba(241, 64, 147, 0.05), rgba(255, 107, 157, 0.05));
}

.tab-switch-btn:hover {
    color: #FF7F7F;
    background: rgba(241, 64, 147, 0.05);
}

/* 排行榜主要内容 */
.ranking-main-section {
    min-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* 排行榜列表 */
.ranking-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ranking-entry-item {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 80px 80px 1fr auto;
    gap: 20px;
    align-items: center;
    position: relative;
    border: 1px solid #f0f0f0;
}

.ranking-entry-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #FF7F7F;
}

/* 排名徽章 */
.rank-position-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    position: relative;
}

.rank-position-badge.top1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.rank-position-badge.top2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.rank-position-badge.top3 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #fff;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.rank-position-badge:not(.top1):not(.top2):not(.top3) {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.rank-number {
    font-size: 14px;
    font-weight: 700;
}

/* 应用图标 */
.app-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-ranking-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ranking-entry-item:hover .app-ranking-icon {
    transform: scale(1.05);
}

/* 应用详情 */
.app-details-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.app-name-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.3;
}

.app-meta-info {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

.release-date,
.file-size {
    display: flex;
    align-items: center;
    gap: 5px;
}

.app-description-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.app-tag {
    background: linear-gradient(135deg, #FF7F7F, #FFB6B6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* 下载按钮 */
.download-btn-primary {
    margin: auto;
    background: linear-gradient(135deg, #FF7F7F, #FFB6B6);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    align-self: flex-start;
}

.download-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 64, 147, 0.4);
}

.download-btn img {
    width: 40px;
    height: 40px;
}

/* 资讯和专题合集区域样式 */
.news-collections-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin-top: 40px;
}

.news-collections-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* 左侧最新资讯样式 */
.news-section-left {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-header-news {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e1e5e9;
}

.section-title-news {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.more-link-news {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.more-link-news:hover {
    color: #FF7F7F;
}

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

.news-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.news-item-row:hover {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
}

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

.news-title {
    flex: 1;
    font-size: 14px;
    color: #34495e;
    cursor: pointer;
    transition: color 0.3s ease;
}

.news-title:hover {
    color: #FF7F7F;
}

.news-date {
    font-size: 12px;
    color: #95a5a6;
    white-space: nowrap;
    margin-left: 12px;
}

/* 右侧下载排行样式 */
.download-ranking-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-header-ranking {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e1e5e9;
}

.section-title-ranking {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.more-link-ranking {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.more-link-ranking:hover {
    color: #FF7F7F;
}

.download-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.download-rank-item:hover {
    background-color: #f8f9fa;
    border-color: #e1e5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rank-badge-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: #95a5a6;
    flex-shrink: 0;
}

.rank-badge-num.gold-badge {
    background: linear-gradient(135deg, #FF7F7F, #FFB6B6);
    background: linear-gradient(135deg, #FF7F7F, #FFB6B6);
}

.rank-badge-num.silver-badge {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.rank-badge-num.bronze-badge {
    background: linear-gradient(135deg, #d35400, #e67e22);
}

.rank-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.rank-app-info {
    flex: 1;
    min-width: 0;
}

.rank-app-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-app-meta {
    font-size: 12px;
    color: #95a5a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-collections-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-collections-section {
        padding: 20px 0;
    }

    .news-section-left,
    .download-ranking-section {
        padding: 16px;
    }

    .news-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .news-date {
        margin-left: 0;
    }

    .download-rank-item {
        padding: 8px;
    }

    .rank-app-icon {
        width: 40px;
        height: 40px;
    }
}

/* 权限弹窗样式 */
.permission-link {
    background: none;
    border: none;
    color: #FF7F7F;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    text-decoration: underline;
}

.permission-link:hover {
    color: #FFB6B6;
}

.permission-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.permission-modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.permission-modal.show .permission-modal-content {
    transform: translateY(0);
}

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

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

.permission-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    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: #333;
}

.permission-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.permission-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

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

.permission-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

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

.permission-footer {
    padding: 15px 20px;
    text-align: right;
    border-top: 1px solid #eee;
}

.permission-confirm {
    background: linear-gradient(135deg, #FF7F7F, #FFB6B6);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.permission-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 64, 147, 0.3);
}
