/* ============================================================
   Category Page - 简洁版
   ============================================================ */

.nc-category-page {
    padding-bottom: 3rem;
    min-height: 50vh;
}

.nc-category-breadcrumb {
    padding: 1rem 0;
    font-size: 1.2rem;
    color: #999;
}
.nc-category-breadcrumb a { color: #666; }
.nc-category-breadcrumb a:hover { color: var(--color-main); }
.nc-category-breadcrumb .nc-sep { margin: 0 .4rem; color: #ddd; }

.nc-category-wrap {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* ============ 左侧 - 轻量列表 ============ */
.nc-category-sidebar {
    width: 14rem;
    min-width: 14rem;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    position: sticky;
    top: 7rem;
    flex-shrink: 0;
}
.nc-sidebar-list {
    list-style: none;
    margin: 0;
    padding: .4rem 0;
}
.nc-sidebar-item {
    display: flex;
    align-items: center;
    padding: .7rem 1rem;
    cursor: pointer;
    color: #555;
    font-size: 1.3rem;
    transition: background .15s;
    border-left: 2px solid transparent;
}
.nc-sidebar-item:hover {
    background: #f0f0f0;
    color: #333;
}
.nc-sidebar-item.active {
    background: #fff;
    color: var(--color-main);
    font-weight: 500;
    border-left-color: var(--color-main);
}
.nc-sidebar-icon {
    width: 1.6rem;
    height: 1.6rem;
    margin-right: .6rem;
    object-fit: contain;
    flex-shrink: 0;
}
.nc-sidebar-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-sidebar-arrow { display: none; }

/* ============ 移动端一级分类 ============ */
.nc-mobile-tabs { display: none; margin-bottom: 1rem; }
.nc-mobile-tabs-scroll {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nc-mobile-tabs-scroll::-webkit-scrollbar { display: none; }
.nc-mobile-tab {
    flex-shrink: 0;
    padding: .5rem 1.2rem;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
    transition: all .15s;
}
.nc-mobile-tab.active {
    background: var(--color-main);
    color: #fff;
}
.nc-mobile-tab:not(.active):hover { background: #e8e8e8; }

/* ============ 右侧主内容 ============ */
.nc-category-main { flex: 1; min-width: 0; }

.nc-main-header {
    display: flex;
    align-items: baseline;
    gap: .8rem;
    margin-bottom: 1rem;
}
.nc-main-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #222;
    margin: 0;
}
.nc-main-count {
    font-size: 1.2rem;
    color: #999;
}

/* ============ 二级标签 - 极简 ============ */
.nc-sub-tabs {
    background: transparent;
    border: none;
    margin-bottom: 1.2rem;
}
.nc-sub-tabs-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.nc-sub-tab {
    padding: .4rem 1rem;
    background: transparent;
    border-radius: 2px;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    transition: all .15s;
    border-bottom: 2px solid transparent;
}
.nc-sub-tab:hover { color: #333; }
.nc-sub-tab.active {
    color: var(--color-main);
    font-weight: 500;
    border-bottom-color: var(--color-main);
    background: transparent;
}

/* ============ CAS 卡片 - 紧凑 ============ */
.nc-cas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 1rem;
}
.nc-cas-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.nc-cas-card:hover {
    border-color: var(--color-main);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nc-cas-card:hover .nc-cas-title { color: var(--color-main); }
.nc-cas-cover {
    aspect-ratio: 1 / 1;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.nc-cas-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.nc-cas-info {
    padding: .6rem .8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.8rem;
}
.nc-cas-title {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.nc-cas-link {
    color: #bbb;
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: .4rem;
}
.nc-cas-card:hover .nc-cas-link { color: var(--color-main); }

.nc-cas-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #999;
    font-size: 1.3rem;
    grid-column: 1 / -1;
}
.nc-cas-empty p { margin-top: .8rem; }

.nc-no-data {
    text-align: center;
    padding: 6rem 2rem;
    color: #999;
    font-size: 1.4rem;
}

/* ============ 分页 ============ */
.nc-pagination { margin-top: 2rem; text-align: center; }
.nc-page-inner {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}
.nc-page-btn {
    min-width: 2.8rem;
    height: 2.8rem;
    padding: 0 .8rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.nc-page-btn:hover {
    border-color: var(--color-main);
    color: var(--color-main);
}
.nc-page-btn.active {
    background: var(--color-main);
    color: #fff;
    border-color: var(--color-main);
    pointer-events: none;
}
.nc-page-dots {
    color: #bbb;
    padding: 0 .2rem;
    font-size: 1.2rem;
}

/* ============ 平板 ============ */
@media only screen and (max-width: 1024px) {
    .nc-category-sidebar { display: none; }
    .nc-mobile-tabs { display: block; }
    .nc-category-wrap { flex-direction: column; gap: 0; }
    .nc-main-title { font-size: 1.5rem; }
    .nc-cas-grid {
        grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
        gap: .8rem;
    }
}

/* ============ 手机 ============ */
@media only screen and (max-width: 640px) {
    .nc-category-page { padding-bottom: 5rem; }
    .nc-category-breadcrumb { padding: .8rem 0; font-size: 1.1rem; }
    .nc-main-title { font-size: 1.4rem; }
    .nc-sub-tabs-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nc-sub-tabs-scroll::-webkit-scrollbar { display: none; }
    .nc-cas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: .6rem;
    }
    .nc-cas-info { padding: .5rem .6rem; min-height: 2.4rem; }
    .nc-cas-title { font-size: 1rem; }
    .nc-cas-link { display: none; }
    .nc-page-btn { min-width: 2.6rem; height: 2.6rem; font-size: 1.1rem; }
}

/* ============ 大屏 ============ */
@media only screen and (min-width: 1260px) {
    .nc-cas-grid { grid-template-columns: repeat(6, 1fr); }
}
@media only screen and (min-width: 1600px) {
    .nc-cas-grid { grid-template-columns: repeat(8, 1fr); gap: 1.2rem; }
}
