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

:root {
    /* ---- 天与云 ---------------------------------------------------------- */
    --qs-paper: #eaf2fa;          /* 页面底：晴空蓝白（冷天蓝相，非纯白非暖米） */
    --qs-surface: #ffffff;        /* 卡片面：云白，靠 1px 线分面 */
    --qs-surface-2: #e4eef8;      /* 次级面：标签底 / 输入框 */
    --qs-surface-3: #d3e2f0;      /* 图占位 / 骨架 */
    --qs-ink: #16283c;            /* 晴蓝墨 */
    --qs-ink-2: #41546b;          /* 次级文字 */
    --qs-ink-3: #7d90a6;          /* 弱文字（时间 / 计数） */
    --qs-line: #d9e5f0;           /* 1px 分隔线 */
    --qs-line-2: #c0d3e6;         /* 强一点的线（表格头 / 输入框） */

    /* ---- 晴空蓝主 + 日光金 ------------------------------------------------ */
    --qs-accent: #1f7fd4;
    --qs-accent-strong: #155f9e;  /* hover 压深 */
    --qs-accent-ink: #f2f9ff;     /* 蓝底上的字 */
    --qs-accent-soft: rgba(31, 127, 212, .09);
    --qs-accent-soft-2: rgba(31, 127, 212, .18);
    --qs-gold: #d9962e;           /* 日光金：仅用于评分数字与太阳徽，不扩散 */
    --qs-gold-soft: rgba(217, 150, 46, .14);
    /* 错误态：独立暖红，与主蓝分槽 */
    --qs-danger: #cf4a3a;
    --qs-danger-soft: rgba(207, 74, 58, .3);
    --qs-danger-bg: rgba(207, 74, 58, .06);

    /* ---- 字号（最大标题 26px，需求方硬约束） ----------------------------- */
    --qs-fs-2xs: 11px;
    --qs-fs-xs: 12px;
    --qs-fs-sm: 13px;
    --qs-fs-base: 14px;
    --qs-fs-md: 15px;
    --qs-fs-lg: 18px;
    --qs-fs-xl: 20px;
    --qs-fs-h1: 24px;
    --qs-fs-max: 26px;
    --qs-lh: 1.7;
    --qs-lh-tight: 1.35;

    /* ---- 字体：标题与正文统一清爽无衬线（晴天通透感） -------------------- */
    --qs-serif: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    --qs-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    --qs-num: "DIN Alternate", "Bahnschrift", "PingFang SC", system-ui, sans-serif;   /* 序号/评分用窄体数字 */

    /* ---- 容器与间距 ------------------------------------------------------ */
    --qs-shell: 1280px;
    --qs-gutter: clamp(12px, 2vw, 24px);
    --qs-gap-block: clamp(20px, 2vw, 30px);
    --qs-gap-inline: clamp(12px, 1.1vw, 16px);

    /* ---- 圆角：积云圆角（比现款柔和一档） -------------------------------- */
    --qs-r-xs: 4px;
    --qs-r-sm: 8px;
    --qs-r-md: 12px;
    --qs-r-lg: 16px;
    --qs-r-seal: 6px;

    /* ---- 阴影：晴空淡蓝投影，不发黑 -------------------------------------- */
    --qs-sh-1: 0 1px 2px rgba(22, 58, 96, .05);
    --qs-sh-2: 0 10px 24px rgba(22, 58, 96, .12);

    --qs-ease: cubic-bezier(.25, .6, .35, 1);
    --qs-t: .22s;

    --qs-header-h: 64px;
    --qs-anchor-offset: 80px;     /* 顶栏 64 + 吸顶呼吸位 */

    color-scheme: light;
}

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

/* --------------------------------------------------------------------------
   2. 按钮 / 胶囊 / 印章
   -------------------------------------------------------------------------- */
.qs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;                 /* 硬约束：行内不压缩 */
    height: 36px;
    padding: 0 16px;
    border-radius: var(--qs-r-sm);
    background: var(--qs-accent);
    color: var(--qs-accent-ink);
    font-size: var(--qs-fs-base);
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--qs-t) var(--qs-ease), color var(--qs-t) var(--qs-ease), border-color var(--qs-t) var(--qs-ease);
}
.qs-btn:hover { background: var(--qs-accent-strong); }
.qs-btn svg { width: 14px; height: 14px; fill: currentColor; flex: 0 0 auto; }
.qs-btn--ghost {
    background: transparent;
    color: var(--qs-ink);
    border: 1px solid var(--qs-line-2);
}
.qs-btn--ghost:hover { background: var(--qs-surface-2); border-color: var(--qs-accent); color: var(--qs-accent); }
.qs-btn--sm { height: 30px; padding: 0 12px; font-size: var(--qs-fs-sm); }

.qs-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    height: 27px;
    padding: 0 10px;
    border-radius: var(--qs-r-sm);
    background: var(--qs-surface-2);
    border: 1px solid transparent;
    font-size: var(--qs-fs-xs);
    color: var(--qs-ink-2);
    white-space: nowrap;
    max-width: 100%;
    transition: color var(--qs-t) var(--qs-ease), background var(--qs-t) var(--qs-ease), border-color var(--qs-t) var(--qs-ease);
}
.qs-chip:hover { color: var(--qs-accent); background: var(--qs-accent-soft); }
.qs-chip.is-active { background: var(--qs-accent); color: var(--qs-accent-ink); font-weight: 600; }

/* 日章编号：日光金小徽，用于楼层序号 / 榜单单号 */
.qs-seal {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: var(--qs-r-seal);
    background: linear-gradient(160deg, #f6c453, #dd9a2b);
    color: #4a2f04;
    font: 700 var(--qs-fs-2xs)/1 var(--qs-serif);
    font-variant-numeric: tabular-nums;
}
.qs-seal--ghost { background: var(--qs-gold-soft); color: #a57415; }

/* 编号数字（衬线，弱色）：行式榜的 01/02/03 */
.qs-num {
    font-family: var(--qs-num);
    font-variant-numeric: tabular-nums;
    color: var(--qs-ink-3);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. 顶栏（传统横排频道菜单；窄屏收进抽屉）
   -------------------------------------------------------------------------- */
.qs-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--qs-surface);
    border-bottom: 1px solid var(--qs-line);
}
.qs-header__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: var(--qs-header-h);
}

.qs-brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.qs-brand__mark {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffe3a1 0%, #f2b23e 58%, #dd9a2b 100%);
    color: #5c3a05;
    font: 700 17px/1 var(--qs-serif);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 2px 8px rgba(217, 150, 46, .4);
}
.qs-brand__name {
    font-family: var(--qs-serif);
    font-size: var(--qs-fs-lg);
    font-weight: 700;
    letter-spacing: .02em;
}
.qs-brand__slogan {
    font-size: var(--qs-fs-2xs);
    color: var(--qs-ink-3);
    padding-left: 8px;
    margin-left: 2px;
    border-left: 1px solid var(--qs-line);
    white-space: nowrap;
}

.qs-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.qs-nav__item { position: relative; }
.qs-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 11px;
    border-radius: var(--qs-r-sm);
    font-size: var(--qs-fs-base);
    color: var(--qs-ink-2);
    white-space: nowrap;
    transition: color var(--qs-t) var(--qs-ease), background var(--qs-t) var(--qs-ease);
}
.qs-nav__item:hover > .qs-nav__link,
.qs-nav__link.is-active { color: var(--qs-accent); background: var(--qs-accent-soft); }
.qs-nav__caret {
    width: 10px; height: 10px;
    fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round;
    opacity: .55;
    transition: transform var(--qs-t) var(--qs-ease);
}
.qs-nav__item:hover > .qs-nav__link .qs-nav__caret { transform: rotate(180deg); }

.qs-nav__sub {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 3;
    width: max-content;             /* 不写会被条目宽度收缩成一条 */
    max-width: 460px;
    padding: 10px 12px;
    margin-top: 4px;
    background: var(--qs-surface);
    border: 1px solid var(--qs-line);
    border-radius: var(--qs-r-md);
    box-shadow: var(--qs-sh-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--qs-t) var(--qs-ease), visibility var(--qs-t) var(--qs-ease), transform var(--qs-t) var(--qs-ease);
}
.qs-nav__sub a {
    display: inline-block;
    padding: 4px 9px;
    margin: 2px 2px 2px 0;
    border-radius: var(--qs-r-xs);
    font-size: var(--qs-fs-sm);
    color: var(--qs-ink-2);
}
.qs-nav__sub a:hover { background: var(--qs-accent-soft); color: var(--qs-accent); }
@media (min-width: 1024px) {
    .qs-nav__item:hover > .qs-nav__sub,
    .qs-nav__item:focus-within > .qs-nav__sub,
    .qs-nav__item[data-open="1"] > .qs-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
}

.qs-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.qs-search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--qs-line-2);
    border-radius: var(--qs-r-sm);
    background: var(--qs-surface-2);
    transition: border-color var(--qs-t) var(--qs-ease), background var(--qs-t) var(--qs-ease);
}
.qs-search:focus-within { border-color: var(--qs-accent); background: var(--qs-surface); }
.qs-search svg { width: 14px; height: 14px; fill: none; stroke: var(--qs-ink-3); stroke-width: 2; flex: 0 0 auto; }
.qs-search input {
    width: 148px;
    border: 0;
    background: none;
    outline: none;
    font-size: var(--qs-fs-sm);
}
.qs-search input::placeholder { color: var(--qs-ink-3); }
.qs-iconbtn {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: var(--qs-r-sm);
    border: 1px solid var(--qs-line-2);
    color: var(--qs-ink-2);
}
.qs-iconbtn:hover { border-color: var(--qs-accent); color: var(--qs-accent); }
.qs-iconbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.qs-header__burger { display: none; }
@media (max-width: 1023.98px) {
    .qs-nav, .qs-search { display: none; }
    .qs-header__burger { display: grid; }
}

/* 抽屉（窄屏把整棵菜单搬进来，见 js/qt.js） */
.qs-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    background: rgba(13, 42, 70, .42);
}
.qs-drawer.is-open { display: block; }
.qs-drawer__panel {
    position: absolute;
    top: 0; right: 0;
    width: min(86vw, 360px);
    height: 100%;
    overflow-y: auto;
    background: var(--qs-paper);
    border-left: 1px solid var(--qs-line);
    padding: 16px;
}
.qs-drawer__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.qs-drawer__head strong { font-family: var(--qs-serif); font-size: var(--qs-fs-md); }
.qs-drawer__close { margin-left: auto; }
.qs-drawer__search { margin-bottom: 14px; }
.qs-drawer__search .qs-search { display: flex; }
.qs-drawer__search .qs-search input { width: 100%; }

/* 抽屉里承载的是**被搬进来的同一棵菜单**（不是第二份 DOM）：
   窄屏竖排渲染，子分类就地展开成标签云。 */
.qs-drawer .qs-nav { display: block; }
.qs-drawer .qs-nav__item { display: block; border-bottom: 1px solid var(--qs-line); }
.qs-drawer .qs-nav__link {
    display: flex;
    width: 100%;
    height: auto;
    padding: 12px 8px;
    border-radius: 0;
    font-family: var(--qs-serif);
    font-size: var(--qs-fs-md);
    font-weight: 700;
    color: var(--qs-ink);
}
.qs-drawer .qs-nav__caret { display: none; }
.qs-drawer .qs-nav__sub {
    position: static;
    width: auto;
    max-width: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    padding: 0 8px 10px;
    border: 0;
    box-shadow: none;
    background: none;
    display: flex;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   4. 区块头 / 面
   -------------------------------------------------------------------------- */
.qs-sec { margin-top: var(--qs-gap-block); }
.qs-sec__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--qs-line);
}
.qs-sec__head h2 { font-size: var(--qs-fs-lg); }
.qs-sec__head h2 a:hover { color: var(--qs-accent); }
.qs-sec__head em {
    font-style: normal;
    font-size: var(--qs-fs-sm);
    color: var(--qs-ink-3);
}
.qs-sec__more {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: var(--qs-fs-sm);
    color: var(--qs-ink-3);
}
.qs-sec__more:hover { color: var(--qs-accent); }

.qs-panel {
    background: var(--qs-surface);
    border: 1px solid var(--qs-line);
    border-radius: var(--qs-r-md);
    padding: 14px;
}

/* --------------------------------------------------------------------------
   5. 海报卡（全站共用 · 日晕晴光卡）
   角标预算 = 2：右下「更新状态」+ 左上「日晕评分」。不得再加第三个。
   交互签名 = 悬停点亮日晕（金色光芒环旋转展开）+ 底部晴光带浮现；
   卡片本体不做位移、不做缩放。
   -------------------------------------------------------------------------- */
.qs-card {
    position: relative;
    min-width: 0;
    background: var(--qs-surface);
    border: 1px solid var(--qs-line);
    border-radius: var(--qs-r-md);
    overflow: hidden;
    transition: border-color var(--qs-t) var(--qs-ease), box-shadow var(--qs-t) var(--qs-ease);
}
/* 悬停 = 晴空描边点亮 + 淡蓝光晕环，本体不位移 */
.qs-card:hover {
    border-color: var(--qs-accent);
    box-shadow: 0 0 0 3px var(--qs-accent-soft), var(--qs-sh-2);
}
.qs-card > a { display: block; }
.qs-card__pic {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    background: var(--qs-surface-3);
    overflow: hidden;
}
.qs-card__pic img {
    width: 100%; height: 100%;
    object-fit: cover;
}
/* 底部晴光带：晴空蓝光泽从海报底部浮现（纯透明度渐变，不做位移） */
.qs-card__pic::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(31, 127, 212, .30) 0%, rgba(31, 127, 212, .08) 42%, transparent 62%);
    opacity: 0;
    transition: opacity var(--qs-t) var(--qs-ease);
}
.qs-card:hover .qs-card__pic::after { opacity: 1; }
.qs-card__note {
    position: absolute;
    right: 6px; bottom: 6px;
    z-index: 2;
    max-width: calc(100% - 12px);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(13, 42, 70, .78);
    color: #f4faff;
    font-size: var(--qs-fs-2xs);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 日晕评分徽：日光金圆盘，悬停时外圈光芒环旋转展开 */
.qs-card__score {
    position: absolute;
    left: 9px; top: 9px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 32px;
    height: 32px;
    padding: 0 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffe3a1 0%, #f2b23e 58%, #dd9a2b 100%);
    color: #5c3a05;
    font: 700 11px/1 var(--qs-num);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 2px 8px rgba(217, 150, 46, .45);
}
/* 光芒环：repeating-conic 射线，mask 成细环，默认隐藏 */
.qs-card__score::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(242, 178, 62, .95) 0deg 7deg, transparent 7deg 22deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    opacity: 0;
    transform: rotate(0deg) scale(.7);
    transition: opacity .28s var(--qs-ease), transform .5s var(--qs-ease);
    pointer-events: none;
}
.qs-card:hover .qs-card__score::before { opacity: 1; transform: rotate(45deg) scale(1); }
.qs-card__score i { font: 400 9px/1 var(--qs-sans); font-style: normal; opacity: .85; }
.qs-card__body { display: block; padding: 9px 10px 11px; }
.qs-card__body h3 {
    font-family: var(--qs-sans);
    font-size: var(--qs-fs-base);
    font-weight: 600;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--qs-t) var(--qs-ease);
}
.qs-card:hover .qs-card__body h3 { color: var(--qs-accent); }
.qs-card__body p {
    margin-top: 4px;
    font-size: var(--qs-fs-xs);
    color: var(--qs-ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   6. 行式条目（资讯 / 榜单 / 搜索结果共用）
   ⚠️ 多列布局要定义在**行内层**，不能定义在 ul/ol 上（li 会被依次塞进各列）
   -------------------------------------------------------------------------- */
.qs-vrow {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: var(--qs-r-sm);
    transition: background var(--qs-t) var(--qs-ease);
}
.qs-vrow:hover { background: var(--qs-surface-2); }
.qs-vrow__pic {
    width: 46px;
    aspect-ratio: 2 / 3;
    border-radius: var(--qs-r-xs);
    overflow: hidden;
    background: var(--qs-surface-3);
}
.qs-vrow__pic img { width: 100%; height: 100%; object-fit: cover; }
.qs-vrow__copy { display: grid; gap: 3px; min-width: 0; }
.qs-vrow__copy b {
    font-size: var(--qs-fs-base);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.qs-vrow__copy i {
    font-style: normal;
    font-size: var(--qs-fs-xs);
    color: var(--qs-ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 文字榜：序号 / 标题 / 右侧计数 三列 —— 三列定义在行内 <a> 上 */
.qs-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.qs-rows > li { min-width: 0; }
.qs-rows > li > a {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    border-radius: var(--qs-r-sm);
    font-size: var(--qs-fs-base);
    min-width: 0;
    transition: background var(--qs-t) var(--qs-ease), color var(--qs-t) var(--qs-ease);
}
.qs-rows > li > a:hover { background: var(--qs-surface-2); color: var(--qs-accent); }
.qs-rows > li > a > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.qs-rows > li > a em {
    font-style: normal;
    font-size: var(--qs-fs-xs);
    color: var(--qs-ink-3);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
/* 带缩略图的文字榜：序号 / 图 / 标题+副行 / 计数 */
.qs-rows--pic > li > a { grid-template-columns: 22px 42px minmax(0, 1fr) auto; }
.qs-rows--pic .pic {
    width: 42px;
    aspect-ratio: 2 / 3;
    border-radius: var(--qs-r-xs);
    overflow: hidden;
    background: var(--qs-surface-3);
}
.qs-rows--pic .pic img { width: 100%; height: 100%; object-fit: cover; }
.qs-rows--pic .tt { display: grid; gap: 2px; min-width: 0; }
.qs-rows--pic .tt b { font-size: var(--qs-fs-base); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-rows--pic .tt em { font-size: var(--qs-fs-xs); color: var(--qs-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-rows > li > a.is-top .qs-num { color: var(--qs-accent); }

/* --------------------------------------------------------------------------
   7. 资料表（详情页 / 演员页共用）
   -------------------------------------------------------------------------- */
.qs-facts { display: grid; gap: 0; }
.qs-facts > div {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    font-size: var(--qs-fs-sm);
    border-bottom: 1px dashed var(--qs-line);
}
.qs-facts > div:last-child { border-bottom: 0; }
.qs-facts dt { color: var(--qs-ink-3); }
.qs-facts dd { min-width: 0; overflow-wrap: anywhere; color: var(--qs-ink-2); }
.qs-facts dd a { border-bottom: 1px solid var(--qs-line-2); }
.qs-facts dd a:hover { color: var(--qs-accent); border-color: var(--qs-accent); }
.qs-facts--links dd { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.qs-facts--links dd a { border-bottom: 0; }

/* 横排资料带（详情页顶卡底部）：dt:dd 成对横排、自动换行。
   ⚠️ 用横排带而不是竖排资料表，是为了让顶卡不必「三栏等高」——
      等高 + 某一栏内容短，必然在那一栏底部留一个洞（vela 实测 219px）。 */
.qs-facts--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}
.qs-facts--inline > div {
    display: flex;
    gap: 6px;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: var(--qs-fs-sm);
}
.qs-facts--inline dt { color: var(--qs-ink-3); flex: 0 0 auto; }
.qs-facts--inline dt::after { content: "："; }
.qs-facts--inline dd { color: var(--qs-ink-2); min-width: 0; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   8. 正文排版（资讯正文 / 详情页简介共用）
   宽度由调用方容器决定，本组件不设 max-width
   -------------------------------------------------------------------------- */
.qs-copy { color: var(--qs-ink-2); font-size: var(--qs-fs-md); line-height: 1.9; }
.qs-copy p { margin-bottom: 14px; }
.qs-copy p:last-child { margin-bottom: 0; }
.qs-copy h2, .qs-copy h3 {
    margin: 22px 0 10px;
    font-family: var(--qs-serif);
    color: var(--qs-ink);
}
.qs-copy h2 { font-size: var(--qs-fs-lg); }
.qs-copy h3 { font-size: var(--qs-fs-md); }
.qs-copy a { color: var(--qs-accent); border-bottom: 1px solid var(--qs-accent-soft-2); }
.qs-copy ul, .qs-copy ol { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.qs-copy ol { list-style: decimal; }
.qs-copy li { margin: 4px 0; }
.qs-copy img { border-radius: var(--qs-r-sm); margin: 14px auto; }
.qs-copy blockquote {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-left: 3px solid var(--qs-accent);
    background: var(--qs-accent-soft);
    color: var(--qs-ink-2);
}
.qs-copy table { margin-bottom: 14px; font-size: var(--qs-fs-sm); }
.qs-copy th, .qs-copy td { padding: 7px 10px; border: 1px solid var(--qs-line); text-align: left; }
.qs-copy th { background: var(--qs-surface-2); font-weight: 600; }
.qs-copy strong { color: var(--qs-ink); }

/* --------------------------------------------------------------------------
   9. 面包屑 / 页头
   -------------------------------------------------------------------------- */
.qs-pagehead {
    padding: 12px 0;
    border-bottom: 1px solid var(--qs-line);
}
.qs-pagebar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.qs-pagebar__side { margin-left: auto; }
.qs-pagebar__hint { font-size: var(--qs-fs-xs); color: var(--qs-ink-3); }
.qs-pagebar__hint b { color: var(--qs-ink-2); font-weight: 600; }
.qs-pagebar__hint i { font-style: normal; padding: 0 5px; opacity: .6; }

.qs-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: var(--qs-fs-sm); color: var(--qs-ink-3); min-width: 0; }
.qs-crumb svg {
    width: 11px; height: 11px;
    fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round;
    opacity: .5;
    flex: 0 0 auto;
}
.qs-crumb a:hover { color: var(--qs-accent); }
.qs-crumb [aria-current="page"] {
    color: var(--qs-ink-2);
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. 分页 / 空态
   -------------------------------------------------------------------------- */
.qs-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.qs-pager a, .qs-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid var(--qs-line-2);
    border-radius: var(--qs-r-sm);
    font-size: var(--qs-fs-sm);
    color: var(--qs-ink-2);
}
.qs-pager a:hover { border-color: var(--qs-accent); color: var(--qs-accent); }
.qs-pager .is-active { background: var(--qs-accent); border-color: var(--qs-accent); color: var(--qs-accent-ink); font-weight: 600; }
.qs-pager .is-disabled { color: var(--qs-ink-3); opacity: .6; }
.qs-pager__meta { border: 0 !important; color: var(--qs-ink-3); font-size: var(--qs-fs-xs); }

/* 结果统计条：由 widget/page 在列表之后输出（此时 $__PAGING__ 才有值）。
   左右分栏：左「共 N 条」右「第 x / y 页」，窄屏换行居中。 */
.qs-resultbar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--qs-line);
    font-size: var(--qs-fs-sm);
    color: var(--qs-ink-3);
}
.qs-resultbar b { color: var(--qs-ink); font-family: var(--qs-num); font-size: var(--qs-fs-md); }
@media (max-width: 560px) { .qs-resultbar { justify-content: center; } }

.qs-empty {
    padding: 40px 20px;
    text-align: center;
    background: var(--qs-surface);
    border: 1px solid var(--qs-line);
    border-radius: var(--qs-r-md);
}
.qs-empty h2 { font-size: var(--qs-fs-md); margin-bottom: 6px; }
.qs-empty p { font-size: var(--qs-fs-sm); color: var(--qs-ink-3); }

/* --------------------------------------------------------------------------
   11. 页脚（旭日东升 · 深晴蓝底 + 频道胶囊云，SEO 内链结构不变）
   -------------------------------------------------------------------------- */
.qs-foot {
    margin-top: var(--qs-gap-block);
    background: linear-gradient(180deg, #16406b 0%, #102f52 52%, #0b2340 100%);
    color: #c9dcf0;
}
/* 日出束带：左金右蓝的晨光渐变 */
.qs-foot__beam {
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #f2b23e 0%, #ffe3a1 16%, #6fb0ea 42%, #1f7fd4 68%, #6fb0ea 100%);
}
.qs-foot .qs-shell { padding-top: 28px; padding-bottom: 30px; }
.qs-foot__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}
@media (min-width: 720px)  { .qs-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .qs-foot__cols { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }
.qs-foot h3 {
    font-size: var(--qs-fs-base);
    margin-bottom: 10px;
    color: #eef6ff;
    letter-spacing: .04em;
}
/* 品牌列：站点 logo（未配置时回退旭日徽 + 站名）+ 简介 */
.qs-foot__brand { min-width: 0; }
.qs-foot__logo { display: block; height: 44px; width: auto; margin-bottom: 12px; }
.qs-foot__emblem {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffe9b8 0%, #f6c453 55%, #e8a234 100%);
    box-shadow: 0 0 22px rgba(246, 196, 83, .45), 0 0 0 3px rgba(255, 233, 184, .18);
}
.qs-foot__brand h3 { font-size: var(--qs-fs-lg); margin-bottom: 8px; }
.qs-foot__brand p { font-size: var(--qs-fs-sm); color: #9db8d2; line-height: 1.85; }
/* 频道 / 快捷入口：胶囊云 */
.qs-foot__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.qs-foot__pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(126, 180, 232, .38);
    font-size: var(--qs-fs-sm);
    color: #cfe4f7;
    transition: background var(--qs-t) var(--qs-ease), color var(--qs-t) var(--qs-ease), border-color var(--qs-t) var(--qs-ease);
}
.qs-foot__pill:hover {
    background: var(--qs-accent);
    border-color: var(--qs-accent);
    color: #ffffff;
}
/* 站点信息 */
.qs-foot__meta { display: grid; gap: 6px; justify-items: start; font-size: var(--qs-fs-sm); color: #9db8d2; }
.qs-foot__meta a { color: #cfe4f7; border-bottom: 1px solid rgba(126, 180, 232, .35); }
.qs-foot__meta a:hover { color: #ffe3a1; border-color: #ffe3a1; }
.qs-foot__bottom {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid rgba(126, 180, 232, .22);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: var(--qs-fs-xs);
    color: #8fa9c2;
}

/* --------------------------------------------------------------------------
   12. 广告位 / 工具
   -------------------------------------------------------------------------- */
.qs-ad { display: block; margin: 0 auto; text-align: center; }
.qs-ad img { margin-inline: auto; }

.qs-clamp-1, .qs-clamp-2, .qs-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.qs-clamp-1 { -webkit-line-clamp: 1; }
.qs-clamp-2 { -webkit-line-clamp: 2; }
.qs-clamp-3 { -webkit-line-clamp: 3; }
