/* 新闻页面样式 */

.page-header {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: var(--secondary-color);
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* 特色新闻 */
.featured-news {
    padding: 80px 0;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.featured-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}

.featured-content {
    padding: 40px 60px 40px 0;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.featured-content h2 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.3;
}

.featured-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 30px;
}

/* 新闻筛选 */
.news-section {
    padding: 60px 0 80px;
    background: var(--light-gray);
}

.news-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--secondary-color);
    border: 2px solid var(--medium-gray);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.news-card {
    background: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
    opacity: 0;
    transition: var(--transition);
}

.news-card:hover .news-image::before {
    opacity: 1;
}

.news-content {
    padding: 30px;
}

.news-content .news-date {
    display: block;
    margin-bottom: 15px;
}

.news-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: var(--transition);
}

.news-card:hover h3 {
    color: var(--accent-color);
}

.news-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.news-meta {
    display: flex;
    gap: 25px;
    font-size: 13px;
    color: var(--dark-gray);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 加载更多 */
.load-more {
    text-align: center;
}

.btn-large {
    padding: 18px 60px;
    font-size: 15px;
}

/* 订阅通讯 */
.newsletter {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 80px 0;
}

.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content i {
    font-size: 64px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-content h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.newsletter-content p {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 30px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
}

.newsletter-form button {
    padding: 18px 45px;
    border-radius: 50px;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 400px;
    }

    .featured-content {
        padding: 40px;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 50px;
    }

    .page-header h1 {
        font-size: 38px;
    }

    .featured-news {
        padding: 50px 0;
    }

    .featured-image {
        height: 300px;
    }

    .featured-content {
        padding: 30px;
    }

    .featured-content h2 {
        font-size: 28px;
    }

    .news-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-section {
        padding: 40px 0 60px;
    }

    .newsletter {
        padding: 60px 0;
    }

    .newsletter-content h2 {
        font-size: 32px;
    }

    .newsletter-content i {
        font-size: 48px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 28px;
    }

    .page-header p {
        font-size: 14px;
    }

    .featured-content h2 {
        font-size: 22px;
    }

    .featured-content p {
        font-size: 14px;
    }

    .news-image {
        height: 200px;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 18px;
    }

    .newsletter-content h2 {
        font-size: 24px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease-out;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

/* 新闻详情页样式 */
.news-detail {
    padding: 40px 0 80px;
    background: var(--light-gray);
    min-height: 100vh;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    padding: 20px 0;
    font-size: 14px;
    color: var(--dark-gray);
}

.breadcrumb a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* 文章主体 */
.news-article {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

/* 文章头部 */
.article-header {
    padding: 50px 60px 30px;
    border-bottom: 1px solid var(--light-gray);
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 25px;
    transition: var(--transition);
}

.article-category:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.article-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 25px;
    color: var(--text-color);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--dark-gray);
}

.meta-item i {
    color: var(--primary-color);
}

/* 文章图片 */
.article-image {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin: 0;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 文章内容 */
.article-content {
    padding: 50px 60px;
}

.content-wrapper {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.content-wrapper p {
    margin-bottom: 20px;
}

.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-color);
}

.content-wrapper h2 {
    font-size: 28px;
}

.content-wrapper h3 {
    font-size: 24px;
}

.content-wrapper h4 {
    font-size: 20px;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-wrapper li {
    margin-bottom: 10px;
}

.content-wrapper blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--dark-gray);
}

.content-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.content-wrapper a:hover {
    border-bottom-color: var(--primary-color);
}

/* 文章底部 */
.article-footer {
    padding: 40px 60px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-label {
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 600;
}

.tags-label i {
    color: var(--primary-color);
    margin-right: 5px;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--light-gray);
    color: var(--text-color);
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* 分享按钮 */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 18px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.wechat:hover {
    background: #07c160;
    color: var(--secondary-color);
}

.share-btn.weibo:hover {
    background: #e6162d;
    color: var(--secondary-color);
}

.share-btn.qq:hover {
    background: #12b7f5;
    color: var(--secondary-color);
}

.share-btn.copy:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* 相关新闻 */
.related-news {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 16px;
    color: var(--dark-gray);
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.related-news-card {
    background: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.related-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-news-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.related-news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.related-news-content {
    padding: 25px;
}

.related-news-date {
    display: block;
    font-size: 12px;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.related-news-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.related-news-views {
    font-size: 12px;
    color: var(--dark-gray);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 阅读进度条 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* 图片模态框 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.show {
    opacity: 1;
    visibility: visible;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 提示消息 */
.toast-message {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.toast-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .article-header,
    .article-content,
    .article-footer {
        padding-left: 40px;
        padding-right: 40px;
    }

    .related-news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .news-detail {
        padding: 20px 0 60px;
    }

    .breadcrumb {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .article-header,
    .article-content,
    .article-footer {
        padding: 30px 25px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-image {
        max-height: 400px;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-news {
        margin-top: 40px;
        padding-top: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 24px;
    }

    .content-wrapper {
        font-size: 15px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

