/* 文章详情页面样式 */

/* 文章详情横幅 */
.newsdetail-banner {
    background: linear-gradient(135deg, #EA3643 0%, #ff6b7a 100%);
    padding: 150px 0 80px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.newsdetail-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.newsdetail-banner-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.newsdetail-category {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.newsdetail-banner-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 25px;
}

.newsdetail-banner-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 15px;
    opacity: 0.95;
}

.newsdetail-banner-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsdetail-banner-meta i {
    font-size: 14px;
}

/* 文章内容区 */
.newsdetail-content-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.newsdetail-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* 主内容 */
.newsdetail-main {
    background: var(--white);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.newsdetail-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.newsdetail-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-color);
}

.newsdetail-info-item i {
    color: var(--primary-color);
}

.newsdetail-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.newsdetail-share-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 16px;
}

.newsdetail-share-btn.weixin {
    background: #07c160;
    color: var(--white);
}

.newsdetail-share-btn.weibo {
    background: #e6162d;
    color: var(--white);
}

.newsdetail-share-btn.qq {
    background: #12b7f5;
    color: var(--white);
}

.newsdetail-share-btn:hover {
    transform: translateY(-3px);
}

/* 文章正文 */
.newsdetail-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 50px;
}

.newsdetail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.newsdetail-content h2,
.newsdetail-content h3,
.newsdetail-content h4 {
    color: var(--secondary-color);
    margin: 30px 0 20px;
    font-weight: 600;
}

.newsdetail-content h2 {
    font-size: 28px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.newsdetail-content h3 {
    font-size: 24px;
}

.newsdetail-content h4 {
    font-size: 20px;
}

.newsdetail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsdetail-content ul,
.newsdetail-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.newsdetail-content li {
    margin-bottom: 10px;
}

.newsdetail-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    background: var(--bg-light);
    margin: 25px 0;
    border-radius: 5px;
}

/* 上下篇导航 */
.newsdetail-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 50px;
}

.newsdetail-nav-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsdetail-nav-item.next {
    text-align: right;
}

.newsdetail-nav-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
}

.newsdetail-nav-item.next .newsdetail-nav-label {
    justify-content: flex-end;
}

.newsdetail-nav-item a {
    color: var(--secondary-color);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.newsdetail-nav-item a:hover {
    color: var(--primary-color);
}

/* 相关推荐 */
.newsdetail-related {
    margin-bottom: 40px;
}

.newsdetail-related-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.newsdetail-related-title i {
    color: var(--primary-color);
}

.newsdetail-related-grid {
    display: grid;
    gap: 20px;
}

.newsdetail-related-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.newsdetail-related-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(234, 54, 67, 0.1);
}

.newsdetail-related-image {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.newsdetail-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsdetail-related-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.newsdetail-related-content h4 a {
    color: var(--secondary-color);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    transition: var(--transition);
}

.newsdetail-related-content h4 a:hover {
    color: var(--primary-color);
}

.newsdetail-related-date {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.7;
}

.newsdetail-related-date i {
    margin-right: 5px;
}

/* 侧边栏 */
.newsdetail-sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.newsdetail-sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.newsdetail-sidebar-title i {
    color: var(--primary-color);
}

/* 热门文章 */
.newsdetail-hot-list {
    list-style: none;
}

.newsdetail-hot-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.newsdetail-hot-item:last-child {
    border-bottom: none;
}

.newsdetail-hot-number {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.newsdetail-hot-info {
    flex: 1;
}

.newsdetail-hot-info a {
    color: var(--secondary-color);
    font-size: 14px;
    line-height: 1.5;
    display: block;
    margin-bottom: 5px;
    transition: var(--transition);
}

.newsdetail-hot-info a:hover {
    color: var(--primary-color);
}

.newsdetail-hot-date {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
}

/* 最新文章 */
.newsdetail-latest-list {
    list-style: none;
}

.newsdetail-latest-item {
    margin-bottom: 15px;
}

.newsdetail-latest-item:last-child {
    margin-bottom: 0;
}

.newsdetail-latest-item a {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.newsdetail-latest-item a:hover {
    background: var(--bg-light);
}

.newsdetail-latest-image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.newsdetail-latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsdetail-latest-content {
    flex: 1;
}

.newsdetail-latest-content h4 {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.5;
    margin-bottom: 5px;
}

.newsdetail-latest-content span {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.7;
}

/* 标签云 */
.newsdetail-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.newsdetail-tags-cloud a {
    padding: 6px 15px;
    background: var(--bg-light);
    border-radius: 15px;
    font-size: 13px;
    color: var(--text-color);
    transition: var(--transition);
}

.newsdetail-tags-cloud a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 联系咨询卡片 */
.newsdetail-contact-card {
    background: linear-gradient(135deg, #EA3643 0%, #ff6b7a 100%);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    color: var(--white);
}

.newsdetail-contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsdetail-contact-icon i {
    font-size: 28px;
}

.newsdetail-qrcode-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.newsdetail-qrcode-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: var(--white);
    padding: 5px;
}

.newsdetail-contact-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.newsdetail-contact-card p {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .newsdetail-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .newsdetail-banner {
        padding: 120px 0 60px;
    }
    
    .newsdetail-banner-title {
        font-size: 28px;
    }
    
    .newsdetail-banner-meta {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .newsdetail-main {
        padding: 30px 20px;
    }
    
    .newsdetail-info-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newsdetail-navigation {
        grid-template-columns: 1fr;
    }
    
    .newsdetail-nav-item.next {
        text-align: left;
    }
    
    .newsdetail-nav-item.next .newsdetail-nav-label {
        justify-content: flex-start;
    }
    
    .newsdetail-related-image {
        width: 100px;
        height: 75px;
    }
}

