@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: #f4f1ec;
  --foreground: #1a1714;
  --card: #faf8f4;
  --primary: #c0392b;
  --primary-foreground: #faf8f4;
  --secondary: #e8e3da;
  --secondary-foreground: #3d3832;
  --muted: #e0dbd2;
  --muted-foreground: #7a7268;
  --border: #cec8be;
  --ring: #c0392b;
  /* 滚动条的 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;
  --masthead: 56px;
}

* { 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);
}

/*
 * 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,
.pager__step .en {
  margin-left: 0.35em;
  font-size: 0.85em;
}

.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; }

.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;
}

.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; }

.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 var(--border);
  border-radius: 3px;
  color: var(--foreground);
  transition: all .12s;
}

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

.calendar__cell--active {
  font-weight: 700;
  border-color: var(--primary);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.calendar__cell--empty {
  border-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; }

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

.calendar__day--active {
  background-color: var(--secondary);
  border-left-color: var(--primary);
}

.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: var(--primary);
  opacity: 1;
}

.calendar__day-weekday {
  font-size: 10px;
  font-family: var(--mono);
  width: 22px;
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.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: var(--primary);
  color: var(--primary-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: 18px;
  border-bottom: 2.5px solid var(--foreground);
}

.page__eyebrow { margin-bottom: 6px; }

.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;
}

.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: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.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); }

/*
 * 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.
 */
/*
 * 页脚之前的一整屏。`.main` 是全站唯一的滚动容器，所以这里的 100% 就是一个滚动视口
 * 的高度 —— 内容再短，页脚也落在初始视口之外，读者不滚动碰不到它。
 *
 * 不能写成 vh：视口还要减掉顶栏，大屏上算出来永远差一截，页脚会重新露出半截，而这
 * 只在别人的屏幕上看得出来。
 */
.footer-gap { min-height: 100%; }

/* `margin-top: auto` 现在只是兜底：`.footer-gap` 撑开之后已经没有剩余空间可分配，
 * 但百分比高度万一解析不上，它仍旧把页脚压在底部而不是让它跟在正文后面。 */
.footer {
  margin-top: auto;
  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: 20px 28px 26px;
}

.footer p { margin: 0; }

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

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

.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;
}

/* --- Search (placeholder UI until Meilisearch lands) ---------------------- */

.search {
  max-width: 640px;
}

.search__label,
.search__legend {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary-foreground);
}

.search__legend {
  padding: 0;
}

.search__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 18px;
}

.search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background-color: var(--card);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--foreground);
  outline: none;
  transition: border-color .12s;
}

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

.search__input:focus {
  border-color: var(--primary);
}

.search__submit {
  flex: 0 0 auto;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background-color: var(--muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: not-allowed;
}

.search__scopes {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.search__scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.search__scope {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--foreground);
  cursor: pointer;
  white-space: nowrap;
}

.search__scope input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.search__scope .en {
  margin-left: 0.25em;
  font-size: 0.85em;
}

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

.search__hint .en {
  margin-left: 0.35em;
  font-size: 0.92em;
}

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

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

/* 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,
  .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__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);
}

.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;
  border-bottom: 2px solid var(--foreground);
}

.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;
  color: var(--secondary-foreground);
}

/*
 * 1.5，和财经条目同一个数。这里原来是 2.0，那是照着「一屏一篇散文」定的，可这一页
 * 一天二十条报道，每条自己也就几段 —— 行距撑开之后一条报道要滚两屏才读得完，读者
 * 大部分时间花在翻页上。段间距跟着按同一个比例收（16px 对 30px 的行高约是半行，
 * 22.5px 的行高下就是 12px），不然段落之间的那道缝会比原来还显眼。
 */
.report__body {
  font-size: 15px;
  line-height: 1.5;
  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 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__source,
.flash__time {
  margin-right: 8px;
  font-family: var(--mono);
  white-space: nowrap;
}

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

.flash__time {
  font-size: 11px;
  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. 存档那边的正文现在也是
 * 这个数 —— 那一版 2.0 是照着「一屏一篇散文」定的，两页都不是那个形状。 */
.flash__brief {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  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，和财经条目的摘要、存档的正文同一套度量。三个板块的正文密度必须一致：
 * 读者在同一天的三个页面之间来回跳，各定一份行距就是每跳一次重新适应一遍。 */
.stock__reason {
  font-size: 13.5px;
  line-height: 1.5;
  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;
  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;
  color: var(--secondary-foreground);
  text-align: justify;
}

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

.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);
}

/* 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;
}

.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);
}

.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;
}

/*
 * 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;
  min-width: 15em;
  max-width: 26em;
}

/*
 * 夹住的那一列（高管简历是最典型的一个）一次全部放开。开关是表头上那个小标签，
 * 状态是表格外面的 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 > div {
  -webkit-line-clamp: none;
  /* 表格是 auto layout，旁边那些 `nowrap` 的列会把这一列一路压回它的 `min-width`：
   * 不抬这个下限，展开出来的是一条 15em 宽、二十行高的窄带。 */
  min-width: 34em;
  max-width: 48em;
}

.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;
  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); }

.co-disclaimer {
  margin: 30px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted-foreground);
}

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

/*
 * 搜索框。`[hidden]` 是它在 markup 里的初始状态，company.js 把它放出来 —— 所以这里
 * 不能给 `.co-find` 写 `display`，那会盖掉 `hidden` 的 `display: none`，在脚本被拦下
 * 的浏览器上留一个打字没反应的输入框。要布局就写在里面那几个元素上。
 *
 * **这一套两个索引页共用**（公司和股东），所以类名里的 `co-` 读作「索引页上那个查找框」
 * 而不是 company。两边的匹配规则不同（那边有代码，这边只有名字和 slug 里那截拼音），
 * 但摆出来的东西是同一个部件：一个框、一行状态、一排命中。各写一份样式就是同一个部件
 * 在两页上慢慢长歪 —— `.co-hit__code` 那一格在公司页上是代码，在股东页上是公司数，
 * 位置和分量完全一样。
 */
/*
 * 底色比页面深一档（`--secondary`），里面那个输入框反过来是全站最亮的 `--card`。
 * **两层的方向不能反，也不能相同**：原先这一层是 `--card`、输入框是 `--background`，
 * 两个色差着六个色阶，于是整块看上去就是一片米色，「哪里能打字」没有任何视觉线索 ——
 * 唯一的提示是那圈 `--border`，而这一页上每个 chip 都有同样一圈。这是页面上唯一一处
 * 要读者往里放东西的地方，所以它得是个凹槽，里面亮、周围暗。
 */
.co-find {
  margin: 0 0 30px;
  padding: 16px 16px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background-color: var(--secondary);
}

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

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

.co-find__input:focus {
  outline: none;
  border-color: var(--primary);
}

.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);
}

.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);
}

/* 港股通标的，四家里约一家。同一个 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);
}

/* --- 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; }
  /*
   * Four tabs plus the brand no longer fit on the narrowest phones, so the nav
   * is allowed to shrink and scroll rather than pushing the last tab off the
   * masthead. The tabs themselves keep their width so a label never wraps.
   */
  .masthead__nav { margin-left: 0; }
  .masthead__tab { min-width: 68px; padding: 0 8px; flex-shrink: 0; }
  .masthead__tab-zh { font-size: 12px; }
  .masthead__tab-en { font-size: 9px; }

  .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;
  }

  .page { padding: 22px 16px 56px; }
  .page__header { margin-bottom: 20px; padding-bottom: 14px; }
  .page__title { font-size: 26px; letter-spacing: -0.5px; }
  /* 上面那条同样特异性、又排在后面，会把 `--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: 18px 16px 24px; }

  .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; }

  /* 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-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 {
    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__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 { display: none; }
  /* 屏幕上那一屏留白在纸上就是一整页空纸。 */
  .footer-gap { display: none; }
}
