#newsModal {
    background: rgba(0, 0, 0, 0.2);
    
}


/* 触发按钮样式 - 现代玻璃拟态 */

.trigger-btn {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f2b3d;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.trigger-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 20px 28px -12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.9);
}

.trigger-btn:active {
    transform: translateY(1px);
}


/* 模态框 (弹窗) 基础样式 - fixed全屏，半透明背景，flex居中 */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.25s ease;
    /* 点击外部关闭: 整个模态框区域可用于关闭，但内部容器会阻止冒泡，逻辑由JS控制精准关闭 */
}


/* 弹窗激活状态 */

.modal.active {
    visibility: visible;
    opacity: 1;
}


/* 弹窗卡片容器 - 圆润现代风格，最大高度限制 */

.modal-container {
    width: 90%;
    max-width: 720px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 30px 45px -20px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    transform-origin: center;
    transition: transform 0.2s;
}


/* 标题栏区域 - 优雅分割 */

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px 24px;
    background: #ffffff;
    border-bottom: 1px solid #eff3f8;
}

.modal-header h3 {
    font-size: 1.55rem;
    font-weight: 650;
    background: linear-gradient(135deg, #1e2f3f, #2c4e6b);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3::before {}


/* 关闭按钮 (X) 样式 */

.close-modal-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    color: #4b5e77;
    transition: all 0.2s ease;
    line-height: 1;
    font-weight: 400;
}

.close-modal-btn:hover {
    background: #fee2e2;
    color: #c2412c;
    transform: rotate(90deg);
}

.close-modal-btn:active {
    transform: scale(0.94);
}


/* 富文本内容区域 — 支持复杂html，滚动条美化 */

.modal-body {
    padding: 20px 28px 28px 28px;
    overflow-y: auto;
    flex: 1;
    font-size: 1rem;
    line-height: 1.55;
    color: #1f2a3e;
    scroll-behavior: smooth;
}


/* 自定义滚动条，更精致 */

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 8px;
    margin-block: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #b9c4d1;
    border-radius: 8px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #8f9eb0;
}


/* 富文本内部样式 (保证图文干净、自适应) */

.rich-text-content {
    word-wrap: break-word;
}

.rich-text-content h2 {
    font-size: 1.8rem;
    margin-top: 0.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #0b2b3b;
    border-left: 5px solid #e05a2e;
    padding-left: 18px;
}

.rich-text-content h3 {
    font-size: 1.35rem;
    margin: 1.2rem 0 0.6rem 0;
    color: #2c4e6b;
    font-weight: 600;
}

.rich-text-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #2d3e4f;
}

.rich-text-content .news-meta {
    display: flex;
    gap: 18px;
    color: #6c7e92;
    font-size: 0.85rem;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    margin: 18px 0;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
    display: block;
    transition: transform 0.2s;
}

.rich-text-content img:hover {
    transform: scale(1.01);
}

.rich-text-content ul,
.rich-text-content ol {
    margin: 0.8rem 0 1.2rem 1.8rem;
}

.rich-text-content li {
    margin: 6px 0;
}

.rich-text-content .highlight {
    background: #fef7e0;
    padding: 4px 12px;
    border-radius: 40px;
    display: inline-block;
    font-weight: 500;
    color: #b45f1b;
}

.rich-text-content blockquote {
    border-left: 4px solid #e05a2e;
    background: #f8fafc;
    padding: 12px 20px;
    margin: 18px 0;
    border-radius: 20px;
    font-style: normal;
    color: #2c3e44;
    font-weight: 450;
}


/* 按钮与操作区（不包含在主需求内，但增强交互） */

.action-note {
    text-align: center;
    margin-top: 36px;
    font-size: 0.85rem;
    color: #5f6f82;
}


/* body滚动锁定 */

body.no-scroll {
    overflow: hidden;
}


/* 入场动画细微回弹 */

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


/* 响应式优化：手机上下留白舒适 */

@media (max-width: 640px) {
    .modal-container {
        width: 92%;
        max-height: 80vh;
        border-radius: 24px;
    }
    .modal-header {
        padding: 16px 20px;
    }
    .modal-header h3 {
        font-size: 1.35rem;
    }
    .modal-body {
        padding: 16px 20px 24px 20px;
    }
    .rich-text-content h2 {
        font-size: 1.45rem;
        padding-left: 12px;
    }
    .close-modal-btn {
        width: 32px;
        height: 32px;
        font-size: 22px;
    }
}