/* ========================================
   新闻板块样式
   ======================================== */

/* 新闻板块容器 */
.news-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(15, 23, 42, 0.95) 100%);
    overflow: hidden;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
}

.news-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.5), transparent);
}

/* 新闻板块背景装饰 */
.news-bg-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.news-bg-decoration .circle-1 {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.news-bg-decoration .circle-2 {
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* 新闻标题区 */
.news-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-header .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.news-header .section-tag .pulse-dot {
    width: 8px;
    height: 8px;
    background: #06B6D4;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.news-header .section-tag span {
    color: #06B6D4;
    font-size: 0.875rem;
    font-weight: 500;
}

.news-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #06B6D4 0%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-header p {
    color: #9CA3AF;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 新闻分类筛选 */
.news-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.news-filter-btn {
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: #9CA3AF;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-filter-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: #06B6D4;
}

.news-filter-btn.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(249, 115, 22, 0.2));
    border-color: #06B6D4;
    color: #fff;
}

/* 新闻卡片网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 新闻卡片 */
.news-card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.2);
}

.news-card.is-top {
    border-color: rgba(249, 115, 22, 0.3);
}

.news-card.is-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F97316, #06B6D4);
}

/* 置顶标签 */
.news-card .top-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    z-index: 10;
    animation: pulse 2s infinite;
}

/* 外部链接徽章 */
.news-card .external-link-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(8, 145, 178, 0.9));
    color: #fff;
    font-size: 0.75rem;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
    transition: all 0.3s ease;
}

.news-card:hover .external-link-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.6);
}

/* 新闻图片 */
.news-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

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

.news-card-image .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.9) 100%);
}

/* 无图片占位 */
.news-card-image.no-image {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-image.no-image i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

/* 新闻卡片内容 */
.news-card-content {
    padding: 1.25rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.news-category {
    padding: 0.25rem 0.625rem;
    background: rgba(6, 182, 212, 0.15);
    color: #06B6D4;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

.news-date {
    color: #6B7280;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

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

.news-card-summary {
    color: #9CA3AF;
    font-size: 0.875rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻卡片底部 */
.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.news-author {
    color: #6B7280;
    font-size: 0.75rem;
}

.news-read-more {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #06B6D4;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-read-more i {
    transition: transform 0.3s ease;
}

.news-card:hover .news-read-more {
    color: #F97316;
}

.news-card:hover .news-read-more i {
    transform: translateX(4px);
}

/* 查看更多按钮 */
.news-view-all {
    text-align: center;
}

.news-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 2px solid rgba(6, 182, 212, 0.5);
    border-radius: 9999px;
    color: #06B6D4;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-view-all-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06B6D4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.news-view-all-btn i {
    transition: transform 0.3s ease;
}

.news-view-all-btn:hover i {
    transform: translateX(4px);
}

/* 新闻详情模态框 */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.news-modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: linear-gradient(145deg, #1E293B 0%, #0F172A 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.news-modal.show .news-modal-content {
    transform: scale(1) translateY(0);
}

.news-modal-header {
    position: relative;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

.news-modal-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(6, 182, 212, 0.2);
    color: #06B6D4;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.news-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.news-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #9CA3AF;
    font-size: 0.875rem;
}

.news-modal-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-modal-meta i {
    color: #06B6D4;
}

.news-modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.news-modal-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.news-modal-text {
    color: #D1D5DB;
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-line;
}

.news-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.news-modal-btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-modal-btn.primary {
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    border: none;
    color: #fff;
}

.news-modal-btn.primary:hover {
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.news-modal-btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #9CA3AF;
}

.news-modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 空状态 */
.news-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #6B7280;
}

.news-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.news-empty h3 {
    font-size: 1.25rem;
    color: #9CA3AF;
    margin-bottom: 0.5rem;
}

/* 滚动条美化 */
.news-modal-body::-webkit-scrollbar {
    width: 6px;
}

.news-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.news-modal-body::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.3);
    border-radius: 3px;
}

.news-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.5);
}

/* 响应式调整 */
@media (max-width: 640px) {
    .news-section {
        padding: 3rem 0;
    }

    .news-header h2 {
        font-size: 1.75rem;
    }

    .news-filters {
        gap: 0.5rem;
    }

    .news-filter-btn {
        padding: 0.375rem 1rem;
        font-size: 0.8125rem;
    }

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

    .news-modal-content {
        border-radius: 1rem;
    }

    .news-modal-header,
    .news-modal-body,
    .news-modal-footer {
        padding: 1rem 1.25rem;
    }

    .news-modal-title {
        font-size: 1.25rem;
    }
}
