/* ========================================
   新闻动态页样式
   商务风格 · 专业设计
   ======================================== */

/* ========== 页面标题 ========== */
.page-header {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #0F172A 100%);
    color: white;
    text-align: center;
    padding: 140px 20px 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(52, 211, 153, 0.1) 0%, transparent 50%);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #60A5FA 0%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.page-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

/* ========== 新闻列表 ========== */
.news-section {
    padding: 100px 0;
    background: #F8FAFC;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #3B82F6;
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.news-content {
    padding: 28px;
}

.news-date {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 12px;
    font-weight: 500;
}

.news-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563EB;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #1D4ED8;
    gap: 10px;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    color: #64748B;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: #3B82F6;
    color: #3B82F6;
}

.pagination a.active {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    border-color: #3B82F6;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* ========== 新闻详情页 ========== */
.news-detail {
    padding: 100px 0;
    background: white;
}

.news-detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #E2E8F0;
}

.news-detail-header h1 {
    font-size: 32px;
    color: #0F172A;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.news-detail-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #64748B;
    font-size: 14px;
}

.news-detail-body {
    line-height: 1.9;
    color: #475569;
    font-size: 16px;
}

.news-detail-body p {
    margin-bottom: 24px;
    text-indent: 2em;
}

.news-detail-body h2 {
    font-size: 22px;
    color: #0F172A;
    margin: 40px 0 20px;
    font-weight: 600;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding: 14px 28px;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    color: #0F172A;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    border-color: #3B82F6;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* ========== 每日动态 ========== */
.daily-section {
    min-height: 520px;
}

.daily-table {
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.daily-head,
.daily-row {
    display: grid;
    grid-template-columns: 120px minmax(180px, 1.2fr) minmax(220px, 1.4fr) minmax(220px, 1.2fr);
    gap: 20px;
    align-items: center;
}

.daily-head {
    padding: 16px 24px;
    background: #F8FAFC;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #E2E8F0;
}

.daily-row {
    min-height: 84px;
    padding: 20px 24px;
    border-bottom: 1px solid #E2E8F0;
    color: #0F172A;
}

.daily-row:last-child {
    border-bottom: none;
}

.daily-row:hover {
    background: #F8FAFC;
}

.daily-row time {
    color: #64748B;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.daily-row strong {
    font-size: 16px;
    line-height: 1.5;
}

.daily-row span,
.daily-row em {
    color: #64748B;
    font-size: 14px;
    line-height: 1.7;
    font-style: normal;
}

.empty-state {
    max-width: 640px;
    margin: 0 auto;
    padding: 56px 32px;
    text-align: center;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.empty-state[hidden] {
    display: none;
}

.empty-state h2 {
    margin-bottom: 12px;
    color: #0F172A;
    font-size: 24px;
}

.empty-state p {
    color: #64748B;
    line-height: 1.8;
}

.daily-detail-summary {
    max-width: 680px;
    margin: 20px auto 0;
    color: #64748B;
    line-height: 1.8;
}

.daily-rich-content ul,
.daily-rich-content ol {
    margin: 0 0 24px 24px;
}

.daily-rich-content li {
    margin-bottom: 10px;
}

.daily-rich-content strong {
    color: #0F172A;
}

.daily-rich-content p {
    text-indent: 0;
}

.daily-rich-content > table {
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto;
}

.daily-rich-content table {
    max-width: 100% !important;
}

.daily-rich-content td {
    overflow-wrap: anywhere;
}

/* ========== 详情页加载动画 ========== */
.detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 80px 20px;
    text-align: center;
    animation: detail-loading-fade-in 0.3s ease;
}

.detail-loading[hidden] {
    display: none;
}

/* 三点跳动指示器 */
.detail-loading-dots {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.detail-loading-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    animation: detail-loading-bounce 1.2s ease-in-out infinite;
}

.detail-loading-dots span:nth-child(1) {
    background: #2563EB;
    animation-delay: 0s;
}

.detail-loading-dots span:nth-child(2) {
    background: #3B82F6;
    animation-delay: 0.2s;
}

.detail-loading-dots span:nth-child(3) {
    background: #34D399;
    animation-delay: 0.4s;
}

/* 加载文字 + 循环省略号 */
.detail-loading-text {
    color: #64748B;
    font-size: 15px;
    letter-spacing: 1px;
}

.detail-loading-ellipsis::after {
    content: '...';
    display: inline-block;
    width: 1.5em;
    text-align: left;
    animation: detail-loading-dots-text 1.5s steps(4, end) infinite;
}

@keyframes detail-loading-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-14px);
        opacity: 1;
    }
}

@keyframes detail-loading-dots-text {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75%, 100% { content: '...'; }
}

@keyframes detail-loading-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .news-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .daily-head {
        display: none;
    }

    .daily-row {
        grid-template-columns: 1fr;
        gap: 8px;
        align-items: start;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 20px 60px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .news-section {
        padding: 60px 0;
    }

    .news-list {
        gap: 24px;
    }

    .news-content h3 {
        font-size: 18px;
    }

    .pagination {
        gap: 8px;
    }

    .pagination a {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .news-detail-header h1 {
        font-size: 24px;
    }

    .news-detail-meta {
        flex-direction: column;
        gap: 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
