/* ==========================================================================
   Chuxue 模板 · base（结构层：令牌 / 布局 / 通用组件）
   --------------------------------------------------------------------------
   只放「全站复用」的东西：容器、按钮、胶囊、序号牌、顶栏、区块头、海报卡、
   行式榜、面包屑、分页、页脚。单页专属版式一律写在 cs-pages.css（页面层）。
   类名族：cs- = 结构组件；chx- = 页面版式（见 cs-pages.css）。
   ========================================================================== */

:root {
    /* ---- 初雪冷白与墨 ---------------------------------------------------- */
    --cs-paper: #f1f5fa;          /* 页面底：雪后冷白，浮一层极淡天蓝 */
    --cs-surface: #ffffff;        /* 卡面 */
    --cs-surface-2: #f4f8fc;      /* 次级面：标签底 / 表头 / 输入框 */
    --cs-surface-3: #e3ecf5;      /* 图占位 / 骨架 */
    --cs-ink: #142033;            /* 雪夜墨蓝 */
    --cs-ink-2: #4b5b73;          /* 次级文字 */
    --cs-ink-3: #7f8da3;          /* 弱文字（时间 / 计数） */
    --cs-line: #dde7f2;           /* 1px 分隔线：雪面细裂 */
    --cs-line-2: #c4d3e4;         /* 强线（输入框 / 表头） */

    /* ---- 暮雪蓝（唯一主色） ---------------------------------------------- */
    --cs-navy: #45608f;
    --cs-navy-d: #334a73;         /* hover 压深 */
    --cs-navy-ink: #f5f8fd;       /* 主色底上的字 */
    --cs-navy-s: rgba(69, 96, 143, .09);
    --cs-navy-s2: rgba(69, 96, 143, .17);

    /* ---- 冰晶青（点缀：当前态 / 强调数字 / 主行动） ---------------------- */
    --cs-orange: #3d97a7;
    --cs-orange-d: #2c7887;
    --cs-orange-ink: #f6fcfd;
    --cs-orange-s: rgba(61, 151, 167, .12);

    /* 提示态：不引进第三种彩色 */
    --cs-warn-s: rgba(61, 151, 167, .14);
    --cs-danger: #a9434d;
    --cs-danger-s: rgba(169, 67, 77, .09);

    /* 雪线：卡片顶沿与选中态共用的双色渐变 */
    --cs-snowline: linear-gradient(90deg, #45608f 0%, #6f8bb5 46%, #3d97a7 100%);

    /* ---- 字号（最大标题 24px：需求方硬约束「不能超大字号」） ------------- */
    --cs-fs-2xs: 11px;
    --cs-fs-xs: 12px;
    --cs-fs-sm: 13px;
    --cs-fs-base: 14px;
    --cs-fs-md: 15px;
    --cs-fs-lg: 17px;
    --cs-fs-xl: 19px;
    --cs-fs-h1: 22px;
    --cs-fs-max: 24px;
    --cs-lh: 1.6;
    --cs-lh-tight: 1.3;

    /* ---- 字体：全站一套无衬线；数字走等宽变体 ---------------------------- */
    --cs-sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --cs-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    /* ---- 容器与间距（紧凑是身份，不要放大） ------------------------------ */
    --cs-shell: 1340px;
    --cs-gutter: clamp(12px, 1.5vw, 20px);
    --cs-gap: 14px;                              /* 板块间距 */
    --cs-gap-xs: 8px;                            /* 卡片间隙 */
    --cs-pad: clamp(12px, 1.1vw, 16px);          /* 卡内边距 */

    /* ---- 圆角：雪堤式不对称（左上半弧舒展、右上收拢） -------------------- */
    --cs-r-xs: 3px;
    --cs-r-sm: 5px;
    --cs-r-md: 8px;
    --cs-r-lg: 12px;
    --cs-r-drift: 14px 5px 14px 5px;
    --cs-r-pill: 999px;

    /* ---- 阴影：雪光柔晕，不靠重描边 -------------------------------------- */
    --cs-sh-1: 0 1px 2px rgba(20, 32, 51, .05);
    --cs-sh-2: 0 14px 30px -18px rgba(69, 96, 143, .55), 0 0 0 1px rgba(69, 96, 143, .12);

    --cs-ease: cubic-bezier(.22, .61, .36, 1);
    --cs-t: .18s;

    --cs-header-h: 58px;
    --cs-anchor-offset: 72px;

    color-scheme: light;
}

/* --------------------------------------------------------------------------
   1. 容器
   -------------------------------------------------------------------------- */
.cs-shell {
    width: 100%;
    max-width: var(--cs-shell);
    margin-inline: auto;
    padding-inline: var(--cs-gutter);
}
.cs-main { padding-block: var(--cs-gap); min-height: 45vh; }
.cs-main > .cs-shell > * + * { margin-top: var(--cs-gap); }

/* --------------------------------------------------------------------------
   2. 按钮 / 胶囊 / 序号牌
   -------------------------------------------------------------------------- */
.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 34px;
    padding: 0 15px;
    border-radius: var(--cs-r-md);
    background: var(--cs-navy);
    color: var(--cs-navy-ink);
    font-size: var(--cs-fs-base);
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--cs-t) var(--cs-ease), border-color var(--cs-t) var(--cs-ease), color var(--cs-t) var(--cs-ease);
}
.cs-btn:hover { background: var(--cs-navy-d); }
.cs-btn svg { width: 14px; height: 14px; fill: currentColor; flex: 0 0 auto; }
.cs-btn--orange { background: var(--cs-orange); color: var(--cs-orange-ink); }
.cs-btn--orange:hover { background: var(--cs-orange-d); }
.cs-btn--ghost {
    background: var(--cs-surface);
    color: var(--cs-ink);
    border: 1px solid var(--cs-line-2);
}
.cs-btn--ghost:hover { border-color: var(--cs-navy); color: var(--cs-navy); background: var(--cs-navy-s); }
.cs-btn--sm { height: 28px; padding: 0 11px; font-size: var(--cs-fs-sm); }

.cs-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;                 /* flex 行内不被压窄折行 */
    height: 26px;
    padding: 0 10px;
    border-radius: var(--cs-r-md);
    background: var(--cs-surface-2);
    border: 1px solid var(--cs-line);
    color: var(--cs-ink-2);
    font-size: var(--cs-fs-sm);
    line-height: 1;
    white-space: nowrap;
    transition: background var(--cs-t) var(--cs-ease), color var(--cs-t) var(--cs-ease), border-color var(--cs-t) var(--cs-ease);
}
.cs-chip:hover { border-color: var(--cs-navy); color: var(--cs-navy); background: var(--cs-navy-s); }
.cs-chip.is-active {
    background: var(--cs-navy);
    border-color: var(--cs-navy);
    color: var(--cs-navy-ink);
    font-weight: 600;
}
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* 序号牌：楼层 / 板块编号（靛蓝细框 + 等宽数字） */
.cs-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 24px;
    height: 22px;
    padding: 0 5px;
    border: 1px solid var(--cs-navy);
    border-radius: var(--cs-r-sm);
    color: var(--cs-navy);
    font: 600 var(--cs-fs-xs)/1 var(--cs-mono);
    letter-spacing: .02em;
}
.cs-index--fill { background: var(--cs-navy); color: var(--cs-navy-ink); }
.cs-index--orange { border-color: var(--cs-orange); color: var(--cs-orange); }

/* --------------------------------------------------------------------------
   3. 顶栏（传统横排频道菜单，窄屏由 JS 搬进抽屉）
   -------------------------------------------------------------------------- */
.cs-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--cs-surface);
    border-bottom: 1px solid var(--cs-line);
    box-shadow: var(--cs-sh-1);
}
.cs-header__bar {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 22px);
    height: var(--cs-header-h);
}
.cs-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.cs-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: var(--cs-r-sm);
    background: var(--cs-navy);
    color: var(--cs-navy-ink);
    font: 800 15px/1 var(--cs-sans);
}
.cs-brand__name {
    font-size: var(--cs-fs-lg);
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--cs-navy);
    white-space: nowrap;
}
.cs-header__nav { flex: 1 1 auto; min-width: 0; }

.cs-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    height: var(--cs-header-h);
}
.cs-nav__item { position: relative; height: 100%; display: flex; align-items: center; }
.cs-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 100%;
    padding: 0 11px;
    font-size: var(--cs-fs-md);
    font-weight: 600;
    color: var(--cs-ink);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--cs-t) var(--cs-ease), border-color var(--cs-t) var(--cs-ease), background var(--cs-t) var(--cs-ease);
}
.cs-nav__link:hover { color: var(--cs-navy); background: var(--cs-navy-s); }
.cs-nav__link.is-active { color: var(--cs-navy); border-bottom-color: var(--cs-orange); }
.cs-nav__caret { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.cs-nav__item:hover .cs-nav__caret,
.cs-nav__item:focus-within .cs-nav__caret { transform: rotate(180deg); }

/* 子分类浮层：悬停 / 键盘聚焦展开（触发条目必须 relative，否则会认到 sticky 顶栏） */
.cs-nav__sub {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 70;
    width: max-content;            /* 不写会被条目宽度收缩成一条 */
    max-width: 460px;
    padding: 6px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r-md);
    box-shadow: var(--cs-sh-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--cs-t) var(--cs-ease), transform var(--cs-t) var(--cs-ease), visibility var(--cs-t);
}
.cs-nav__item:hover > .cs-nav__sub,
.cs-nav__item:focus-within > .cs-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.cs-nav__sub nav { display: flex; flex-wrap: wrap; gap: 3px; max-width: 448px; }
.cs-nav__sub a {
    padding: 5px 9px;
    border-radius: var(--cs-r-sm);
    font-size: var(--cs-fs-sm);
    color: var(--cs-ink-2);
    white-space: nowrap;
}
.cs-nav__sub a:hover { background: var(--cs-navy-s); color: var(--cs-navy); }
.cs-nav__sub a.is-active { background: var(--cs-navy); color: var(--cs-navy-ink); font-weight: 600; }

.cs-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.cs-search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 11px;
    background: var(--cs-surface-2);
    border: 1px solid var(--cs-line-2);
    border-radius: var(--cs-r-md);
    transition: border-color var(--cs-t) var(--cs-ease), background var(--cs-t) var(--cs-ease);
}
.cs-search:focus-within { border-color: var(--cs-navy); background: var(--cs-surface); }
.cs-search svg { width: 14px; height: 14px; fill: none; stroke: var(--cs-ink-3); stroke-width: 2; flex: 0 0 auto; }
.cs-search input {
    width: 168px;
    border: 0;
    background: none;
    outline: none;
    font-size: var(--cs-fs-sm);
}
.cs-search input::placeholder { color: var(--cs-ink-3); }
.cs-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--cs-r-md);
    color: var(--cs-ink-2);
    transition: background var(--cs-t) var(--cs-ease), color var(--cs-t) var(--cs-ease);
}
.cs-iconbtn:hover { background: var(--cs-navy-s); color: var(--cs-navy); }
.cs-iconbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cs-header__burger { display: none; }

/* 窄屏抽屉 */
.cs-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(20, 32, 51, .48);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--cs-t) var(--cs-ease), visibility var(--cs-t);
}
.cs-drawer.is-open { opacity: 1; visibility: visible; }
.cs-drawer__panel {
    position: absolute;
    inset-block: 0;
    right: 0;
    width: min(88vw, 340px);
    background: var(--cs-surface);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .24s var(--cs-ease);
}
.cs-drawer.is-open .cs-drawer__panel { transform: translateX(0); }
.cs-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--cs-line);
}
.cs-drawer__head strong { font-size: var(--cs-fs-md); }
.cs-drawer__search { padding: 10px 14px; border-bottom: 1px solid var(--cs-line); }
.cs-drawer__search .cs-search { width: 100%; }
.cs-drawer__search input { width: 100%; }
.cs-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 8px 14px 20px; }
.cs-drawer__body .cs-nav { display: block; height: auto; }
.cs-drawer__body .cs-nav__item { display: block; height: auto; }
.cs-drawer__body .cs-nav__link {
    height: auto;
    padding: 9px 2px;
    border-bottom: 1px solid var(--cs-line);
    font-size: var(--cs-fs-md);
}
.cs-drawer__body .cs-nav__link.is-active { border-bottom-color: var(--cs-line); color: var(--cs-navy); }
.cs-drawer__body .cs-nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: auto;
    max-width: none;
    padding: 4px 0 8px;
    border: 0;
    box-shadow: none;
    background: none;
}
.cs-drawer__body .cs-nav__sub nav { max-width: none; gap: 4px; }
.cs-drawer__body .cs-nav__caret { display: none; }

/* --------------------------------------------------------------------------
   4. 页面头（面包屑条，除首页外每页都有）
   -------------------------------------------------------------------------- */
.cs-pagehead {
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r-md);
    padding: 9px var(--cs-pad);
}
.cs-pagebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cs-pagebar__side { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cs-pagebar__hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--cs-fs-xs);
    color: var(--cs-ink-3);
}
.cs-pagebar__hint b { color: var(--cs-navy); font-weight: 600; }
.cs-pagebar__hint i { font-style: normal; color: var(--cs-line-2); }

.cs-crumb {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: var(--cs-fs-xs);
    color: var(--cs-ink-3);
    min-width: 0;
}
.cs-crumb a { color: var(--cs-ink-2); }
.cs-crumb a:hover { color: var(--cs-navy); text-decoration: underline; text-underline-offset: 2px; }
.cs-crumb svg { width: 11px; height: 11px; fill: none; stroke: var(--cs-line-2); stroke-width: 2.4; flex: 0 0 auto; }
.cs-crumb [aria-current="page"] { color: var(--cs-ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   5. 区块（section）与区块头
   ⚠️ 需求硬约束：区块头旁边**不放**解释性说明文字（「按热度统计」这类一律不写），
      只保留「编号 + 标题 + 可选的 更多 → 」。
   -------------------------------------------------------------------------- */
.cs-sec {
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r-md);
    padding: var(--cs-pad);
}
.cs-sec--flush { padding: 0; overflow: hidden; }
.cs-sec__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.cs-sec--flush .cs-sec__head { margin: 0; padding: 10px var(--cs-pad); border-bottom: 1px solid var(--cs-line); }
.cs-sec__head h2 { font-size: var(--cs-fs-lg); letter-spacing: -.01em; }
.cs-sec__head h2 a:hover { color: var(--cs-navy); }
.cs-sec__more {
    margin-left: auto;
    font-size: var(--cs-fs-xs);
    color: var(--cs-navy);
    white-space: nowrap;
}
.cs-sec__more:hover { text-decoration: underline; text-underline-offset: 2px; }
.cs-panel {
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r-md);
    padding: var(--cs-pad);
}

/* --------------------------------------------------------------------------
   6. 海报卡（首页楼层 / 频道 / 筛选 / 搜索 / 详情推荐 全站共用）
   -------------------------------------------------------------------------- */
.cs-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));   /* 必须显式给列，否则隐式单列 → 卡片拉成巨图 */
    gap: 10px;
}
.cs-grid--list { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* 雪窗卡：左上半弧舒展、右上收拢的雪堤圆角；顶部雪线 + 悬停冰晶扫光（无位移） */
.cs-card {
    position: relative;
    background: var(--cs-surface);
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-r-drift);
    overflow: hidden;
    box-shadow: var(--cs-sh-1);
    transition: border-color var(--cs-t) var(--cs-ease), box-shadow var(--cs-t) var(--cs-ease);
}
.cs-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    z-index: 2;
    background: var(--cs-snowline);
    opacity: 0;
    transition: opacity var(--cs-t) var(--cs-ease);
}
.cs-card:hover { border-color: rgba(69, 96, 143, .5); box-shadow: var(--cs-sh-2); }
.cs-card:hover::before { opacity: 1; }
.cs-card > a { display: block; }
.cs-card__pic {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    background: var(--cs-surface-3);
    overflow: hidden;
}
.cs-card__pic img { width: 100%; height: 100%; object-fit: cover; }
/* 冰晶扫光：一道斜向雪光从右侧掠过，只改 opacity / background-position */
.cs-card__pic::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(112deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .62) 50%, rgba(255, 255, 255, 0) 62%);
    background-size: 260% 100%;
    background-position: 120% 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s var(--cs-ease), background-position .7s var(--cs-ease);
}
.cs-card:hover .cs-card__pic::after { opacity: 1; background-position: -20% 0; }
/* 角标预算 = 2 个：左上「评分」胶囊 + 右下「更新状态」胶囊，不得再加第三个 */
.cs-card__score {
    position: absolute;
    left: 6px; top: 6px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: var(--cs-r-pill);
    background: rgba(20, 32, 51, .62);
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    font: 600 var(--cs-fs-2xs)/1.5 var(--cs-mono);
    backdrop-filter: blur(6px);
}
.cs-card__score i { font-style: normal; font-size: 9px; opacity: .78; margin-left: 1px; }
.cs-card__note {
    position: absolute;
    right: 6px; bottom: 6px;
    z-index: 2;
    max-width: calc(100% - 12px);
    padding: 2px 8px;
    border-radius: var(--cs-r-pill);
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .55);
    color: var(--cs-ink-2);
    font-size: var(--cs-fs-2xs);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(6px);
}
/* ⚠️ 必须显式 block：这是 span（inline）装 h3/p（块级）的结构，
   inline 盒的横向 padding 对块级子元素**不生效**（实测标题距卡缘只有 1px），
   不设 block 的话片名会整排贴着卡片左缘。 */
.cs-card__body { display: block; padding: 8px 10px 10px; }
.cs-card__body h3 {
    font-size: var(--cs-fs-sm);
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cs-card:hover .cs-card__body h3 { color: var(--cs-navy); }
.cs-card__meta {
    margin-top: 4px;
    font-size: var(--cs-fs-2xs);
    color: var(--cs-ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   7. 行式榜 / 行式条目（文本密度主力，可索引文本远超海报网格）
   -------------------------------------------------------------------------- */
.cs-rows li + li { border-top: 1px dashed var(--cs-line); }
.cs-rows a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    font-size: var(--cs-fs-sm);
}
.cs-rows a:hover { color: var(--cs-navy); }
.cs-num {
    flex: 0 0 auto;
    width: 20px;
    font: 600 var(--cs-fs-xs)/1 var(--cs-mono);
    color: var(--cs-ink-3);
    text-align: right;
}
.cs-rows li:nth-child(-n+3) .cs-num { color: var(--cs-orange); }
.cs-rows a > span:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cs-rows em {
    flex: 0 0 auto;
    font-style: normal;
    font-size: var(--cs-fs-2xs);
    color: var(--cs-ink-3);
}

/* 缩略图 + 文字的行（侧栏 / 相关推荐 / 资讯） */
.cs-vrow {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
}
.cs-vrow + .cs-vrow { border-top: 1px dashed var(--cs-line); }
.cs-vrow__pic {
    flex: 0 0 auto;
    width: 46px;
    aspect-ratio: 2 / 3;
    border-radius: var(--cs-r-sm);
    overflow: hidden;
    background: var(--cs-surface-3);
}
.cs-vrow__pic img { width: 100%; height: 100%; object-fit: cover; }
.cs-vrow__copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cs-vrow__copy b {
    font-size: var(--cs-fs-sm);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cs-vrow:hover .cs-vrow__copy b { color: var(--cs-navy); }
.cs-vrow__copy i { font-style: normal; font-size: var(--cs-fs-2xs); color: var(--cs-ink-3); }

/* 大信息行（最新收录 / 搜索结果：标题 + 元信息 + 摘要） */
.cs-linerow {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}
.cs-linerow + .cs-linerow { border-top: 1px solid var(--cs-line); }
.cs-linerow__pic {
    flex: 0 0 auto;
    width: 92px;
    aspect-ratio: 2 / 3;
    border-radius: var(--cs-r-sm);
    overflow: hidden;
    background: var(--cs-surface-3);
}
.cs-linerow__pic img { width: 100%; height: 100%; object-fit: cover; }
.cs-linerow__copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cs-linerow__copy b { font-size: var(--cs-fs-md); font-weight: 700; }
.cs-linerow__copy b a:hover { color: var(--cs-navy); }
.cs-linerow__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: var(--cs-fs-xs);
    color: var(--cs-ink-3);
}
.cs-linerow__meta a { color: var(--cs-navy); }
.cs-linerow__meta a:hover { text-decoration: underline; text-underline-offset: 2px; }
.cs-linerow__meta em { font-style: normal; color: var(--cs-orange); font-weight: 600; }
.cs-linerow__copy p {
    font-size: var(--cs-fs-sm);
    line-height: 1.68;
    color: var(--cs-ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cs-linerow__cast {
    font-size: var(--cs-fs-xs);
    color: var(--cs-ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   8. 资料表（详情页资料带 / 播放页本片信息）
   -------------------------------------------------------------------------- */
.cs-facts { display: grid; gap: 4px 14px; }
.cs-facts > div { display: flex; gap: 8px; min-width: 0; }
.cs-facts dt {
    flex: 0 0 auto;
    width: 52px;
    color: var(--cs-ink-3);
    font-size: var(--cs-fs-xs);
    line-height: 1.7;
}
.cs-facts dd {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--cs-fs-sm);
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.cs-facts--inline {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 18px;
}
.cs-facts--inline > div { border-right: 1px dashed var(--cs-line); padding-right: 12px; }
.cs-facts--inline > div:last-child { border-right: 0; }

/* --------------------------------------------------------------------------
   9. 统计条 / 分页 / 空态
   -------------------------------------------------------------------------- */
.cs-resultbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0 2px;
    font-size: var(--cs-fs-xs);
    color: var(--cs-ink-3);
}
.cs-resultbar b { color: var(--cs-orange); font-size: var(--cs-fs-sm); }

.cs-pager {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--cs-line);
}
.cs-pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    border: 1px solid var(--cs-line-2);
    border-radius: var(--cs-r-sm);
    font-size: var(--cs-fs-sm);
    color: var(--cs-ink-2);
    transition: background var(--cs-t) var(--cs-ease), color var(--cs-t) var(--cs-ease), border-color var(--cs-t) var(--cs-ease);
}
.cs-pager a:hover { border-color: var(--cs-navy); color: var(--cs-navy); background: var(--cs-navy-s); }
.cs-pager a.is-active { background: var(--cs-navy); border-color: var(--cs-navy); color: var(--cs-navy-ink); font-weight: 600; }
.cs-pager a.is-disabled { color: var(--cs-ink-3); opacity: .5; pointer-events: none; }
.cs-pager__meta { margin-left: auto; font-size: var(--cs-fs-xs); color: var(--cs-ink-3); }

.cs-empty {
    padding: 34px 16px;
    text-align: center;
    background: var(--cs-surface);
    border: 1px dashed var(--cs-line-2);
    border-radius: var(--cs-r-md);
}
.cs-empty h2 { font-size: var(--cs-fs-lg); }
.cs-empty p { margin-top: 6px; font-size: var(--cs-fs-sm); color: var(--cs-ink-2); }
.cs-empty .cs-btn { margin-top: 14px; }
/* 行内空态：夹在段落/列表之间的「这一块没内容」，不要再套一个虚线大盒子
   （列表片段里出现整块虚线框会把上下两段内容割断） */
.cs-empty--inline {
    padding: 12px 2px;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: var(--cs-fs-sm);
    color: var(--cs-ink-3);
}

/* --------------------------------------------------------------------------
   10. 正文块（简介 / 文章正文）
   -------------------------------------------------------------------------- */
.cs-copy {
    font-size: var(--cs-fs-base);
    line-height: 1.85;
    color: var(--cs-ink-2);
    overflow-wrap: anywhere;
}
.cs-copy p + p { margin-top: 8px; }
.cs-copy a { color: var(--cs-navy); text-decoration: underline; text-underline-offset: 2px; }
.cs-copy img { margin: 10px 0; border-radius: var(--cs-r-sm); }

/* --------------------------------------------------------------------------
   11. 页脚（雪塬：雪堤波形顶 + 四栏信息带 + 居中页脚条）
   -------------------------------------------------------------------------- */
.cs-foot {
    position: relative;
    margin-top: calc(var(--cs-gap) + 28px);
    background:
        radial-gradient(90% 130% at 16% 0%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 62%),
        linear-gradient(180deg, #eef4fa 0%, #e2ecf6 100%);
    color: var(--cs-ink-2);
    font-size: var(--cs-fs-xs);
}
/* 雪堤：页脚顶沿伸进页面底的两排雪堆，纯 CSS 圆弧重复，不占文档流 */
.cs-foot__drift {
    position: absolute;
    top: -26px;
    left: 0;
    right: 0;
    height: 27px;
    background-image: radial-gradient(50% 100% at 50% 100%, #eef4fa 98%, rgba(238, 244, 250, 0) 100%);
    background-size: 96px 27px;
    background-repeat: repeat-x;
    pointer-events: none;
}
.cs-foot__main {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1.05fr);
    gap: 26px clamp(22px, 3vw, 46px);
    padding: 26px 0 22px;
    border-bottom: 1px solid rgba(69, 96, 143, .16);
}
.cs-foot__about,
.cs-foot__col { min-width: 0; }
.cs-foot h3 {
    margin-bottom: 11px;
    font-size: var(--cs-fs-sm);
    font-weight: 700;
    color: var(--cs-ink);
    letter-spacing: .03em;
}
.cs-foot__col h3 {
    position: relative;
    padding-left: 11px;
}
.cs-foot__col h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: .34em;
    width: 3px;
    height: .9em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--cs-navy), var(--cs-orange));
}
.cs-foot__brandline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: var(--cs-fs-lg);
    color: var(--cs-ink);
}
.cs-foot__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: var(--cs-r-pill);
    background: linear-gradient(160deg, #ffffff 0%, #e9f1f9 100%);
    border: 1px solid rgba(69, 96, 143, .2);
    box-shadow: var(--cs-sh-1);
    color: var(--cs-navy);
}
.cs-foot__mark svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.cs-foot__about p { line-height: 1.9; max-width: 46em; }

/* 链接列：圆点前缀的纯文本索引，列宽一致，比胶囊更容易对齐成版 */
.cs-foot__links { display: grid; gap: 8px 18px; }
.cs-foot__links--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-foot__links--stack { grid-template-columns: minmax(0, 1fr); }
.cs-foot__links a {
    position: relative;
    padding-left: 12px;
    line-height: 1.7;
    color: var(--cs-ink-2);
    overflow-wrap: anywhere;
    transition: color var(--cs-t) var(--cs-ease);
}
.cs-foot__links a::before {
    content: "";
    position: absolute;
    left: 1px;
    top: .72em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cs-line-2);
    transition: background var(--cs-t) var(--cs-ease), transform var(--cs-t) var(--cs-ease);
}
.cs-foot__links a:hover { color: var(--cs-navy); }
.cs-foot__links a:hover::before { background: var(--cs-orange); transform: scale(1.2); }

/* 站点信息：竖排文本，链接只在悬停时上色 */
.cs-foot__meta { display: flex; flex-direction: column; gap: 8px; line-height: 1.7; }
.cs-foot__meta li { min-width: 0; overflow-wrap: anywhere; }
.cs-foot__meta a {
    color: var(--cs-ink-2);
    text-decoration: underline;
    text-decoration-color: rgba(69, 96, 143, .28);
    text-underline-offset: 3px;
    transition: color var(--cs-t) var(--cs-ease), text-decoration-color var(--cs-t) var(--cs-ease);
}
.cs-foot__meta a:hover { color: var(--cs-navy); text-decoration-color: currentColor; }

.cs-foot__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 13px 0 18px;
    text-align: center;
    color: var(--cs-ink-3);
    font-size: var(--cs-fs-2xs);
}
.cs-foot__bottom span { max-width: 74ch; }
.cs-foot__bottom span + span {
    color: rgba(69, 96, 143, .55);
    font-family: var(--cs-mono);
    letter-spacing: .06em;
}

/* --------------------------------------------------------------------------
   12. 断点
   ⚠️ 列数只能取 6 / 4 / 3 / 2：模板取数固定 24（楼层）与 48（列表），
      24 与 48 都能被这四个数整除 —— 任何断点都不会露半行残卡。
      （换成 5 列会让 48 条剩 3 张残卡，别加这个档。）
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    .cs-grid, .cs-grid--list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cs-header__nav { display: none; }          /* 菜单整棵由 JS 搬进抽屉 */
    .cs-header__burger { display: inline-flex; }
    .cs-search input { width: 120px; }
    .cs-foot__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--cs-gap); }
    .cs-foot__about,
    .cs-foot__col--chan { grid-column: 1 / -1; }
    .cs-foot__links--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    :root { --cs-shell: 100%; --cs-gap: 12px; --cs-gap-xs: 6px; }
    .cs-grid, .cs-grid--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cs-search { display: none; }
    .cs-facts--inline { grid-template-columns: minmax(0, 1fr); }
    .cs-facts--inline > div { border-right: 0; border-bottom: 1px dashed var(--cs-line); padding: 4px 0; }
    .cs-facts--inline > div:last-child { border-bottom: 0; }
    .cs-linerow__pic { width: 74px; }
    .cs-foot { margin-top: calc(var(--cs-gap) + 20px); }
    .cs-foot__drift { top: -19px; height: 20px; background-size: 72px 20px; }
    .cs-foot__main { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px 0 18px; }
    .cs-foot__about,
    .cs-foot__col--chan { grid-column: auto; }
    .cs-foot__links--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-pager__meta { width: 100%; margin-left: 0; }
}
@media (max-width: 479.98px) {
    .cs-grid, .cs-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
