/* --- 新闻动态页面样式 --- */

/* Hero区域 */
.news-hero {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: transparent;
    isolation: isolate;
}

.news-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.news-background .news-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    filter: brightness(0.4) contrast(1.1); /* 调暗背景图 */
}

/* 深色遮罩层，进一步调暗 */
.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.news-hero .hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
    width: 100%;
}

.news-hero .hero-title {
    font-size: 4rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 25px;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3),
                 0 4px 20px rgba(0, 0, 0, 0.8),
                 0 0 60px rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.3),
                     0 4px 20px rgba(0, 0, 0, 0.8),
                     0 0 60px rgba(255, 255, 255, 0.2);
    }
    100% {
        text-shadow: 0 0 60px rgba(255, 255, 255, 0.5),
                     0 4px 30px rgba(0, 0, 0, 0.9),
                     0 0 80px rgba(255, 255, 255, 0.4);
    }
}

.news-hero .hero-subtitle {
    font-size: 1.4rem;
    color: #e0e8f5;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Hero装饰元素 */
.hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.decoration-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.6),
        rgba(255, 255, 255, 0.6),
        transparent
    );
    position: relative;
}

.decoration-line::before,
.decoration-line::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.decoration-line::before {
    left: -3px;
}

.decoration-line::after {
    right: -3px;
}

.decoration-star {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 新闻内容区域 */
.news-section {
    padding: 80px 0;
    position: relative;
    min-height: 100vh;
}

/* 固定背景图片（不随内容滚动） */
.earth-space-background-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.earth-space-bg-image-fixed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.2;
}

.news-section .container {
    position: relative;
    z-index: 1;
}

/* 最新动态分类 - 白色背景 */
.news-category:first-of-type {
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.news-category:first-of-type .category-title {
    color: #1a1a1a;
    text-shadow: none;
}

.news-category:first-of-type .title-icon {
    filter: none;
}

.news-category:first-of-type .title-line {
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.3),
        transparent
    );
}

.news-category:first-of-type .title-line::before,
.news-category:first-of-type .title-line::after {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.news-category:first-of-type .news-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.news-category:first-of-type .news-card:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-category:first-of-type .news-title {
    color: #1a1a1a;
}

.news-category:first-of-type .news-card:hover .news-title {
    color: #333333;
}

.news-category:first-of-type .news-excerpt {
    color: #666666;
}

.news-category:first-of-type .news-meta {
    color: #888888;
    border-top-color: rgba(0, 0, 0, 0.1);
}

.news-category:first-of-type .news-date-badge {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.news-category:first-of-type .date-day {
    color: #ffffff;
}

.news-category:first-of-type .date-month {
    color: #b0c4de;
}

/* 新闻列表区域（图一样式） */
.news-list-section {
    position: relative;
    padding: 80px 0;
    margin-bottom: 100px;
    overflow: hidden;
    border-radius: 20px;
}

.news-list-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.news-list-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    filter: brightness(0.4) contrast(1.1); /* 调暗背景图 */
}

.news-list-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.news-list-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-list-item {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.news-list-item:last-child {
    margin-bottom: 0;
}

.news-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.news-list-image {
    flex: 0 0 400px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-list-item:hover .news-list-image img {
    transform: scale(1.05);
}

.news-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-right: 20px;
}

.news-list-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.news-list-text {
    font-size: 1rem;
    color: #e0e8f5;
    line-height: 1.8;
    margin-bottom: 25px;
    flex: 1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.news-list-more-btn {
    align-self: flex-start;
    padding: 10px 25px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.news-list-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.news-list-date {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 新闻详情模态框 */
.news-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-detail-modal.active {
    display: flex;
    opacity: 1;
}

.news-detail-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.news-detail-modal .modal-content-wrapper {
    position: relative;
    z-index: 10002;
    max-width: 90%;
    max-height: 90vh;
    width: 1000px;
    background: rgba(20, 20, 30, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modalFadeIn 0.4s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.news-detail-modal .modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10003;
    backdrop-filter: blur(10px);
}

.news-detail-modal .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(90deg) scale(1.1);
}

.news-detail-container {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

.news-detail-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-content {
    padding: 40px;
    flex: 1;
}

.news-detail-date {
    font-size: 0.9rem;
    color: #b0c4de;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-detail-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.news-detail-text {
    font-size: 1.1rem;
    color: #e0e8f5;
    line-height: 2;
    white-space: pre-line;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 - 新闻详情模态框 */
@media (max-width: 768px) {
    .news-detail-modal .modal-content-wrapper {
        max-width: 95%;
        max-height: 95vh;
        width: 95%;
    }

    .news-detail-image {
        height: 250px;
    }

    .news-detail-content {
        padding: 30px 20px;
    }

    .news-detail-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .news-detail-text {
        font-size: 1rem;
        line-height: 1.8;
    }

    .news-detail-modal .modal-close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* 新闻分类 */
.news-category {
    margin-bottom: 100px;
}

.news-category:first-child {
    margin-top: 40px;
}

.category-header {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.category-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.title-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.title-line {
    width: 200px;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.5),
        transparent
    );
    margin: 0 auto;
    position: relative;
}

.title-line::before,
.title-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.title-line::before {
    left: -4px;
}

.title-line::after {
    right: -4px;
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* 新闻卡片 */
.news-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 255, 255, 0.1);
}

.news-card:hover::before {
    opacity: 1;
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

/* 日期徽章 */
.news-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.date-day {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.85rem;
    color: #b0c4de;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* 新闻卡片内容 */
.news-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* 新闻标签 */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.news-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid;
    backdrop-filter: blur(5px);
}

.tag-important {
    background: rgba(255, 77, 77, 0.2);
    border-color: rgba(255, 77, 77, 0.5);
    color: #ff9999;
}

.tag-tech {
    background: rgba(77, 148, 255, 0.2);
    border-color: rgba(77, 148, 255, 0.5);
    color: #99ccff;
}

.tag-research {
    background: rgba(148, 77, 255, 0.2);
    border-color: rgba(148, 77, 255, 0.5);
    color: #cc99ff;
}

.tag-application {
    background: rgba(77, 255, 148, 0.2);
    border-color: rgba(77, 255, 148, 0.5);
    color: #99ffcc;
}

.tag-city {
    background: rgba(255, 200, 77, 0.2);
    border-color: rgba(255, 200, 77, 0.5);
    color: #ffdd99;
}

.tag-breakthrough {
    background: rgba(255, 148, 77, 0.2);
    border-color: rgba(255, 148, 77, 0.5);
    color: #ffcc99;
}

.tag-penetration {
    background: rgba(77, 255, 200, 0.2);
    border-color: rgba(77, 255, 200, 0.5);
    color: #99ffdd;
}

.tag-innovation {
    background: rgba(200, 77, 255, 0.2);
    border-color: rgba(200, 77, 255, 0.5);
    color: #dd99ff;
}

.tag-industry {
    background: rgba(255, 77, 200, 0.2);
    border-color: rgba(255, 77, 200, 0.5);
    color: #ff99dd;
}

.tag-market {
    background: rgba(77, 200, 255, 0.2);
    border-color: rgba(77, 200, 255, 0.5);
    color: #99ddff;
}

.tag-cooperation {
    background: rgba(148, 255, 77, 0.2);
    border-color: rgba(148, 255, 77, 0.5);
    color: #ccff99;
}

.tag-partnership {
    background: rgba(255, 200, 148, 0.2);
    border-color: rgba(255, 200, 148, 0.5);
    color: #ffddcc;
}

.tag-policy {
    background: rgba(200, 148, 255, 0.2);
    border-color: rgba(200, 148, 255, 0.5);
    color: #ddccff;
}

.tag-development {
    background: rgba(148, 200, 255, 0.2);
    border-color: rgba(148, 200, 255, 0.5);
    color: #ccddff;
}

.tag-fusion {
    background: rgba(255, 148, 200, 0.2);
    border-color: rgba(255, 148, 200, 0.5);
    color: #ffccdd;
}

/* 新闻标题 */
.news-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.news-card:hover .news-title {
    color: #e0e8f5;
}

/* 新闻摘要 */
.news-excerpt {
    font-size: 0.95rem;
    color: #b0c4de;
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻元信息 */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #8fa3c4;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-author::before {
    content: '👤';
    font-size: 0.9rem;
}

.news-read {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-read::before {
    content: '👁';
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .news-hero .hero-title {
        font-size: 3rem;
    }

    .category-title {
        font-size: 2rem;
    }

    /* 新闻列表响应式 */
    .news-list-container {
        padding: 0 30px;
    }

    .news-list-item {
        gap: 30px;
        padding: 25px;
    }

    .news-list-image {
        flex: 0 0 350px;
        height: 220px;
    }

    .news-list-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 120px 0 80px;
        min-height: 500px;
    }

    .news-hero .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .news-hero .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .hero-decoration {
        gap: 15px;
        margin-top: 25px;
    }

    .decoration-line {
        width: 60px;
    }

    .decoration-star {
        font-size: 1.2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-category {
        margin-bottom: 80px;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .title-icon {
        font-size: 1.5rem;
    }

    .title-line {
        width: 150px;
    }

    .news-card-image {
        height: 220px;
    }

    .news-card-content {
        padding: 25px;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }

    .news-date-badge {
        top: 15px;
        right: 15px;
        padding: 10px 14px;
    }

    .date-day {
        font-size: 1.5rem;
    }

    .date-month {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .news-hero .hero-title {
        font-size: 2rem;
    }

    .news-hero .hero-subtitle {
        font-size: 1rem;
    }

    .decoration-line {
        width: 40px;
    }

    .category-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
    }

    .news-card-content {
        padding: 20px;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* 新闻列表响应式 */
    .news-list-container {
        padding: 0 20px;
    }

    .news-list-item {
        flex-direction: column;
        gap: 25px;
        padding: 25px;
    }

    .news-list-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }

    .news-list-content {
        padding-right: 0;
    }

    .news-list-title {
        font-size: 1.3rem;
    }

    .news-list-text {
        font-size: 0.95rem;
    }

    .news-list-date {
        position: static;
        margin-top: 15px;
        text-align: right;
    }
}

