/* ========== News Page（新闻动态，2026-10-26） ========== */
/* 设计令牌与 articles.css 同源：棕金 #A67B5B / #C4956A，浅底 #FAF6F0，字色 #3A2A1A / #8A7A6A */

/* ========== Page Banner ========== */
.news-banner {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #241230 0%, #43173a 40%, #6d295a 70%, #C4956A 100%);
    overflow: hidden;
}
.news-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(196,149,106,0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
    pointer-events: none;
}
.news-banner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,149,106,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.news-banner .banner-content {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 0 20px;
}
.news-banner .banner-content h1,
.news-banner .banner-content h2 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
    letter-spacing: 1px;
}
.news-banner .banner-content p {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 20px;
}
.news-banner .breadcrumb {
    font-size: 13px;
    opacity: 0.8;
}
.news-banner .breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color .2s;
}
.news-banner .breadcrumb a:hover {
    color: #ffb6d9;
}
.news-banner .breadcrumb span {
    margin: 0 6px;
    opacity: 0.6;
}

/* ========== News Section ========== */
.news-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #FAF6F0 0%, #fff 100%);
}
.news-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

/* ========== News Categories ========== */
.news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #F0E8DD;
}
.news-categories .category-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: #8A7A6A;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    border: 1.5px solid #E8DDD0;
    transition: all .35s cubic-bezier(.4,0,.2,1);
}
.news-categories .category-tag:hover {
    color: #A67B5B;
    background: linear-gradient(135deg, #fef7fa, #fef0f5);
    border-color: rgba(166,123,91,0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(166,123,91,0.1);
}
.news-categories .category-tag.active {
    color: #fff;
    background: linear-gradient(135deg, #A67B5B, #C4956A);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 4px 16px rgba(166,123,91,0.4);
    transform: translateY(-1px);
}

/* ========== News List ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========== News Card（日期块 + 图文横排） ========== */
/* ★ 2026-10-31 二次校准：回归全站圆角柔和卡片（16px + 轻投影 + 细描边）。
   保留去 AI 味成果：封面由卡片统一裁切（不再单独圆角）→ 单一表面，非盒中盒；
   hover 去掉 translateY 位移与投影放大晃动，改为描边加深 + 底色反馈。 */
.news-card {
    display: grid;
    grid-template-columns: 112px 200px 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(166, 123, 91, 0.08);
    cursor: pointer;
    transition: box-shadow .25s ease, border-color .25s ease;
    text-decoration: none;
}
.news-card:hover {
    border-color: rgba(166, 123, 91, 0.35);
    box-shadow: 0 4px 20px rgba(166, 123, 91, 0.10);
}
.news-card .news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    /* ★ 2026-10-31 去渐变：改扁平米色 */
    background: #F5F0EB;
    border-right: 1px solid rgba(58, 42, 26, 0.12);
    padding: 12px 6px;
}
.news-card .news-date .day {
    font-size: 30px;
    font-weight: 700;
    color: #A67B5B;
    line-height: 1.1;
}
.news-card .news-date .ym {
    font-size: 12px;
    /* ★ 提升对比度（原 #B0A396 过浅） */
    color: #7A6E60;
    letter-spacing: 1px;
}
.news-card .news-cover {
    overflow: hidden;
    /* ★ 2026-10-31 二次优化：高度自适应——宽度铺满（200px 列），高度随图片原始比例，
       完整显示不裁切；图片比正文区矮时在格内垂直居中，避免顶/底留白。 */
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-card .news-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center center;
    /* ★ hover 去掉 scale 放大，改用稳定的透明度反馈 */
    transition: opacity .2s ease;
}
.news-card:hover .news-cover img {
    opacity: 0.88;
}
.news-card .news-cover .no-img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EFE9E1;
    color: #C9B8A5;
    font-size: 30px;
}
.news-card .news-body {
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}
.news-card .news-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #3A2A1A;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.news-card:hover .news-body h3 {
    color: #A67B5B;
}
.news-card .news-excerpt {
    font-size: 14px;
    color: #8A7A6A;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card .news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #B0A396;
}
.news-card .news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.news-card .news-meta i {
    font-size: 12px;
    color: #A67B5B;
}
.news-card .news-meta .cat-chip {
    padding: 2px 12px;
    background: linear-gradient(135deg, rgba(166,123,91,0.12), rgba(196,149,106,0.16));
    color: #A67B5B;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

/* ========== No News ========== */
.no-news {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.no-news i {
    font-size: 48px;
    color: #e0e0e0;
    margin-bottom: 16px;
}
.no-news p {
    font-size: 16px;
    color: #8A7A6A;
    margin-bottom: 0;
}

/* ========== Pagination（对齐 articles.css ThinkPHP 兼容） ========== */
.news-section .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    padding: 20px 0;
    flex-wrap: wrap;
}
.news-section .pagination ul,
.news-section .pagination ol {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-section .pagination li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.news-section .pagination li a,
.news-section .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    color: #8A7A6A;
    background: #fff;
    border: 1.5px solid #E8DDD0;
    text-decoration: none;
    transition: all .25s;
}
.news-section .pagination li span {
    border-color: transparent;
    background: transparent;
    color: #C0B4A6;
}
.news-section .pagination li a:hover {
    color: #A67B5B;
    border-color: rgba(166,123,91,0.4);
}
.news-section .pagination li.active a,
.news-section .pagination li.active span {
    color: #fff;
    background: linear-gradient(135deg, #A67B5B, #C4956A);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(166,123,91,0.3);
}

/* ========== Sidebar ========== */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 90px;
}
.news-sidebar .sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid rgba(166,123,91,0.06);
}
.news-sidebar .sidebar-card > h3 {
    font-size: 17px;
    font-weight: 600;
    color: #3A2A1A;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #F0E8DD;
    display: flex;
    align-items: center;
    gap: 8px;
}
.news-sidebar .sidebar-card > h3 i {
    color: #A67B5B;
    font-size: 15px;
}
/* 热点新闻 */
.hot-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hot-news-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.hot-news-list .rank {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: #F0E8DD;
    color: #8A7A6A;
    margin-top: 2px;
}
.hot-news-list .rank-top {
    background: linear-gradient(135deg, #A67B5B, #C4956A);
    color: #fff;
}
.hot-news-list a {
    color: #4A3B2C;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-news-list a:hover {
    color: #A67B5B;
}
/* 分类列表 */
.news-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.news-cat-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #6B5A48;
    font-size: 14px;
    text-decoration: none;
    background: #FAF6F0;
    transition: all .25s;
}
.news-cat-list a:hover,
.news-cat-list a.active {
    color: #fff;
    background: linear-gradient(135deg, #A67B5B, #C4956A);
}
.news-cat-list a i {
    font-size: 12px;
}
.news-cat-list a .count {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.75;
}
/* 相关新闻 */
.related-news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.related-news-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
}
.related-news-item .thumb {
    flex-shrink: 0;
    width: 86px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    background: #F0E8DD;
}
.related-news-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-news-item .thumb .no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9B8A5;
    font-size: 16px;
}
.related-news-item h4 {
    font-size: 14px;
    font-weight: 500;
    color: #4A3B2C;
    line-height: 1.5;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.related-news-item:hover h4 {
    color: #A67B5B;
}
.related-news-item span {
    font-size: 12px;
    color: #B0A396;
}

/* ========== News Detail ========== */
.news-detail-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #FAF6F0 0%, #fff 100%);
}
.news-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}
.news-detail-main {
    background: #fff;
    border-radius: 16px;
    padding: 40px 44px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid rgba(166,123,91,0.06);
}
.news-detail-main h1.news-title {
    font-size: 28px;
    font-weight: 700;
    color: #3A2A1A;
    line-height: 1.5;
    margin: 0 0 16px;
}
.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #B0A396;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #F0E8DD;
}
.news-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.news-detail-meta i {
    font-size: 12px;
    color: #A67B5B;
}
.news-detail-meta .cat-chip {
    padding: 3px 14px;
    background: linear-gradient(135deg, rgba(166,123,91,0.12), rgba(196,149,106,0.16));
    color: #A67B5B;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}
.news-detail-cover {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}
.news-detail-cover img {
    width: 100%;
    height: auto;
    display: block;
    /* ★ 2026-10-31 高度自适应：按原图比例完整显示，不再 cover 裁切 / 限制 max-height */
}
.news-content {
    font-size: 15px;
    line-height: 1.9;
    color: #4A3B2C;
    word-break: break-word;
}
.news-content p {
    margin: 0 0 16px;
}
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
/* 上下篇 */
.news-detail-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #F0E8DD;
}
.news-detail-nav a {
    display: block;
    padding: 14px 18px;
    background: #FAF6F0;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    color: #6B5A48;
    line-height: 1.5;
    transition: all .25s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-detail-nav a:hover {
    background: linear-gradient(135deg, #A67B5B, #C4956A);
    color: #fff;
}
.news-detail-nav a.nav-prev {
    text-align: left;
}
.news-detail-nav a.nav-next {
    text-align: right;
}
.news-detail-nav span {
    display: block;
    padding: 14px 18px;
    font-size: 13px;
    color: #C0B4A6;
    background: #FAF6F0;
    border-radius: 12px;
    text-align: center;
}
.news-back-row {
    margin-top: 20px;
    text-align: center;
}
.news-back-row a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8A7A6A;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
}
.news-back-row a:hover {
    color: #A67B5B;
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
    .news-wrapper,
    .news-detail-wrapper {
        grid-template-columns: 1fr;
    }
    .news-sidebar {
        position: static;
    }
}
@media (max-width: 860px) {
    .news-card {
        grid-template-columns: 84px 1fr;
    }
    .news-card .news-cover {
        display: none;
    }
    .news-detail-main {
        padding: 26px 20px;
    }
    .news-detail-nav {
        grid-template-columns: 1fr;
    }
    .news-detail-nav a.nav-next {
        text-align: left;
    }
}
