/* =================================
   新闻详情页样式 - news-detail.css
   ================================= */

/* 页面导航区域 */
.page-navigation {
    background: #f8f9fa;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.nav-content {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffd700;
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: #1a1a1a;
    font-weight: 500;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #ffd700;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* 新闻详情区域 */
.news-detail {
    padding: 3rem 0;
    background: white;
}

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* 文章主体 */
.news-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 文章头部 */
.article-header {
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.news-category {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-category.news {
    background: #3742fa;
    color: white;
}

.news-category.announcement {
    background: #ff4757;
    color: white;
}

.news-category.activity {
    background: #ffa502;
    color: white;
}

.news-category.update {
    background: #2ed573;
    color: white;
}

.news-type {
    background: #ff4757;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-type.hot {
    background: #ff4757;
}

.news-type.important {
    background: #ff6b35;
}

.publish-date,
.author,
.views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
    font-size: 0.9rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-summary {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffd700;
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-label {
    color: #666;
    font-weight: 500;
    margin-right: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn:hover {
    background: #ffd700;
    border-color: #ffd700;
    color: #1a1a1a;
    transform: translateY(-2px);
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-label {
    color: #666;
    font-weight: 500;
}

.article-tags .tag {
    background: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 文章图片 */
.article-image {
    margin: 2rem 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.image-caption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    font-style: italic;
}

/* 文章正文内容 */
.article-content {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content .lead-paragraph {
    font-size: 1.2rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #ffd700;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ffd700;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid #ffd700;
    border-radius: 8px;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: #ffd700;
    font-family: serif;
}

.article-content blockquote p {
    margin-bottom: 1rem;
    font-style: italic;
    font-size: 1.1rem;
}

.article-content cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

/* 文章底部 */
.article-footer {
    padding: 2rem;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.edit-info,
.source-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.article-nav-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 100px;
}

.article-nav-link:hover {
    background: #ffd700;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border-color: #ffd700;
}

.article-nav-link.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f1f3f4;
    color: #6c757d;
}

.article-nav-link.disabled:hover {
    transform: none;
    box-shadow: none;
    background: #f1f3f4;
}

.article-nav-link.prev-link {
    justify-content: flex-start;
}

.article-nav-link.next-link {
    justify-content: flex-end;
    text-align: right;
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-label {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nav-date {
    font-size: 0.75rem;
    opacity: 0.7;
    color: #6c757d;
}

.article-nav-link i {
    font-size: 1.5rem;
    margin: 0 1rem;
    opacity: 0.7;
}

.article-nav-link.prev-link i {
    order: -1;
}

.article-nav-link.next-link i {
    order: 1;
}

/* 侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.widget-title i {
    color: #ffd700;
}

/* 相关新闻 */
.related-news {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.related-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.related-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
}

.related-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-title a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.related-title a:hover {
    color: #ffd700;
}

.related-date,
.related-views {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

.related-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.related-views::before {
    content: '\f06e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.75rem;
}

/* 热门标签 */
.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-link {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tag-link:hover {
    background: #ffd700;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* 联系组件 */
.contact-widget {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

.contact-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.contact-widget .widget-title i {
    color: #ffd700;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #ffd700;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* 评论区域 */
.comments-section {
    background: #f8f9fa;
    padding: 3rem 0;
}

.comments-header {
    margin-bottom: 2rem;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.comments-title i {
    color: #ffd700;
}

.comment-count {
    color: #666;
    font-weight: 500;
}

/* 评论表单 */
.comment-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ffd700;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* 评论列表 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.comment-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 600;
    color: #1a1a1a;
}

.comment-time {
    color: #666;
    font-size: 0.9rem;
}

.comment-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.like-btn,
.reply-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.like-btn:hover,
.reply-btn:hover {
    background: #ffd700;
    border-color: #ffd700;
    color: #1a1a1a;
}

/* 加载更多评论 */
.load-more-comments {
    text-align: center;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.load-more-btn:hover {
    background: #ffd700;
    border-color: #ffd700;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .breadcrumb {
        justify-content: center;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .article-tags {
        justify-content: center;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .footer-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-nav-link {
        padding: 1rem;
        min-height: auto;
    }
    
    .nav-title {
        max-width: none;
        font-size: 0.9rem;
    }
    
    .article-nav-link i {
        font-size: 1.2rem;
        margin: 0 0.5rem;
    }
    
    .related-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .related-image {
        width: 80px;
        height: 60px;
    }
    
    .related-title {
        font-size: 0.875rem;
    }
    
    .related-date,
    .related-views {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .news-detail {
        padding: 2rem 0;
    }
    
    .news-article,
    .sidebar-widget,
    .comment-form-container,
    .comment-item {
        padding: 1.5rem;
    }
    
    .article-header {
        padding: 1.5rem;
    }
    
    .article-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .related-item {
        flex-direction: column;
        text-align: center;
    }
    
    .related-image {
        width: 100%;
        height: 120px;
    }
    
    .article-navigation {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    
    .nav-links {
        gap: 0.75rem;
    }
    
    .article-nav-link {
        padding: 0.875rem;
    }
    
    .nav-content {
        gap: 0.25rem;
    }
    
    .nav-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
    }
}

/* 字体大小控制样式 */
.font-size-controls {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.font-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.font-btn:hover,
.font-btn.active {
    background: #ffd700;
    border-color: #ffd700;
    color: #1a1a1a;
}

/* 字体大小变化效果 */
.article-content.font-small {
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-content.font-small .lead-paragraph {
    font-size: 1.05rem;
}

.article-content.font-small h2 {
    font-size: 1.5rem;
}

.article-content.font-small h3 {
    font-size: 1.2rem;
}

.article-content.font-normal {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content.font-normal .lead-paragraph {
    font-size: 1.2rem;
}

.article-content.font-normal h2 {
    font-size: 1.8rem;
}

.article-content.font-normal h3 {
    font-size: 1.4rem;
}

.article-content.font-large {
    font-size: 1.25rem;
    line-height: 2;
}

.article-content.font-large .lead-paragraph {
    font-size: 1.4rem;
}

.article-content.font-large h2 {
    font-size: 2.1rem;
}

.article-content.font-large h3 {
    font-size: 1.6rem;
}

.article-content.font-large p {
    margin-bottom: 1.8rem;
}

.article-content.font-large blockquote {
    margin: 2.5rem 0;
    padding: 2rem 2.5rem;
}

.article-content.font-large blockquote p {
    font-size: 1.3rem;
}

/* 移动端字体控制调整 */
@media (max-width: 768px) {
    .font-size-controls {
        right: 1rem;
        top: auto;
        bottom: 6rem;
        transform: none;
        flex-direction: row;
        justify-content: center;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.95);
        padding: 0.5rem;
        border-radius: 25px;
        backdrop-filter: blur(10px);
    }
    
    .font-btn {
        width: 35px;
        height: 35px;
    }
    
    .article-content.font-small {
        font-size: 0.9rem;
    }
    
    .article-content.font-normal {
        font-size: 1rem;
    }
    
    .article-content.font-large {
        font-size: 1.1rem;
    }
} 