@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --background: #f6f8fa;
  --foreground: #1f2328;
  --card: #ffffff;
  --primary: #b42318;
  --primary-foreground: #ffffff;
  --secondary: #eaeef2;
  --secondary-foreground: #32383f;
  --muted: #dde3ea;
  --muted-foreground: #656d76;
  --border: #d0d7de;
  --ring: #b42318;
  /* 链接悬停只需要说明「这里点得动」，不该和当前页、选中态抢同一档重量。它单独取一枚
   * 低饱和红；`a:hover` 临时改写后，链接自身及其子元素里已有的 `var(--primary)` 都会
   * 自动落到这一档，不必给每一种链接再抄一份颜色。 */
  --link-hover: #8f514c;
  /* 滚动条的 thumb。`--border` 在 4px 宽的时候够了，宽到手能抓的时候太浅 —— 一条
   * 抓得住的滚动条得先让人看见自己抓的是什么。 */
  --scrollbar: color-mix(in srgb, var(--muted-foreground) 45%, var(--background));

  --serif: 'Playfair Display', serif;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
  --sidebar: 220px;
  /* 顶栏高度。两行文字（中文 + 英文小字）撑起来的下界在 31px 上下，剩下的是上下留白 ——
   * 再往下压就要先撤掉品牌和 tab 里的英文那一行。手机上那个抽屉和它的遮罩都从这里往下
   * 定位，所以改它一处，那两块跟着走。 */
  --masthead: 48px;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background-color: var(--background);
  color: var(--foreground);
}

/* 保留各处已有的 hover 形状，只把链接的红色降一档。实心按钮和当前项仍用 `--primary`。 */
a:hover { --primary: var(--link-hover); }

/*
 * 4px 的滚动条得先瞄准才拖得着。轨道给 12px，thumb 用 `content-box` 加一圈透明边框，
 * 于是它看着是 8px、能按住的却是整条 12px —— 同时想要「细」和「拖得动」时，这是不用
 * 二选一的那个写法。
 *
 * `background-color` 而不是 `background` 简写：简写会把上一条的 `background-clip` 一起
 * 重置成 `border-box`，于是鼠标一进来 thumb 就胖出那 4px。
 *
 * Firefox 不认 `::-webkit-*`，它走 `scrollbar-color`。那一行**必须关在 `@supports not
 * selector(::-webkit-scrollbar)` 里面**：Chromium 只要在这个元素上见到 `scrollbar-color`
 * 或者 `scrollbar-width`，就整个改走标准滚动条那条路、把上面这几个伪元素全部忽略 ——
 * 而 `scrollbar-color` 是继承属性，写在 `html` 上就是全站每一条滚动条都退回系统宽度
 * （Windows 上 15px）。那个 `@supports` 在 Chromium 里为假、在 Firefox 里为真，正好把
 * 两边分开。Firefox 那边也**别配 `scrollbar-width: thin`** —— 它干的正是把滚动条变回
 * 原来那个太细的样子。
 */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background-color: transparent; }
::-webkit-scrollbar-corner { background-color: transparent; }

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar);
  background-clip: content-box;
  border: 2px solid transparent;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover { background-color: var(--muted-foreground); }

@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--scrollbar) transparent; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted-foreground);
  text-transform: uppercase;
}

/*
 * Secondary English gloss on chrome labels. Kept muted and slightly smaller so
 * the Chinese remains the primary signal; `lang=en` on the span stops Chinese
 * fonts from forcing Latin metrics.
 */
.en {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted-foreground);
}

.masthead__tab .en,
.footer__link .en,
.about__heading .en,
.about__link .en,
.hits__title .en {
  margin-left: 0.35em;
  font-size: 0.85em;
}

/*
 * 翻页那两格是例外：中文挪进了 `aria-label`（见 `day.html` 里那段），英文是这里唯一的
 * 标签，所以上面那两条都不适用 —— 缩小和淡化是给中文旁边那个第二说法写的，而一个孤零零
 * 的 `Prev` 淡下去就没人看得见了。间距交给 `.pager__step` 自己的 `gap`。
 */
.pager__step .en {
  font-size: 1em;
  color: inherit;
}

.eyebrow .en {
  margin-left: 0.4em;
  letter-spacing: 0.08em;
  font-size: 9px;
}

/* --- Shell ---------------------------------------------------------------- */

.shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.masthead {
  display: flex;
  align-items: center;
  height: var(--masthead);
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--card);
}

/*
 * The sidebar collapses into a drawer on narrow screens. Like the fold, it is a
 * checkbox and sibling selectors, so there is still no script on the page and a
 * navigation always lands with the drawer closed.
 */
.drawer__state {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.masthead__drawer { display: none; }

.calendar__scrim { display: none; }

/*
 * 宽屏上手动收起侧栏。抽屉那个 checkbox 在这里不够用：它记在页面上，翻一页就回到
 * 展开，而这是一个偏好 —— 存在 localStorage 里，由 `app.js` 切换 `html.cal-off`，
 * `base.html` head 里那几行在首帧之前把它读回来。
 *
 * 断点和下面那个抽屉严格互补，所以这是全站唯一一处 min-width：769px 以下侧栏是
 * fixed 的抽屉，那里收起没有意义（它本来就不占地方），而这条规则要是漏进去，
 * 收起过的读者在手机上会点开一个空抽屉。
 *
 * 按钮默认不存在，`html.js` 才让它出现 —— 坏掉的那一侧必须是安静的一侧。
 */
.masthead__aside { display: none; }

@media (min-width: 769px) {
  html.cal-off .calendar { display: none; }

  html.js .masthead__aside {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 100%;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--border);
    background: none;
    cursor: pointer;
  }

  /*
   * 一个侧栏的样子：外面一个框，左边那条实心的就是侧栏本身，右边那半里一个箭头。
   * 状态靠箭头的方向说，不靠那条实心的在不在 —— 收起时把它抽掉，剩下的就是一个
   * 空方框，这么小的尺寸上它看着像一个没渲染出来的字。
   */
  .masthead__aside-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 25px;
    border: 1.5px solid var(--foreground);
    border-radius: 2px;
    transition: border-color .15s;
  }

  .masthead__aside-icon::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background-color: var(--foreground);
    transition: background-color .15s;
  }

  /* 一个只留左边和下边的方块，转 45° 就是个 ‹。展开时它指向侧栏（点了收进去），
   * 收起时反过来指向外面（点了放出来）。 */
  .masthead__aside-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 2px;
    width: 4px;
    height: 4px;
    border-left: 1.3px solid var(--foreground);
    border-bottom: 1.3px solid var(--foreground);
    transform: translateY(-50%) rotate(45deg);
    transition: border-color .15s, transform .18s;
  }

  html.cal-off .masthead__aside-icon::after {
    transform: translateY(-50%) rotate(-135deg);
  }

  .masthead__aside:hover .masthead__aside-icon { border-color: var(--primary); }

  .masthead__aside:hover .masthead__aside-icon::before {
    background-color: var(--primary);
  }

  .masthead__aside:hover .masthead__aside-icon::after {
    border-color: var(--primary);
  }

  .masthead__aside:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: -2px;
  }
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  flex-shrink: 0;
  padding: 0 28px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  text-decoration: none;
}

.masthead__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  flex-shrink: 0;
}

.masthead__brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.masthead__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
  color: var(--foreground);
}

.masthead__title-en {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
}

.masthead__nav {
  display: flex;
  height: 100%;
  margin-left: 4px;
  min-width: 0;
  overflow-x: auto;
}

/* `flex-shrink: 0` 让放不下的 tab 交给 `.masthead__nav` 的横向滚动，而不是被压扁：
 * 每个 tab 里的中英两行都 `nowrap`，所以压缩不会让它们换行，只会让相邻两个 tab 的
 * 英文互相压上去 —— 窄一点的窗口上就能看到。 */
.masthead__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-shrink: 0;
  min-width: 76px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 400;
  color: var(--muted-foreground);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.masthead__tab-zh {
  font-size: 14px;
  line-height: 1.15;
}

.masthead__tab-en {
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--muted-foreground);
}

.masthead__tab--active {
  font-weight: 600;
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.masthead__tab--active .masthead__tab-en {
  color: var(--primary);
  opacity: 0.72;
}

/*
 * 搜索页的主框和全站顶栏里的常驻框是同一个部件，所以这套基础样式住在共用样式表里；
 * `search.css` 只留下首页/结果页布局。顶栏那一份是真正提交到主站 `/search/` 的 GET 表单，
 * 不靠脚本中转；搜索页已有完整表单，所以 `base.html` 在那一页不重复画。
 */
.finder__box {
  display: flex;
  flex: 1 1 380px;
  max-width: 560px;
  align-items: center;
  gap: 8px;
  padding: 3px 4px 3px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--card);
  transition: border-color .12s, box-shadow .12s;
}

.finder__box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 2px 14px rgba(26, 23, 20, .10);
}

.finder__icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted-foreground);
  border-radius: 50%;
}

.finder__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 7px;
  height: 2px;
  background-color: var(--muted-foreground);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* 16px 是 iOS 不在输入框聚焦时放大整页的下界。 */
.finder__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  color: var(--foreground);
  outline: none;
}

.finder__input::placeholder { color: var(--muted-foreground); }

.finder__submit {
  flex: 0 0 auto;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background-color: var(--primary);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-foreground);
  cursor: pointer;
  transition: background-color .12s;
}

.finder__submit:hover { background-color: color-mix(in srgb, var(--primary) 86%, #000); }

.finder__dock:empty { display: none; }

.finder__dock:not(:empty) {
  display: flex;
  align-items: center;
  height: 100%;
  width: var(--finder-dock-width);
  flex: 0 0 var(--finder-dock-width);
  margin-left: 10px;
  padding-right: 10px;
}

.finder__dock:not(:empty) .finder__box {
  width: 100%;
  max-width: none;
  padding: 1px 3px 1px 12px;
  box-shadow: 0 2px 10px rgb(31 35 40 / 0.12);
}

.finder__dock:not(:empty) .finder__input { padding-block: 6px; }

.finder__dock:not(:empty) .finder__submit { padding-block: 6px; }

/* 普通页面给同一只 dock 一个稳定宽度；搜索页滚动吸顶时仍由 `search.js` 按实际空位量。 */
.finder__dock.masthead__search {
  --finder-dock-width: clamp(200px, 25vw, 340px);
  margin-left: auto;
}

/* 有常驻搜索框时，右边只留正常间距；搜索页没有它，个人中心继续靠自己的 auto margin 贴右。 */
.finder__dock.masthead__search + .masthead__account { margin-left: 0; }

/*
 * 右上角那一个。它不在 `.masthead__nav` 里，所以那一排放不下时它不参与横向滚动 ——
 * 「个人中心」是读者自己的东西（收藏眼下是它的全部，账号将来长在同一个位置上），从来
 * 不是又一个板块。
 *
 * 贴右靠的是 `margin-left: auto`：tab 挤满一行时那个 auto 是 0，它照旧紧跟在滚动区
 * 右边、仍在这一行最右端，所以两种宽度下都不用第二条规则。顶栏只留头像，固定成一格
 * 48px 的方位；完整名称在链接的 `title` 和 `aria-label` 里。它也是这一行里唯一一个和
 * 品牌那一格对称的东西（那边 `border-right`，这边 `border-left`）。
 */
.masthead__account {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 100%;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
  border-left: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted-foreground);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}

.masthead__account:hover { color: var(--primary); }

.masthead__account--active { color: var(--primary); font-weight: 600; }

/* 头像那一格：一个圆里一个人形（`::before` 是头，`::after` 是肩）。**它是一个有尺寸的
 * 圆而不是一段文字**，所以登录之后往里塞用户名首字母或者一张图，这一行的高度和右边那
 * 两个字的位置都不用动。 */
.masthead__avatar {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--secondary);
  overflow: hidden;
}

.masthead__avatar::before,
.masthead__avatar::after {
  content: '';
  position: absolute;
  left: 50%;
  background-color: var(--muted-foreground);
  transition: background-color .15s;
}

.masthead__avatar::before {
  top: 4px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
}

.masthead__avatar::after {
  top: 13px;
  width: 13px;
  height: 9px;
  margin-left: -6.5px;
  border-radius: 7px 7px 0 0;
}

.masthead__account:hover .masthead__avatar { border-color: var(--primary); }

.masthead__account:hover .masthead__avatar::before,
.masthead__account:hover .masthead__avatar::after,
.masthead__account--active .masthead__avatar::before,
.masthead__account--active .masthead__avatar::after {
  background-color: var(--primary);
}

.masthead__account:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}

.body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/*
 * A column rather than a plain block so the footer can take `margin-top: auto`
 * and sit at the bottom of the viewport on a thin page — a 404 or a day with
 * two reports would otherwise leave it floating mid-screen. The children keep
 * their own height: this is a scroll container, and the default shrink would
 * squeeze a long day into it instead of letting it overflow.
 */
.main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  /* The document never scrolls — `.shell` is exactly one viewport tall and this
   * is the only scroller — so both the smooth jump and the timeline that
   * reveals `.to-top` have to be declared here rather than on `html`. */
  scroll-behavior: smooth;
  scroll-timeline-name: --main;
}

.main > * { flex-shrink: 0; }

/* The target of `.to-top`. It has no height and nothing in it: an anchor needs
 * an element to aim at, and every other candidate is a page's own first block,
 * which differs from template to template. */
.top-anchor { height: 0; }

/* --- Calendar sidebar ----------------------------------------------------- */

.calendar {
  width: var(--sidebar);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background-color: var(--card);
  overflow: hidden;
}

.calendar__section {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}

.calendar__section + .calendar__section { padding-top: 12px; }

/* 只画年月的那一档（公司索引和行业目录那两层，见 `render.months_only`）：日格子那一块不在了，月份
 * 那条分隔线下面就是一片空白，一条分开不了任何东西的线。完整的那一档最后一个孩子是
 * `.calendar__days`，所以这条碰不到它。 */
.calendar__section:last-child { border-bottom: 0; }

.calendar__label {
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.calendar__cell {
  padding: 5px 0;
  font-size: 11px;
  text-align: center;
  text-decoration: none;
  font-weight: 400;
  border: 1px solid color-mix(in srgb, var(--border) 58%, transparent);
  border-radius: 6px;
  background-color: color-mix(in srgb, var(--background) 45%, transparent);
  color: var(--foreground);
  transition: background-color .14s, border-color .14s, color .14s;
}

.calendar__cell:hover {
  border-color: color-mix(in srgb, var(--border) 82%, transparent);
  background-color: var(--secondary);
}

.calendar__cell--year {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--muted-foreground);
}

.calendar__cell--active {
  font-weight: 600;
  border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
  background-color: color-mix(in srgb, var(--primary) 8%, var(--card));
  color: color-mix(in srgb, var(--primary) 78%, var(--foreground));
}

.calendar__cell--empty {
  border-color: transparent;
  background-color: transparent;
  color: var(--muted-foreground);
  opacity: 0.3;
}

.calendar__days {
  flex: 1;
  overflow-y: auto;
}

.calendar__month-label { padding: 10px 14px 6px; }
.calendar__month-label .calendar__label { margin-bottom: 0; }

/* 这一行的标题偶尔是链接（公司那两层，点过去是整份行业名单）。它是一句 10px 的小字标签，
 * 不是版面上的一条内容链接 —— 全站没有给裸 `a` 定过样式，不压一下就是 UA 那个蓝色下划线，
 * 而它旁边就是同一行里的英文小字。悬停时才画下划线，够说明它点得动。 */
.calendar__label a {
  color: inherit;
  text-decoration: none;
}

.calendar__label a:hover { text-decoration: underline; }

.calendar__day {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 14px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color .14s, border-color .14s;
}

.calendar__day:hover { background-color: color-mix(in srgb, var(--secondary) 62%, transparent); }

.calendar__day--active {
  background-color: color-mix(in srgb, var(--primary) 6%, var(--card));
  border-left-color: color-mix(in srgb, var(--primary) 38%, var(--border));
}

.calendar__day-number {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  width: 30px;
  flex-shrink: 0;
  color: var(--foreground);
}

.calendar__day--weekend .calendar__day-number {
  color: var(--muted-foreground);
  opacity: 0.6;
}

.calendar__day--active .calendar__day-number {
  color: color-mix(in srgb, var(--primary) 72%, var(--foreground));
  opacity: 1;
}

/* 「周一」是两个汉字，而 `--mono` 里没有中文 —— 落到哪个 fallback、每个字到底多宽，
 * 是按机器算的。原先这里钉着 22px，刚好卡在两个 10px 汉字的边上：字体差一点点它就折成
 * 两行，把那一天的行撑高。所以宽度交给内容，`nowrap` 兜住那条线。右边那个条数是
 * `margin-left: auto` 顶到底的，所以这一格宽一点只是吃掉中间的空隙，行内一格都不挪。 */
.calendar__day-weekday {
  font-size: 10px;
  font-family: var(--mono);
  padding-right: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--muted-foreground);
}

/* 英文简称比中文小一档，和 `.eyebrow .en` 一个道理：它是给同一件事的第二个说法，
 * 同号排下来会和「周一」抢这一格的重量。 */
.calendar__day-weekday .en { font-size: 9px; }

.calendar__day-count {
  margin-left: auto;
  font-size: 10px;
  font-family: var(--mono);
  background-color: var(--muted);
  color: var(--muted-foreground);
  border-radius: 8px;
  padding: 1px 6px;
}

.calendar__day--active .calendar__day-count {
  background-color: color-mix(in srgb, var(--primary) 11%, var(--card));
  color: color-mix(in srgb, var(--primary) 72%, var(--foreground));
}

/* --- 侧栏里不是日期的那几种内容 --------------------------------------------
 *
 * 三层左边挂的不是日历：深度 AI 那两层是研报清单（`render.ai_sidebar`），股东页是同名单
 * 股东、经纪商页是相邻参与者（`render.co_holder_sidebar` / `nearby_broker_sidebar`）。
 * 外壳仍旧是 `.calendar` 和 `.calendar__days` —— 宽屏那个收起开关、手机上那个抽屉、遮罩
 * 和打印时的隐藏规则全部认这两个类。一行也照旧是 `.calendar__day`（活动态那条 `--active`
 * 因此白拿到，`app.js` 里那段居中也是），这里只改「一行里装什么」：日期那一行是横排三格，
 * 这几种是一行标题压着一行小字。
 *
 * **类名叫 `.aside-row` 而不是 `.topic`**：同一套规则现在管着三种内容，按其中一种命名
 * 的话，下一个人加第四种时会以为得再抄一份。 */

.aside-row {
  display: block;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* 标题夹到两行。研报标题量过是 21 到 31 个字（模型写的整句），机构股东名更长（「托管行-
 * 产品全称」那种），侧栏 220px 宽一行装得下十来个 —— 不夹就是一条三四行高的行，十几条
 * 摊开比日历长一倍，而这一块本来就是让读者扫一眼的。读不全的那几条靠 `title`。 */
.aside-row__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--foreground);
}

.calendar__day--active .aside-row__title { font-weight: 600; color: var(--primary); }

.aside-row__meta {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted-foreground);
}

/* --- Page ----------------------------------------------------------------- */

/*
 * `width: 100%` 不是多余的：`.main` 是 column flex 容器，这一块是它的 flex item，而被 stretch
 * 的 item 在 cross 轴上仍旧被自己内容的 min-content 顶着。表格页（公司、股东）里那些宽表的
 * min-content 有九百多 px，于是窗口宽度落在 700 上下时 `.page` 会长到 780，`.main` 整个横向
 * 滚 —— 一横一竖两条滚动条，而 `.co-scroll` 那圈本来就是替这件事准备的。写成 100% 之后宽度
 * 从容器算出来（definite），min-content 不再参与，宽表回到它自己那条横向滚动区里。
 * 只在窄窗口上看得见，所以本机最大化着开发是测不出来的。
 */
.page {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 28px 64px;
}

.page__header {
  margin-bottom: 26px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--foreground);
}

.page__eyebrow { margin-bottom: 6px; }

/*
 * 页头上那两个控件（「导出 PDF」和收藏）落在 eyebrow 这一行的右端 —— 四类资料页加深度
 * AI 那一层，五处的落点必须是同一个，各摆各的就是读者在两页之间要重新找一次它。
 *
 * **它们原先跟标题并排，那一行装不下。** 标题是 34px 的大字，研报那 31 篇又是模型写的
 * 整句（21 到 31 个字），排下来必然两行；两个小控件挤在它右端只有两种结果，要么把标题
 * 压窄，要么自己掉到第二行独占一整行的高度，而它们加起来还不到半行内容。eyebrow 这一
 * 行反过来是 10px 小字、右边天然空着，装得下，而它讲的也正是「这一页是什么」这一档的
 * 东西。**这不是「绝对定位到页头右上角」那个旧方案**：那个会在窄屏上压住这行小字，而
 * 这四页的 eyebrow 长短差得很远（公司页那行装着代码、市场、板块和行业）；这里它是流内
 * 的一个 flex item，文本让得开。
 *
 * **判据是模板里那个修饰类而不是 `:has()`。** 这一行的内容本来就得包一层（见下条），
 * 模板既然在改，就让它明说，不必赌浏览器支不支持。
 *
 * **`align-items: center` 而不是基线。** 这一行的字只有 10px 而按钮里的是 12.5px，
 * 按基线对齐时那个二十几像素高的框会整个往下坠、压到底下的标题上。
 */
.page__eyebrow--tools {
  display: flex;
  align-items: center;
  gap: 0 10px;
}

/*
 * **这一行的文本必须自己包成一个 item。** 不包的话，`600519.SH · A股 · 主板 · 白酒`
 * 和旁边那个 `<span class="en">` 会各成一个匿名 flex item，而 flex 把它们中间那个空白
 * 丢掉 —— 页面上是「白酒Company Profile」贴在一起，两处都不报错。包起来之后它内部仍是
 * inline 流，空格和换行全对。
 *
 * `min-width: 0` 解掉 flex item 那个 min-content 下界，好让长的那几行在自己内部换行而
 * 不是把按钮顶出去；不换行（容器默认 `nowrap`）正是这次要的 —— 按钮掉下去就回到了它
 * 原先在标题行上的样子。
 */
.page__eyebrow-main { min-width: 0; }

/* 收缩的只能是文本。这两个默认也带着 `flex-shrink: 1`，于是窄一点的视口上「导出 PDF」
 * 四个字自己折成两行、按钮胖一圈，把这一行整个顶开。 */
.page__eyebrow--tools .co-print,
.page__eyebrow--tools .bookmark { flex: none; }

.page__title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
}

/*
 * 股东页上那些一百来个字的名字（基金的「托管行-产品全称」写法）。34px 排下来是五行大字，
 * 摘要和第一节整个被顶出屏幕。判据在模板里（`page__title--long`，按名字长度），因为它是
 * 版式而不是这一页说什么话。`break-word` 是给没有空格的那些长英文名兜底的。
 */
.page__title--long {
  font-size: 22px;
  letter-spacing: -0.3px;
  overflow-wrap: break-word;
}

/*
 * 标题旁边那个同级的入口（股东索引上的「经纪商」，港股公司页上的「经纪商细节追踪」）。
 * 基线对齐而不是垂直居中：两个都是标题，让它们的字坐在同一条线上；`flex-wrap` 让窄屏上
 * 它掉到下一行而不是把主标题压窄。主标题自己带着 `margin-bottom`，所以行间距只给横向
 * 那一档。
 */
.page__titles {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 16px;
}

.page__title-alt {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--muted-foreground);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .12s, border-color .12s;
}

.page__title-alt:hover { color: var(--primary); border-bottom-color: var(--primary); }

.page__title-alt .en { font-size: 0.8em; }

/*
 * 「导出 PDF」——四类资料页（公司、股东、经纪商、持股变化）加深度 AI 研报页，页头上那个
 * 按钮调的是浏览器自己的打印，纸上的样子全在文件末尾那段 `@media print` 里
 * （macro 在 `_print.html`）。
 *
 * **默认不存在，`html.js` 才让它出现**，和收藏开关一个方向：脚本被拦下时这里是空的，
 * 而不是一个点了没反应的按钮，而那种浏览器本地一定测不出来。
 *
 * 五类详情页都摆在 eyebrow 那一行的右端而不是标题旁边，也不是页头右上角 —— 推导写在
 * `.page__eyebrow--tools` 上面。研报页只把眼前文案收成 `pdf`，完整说明仍在 `title`。
 *
 * **四类资料页靠右靠的是 `margin-left: auto`**，它同时把后面那个收藏一起带过去，所以
 * 收藏必须排在它后面：两个都带 auto，它们就分居两头了。**别照抄到 byline 那种紧凑行上**，
 * 那边同一个写法的后果是多出一条看着像空行的东西（见 AGENTS.md「样式」里那条）。
 */
.co-print { display: none; }

.js .co-print {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 3px 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--muted-foreground);
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}

.js .co-print:hover { color: var(--primary); border-color: var(--primary); }

.js .co-print:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.page__title-en {
  display: inline-block;
  margin-left: 0.35em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.42em;
  letter-spacing: 0.04em;
  vertical-align: middle;
  color: var(--muted-foreground);
}

.page__lede {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted-foreground);
}

.page__lede--en {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.92;
}

/* --- Day pager ------------------------------------------------------------ */

.pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.pager > :first-child { justify-self: start; }

.pager__today { justify-self: center; }

.pager > :last-child { justify-self: end; }

.pager__step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background-color: var(--card);
  font-size: 13px;
  color: var(--foreground);
  text-decoration: none;
  transition: color .12s, border-color .12s;
}

.pager__step:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.pager__step--end {
  border-style: dashed;
  background-color: transparent;
  color: var(--muted-foreground);
}

.pager__date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-foreground);
}

.pager__step:hover .pager__date { color: var(--primary); }

/*
 * 屏幕两侧那对翻页箭头（`_daynav.html`），**只在手机上**（放出来的规则在文件末尾那段
 * 窄屏里）。宽屏不需要它：`.pager` 那一行在页面顶上，鼠标滚回去是一下的事，而键盘和
 * 侧栏日历在那边都在手边。手机上翻回顶部要划好几屏，日历还锁在抽屉里。
 *
 * `position: sticky` 而不是 `fixed`：fixed 会把它钉在整个视口上，而手机上侧栏是一个
 * 滑出来的抽屉 —— 抽屉推开时页面那一半是缩着的。sticky 的包含块是 `.main`，也就是
 * 正文自己那一栏，两种状态下都不用再算一遍。`top: 50%` 里的百分比相对滚动容器的高度，
 * 也就是视口中线。
 *
 * 高度是 0：它是 `.main` 的一个 flex item，占了高度就会把正文往下推。两个箭头因此
 * 绝对定位（sticky 自己就是定位元素），`translateY(-50%)` 把它们骑在那条线上。
 */
.daynav {
  position: sticky;
  top: 50%;
  /* 抽屉和它那层遮罩之下，和 `.to-top` 一个道理：页面被压暗的时候，浮在上面的按钮
   * 看着还是活的。 */
  z-index: 5;
  height: 0;
  /* 一条零高度的横带，本来也挡不住什么；写出来是因为它铺满整个 `.main` 的宽度。 */
  pointer-events: none;
  display: none;
}

/*
 * 贴着屏幕边的半圆，不是一个整圆：手机上正文两侧只有 16px 留白（`.page` 在这一档的
 * padding），一个 40px 的圆钮会压掉行首两个字。24px 宽、外侧切平之后它只探进正文 8px，
 * 半个字都不到 —— 阅读器那套做法。
 *
 * 也不能靠负的 `left` 把整圆藏一半出去：`.main` 是滚动容器（`overflow-y: auto` 把
 * `overflow-x` 一起变成 auto），伸到边界外的东西要么被裁掉，要么换来一条横向滚动条。
 */
.daynav__step {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 46px;
  border: 1px solid var(--border);
  background-color: var(--card);
  box-shadow: 0 2px 10px rgba(26, 23, 20, .12);
  font-size: 13px;
  line-height: 1;
  color: var(--muted-foreground);
  text-decoration: none;
  /* 正文才是这一页的主角。触屏上没有 hover 可以等，所以它常态就是半透明的 ——
   * 按下去那一下才实起来（`:active`），那也是这里唯一能给的反馈。 */
  opacity: 0.5;
  transition: opacity .12s, color .12s, background-color .12s;
}

.daynav__step:active {
  opacity: 1;
  color: var(--primary);
  background-color: var(--background);
}

.daynav__step--prev {
  left: 0;
  border-left: 0;
  border-radius: 0 23px 23px 0;
}

.daynav__step--next {
  right: 0;
  border-right: 0;
  border-radius: 23px 0 0 23px;
}

/*
 * 「来路」那一对（`api/static/trail.js` 自己建出来的），借的是上面那套贴边半圆 —— 摆出来
 * 是同一个东西，只是这一对翻的不是日期而是读者刚才那份名单。
 *
 * **它两档都在，`.daynav` 反过来只在手机上。** 那条推导是「宽屏有 `.pager` 和侧栏日历，
 * 翻一天在手边」，而挂它的那三类页面一样都没有：那几层的侧栏装的压根不是日期
 * （`render.peer_sidebar` / `co_holder_sidebar` / `nearby_broker_sidebar`，都是同层的
 * 邻居而不是「下一家」这条序列），三处页面顶上也都没有任何一条通往下一家的链接 ——
 * 这一对就是它唯一的入口。
 *
 * 宽屏上它贴的是 `.main` 的两侧而不是正文列，中间隔着一段空白。那是刻意的：780px 那一栏
 * 是读的地方，翻页钮压上去只会跟表格抢边。
 */
.trail { display: block; }

/* 宽屏有 hover 可以等，那比按下去才知道自己点没点中要好一档。触屏上这条不生效，
 * `:active` 仍旧是那一侧唯一的反馈。 */
@media (hover: hover) {
  .trail__step:hover {
    opacity: 1;
    color: var(--primary);
    background-color: var(--background);
  }
}

/*
 * 宽屏上它挪到正文列旁边，造型也跟着从贴边半圆换成整圆 —— 那个切平的外沿是给屏幕边缘
 * 准备的。1400px 的视口下正文两侧各有一百九十多像素的空白，箭头贴在 `.main` 最外沿就
 * 离得太远，半透明的它在那儿基本不会被注意到，而这一层没有第二个翻页入口。
 *
 * 偏移相对 `.daynav` 自己的宽度算，也就是正文列居中的那个宽度 —— 侧栏展开还是收起
 * 都不用再算一遍。断点取得比它真正需要的宽（临界在 1100 上下）：那个 `max()` 在算出
 * 负数时会把箭头弹回贴边，而那时它已经是整圆了，压进正文十几个像素。
 */
@media (min-width: 1180px) {
  .trail__step {
    width: 40px;
    height: 40px;
    border-radius: 20px;
  }

  /* 半宽 390 + 一个 40 宽的钮 + 8px 间隙。 */
  .trail .daynav__step--prev {
    left: max(0px, calc(50% - 438px));
    border-left: 1px solid var(--border);
    border-radius: 20px;
  }

  .trail .daynav__step--next {
    right: max(0px, calc(50% - 438px));
    border-right: 1px solid var(--border);
    border-radius: 20px;
  }
}

/*
 * A full-bleed band, not a column: it once ran at the width of the text with
 * no rule above it, which on a short page left the boilerplate looking like
 * one more paragraph of the archive. The rule and the tint span the whole
 * main area, so it reads as a different surface rather than as a second
 * border under the last report — those are 64px apart and never touch.
 */
/*
 * 页脚之前的空隙。要的仍旧是「页脚不和正文同屏」，但那句话在长短两种页面上要的高度
 * 完全不同：内容不足一屏时它得把页脚顶出视口，内容早就滚了几屏时正文末尾和页脚之间
 * 再空一整屏就只是一段谁都不会读的空白。
 *
 * 所以高度交给 flex：48px 是基准，`.main` 里剩下的空间（只有内容不足一屏时才有）全部
 * 分给它，于是短页面上页脚落在视口下沿之外 48px，长页面上就只有这 48px。写死
 * `min-height: 100%` 是不看内容的那一种，也正是这次要改掉的。
 *
 * 不能写成 vh：视口还要减掉顶栏，大屏上算出来永远差一截，而这只在别人的屏幕上看得
 * 出来。
 */
.footer-gap { flex: 1 0 48px; }

/* 页脚这里不能用 `margin-top: auto`：flex 的自动外边距先于 `flex-grow` 吃掉剩余空间，
 * 有它在，上面那条 grow 永远分不到东西，短页面上页脚就贴回视口底部露出来了。 */
.footer {
  border-top: 1px solid var(--border);
  background-color: var(--card);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.footer__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 14px 28px 16px;
}

.footer p { margin: 0; }

.footer p.footer__en {
  margin-top: 1px;
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.9;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}

.footer__links--timeline {
  align-items: baseline;
  gap: 4px 14px;
}

.footer__links--timeline > span:first-child {
  font-weight: 600;
  color: var(--foreground);
}

.footer__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.footer__link:hover { color: var(--primary); border-bottom-color: var(--primary); }

/*
 * The ad slot reserves its height here, before anything fills it: it sits on
 * every page in the archive, so a container that grows after paint would move
 * the layout on all of them at once. Same column as the text so the page keeps
 * one measure.
 */
.ad {
  max-width: 780px;
  min-height: 280px;
  margin: 0 auto 28px;
  padding: 0 28px;
}

.page__notice {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 3px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.9;
}

/* --- 工具类 --------------------------------------------------------------- */
/*
 * 搜索页那一整套（`.finder*`）搬去了 `api/static/search.css`，只有那一页加载它 ——
 * 这份样式表的哈希写在每一份 HTML 的 `<link>` 里，一页专用的规则留在这儿，改一次就是
 * 三万六千个文件的 diff。判据见那个文件开头。
 *
 * 留下的是这个工具类：它是**通用**的，只是眼下唯一的用处在搜索页上（那几个范围输入框），
 * 而且它不会变 —— 上面那笔账针对的是还在动的东西。
 */

/* 给读屏和键盘留着、但不占版面的东西。`display: none` 会把它们一起拿走。 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page__crumb {
  color: var(--muted-foreground);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.page__crumb:hover { color: var(--primary); }

/* 公司页上那几条研报：标题是完整句子，两条并排读者分不出哪条是哪篇。
 * 占满一行的是这个壳，crumb 自己仍按文字宽度画下划线 —— 写在 `a` 上会把
 * `border-bottom` 拉成通栏，看上去像多了一道分割线。 */
.page__links-row { flex-basis: 100%; }

/* 一篇完整研报比下面那几条行情深链重一档：标题回到正文色并加粗，开头那枚标记用当前项
 * 的红色。只改公司页明确挂上的 modifier，不让别处所有 `.page__crumb` 一起变重。 */
.page__crumb--ai {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  border-bottom-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.page__ai-label {
  display: inline-block;
  margin-right: 8px;
  padding: 0 6px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-radius: 2px;
  background-color: color-mix(in srgb, var(--primary) 9%, transparent);
  color: var(--primary);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .04em;
  vertical-align: 1px;
}

/* A note sitting among the crumbs. No underline: the border on `page__crumb` is
 * what says the rest of the row is clickable. */
.page__note { color: var(--muted-foreground); }

/*
 * 顶栏的「财经时光机」进入财经首页后，这一排在同一天的财经、联播和市场之间切换。
 * 它排在日页面标题之前，是三种内容的主入口，所以三格铺满正文列并用低对比底色标出当前项；
 * 日期不齐时禁用项仍占着原位，避免休市日整排左右跳。链接是同层导航，所以不另开标签。
 */
.finance-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 8px 0 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 5px;
  background-color: var(--card);
}

.finance-timeline__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 9px 16px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}

.finance-timeline__item:last-child { border-right: 0; }

a.finance-timeline__item:hover,
a.finance-timeline__item:focus-visible {
  color: var(--primary);
  background-color: var(--secondary);
}

.finance-timeline__item--active {
  color: var(--foreground);
  background-color: var(--secondary);
  box-shadow: inset 0 -3px 0 var(--foreground);
  font-weight: 700;
}

.finance-timeline__item--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/*
 * 频道导航升成主入口之后，日期标题退一档但仍保留 H1 的文档身份。只收这三种日页面，别动
 * 公司、股东和研报页那些真正作为首要入口的标题。
 */
.page__header--timeline .page__title {
  font-size: 28px;
  letter-spacing: -0.6px;
}

/* The same day on the sibling sites, sitting under the title. */
.page__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 10px 0 0;
  font-size: 13px;
}

/* --- About ---------------------------------------------------------------- */

.about { margin-bottom: 26px; }

.about__heading {
  margin: 0 0 10px;
  padding-bottom: 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.about__heading .en {
  margin-left: 0.4em;
  font-family: var(--sans);
  font-size: 0.7em;
  font-weight: 500;
}

.about__text {
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: var(--secondary-foreground);
  text-align: justify;
}

.about__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about__item {
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--secondary-foreground);
}

.about__item + .about__item { border-top: 1px solid var(--border); }

.about__link {
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.about__link:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* --- Saved: local bookmarks ----------------------------------------------- */

/*
 * 收藏是全站唯一需要脚本的交互，所以整套控件默认**不存在**，`app.js` 在 <html> 上
 * 加的那个 `.js` 才让它们出现。反过来写 —— 默认可见、没脚本时藏起来 —— 会在脚本被
 * 拦下的浏览器上留一排点了没反应的按钮，而且本地一定测不出来。这和 `.to-top` 那条
 * 「不支持就保持朴素的样子」是同一个方向：坏掉的那一侧必须是安静的那一侧。
 */
.bookmark,
.saved__tools {
  display: none;
}

.bookmark {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  line-height: 1;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color .12s, opacity .12s;
}

.js .bookmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 两种状态只差 `aria-pressed` 一个属性，星形本身在这里。按钮里因此一个字都不用写，
 * 脚本也就只要改那一个值 —— 而那正是无障碍那一侧要读的东西。 */
.bookmark::before { content: "☆"; }
.bookmark:hover { color: var(--primary); }
.bookmark[aria-pressed="true"] { color: var(--primary); }
.bookmark[aria-pressed="true"]::before { content: "★"; }

/*
 * 鼠标移到条目上才淡入，但**已经收藏的那几条一直亮着**：否则读者想在一页二十条里
 * 认出自己收过哪些，只能一条条划过去。
 *
 * 只在真有指针的设备上藏起来。触屏没有 hover，`opacity: 0` 在那里是一个永远看不见
 * 却点得着的按钮。
 */
@media (hover: hover) {
  .js .bookmark { opacity: 0; }

  .js .report:hover .bookmark,
  .js .flash:hover .bookmark,
  .js .stock:hover .bookmark,
  /*
   * 页头 eyebrow 上那一个反过来一直亮着：那一行不是一份名单里的一条，读者悬停不了
   * 「这一页」，而上面那几条规则等的正是一个条目容器。它旁边就是常显的 PDF 导出按钮，
   * 一个默认看不见的开关摆在那儿，读者压根不知道这一页收得下来。
   */
  .js .page__eyebrow .bookmark,
  .js .bookmark:focus-visible,
  .js .bookmark[aria-pressed="true"] { opacity: 1; }
}

/* 报道和个股的标识行本来就是 flex，开关坐在行尾。个股那行按基线对齐，一个方形按钮
 * 在那上面会往下掉半个字。 */
.report__byline .bookmark,
.stock__head .bookmark { margin-left: auto; }

.stock__head .bookmark { align-self: center; }

/*
 * 财经条目的第一行是纯 inline 流 —— 来源、时间和标题共用一行正是那个版式的全部
 * 意义 —— 放一个按钮进去，它就跟着标题末尾走，长标题换行时落在最后一行的行尾。
 * 所以这一个绝对定位到右上角，右侧那条留白只在 `.js` 下给：脚本没跑起来时按钮
 * 不存在，那条空白也就不该占着地方。
 */
.flash { position: relative; }
.js .flash { padding-right: 26px; }

.flash .bookmark {
  position: absolute;
  top: 12px;
  right: 0;
}

/* --- Saved: 个人中心那一页 ------------------------------------------------- */

/*
 * 收藏那一节的标题。这一页原先整页就是收藏（标题里写的就是「我的收藏」），那时不需要它；
 * 改名成「个人中心」之后收藏是它的一节，注册和登录将来并排长在旁边 —— 不给这一行，
 * 那一天读者没有办法看出哪一块是哪一块。**它不跟着 `.js` 走**：下面那份列表容器里
 * 有一句静态的占位文字，脚本被拦下时这一节仍旧在场，只是空的。
 */
.saved__heading {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* 英文那半截照 `.about__heading .en` 那份写全，不挂进文件开头那批 `.en` 里：那一批是
 * 0.85em，19px 的标题旁边就是 16px 的英文，而这里它是中文的第二说法。 */
.saved__heading .en {
  margin-left: 0.4em;
  font-family: var(--sans);
  font-size: 0.68em;
  font-weight: 500;
  color: var(--muted-foreground);
}

.js .saved__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.saved__tool {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background-color: var(--card);
  font-family: inherit;
  font-size: 13px;
  color: var(--secondary-foreground);
  cursor: pointer;
  transition: color .12s, border-color .12s;
}

.saved__tool:hover { color: var(--primary); border-color: var(--primary); }

.saved__item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.saved__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

/* 同一枚标签在三个板块的条目上长得一样，因为收藏列表里三个板块是混着的 —— 这一枚
 * 是读者认出「这条是从哪来的」的唯一线索。 */
.saved__label {
  padding: 2px 7px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}

.saved__date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-foreground);
}

.saved__remove {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color .12s;
}

.saved__remove:hover { color: var(--primary); }

.saved__title {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--foreground);
  text-decoration: none;
}

.saved__title:hover { color: var(--primary); }

.saved__empty,
.saved__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted-foreground);
}

/* 那两句「只存在这台浏览器里」的英文那一半，照 `.page__lede--en` 那份写：它是中文的第二
 * 说法，同号排下来两段一样重。它必须排在上面那条之后 —— 两边都是一个类，谁赢由源序定。 */
.saved__note--en {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.92;
}

.saved__note-link {
  color: var(--secondary-foreground);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.saved__note-link:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* --- Keyword index -------------------------------------------------------- */

/* `scroll-margin-top` 是给股东索引页那排跳转用的（`co-toc`），理由和 `.co-section`
 * 那条一样：不写的话跳过去标题正好贴在顶栏下沿。关键词索引页上没有锚点指进来，这一条
 * 在那边不起作用。 */
.tagset {
  margin-bottom: 26px;
  scroll-margin-top: 12px;
}

.tagset__label {
  margin-bottom: 10px;
  padding-bottom: 6px;
  font-weight: 600;
  letter-spacing: 1.5px;
  border-bottom: 1px solid var(--border);
}

.tagset__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tagset__more {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
}

.tag {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background-color: var(--card);
  font-size: 13px;
  color: var(--foreground);
  text-decoration: none;
  transition: color .12s, border-color .12s;
}

.tag:hover { color: var(--primary); border-color: var(--primary); }

/*
 * 板块 / 股东索引上那个数字。关键词索引旁边没有，因为那个数量的是标注器跑到哪一步；
 * 这里数量的是收盘或披露之后就定死的事实，所以可以印。用 `--muted-foreground` ——
 * `--muted` 是浅色底，写在 card 上几乎看不见。
 */
.tag__count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-foreground);
}

/*
 * 股东索引上的名字长到 55 个字 —— 基金那种「托管行-产品全称」的写法（景顺长城基金-中国
 * 人寿保险股份有限公司-分红险-…）。不夹住的话一个 chip 就宽到独占一行再折成三行，那一页
 * 读起来不再是一份目录。夹掉的部分在 `title` 里，悬停就有，和表格里那些长格子同一个办法。
 *
 * 这一档单独给股东用，关键词和板块那两页不进来：那边最长七八个字，夹反而会让 chip 宽度
 * 参差。`align-items` 跟着改成 center 是必须的 —— `overflow: hidden` 让名字那个盒子变成
 * 滚动容器，基线于是从它的下边缘合成，右边那个数字会莫名其妙地往上跳一截。
 */
.tagset__list--wide .tag {
  max-width: 22em;
  align-items: center;
}

.tagset__list--wide .tag__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Between the week's keywords and the recurring ones. */
.tagsplit {
  height: 0;
  margin: 4px 0 26px;
  border: 0;
  border-top: 1px solid var(--border);
}

/* --- Keyword hit list ----------------------------------------------------- */

.hits__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  padding-bottom: 10px;
}

.hits__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.hits__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted-foreground);
}

.hits__years {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hits__year {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color .12s, border-color .12s;
}

.hits__year:hover { color: var(--primary); border-color: var(--primary); }

.hit {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

/* The whole date on one line at the size of the titles beside it: a day here is
 * a label on a row, not a heading, and blowing up the day number made the
 * column read as the important half of the row. */
.hit__date {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.95;
  color: var(--muted-foreground);
  text-decoration: none;
  white-space: nowrap;
}

.hit__date:hover { color: var(--primary); }

.hit__list {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.hit__list li + li { margin-top: 6px; }

.hit__link {
  font-size: 14px;
  line-height: 1.65;
  color: var(--foreground);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.hit__link:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* --- 板块页上的一天 -------------------------------------------------------- */

/*
 * 板块页一天一组，组里每条记录用的是市场日页面那一套 `.stock`（标识行、数字行、涨停
 * 原因）。所以这里只有那条日期表头 —— 一条记录在两页上长得一样，是因为它们真的共用
 * 同一批规则，而不是抄了两份。
 */
.plate-day + .plate-day { margin-top: 8px; }

.plate-day__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 16px 0 0;
}

.plate-day__date {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .12s, border-color .12s;
}

.plate-day__date:hover { color: var(--primary); border-bottom-color: var(--primary); }

.plate-day__meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-foreground);
}

/* --- Table of contents ---------------------------------------------------- */

.contents {
  margin-bottom: 30px;
  padding: 14px 18px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background-color: var(--card);
}

.contents__label { margin-bottom: 10px; }

.contents__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 7px 20px;
}

.contents__item {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.contents__index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-foreground);
  padding-top: 2px;
  flex-shrink: 0;
}

.contents__link {
  font-size: 13px;
  line-height: 1.6;
  color: var(--foreground);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contents__link:hover { color: var(--primary); }

/* --- Report --------------------------------------------------------------- */

/* 一条报道占满整列。序号那道 44px 的槽已经去掉了：它在窄屏上吃掉的是正文的宽度，
 * 而这个存档的正文是每行几十个汉字，少 44px 就是每行少四五个字、整篇多出好几行。
 * 序号本身没丢，本期目录那一列还印着它，而那一页上它是真的用来数第几条的。 */
.report {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 16px;
}

/* `flow-root` 而不是什么都不写：缩略图是浮动的，而它比一条短报道的正文高。这一层原先
 * 是网格的一格，网格项自带独立的格式化上下文，浮动因此被关在里面；网格撤掉之后要显式
 * 把它要回来，不然图片会漏到下面那条报道上，而只有短报道才看得出来。正文照旧绕排 ——
 * 关住浮动和绕排浮动是两件事，坏的那一种是给 `.report__head` 建上下文（见下条）。 */
.report__main { display: flow-root; }

/*
 * A plain block, never a grid or a flex container: those would establish a
 * formatting context and step aside from the floated thumbnail instead of
 * letting the title wrap around it.
 */
.report__head { margin-bottom: 14px; }

.report__byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.report__source {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 2px;
  font-family: var(--mono);
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}

.report__time {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted-foreground);
}

.report__origin {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted-foreground);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.report__origin:hover { color: var(--primary); }

.report__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--foreground);
}

.report__thumb {
  float: right;
  width: 198px;
  height: 117px;
  margin: 2px 0 12px 20px;
  border-radius: 2px;
  overflow: hidden;
  background-color: var(--muted);
  border: 1px solid var(--border);
}

.report__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*
 * The tags a report carries, each linking to that keyword's page. This is the
 * archive's internal link network: a day page reaches every theme it covers.
 */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chips__tag {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 11px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color .12s, border-color .12s;
}

.chips__tag:hover { color: var(--primary); border-color: var(--primary); }

.report__brief {
  margin: 0 0 16px;
  padding: 10px 14px;
  background-color: var(--card);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--secondary-foreground);
}

/*
 * 15px / 1.5，和财经条目同一个数。这里原来是 2.0，那是照着「一屏一篇散文」定的，可这一页
 * 一天二十条报道，每条自己也就几段 —— 行距撑开之后一条报道要滚两屏才读得完，读者
 * 大部分时间花在翻页上。段间距跟着按同一个比例收（16px 对 30px 的行高约是半行，
 * 22.5px 的行高下就是 12px），不然段落之间的那道缝会比原来还显眼。
 *
 * 挤开的是**字与字**，不是行与行（`letter-spacing`，全站正文同一个数，见
 * `.stock__reason` 那条）：**汉字是满格的方块**，一行字排下来字身之间没有西文那些天然的
 * 空隙，密到一定程度就是一片灰。这一条比抬行距便宜 —— 行距一动，一条报道的高度、一屏
 * 装得下几条、折叠那个 250 字的门槛在版面上是多少行，全都跟着变。
 */
.report__body {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--foreground);
}

.report__body p {
  margin: 0 0 12px;
  text-align: justify;
}

.report__body p:last-child { margin-bottom: 0; }

.hits__note .en,
.page__notice .en {
  display: block;
  margin-top: 4px;
  margin-left: 0;
  font-size: 0.95em;
}

/* --- Finance tabs --------------------------------------------------------- */

/*
 * 财经日页面上那两块内容（当天精选 / 当天的财联社付费专题）。切开它们的是 `:target`：
 * 标题旁边那个按钮是一条 `#` 链接，两块的每一条都在 markup 里，收起来的只是显示 ——
 * 所以「内容不依赖脚本」那条底线不受影响，见 AGENTS.md。
 *
 * 切换那一整套关在 `@supports` 里，因为它整个建在 `:has()` 上：**`:target` 一个人不够，
 * 条目自己也是锚点。** 读者从收藏点回一条财联社的条目，hash 是 `#c123` 而不是 `#cls`，
 * 那时只认面板的规则不匹配，他会落在精选那一块上，自己收的东西一条都看不见。面板顶上
 * 那个空锚点和里面每一条都带着 `cls-on`，`:has()` 认的是这个。
 *
 * 关在 `@supports` 里而不是让它自己失效，是为了让降级落在**两块都在**那一侧：不支持
 * `:has()` 的浏览器整块跳过，于是两块内容一起显示、两个切换按钮也都在 —— 朴素，但一个
 * 字都不缺。反过来（默认收起，靠 `:has()` 放出来）会在那些浏览器上得到半页空白，而本地
 * 一定测不出来。
 */
.page__tab {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--muted-foreground);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .12s, border-color .12s;
}

.page__tab:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* 方向由伪元素给，不进无障碍树 —— 读屏念到的是「财联社付费专题」，箭头是给眼睛的。 */
.page__tab--cls::after { content: " \2192"; }
.page__tab--picks::before { content: "\2190 "; }

/* 切换的落点，零高度。理由在 `finance.html` 里那段注释上。 */
.tab-anchor { display: block; height: 0; }

/* 面板顶上那句话和第一条之间要有气口，`page__lede` 自己只带上边距。 */
.tab-panel__lede { margin-bottom: 14px; }

@supports selector(:has(*)) {
  .tab-panel--cls { display: none; }
  .page:has(.cls-on:target) .tab-panel--cls { display: block; }

  /* `.page--find` 要压过这一条，所以判据写在这里而不是另给一条更高特异性的规则：那是
   * `fold.js` 在查找栏打开时加上的，收起来的那半边是 `display: none`，Ctrl+F 搜不到。 */
  .page:has(.cls-on:target):not(.page--find) .tab-panel--picks { display: none; }
  .page--find .tab-panel--cls { display: block; }

  /* 按钮一次只在场一个，它永远是「去另一块」的那个 —— 所以没有一个当前态要维护，也就
   * 不会出现两个按钮都看着像当前页的样子。 */
  .page__tab--picks { display: none; }
  .page:has(.cls-on:target) .page__tab--cls { display: none; }
  .page:has(.cls-on:target) .page__tab--picks { display: inline; }
}

/* --- Finance flash -------------------------------------------------------- */

/*
 * A finance item is a headline and a two-line summary, so it stays a good deal
 * tighter than a report: no index gutter, no thumbnail column and no fold.
 *
 * The source, the time and the headline share one line, so all three are
 * inline and the title simply wraps under them. The two labels keep their own
 * size and stay unbreakable; only the title reflows.
 */
.flash {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 16px;
  font-size: 17px;
  line-height: 1.5;
}

.flash__time {
  margin-right: 8px;
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted-foreground);
}

/* 点不动的标题前面这一格（「简讯」写在来源里）。字号压到 12px、跟着基线对齐，免得它
 * 比标题还显眼 —— 和搜索结果那一格（`.finder__hit-flag`）同一套，只是那一份住在
 * `search.css` 里。 */
.flash__source {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  vertical-align: 2px;
  white-space: nowrap;
  color: var(--muted-foreground);
}

.flash__title {
  display: inline;
  margin: 0;
  font-family: var(--serif);
  font-size: 1em;
  font-weight: 600;
  color: var(--foreground);
}

/* Same leading as the headline above it, so an item reads as one block rather
 * than as a title with a paragraph of transcript under it. 行距和字距两个数都和存档的
 * 正文一样，理由写在 `.report__body` 上面。 */
.flash__brief {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--secondary-foreground);
  text-align: justify;
}

/*
 * 这条快讯提到的股票，一条最多三只。它比 `.co-name` 又小一档：一条快讯只有两三行高，
 * 这一排是它的第三样东西，得让人一眼看出来它不是正文。
 */
.flash__stocks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.flash__stock {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background-color: var(--card);
  font-size: 12px;
  line-height: 1.6;
  color: var(--secondary-foreground);
  text-decoration: none;
  transition: color .12s, border-color .12s;
}

.flash__stock:hover { color: var(--primary); border-color: var(--primary); }

.flash__stock i {
  margin-left: 5px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--muted-foreground);
}

/* --- Limit-up board ------------------------------------------------------- */

/*
 * A stock's row: an identity line, a line of session figures, then the reason.
 * The reason is the substance — it is the only part a reader cannot get from a
 * quote screen — so it takes the body type while the numbers stay in small
 * mono above it.
 */
.stock {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 16px;
}

.stock__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin-bottom: 7px;
}

.stock__boards {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
  background-color: var(--muted);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

/* A run of boards is the headline fact of the row; a first board is not. */
.stock__boards--run {
  background-color: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}

.stock__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--foreground);
}

.stock__code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-foreground);
}

/* 有资料页的票，代码是那一页的入口；没有页面的仍是一段纯文本，两者只差这条下边线。 */
.stock__code--link {
  color: var(--secondary-foreground);
  text-decoration: none;
  border-bottom: 1px dotted var(--muted-foreground);
  transition: color .12s, border-color .12s;
}

.stock__code--link:hover { color: var(--primary); border-bottom-color: var(--primary); }

.stock__plate {
  font-size: 11px;
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted-foreground);
}

/*
 * 板块 chip 是链接的那一半。不加下划线，靠 hover 时的描边和颜色说明它可点 —— 一只票
 * 常带三个 chip，三条下划线挤在标识行末尾会盖过股票名本身。没有页面的板块保持上面那份
 * 纯文本的样子，两者只差颜色深一档。
 */
.stock__plate--link {
  color: var(--secondary-foreground);
  text-decoration: none;
  transition: color .12s, border-color .12s;
}

.stock__plate--link:hover { color: var(--primary); border-color: var(--primary); }

.stock__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--secondary-foreground);
}

.stock__stat i {
  margin-right: 5px;
  font-style: normal;
  color: var(--muted-foreground);
}

.stock__stat--warn { color: var(--primary); }

/* 13.5px / 1.5 配 .06em 的字距，和财经条目的摘要、存档的正文同一套度量。三个板块的正文
 * 密度必须一致：读者在同一天的三个页面之间来回跳，各定一份就是每跳一次重新适应一遍。
 * 这两个数怎么来的写在 `.report__body` 上面。 */
.stock__reason {
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--foreground);
  text-align: justify;
}

.stock__reason p { margin: 0 0 6px; }
.stock__reason p:last-child { margin-bottom: 0; }

/* The sector's news, shared by every stock on that plate, so it reads as
 * context rather than as this row's own reason. 板块页上它反过来是**一天一份**（同一天
 * 的十几条会重复同一段文字），挂在日期表头下面，但样式是同一份 —— 两处印的是同一段话。 */
.stock__plate-reason,
.plate-day__reason {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--border);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--muted-foreground);
}

.stock__plate-reason p,
.plate-day__reason p { margin: 0; }

/* 日期表头之下，所以它跟着那一天走而不是跟着上一条记录。 */
.plate-day__reason { margin-bottom: 4px; }

/* --- 港股通涨幅榜 ---------------------------------------------------------- */

/*
 * 同一页上的第二块，排在 A 股涨停之后。它没有涨停原因那样的正文，所以一条只有标识行
 * 和数字行 —— 数字行原样复用 `.stock__stats`，两块的度量因此对得上。
 */
.hk {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 2px solid var(--border);
}

.hk__title {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.hk__note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.hk-item {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 16px;
}

.hk-item__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin-bottom: 6px;
}

.hk-item__head .bookmark {
  margin-left: auto;
  align-self: center;
}

/* 涨幅是这一行的头条事实，和 A 股那边的连板数占同一个位置。 */
.hk-item__change {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
  background-color: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}

.hk-item__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--foreground);
}

.hk-item__code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-foreground);
}

.hk-item .stock__stats { margin-bottom: 0; }

/*
 * Long transcripts fold with a checkbox and sibling selectors instead of
 * scripting. The text is always present in the markup, so a crawler that never
 * runs JavaScript still reads the whole day.
 */
.fold__state {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.fold__body {
  /* 四行正文，加上把最后一行淡出去的那层 mask。跟着 `.report__body` 的行高走：
   * 15px × 1.5 = 22.5px 一行，四行 90px，也就是这里的 6em。行高改了这个数要一起改，
   * 不然折叠会切在半行上 —— mask 盖得住，所以坏了不明显。 */
  max-height: 6em;
  /*
   * `clip` rather than `hidden`: hidden makes this a block formatting context,
   * which would push the whole clipped block beside the floated thumbnail
   * instead of wrapping its lines around it. `hidden` stays as the fallback.
   */
  overflow: hidden;
  overflow: clip;
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.fold__state:checked ~ .fold__body {
  max-height: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.fold__toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  padding: 4px 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 3px;
  background-color: var(--card);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-foreground);
  transition: color .12s, border-color .12s;
}

.fold__toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.fold__toggle::after { content: '展开全文 Expand ▾'; }
.fold__state:checked ~ .fold__toggle::after { content: '收起 Collapse ▴'; }

.fold__state:focus-visible ~ .fold__toggle {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* --- Company research ----------------------------------------------------- */

/*
 * A company page is one long stack of tables, which is exactly the shape a
 * reader skims past. Two things carry it: the summary paragraph under the
 * title, which is the only prose on the page and the only part a search engine
 * can read as a topic, and the section index beside it, which is what a reader
 * uses instead of scrolling.
 *
 * The tables themselves are wide — some have twenty columns — and the measure
 * here is 780px. They scroll sideways inside `.co-scroll` rather than shrinking
 * the type, and `.page` keeps its width so the prose stays readable. Squeezing
 * thirty columns into the column would give a table nobody can read on either
 * axis.
 */

.co-summary {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: .06em;
  color: var(--secondary-foreground);
  text-align: justify;
}

.co-summary p { margin: 0 0 6px; }
.co-summary p:last-child { margin-bottom: 0; }

.company-chart__toggle {
  padding: 0;
  font: inherit;
  color: var(--muted-foreground);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.company-chart__toggle::after {
  content: ' ▾';
  color: var(--muted-foreground);
}

.company-chart__toggle[aria-expanded='true']::after { content: ' ▴'; }

/*
 * 东方财富的图片本身是固定的白底行情软件样式，没法从本站改色。这里不给它再造一张
 * 突兀的卡片，只用细边框收住；窄屏按原比例缩小。图片的 src 由 company-chart.js 在
 * 第一次展开时设置；除非读者存过「总是显示」，折起来时不会仅因打开页面就向第三方发请求。
 */
.company-chart {
  width: min(100%, 506px);
  margin-top: 14px;
}

.company-chart__image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.company-chart__source,
.company-chart__status {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--muted-foreground);
}

.company-chart__remember {
  margin-left: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.company-chart__remember input {
  margin: 0 2px 0 0;
  accent-color: var(--primary);
  vertical-align: -1px;
}

.co-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 14px;
}

.co-toc__link {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background-color: var(--card);
  font-size: 12px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color .12s, border-color .12s;
}

.co-toc__link:hover { color: var(--primary); border-color: var(--primary); }

.co-section {
  margin-bottom: 30px;
  /* The section index jumps here; without this the heading lands under the
   * masthead's shadow edge. */
  scroll-margin-top: 12px;
}

.co-section__title {
  margin: 0 0 12px;
  padding-bottom: 7px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

/* 节标题右端那条深链（现在只有港股公司页「经纪商持股」那一节有一条，通往它的持股变化
 * 页）。页头标题旁边另有一条同文案的入口，划到这一节时那条已经滚出去了，所以这里再留
 * 一条。它是**这一节**的入口，所以仍归标题那一行而不是页头那排 crumb。
 *
 * 用 flex 而不是 `float`：标题下面那条 `border-bottom` 要连着走完整行，浮动会让它在
 * 链接底下断开。`baseline` 对齐，因为标题是衬线体、链接是正文体，按盒子对齐两边的字会
 * 差出几个像素。 */
.co-section__title--linked {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.co-section__more {
  flex: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

/* 紧跟在节标题后面那截小字（现在只有持股变化那一页的同期股价）。它是这一节的注解而不是
 * 标题的一部分，所以正文体、不加粗、淡一档；`nowrap` 让它整截一起掉到第二行，而不是从
 * 三个数中间断开。它不走上面那个 `--linked`：那一档是把东西顶到行尾的，而这一截讲的正是
 * 标题说的那一段，贴着标题读才对。 */
.co-section__note {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-foreground);
  white-space: nowrap;
}

/* Two columns of label/value. A value that runs long takes the full row
 * instead of wrapping into a four-word column. */
.co-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin: 0 0 14px;
}

.co-kv__row {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--border);
  font-size: 13px;
  line-height: 1.7;
}

/* Long labels carry their unit ("注册资本（万元）"); which tier a cell lands in is
 * computed from the label width in `company._label_tier`. */
.co-kv__row--wide {
  grid-template-columns: 10em minmax(0, 1fr);
}

.co-kv__row--wider {
  grid-template-columns: 12em minmax(0, 1fr);
}

.co-kv__row--wide dt,
.co-kv__row--wider dt { white-space: nowrap; }

.co-kv__row--full { grid-column: 1 / -1; }

.co-kv dt {
  color: var(--muted-foreground);
  /* The column name sits in `title`; the label must not stretch the grid. */
  overflow-wrap: anywhere;
}

.co-kv dd {
  margin: 0;
  color: var(--foreground);
  overflow-wrap: anywhere;
}

.co-scroll {
  overflow-x: auto;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background-color: var(--card);
}

.co-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.6;
}

.co-table th,
.co-table td {
  padding: 6px 10px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.co-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--secondary);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--secondary-foreground);
  /* 表头折得开，列宽才跟得上格子里的数。`nowrap` 写在上面那条 `th, td` 上，不在这里
   * 覆掉的话，「持股总数（亿股）」八个字撑开的是整列，数字只有四五个。 */
  white-space: normal;
  line-height: 1.3;
  vertical-align: bottom;
}

/*
 * 单位另起一行：它是表头的注解，不是字段名的一部分。拼在同一行里，列宽由表头说了算；
 * 拆开之后列宽回到格子里的数，单位那几个字叠在字段名底下。
 */
.co-table__unit {
  display: block;
  font-weight: 400;
  font-size: 10.5px;
}

/* 同一个位置的第二个来源：表头第二行那个日期（持股变化那一页两端那两列，见
 * `ccass_series.COLUMN_DAYS`）。它借单位那一行的位置和字号，只换成等宽并淡一档 ——
 * 那是一个数据点，不是字段名的注解。 */
.co-table__sub {
  font-family: var(--mono);
  letter-spacing: 0;
  color: var(--muted-foreground);
}

.co-table tbody tr:last-child th,
.co-table tbody tr:last-child td { border-bottom: 0; }

.co-table tbody tr:hover td,
.co-table tbody tr:hover th { background-color: var(--secondary); }

/* Figures line up only in mono; the proportional digits of the body face put
 * a different width under every column. */
.co-table__num {
  font-family: var(--mono);
  font-size: 11.5px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/*
 * 可排序的表头（`api/static/sort.js` 自己建出来的按钮，眼下只有经纪商页挂那段脚本）。
 *
 * 这几条留在 `app.css` 而不是拆成第三份页面级样式表，判据和 `.visually-hidden` 那条
 * 一样：它是表格自己的家具，而这套表格版式四类页面共用一份 —— 排序真要放开到股东页或
 * 者持股变化页，样式一行都不用动。二十行，而且不会再动，那笔「改一个 padding 就是三万
 * 六千个文件的 diff」的账在这里收不回成本。
 *
 * 按钮铺满整格（`display: block`），所以点表头哪儿都算数；对齐从 `th` 继承，排序开不开
 * 都不该让这一列的表头挪位置。
 */
.co-sort {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.co-sort:hover { color: var(--primary); }

.co-sort:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/*
 * 中立态也给一个箭头，只是淡。全隐、只在 hover 时露出来更干净，但那样这一页上「这几列
 * 点得动」就成了一件读者得先猜到才发现的事 —— 手机上压根没有 hover 可以给。
 */
.co-sort__arrow {
  margin-left: 3px;
  font-family: var(--mono);
  opacity: 0.35;
}

.co-sort__arrow::after { content: '↕'; }

.co-sort:hover .co-sort__arrow { opacity: 0.7; }

th[aria-sort='descending'] .co-sort__arrow,
th[aria-sort='ascending'] .co-sort__arrow {
  opacity: 1;
  color: var(--primary);
}

th[aria-sort='descending'] .co-sort__arrow::after { content: '↓'; }
th[aria-sort='ascending'] .co-sort__arrow::after { content: '↑'; }

/*
 * 缀在一格后面的那句限定（高管那两节的「（曾经）」，见 `company.FORMER_FLAG`）。它讲的
 * 是这一行还成不成立，不是名字的一部分，所以压一档字号和颜色 —— 和名字同样的重量会让
 * 一列名字里三个字的括号比名字本身更抢眼。`cursor: help` 是那句悬停提示唯一的线索。
 */
.co-table__mark {
  margin-left: 0.25em;
  font-size: 11px;
  color: var(--muted-foreground);
  cursor: help;
}

/*
 * 退出名单那批行（股东页，见 `holder.EXIT_MARKS`）。这一行印的是他**最后一次出现时**
 * 的数字，所以常常出现「持股数变动：新进」配着一个「（已退出）」—— 两句话说的不是同
 * 一个时点，而报告期那一列在最右边，扫一眼看不见。整行淡一档说的就是这件事：这一行
 * 整个是旧的。
 *
 * 判据挂在标记那个 span 上而不是 `<tr>` 上，因为 `_rows_view` 给出的一行就是一串格子、
 * 没有行级属性 —— 为这一个修饰去改那个形状，公司页那八千页和 `ccass.js` 克隆的那一行
 * 都得跟着动。`:has()` 在这里正好只要一个选择器；**不支持的浏览器只是不淡化**，标记和
 * 悬停解释照旧在，降级和财经那个 `:target` 切换一个方向 —— 落在朴素那一侧。
 *
 * 不能压得更狠：这批行是这一节真正的内容之一（读者要的就是「他退了哪几家」），淡到
 * 读不清就成了藏起来。链接照旧是链接色，只是跟着一起淡。
 */
.co-table tbody tr:has(.co-table__mark--exit) {
  opacity: 0.68;
}

/*
 * 第一条退出行上面那道分界线。这批行由 `data._pick_periods` 排在本节末尾、连成一片，
 * 所以一条线就说清了「往下是另一组」—— 淡一档是逐行的弱信号，分界是整段的强信号，
 * 两个一起才看得出这一节其实是两段。
 *
 * 选的是「前一行不是退出行」的那一行，也就是这一段的头一条。整节都是退出行时它不匹配
 * （没有前一个兄弟），那正好 —— 那种页面上没有第二段，画一条线反而是说这上面还有东西。
 * 背景色这条路走不通：`--secondary` 已经被 hover 占着了。
 */
.co-table tbody tr:not(:has(.co-table__mark--exit)) + tr:has(.co-table__mark--exit) td {
  border-top: 2px solid var(--border);
}

/*
 * CCASS 经纪商持股：名字常有「某某证券（香港）」十几字，nowrap 会把第一列撑得很宽，
 * 挤掉后面的数字列。缩到大约四个汉字宽，多出来的折到第二行；完整名字仍在单元格里，
 * 不靠 title 悬停。
 */
.co-table--ccass th[title="broker_name"],
.co-table--ccass tbody td:first-child {

  white-space: normal;
  line-height: 1.35;
  vertical-align: top;
}

/*
 * One cell in a table can hold a paragraph — a shareholder's full name, a
 * one-line business description. It gets a width and clamps to two lines, with
 * the whole string in `title`. Letting it wrap freely makes one row as tall as
 * the rest of the table put together.
 */
.co-table__wrap { white-space: normal; }

.co-table__wrap > div {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* 折行要写在这里而不是上面那条类上：`.co-table td` 的 `nowrap` 是一个类加一个元素，
   * 特异性更高，压着它的话这个夹子只有一行 —— 上面那句「clamps to two lines」就从来
   * 没成立过，而一个夹到一行的名字既看不全也仍旧占着一整列的宽。 */
  white-space: normal;
}

/*
 * 三种夹住的列宽度不一样，理由在 `company.wrap_kind` 上：名字夹住是为了别把数字列推出
 * 屏幕，所以越窄越好；头衔（港股高管的职务、名册上的持股身份）再窄一档。一段话（入选
 * 原因、涨停原因、事件说明）反过来常常就是这一节要读的东西，窄一档只是逼读者多点一次
 * 展开。核心题材那一节整节只有两列，按名字那档摆出来右边是一大片空白。
 */
.co-table__wrap--name > div {
  min-width: 8em;
  max-width: 14em;
}

.co-table__wrap--role > div {
  min-width: 6em;
  max-width: 12em;
}

.co-table__wrap--text > div {
  min-width: 20em;
  max-width: 42em;
}

/*
 * 夹住的那一列（高管简历是最典型的一个）一次全部放开。开关是表头上那个小标签，
 * 状态是表格外面的 checkbox —— `label[for]` 让控件待在表头里，而 CSS 要从状态那一侧
 * 往下选到每一个格子。默认夹着不是保守：简历列放开之后一行就有半屏高，整张表
 * 一眼扫不完，所以展开是读者的一次决定。
 */
.co-unclamp {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.co-unclamp:checked ~ .co-fold .co-table__wrap--text > div {
  -webkit-line-clamp: none;
  /* 表格是 auto layout，旁边那些 `nowrap` 的列会把这一列一路压回它的 `min-width`：
   * 不抬这个下限，展开出来的是一条 15em 宽、二十行高的窄带。只抬「一段话」那档：
   * 名字和头衔放开的是行数，不是宽度 —— 抬了，点展开读简历就把职务列一起撑到 34em。 */
  min-width: 34em;
  max-width: 48em;
}

.co-unclamp:checked ~ .co-fold .co-table__wrap--name > div,
.co-unclamp:checked ~ .co-fold .co-table__wrap--role > div {
  -webkit-line-clamp: none;
}

.co-unclamp__toggle {
  margin-left: 6px;
  cursor: pointer;
  font-family: var(--mono);
  color: var(--secondary-foreground);
}

.co-unclamp__toggle:hover { color: var(--primary); }

.co-unclamp__toggle::after { content: '展开 ▾'; }

.co-unclamp:checked ~ .co-fold .co-unclamp__toggle::after { content: '收起 ▴'; }

.co-unclamp:focus-visible ~ .co-fold .co-unclamp__toggle {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.co-table--pivot th[scope='row'] {
  position: sticky;
  left: 0;
  z-index: 1;
  background-color: var(--card);
  font-weight: 400;
  color: var(--secondary-foreground);
}

.co-table--pivot tbody tr:hover th[scope='row'] { background-color: var(--secondary); }

/* The three statements inside 财务报表, and anything else that needs a heading
 * below the section title. */
.co-subtitle {
  margin: 16px 0 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-foreground);
}

/*
 * A long table folds down to its first rows. Clipping whole rows rather than
 * capping the height keeps the fold off the middle of a row, and it does not
 * depend on guessing the line height: `nth-child` counts the same rows
 * `company.FOLD_ROWS` counted when it decided to render the control at all.
 * `.co-scroll` scrolls sideways, so the fold has to sit outside it — an
 * `overflow-x: auto` box computes `overflow-y` to `auto` too, which would give
 * this table its own vertical scrollbar instead of a fold.
 *
 * `display: none` also hides those rows from find-in-page, which is why this
 * page loads `fold.js`: it opens every fold when the reader hits Ctrl+F. There
 * is no CSS-only fix for a table — `hidden="until-found"` rests on
 * `content-visibility`, and containment does not apply to table row groups.
 */
.co-fold { margin-bottom: 12px; }

.co-fold__state {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.co-fold__body--clip tbody tr:nth-child(n + 19) { display: none; }

.co-fold__state:checked ~ .co-fold__body--clip tbody tr { display: table-row; }

.co-fold .co-scroll { margin-bottom: 0; }

/* The clipped table ends on a full row, so the cut needs to read as a cut. */
.co-fold__body--clip .co-scroll { border-bottom-style: dashed; }

.co-fold__state:checked ~ .co-fold__body--clip .co-scroll { border-bottom-style: solid; }

.co-fold__toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 4px 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 3px;
  background-color: var(--card);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--secondary-foreground);
}

.co-fold__toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.co-fold__toggle::after { content: '展开全部 Expand ▾'; }
.co-fold__state:checked ~ .co-fold__toggle::after { content: '收起 Collapse ▴'; }

.co-fold__state:focus-visible ~ .co-fold__toggle {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Business review and the like: the only long-form text on the page, so it
 * takes the body measure rather than sitting in a table cell. */
.co-prose__title {
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-foreground);
}

.co-prose {
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: .06em;
  color: var(--foreground);
  text-align: justify;
}

.co-prose p { margin: 0 0 8px; }
.co-prose p:last-child { margin-bottom: 0; }

.co-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.co-note__hl { color: var(--primary); }

/* --- Company index -------------------------------------------------------- */

/*
 * 搜索框。`[hidden]` 是它在 markup 里的初始状态，company.js 把它放出来 —— 所以这里
 * 不能给 `.co-find` 写 `display`，那会盖掉 `hidden` 的 `display: none`，在脚本被拦下
 * 的浏览器上留一个打字没反应的输入框。要布局就写在里面那几个元素上。
 *
 * **这一套两个索引页共用**（公司和股东），所以类名里的 `co-` 读作「索引页上那个查找框」
 * 而不是 company。两边的匹配规则不同（那边有代码，这边只有名字和 slug 里那截拼音），
 * 但摆出来的东西是同一个部件：一个框、一行状态、一排命中。各写一份样式就是同一个部件
 * 在两页上慢慢长歪 —— `.co-hit__code` 那一格在公司页上是代码，在股东页上是公司数，
 * 位置和分量完全一样。
 */
/*
 * 外壳不再画框：输入框自己有边和 `--card` 底色，再套一层 `--secondary` 就是把
 * 查找框做成页面上的一块卡片，而它下面就是名单。底下那 16px 是它和下一节的间距
 * （原先 30px 再加一圈内边距，看起来像中间空了一整块）。
 */
.co-find {
  margin: 0 0 16px;
}

.co-find__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted-foreground);
}

/* 短标签摆在框左边。输入框自己不再 `width: 100%` —— 通栏一条红边框看起来像表单，
 * 不像查找；上限约 22em，窄屏再靠 `flex` 自己收。放大镜在框里面左边，形状跟
 * `.lookup::before` 同一份 mask，不走字符：`⌕` 在别人的机器上多半没有字形，落到
 * 一个豆腐块上，而这台机器永远测不出来。 */
.co-find__bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.co-find__bar .co-find__label {
  flex: none;
  margin-bottom: 0;
  white-space: nowrap;
  font-size: 14px;
  color: var(--foreground);
}

.co-find__field {
  position: relative;
  flex: 1 1 12em;
  max-width: 22em;
  min-width: 0;
}

.co-find__field::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  background-color: var(--muted-foreground);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='6.9' cy='6.9' r='4.6'/%3E%3Cpath d='m10.5 10.5 3.3 3.3'/%3E%3C/g%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='6.9' cy='6.9' r='4.6'/%3E%3Cpath d='m10.5 10.5 3.3 3.3'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
}

.co-find__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 14px 7px 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--card);
  font-family: inherit;
  font-size: 15px;
  color: var(--foreground);
}

.co-find__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(26, 23, 20, .08);
}

.co-find__input::placeholder {
  font-size: 13px;
  color: var(--muted-foreground);
}

.co-find__status:empty { display: none; }

.co-find__status {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted-foreground);
}

.co-find__results:empty { display: none; }

/* 命中列表最多二十条，所以它就地展开而不是浮在上面：这一页下面是名单不是表单，
 * 把它顶下去没有任何代价，而一个浮层要处理点外面关掉、滚动跟随那一堆事。 */
.co-find__results {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* 结果分两组（经纪商在上、股东在下），标题独占一行 —— 容器是一排 flex-wrap 的 chip，
 * 不给 100% 的话它会挤在上一组最后一个 chip 旁边。每组都印，包括只有一组有命中的时候：
 * 不印，读者会把经纪商当成股东，而那两种页面长得几乎一样（见 holder.js）。 */
.co-find__group {
  flex: 0 0 100%;
  margin: 6px 0 -2px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted-foreground);
}

.co-find__group:first-child { margin-top: 0; }

.co-hit {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background-color: var(--background);
  font-size: 13px;
  color: var(--foreground);
  text-decoration: none;
  transition: color .12s, border-color .12s;
}

.co-hit:hover { color: var(--primary); border-color: var(--primary); }

.co-hit__code {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--muted-foreground);
}

.co-boards,
.co-names {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.co-board,
.co-name {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background-color: var(--card);
  font-size: 13px;
  color: var(--foreground);
  text-decoration: none;
}

.co-name { transition: color .12s, border-color .12s; }
.co-name:hover { color: var(--primary); border-color: var(--primary); }

.co-board i,
.co-name i {
  margin-left: 6px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--muted-foreground);
}

/* 涨幅或者连板数 —— 两份名单里它占同一个位置，所以是同一个样子。 */
.co-name b {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}

/* --- 港股行业页 ------------------------------------------------------------ */

/*
 * 行业页上的一家公司。它比市场板块那边的 `.stock` 轻一档：那是一条带正文的记录（涨停
 * 原因），这里一行只是一个入口，所以公司名本身就是链接，数字挤在下面一行小号等宽里 ——
 * 和 `.stock__stats` 同一个样子，两处摆的都是「关于这条记录的几个数」。
 */
.co-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.co-row:last-child { border-bottom: 0; }

.co-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 5px;
}

.co-row__name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--foreground);
  text-decoration: none;
  transition: color .12s;
}

.co-row__name:hover { color: var(--primary); }

/* 代码和名字指着同一页，所以它也是链接；样式仍旧是这一行里那格灰色小字，别让全站的
   链接下划线把它变成第二个标题。 */
.co-row__code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color .12s;
}

.co-row__code:hover { color: var(--primary); }

/* 港股通标的，四家里约一家。同一个 chip 形状在别处是板块，这里是这一行唯一的身份标记。 */
.co-row__flag {
  padding: 1px 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 10px;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  font-size: 11px;
  color: var(--primary);
}

.co-row__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--secondary-foreground);
}

.co-row__stat i {
  margin-right: 5px;
  font-style: normal;
  color: var(--muted-foreground);
}

.co-row__business {
  margin: 5px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--secondary-foreground);
}

/* --- 选中文字之后那条搜索入口 ---------------------------------------------- */

/*
 * 这个元素整个由 `lookup.js` 建出来（markup 里没有它），所以「默认 hidden、由脚本放出来」
 * 那条约定在这里换了个样子：脚本没跑起来就压根没有这个节点。但 `display` 仍旧要给
 * `[hidden]` 让路 —— 脚本靠那个属性收放它。
 *
 * `fixed` 是配着脚本量的视口坐标来的：滚的是 `.main` 而不是文档（见上面那段），所以
 * 页面坐标在这里对不上，而一滚它就收掉。
 */
/*
 * 它是**实心的主色**，不是又一个米色的框。这一条浮出来的时候，读者刚刚选中了一段字 ——
 * 页面上此刻至少有三样东西在抢眼睛（选区的高亮、系统自己那个复制菜单、这一条），而这站
 * 通篇是几档米色加细边框，一个同样米色的小框在选区旁边根本认不出是个按钮。日历上「当前
 * 那一天」用的就是这一对（`--primary` 配 `--primary-foreground`），所以它不是新造的样子。
 */
.lookup {
  position: fixed;
  /* 在「回到顶部」之上（读者刚做的动作该压住一个常驻按钮），仍在手机抽屉和它的遮罩之下。 */
  z-index: 6;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--primary);
  border-radius: 2px;
  background-color: var(--primary);
  box-shadow: 0 2px 10px rgba(26, 23, 20, .18);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-foreground);
  text-decoration: none;
  white-space: nowrap;
  /* 自己不可选：它浮在选区旁边，一旦点选到它身上就是一次 `selectionchange`，而那一次会
   * 把它自己收掉。 */
  user-select: none;
  -webkit-user-select: none;
}

/*
 * 前面那个放大镜。**它是 mask 不是字符**：`⌕` 这类符号在别人的机器上多半没有字形，落到
 * 一个豆腐块上，而这台机器永远测不出来（和侧栏日历那格钉死宽度是同一类坑）；emoji 则是
 * 每个系统一个样，跟这一站的排版对不上。走 mask 之后形状自己带着，`currentColor` 让它跟着
 * 文字走，所以下面那几档配色一处都不用重写。尺寸用 `em`，跟着字号走，触屏那一档也就不必
 * 再给一遍。
 */
.lookup::before {
  content: "";
  flex: none;
  width: .95em;
  height: .95em;
  margin-right: 5px;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='6.9' cy='6.9' r='4.6'/%3E%3Cpath d='m10.5 10.5 3.3 3.3'/%3E%3C/g%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='6.9' cy='6.9' r='4.6'/%3E%3Cpath d='m10.5 10.5 3.3 3.3'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
}

.lookup[hidden] { display: none; }

/*
 * 第二个按钮：「不要这个词」，只在搜索页的结果里出现（判据是那一块上有没有
 * `data-lookup-exclude`，由 `search.js` 当场写 —— 见 lookup.js 里 `drop` 那一段）。它把
 * 选中的那个词以 `-词` 缀到读者**当前那个查询**后面，也就是「就在这批结果上再排掉一样
 * 东西」，而旁边那个主按钮做的是「拿这个词重新搜一次」—— 两件事的方向正相反，所以它们
 * 是两个按钮而不是一个带下拉的。
 *
 * **它是一个独立的 `.lookup`，不是那个按钮里的第二格。** 这样这一整套外观、翻转和触屏
 * 那一档尺寸一行都不用改，而那套规则在九类页面上共用一份；改成「容器 + 两个 item」是
 * 让另外八类页面为这一页多出来的一个按钮付一次结构改动。代价是两个元素各自定位，那
 * 二十行在 lookup.js 里。
 *
 * **样子上它必须比主按钮轻一档**：这一页上读者最常做的仍旧是「搜这个词」，而一排两个
 * 同样实心的主色按钮说的是「随便挑一个」。
 */
.lookup--not {
  border-color: var(--border);
  background-color: var(--card);
  color: var(--foreground);
  font-weight: 500;
}

.lookup--not::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='5.6'/%3E%3Cpath d='M5.2 8h5.6'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='5.6'/%3E%3Cpath d='M5.2 8h5.6'/%3E%3C/g%3E%3C/svg%3E");
}

/* 实心之后 hover 不能再靠换颜色 —— 那一对本来就是这个站对比度最高的组合，换掉只会更淡。
 * 抬一档阴影，说的是「这东西浮在页面上、可以按」。 */
.lookup:hover { box-shadow: 0 4px 16px rgba(26, 23, 20, .3); }

/*
 * 触屏上这是个要用手指点的东西，28px 高够不着 —— 而那台机器上没有 hover，所以这一档
 * 顺便把上面那个 `:hover` 的样子也让给了 `:active`。
 */
@media (hover: none) {
  .lookup {
    padding: 10px 16px;
    font-size: 15px;
  }

  .lookup:active { box-shadow: 0 4px 16px rgba(26, 23, 20, .3); }
}

/* --- Back to top ---------------------------------------------------------- */

/*
 * An anchor, not a script. The cost is a `#top` in the address bar after a
 * click, which is the same trade the folds and the drawer already make: a bit
 * of state in the markup instead of the site's first line of JavaScript.
 *
 * It is visible by default and the animation below *fades it in*, never out.
 * That ordering is the whole safety net: where scroll timelines are missing or
 * where `--main` fails to resolve, the animation simply never applies and the
 * button is always there — the plain version of this feature, not a broken one.
 */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  /* Under the drawer and its scrim: on a phone the calendar slides over the
   * page, and a button floating on top of the dimmed page would look live. */
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background-color: var(--card);
  box-shadow: 0 2px 10px rgba(26, 23, 20, .12);
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color .12s, border-color .12s, background-color .12s;
}

.to-top:hover {
  color: var(--primary);
  border-color: var(--primary);
  background-color: var(--background);
}

.to-top:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.to-top__arrow {
  font-size: 13px;
  line-height: 1;
}

.to-top__label {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.5px;
}

@supports (animation-timeline: scroll()) {
  .to-top {
    animation: to-top-in linear both;
    animation-timeline: --main;
    /* Roughly half a screen of scrolling. Short pages never reach it, which is
     * the point: a 404 has no distance to travel back. */
    animation-range: 140px 340px;
  }

  @keyframes to-top-in {
    from { opacity: 0; pointer-events: none; }
    to { opacity: 1; pointer-events: auto; }
  }
}

/* --- Narrow screens ------------------------------------------------------- */

@media (max-width: 768px) {
  .masthead { padding-left: 0; }

  .masthead__drawer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 100%;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    cursor: pointer;
  }

  .masthead__drawer-icon {
    position: relative;
    display: block;
    width: 16px;
    height: 1.5px;
    border-radius: 1px;
    background-color: var(--foreground);
    transition: background-color .18s;
  }

  .masthead__drawer-icon::before,
  .masthead__drawer-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 16px;
    height: 1.5px;
    border-radius: 1px;
    background-color: var(--foreground);
    transition: transform .18s;
  }

  .masthead__drawer-icon::before { top: -5px; }
  .masthead__drawer-icon::after { top: 5px; }

  .drawer__state:checked ~ .masthead .masthead__drawer-icon {
    background-color: transparent;
  }

  .drawer__state:checked ~ .masthead .masthead__drawer-icon::before {
    transform: translateY(5px) rotate(45deg);
  }

  .drawer__state:checked ~ .masthead .masthead__drawer-icon::after {
    transform: translateY(-5px) rotate(-45deg);
  }

  .drawer__state:focus-visible ~ .masthead .masthead__drawer {
    outline: 2px solid var(--ring);
    outline-offset: -2px;
  }

  .masthead__brand { gap: 7px; padding: 0 11px; }
  .masthead__title { font-size: 14px; }
  .masthead__title-en { font-size: 9px; }
  /*
   * 手机上只留 tab 的中文主标签，并收窄横向留白；导航照旧横向滚动，但同一屏能看见更多入口。
   * 每个 tab 仍不收缩，四字标签也不会换行。
   */
  .masthead__nav { margin-left: 0; }
  .masthead__tab { min-width: 54px; padding: 0 3px; flex-shrink: 0; }
  .masthead__tab-zh { font-size: 12px; }
  .masthead__tab-en { display: none; }
  .finder__dock.masthead__search {
    --finder-dock-width: 160px;
    margin-left: 5px;
    padding-right: 5px;
  }
  .masthead__search .finder__box {
    gap: 6px;
    padding-left: 10px;
  }
  .masthead__search .finder__submit { padding-inline: 12px; }
  .finder__dock.masthead__search + .masthead__account { margin-left: 0; }
  .finance-timeline__item .en { display: none; }
  .finance-timeline__item { padding-inline: 8px; font-size: 13px; }

  .masthead__avatar { width: 20px; height: 20px; }
  .masthead__avatar::before { top: 3.5px; }
  .masthead__avatar::after { top: 12px; }

  .calendar {
    position: fixed;
    top: var(--masthead);
    bottom: 0;
    left: 0;
    z-index: 20;
    width: min(272px, 78vw);
    transform: translateX(-100%);
    transition: transform .22s ease;
  }

  .drawer__state:checked ~ .body .calendar {
    transform: translateX(0);
    box-shadow: 6px 0 24px rgba(26, 23, 20, .18);
  }

  .calendar__scrim {
    display: block;
    position: fixed;
    top: var(--masthead);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    background-color: rgba(26, 23, 20, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }

  .drawer__state:checked ~ .body .calendar__scrim {
    opacity: 1;
    pointer-events: auto;
  }

  /* 屏幕两侧那对翻页箭头只在这里出现，理由写在 `.daynav` 上面。断点和抽屉那几条是
   * 同一个：从这里往下侧栏是抽屉，翻一天在页面上就没有别的入口了。 */
  .daynav { display: block; }

  .page { padding: 22px 16px 56px; }
  .page__header { margin-bottom: 20px; padding-bottom: 14px; }
  .page__title { font-size: 26px; letter-spacing: -0.5px; }
  .page__header--timeline .page__title { font-size: 24px; letter-spacing: -0.3px; }
  /* 上面那条同样特异性、又排在后面，会把 `--long` 的字号盖回去 —— 手机上那个一百来个字的
   * 股东名于是又是五行。窄屏一行装得下的字更少，所以这里比桌面再小一档。 */
  .page__title--long { font-size: 19px; letter-spacing: -0.2px; }

  .pager { gap: 8px; }
  .pager__step { gap: 5px; padding: 6px 10px; font-size: 12px; }
  .pager__date { font-size: 11px; }

  .footer__inner { padding: 12px 16px 14px; }

  .ad { min-height: 250px; padding: 0 16px; }

  .contents { margin-bottom: 24px; padding: 12px 14px 14px; }
  .contents__list { grid-template-columns: 1fr; }

  .hit { grid-template-columns: 1fr; gap: 4px; }
  .hit__date { line-height: 1.4; }

  .report { padding: 22px 0; }
  .report__thumb { width: 132px; height: 78px; margin: 2px 0 10px 12px; }
  .report__title { font-size: 17px; }

  /* 这一行在有缩略图的报道上只剩 202px，而它要装来源、时间、原文和收藏开关四样：
   * 装不下就 wrap，而 `margin-left: auto` 的收藏开关一换行就独占第二行的右端，看着
   * 像页面上多出来一条空行。所以窄屏收掉「原文」旁边那个 `Source` —— 四样都留在一行
   * 里比留住这一个英文注解要紧，况且中文就在它左边一个字的位置上。 */
  .report__origin .en { display: none; }

  /* The title inherits this, so the two labels beside it keep their size. */
  .flash { padding: 16px 0; font-size: 16px; }

  .stock { padding: 17px 0; }
  .stock__name { font-size: 17px; }
  .stock__stats { gap: 4px 12px; }

  /* One column on a phone: two label/value pairs side by side leave about
   * six characters for each value. */
  .co-kv { grid-template-columns: minmax(0, 1fr); }
  .co-kv__row { grid-template-columns: 6.5em minmax(0, 1fr); }
  .co-kv__row--wide { grid-template-columns: 10em minmax(0, 1fr); }
  .co-kv__row--wider { grid-template-columns: 12em minmax(0, 1fr); }
  .co-section__title { font-size: 17px; }
  /* The tables already scroll; the page must not scroll with them. */
  .co-scroll { max-width: 100%; }

  .to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .calendar, .calendar__scrim, .masthead__drawer-icon,
  .masthead__drawer-icon::before, .masthead__drawer-icon::after,
  .masthead__aside-icon, .masthead__aside-icon::before,
  .masthead__aside-icon::after {
    transition: none;
  }

  /* The jump still happens, it just stops being a ride through 5,000 lines. */
  .main { scroll-behavior: auto; }
}

@media print {
  .fold__body { max-height: none; mask-image: none; -webkit-mask-image: none; }
  /*
   * 多写的那个 `.co-fold` 不是啰嗦，它是这条规则唯一能生效的写法：藏行的是上面
   * `.co-fold__body--clip tbody tr:nth-child(n + 19)`，两个类加两个元素，比不带
   * `:nth-child` 的同一串**高一档**，所以原先这一句从来没赢过——纸上每张长表都停在
   * 第 18 行，而屏幕上一切正常，页面里那些行也都在 markup 里。祖先那个类把两边拉平，
   * 后写的赢；不复制 `n + 19` 是因为那个数已经在两处了（见上面那条的注释）。
   */
  .co-fold .co-fold__body--clip tbody tr { display: table-row; }
  .co-fold__body--clip .co-scroll { border-bottom-style: solid; }
  .co-table__wrap > div { -webkit-line-clamp: none; }
  .fold__toggle, .co-fold__toggle, .co-unclamp__toggle { display: none; }
  .calendar, .masthead, .pager, .to-top, .daynav { display: none; }
  /* 屏幕上那一屏留白在纸上就是一整页空纸。 */
  .footer-gap { display: none; }

  /*
   * **这三条是「导出 PDF」那个按钮真正依赖的东西**，而少了它们的失败是安静的：`.shell`
   * 正好一个视口高且 `overflow: hidden`，`.main` 是全站唯一的滚动容器（见文件开头那
   * 段），所以不放开的话纸上只有第一屏——而屏幕上一切正常，页面里每一个字也都在
   * markup 里。同理 `.co-scroll` 是宽表的横向滚动条，留着 `auto` 就是把溢出的那几列
   * 整整齐齐地裁掉，读者拿到的 PDF 看上去是完好的。
   */
  .shell { height: auto; overflow: visible; }
  .main { overflow: visible; }
  .co-scroll { overflow-x: visible; }

  /* 一张表在纸上常常跨好几页：表头要跟着走，一行不许被切成两半，而一个节标题单独留在
   * 页底就是下一页那张表不知道自己叫什么。 */
  .co-table thead { display: table-header-group; }
  .co-table tr { break-inside: avoid; }
  .co-section__title { break-after: avoid; }

  /* 只在屏幕上成立的那几样：广告位、选中一段文字之后浮出来的搜索入口、排序那个箭头。
   * `.co-sort` 本身不能藏——它包着表头的文字（见 `sort.js`），藏了就是一排空白表头。 */
  .ad, .lookup, .co-sort__arrow { display: none; }

  /* 按钮自己得带上 `.js`：放出它的那条规则就是 `.js .co-print`，少一个类就压不过它，
   * 于是「导出 PDF」会印在它自己导出的每一份 PDF 的第一页上。收藏那个开关同理，而它
   * 一并管着条目上那些 —— 一个只在屏幕上点得动的控件，印在纸上就是一排 ☆。 */
  .js .co-print,
  .js .bookmark { display: none; }
}
