/* ============================================================
 * 幻想神域 - 新闻公告页面样式
 * ============================================================ */

.news-page {
    min-height: 100vh;
    background-image: url('../../images/news/2.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding-top: 70px;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 顶部导航栏 ---------- */
.news-page .site-header {
    background: rgba(10, 22, 40, 0.85);
}

/* ---------- 主容器 ---------- */
.news-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ---------- 页面标题 ---------- */
.news-page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.news-page-title h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ---------- 分类按钮 ---------- */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 8px 22px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    color: #5a4a3a;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.news-tab:hover {
    background: rgba(255, 255, 255, 0.8);
}

.news-tab.active {
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    font-weight: bold;
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ---------- 公告列表卡片 ---------- */
.news-list-card {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: 24px 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(100, 80, 60, 0.12);
}

.news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(200, 180, 160, 0.2);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: rgba(240, 245, 250, 0.5);
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
    margin: 0 -12px;
}

.news-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-tag-bbgx {
    background: #e3f2fd;
    color: #1976d2;
}

.news-tag-hdgg {
    background: #e3f2fd;
    color: #1976d2;
}

.news-tag-zyzx {
    background: #ffebee;
    color: #c62828;
}

.news-title-text {
    flex: 1;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-date {
    font-size: 0.85rem;
    color: #a09080;
    font-family: "Arial", sans-serif;
    flex-shrink: 0;
}

/* ---------- 详情页 ---------- */
.news-hero {
    position: relative;
    width: 100%;
    text-align: center;
}

.news-hero-character {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.news-hero h1 {
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 12px rgba(40, 80, 130, 0.55);
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

.news-detail-card {
    max-width: 720px;
    margin: -40px auto 0;
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 36px 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(100, 80, 60, 0.15);
}

.news-detail-banner {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 24px;
    display: block;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(200, 180, 160, 0.25);
}

.news-detail-meta h2 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.news-detail-section {
    margin-bottom: 24px;
}

.news-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.news-section-title img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.news-section-body {
    font-size: 0.95rem;
    color: #445566;
    line-height: 1.8;
    padding-left: 28px;
}

.news-section-body p {
    margin: 0 0 6px;
}

.news-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 10px;
}

.news-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.news-not-found {
    text-align: center;
    padding: 60px 20px;
    color: #a09080;
    font-size: 1.1rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .news-container {
        padding: 20px 16px 40px;
    }

    .news-page-title h1 {
        font-size: 1.6rem;
    }

    .news-list-card {
        padding: 16px 20px;
    }

    .news-item {
        gap: 10px;
        padding: 12px 0;
    }

    .news-title-text {
        font-size: 0.9rem;
    }

    .news-detail-card {
        padding: 24px 20px;
    }

    .news-detail-meta h2 {
        font-size: 1.15rem;
    }

    .news-section-body {
        padding-left: 0;
    }
}
