/* 资讯详情页样式 */

/* 面包屑导航样式已移至 common.css */

/* 文章详情主体区域 */
.article-detail-section {
    background: #f8f9fa;
    padding: 30px 0 50px;
    min-height: 600px;
}

.article-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* 左侧文章内容 */
.article-main {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 文章头部 */
.article-header {
    padding: 32px 40px 24px;
    border-bottom: 1px solid #e9ecef;
}

.article-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.meta-item {
    color: #666;
}

.meta-divider {
    margin: 0 12px;
    color: #d0d0d0;
}

/* 文章内容 */
.article-content {
    padding: 32px 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-intro {
    background: #f8f9fa;
    padding: 16px 20px;
    border-left: 4px solid #1a73e8;
    margin-bottom: 24px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.article-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.article-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* 文章标签 */
.article-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.article-tags .tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f5ff;
    color: #1a73e8;
    font-size: 14px;
    border-radius: 20px;
    transition: all 0.3s;
}

.article-tags .tag:hover {
    background: #1a73e8;
    color: #fff;
}

/* 文章底部 */
.article-footer {
    padding: 24px 40px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.article-actions {
    display: flex;
    gap: 32px;
    justify-content: center;
    width: 100%;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}

.action-item:hover {
    color: #1a73e8;
}

.action-item .icon {
    width: 20px;
    height: 20px;
}

.article-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
    width: 100%;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    max-width: 45%;
    min-width: 0;
}

.nav-link:hover {
    color: #1a73e8;
    background: #f0f5ff;
}

.nav-label {
    color: #999;
    flex-shrink: 0;
    font-weight: 500;
    margin-right: 4px;
}

.nav-title {
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.nav-divider {
    color: #d0d0d0;
    flex-shrink: 0;
}

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

.sidebar-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

/* 中彤会员卡片 */
.member-card {
    background: linear-gradient(135deg, #4A8EFF 0%, #6BA3FF 100%);
    color: #fff;
    padding: 24px;
    position: relative;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.member-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.member-icon {
    opacity: 0.9;
}

.member-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

/* 侧边栏头部 */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.sidebar-header .subtitle {
    font-size: 14px;
    color: #999;
    margin-left: auto;
    margin-right: 12px;
}

.more-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.more-link:hover {
    color: #1a73e8;
}

/* 热门资讯列表 */
.hot-news-list {
    padding: 12px 0;
}

.hot-news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.hot-news-item:hover {
    background: #f8f9fa;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #e9ecef;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.news-badge.badge-1 {
    background: #ff5252;
    color: #fff;
}

.news-badge.badge-2 {
    background: #ff9800;
    color: #fff;
}

.news-badge.badge-3 {
    background: #ffc107;
    color: #fff;
}

.news-title {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 热门课程卡片 */
.hot-course-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.hot-course-card .sidebar-header {
    padding: 20px 20px 15px;
}

/* 课程标签切换 */
.course-tabs {
    display: flex;
    gap: 15px;
}

.course-tab {
    font-size: 16px;
    color: #999;
    text-decoration: none;
    padding-bottom: 2px;
    transition: color 0.3s;
}

.course-tab.active {
    color: #1a1a1a;
    font-weight: 600;
}

.course-tab:hover {
    color: #1a73e8;
}

/* 课程列表 */
.course-list {
    list-style: none;
    padding: 0 20px 20px;
    margin: 0;
}

.course-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px dashed #e8e8e8;
}

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

.course-cover {
    width: 100px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

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

.course-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 200, 150, 0.9);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
}

.course-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-title {
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.course-teacher {
    color: #999;
}

.course-label {
    color: #999;
}

.course-btn {
    display: inline-block;
    padding: 4px 16px;
    font-size: 12px;
    color: #1a73e8;
    border: 1px solid #1a73e8;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    align-self: flex-start;
}

.course-btn:hover {
    color: #fff;
    background-color: #1a73e8;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .article-sidebar {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .article-layout {
        flex-direction: column;
    }

    .article-sidebar {
        width: 100%;
    }

    .article-header {
        padding: 24px 20px 16px;
    }

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

    .article-content {
        padding: 24px 20px;
    }

    .article-footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 20px;
    }

    .article-content {
        font-size: 15px;
        padding: 20px 16px;
    }

    .article-header {
        padding: 20px 16px 12px;
    }

    .article-footer {
        padding: 16px;
    }

    .article-actions {
        gap: 20px;
        flex-wrap: wrap;
    }

    .article-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .nav-link {
        max-width: 100%;
        width: 100%;
    }

    .nav-divider {
        display: none;
    }
}
