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

:root {
    /* ---- 冷白纸与墨 ------------------------------------------------------ */
    --at-paper: #eef1f6;          /* 页面底：冷调浅灰蓝，不是纯白也不是暖米白 */
    --at-surface: #ffffff;        /* 卡面 */
    --at-surface-2: #f5f7fb;      /* 次级面：标签底 / 表头 / 输入框 */
    --at-surface-3: #e2e7f0;      /* 图占位 / 骨架 */
    --at-ink: #0e1a2b;            /* 墨蓝黑 */
    --at-ink-2: #46536b;          /* 次级文字 */
    --at-ink-3: #79859a;          /* 弱文字（时间 / 计数） */
    --at-line: #dde3ec;           /* 1px 分隔线 */
    --at-line-2: #c6cfdd;         /* 强线（输入框 / 表头） */

    /* ---- 靛蓝（唯一主色） ------------------------------------------------ */
    --at-navy: #16416f;
    --at-navy-d: #0e2e52;         /* hover 压深 */
    --at-navy-ink: #f3f7fc;       /* 靛蓝底上的字 */
    --at-navy-s: rgba(22, 65, 111, .085);
    --at-navy-s2: rgba(22, 65, 111, .16);

    /* ---- 橙（点缀：当前态 / 强调数字 / 主行动） ------------------------- */
    --at-orange: #e2610f;
    --at-orange-d: #c2500a;
    --at-orange-ink: #fff8f3;
    --at-orange-s: rgba(226, 97, 15, .11);

    /* 提示态：同一强调色的深浅变体，不引进第三种彩色 */
    --at-warn-s: rgba(226, 97, 15, .13);
    --at-danger: #b3341f;
    --at-danger-s: rgba(179, 52, 31, .09);

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

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

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

    /* ---- 圆角：一律锐利小圆角 -------------------------------------------- */
    --at-r-xs: 2px;
    --at-r-sm: 3px;
    --at-r-md: 4px;
    --at-r-lg: 8px;

    /* ---- 阴影：默认不用，悬浮才浮起 -------------------------------------- */
    --at-sh-1: 0 1px 2px rgba(14, 26, 43, .06);
    --at-sh-2: 0 8px 20px rgba(14, 26, 43, .13);

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

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

    color-scheme: light;
}

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

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

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

/* 序号牌：楼层 / 板块编号（靛蓝细框 + 等宽数字） */
.at-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(--at-navy);
    border-radius: var(--at-r-sm);
    color: var(--at-navy);
    font: 600 var(--at-fs-xs)/1 var(--at-mono);
    letter-spacing: .02em;
}
.at-index--fill { background: var(--at-navy); color: var(--at-navy-ink); }
.at-index--orange { border-color: var(--at-orange); color: var(--at-orange); }

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

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

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

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

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

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

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

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

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

.at-card {
    background: var(--at-surface);
    border: 1px solid var(--at-line);
    border-radius: var(--at-r-md);
    overflow: hidden;
    transition: border-color var(--at-t) var(--at-ease), box-shadow var(--at-t) var(--at-ease), transform var(--at-t) var(--at-ease);
}
.at-card:hover { border-color: var(--at-navy); box-shadow: var(--at-sh-2); transform: translateY(-2px); }
.at-card > a { display: block; }
.at-card__pic {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    background: var(--at-surface-3);
    overflow: hidden;
}
.at-card__pic img { width: 100%; height: 100%; object-fit: cover; }
/* 角标预算 = 2 个：右下「更新状态」+ 左上「评分」，不得再加第三个 */
.at-card__score {
    position: absolute;
    left: 0; top: 0;
    padding: 2px 6px;
    background: rgba(14, 26, 43, .78);
    color: #fff;
    font: 600 var(--at-fs-xs)/1.5 var(--at-mono);
    border-bottom-right-radius: var(--at-r-sm);
}
.at-card__score i { font-style: normal; font-size: 9px; opacity: .78; margin-left: 1px; }
.at-card__note {
    position: absolute;
    right: 0; bottom: 0;
    max-width: 100%;
    padding: 2px 6px;
    background: rgba(22, 65, 111, .9);
    color: var(--at-navy-ink);
    font-size: var(--at-fs-2xs);
    line-height: 1.6;
    border-top-left-radius: var(--at-r-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* ⚠️ 必须显式 block：这是 span（inline）装 h3/p（块级）的结构，
   inline 盒的横向 padding 对块级子元素**不生效**（实测标题距卡缘只有 1px），
   不设 block 的话片名会整排贴着卡片左缘。 */
.at-card__body { display: block; padding: 7px 8px 8px; }
.at-card__body h3 {
    font-size: var(--at-fs-sm);
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.at-card:hover .at-card__body h3 { color: var(--at-navy); }
.at-card__meta {
    margin-top: 3px;
    font-size: var(--at-fs-2xs);
    color: var(--at-ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

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

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

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

.at-pager {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--at-line);
}
.at-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(--at-line-2);
    border-radius: var(--at-r-sm);
    font-size: var(--at-fs-sm);
    color: var(--at-ink-2);
    transition: background var(--at-t) var(--at-ease), color var(--at-t) var(--at-ease), border-color var(--at-t) var(--at-ease);
}
.at-pager a:hover { border-color: var(--at-navy); color: var(--at-navy); background: var(--at-navy-s); }
.at-pager a.is-active { background: var(--at-navy); border-color: var(--at-navy); color: var(--at-navy-ink); font-weight: 600; }
.at-pager a.is-disabled { color: var(--at-ink-3); opacity: .5; pointer-events: none; }
.at-pager__meta { margin-left: auto; font-size: var(--at-fs-xs); color: var(--at-ink-3); }

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

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

/* --------------------------------------------------------------------------
   11. 页脚
   -------------------------------------------------------------------------- */
.at-foot {
    margin-top: var(--at-gap);
    background: var(--at-navy-d);
    color: rgba(243, 247, 252, .74);
    font-size: var(--at-fs-xs);
}
.at-foot__cols {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px var(--at-gap);
    padding: 22px 0 16px;
}
.at-foot h3 { font-size: var(--at-fs-sm); color: #fff; margin-bottom: 8px; }
.at-foot__links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.at-foot__links a { color: rgba(243, 247, 252, .74); }
.at-foot__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.at-foot__about p { line-height: 1.8; max-width: 46em; }
.at-foot__bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 11px 0;
    border-top: 1px solid rgba(243, 247, 252, .16);
    color: rgba(243, 247, 252, .58);
}

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