/* ========================================
   资讯列表页样式 - 优超医学英语
   ======================================== */

.news-page {
    --primary: #FA5A5A;
    --primary-light: #FFF0F0;
    --secondary: #00BE64;
    --secondary-light: #E8F9F0;
    --bg-warm: linear-gradient(180deg, #F0F7F0 0%, #F5F0EB 100%);
    --text-dark: #2D2D2D;
    --text-mid: #666666;
    --text-light: #999999;
    --card-bg: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.10);
    --radius: 16px;
    --radius-sm: 10px;
}

.news-page {
    background: var(--bg-warm);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* 页面标题 */
.news-hero {
    background: linear-gradient(135deg, #FA5A5A 0%, #FF8A8A 100%);
    padding: 50px 20px 40px;
    text-align: center;
}
.news-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.news-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

/* 搜索栏 */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 20px 0;
}
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-box input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border-radius: 50px;
    border: 2px solid #E8E8E8;
    background: #fff;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 2px 20px rgba(250,90,90,0.12);
}
.search-box input::placeholder {
    color: var(--text-light);
}
.search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.search-box button:hover {
    background: #E54545;
}
.search-box button svg {
    width: 18px;
    height: 18px;
}

/* 结果计数 */
.result-count {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}
.result-count strong {
    color: var(--primary);
    font-weight: 700;
}

/* 资讯网格 */
.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* 资讯卡片 */
.news-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.news-card.hidden {
    display: none;
}

/* 封面图区域 - 分类色背景 */
.news-thumbnail {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 分类色背景 */
.news-thumbnail.category-exam {
    background: #F5A0B0;
}
.news-thumbnail.category-tips {
    background: #A0E880;
}
.news-thumbnail.category-process {
    background: #70D0F0;
}
.news-thumbnail.category-news {
    background: #FFE066;
}

/* 封面图上的分类文字 */
.news-thumbnail-text {
    position: relative;
    z-index: 2;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: 2px;
}

/* 日期标签 - 右上角 */
.news-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 3;
}

/* 信息区 */
.news-info {
    padding: 18px 20px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 元信息 */
.news-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}
.news-meta span {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}
.news-meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

/* 按钮 */
.news-action {
    padding: 0 20px 20px;
}
.news-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.news-btn.primary {
    background: var(--primary);
    color: #fff;
}
.news-btn.primary:hover {
    background: #E54545;
}

/* 加载更多 */
.load-more-wrap {
    text-align: center;
    padding: 40px 20px;
}
.load-more-btn {
    padding: 14px 48px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary);
    transition: all 0.3s ease;
}
.load-more-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(250,90,90,0.25);
}
.load-more-btn.hidden {
    display: none;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}
.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.25;
}
.empty-state h3 {
    font-size: 1.2rem;
    color: var(--text-mid);
    margin-bottom: 8px;
}