/* ---------------------------------------------------------------------------
   MC 整合包镜像站

   设计取向：像一张装箱清单，而不是宣传页。
   —— 全站以细线分区、以等宽数字对齐；没有卡片墙、没有渐变背景、没有插画。
   —— 列表是"行"，不是"卡片"；每行右侧是版本/体积/下载这三个最常看的数据。
   Pico CSS 只负责表单控件与基础排版，其余都是这里的样式。
   --------------------------------------------------------------------------- */

:root {
  --shell: 1140px;
  --shell-wide: 1340px;
  --rule: #e2e0d9;
  --rule-soft: #eeece6;
  --page: #ffffff;
  --sunken: #f7f6f2;
  --ink: #23231f;
  --dim: #6f6c64;
  --faint: #96938c;
  --link: #2f6b2c;
  --brand: #2f6b2c;
  --ok: #2f7d43;
  --warn: #8a6413;
  --danger: #a5342a;
  --radius: 2px;
}

:root:not([data-theme='dark']) {
  --pico-background-color: var(--page);
  --pico-color: var(--ink);
  --pico-primary: var(--link);
  --pico-primary-background: var(--link);
  --pico-primary-hover: #265723;
  --pico-primary-hover-background: #265723;
  --pico-primary-focus: rgba(47, 107, 44, 0.18);
  --pico-primary-inverse: #ffffff;
  --pico-secondary: #55534c;
  --pico-secondary-background: #f0efea;
  --pico-secondary-hover-background: #e6e4dd;
  --pico-secondary-inverse: var(--ink);
  --pico-form-element-background-color: #ffffff;
  --pico-form-element-border-color: #d8d6ce;
  --pico-form-element-color: var(--ink);
  --pico-form-element-placeholder-color: var(--faint);
  --pico-border-radius: var(--radius);
  --pico-muted-color: var(--dim);
  --pico-muted-border-color: var(--rule);
}

[data-theme='dark'] {
  --rule: #2f3129;
  --rule-soft: #26281f;
  --page: #151713;
  --sunken: #1c1e18;
  --ink: #e7e6df;
  --dim: #a09d94;
  --faint: #7d7a72;
  --link: #94cf84;
  --brand: #94cf84;
  --ok: #8ccf96;
  --warn: #d9b26a;
  --danger: #e99189;
  --pico-background-color: var(--page);
  --pico-color: var(--ink);
  --pico-primary: #6bb45c;
  --pico-primary-background: #3f7a34;
  --pico-primary-hover-background: #4b8d3e;
  --pico-primary-inverse: #0f140c;
  --pico-secondary-background: #262821;
  --pico-secondary-hover-background: #2f3129;
  --pico-secondary-inverse: var(--ink);
  --pico-form-element-background-color: #1b1d18;
  --pico-form-element-border-color: #383a31;
  --pico-form-element-color: var(--ink);
  --pico-muted-color: var(--dim);
  --pico-muted-border-color: var(--rule);
}

html {
  --pico-font-size: 100%;
  --pico-line-height: 1.55;
  --pico-font-family: system-ui, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  --pico-font-family-monospace: ui-monospace, 'Cascadia Mono', Consolas,
    'JetBrains Mono', Menlo, monospace;
  --pico-spacing: 0.85rem;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
}

/* 全站按钮默认贴合文字宽度，只有明确要求时才铺满（登录卡片）。 */
button,
button[type='submit'],
button[type='button'],
button[type='reset'],
input[type='submit'],
a[role='button'] {
  width: auto;
  padding: 0.34rem 0.7rem;
  font-size: 0.86rem;
  border-radius: var(--radius);
}

button.w-full {
  width: 100%;
}

/* 密集区域里的链接/标签式按钮：自己控制盒模型，避免继承 Pico 的按钮内边距 */
.btn,
button.btn,
a.btn,
label.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.16rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sunken);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--dim);
  text-decoration: none;
}

.btn--primary,
button.btn--primary,
a.btn--primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

[data-theme='dark'] .btn--primary {
  color: #101509;
}

.btn--ghost {
  background: none;
  border-color: transparent;
  color: var(--dim);
}

.btn--ghost:hover {
  background: var(--sunken);
  color: var(--ink);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  --pico-font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.45rem;
}

h2 {
  font-size: 1.05rem;
}

code {
  background: var(--sunken);
  border-radius: var(--radius);
  padding: 0.05rem 0.28rem;
  font-size: 0.85em;
}

pre code {
  padding: 0;
  background: none;
}

/* ------------------------------------------------------------------ 骨架 */

.shell,
.shell--wide {
  width: 100%;
  margin: 0 auto;
  padding: 0 1.15rem;
}

.shell {
  max-width: var(--shell);
}

.shell--wide {
  max-width: var(--shell-wide);
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--page);
  border-bottom: 1px solid var(--rule);
}

.top__bar {
  display: flex;
  align-items: stretch;
  gap: 0.2rem;
  min-height: 3.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tabs li {
  display: flex;
  flex: 0 0 auto;
}

.tabs a {
  display: flex;
  align-items: center;
  padding: 0 0.7rem;
  border-bottom: 2px solid transparent;
  color: var(--dim);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.tabs a:hover {
  color: var(--ink);
}

.tabs a[aria-current='page'] {
  border-bottom-color: var(--brand);
  color: var(--ink);
  font-weight: 600;
}

.top__side {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding-left: 0.6rem;
}

.top__side form {
  margin: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 1px solid var(--rule);
  background: none;
  color: var(--dim);
  font-size: 0.9rem;
  line-height: 1;
}

.icon-btn:hover {
  background: var(--sunken);
  color: var(--ink);
}

.foot {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding: 1.1rem 0;
  color: var(--faint);
  font-size: 0.8rem;
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
}

.foot a {
  color: var(--dim);
}

.main {
  padding: 1.4rem 0 3rem;
}

/* -------------------------------------------------------------- 小工具类 */

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.bar--end {
  justify-content: flex-end;
}

.push {
  margin-left: auto;
}

.grow {
  flex: 1 1 12rem;
  min-width: 0;
}

.right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.muted {
  color: var(--dim);
}

.faint {
  color: var(--faint);
}

.small {
  font-size: 0.8rem;
}

.mono,
.num {
  font-family: var(--pico-font-family-monospace);
  font-variant-numeric: tabular-nums;
}

.label {
  font-family: var(--pico-font-family-monospace);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.tight {
  margin: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.6rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.pre-wrap {
  white-space: pre-wrap;
}

.wrap-anywhere {
  overflow-wrap: anywhere;
}

.cell-clip {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-clip--sm {
  max-width: 12rem;
}

.scroll-box {
  max-height: 22rem;
  overflow: auto;
}

.center-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.text-danger {
  color: var(--danger);
}

.text-center {
  text-align: center;
}

.wrap--narrow {
  max-width: 34rem;
}

.wrap--form {
  max-width: 22rem;
}

.center-block {
  margin: 3rem auto 4rem;
  max-width: 22rem;
}

/* ------------------------------------------------- 概览数字（一行，不做卡片） */

.ledger {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 1.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.ledger__item {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.ledger__label {
  font-size: 0.78rem;
  color: var(--faint);
}

.ledger__value {
  font-family: var(--pico-font-family-monospace);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.ledger__value--brand {
  color: var(--brand);
}

.ledger__aside {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--dim);
}

/* ------------------------------------------------------------ 区块标题 */

.section {
  margin-top: 1.8rem;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.section__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.section__rule {
  flex: 1 1 2rem;
  height: 1px;
  background: var(--rule);
}

.section__meta {
  font-size: 0.78rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- 筛选条 */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.filters label {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--dim);
  white-space: nowrap;
}

.filters input,
.filters select {
  margin: 0;
  height: 2.1rem;
  padding: 0 0.5rem;
  font-size: 0.86rem;
}

.filters input[type='search'] {
  width: 14rem;
}

.filters .push form,
.filters form {
  margin: 0;
}

/* ----------------------------------------------------------- 整合包列表 */

.manifest {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.manifest li {
  list-style: none;
}

.m-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 0.2rem;
  border-bottom: 1px solid var(--rule-soft);
  color: inherit;
  text-decoration: none;
}

.m-row:hover {
  background: var(--sunken);
  text-decoration: none;
}

.m-row__thumb {
  flex: 0 0 auto;
  width: 3.4rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sunken);
  border: 1px solid var(--rule);
  color: var(--faint);
  font-size: 0.6rem;
}

.m-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-row__main {
  flex: 1 1 16rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.m-row__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
}

.m-row__sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--dim);
}

.m-row__tags {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.m-row__stats {
  flex: 0 0 auto;
  display: flex;
  gap: 1.2rem;
  padding-left: 0.6rem;
}

.m-row__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 3.6rem;
}

.m-row__stat i {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.m-row__stat b {
  font-family: var(--pico-font-family-monospace);
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- 详情页 */

.crumbs {
  font-size: 0.8rem;
  color: var(--faint);
}

.crumbs a {
  color: var(--dim);
}

.detail {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  margin-top: 0.9rem;
}

.cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sunken);
  border: 1px solid var(--rule);
  color: var(--faint);
  font-size: 0.75rem;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.detail__title {
  margin: 0;
  font-size: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.detail__summary {
  margin: 0.35rem 0 0;
  color: var(--dim);
  font-size: 0.88rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.55rem 1.4rem;
  margin: 0.9rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
}

.facts__row {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.facts__row dt {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.facts__row dd {
  margin: 0;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------- 表格 */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.datatable {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.datatable th,
.datatable td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: middle;
  text-align: left;
}

.datatable thead th {
  border-bottom: 1px solid var(--rule);
  font-family: var(--pico-font-family-monospace);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.datatable tbody tr:last-child td {
  border-bottom: 0;
}

.datatable tbody tr:hover td {
  background: var(--sunken);
}

.datatable .right,
.datatable .num {
  text-align: right;
  font-family: var(--pico-font-family-monospace);
  font-variant-numeric: tabular-nums;
}

.datatable .group td {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--sunken);
}

.datatable td:first-child,
.datatable thead th:first-child {
  min-width: 8rem;
}

.actions {
  text-align: right;
  white-space: nowrap;
}

.actions > * {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 0 0.15rem;
}

.actions button,
.actions a {
  font-size: 0.82rem;
}

.files {
  display: flex;
  gap: 0.45rem;
}

.file-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
  padding: 0.4rem 0;
}

/* --------------------------------------------------------------- 标记 */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.35rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sunken);
  color: var(--dim);
  font-size: 0.7rem;
  line-height: 1.55;
  white-space: nowrap;
}

.badge--ok {
  border-color: transparent;
  background: rgba(47, 125, 67, 0.12);
  color: var(--ok);
}

.badge--warn {
  border-color: transparent;
  background: rgba(138, 100, 19, 0.14);
  color: var(--warn);
}

.badge--brand {
  border-color: transparent;
  background: var(--brand);
  color: #fff;
}

[data-theme='dark'] .badge--brand {
  color: #101509;
}

.badge--plain {
  background: none;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* --------------------------------------------------------------- 图表 */

.chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 170px;
}

.chart__col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}

.chart__bar {
  width: 100%;
  min-height: 2px;
  background: var(--brand);
  opacity: 0.65;
}

.chart__col:hover .chart__bar {
  opacity: 1;
}

.chart__axis {
  display: flex;
  gap: 2px;
  margin-top: 0.3rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.25rem;
  font-family: var(--pico-font-family-monospace);
  font-size: 0.62rem;
  color: var(--faint);
}

.chart__tick {
  flex: 1 1 0;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
}

/* --------------------------------------------------------------- 分页 */

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-family: var(--pico-font-family-monospace);
  font-size: 0.82rem;
}

.pager a,
.pager span {
  min-width: 1.9rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}

.pager a:hover {
  background: var(--sunken);
}

.pager [aria-current='page'] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

[data-theme='dark'] .pager [aria-current='page'] {
  color: #101509;
}

.pager__info {
  border: 0;
  color: var(--faint);
}

/* --------------------------------------------------------------- 空状态 */

.empty {
  padding: 1.6rem 0.2rem;
  color: var(--faint);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

/* --------------------------------------------------------------- 表单 */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.8rem 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.field--wide {
  grid-column: 1 / -1;
}

.form-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.field__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.field__help {
  font-size: 0.74rem;
  color: var(--faint);
}

.field input,
.field select,
.field textarea {
  margin: 0;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.86rem;
}

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

.switch-row small {
  display: block;
  color: var(--faint);
  font-size: 0.73rem;
}

.notice {
  border-left: 3px solid var(--brand);
  background: var(--sunken);
  padding: 0.5rem 0.7rem;
  font-size: 0.84rem;
}

.notice--danger {
  border-left-color: var(--danger);
  color: var(--danger);
}

/* --------------------------------------------------------- 两栏排版 */

.split {
  display: grid;
  gap: 1.6rem;
  align-items: start;
}

.split--wide {
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
}

.split--even {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

/* --------------------------------------------------------------- 版本 */

.version-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.version-item:last-child {
  border-bottom: 0;
}

.version-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.version-item__title {
  font-family: var(--pico-font-family-monospace);
  font-size: 0.9rem;
  font-weight: 600;
}

.file-line__name {
  flex: 1 1 12rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}

.file-line__nums {
  font-family: var(--pico-font-family-monospace);
  font-size: 0.74rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.file-line__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

/* --------------------------------------------------------------- 上传 */

.upload-progress {
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
}

.progress {
  height: 4px;
  background: var(--sunken);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 120ms linear;
}

/* --------------------------------------------------------------- Markdown */

.md {
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 46rem;
  overflow-wrap: break-word;
}

.md > * + * {
  margin-top: 0.65rem;
}

.md h1,
.md h2,
.md h3,
.md h4 {
  margin-top: 1.2rem;
  line-height: 1.35;
}

.md ul,
.md ol {
  padding-left: 1.2rem;
}

.md blockquote {
  margin: 0;
  padding-left: 0.8rem;
  border-left: 3px solid var(--rule);
  color: var(--dim);
}

.md table {
  width: 100%;
  font-size: 0.84rem;
  border-collapse: collapse;
}

.md th,
.md td {
  border: 1px solid var(--rule);
  padding: 0.25rem 0.45rem;
  text-align: left;
}

.md img {
  max-width: 100%;
}

.md pre {
  background: var(--sunken);
  padding: 0.6rem 0.7rem;
  overflow-x: auto;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------- 提示条 */

.toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: min(20rem, calc(100vw - 2rem));
}

.toast {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand);
  background: var(--page);
  font-size: 0.84rem;
  animation: toast-in 140ms ease-out;
}

.toast strong {
  font-weight: 600;
}

.toast p {
  margin: 0.1rem 0 0;
  color: var(--dim);
  font-size: 0.78rem;
  word-break: break-all;
}

.toast--ok {
  border-left-color: var(--ok);
}

.toast--error {
  border-left-color: var(--danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
}

/* --------------------------------------------------------------- 响应式 */

@media (max-width: 1000px) {
  .detail,
  .split--wide {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .m-row {
    flex-wrap: wrap;
  }

  .m-row__stats {
    order: 3;
    width: 100%;
    padding-left: 0;
    justify-content: flex-start;
    gap: 1rem;
  }

  .m-row__stat {
    align-items: flex-start;
  }

  .top__bar {
    flex-wrap: wrap;
    padding: 0.45rem 0;
  }

  .tabs {
    order: 3;
    flex-basis: 100%;
  }

  .tabs a {
    padding: 0.3rem 0.55rem;
  }
}

@media (max-width: 560px) {
  .filters input[type='search'] {
    width: 100%;
  }

  .m-row__thumb {
    width: 2.6rem;
    height: 1.6rem;
  }
}

/* 键盘可达性保持一致 */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
