/* 文章详情页专用样式 */

/* 主容器布局 */
.site-content {
    padding: 30px 0;
}

/* 文章布局 - 左右分栏 */
.article-layout {
    display: flex;
    gap: 30px;
}

/* 左侧文章内容区域 */
.article-content {
    flex: 1;
    background: var(--card-bg);
    border-radius: 12px;
    padding:20px 30px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

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

/* 文章头部 */
.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.article-meta .read-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 文章缩略图 */
.article-thumbnail {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

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

.article-thumbnail img:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* 文章正文 */
.article-body {
    margin-bottom: 30px;
    line-height: 1.8;
}

.article-body .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.7;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 25px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-body ul {
    margin: 20px 0;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.article-body li strong {
    color: var(--accent-color);
}

/* 引用样式 */
.article-body blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    font-style: italic;
}

.article-body blockquote footer {
    margin-top: 10px;
    font-weight: 600;
    color: var(--accent-color);
}

/* 文章底部 */
.article-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-label,
.share-label {
    font-weight: 600;
    color: var(--text-primary);
}

.article-tags .tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-light);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.article-tags .tag:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    color: var(--text-primary);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.share-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}
.title-h2{
    margin: 0;
}
/* 相关文章 */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.related-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

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

.related-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

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

.related-image {
    height: 160px;
    overflow: hidden;
}

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

.related-card:hover .related-image img {
    transform: scale(1.1);
}

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

.related-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
}

/* Hot Tags 样式 - 与index.html完全保持一致 */
.tags-section {
    background: var(--card-bg);
    border-radius: 12px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: left;
    padding: 20px 0;
    margin: 0 -5px;
}

/* Hot Tags 区域 - 调整颜色以增加对比度 */
.tag-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(66, 133, 244, 0.1);
  color: #4285f4;
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

/* 颜色差异 - 使用更鲜明的颜色以增加可见度 */
.tag-link:nth-child(6n + 1) {
  color: #4285f4;
}

.tag-link:nth-child(6n + 2) {
  color: #f44336;
}

.tag-link:nth-child(6n + 3) {
  color: #34a853;
}

.tag-link:nth-child(6n + 4) {
  color: #ff9800;
}

.tag-link:nth-child(6n + 5) {
  color: #9c27b0;
}

.tag-link:nth-child(6n) {
  color: #757575;
}

.tag-link:hover {
    transform: translateY(-2px);
}

/* 游戏板块样式 */
.game-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

/* 平台图标样式 */
.platform-icon {
    background-color: rgba(255, 255, 255, 0.9);
    width: 29px;
    height: 29px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #333333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.platform-icon.windows {
    color: #0078d7;
}

.platform-icon.mac {
    color: #555;
}

.platform-icon.android {
    color: #a4c639;
}

.platform-icon.apple {
    color: #555;
}

/* 游戏卡片样式补充 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 5px 0 0 -15px;
    padding: 0;
    width: calc(100% + 30px);
}

.game-card {
    display: block;
    background: none;
    border: none;
    box-shadow: none;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.game-card:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    text-decoration: none;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.game-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.game-platforms {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
}

.game-info {
    padding: 10px 0;
}

.game-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.developer {
    display: none !important;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    font-size: 12px;
}

.game-rating i {
    color: #ffd700;
    font-size: 14px;
}

.game-rating span {
    margin-left: 4px;
    font-weight: 600;
    color: #333;
    font-size: 12px;
}

.tag {
    background-color: transparent;
    color: #666;
    font-size: 12px;
    padding: 0;
    border: none;
    display: inline-block;
    margin: 0;
    line-height: 1.2;
    transition: none;
}

.game-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* 平台分类样式 */
.platform-category {
    margin-bottom: 30px;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    position: relative;
}



.download-date {
    color: var(--text-secondary);
}

.download-count {
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-content {
        padding: 20px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .article-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .article-content {
        padding: 0;
        box-shadow: none;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        align-items: center;
        gap: 10px;
    }
    .platform-category{
        margin: 0;
    }
    
    .article-body .lead {
        font-size: 1.1rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .tags-section {
        padding: 0;

    }
    
    .tags-container {
        justify-content: flex-start;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    /* NEW DOWNLOAD响应式样式 */
    .game-grid.platform-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .game-title {
        font-size: 1rem;
    }
    .game-card{
        padding: 9px;
    }
    
    .game-meta {
        flex-wrap: wrap;
        gap: 4px;
    }
    
}