/* ======================================
   影视模板 - 蓝色系风格
   简洁设计，无大面积色块
   ====================================== */

:root {
    --primary-color: #1e88e5;
    --secondary-color: #42a5f5;
    --accent-color: #0d47a1;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition);
}

/* ======================================
   Header 样式
   ====================================== */

.yingshi-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
    background: inherit;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: inline-block;
    width: 120px;
    height: 40px;
    text-decoration: none;
    transition: opacity var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .logo {
        width: 108px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 96px;
        height: 32px;
    }
}

.nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
}

.nav-item {
    display: inline-block;
    padding: 8px 15px;
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.toggle-line {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
}

/* ======================================
   主内容区
   ====================================== */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
}

.section {
    background: var(--bg-white);
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(30, 136, 229, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.more-link {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.more-link:hover {
    color: var(--primary-color);
}

/* ======================================
   海报网格样式（最近更新+分类）
   ====================================== */

.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    width: 100%;
}

.poster-card {
    position: relative;
    width: 100%;
}

.card-link {
    display: block;
    width: 100%;
}

.card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-light);
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.card-link:hover .card-poster {
    transform: translateY(-2px);
}

.card-link:hover .card-poster img {
    transform: scale(1.05);
}

.no-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.85rem;
    background: var(--bg-light);
}

.no-content {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 左上角评分 */
.card-score {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* 底部更新状态 */
.card-status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 8px;
    font-size: 0.75rem;
    text-align: center;
}

/* 分类海报的标签 */
.card-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    z-index: 2;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 8px;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-link:hover .card-title {
    color: var(--primary-color);
}

.card-meta {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.card-actors {
    font-size: 0.75rem;
    color: var(--text-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ======================================
   分类标签
   ====================================== */

.category-tags {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    padding: 8px;
    background: var(--bg-light);
    color: var(--text-gray);
    text-align: center;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.tag.active,
.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* ======================================
   查看更多按钮
   ====================================== */

.view-more {
    text-align: center;
    margin-top: 15px;
}

.view-more a {
    display: inline-block;
    padding: 10px 40px;
    background: var(--bg-light);
    color: var(--text-gray);
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.view-more a:hover {
    background: var(--primary-color);
    color: white;
}

/* ======================================
   友情链接
   ====================================== */

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.link-item {
    padding: 10px;
    background: var(--bg-light);
    color: var(--text-gray);
    text-align: center;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.link-item:hover {
    background: var(--primary-color);
    color: white;
}

/* ======================================
   Footer 样式
   ====================================== */

.yingshi-footer {
    background: var(--bg-white);
    padding: 20px 15px;
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-link {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.footer-content p {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 5px 0;
}

/* ======================================
   列表页专用样式
   ====================================== */

.category-header {
    text-align: center;
    padding: 25px 15px;
}

.category-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.category-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

.filter-section {
    padding: 15px;
}

.video-grid-section {
    padding: 15px;
}

.pagination-section {
    padding: 15px;
    text-align: center;
}

.pagination-section a,
.pagination-section span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.85rem;
    color: var(--text-gray);
    text-decoration: none;
    transition: all var(--transition);
}

.pagination-section a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-section .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   列表页 - 新设计 (标签在顶部 + 列表卡片)
   ============================================ */

/* 过滤标题 */
.filter-section .filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-left: 15px;
}

/* 改进的标签样式 */
.filter-section .category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 15px 15px 15px;
    margin: 0;
}

.filter-section .tag {
    padding: 6px 16px;
    background: var(--bg-light);
    color: var(--text-gray);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    white-space: nowrap;
}

.filter-section .tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 文章列表布局 */
.video-list-section {
    padding: 0 !important;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
}

/* 文章卡片项 */
.article-item {
    background: var(--bg-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all var(--transition);
}

.article-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.item-link {
    display: flex;
    height: 140px;
    text-decoration: none;
}

/* 左侧海报 */
.item-poster {
    position: relative;
    width: 100px;
    min-width: 100px;
    height: 100%;
    background: var(--bg-light);
    overflow: hidden;
}

.item-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.article-item:hover .item-poster img {
    transform: scale(1.1);
}

/* 评分徽章 */
.item-score {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

/* 集数徽章 */
.item-badge {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* 右侧内容 */
.item-content {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}

.article-item:hover .item-title {
    color: var(--primary-color);
}

.item-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

/* 底部信息 */
.item-footer {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.item-date,
.item-views {
    display: flex;
    align-items: center;
}

.item-date::before {
    content: '📅 ';
    margin-right: 4px;
}

.item-views::before {
    content: '👁️ ';
    margin-right: 4px;
}

/* ======================================
   响应式断点
   ====================================== */

@media (max-width: 1200px) {
    .poster-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 900px) {
    /* 移除旧列表页布局 */
}

@media (max-width: 768px) {
    .filter-section .tag {
        padding: 5px 12px;
        font-size: 0.75rem;
        border-radius: 16px;
    }

    .article-item {
        border-radius: 4px;
    }

    .item-link {
        height: 120px;
    }

    .item-poster {
        width: 90px;
        min-width: 90px;
    }

    .item-content {
        padding: 10px 12px;
    }

    .item-title {
        font-size: 0.9rem;
    }

    .item-desc {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }

    .item-footer {
        font-size: 0.7rem;
        gap: 10px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 10px 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .poster-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .category-tags {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .links-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-title {
        font-size: 0.8rem;
    }

    .card-actors {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .filter-section .filter-title {
        padding-left: 12px;
    }

    .filter-section .category-tags {
        padding: 0 12px 12px 12px;
        gap: 8px;
    }

    .filter-section .tag {
        padding: 4px 10px;
        font-size: 0.7rem;
        border-radius: 14px;
    }

    .article-list {
        gap: 10px;
        padding: 10px;
    }

    .article-item {
        border-radius: 4px;
    }

    .item-link {
        height: 100px;
    }

    .item-poster {
        width: 80px;
        min-width: 80px;
    }

    .item-content {
        padding: 8px 10px;
    }

    .item-score {
        font-size: 0.65rem;
        padding: 2px 8px;
    }

    .item-badge {
        font-size: 0.6rem;
    }

    .item-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .item-desc {
        font-size: 0.7rem;
        margin-bottom: 6px;
        -webkit-line-clamp: 1;
    }

    .item-footer {
        font-size: 0.65rem;
        gap: 8px;
    }

    .main-content {
        padding: 8px 10px;
    }

    .section {
        padding: 12px;
    }

    .poster-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .card-title {
        font-size: 0.75rem;
    }

    .card-actors {
        font-size: 0.65rem;
    }

    .category-tags {
        grid-template-columns: repeat(3, 1fr);
    }

    .tag {
        font-size: 0.75rem;
        padding: 6px;
    }

    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   首页分类 Section - 创意网格海报设计
   ============================================ */

.poster-grid-creative {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    width: 100%;
}

.poster-card-creative {
    position: relative;
    width: 100%;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all var(--transition);
}

.poster-card-creative:hover {
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.2);
    transform: translateY(-3px);
}

.creative-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.creative-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    background: var(--bg-light);
    overflow: hidden;
    flex-shrink: 0;
}

.creative-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.poster-card-creative:hover .creative-poster img {
    transform: scale(1.08);
}

/* 评分徽章 - 圆形设计 */
.creative-score-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.4);
    z-index: 10;
}

/* 悬停时的覆盖层 */
.creative-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    z-index: 5;
}

.poster-card-creative:hover .creative-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
}

.overlay-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.overlay-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* 底部信息 */
.creative-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.creative-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.poster-card-creative:hover .creative-title {
    color: var(--primary-color);
}

.creative-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    flex: 1;
}

/* 响应式 - 创意网格 */
@media (max-width: 900px) {
    .poster-grid-creative {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .poster-grid-creative {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }

    .creative-score-badge {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .creative-info {
        padding: 10px;
    }

    .creative-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
    }

    .creative-desc {
        font-size: 0.7rem;
        display: none;
    }
}

@media (max-width: 480px) {
    .poster-grid-creative {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }

    .creative-score-badge {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        top: 6px;
        right: 6px;
    }

    .creative-info {
        padding: 8px;
    }

    .creative-title {
        font-size: 0.8rem;
        margin-bottom: 4px;
        -webkit-line-clamp: 1;
    }

    .creative-desc {
        font-size: 0.65rem;
    }
}

/* 筛选标签 - 与list_article.html一致 */
.filter-section .filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-left: 15px;
}

.filter-section .category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 15px 15px 15px;
    margin: 0;
}

.filter-section .tag {
    padding: 6px 16px;
    background: var(--bg-light);
    color: var(--text-gray);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.filter-section .tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 
 ======================================
   内容页面样式 (show_article.html) - 新布局
   ====================================== */

/* 面包屑 */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    padding: 12px 15px;
    background: var(--bg-white);
    color: var(--text-gray);
    margin-bottom: 8px;
}

.breadcrumb-item {
    color: var(--text-gray);
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-light);
}

/* 文章布局 - 左右两栏 */
.article-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* 左侧边栏 - 信息卡片 */
.article-sidebar {
    grid-column: 1;
    grid-row: 1;
}

.info-card {
    background: var(--bg-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.poster-box {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-light);
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.episode-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(30, 136, 229, 0.3);
}

.info-content {
    padding: 16px;
}

/* 评分展示 */
.score-display {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.score-num {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.score-text {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 6px;
    font-weight: 600;
}

/* 信息行 */
.info-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.info-label {
    color: var(--text-gray);
    font-weight: 600;
    min-width: 50px;
}

.info-value {
    color: var(--text-dark);
    text-align: right;
    flex: 1;
    margin-left: 8px;
    font-weight: 500;
    word-break: break-word;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-small {
    flex: 1;
    padding: 8px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-small:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 右侧内容区 */
.article-content {
    grid-column: 2;
    grid-row: 1;
    background: var(--bg-white);
    padding: 20px;
    border-radius: 6px;
}

.article-top {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* 内容区 */
.article-body {
    margin-bottom: 20px;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.article-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-text p {
    margin-bottom: 12px;
}

.article-text img {
    max-width: 80%;
    height: auto;
    margin: 16px auto;
    border-radius: 4px;
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.article-text p:has(img) {
    text-align: center;
}

.article-text ul,
.article-text ol {
    margin: 12px 0 12px 24px;
    padding: 0;
}

.article-text li {
    margin-bottom: 8px;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-text ul li {
    list-style-type: disc;
}

.article-text ol li {
    list-style-type: decimal;
}

.article-text h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 16px 0 10px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.article-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 12px 0 8px 0;
}

.article-text blockquote {
    margin: 12px 0;
    padding: 12px 15px;
    border-left: 1px solid var(--border-color);
    background: var(--bg-light);
    font-style: italic;
    color: var(--text-gray);
    line-height: 1.6;
}

.article-text code {
    background: var(--bg-light);
    color: #c7254e;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-text pre {
    background: var(--bg-light);
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 12px 0;
    line-height: 1.4;
}

.article-text pre code {
    background: transparent;
    color: #333;
    padding: 0;
    font-size: 0.9rem;
}

.article-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    background: var(--bg-white);
}

.article-text table th,
.article-text table td {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.article-text table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.article-text table td {
    color: var(--text-gray);
}

/* 标签区 */
.article-tags {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-light);
    color: var(--text-gray);
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all var(--transition);
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
}

/* 相关推荐区 */
.recommend-section {
    background: var(--bg-white);
    padding: 15px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.recommend-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.recommend-item {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-light);
    transition: all var(--transition);
    text-decoration: none;
}

.recommend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recommend-thumb {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-light);
}

.recommend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.recommend-item:hover .recommend-thumb img {
    transform: scale(1.05);
}

.recommend-title {
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 内容页响应式 */
@media (max-width: 900px) {
    .article-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .article-sidebar {
        grid-column: 1;
    }

    .article-content {
        grid-column: 1;
    }

    .info-card {
        position: static;
    }
}

@media (max-width: 768px) {
    /* ... existing code ... */
}

@media (max-width: 480px) {
    /* ... existing code ... */
}