/* 文章详情页面样式 */

/* 页面头部 */
.news-header {
    padding: 30px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.news-breadcrumb {
    font-size: 14px;
    color: #999;
}

.news-breadcrumb a {
    color: #666;
    transition: color 0.3s;
}

.news-breadcrumb a:hover {
    color: #ff9f8f;
}

.news-breadcrumb span {
    margin: 0 10px;
}

/* 内容布局 */
.news-content-section {
    padding: 60px 0 80px;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* 文章主体 */
.news-article {
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* 文章头部 */
.news-article-header {
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 40px;
}

.news-article-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 20px;
}

.news-article-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    color: #999;
    font-size: 14px;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-meta-item i {
    color: #ff9f8f;
}

.news-meta-item:first-child {
    color: #ff9f8f;
    font-weight: 600;
}

/* 文章正文 */
.news-article-body {
    color: #333;
    font-size: 17px;
    line-height: 2;
}

.news-article-body h1,
.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
    color: #2c3e50;
    margin: 30px 0 20px;
    font-weight: 600;
}

.news-article-body p {
    margin-bottom: 20px;
}

.news-article-body img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 10px;
}

.news-article-body ul,
.news-article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-article-body li {
    margin: 10px 0;
}

.news-article-body blockquote {
    border-left: 4px solid #ff9f8f;
    padding: 15px 20px;
    background: #f8f9fa;
    margin: 30px 0;
    border-radius: 5px;
}

.news-article-body a {
    color: #ff9f8f;
    text-decoration: underline;
}

.news-article-body a:hover {
    color: #ff7e66;
}

/* 文章标签 */
.news-article-tags {
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.news-tags-label {
    color: #666;
    font-weight: 600;
}

.news-article-tags a {
    background: #f8f9fa;
    padding: 6px 15px;
    border-radius: 20px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.news-article-tags a:hover {
    background: #ff9f8f;
    color: #fff;
}

/* 上下篇导航 */
.news-article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.news-nav-prev,
.news-nav-next {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.news-nav-prev:hover,
.news-nav-next:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-nav-prev i,
.news-nav-next i {
    color: #ff9f8f;
    font-size: 20px;
}

.news-nav-info {
    flex: 1;
}

.news-nav-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}

.news-nav-title {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-nav-next {
    text-align: right;
}

/* 相关推荐 */
.news-related {
    margin-top: 40px;
}

.news-related-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff9f8f;
}

.news-related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-related-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.news-related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.news-related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.news-related-info {
    padding: 15px;
}

.news-related-info h4 {
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-related-info p {
    font-size: 13px;
    color: #999;
}

/* 侧边栏 */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-sidebar-box {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.news-sidebar-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff9f8f;
}

/* 热门文章 */
.news-hot-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-hot-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.news-hot-item:hover {
    background: #f8f9fa;
}

.news-hot-num {
    width: 28px;
    height: 28px;
    background: #ff9f8f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 14px;
}

.news-hot-content {
    flex: 1;
}

.news-hot-content h5 {
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-hot-content p {
    font-size: 12px;
    color: #999;
}

.news-hot-content p i {
    margin-right: 5px;
}

/* 分类列表 */
.news-cat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 8px;
    color: #555;
    transition: all 0.3s;
}

.news-cat-item:hover {
    background: #f8f9fa;
    color: #ff9f8f;
}

.news-cat-item i:first-child {
    margin-right: 10px;
    color: #ff9f8f;
}

/* 咨询CTA */
.news-sidebar-cta {
    background: linear-gradient(135deg, #ff9f8f, #ff7e66);
    color: #fff;
    text-align: center;
}

.news-sidebar-cta h4 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.news-sidebar-cta p {
    margin-bottom: 20px;
    opacity: 0.95;
}

.news-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #ff9f8f;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.news-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 响应式 */
@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .news-article {
        padding: 30px 25px;
    }
    
    .news-article-title {
        font-size: 28px;
    }
    
    .news-article-nav {
        grid-template-columns: 1fr;
    }
    
    .news-related-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .news-article {
        padding: 20px;
    }
    
    .news-article-title {
        font-size: 24px;
    }
    
    .news-article-body {
        font-size: 16px;
    }
}

