/* 外壳样式合并产物 —— 由 node tools/build-chrome-css.mjs 生成，请勿手改。 */
/* 源文件：assets/chrome/critical.css、public/static/css/{page-transit,me-skeleton,auth-modal,colophon,focus}.css */

/* ---- 首绘画布：底色与文字色，最先落地（assets/chrome/critical.css） ---- */
/* 首绘画布：在站点 CSS 之后落地，压过设计系统默认底色（与旧版策略一致）。
   字体：body 与数字统一系统无衬线栈，不再使用等宽/Geist Mono。 */
html,
body {
  background: #ffffff;
  color: #1D2129;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #171A20;
  color: #E8EAED;
}

html[data-theme="dark"] {
  --color-primary: #a98ce8;
  --color-primary-fill: #6d49af;
  --color-primary-hover: #7955b8;
}

/* Filled controls use a deeper purple to keep their white labels readable. */
html[data-theme="dark"] :is(
  .mbtn--pri, .btn-primary, .price-card__badge, .price-compare__rec,
  .chip.is-on, .chip[aria-current="page"], .dstrip__d.is-on,
  .dcal__day.is-on, .dcal__today:hover, .dcal__today:focus-visible,
  .hubpill.is-on, .mpsheet__full, .league-rounds__button.is-on,
  .league-stages__i.is-on, .lgtable__seg-i.is-on
) {
  --m-brand: var(--color-primary-fill);
  --color-primary: var(--color-primary-fill);
}

/* 浅白衬底让深色徽标在暗黑模式下清晰可见。 */
html[data-theme="dark"] img:is(.lmark, .tcrest, .crest) {
  box-sizing: border-box;
  padding: 1px;
  border-radius: 4px;
  background-color: #f4f5f7;
}

/* 语言开关被强制隐藏（APP_FORCE_LANG）。主隐蔽逻辑在模板里，这里是 CSS 兜底。 */
html[data-locale-forced="1"] .sitebar__lang,
html[data-locale-forced="1"] .appbar__icon--lang,
html[data-locale-forced="1"] a.locale,
html[data-locale-forced="1"] .deskme a.locale {
  display: none !important;
}

/* ---- 站内转场顶部进度条（public/static/css/page-transit.css） ---- */
/* 站内页面切换：顶部细进度条（本站自实现，无第三方依赖）。 */
.me-transit {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.me-transit.is-on {
  opacity: 1;
}
.me-transit.is-done {
  opacity: 0;
  transition: opacity 0.28s ease 0.08s;
}
.me-transit__bar {
  position: relative;
  height: 2px;
  width: 0;
  max-width: 100%;
  background: var(--color-primary, #794DFF);
  transition: width 0.2s ease-out;
  will-change: width;
}
/* 前沿高光：条尾的柔和光晕 */
.me-transit__peg {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  width: 80px;
  height: 100%;
  box-shadow:
    0 0 10px var(--color-primary, #794DFF),
    0 0 4px var(--color-primary, #794DFF);
  opacity: 0.85;
  transform: rotate(2deg) translateY(-1px);
  pointer-events: none;
}
/* Subtle status line — not a heavy pill */
.me-transit__msg {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  max-width: min(90vw, 22rem);
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  font: 500 11px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  color: var(--color-ink-2, var(--color-text-secondary, #4E5969));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  text-shadow:
    0 0 8px var(--color-paper, #fff),
    0 0 4px var(--color-paper, #fff);
}
.me-transit__msg.is-on {
  opacity: 0.9;
  transform: translateX(-50%) translateY(0);
}
html[data-theme="dark"] .me-transit__msg {
  color: #9AA0A6;
  text-shadow:
    0 0 10px #0D0F13,
    0 0 4px #0D0F13;
}
@media (prefers-reduced-motion: reduce) {
  .me-transit,
  .me-transit.is-done,
  .me-transit__bar,
  .me-transit__msg {
    transition: none;
  }
  .me-transit__peg {
    box-shadow: none;
    opacity: 0.5;
    transform: none;
  }
}

/* 选中态（方案 C）：主色文字 + 8% 主色浅底 + 2px 指示线；悬停仍是中性灰底。
   本文件在 layout 里内联于 app.css 之后，级联位置最高，所以必须与 m.css 保持一致，
   否则这里会盖回旧的「紫底白字胶囊」。 */
@media (min-width: 1024px) {
  .sitebar__nav .menu > li > a.menu-active,
  .sitebar__nav .navmore__btn.is-current {
    color: var(--m-brand);
    background: color-mix(in srgb, var(--m-brand) 8%, transparent);
    font-weight: 600;
    box-shadow: none;
    border-radius: 8px;
  }
  .sitebar__nav .menu > li > a.menu-active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 1px;
    height: 2px;
    border-radius: 1px;
    background: var(--m-brand);
  }
  /* 「数据 / 洞察」按钮的 ::after 已被下拉箭头占用，指示线改用内阴影，避免覆盖箭头。 */
  .sitebar__nav .navmore__btn.is-current {
    box-shadow: inset 0 -2px 0 0 var(--m-brand);
    border-radius: 8px 8px 0 0;
  }
}

/* 顶栏下拉和按钮之间留了 6px。Flyon 的 .menu li ul:before 是一条 1px 竖线，
   会占掉这个伪元素，竖线又盖不住整段空隙，指针一过空隙菜单就收起。这里改回整宽透明带。 */
.navmore__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  inset-inline: 0;
  top: -8px;
  bottom: auto;
  width: auto;
  height: 8px;
  margin: 0;
  background: transparent;
  opacity: 1;
  border: 0;
  pointer-events: auto;
}

/* ---- 账号区骨架屏（public/static/css/me-skeleton.css） ---- */
/* me-skeleton.css — MYEDGE skeleton + async empty/error primitives
 * Neutral-gray pulse (skeleton-only; brand token stays --color-primary).
 * Works inside .pagebox / --page-max grid. Link or @import from app entry.
 */
/* 骨架色板挂到全站 m-* token 上，明暗主题自动跟随；不再只在 .sk 作用域内定义，
   否则详情页的 sk-pulse / mskel__l 拿不到变量，画出来是透明的。 */
:root {
  --sk-base: color-mix(in oklab, var(--m-line, #E5E6EB) 52%, var(--m-surface, #fff));
  --sk-shine: color-mix(in oklab, var(--m-line, #E5E6EB) 10%, var(--m-surface, #fff));
  --sk-radius: var(--r-s, 8px);
}
.sk {
  display: block;
  width: 100%;
  max-width: min(100%, var(--page-max, 1200px));
  box-sizing: border-box;
}

/* 骨架闪光：全站唯一一份。之前详情页在 match-detail.css 里另写了一套 gradient，
   同页会出现两种闪法（一快一慢、色阶不同），已合并到这里。 */
.sk-pulse,
.mskel__l {
  background-color: var(--sk-base);
  background-image: linear-gradient(
    100deg,
    var(--sk-base) 0%,
    var(--sk-base) 32%,
    var(--sk-shine) 50%,
    var(--sk-base) 68%,
    var(--sk-base) 100%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: sk-pulse 1.7s cubic-bezier(.4, 0, .2, 1) infinite;
  border-radius: var(--sk-radius);
}
@keyframes sk-pulse {
  from { background-position: 130% 0; }
  to { background-position: -130% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-pulse,
  .mskel__l { animation: none; background-image: none; background-color: var(--sk-base); }
}

/* Atomic blocks */
.sk-bar {
  display: block;
  height: 10px;
  border-radius: var(--radius-sm, 4px);
}
.sk-bar--sm { height: 8px; }
.sk-bar--lg { height: 14px; }
.sk-bar--xl { height: 20px; }
.sk-bar--w20 { width: 20%; }
.sk-bar--w30 { width: 30%; }
.sk-bar--w40 { width: 40%; }
.sk-bar--w50 { width: 50%; }
.sk-bar--w60 { width: 60%; }
.sk-bar--w70 { width: 70%; }
.sk-bar--w80 { width: 80%; }
.sk-bar--w100 { width: 100%; }

.sk-chip {
  display: inline-block;
  width: 52px;
  height: 22px;
  border-radius: 999px;
  vertical-align: middle;
}
.sk-chip--sq {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm, 4px);
}
.sk-chip--crest {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.sk-text {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.sk-text .sk-bar { max-width: 100%; }

.sk-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-paper, #fff);
  border: 1px solid var(--color-border, #E5E6EB);
  border-radius: var(--radius, 8px);
  box-shadow: var(--shadow-card, 0 2px 12px rgba(0,0,0,.08));
  box-sizing: border-box;
}
[data-theme="dark"] .sk-card {
  background: var(--m-surface, #171A20);
  border-color: var(--m-line, #2A2F38);
  box-shadow: none;
}

.sk-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--color-border, #E5E6EB);
  box-sizing: border-box;
}
[data-theme="dark"] .sk-row { border-bottom-color: var(--m-line, #2A2F38); }
.sk-row:last-child { border-bottom: 0; }

.sk-list { display: grid; gap: 0; }
.sk-list--gap { gap: 12px; }
.sk-list--cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

/* Named variants (partial/skeleton.html) */
.sk-match-row .sk-row__meta { justify-self: start; }
.sk-match-row .sk-row__score {
  width: 48px;
  height: 14px;
  justify-self: center;
}
.sk-match-row .sk-row__team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sk-match-row .sk-row__team--h { justify-content: flex-end; }
.sk-match-row .sk-row__team--a { justify-content: flex-start; }
.sk-match-row .sk-row__name { flex: 1; min-width: 0; height: 12px; }

.sk-news-card .sk-news__kicker { width: 64px; height: 18px; }
.sk-news-card .sk-news__title { height: 16px; width: 92%; }
.sk-news-card .sk-news__title2 { height: 14px; width: 68%; }
.sk-news-card .sk-news__meta { display: flex; gap: 8px; margin-top: 4px; }

.sk-jcard .sk-jcard__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.sk-jcard .sk-jcard__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
}
.sk-jcard .sk-jcard__odds {
  display: grid;
  grid-template-columns: 48px repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}
.sk-jcard .sk-jcard__cell { height: 28px; border-radius: var(--radius-sm, 4px); }

.sk-aside {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  background: var(--color-paper, #fff);
  border: 1px solid var(--color-border, #E5E6EB);
  border-radius: var(--radius, 8px);
  box-sizing: border-box;
}
[data-theme="dark"] .sk-aside {
  background: var(--m-surface, #171A20);
  border-color: var(--m-line, #2A2F38);
}
.sk-aside .sk-aside__h { height: 14px; width: 40%; }
.sk-aside .sk-aside__line { height: 10px; }

/* Match detail right-rail card: mirrors a .block.mfacts card (title + icon rows). Roomy, gray.
   Real rail cards are .block nested in [data-mrail-slot], so their gap comes from
   site.css `.block { margin-bottom: var(--space-md) }` — the skeleton must match it. */
.sk-railcard {
  display: grid;
  gap: 14px;
  padding: 16px 16px 18px;
  margin-bottom: var(--space-md, 16px);
  background: var(--m-surface, #fff);
  border: 1px solid var(--m-line, #E5E6EB);
  border-radius: 12px;
  box-sizing: border-box;
}
.sk-railcard__title { display: block; width: 72px; height: 14px; }
.sk-railcard__rows { display: grid; gap: 14px; }
.sk-railcard__row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 30px;
}
.sk-railcard__ico { display: block; width: 22px; height: 22px; border-radius: 6px; }
.sk-railcard__line { display: block; height: 12px; }
.sk-railcard__line--s { width: 62%; }
/* Compact single-row card (比赛信息 / 主裁): height tracks the real one-row card,
   with a min-height floor so it never collapses below the loaded content. */
.sk-railcard--one { min-height: 84px; }
.sk-railcard--sm { gap: 10px; padding: 14px 14px 16px; }

.sk-list-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border, #E5E6EB);
}
[data-theme="dark"] .sk-list-item { border-bottom-color: var(--m-line, #2A2F38); }
.sk-list-item:last-child { border-bottom: 0; }

/* Async host + empty / error (me-async.js) */
.me-async { position: relative; min-width: 0; }
.me-async[hidden], .me-async__sk[hidden], .me-async__body[hidden] { display: none !important; }
.me-async--loading .me-async__body { display: none !important; }
.me-async--ready .me-async__sk { display: none !important; }
.me-async--empty .me-async__sk,
.me-async--error .me-async__sk { display: none !important; }

/* 异步空态 / 错误态：壳统一走 m.css 的 .mstate（同一套图标、标题、正文、按钮）。
   这条注释以前的版本在这里另写了 bg / border / 圆角 / 图标尺寸 / 按钮样式，
   等于给同一件事维护第二套皮肤，暗色主题还要再补一遍——已全部删除。
   现在只保留 JS 旧类名 .me-empty / .me-error 的尺寸兜底，颜色交给 .mstate。 */
.me-empty,
.me-error {
  min-height: 260px;
}
@media (max-width: 768px) {
  .me-empty,
  .me-error {
    min-height: 200px;
  }
}

/* SSR-safe fetch: sk visible; body kept in DOM (may be [hidden] by JS) */
.me-async--ssr-loading .me-async__sk { display: block; }
.me-async--ssr-loading.me-async--ready .me-async__sk { display: none !important; }


/* Entity detail card skeletons (left pane) */
.sk-cards {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: none;
}
.sk-cards__card {
  display: grid;
  gap: 10px;
}
.sk-cards__card .sk-bar--lg { height: 14px; width: 40%; }

/* Entity detail — right-rail identity profile skeleton */
.sk-edetail-profile {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--m-surface, #fff);
  border: 1px solid var(--m-line, #E5E6EB);
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.sk-edetail-profile__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sk-edetail-profile__mark {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.sk-edetail-profile__txt {
  flex: 1 1 auto;
  display: grid;
  gap: 8px;
  padding-top: 4px;
}
.sk-edetail-profile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sk-edetail-profile__mid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-text-placeholder, #86909C) 7%, #F7F8FA);
}
.sk-edetail-profile__stat {
  height: 48px;
  border-radius: 10px;
}
.sk-edetail-profile__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sk-edetail-profile__cta {
  height: 40px;
  border-radius: 12px;
}

/* ==========================================================================
 * DOM-mirroring skeletons (standard practice): reuse the REAL layout classes
 * (.mrow / .hboard / .ltable--mini) so size + position track the actual
 * content — including responsive breakpoints — instead of generic gray bars.
 * Placeholders stay on the brand-tinted pulse (--sk-base/--sk-shine).
 * ========================================================================== */

/* --- match-row: real .mrow grid (comp / t·h·sc·a / prob / tags) ---------- */
.sk-match-row .mrow.is-sk {
  pointer-events: none;
  user-select: none;
  background: transparent;
}
.sk-match-row .mrow.is-sk:hover { background: transparent; }
.sk-match-row .mrow.is-sk .mrow__nm { flex: 0 0 auto; }
.sk-match-row .mrow.is-sk .mrow__score { display: flex; align-items: center; justify-content: center; }
.sk-match-row .mrow.is-sk .mrow__bar { background: var(--sk-base); }
.sk-match-row .mrow.is-sk .mrow__bar i { background: var(--sk-shine); opacity: 1; }
.sk-match-row .sk-chip--crest { width: 20px; height: 20px; }
.sk-chip--lmark { width: 14px; height: 14px; border-radius: 4px; }
.sk-chip--stat { width: 46px; height: 14px; border-radius: 4px; }
.sk-sk__comp { width: 76px; height: 12px; }
.sk-sk__nm { height: 13px; }
/* 行高对齐真实 .mrow（≈128px，含标签行）：避免数据到达后高度跳变 */
.sk-match-row .mrow.is-sk { min-height: 128px; }
.sk-sk__date { width: 30px; height: 11px; }
.sk-sk__hm { width: 38px; height: 17px; }
.sk-sk__score { width: 44px; height: 20px; }
.sk-sk__plab { width: 52px; height: 14px; flex: 0 0 auto; }
.sk-chip--ftag { width: 64px; height: 20px; }
.sk-chip--ftag--sm { width: 46px; }

/* --- aside: real hboard card (title + league tabs + mini table) ---------- */
.sk-hboard { pointer-events: none; user-select: none; }
.sk-hboard .mcard__head { min-height: 0; margin: 0 0 var(--s2); padding: 0; }
.sk-hboard__title { display: block; width: 64px; height: 13px; }
.sk-hboard__tabs { margin: 0 0 2px; }
.sk-hboard__tab { display: inline-block; width: 44px; height: 22px; border-radius: 999px; }
.sk-hboard__tab--on { width: 52px; }
.sk-hboard__thtm { display: block; width: 34px; }
.sk-hboard__tmin { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; }
.sk-hboard__nm { display: block; flex: 1 1 auto; min-width: 0; height: 14px; }
.sk-hboard .sk-chip--crest { width: 20px; height: 20px; }

/* match-row group shells: real .mgroup card (white bg + radius) with header */
.sk-chip--lgmark { width: 20px; height: 20px; border-radius: 6px; }
.sk-sk__gname { width: 88px; height: 14px; }
.sk-sk__gcount { width: 28px; height: 10px; margin-left: auto; }

/* List rows: crest + name/sub, same slot as a standings / entity row (≈56px). */
.sk-list-item {
  grid-template-columns: 40px minmax(0, 1fr);
  min-height: 56px;
  gap: 12px;
  padding: 8px 0;
}
.sk-list-item .sk-chip--sq { width: 36px; height: 36px; border-radius: 50%; }
.sk-list-item__txt { display: grid; gap: 8px; min-width: 0; align-content: center; }
.sk-list-item__txt .sk-bar { height: 14px; }
.sk-list-item__txt .sk-bar--sm { height: 10px; }

/* News card: same stack as .icard (kicker, two-line title, body, match strip). */
.sk-news-card { min-height: 176px; align-content: start; gap: 10px; }
.sk-news__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sk-news-card .sk-news__kicker { width: 72px; height: 22px; }
.sk-news__time { width: 72px; height: 12px; }
.sk-news-card .sk-news__title { height: 20px; width: 94%; }
.sk-news-card .sk-news__title2 { height: 20px; width: 70%; }
.sk-news__line { display: block; height: 14px; width: 100%; }
.sk-news__line--s { width: 76%; }
.sk-news__match { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 4px; }
.sk-news__teams { flex: 1 1 auto; height: 14px; min-width: 0; }
.sk-news__sc { width: 48px; height: 18px; flex: none; }

/* Entity panes: a chart-sized block, then table rows at real row height. */
.sk-cards__block { display: block; height: 200px; border-radius: var(--r-m, 12px); }
.sk-cards__card--block { min-height: 248px; }
.sk-cards__rows { display: grid; }
.sk-cards__row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-top: 1px solid var(--m-line, var(--color-border, #E5E6EB));
}
.sk-cards__row .sk-chip--sq { width: 28px; height: 28px; border-radius: 50%; }
.sk-cards__row .sk-bar { height: 14px; }
.sk-cards__num { width: 28px; height: 12px; justify-self: end; }

.sk-jcard { min-height: 132px; }
.sk-jcard .sk-jcard__teams { min-height: 44px; }

/* Match pane placeholder — per-tab custom skeletons (match-tabs.js skeleton()).
   Cards carry shape-specific heights so the placeholder mirrors each real pane
   instead of two generic 360px blocks; only a modest floor prevents collapse. */
.mskel__card { min-height: 180px; }
.mskel__l { height: 14px; }
.mskel__l--h { height: 18px; }
.mskel__l--b { height: 248px; }          /* 通栏走势图 / 大图表 */
.mskel__l--half { height: 168px; }        /* 对决 / xG 半宽图表 */
.mskel__l--s { width: 60%; }
.mskel__l--row { height: 28px; border-radius: 8px; } /* 榜单 / 表格行 */
.mskel__l--w { width: 100%; }
.mskel__l--news { height: 150px; }
.mskel__l--pitch { height: 320px; border-radius: 12px; }
.mskel__card--wide { grid-column: 1 / -1; }
.mskel__card--art { min-height: 260px; }
.mskel__card--art .mskel__l--row { height: 16px; }   /* 正文段落行 */
.mskel__card--art .mskel__l--row:nth-child(4n) { width: 72%; }
/* 单列堆叠的页签（榜单/表格/长文）在桌面也保持单列，与真实 pane 一致 */
@media (min-width: 1024px) {
  .mskel--data, .mskel--analy, .mskel--cmp, .mskel--predict { grid-template-columns: 1fr; }
}

/* Detail left rail: same card as .mday .mday__r (crest 40, score, name, bar). */
.mday__sk { display: block; padding: 0 0 8px; gap: 0; }
.mday__sk .mday__gt,
.mday__sk .mday__r { pointer-events: none; cursor: default; }
.mday__sk .sk-pulse { display: block; }
.mday__sk .mday__meta-l,
.mday__sk .mday__gl { display: flex; align-items: center; gap: 8px; }
.mday-sk__mark { width: 20px; height: 20px; border-radius: 6px; }
.mday-sk__gname { width: 88px; height: 14px; }
.mday-sk__gname--s { width: 64px; }
.mday-sk__lg { width: 72px; height: 12px; }
.mday-sk__lg--s { width: 48px; }
.mday-sk__when { width: 64px; height: 12px; }
.mday-sk__jc { width: 40px; height: 14px; border-radius: 4px; }
.mday-sk__crest { width: 40px; height: 40px; border-radius: 50%; }
.mday-sk__nm { width: 72%; height: 13px; }
.mday-sk__nm--w { width: 88%; }
.mday-sk__nm--n { width: 56%; }
.mday-sk__score { width: 52px; height: 22px; }
.mday-sk__ht { width: 40px; height: 14px; margin-top: 4px; border-radius: 999px; }
.mday-sk__bar { width: 100%; height: 4px; border-radius: 2px; }

/* ---- 登录弹层（public/static/css/auth-modal.css） ---- */
/* Auth modal — white/paper card, Cursor-style 2-step, purple-on-paper chrome */
.me-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.me-auth-modal[hidden] { display: none !important; }
.me-auth-modal__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}
.me-auth-modal__panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  max-height: min(90vh, 600px);
  overflow: auto;
  padding: 1.1rem 1.25rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--m-line, var(--color-border, #E5E6EB));
  background: var(--m-surface, var(--color-paper, #fff));
  box-shadow: var(--shadow-card, 0 8px 28px rgba(0, 0, 0, 0.14));
  box-sizing: border-box;
}
.me-auth-modal__x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--m-text-3, #86909C);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.me-auth-modal__x:hover { color: var(--m-text, #1D2129); }
.me-auth-modal .authcard__head { text-align: center; margin: 0 0 0.8rem; padding-right: 1.25rem; padding-left: 1.25rem; }
.me-auth-modal .authcard__brand {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--m-brand, var(--color-primary, #794DFF));
}
.me-auth-modal .authcard__h {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--m-ink, var(--color-ink, #1D2129));
}
.me-auth-modal .authcard__p {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--m-text-3, #4E5969);
}
.me-auth-modal .mform { gap: 0.6rem; }
.me-auth-modal .mform__f > span:not(.mform__captcha) {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--m-text-2, #4E5969);
}
.me-auth-modal .mform__f input {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--m-line, #E5E6EB);
  background: var(--m-surface, #fff);
  color: var(--m-ink, var(--color-ink, #1D2129));
  box-sizing: border-box;
}
.me-auth-modal .mform__f input:focus {
  outline: none;
  border-color: var(--m-brand, #794DFF);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-brand, #794DFF) 22%, transparent);
}
.me-auth-modal .mform__f input[readonly] {
  background: color-mix(in srgb, var(--m-brand, #794DFF) 5%, var(--m-surface, #fff));
  cursor: default;
}
.me-auth-modal .me-auth-f--bare > span:first-child:not(.me-auth-pw) { display: none; }
.me-auth-modal .me-auth-fieldhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.1rem 0 -0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--m-text-2, #4E5969);
}
.me-auth-modal .me-auth-linkbtn {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--m-brand, #794DFF);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.me-auth-modal .me-auth-linkbtn:hover { text-decoration: underline; }
.me-auth-modal .me-auth-pw {
  position: relative;
  display: block;
  width: 100%;
}
.me-auth-modal .me-auth-pw input {
  width: 100%;
  padding-right: 3.4rem;
}
.me-auth-modal .me-auth-pw__toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--m-text-3, #86909C);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  line-height: 1;
}
.me-auth-modal .me-auth-pw__toggle:hover { color: var(--m-brand, #794DFF); }
.me-auth-modal .mform__captcha {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.me-auth-modal .mform__captcha input { flex: 1; min-width: 0; }
.me-auth-modal .mform__captcha img {
  flex: 0 0 auto;
  height: 40px;
  width: 120px;
  border-radius: 8px;
  border: 1px solid var(--m-line, #E5E6EB);
  cursor: pointer;
  background: var(--m-surface-2, #F7F8FA);
}
.me-auth-modal .mbtn--pri.mbtn--block {
  margin-top: 0.25rem;
  height: 44px;
  border-radius: 10px;
  font-weight: 650;
  background: var(--m-brand, var(--color-primary, #794DFF));
  color: #fff;
}
.me-auth-modal .mbtn--ghost {
  background: transparent;
  border: 1px solid var(--m-line, #E5E6EB);
  color: var(--m-text-2, #4E5969);
}
.me-auth-modal .authcard__alt {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--m-text-3, #86909C);
}
.me-auth-modal .authcard__alt a {
  color: var(--m-brand, #794DFF);
  font-weight: 600;
  text-decoration: none;
}
.me-auth-modal .authcard__alt a:hover { text-decoration: underline; }
.me-auth-modal .me-auth-modal__back { text-align: left; }
.me-auth-modal__fine {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--m-text-3, #86909C);
}
.me-auth-modal__fine a { color: var(--m-brand, #794DFF); }
html.me-auth-modal-open { overflow: hidden; }

/* small gray hint inline after field labels (optional / min 8 chars) */
.me-auth-labhint {
  margin: 0 0 0 4px;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  color: var(--m-text-3, #86909C);
}

/* ---- 页脚版权栏（public/static/css/colophon.css） ---- */
/* Site footer: brand + 3 accordion cols + legal bar. */
.colophon--grid {
  background: var(--color-paper-2, #f7f7f8);
  border-top: 1px solid var(--color-rule, #e5e7eb);
  padding: 48px 0 0;
  color: var(--color-muted, #6b7280);
}
.colophon--grid .colophon__inner {
  display: grid;
  grid-template-columns: minmax(18rem, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 32px 32px;
  align-items: start;
  padding-bottom: 36px;
}
.colophon--grid .colophon__brand {
  display: grid;
  gap: 14px;
  max-width: 20rem;
}
.colophon--grid .colophon__logo {
  justify-self: start;
}
.colophon--grid .colophon__tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted, #6b7280);
}
.colophon--grid .colophon__cols {
  display: contents;
}
.colophon--grid .colophon__group details {
  display: contents;
}
.colophon--grid .colophon__h {
  margin: 0 0 16px;
  color: var(--color-ink, #111);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  cursor: default;
}
/* Hide details marker on desktop */
.colophon--grid .colophon__h::-webkit-details-marker { display: none; }
.colophon--grid .colophon__h::marker { content: ''; }
.colophon--grid .colophon__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.colophon--grid .colophon__list a {
  color: var(--color-muted, #6b7280);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}
.colophon--grid .colophon__list a:hover {
  color: var(--color-ink, #111);
}
.colophon--grid .colophon__bar {
  border-top: 1px solid var(--color-rule, #e5e7eb);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 16px 0 28px;
}
.colophon--grid .colophon__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--color-muted, #6b7280);
}
.colophon--grid .colophon__note b {
  font-weight: 600;
  color: var(--color-ink-2, #4b5563);
}
.colophon--grid .colophon__note .me-mail {
  color: inherit;
}
.colophon--grid .colophon__copy {
  margin: 0;
  font-size: 13px;
  color: var(--color-muted, #6b7280);
  margin-left: auto;
}
.colophon--grid .colophon__mail {
  color: var(--color-muted, #6b7280);
  font-size: 14px;
}
.me-mail {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  unicode-bidi: isolate;
}
.me-mail:hover { text-decoration: underline; }
.me-mail__at {
  font-style: normal;
  font-weight: inherit;
}
.me-mail__at::before { content: "@"; }

.app.shell-land .colophon--grid,
.app.shell-about .colophon--grid {
  background: #050014;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(226, 238, 245, 0.62);
}
.app.shell-land .colophon--grid .colophon__h,
.app.shell-about .colophon--grid .colophon__h {
  color: #fff;
}
.app.shell-land .colophon--grid .colophon__tagline,
.app.shell-land .colophon--grid .colophon__list a,
.app.shell-land .colophon--grid .colophon__copy,
.app.shell-land .colophon--grid .colophon__note,
.app.shell-land .colophon--grid .colophon__mail,
.app.shell-about .colophon--grid .colophon__tagline,
.app.shell-about .colophon--grid .colophon__list a,
.app.shell-about .colophon--grid .colophon__copy,
.app.shell-about .colophon--grid .colophon__note,
.app.shell-about .colophon--grid .colophon__mail {
  color: rgba(226, 238, 245, 0.62);
}
.app.shell-land .colophon--grid .colophon__note b,
.app.shell-about .colophon--grid .colophon__note b {
  color: rgba(255, 255, 255, 0.82);
}
.app.shell-land .colophon--grid .colophon__list a:hover,
.app.shell-about .colophon--grid .colophon__list a:hover {
  color: #fff;
}
.app.shell-land .colophon--grid .colophon__bar,
.app.shell-about .colophon--grid .colophon__bar {
  border-top-color: rgba(255, 255, 255, 0.1);
}
.app.shell-about .colophon--grid .sitebar__brand-text,
.app.shell-land .colophon--grid .sitebar__brand-text {
  color: #fff;
}

/* Tablet: brand full-width + 2x2 cols */
@media (max-width: 899px) {
  .colophon--grid .colophon__inner {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 28px 24px;
  }
  .colophon--grid .colophon__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

/* Mobile: accordion */
@media (max-width: 559px) {
  .colophon--grid {
    padding-top: 32px;
  }
  .colophon--grid .colophon__inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 24px;
  }
  .colophon--grid .colophon__brand {
    margin-bottom: 20px;
  }
  .colophon--grid .colophon__cols {
    display: grid;
    gap: 0;
  }
  .colophon--grid .colophon__group {
    border-top: 1px solid var(--color-rule, #e5e7eb);
  }
  .app.shell-land .colophon--grid .colophon__group,
  .app.shell-about .colophon--grid .colophon__group {
    border-top-color: rgba(255, 255, 255, 0.08);
  }
  .colophon--grid .colophon__group details {
    display: block;
  }
  .colophon--grid .colophon__h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    margin: 0;
    font-size: 15px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .colophon--grid .colophon__h::after {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: var(--color-muted, #6b7280);
    transition: transform 0.2s;
  }
  .colophon--grid details[open] > .colophon__h::after {
    content: '\2212';
  }
  .colophon--grid .colophon__list {
    padding: 0 0 14px;
    gap: 12px;
  }
  .colophon--grid .colophon__bar {
    padding: 14px 0 24px;
  }
}

/* Marketing shells keep the footer on the phone; app pages still hide it under the tab bar. */
@media (max-width: 1023px) {
  .app.shell-land footer.colophon,
  .app.shell-about footer.colophon {
    display: block;
  }
}

/* Compact footer for inner pages: just a copyright bar. */
footer.colophon--min {
  background: var(--color-paper-2, #f7f7f8);
  border-top: 1px solid var(--color-rule, #e5e7eb);
  padding: 20px 0;
  color: var(--color-muted, #6b7280);
  font-size: var(--text-sm, 0.875rem);
}
.colophon--min .colophon__bar {
  display: block;
  padding: 0;
  text-align: center;
}
.colophon--min .colophon__copy {
  margin: 0;
}

/* ==== slim 页脚（非首页）：一行版权 + 必要链接 ============================
   决策：内页不再复述语言 / 主题切换——那两个开关在顶栏已经各有一处，
   页脚再放一遍就是同一功能两个入口。这里只留版权、来源、隐私、条款、联系。
   footer.colophon 的 display:none / 大 padding / 底色都在别处（m.css / site.css），
   选择器特意带 footer. 前缀，靠"后加载"压过它们。 */
footer.colophon--slim {
  display: block;
  margin-top: 24px;
  padding-block: 0;
  background: none;
  border-top: 1px solid var(--m-line, #e5e6eb);
  color: var(--m-text-3, #86909c);
  font-size: 12px;
  line-height: 1.6;
}
.colophon--slim .colophon__slim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 14px 0 18px;
}
.colophon--slim .colophon__copy { margin: 0; white-space: nowrap; }
.colophon--slim .colophon__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0;
}
.colophon--slim .colophon__links a,
.colophon--slim .colophon__links b + a {
  color: inherit;
  text-decoration: none;
}
.colophon--slim .colophon__links a:hover { color: var(--m-brand, #7c3aed); }
.colophon--slim .colophon__links a:focus-visible {
  outline: 2px solid var(--m-brand, #7c3aed);
  outline-offset: 2px;
  border-radius: 4px;
}
/* 手机上底栏已经有 tabbar，再加一行页脚只会抢底部空间，沿用现状隐藏。 */
@media (max-width: 767px) {
  footer.colophon--slim,
  footer.colophon--min { display: none; }
}

/* ---- 焦点环统一（public/static/css/focus.css） ---- */
/* 键盘焦点环：全站统一 2px 主色（框架文档 §B8）
   由 layout.html 内联加载，文档顺序在 app.css 之后；选择器保持与 legacy site.css
   同等特异度（0,1,1），以便同权重时靠后生效，避免 :where() 被层内规则压回去。
   输入类控件不在此列——它们常用边框变色表达焦点（见各自组件样式）。 */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--m-brand, #8E37D7);
  outline-offset: 2px;
}

/* 行 / 折叠头这类会被滚动容器裁切，描边画在内侧 */
:is(.mrow, .mday__r, .mday__gt, .mgroup__h, .sqrow, .ftag, .mtabs__i, .dtabbar__i):focus-visible {
  outline-offset: -2px;
}

