/* ========================================
   新闻页面样式 - 科技暗黑风格
   基于 app.css 变量体系构建
   ======================================== */

/* 页面全局变量（继承自 app.css）
   --primary-color: #4a00e0
   --secondary-color: #8e2de2
   --accent-color: #00c6ff
   --dark-bg: #0a0a0a
   --darker-bg: #050505
   --text-light: #ffffff
   --text-gray: #b0b0b0
   --card-bg: rgba(255, 255, 255, 0.05)
   --border-color: rgba(255, 255, 255, 0.1)
   --gradient-primary: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%)
   --gradient-accent: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%)
*/

/* ========================================
   新闻页面标题区 (Hero)
   ======================================== */
.news-hero {
    padding: 120px 0 60px;
    background: radial-gradient(circle at 20% 30%, rgba(74, 0, 224, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0, 198, 255, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm-6 60c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm29 22c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zM40 47c0 1.657-1.343 3-3 3s-3-1.343-3-3 1.343-3 3-3 3 1.343 3 3zm12 35c0 1.657-1.343 3-3 3s-3-1.343-3-3 1.343-3 3-3 3 1.343 3 3zm23-15c0 1.657-1.343 3-3 3s-3-1.343-3-3 1.343-3 3-3 3 1.343 3 3zm7-41c0 1.657-1.343 3-3 3s-3-1.343-3-3 1.343-3 3-3 3 1.343 3 3z' fill='%234a00e0' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.news-hero .container {
    position: relative;
    z-index: 2;
}

.news-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.news-hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   新闻内容区布局
   ======================================== */
.news-container {
    padding: 60px 0;
}

.news-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* 平板响应式 */
@media (max-width: 992px) {
    .news-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================
   资讯卡片 (News Card)
   ======================================== */
.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(74, 0, 224, 0.2);
}

.news-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-info {
    padding: 1.8rem;
}

.news-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--gradient-accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--accent-color);
}

.news-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.news-meta i {
    margin-right: 0.3rem;
    color: var(--accent-color);
}

/* ========================================
   右侧边栏 (Sidebar)
   ======================================== */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    border-color: var(--primary-color);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-widget h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin-left: 0.5rem;
}

/* ========================================
   搜索框组件 (Search Box)
   ======================================== */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 0.9rem 3.5rem 0.9rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.search-box input[type="text"]::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

.search-box button {
    position: absolute;
    right: 0.3rem;
    background: var(--gradient-accent);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
}

/* ========================================
   热门资讯 (Popular News)
   ======================================== */
.popular-news {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.02);
}

.popular-item:hover {
    background: rgba(74, 0, 224, 0.1);
    transform: translateX(5px);
}

.popular-rank {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.popular-title {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-light);
    flex: 1;
}

/* ========================================
   资讯分类 (Categories)
   ======================================== */
.news-categories {
    list-style: none;
}

.news-categories li {
    margin-bottom: 0.5rem;
}

.news-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-gray);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.news-categories li a:hover {
    background: rgba(74, 0, 224, 0.1);
    color: var(--accent-color);
    transform: translateX(5px);
}

.news-categories li a span {
    background: var(--border-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.news-categories li a:hover span {
    background: var(--gradient-accent);
    color: white;
}

/* ========================================
   分页组件 (Pagination)
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination-btn,
.page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.pagination-btn:hover:not(.disabled):not(.active),
.page-link:hover:not(.disabled):not(.active) {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 198, 255, 0.15);
}

.pagination-btn.active,
.page-link.active {
    background: var(--gradient-accent);
    border-color: transparent;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 198, 255, 0.25);
}

.pagination-btn.disabled,
.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--border-color);
    color: var(--text-gray);
    background: transparent;
    transform: none;
    box-shadow: none;
}

.pagination-ellipsis,
.page-ellipsis {
    color: var(--text-gray);
    padding: 0 0.5rem;
    font-size: 1.1rem;
    user-select: none;
}

/* 上一页/下一页按钮 */
.page-link.prev,
.page-link.next {
    padding: 0 1rem;
    font-size: 1.1rem;
}

/* ========================================
   新闻按钮 (News Button)
   ======================================== */
.news-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.news-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

#later-look-btn::before {
    background: transparent;
}

#read-now-btn::before {
    background: transparent;
}

.news-btn:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 0, 224, 0.25);
}

.news-btn:hover::before {
    opacity: 1;
}

.news-btn > * {
    position: relative;
    z-index: 1;
}

.news-btn.primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.news-btn.primary:hover {
    box-shadow: 0 8px 20px rgba(74, 0, 224, 0.35);
}

.news-btn:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

/* ========================================
   超链接样式 (News Link)
   ======================================== */
.news-link {
    color: var(--accent-color);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

.news-link:hover {
    color: #0072ff;
}

.news-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.news-link:hover::after {
    width: 100%;
}

.news-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ========================================
   响应式设计 - 多断点优化
   ======================================== */

/* 平板设备 (768px及以下) */
@media (max-width: 768px) {
    .news-hero {
        padding: 100px 0 40px;
    }

    .news-hero h1 {
        font-size: 2.5rem;
    }

    .news-hero p {
        font-size: 1.1rem;
    }

    .news-card {
        margin-bottom: 1.5rem;
    }

    .news-image {
        height: 200px;
    }

    .news-info {
        padding: 1.5rem;
    }

    .news-title {
        font-size: 1.3rem;
    }

    .news-sidebar {
        gap: 1.5rem;
    }

    .sidebar-widget {
        padding: 1.2rem;
    }

    .pagination {
        gap: 0.3rem;
        margin: 2rem 0;
    }

    .pagination-btn,
    .page-link {
        min-width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .news-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* 移动设备 (480px及以下) */
@media (max-width: 480px) {
    .news-hero {
        padding: 80px 0 30px;
    }

    .news-hero h1 {
        font-size: 2rem;
    }

    .news-hero p {
        font-size: 1rem;
    }

    .news-container {
        padding: 40px 0;
    }

    .news-image {
        height: 160px;
    }

    .news-info {
        padding: 1.2rem;
    }

    .news-category {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .pagination-btn,
    .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .page-link.prev,
    .page-link.next {
        padding: 0 0.8rem;
    }

    .news-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        border-radius: 16px;
    }
}

/* ========================================
   暗色模式支持（与系统设置同步）
   ======================================== */
@media (prefers-color-scheme: dark) {
    .search-input,
    .search-box input[type="text"] {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .pagination-btn,
    .page-link,
    .sidebar-widget,
    .news-card {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* ========================================
   打印样式优化
   ======================================== */
@media print {
    .news-hero,
    .news-sidebar,
    .pagination {
        display: none;
    }

    .news-content {
        grid-template-columns: 1fr;
    }

    .news-card {
        border: 1px solid #ddd;
        box-shadow: none;
    }

    .news-link::after {
        display: none;
    }
}

/* ========================================
   性能优化 - 硬件加速
   ======================================== */
.news-card,
.search-input,
.search-box input,
.search-box button,
.news-btn,
.pagination-btn,
.page-link {
    will-change: transform;
    transform: translateZ(0);
}

/* 减少动画对性能的影响 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 搜索建议框 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: rgba(0, 198, 255, 0.1);
}

.suggestion-item:first-child {
    border-radius: 10px 10px 0 0;
}

.suggestion-item:last-child {
    border-radius: 0 0 10px 10px;
}

.search-box {
    position: relative; /* 确保定位正确 */
}

/* 分类激活状态 */
.news-categories li a.active {
    background: rgba(74, 0, 224, 0.15);
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
}

/* 无结果提示样式 */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

/* 分类标签样式 */
.search-tags-list {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-link-small {
    padding: 0.2rem 0.6rem;
    background: rgba(74, 0, 224, 0.1);
    border: 1px solid rgba(74, 0, 224, 0.3);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link-small:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* =================== 分页组件优化 =================== */

/* 禁用状态 */
.pagination .page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 移动端精简模式 */
@media (max-width: 480px) {
    .pagination {
        gap: 0.3rem;
    }

    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    /* 只显示当前页、上一页、下一页 */
    .pagination .page-link:not(.prev):not(.next):not(.active) {
        display: none;
    }

    .pagination .page-ellipsis {
        display: none;
    }
}

/* 大型屏幕显示更多页码 */
@media (min-width: 1200px) {
    .pagination .page-link {
        min-width: 44px;
        height: 44px;
    }
}

/* ========================================
   热门资讯推送模态窗口 - 完整按钮样式版
   ======================================== */

.popular-news-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

.popular-news-modal.show {
    opacity: 1;
    visibility: visible;
}

.popular-news-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.popular-news-modal.show .popular-news-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transform: rotate(90deg);
}

.modal-header {
    background: var(--gradient-primary);
    padding: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.modal-header i {
    color: #ff6b6b;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-body img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.modal-body h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

.modal-body p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* ===== 按钮基础样式（完整定义） ===== */
.modal-footer .news-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    min-width: 100px; /* 确保按钮不会太窄 */
}

/* 主要按钮（立刻阅读） */
.modal-footer .news-btn:first-child {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.modal-footer .news-btn:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 0, 224, 0.35);
}

/* 次要按钮（稍后查看） */
.modal-footer .news-btn.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
}

.modal-footer .news-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

/* 按钮点击效果 */
.modal-footer .news-btn:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .popular-news-content {
        max-height: 95vh;
        width: 95%;
    }

    .modal-body {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .popular-news-content {
        max-height: 98vh;
        border-radius: 10px;
    }

    .modal-body {
        max-height: 50vh;
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        padding: 1rem;
    }

    .modal-footer .news-btn {
        width: 100%;
        padding: 0.8rem;
    }

    .modal-header {
        padding: 1.2rem;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }
}