

/* ===== 新闻中心主体 ===== */
.news-center {
    background: #fff;
    min-height: 60vh;
}

/* ===== 分类 Tab 导航 ===== */
.news-tab-nav {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
}
.news-tab-nav .container {
    display: flex;
    align-items: stretch;
}
.news-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    border: none;
    background: none;
    position: relative;
    transition: color 0.3s;
    letter-spacing: 1px;
    border-right: 1px solid #e8e8e8;
    text-decoration: none;
}
.news-tab-btn:last-child { border-right: none; }
.news-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px; height: 2px;
    background: #c9a84c;
    transition: transform 0.3s;
}
.news-tab-btn.active {
    color: #c9a84c;
    font-weight: 600;
}
.news-tab-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}
.news-tab-btn:hover { color: #c9a84c; }

/* ===== 轮播区 ===== */
.news-featured-wrap {
    background: #fff;
    padding: 56px 0 8px;
    position: relative;
}
.news-featured-wrap::before {
    content: 'CLASSIC NEWS';
    position: absolute;
    top: 30px; right: 5%;
    font-size: 90px;
    color: rgba(184,150,62,0.05);
    font-weight: 800;
    letter-spacing: 8px;
    pointer-events: none;
    user-select: none;
}
.news-featured-slider {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(14,34,64,0.08);
}
.news-featured-slide {
    display: none;
    align-items: stretch;
    min-height: 340px;
    animation: featuredFade 0.6s ease;
}
.news-featured-slide.active { display: flex; }
@keyframes featuredFade {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* 左侧图片 */
.featured-img {
    flex: 0 0 46%;
    max-width: 46%;
    position: relative;
    overflow: hidden;
    background: var(--c-primary);
}
.featured-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 70%, rgba(248,249,251,0.4));
    pointer-events: none;
}
.featured-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 8s ease;
}
.news-featured-slide.active .featured-img img { transform: scale(1.08); }
.featured-img .no-cover {
    width: 100%; height: 100%;
    min-height: 340px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
}
.featured-img .no-cover i { font-size: 64px; color: #c9a84c; opacity: 0.35; }

/* 右侧内容 */
.featured-content {
    flex: 1;
    padding: 44px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f8f9fb;
    position: relative;
}
.featured-content::before {
    content: '';
    position: absolute;
    left: 0; top: 44px;
    width: 3px; height: 28px;
    background: linear-gradient(180deg, #b8963e, #e0c070);
}
.featured-meta {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.featured-meta .f-cat {
    color: #c9a84c;
    font-weight: 500;
}
.featured-title {
    font-size: 22px;
    color: #1a2a4a;
    line-height: 1.6;
    font-weight: 600;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}
.featured-title:hover { color: #c9a84c; }
.featured-summary {
    font-size: 14px;
    color: #999;
    line-height: 1.8;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 28px;
}
.featured-readmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #c9a84c;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.2s;
}
.featured-readmore:hover { gap: 16px; color: #c9a84c; }
.featured-readmore .rm-circle {
    width: 30px; height: 30px;
    border: 1.5px solid #c9a84c;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    transition: background 0.2s, color 0.2s;
}
.featured-readmore:hover .rm-circle { background: #c9a84c; color: #fff; }

/* 分页点 */
.featured-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 32px;
}
.featured-dot {
    width: 28px; height: 3px;
    border-radius: 2px;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
    border: none; padding: 0;
}
.featured-dot.active { background: #c9a84c; width: 42px; }

/* ===== 新闻卡片网格 ===== */
.news-grid-wrap {
    background: linear-gradient(180deg, #f5f6f8 0%, #eef0f4 100%);
    padding: 56px 0 90px;
    position: relative;
}
.news-grid-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(14,34,64,0.06);
    transition: transform 0.4s cubic-bezier(.2,.7,.3,1), box-shadow 0.4s ease, border-color 0.3s;
    border: 1px solid transparent;
    position: relative;
    isolation: isolate;
}
/* 顶部金线（悬停时展开） */
.news-card::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: linear-gradient(90deg, #b8963e, #e0c070, #b8963e);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(.2,.7,.3,1);
    z-index: 3;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(14,34,64,0.18);
    border-color: rgba(201,168,76,0.25);
}
.news-card:hover::before { transform: scaleX(1); }
.card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--c-primary);
}
.card-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.7s cubic-bezier(.2,.7,.3,1), filter 0.5s ease;
}
.news-card:hover .card-img img { transform: scale(1.1); filter: brightness(1.05); }
/* 图片悬停遮罩 */
.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14,34,64,0) 60%, rgba(14,34,64,0.45));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.news-card:hover .card-img::after { opacity: 1; }
.card-cat-badge {
    position: absolute; top: 14px; left: 14px;
    background: linear-gradient(135deg, #b8963e, #e0c070);
    color: #fff; font-size: 11px; padding: 4px 14px;
    border-radius: 20px; letter-spacing: 1.5px; z-index: 2;
    font-weight: 500; box-shadow: 0 4px 12px rgba(184,150,62,0.4);
    backdrop-filter: blur(2px);
}
.card-body {
    padding: 22px 22px 24px;
    flex: 1; display: flex; flex-direction: column;
    position: relative;
    background: #fff;
}
.card-date {
    font-size: 12px; color: #b8963e; margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
    letter-spacing: 0.5px; font-weight: 500;
}
.card-date i { font-size: 11px; }
.card-title {
    font-size: 16px; color: #1a2a4a; line-height: 1.65;
    margin-bottom: 10px; font-weight: 600;
    transition: color 0.3s;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    min-height: 53px;
}
.news-card:hover .card-title { color: #b8963e; }
.card-summary {
    font-size: 13px; color: #888; line-height: 1.8; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0f0f0;
    transition: border-color 0.3s;
}
.news-card:hover .card-footer { border-top-color: rgba(201,168,76,0.4); }
.card-readmore {
    font-size: 13px; color: #b8963e;
    display: inline-flex; align-items: center; gap: 6px;
    transition: gap 0.3s; font-weight: 500;
}
.card-readmore i {
    transition: transform 0.3s ease;
}
.news-card:hover .card-readmore { gap: 12px; }
.news-card:hover .card-readmore i { transform: translateX(3px); }
.card-views { font-size: 12px; color: #bbb; display: flex; align-items: center; gap: 5px; }
.news-card:hover .card-views { color: #999; }

/* 入场动画 */
.news-card.animate-in { opacity: 0; transform: translateY(30px); }
.news-card.visible {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(.2,.7,.3,1), transform 0.6s cubic-bezier(.2,.7,.3,1);
}

/* 空状态 */
.news-empty { grid-column: 1/-1; text-align: center; padding: 80px 20px; color: #bbb; }
.news-empty i { font-size: 52px; color: #ddd; display: block; margin-bottom: 16px; }
.news-empty p { font-size: 15px; }

/* 分页样式已统一在 theme.css 中，详见 .web-pagination */

/* 响应式 */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-content { padding: 28px 32px; }
    .featured-title { font-size: 18px; }
}
@media (max-width: 768px) {
    .news-featured-slide.active { flex-direction: column; }
    .featured-img { flex: none; max-width: 100%; min-height: 220px; border-radius: 4px 4px 0 0; }
    .featured-content { border-radius: 0 0 4px 4px; padding: 24px 20px; }
    .news-tab-btn { font-size: 13px; padding: 16px 6px; }
}
@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-grid-wrap { padding: 32px 0 60px; }
}
