/* ==========================================================================
   News Page — nuoang-news.css
   新闻中心页面专属样式
   ========================================================================== */

.nuoang-news-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Banner ===== */
.nuoang-news-hero {
    width: 100%;
    min-height: 420px;
    padding-top: 64px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
}
.nuoang-news-hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.nuoang-news-hero-overlay {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    text-align: center;
}
.nuoang-news-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nuoang-news-hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--nuoang-primary-color, #3269ff);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.nuoang-news-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 12px 0;
}
.nuoang-news-hero-subtitle {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 60%;
}

/* 搜索框 */
.nuoang-news-search {
    display: flex;
    width: 520px;
    max-width: 100%;
    height: 44px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease;
}
.nuoang-news-search:focus-within {
    box-shadow: 0 4px 20px rgba(72, 133, 255, 0.15);
}
.nuoang-news-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #1a1a1a;
    padding: 0 16px;
    font-family: inherit;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}
.nuoang-news-search-input::placeholder {
    color: #9CA3AF;
}
.nuoang-news-search-btn {
    flex-shrink: 0;
    width: 90px;
    background: var(--nuoang-primary-color, #3269ff);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nuoang-news-search-btn:hover {
    background: #3a6fe8;
}

/* 热门搜索标签 */
.nuoang-news-hero-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-top: 16px;
}
.nuoang-news-hero-tag-label {
    font-size: 13px;
    color: #9CA3AF;
    margin-right: 12px;
}
.nuoang-news-hero-tag {
    font-size: 13px;
    color: #4B5563;
    text-decoration: none;
    padding: 2px 0;
    margin-right: 16px;
    transition: color 0.25s ease;
    position: relative;
}
.nuoang-news-hero-tag::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: #D1D5DB;
}
.nuoang-news-hero-tag:last-child::after {
    display: none;
}
.nuoang-news-hero-tag:hover {
    color: var(--nuoang-primary-color, #3269ff);
}

/* ===== 新闻列表区 ===== */
.nuoang-news-list-section {
    padding-top: var(--module-py);
    padding-bottom: var(--module-py);
    background: #F7F8FA;
}

/* ===== 左右布局 ===== */
.nuoang-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

/* ===== 文章列表（左侧） ===== */
.nuoang-news-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.nuoang-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== 横向卡片（左图右文，一行一个） ===== */
.nuoang-news-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}
.nuoang-news-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.nuoang-news-card-link {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
}
.nuoang-news-card-img {
    width: 254px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f6f8;
}
.nuoang-news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nuoang-news-card:hover .nuoang-news-card-img img {
    transform: scale(1.05);
}
.nuoang-news-card-body {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
    box-sizing: border-box;
}
.nuoang-news-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--nuoang-primary-color, #3269ff);
}
.nuoang-news-card-date,
.nuoang-news-card-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nuoang-news-meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.nuoang-news-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}
.nuoang-news-card:hover .nuoang-news-card-title {
    color: var(--nuoang-primary-color, #3269ff);
}
.nuoang-news-card-desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nuoang-news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #9CA3AF;
    white-space: nowrap;
}
.nuoang-news-card-read {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    transition: color 0.25s ease;
}
.nuoang-news-card-read i {
    font-size: 12px;
    transition: transform 0.25s ease;
}
.nuoang-news-card:hover .nuoang-news-card-read {
    color: var(--nuoang-primary-color, #3269ff);
}
.nuoang-news-card:hover .nuoang-news-card-read i {
    transform: translateX(3px);
}

/* ===== 分页 ===== */
.nuoang-news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.nuoang-news-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: #4B5563;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.nuoang-news-page-btn:hover {
    border-color: var(--nuoang-primary-color);
    color: var(--nuoang-primary-color);
}
.nuoang-news-page-btn.active {
    background: var(--nuoang-primary-color, #3269ff);
    border-color: var(--nuoang-primary-color, #3269ff);
    color: #fff;
}

/* ===== 右侧侧栏 ===== */
.nuoang-news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 84px;
}

.nuoang-news-widget {
    background: #fff;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.nuoang-news-widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0F1F3;
}

/* 分类列表 */
.nuoang-news-cats {
    display: flex;
    flex-direction: column;
}
.nuoang-news-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    text-decoration: none;
    transition: color 0.2s ease;
}
.nuoang-news-cat-item + .nuoang-news-cat-item {
    border-top: 1px solid #F3F4F6;
}
.nuoang-news-cat-name {
    font-size: 14px;
    color: #4B5563;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nuoang-news-cat-count {
    font-size: 13px;
    color: #9CA3AF;
    font-variant-numeric: tabular-nums;
}
.nuoang-news-cat-item:hover .nuoang-news-cat-name {
    color: var(--nuoang-primary-color, #3269ff);
}
.nuoang-news-cat-item.active .nuoang-news-cat-name {
    color: var(--nuoang-primary-color, #3269ff);
}

/* 热门文章 */
.nuoang-news-hot-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.nuoang-news-hot-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.nuoang-news-hot-item:hover {
    opacity: 0.8;
}
.nuoang-news-hot-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--nuoang-primary-color, #3269ff);
    line-height: 1.4;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.nuoang-news-hot-body {
    flex: 1;
}
.nuoang-news-hot-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nuoang-news-hot-date {
    font-size: 12px;
    color: #9CA3AF;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .nuoang-news-hero {
        min-height: 280px;
        padding-top: 56px;
    }
    .nuoang-news-hero-title {
        font-size: 24px;
    }
    .nuoang-news-hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
        max-width: 100%;
    }
    .nuoang-news-hero-eyebrow {
        font-size: 11px;
    }
    .nuoang-news-search {
        height: 36px;
    }
    .nuoang-news-search-input {
        font-size: 13px;
        padding: 0 12px;
    }
    .nuoang-news-search-btn {
        width: 72px;
        font-size: 14px;
    }
    .nuoang-news-hero-tags {
        gap: 0;
        margin-top: 16px;
    }
    .nuoang-news-hero-tag {
        font-size: 12px;
        padding: 3px 0;
        margin-right: 10px;
    }
    .nuoang-news-hero-tag::after {
        right: -5px;
    }
    .nuoang-news-hero-tag-label {
        margin-right: 8px;
    }
    .nuoang-news-list-section {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .nuoang-news-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .nuoang-news-main {
        margin-bottom: 0;
    }
    .nuoang-news-pagination {
        margin-top: 16px;
    }
    .nuoang-news-card-link {
        flex-direction: column;
    }
    .nuoang-news-card-img {
        display: none;
    }
    .nuoang-news-card-body {
        padding: 16px 20px;
        height: auto;
    }
    .nuoang-news-card-title {
        font-size: 16px;
    }
    .nuoang-news-card-read {
        display: none;
    }
    .nuoang-news-sidebar {
        position: static;
    }
}

/* ===== Search Empty State ===== */
.nuoang-search-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.nuoang-search-empty-img {
    width: 160px;
    height: auto;
    margin-bottom: 16px;
    opacity: 0.9;
}

.nuoang-search-empty-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.nuoang-search-empty-desc {
    font-size: 14px;
    color: #999;
}

@media (max-width: 768px) {
    .nuoang-search-empty {
        padding: 32px 16px;
    }
    .nuoang-search-empty-img {
        width: 120px;
    }
}
