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

:root {
    /* ---- 纸与墨 ---------------------------------------------------------- */
    --fo-paper: #f7f5f0;          /* 页面底：宣纸米白（暖色相，非纯白非冷灰） */
    --fo-surface: #fffefb;        /* 卡片面：比纸更亮一档，靠 1px 线分面 */
    --fo-surface-2: #f2efe7;      /* 次级面：标签底 / 输入框 */
    --fo-surface-3: #e8e3d7;      /* 图占位 / 骨架 */
    --fo-ink: #1e1b16;            /* 墨黑 */
    --fo-ink-2: #524c42;          /* 次级文字 */
    --fo-ink-3: #8b8477;          /* 弱文字（时间 / 计数） */
    --fo-line: #e3ded1;           /* 1px 分隔线 */
    --fo-line-2: #d2cbb9;         /* 强一点的线（表格头 / 输入框） */

    /* ---- 朱砂（唯一强调色） --------------------------------------------- */
    --fo-accent: #c0402b;
    --fo-accent-strong: #a5351f;  /* hover 压深 */
    --fo-accent-ink: #fff8f5;     /* 朱砂底上的字 */
    --fo-accent-soft: rgba(192, 64, 43, .09);
    --fo-accent-soft-2: rgba(192, 64, 43, .18);
    --fo-gold: #9a7b3f;           /* 赭石：仅用于评分数字，不扩散到其它元素 */
    --fo-gold-soft: rgba(154, 123, 63, .12);
    /* 错误态：朱砂的暗调变体 —— 只做「同一强调色的深/浅」，不引进第二种彩色，
       否则全站会从「一种强调色」滑向花哨。 */
    --fo-danger: #b3352a;
    --fo-danger-soft: rgba(179, 53, 42, .3);
    --fo-danger-bg: rgba(179, 53, 42, .06);

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

    /* ---- 字体：标题宋体衬线，正文无衬线（本模板最强的识别点） ------------ */
    --fo-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", STSong, SimSun, serif;
    --fo-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    --fo-num: "Iowan Old Style", "Songti SC", Georgia, serif;   /* 序号/评分用衬线数字 */

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

    /* ---- 圆角：一律小圆角（现款 13–18px 大圆角，这里刻意收住） ---------- */
    --fo-r-xs: 3px;
    --fo-r-sm: 5px;
    --fo-r-md: 6px;
    --fo-r-lg: 10px;
    --fo-r-seal: 4px;

    /* ---- 阴影：极浅，宣纸上的投影不该发黑 -------------------------------- */
    --fo-sh-1: 0 1px 2px rgba(70, 58, 38, .05);
    --fo-sh-2: 0 6px 18px rgba(70, 58, 38, .10);

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

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

    color-scheme: light;
}

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

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

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

/* 印章编号：朱底白字小方章，用于楼层序号 / 榜单单号 */
.fo-seal {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: var(--fo-r-seal);
    background: var(--fo-accent);
    color: var(--fo-accent-ink);
    font: 700 var(--fo-fs-2xs)/1 var(--fo-serif);
    font-variant-numeric: tabular-nums;
}
.fo-seal--ghost { background: var(--fo-accent-soft); color: var(--fo-accent); }

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

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

.fo-brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.fo-brand__mark {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    border-radius: var(--fo-r-sm);
    background: var(--fo-accent);
    color: var(--fo-accent-ink);
    font: 700 17px/1 var(--fo-serif);
}
.fo-brand__name {
    font-family: var(--fo-serif);
    font-size: var(--fo-fs-lg);
    font-weight: 700;
    letter-spacing: .02em;
}
.fo-brand__slogan {
    font-size: var(--fo-fs-2xs);
    color: var(--fo-ink-3);
    padding-left: 8px;
    margin-left: 2px;
    border-left: 1px solid var(--fo-line);
    white-space: nowrap;
}

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

.fo-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(--fo-surface);
    border: 1px solid var(--fo-line);
    border-radius: var(--fo-r-md);
    box-shadow: var(--fo-sh-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--fo-t) var(--fo-ease), visibility var(--fo-t) var(--fo-ease), transform var(--fo-t) var(--fo-ease);
}
.fo-nav__sub a {
    display: inline-block;
    padding: 4px 9px;
    margin: 2px 2px 2px 0;
    border-radius: var(--fo-r-xs);
    font-size: var(--fo-fs-sm);
    color: var(--fo-ink-2);
}
.fo-nav__sub a:hover { background: var(--fo-accent-soft); color: var(--fo-accent); }
@media (min-width: 1024px) {
    .fo-nav__item:hover > .fo-nav__sub,
    .fo-nav__item:focus-within > .fo-nav__sub,
    .fo-nav__item[data-open="1"] > .fo-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
}

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

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

/* 抽屉里承载的是**被搬进来的同一棵菜单**（不是第二份 DOM）：
   窄屏竖排渲染，子分类就地展开成标签云。 */
.fo-drawer .fo-nav { display: block; }
.fo-drawer .fo-nav__item { display: block; border-bottom: 1px solid var(--fo-line); }
.fo-drawer .fo-nav__link {
    display: flex;
    width: 100%;
    height: auto;
    padding: 12px 8px;
    border-radius: 0;
    font-family: var(--fo-serif);
    font-size: var(--fo-fs-md);
    font-weight: 700;
    color: var(--fo-ink);
}
.fo-drawer .fo-nav__caret { display: none; }
.fo-drawer .fo-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. 区块头 / 面
   -------------------------------------------------------------------------- */
.fo-sec { margin-top: var(--fo-gap-block); }
.fo-sec__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--fo-line);
}
.fo-sec__head h2 { font-size: var(--fo-fs-lg); }
.fo-sec__head h2 a:hover { color: var(--fo-accent); }
.fo-sec__head em {
    font-style: normal;
    font-size: var(--fo-fs-sm);
    color: var(--fo-ink-3);
}
.fo-sec__more {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: var(--fo-fs-sm);
    color: var(--fo-ink-3);
}
.fo-sec__more:hover { color: var(--fo-accent); }

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

/* --------------------------------------------------------------------------
   5. 海报卡（全站共用）
   角标预算 = 2：右下「更新状态」+ 右上「评分」。不得再加第三个。
   -------------------------------------------------------------------------- */
.fo-card {
    position: relative;
    min-width: 0;
    background: var(--fo-surface);
    border: 1px solid var(--fo-line);
    border-radius: var(--fo-r-md);
    overflow: hidden;
    transition: border-color var(--fo-t) var(--fo-ease), box-shadow var(--fo-t) var(--fo-ease), transform var(--fo-t) var(--fo-ease);
}
.fo-card:hover { border-color: var(--fo-accent); box-shadow: var(--fo-sh-2); transform: translateY(-2px); }
.fo-card > a { display: block; }
.fo-card__pic {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    background: var(--fo-surface-3);
    overflow: hidden;
}
.fo-card__pic img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s var(--fo-ease);
}
.fo-card:hover .fo-card__pic img { transform: scale(1.035); }
.fo-card__note {
    position: absolute;
    right: 6px; bottom: 6px;
    z-index: 2;
    max-width: calc(100% - 12px);
    padding: 2px 6px;
    border-radius: var(--fo-r-xs);
    background: rgba(30, 27, 22, .78);
    color: #fdfaf3;
    font-size: var(--fo-fs-2xs);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fo-card__score {
    position: absolute;
    left: 6px; top: 6px;
    z-index: 2;
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    padding: 1px 6px;
    border-radius: var(--fo-r-xs);
    background: var(--fo-surface);
    color: var(--fo-gold);
    font: 700 var(--fo-fs-xs)/1.6 var(--fo-num);
}
.fo-card__score i { font: 400 var(--fo-fs-2xs)/1 var(--fo-sans); font-style: normal; opacity: .8; }
.fo-card__body { display: block; padding: 9px 10px 11px; }
.fo-card__body h3 {
    font-family: var(--fo-sans);
    font-size: var(--fo-fs-base);
    font-weight: 600;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fo-card__body p {
    margin-top: 4px;
    font-size: var(--fo-fs-xs);
    color: var(--fo-ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

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

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

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

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

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

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

/* 结果统计条：由 widget/page 在列表之后输出（此时 $__PAGING__ 才有值）。
   左右分栏：左「共 N 条」右「第 x / y 页」，窄屏换行居中。 */
.fo-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(--fo-line);
    font-size: var(--fo-fs-sm);
    color: var(--fo-ink-3);
}
.fo-resultbar b { color: var(--fo-ink); font-family: var(--fo-num); font-size: var(--fo-fs-md); }
@media (max-width: 560px) { .fo-resultbar { justify-content: center; } }

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

/* --------------------------------------------------------------------------
   11. 页脚（多列 + 分类全量内链，SEO 用）
   -------------------------------------------------------------------------- */
.fo-foot {
    margin-top: var(--fo-gap-block);
    padding: 26px 0 30px;
    background: var(--fo-surface);
    border-top: 1px solid var(--fo-line);
}
.fo-foot__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}
@media (min-width: 720px)  { .fo-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .fo-foot__cols { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }
.fo-foot h3 { font-size: var(--fo-fs-base); margin-bottom: 9px; }
.fo-foot__links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.fo-foot__links a { font-size: var(--fo-fs-sm); color: var(--fo-ink-2); }
.fo-foot__links a:hover { color: var(--fo-accent); }
.fo-foot__about p { font-size: var(--fo-fs-sm); color: var(--fo-ink-3); line-height: 1.85; }
.fo-foot__bottom {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--fo-line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: var(--fo-fs-xs);
    color: var(--fo-ink-3);
}

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

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