/* 榕影档案 · 公共样式（三屏共用）
   结构：顶栏 / 胶片齿孔 / 首屏 / 两栏 / 列表 / 表格 / 侧栏 / 页脚 */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--s5);
  padding-right: var(--s5);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--dark);
  color: var(--on-dark);
  position: relative;
  z-index: 10;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--s6);
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
}

.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--r-sm);
  letter-spacing: 0;
  line-height: 1;
  padding-bottom: 2px;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: var(--fs-md); font-weight: 600; letter-spacing: 0.12em; }
.brand__text span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--on-dark-muted);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: var(--s5); }

.nav__link {
  font-size: var(--fs-sm);
  color: var(--on-dark-muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav__link:hover { color: var(--on-dark); }
.nav__link.is-active { color: var(--on-dark); border-bottom-color: var(--accent); }

.topbar__tools { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }

.search {
  display: flex;
  align-items: center;
  gap: var(--s2);
  height: 34px;
  padding: 0 var(--s3);
  background: var(--dark-2);
  border: 1px solid var(--dark-3);
  border-radius: var(--r-sm);
  width: 190px;
  transition: border-color 0.18s ease;
}
.search:focus-within { border-color: var(--gold); }
.search svg { flex-shrink: 0; color: var(--on-dark-muted); }
.search input {
  height: 32px;
  border: 0; background: transparent; outline: none;
  color: var(--on-dark);
  font-size: var(--fs-sm);
  width: 100%;
}
.search input::placeholder { color: #7e8d82; }

/* 胶片齿孔 */
.filmstrip {
  height: 11px;
  background-color: var(--dark-2);
  background-image: repeating-linear-gradient(
    90deg,
    var(--bg) 0 9px,
    transparent 9px 27px
  );
  background-size: 27px 5px;
  background-repeat: repeat-x;
  background-position: 0 center;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 34px;
  padding: 0 var(--s4);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn svg { flex-shrink: 0; }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }

.btn--ghost { border-color: rgba(236, 232, 218, 0.26); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--gold); color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn--outline { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.btn--outline:hover { border-color: var(--text); }

.btn--dark { background: var(--dark); color: var(--on-dark); }
.btn--dark:hover { background: var(--dark-2); }

.btn--lg { height: 40px; padding: 0 var(--s5); font-size: var(--fs-base); }

/* ---------- 首屏 ---------- */
.hero {
  background: var(--dark);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(236, 232, 218, 0.045) 0 1px, transparent 1px 92px),
    radial-gradient(80% 120% at 78% 0%, rgba(217, 167, 88, 0.13), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--s7);
  align-items: end;
  padding-top: var(--s7);
  padding-bottom: var(--s7);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--s4);
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: var(--fs-3xl);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: 0.01em;
  max-width: 17em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero__desc {
  margin-top: var(--s4);
  max-width: 34em;
  color: var(--on-dark-muted);
  font-size: var(--fs-md);
  line-height: 1.75;
}
.hero__actions { display: flex; gap: var(--s3); margin-top: var(--s5); }

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(236, 232, 218, 0.16);
  border-left: 1px solid rgba(236, 232, 218, 0.16);
}
.hero__stat {
  padding: var(--s4) var(--s5);
  border-right: 1px solid rgba(236, 232, 218, 0.16);
  border-bottom: 1px solid rgba(236, 232, 218, 0.16);
}
.hero__stat dt {
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
  letter-spacing: 0.08em;
}
.hero__stat dd {
  margin: var(--s1) 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  line-height: 1.2;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}
.hero__stat dd small { font-size: var(--fs-xs); color: var(--on-dark-muted); margin-left: 2px; }

/* ---------- 主区两栏 ---------- */
.layout > * { min-width: 0; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s6);
  padding-top: var(--s6);
  padding-bottom: var(--s7);
}

.stack { display: flex; flex-direction: column; gap: var(--s6); }

/* ---------- 公告条 ---------- */
.notice {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s5);
  padding: 10px var(--s4);
  border: 1px solid #e6cdb6;
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: #6b4526;
}
.notice__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  flex-shrink: 0;
  padding-right: var(--s3);
  border-right: 1px solid #e0c1a5;
}
.notice a { color: #6b4526; text-decoration: underline; text-decoration-color: #d9ac86; text-underline-offset: 3px; }
.notice a:hover { color: var(--accent-hover); }
.notice time { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: #6f4a2c; flex-shrink: 0; }

/* ---------- 区块标题 ---------- */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: var(--s2);
}
.sec-head__title {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sec-head__title::before {
  content: "";
  width: 4px; height: 15px;
  background: var(--accent);
  align-self: center;
  margin-right: var(--s1);
}
.sec-head__count {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--faint);
  font-weight: 400;
}
.sec-head__more { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; display: inline-block; padding: 3px 0; }
.sec-head__more:hover { color: var(--accent); }

/* ---------- 帖子信息流 ---------- */
.feed { border-top: 1px solid var(--line); }

.feed__item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: var(--s4);
  align-items: center;
  padding: var(--s3) var(--s2);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.feed__item:hover { background: var(--surface); }

.feed__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
  padding-left: var(--s2);
  border-left: 2px solid var(--surface-3);
  font-family: var(--font-mono);
}
.feed__item:hover .feed__date { border-left-color: var(--accent); }
.feed__date b { font-size: var(--fs-base); font-weight: 600; color: var(--text); }
.feed__date em { font-style: normal; font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }

.feed__body { min-width: 0; }
.feed__title {
  display: block;
  font-size: var(--fs-base);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.feed__title:hover { color: var(--accent); }
.feed__title b { font-weight: 400; }
.feed__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--s3);
  margin-top: 5px;
  font-size: var(--fs-xs);
  color: var(--faint);
}
.feed__meta .access { flex-shrink: 0; }
.feed__stat {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--faint);
  text-align: right;
  min-width: 52px;
}
.feed__stat b { display: block; font-weight: 600; color: var(--muted); font-size: var(--fs-base); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  white-space: nowrap;
}
.tag--accent { color: var(--accent-text); border-color: #e7c8b2; background: var(--accent-soft); }
.tag--green { color: var(--green); border-color: #c4d6c9; background: #edf3ee; }
.tag--us { color: #2c4a6b; border-color: #c2d1e0; background: #eef3f8; }

/* ---------- 版块表格 ---------- */
.block { background: transparent; }

.block__head {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s3);
}
.block__head h2 {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.block__head h2::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}
.block__head span {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--faint);
}

.forum-table {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.forum-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 64px 224px;
  gap: var(--s4);
  align-items: center;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.forum-row:last-child { border-bottom: 0; }
.forum-row--head {
  background: var(--surface-2);
  padding-top: 7px;
  padding-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.forum-row--head span:nth-child(n + 2) { text-align: center; }

a.forum-row:hover { background: #fdfcf8; }
a.forum-row:hover .forum-name { color: var(--accent); }

.forum-row__main { display: flex; gap: var(--s3); min-width: 0; }
.forum-row__main > div { min-width: 0; }

.forum-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  padding-top: 4px;
  letter-spacing: 0.04em;
}

.forum-name {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-base);
  font-weight: 600;
  transition: color 0.15s ease;
}
.forum-desc {
  margin-top: 3px;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forum-mod {
  margin-top: 4px;
  font-size: 12px;
  color: var(--faint);
}
.forum-mod b { font-weight: 500; color: var(--muted); }

.forum-num {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.forum-num b { display: block; font-size: var(--fs-base); font-weight: 600; color: var(--text); }
.forum-num em { font-style: normal; font-size: 12px; color: var(--faint); }

.forum-last {
  font-size: var(--fs-xs);
  color: var(--muted);
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: var(--s4);
}
.forum-last a,
.forum-last__title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: var(--fs-sm);
}
.forum-last a:hover { color: var(--accent); }
.forum-last__title { padding: 2px 0; }
.forum-last span { display: block; margin-top: 2px; color: var(--faint); }

/* 版块分栏标题条 */
.cate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  margin-top: var(--s5);
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.cate-bar h2 { font-size: var(--fs-base); font-weight: 600; letter-spacing: 0.06em; display: flex; align-items: center; gap: var(--s2); }
.cate-bar h2::before {
  content: "";
  width: 14px; height: 1px; background: var(--gold);
}
.cate-bar span { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-muted); letter-spacing: 0.06em; }
.cate-bar + .forum-table { border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); }

/* ---------- 侧栏 ---------- */
.side { display: flex; flex-direction: column; gap: var(--s4); }

.card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--s4);
  box-shadow: var(--shadow-sm);
}
.card__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s3);
}
.card__title span { font-family: var(--font-mono); font-weight: 400; color: var(--faint); font-size: var(--fs-xs); }

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s2); margin: 0; }
.metrics div { display: flex; flex-direction: column; }
.metrics dt { font-size: var(--fs-xs); color: var(--faint); }
.metrics dd {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.metrics dd small { font-size: var(--fs-xs); font-weight: 400; color: var(--faint); margin-left: 2px; }

.card__foot {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px dashed var(--line);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.card__foot a { color: var(--accent-text); display: inline-block; padding: 3px 0; }
.card__foot a:hover { text-decoration: underline; }

/* 在线用户 */
.avatars { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px 0 3px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
}
.chip i {
  width: 19px; height: 19px;
  display: grid; place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  border-radius: 1px;
  background: var(--c, var(--dark-3));
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }

/* 友链 */
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.links a {
  font-size: var(--fs-xs);
  color: var(--muted);
  padding: 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.links a:hover { color: var(--accent); }

/* ---------- 站内搜索 ---------- */
.search-hero { padding: var(--s5) 0 var(--s4); }
.search-hero h1 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: 0.02em; }
.search-hero p { margin-top: var(--s1); font-size: var(--fs-sm); color: var(--muted); }

.search-big { display: flex; gap: var(--s2); margin-top: var(--s4); }
.search-big input {
  flex: 1;
  height: 50px;
  padding: 0 var(--s4);
  font: inherit;
  font-size: var(--fs-md);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  outline: none;
}
.search-big input:focus { border-color: var(--accent); }
.search-big button { height: 50px; padding: 0 var(--s5); font-size: var(--fs-base); }

.search-hint { margin-top: var(--s2); font-size: 12px; color: var(--faint); }
.hot { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.hot a {
  padding: 4px var(--s2);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
}
.hot a:hover { border-color: var(--line-strong); color: var(--text); }

.result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line-strong);
  margin-top: var(--s5);
}
.result-head h2 { font-size: var(--fs-md); font-weight: 600; }
.result-head span { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

.results { border-top: 1px solid var(--line); }
.result {
  display: block;
  padding: var(--s3) var(--s2);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.result:hover { background: var(--surface); }
.result h3 { font-size: var(--fs-base); font-weight: 600; line-height: 1.55; color: var(--text); }
.result:hover h3 { color: var(--accent); }
.result p { margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.result__meta { display: flex; flex-wrap: wrap; gap: 2px var(--s3); margin-top: 6px; font-size: 12px; color: var(--faint); }
.result__meta b { font-weight: 500; color: var(--muted); }

.empty {
  margin-top: var(--s4);
  padding: var(--s7) var(--s4);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
}
.empty strong { display: block; font-size: var(--fs-md); color: var(--text); margin-bottom: var(--s1); }

/* ---------- 登录 / 注册 ---------- */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s4); }
.auth-grid .form-card { padding: var(--s5); }
.auth-grid .form-card > p { margin-bottom: var(--s3); }
.auth-grid .field { margin-bottom: var(--s3); }
.auth-grid .form-actions { margin-top: var(--s4); }
.auth-foot { margin-top: var(--s3); font-size: 12px; color: var(--faint); }
.auth-foot a { color: var(--accent-text); }

/* 单选、复选、上传 */
.choice-row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.choice-row label { display: inline-flex; align-items: flex-start; gap: 7px; font-size: 14px; color: var(--text); line-height: 1.65; }
.choice-row input { margin-top: 3px; }

.field input[type="radio"],
.field input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  margin: 0;
  display: inline-grid;
  place-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.field input[type="radio"] { border-radius: 50%; }
.field input[type="checkbox"]::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transition: transform 0.12s ease;
}
.field input[type="radio"]::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 0.12s ease;
}
.field input[type="checkbox"]:checked,
.field input[type="radio"]:checked { background: var(--accent); border-color: var(--accent); }
.field input[type="checkbox"]:checked::before,
.field input[type="radio"]:checked::before { transform: scale(1); }
.field input[type="checkbox"]:focus-visible,
.field input[type="radio"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-actions .hint a { display: inline-block; padding: 4px 0; }

.file-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s3);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 12px;
  color: var(--faint);
}
.file-box input { font-size: 12px; color: var(--muted); }

/* ---------- 条款页 ---------- */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s6); align-items: start; margin-top: var(--s4); }

.doc-nav {
  position: sticky;
  top: var(--s4);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
.doc-nav h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--faint); margin-bottom: var(--s2); }
.doc-nav ol { display: flex; flex-direction: column; gap: 2px; }
.doc-nav a { display: block; padding: 5px 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.doc-nav a:hover { color: var(--accent); }
.doc-nav .doc-updated { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px dashed var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

.doc-body { max-width: 44em; }
.doc-body h2 {
  margin: var(--s6) 0 var(--s3);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
}
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h3 { margin: var(--s5) 0 var(--s2); font-size: var(--fs-md); font-weight: 600; }
.doc-body p { max-width: 40em; margin-bottom: var(--s3); font-size: var(--fs-base); line-height: 1.85; color: #232a24; }
.doc-body ul { display: flex; flex-direction: column; gap: 6px; margin: var(--s2) 0 var(--s4); }
.doc-body li { display: flex; gap: var(--s2); font-size: var(--fs-base); line-height: 1.8; color: #232a24; }
.doc-body li::before { content: "—"; color: var(--line-strong); flex-shrink: 0; }
.doc-body strong { font-weight: 600; }
.doc-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: var(--s8) 0 var(--s7); }
.notfound__code {
  font-family: var(--font-mono);
  font-size: 96px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--dark);
  font-weight: 600;
}
.notfound h1 { margin-top: var(--s3); font-size: var(--fs-xl); font-weight: 600; }
.notfound__desc { max-width: 34em; margin: var(--s3) auto 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.8; }
.notfound .search-big { max-width: 520px; margin: var(--s5) auto 0; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s5); }

/* ---------- 版本对照表 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.version-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.version-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px var(--s3);
  background: var(--dark);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: left;
  white-space: nowrap;
}
.version-table tbody td {
  padding: 11px var(--s3);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.version-table tbody tr:last-child td { border-bottom: 0; }
.version-table tbody tr:hover { background: var(--bg); }
.version-table .film a { display: inline-block; padding: 3px 0; font-weight: 600; color: var(--text); }
.version-table .film a:hover { color: var(--accent); }
.version-table .film small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--faint); }
.version-table td.mono { color: var(--muted); font-size: 12px; white-space: nowrap; }

.v-mark {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}
.v-mark--4k { color: #fff; background: var(--dark); }
.v-mark--2k { color: var(--accent-text); background: var(--accent-soft); }
.v-mark--hd { color: var(--muted); background: var(--surface-2); }
.v-mark--none { color: var(--faint); background: transparent; }

.table-note { margin-top: var(--s2); font-size: 12px; color: var(--faint); line-height: 1.7; }
.side--triple { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
@media (max-width: 900px) { .side--triple { grid-template-columns: 1fr; } }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin: var(--s4) 0 var(--s3);
}
.filter-bar .tabs a { border: 1px solid var(--line); background: var(--surface); }
.filter-bar .tabs a.is-active { border-color: var(--dark); }
.filter-bar__count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

.legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s3); font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 片目总表 ---------- */
.catalog-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
.catalog-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px var(--s3);
  background: var(--dark);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: left;
  white-space: nowrap;
}
.catalog-table tbody td { padding: 10px var(--s3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.catalog-table tbody tr:last-child td { border-bottom: 0; }
.catalog-table tbody tr:hover { background: var(--bg); }
.catalog-table .year { color: var(--muted); font-size: 12px; }
.catalog-table .film a { display: inline-block; padding: 2px 0; font-weight: 600; color: var(--text); }
.catalog-table .film a:hover { color: var(--accent); }
.catalog-table .film small {
  display: block;
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--faint);
  text-transform: uppercase;
}
.catalog-table .row-link { display: inline-block; padding: 3px 0; font-size: 12px; color: var(--accent-text); white-space: nowrap; }
.catalog-table .row-link:hover { text-decoration: underline; }

.filter-stack { display: flex; flex-direction: column; gap: var(--s2); margin: var(--s4) 0 0; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.filter-row__label { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.06em; margin-right: var(--s1); }
.filter-row .tabs { overflow: visible; flex-wrap: wrap; }
.filter-row .tabs a { border: 1px solid var(--line); background: var(--surface); }
.filter-row .tabs a.is-active { border-color: var(--dark); }
.catalog-count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

.bars { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }
.bar-row { display: grid; grid-template-columns: 52px 1fr 34px; gap: var(--s2); align-items: center; font-size: 12px; color: var(--muted); }
.bar-row i { display: block; height: 8px; background: var(--accent); border-radius: 1px; }
.bar-row em { font-style: normal; font-family: var(--font-mono); text-align: right; color: var(--faint); }

/* ---------- 海报 ---------- */
.poster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: var(--s4); }

.poster-card { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.poster-card__img {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--dark);
  box-shadow: var(--shadow);
}
.poster-card__img img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.poster-card:hover .poster-card__img img { transform: scale(1.035); }
.poster-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.poster-card h3,
.poster-card__body strong { display: block; font-size: var(--fs-base); font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-card h3 a:hover { color: var(--accent); }
.poster-card p,
.poster-card__body span { font-size: 12px; color: var(--faint); }
.price-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 2px;
  background: var(--gold);
  color: #2e2008;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.poster-card__img .price-badge { position: absolute; top: var(--s2); right: var(--s2); }
.article__meta .price-badge { color: #8a4317; font-weight: 500; }

/* 列表缩略图 */
.thread__poster { flex-shrink: 0; width: 54px; }
.thread__poster img {
  width: 54px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
  background: var(--dark);
  display: block;
}

.poster-thumb {
  width: 36px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
  background: var(--dark);
  flex-shrink: 0;
}
.film-cell { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.film-cell > div { min-width: 0; }

/* 帖子页海报 */
.article__head { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.article__poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--dark);
  box-shadow: var(--shadow);
  display: block;
}

/* VIP 下载区 */
.btn--gold { background: var(--gold); color: #2e2008; }
.btn--gold:hover { background: #c9963f; }

.vip-gate {
  margin: var(--s4) 0;
  padding: var(--s5);
  border: 1px solid #dfc48d;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fbf3e2, #f6e8cf);
}
.vip-gate__top { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.vip-gate h3 { font-size: var(--fs-md); font-weight: 600; color: #3d2a0c; }
.vip-gate p { margin-top: var(--s2); font-size: var(--fs-sm); line-height: 1.8; color: #6b4a2c; }
.vip-gate__list { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-top: var(--s3); font-size: 12px; color: #7a5530; }
.vip-gate__list li { display: flex; align-items: center; gap: 6px; }
.vip-gate__list li::before { content: "·"; color: #b58a4a; }
.vip-gate__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

.masked {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s3);
  padding: var(--s2) var(--s3);
  border: 1px dashed #d3b47c;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8a6a3e;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

/* VIP 页面 */
.vip-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s6);
  align-items: center;
  padding: var(--s6) 0 var(--s4);
}
.vip-hero h1 { font-size: var(--fs-2xl); font-weight: 600; line-height: 1.3; letter-spacing: 0.01em; }
.vip-hero p { margin-top: var(--s3); max-width: 36em; font-size: var(--fs-sm); color: var(--muted); line-height: 1.8; }
.vip-hero__card {
  padding: var(--s5);
  border: 1px solid #dfc48d;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fdf7ea, #f4e5c9);
}
.vip-hero__card h2 { font-size: var(--fs-sm); color: #7a5530; letter-spacing: 0.04em; }
.vip-hero__card strong { display: block; margin-top: var(--s2); font-family: var(--font-mono); font-size: 34px; color: #3d2a0c; }
.vip-hero__card span { font-size: 12px; color: #8a6a3e; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s4); }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.plan--featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.plan__flag {
  position: absolute;
  top: -11px;
  left: var(--s4);
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--gold);
  color: #2e2008;
  font-size: 12px;
  font-family: var(--font-mono);
}
.plan h2 { font-size: var(--fs-md); font-weight: 600; }
.plan__price { font-family: var(--font-mono); font-size: 34px; font-weight: 600; line-height: 1.2; }
.plan__price small { font-size: 12px; color: var(--faint); font-weight: 400; }
.plan p { font-size: 12px; color: var(--muted); }
.plan ul { display: flex; flex-direction: column; gap: 6px; margin: var(--s2) 0 var(--s4); font-size: 13px; color: var(--text); }
.plan li { display: flex; gap: 6px; }
.plan li::before { content: "✓"; color: var(--green); flex-shrink: 0; }
.plan .btn { margin-top: auto; }

/* ---------- 资源权限 ---------- */
.access {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 7px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  line-height: 1;
}
.access--vip { background: var(--gold); color: #2e2008; }
.access--coin { background: #fdf2e2; color: #8a4317; border: 1px solid #eccfae; }
.access--coin::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}
.access--free { background: #e7f0ea; color: var(--green); }

/* 金币购买面板 */
.buy-panel {
  margin: var(--s4) 0;
  padding: var(--s5);
  border: 1px solid #e6c9a5;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fdf7ee, #f8ebda);
}
.buy-panel__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.buy-panel h3 { font-size: var(--fs-md); font-weight: 600; color: #43301c; }
.buy-panel__price { display: flex; align-items: baseline; gap: var(--s2); margin-top: var(--s3); }
.buy-panel__price b { font-family: var(--font-mono); font-size: var(--fs-2xl); line-height: 1; color: #8a4317; }
.buy-panel__price span { font-size: 12px; color: #8a6a3e; }
.buy-panel p { margin-top: var(--s2); font-size: var(--fs-sm); line-height: 1.8; color: #6b4a2c; }
.buy-panel__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s4); }
.buy-panel__row .balance { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: #8a6a3e; }

/* 金币页 */
.coin-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s4); }
.coin-pack {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.coin-pack--featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.coin-pack h2 { font-size: var(--fs-md); font-weight: 600; }
.coin-pack__amount { font-family: var(--font-mono); font-size: var(--fs-2xl); font-weight: 600; color: #8a4317; line-height: 1.1; }
.coin-pack__amount small { font-size: 12px; color: var(--faint); font-weight: 400; }
.coin-pack p { font-size: 12px; color: var(--muted); }
.coin-pack .btn { margin-top: auto; }

/* ---------- 怀旧质感 ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: 6%;
  width: 54%;
  height: 190%;
  background: radial-gradient(ellipse at top, rgba(217, 167, 88, 0.18), transparent 62%);
  transform: rotate(9deg);
  pointer-events: none;
}

.poster-card__img { box-shadow: 0 0 0 1px rgba(18, 29, 24, 0.55), 0 8px 22px rgba(18, 29, 24, 0.2); }
.poster-card__img::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(236, 232, 218, 0.22);
  pointer-events: none;
}

.price-badge { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }

.reel-rule {
  height: 9px;
  margin: var(--s6) 0;
  background-image: repeating-linear-gradient(90deg, var(--line-strong) 0 7px, transparent 7px 17px);
  background-size: 17px 5px;
  background-repeat: repeat-x;
  background-position: 0 center;
  opacity: 0.7;
}

/* ---------- 后台 ---------- */
.admin-bar { background: var(--dark-2); color: var(--on-dark-muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
.admin-bar .wrap { display: flex; align-items: center; gap: var(--s4); min-height: 36px; }
.admin-bar b { color: var(--gold); font-weight: 500; }
.admin-bar a { margin-left: auto; color: var(--on-dark); display: inline-block; padding: 6px 0; }
.admin-bar a:hover { color: var(--gold); }

.admin-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s6); margin-top: var(--s4); align-items: start; }
.admin-layout > * { min-width: 0; }

.admin-nav {
  position: sticky;
  top: var(--s4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: var(--s3);
}
.admin-nav h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--faint); padding: 0 var(--s2) var(--s2); }
.admin-nav a { display: block; padding: 7px var(--s2); font-size: 13px; color: var(--muted); border-left: 2px solid transparent; }
.admin-nav a:hover { color: var(--text); background: var(--bg); }
.admin-nav a.is-active { color: var(--text); border-left-color: var(--accent); background: var(--bg); }

.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--line-strong); }
.admin-head h1 { font-size: var(--fs-xl); font-weight: 600; }
.admin-head p { margin-top: var(--s1); font-size: 12px; color: var(--faint); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin-top: var(--s4); }
.stat-card { padding: var(--s4); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.stat-card dt { font-size: 12px; color: var(--faint); }
.stat-card dd { margin: var(--s1) 0 0; font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: 600; line-height: 1.2; }
.stat-card span { display: block; margin-top: var(--s1); font-size: 12px; color: var(--muted); }

.admin-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); margin-top: var(--s4); }
.admin-toolbar .field { min-width: 160px; }
.admin-toolbar .field label { font-size: 12px; color: var(--muted); }

.money--in { color: var(--green); }
.money--out { color: var(--accent-text); }
.code { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.status-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 2px; font-size: 12px; }
.status-pill--ok { color: var(--green); background: #e7f0ea; }
.status-pill--used { color: var(--muted); background: var(--surface-2); }
.status-pill--void { color: var(--accent-text); background: var(--accent-soft); }

.mini-btn {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
}
.mini-btn:hover { border-color: var(--text); color: var(--text); }

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--s5);
  transform: translateX(-50%) translateY(12px);
  padding: 10px var(--s4);
  border-radius: var(--r-sm);
  background: var(--dark);
  color: var(--on-dark);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10000;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

.panel[hidden] { display: none; }

/* ---------- 碟讯 ---------- */
.release-feature {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
  margin-top: var(--s4);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}
.release-feature:hover { border-color: var(--text); }
.release-feature__poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.release-feature__kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent-text); }
.release-feature h2 { margin-top: var(--s2); font-size: var(--fs-lg); font-weight: 600; line-height: 1.5; }
.release-feature__meta { margin-top: var(--s2); font-size: var(--fs-xs); color: var(--muted); line-height: 1.8; }
.release-feature__meta b { font-weight: 500; color: var(--faint); margin-right: 6px; }
.release-feature__specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--s3); }

.release-gallery { display: flex; flex-wrap: wrap; gap: var(--s4); margin: var(--s4) 0; }
.release-gallery figure { flex: 0 0 176px; max-width: 176px; margin: 0; }
.release-gallery img { width: 100%; height: auto; border-radius: var(--r-sm); display: block; background: var(--dark); }
.release-gallery figcaption { margin-top: 6px; font-size: 12px; color: var(--faint); }

.release-credits { display: flex; flex-direction: column; gap: 3px; margin-top: var(--s3); font-size: var(--fs-sm); line-height: 1.8; }
.release-credits b { display: inline-block; width: 3.5em; color: var(--faint); font-weight: 400; }
.release-credits em { font-style: normal; color: var(--muted); font-size: 12px; }

.feature-list { display: flex; flex-direction: column; margin: var(--s2) 0 var(--s4); }
.feature-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-sm);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .time { font-family: var(--font-mono); font-size: 12px; color: var(--faint); flex-shrink: 0; }

/* ---------- 页脚 ---------- */
.footer {
  margin-top: var(--s7);
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: var(--fs-sm);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s6);
  padding-top: var(--s7);
  padding-bottom: var(--s6);
}
.footer h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: 0.08em;
  margin-bottom: var(--s3);
}
.footer p { font-size: var(--fs-xs); line-height: 1.8; margin: 0; max-width: 30em; }
.footer ul { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-xs); }
.footer ul a { display: inline-block; padding: 3px 0; }
.footer a:hover { color: var(--on-dark); }
.footer__brand { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
.footer__brand .brand__mark { width: 32px; height: 32px; font-size: 18px; }
.footer__brand strong { color: var(--on-dark); font-size: var(--fs-base); letter-spacing: 0.1em; }
.footer__brand span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; display: block; margin-top: 2px; }

.footer__bottom {
  border-top: 1px solid rgba(236, 232, 218, 0.12);
  padding: var(--s4) 0 var(--s5);
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  font-size: 12px;
  color: #8b9a8f;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  padding: var(--s4) 0;
  font-size: var(--fs-xs);
  color: var(--faint);
}
.crumb a { display: inline-block; padding: 3px 0; white-space: nowrap; }
.crumb a:hover { color: var(--accent); }
.crumb span { color: var(--faint); }

/* ---------- 分页 ---------- */
.pager {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s5);
}
.pager a,
.pager span {
  min-width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  background: var(--surface);
}
.pager a:hover { border-color: var(--text); color: var(--text); }
.pager .is-current { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.pager__dots { border: 0; background: transparent; }
.pager__total { margin-left: auto; border: 0; background: transparent; color: var(--faint); }
.pager a, .pager span { white-space: nowrap; flex-shrink: 0; }

/* ---------- 厂牌资讯 ---------- */
.label-feed { border-top: 1px solid var(--line); }

.label-news {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 56px;
  gap: var(--s4);
  align-items: center;
  padding: var(--s3) var(--s2);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.label-news:hover { background: var(--surface); }
.label-news h3 { font-size: var(--fs-base); font-weight: 600; line-height: 1.5; }
.label-news p { margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }
.label-news__date { text-align: right; font-size: var(--fs-xs); color: var(--faint); }

.label-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 24px;
  padding: 0 var(--s2);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--muted);
  background: var(--surface-2);
}
.label-badge--arrow { color: #9c211c; border-color: #e3bbb6; background: #fbeeed; }
.label-badge--vinegar { color: #6b5a00; border-color: #dfd29a; background: #f7f2dc; }
.label-badge--shout { color: #1f4a7a; border-color: #c2d4e6; background: #eef3fa; }
.label-badge--88 { color: #4a3520; border-color: #d8c8b4; background: #f5f0e8; }
.label-badge--eureka { color: #2f6b50; border-color: #c4d6c9; background: #edf3ee; }
.label-badge--criterion { color: #3d3d3d; border-color: #cfcfc9; background: #f2f2ee; }

/* 资讯卡片 */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s4); }

.news {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--s4);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.news:hover { border-color: var(--line-strong); background: #fdfcf8; }

.news__poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) 4px;
  min-height: 148px;
  border-radius: 2px;
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
}
.news__year { font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: 0.1em; }
.news__t { writing-mode: vertical-rl; font-size: var(--fs-md); font-weight: 600; letter-spacing: 0.12em; line-height: 1.3; color: #f2eee2; }
.news__label { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-muted); letter-spacing: 0.06em; }

.news__body { display: flex; flex-direction: column; min-width: 0; }
.news__head { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s2); }
.news__head time { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-left: auto; }
.news__body h3 { font-size: var(--fs-base); font-weight: 600; line-height: 1.5; }
.news__body h3 a:hover { color: var(--accent); }
.news__body p { margin-top: var(--s2); font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; }
.news__specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: var(--s3); }

.mini-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  white-space: nowrap;
}

/* 发行日历 */
.calendar { display: flex; flex-direction: column; gap: var(--s3); }
.calendar li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--s3); align-items: baseline; }
.calendar time { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); }
.calendar span { font-size: var(--fs-xs); color: var(--text); line-height: 1.5; }
.calendar em { display: block; font-style: normal; font-size: 12px; color: var(--faint); }

/* 磁力与种子 */
.hashbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
}
.hashbox .mono { font-size: 12px; color: var(--text); word-break: break-all; }
.hashbox b { font-weight: 500; color: var(--muted); }

/* ---------- 片库分区卡 ---------- */
.subcats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin: var(--s4) 0 0; }

.subcat {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.subcat:hover { border-color: var(--text); background: #fdfcf8; }
.subcat__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.subcat h2 { font-size: var(--fs-base); font-weight: 600; letter-spacing: 0.02em; }
.subcat .count { font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: 600; }
.subcat p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.65; }
.subcat span { font-size: 12px; color: var(--faint); font-family: var(--font-mono); }

/* ---------- 表单 ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--s5);
  box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: var(--fs-md); font-weight: 600; letter-spacing: 0.02em; }
.form-card > p { margin-top: var(--s1); font-size: var(--fs-xs); color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s4); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 38px;
  padding: 0 var(--s3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field textarea { height: auto; min-height: 92px; padding: var(--s2) var(--s3); resize: vertical; line-height: 1.7; }
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }
.field .hint { font-size: 12px; color: var(--faint); }

.form-actions { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); }
.form-actions .hint { font-size: 12px; color: var(--faint); }

/* ---------- 厂牌详情页 ---------- */
.brand-head {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line-strong);
}
.brand-mark {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface);
}
.brand-mark--arrow { color: #9c211c; border-color: #e3bbb6; background: #fbeeed; }
.brand-mark--vinegar { color: #6b5a00; border-color: #dfd29a; background: #f7f2dc; }
.brand-mark--shout { color: #1f4a7a; border-color: #c2d4e6; background: #eef3fa; }

.brand-head h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s3);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.3;
}
.brand-head__en { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.1em; color: var(--faint); }
.brand-head p { margin-top: var(--s2); max-width: 44em; font-size: var(--fs-sm); color: var(--muted); line-height: 1.7; }
.brand-stats { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s3); }
.brand-stats dt { font-size: 12px; color: var(--faint); }
.brand-stats dd { margin: 0; font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; }

/* 时间线 */
.timeline { position: relative; margin: var(--s4) 0 0 var(--s1); padding-left: var(--s5); border-left: 1px solid var(--line-strong); }
.timeline__item { position: relative; padding-bottom: var(--s5); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--s5) - 5px);
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}
.timeline__date { display: flex; align-items: center; gap: var(--s2); font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.timeline__item h3 { margin-top: 3px; font-size: var(--fs-base); font-weight: 600; line-height: 1.55; }
.timeline__item h3 a { display: inline-block; padding: 3px 0; }
.timeline__item h3 a:hover { color: var(--accent); }
.timeline__item p { margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.7; max-width: 44em; }
.timeline__specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--s2); }

.status {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.status--on { color: #2f6b50; background: #e7f0ea; }
.status--pre { color: var(--accent-text); background: var(--accent-soft); }
.status--out { color: var(--muted); background: var(--surface-2); }

.section-head-sm {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  margin: var(--s6) 0 var(--s2);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line-strong);
}
.section-head-sm h2 { font-size: var(--fs-md); font-weight: 600; display: flex; align-items: center; gap: var(--s2); }
.section-head-sm h2::before { content: ""; width: 4px; height: 14px; background: var(--accent); }
.section-head-sm span { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

/* ---------- 版块页 ---------- */
.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line-strong);
}
.board-head h1 {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.board-head h1 .tag { transform: translateY(-2px); }
.board-desc {
  margin-top: var(--s2);
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 43em;
  line-height: 1.7;
}
.board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s3);
  font-size: var(--fs-xs);
  color: var(--faint);
}
.board-meta b { color: var(--muted); font-weight: 500; }
.board-meta .mono { color: var(--text); }

.toolbar {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line);
}
.tabs { display: flex; align-items: center; gap: var(--s1); flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 5px var(--s3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--muted);
  border: 1px solid transparent;
}
.tabs a:hover { color: var(--text); background: var(--surface-2); }
.tabs a.is-active { background: var(--dark); color: var(--on-dark); }
.toolbar__right { margin-left: auto; display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-xs); color: var(--faint); }
.toolbar__right select {
  font: inherit; font-size: var(--fs-xs);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 4px 6px;
}

.threads { border-top: 1px solid var(--line); }

.thread {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--s3);
  row-gap: 2px;
  align-items: start;
  padding: var(--s3) var(--s2);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.thread > .thread__poster { grid-column: 1; grid-row: 1 / span 2; }
.thread > .thread__title { grid-column: 2; grid-row: 1; }
.thread > .thread__meta { grid-column: 2; grid-row: 2; }
.thread:hover { background: var(--surface); }
.thread--head {
  padding-top: 7px; padding-bottom: 7px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.thread--head span:nth-child(n + 2) { text-align: center; }

.thread__title { min-width: 0; overflow: hidden; }
.thread__title > a {
  display: block;
  padding: 2px 0;
  font-size: var(--fs-base);
  color: var(--text);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.thread__title > a:hover { color: var(--accent); }
.thread__sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px var(--s2);
  margin-top: 4px;
  font-size: 12px;
  color: var(--faint);
}

.thread__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px var(--s4);
  margin-top: 3px;
  font-size: 12px;
  color: var(--faint);
}
.thread__meta b { font-weight: 500; color: var(--muted); }
.thread__meta a { color: var(--muted); }
.thread__meta a:hover { color: var(--accent); }
.thread__sub .dot { color: var(--faint); }

.pin {
  display: inline-block;
  vertical-align: 2px;
  margin-right: 4px;
  font-size: 12px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--accent);
}
.pin--gold { background: var(--gold); color: #2e2008; }

.thread__author, .thread__last {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-xs);
  color: var(--muted);
  min-width: 0;
}
.thread__author a, .thread__last a {
  display: inline-block;
  padding: 3px 0;
  color: var(--text);
  font-size: var(--fs-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread__author a:hover, .thread__last a:hover { color: var(--accent); }
.thread__author span, .thread__last span { font-size: 12px; color: var(--faint); font-family: var(--font-mono); }
.thread__num { text-align: center; font-family: var(--font-mono); }
.thread__num b { display: block; font-size: var(--fs-base); font-weight: 600; color: var(--text); }
.thread__num span { font-size: 12px; color: var(--faint); }

.mini-list { display: flex; flex-direction: column; gap: var(--s3); }
.mini-list a { display: flex; gap: var(--s2); font-size: var(--fs-sm); line-height: 1.5; color: var(--text); }
.mini-list a:hover { color: var(--accent); }
.mini-list i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-text);
  flex-shrink: 0;
  padding-top: 1px;
}
.mini-list span { display: block; min-width: 0; }
.mini-list em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  margin-top: 2px;
}

.rules { display: flex; flex-direction: column; gap: var(--s2); font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; }
.rules li { display: flex; gap: var(--s2); }
.rules li::before { content: "—"; color: var(--line-strong); flex-shrink: 0; }

/* ---------- 帖子页 ---------- */
.article {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.article__head { padding: var(--s5) var(--s5) var(--s4); border-bottom: 1px solid var(--line); }
.article__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s3); font-size: var(--fs-xs); color: var(--faint); }
.article__kicker span { white-space: nowrap; }
.article h1 {
  font-size: var(--fs-lg);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.01em;
  word-break: break-word;
  text-wrap: balance;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s3);
  font-size: var(--fs-xs);
  color: var(--faint);
}
.article__meta b { color: var(--muted); font-weight: 500; }
.article__meta .mono { color: var(--muted); }

.spec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.spec > div {
  padding: var(--s3) var(--s4);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.spec > div:nth-child(3n) { border-right: 0; }
.spec > div:nth-last-child(-n + 3) { border-bottom: 0; }
.spec dt { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.spec dd { margin: 3px 0 0; font-size: var(--fs-sm); color: var(--text); display: flex; align-items: center; gap: 4px; }

.article__body { padding: var(--s5); font-size: var(--fs-base); line-height: 1.9; color: #232a24; }
.article__body p { margin-bottom: var(--s4); max-width: 40em; }
.article__body p:last-child { margin-bottom: 0; }
.article__body strong { font-weight: 600; }
.article__body .lead { font-size: var(--fs-md); color: var(--text); }
.article__body .note {
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: var(--s3) var(--s4);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: #6b4526;
}
.article__body .note p { margin-bottom: 0; }

.linkbox {
  margin: var(--s4) 0;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  padding: var(--s3) var(--s4);
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-sm);
}
.linkbox svg { color: var(--accent); flex-shrink: 0; }
.linkbox .mono { font-size: var(--fs-xs); color: var(--muted); word-break: break-all; }
.linkbox .btn { margin-left: auto; flex-shrink: 0; }

.replies { margin-top: var(--s5); }
.floor {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--s4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--s4);
  margin-bottom: var(--s3);
}
.floor__side { display: flex; flex-direction: column; gap: var(--s2); padding-right: var(--s4); border-right: 1px solid var(--line); }
.floor__user { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); font-weight: 500; }
.floor__user i {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-style: normal; font-size: 12px; color: #fff;
  border-radius: 2px;
  background: var(--c, var(--dark-3));
  flex-shrink: 0;
}
.floor__role { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); letter-spacing: 0.06em; }
.floor__stat { font-size: 12px; color: var(--faint); line-height: 1.7; }
.floor__body { min-width: 0; }
.floor__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  font-size: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  margin-bottom: var(--s2);
}
.floor__body p { font-size: var(--fs-sm); line-height: 1.85; margin-bottom: var(--s2); }

.quote {
  border-left: 2px solid var(--line-strong);
  background: var(--surface-2);
  padding: var(--s2) var(--s3);
  font-size: var(--fs-xs);
  color: var(--muted);
  border-radius: 0 2px 2px 0;
  margin-bottom: var(--s2);
}

.reply-box {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--s4);
}
.reply-box h2 { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; margin-bottom: var(--s3); }
.reply-box textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: var(--s3);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  outline: none;
  line-height: 1.7;
}
.reply-box textarea:focus { border-color: var(--accent); }
.reply-box textarea::placeholder { color: var(--faint); }
.reply-box__foot { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3); }
.reply-box__hint { font-size: 12px; color: var(--faint); }
.reply-box__foot .btn { margin-left: auto; }

.user-card { display: flex; align-items: center; gap: var(--s3); }
.user-card i {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-style: normal; font-size: 18px; color: #fff;
  border-radius: var(--r-sm);
  background: var(--c, var(--dark-3));
  flex-shrink: 0;
}
.user-card strong { display: block; font-size: var(--fs-base); font-weight: 600; }
.user-card span { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-top: 2px; }

/* ---------- 版块页 / 帖子页响应式 ---------- */
@media (max-width: 900px) {
  .thread { grid-template-columns: minmax(0, 1fr) 64px 64px; }
  .thread__author, .thread__last { display: none; }
  .thread--head span:nth-child(2), .thread--head span:nth-child(5) { display: none; }
  .spec { grid-template-columns: 1fr 1fr; }
  .spec > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .spec > div:nth-child(2n) { border-right: 0; }
  .spec > div:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .spec > div:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 760px) {
  .board-head { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .board-head h1 { font-size: var(--fs-lg); }
  .toolbar { flex-wrap: wrap; gap: var(--s2); }
  .toolbar .tabs { width: 100%; }
  .toolbar__right { width: 100%; margin-left: 0; }
  .thread { grid-template-columns: minmax(0, 1fr) auto; }
  .label-news { grid-template-columns: 1fr auto; }
  .label-news .label-badge { grid-column: 1 / -1; }
  .label-news__date { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .news { grid-template-columns: 84px minmax(0, 1fr); }
  .subcats { grid-template-columns: 1fr; }
  .release-feature { grid-template-columns: 96px minmax(0, 1fr); }
  .release-feature h2 { font-size: var(--fs-base); }
  .release-gallery figure { flex-basis: 138px; max-width: 138px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-nav h2 { width: 100%; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
  .article__head { grid-template-columns: 96px minmax(0, 1fr); gap: var(--s4); }
  .vip-hero { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .coin-packs { grid-template-columns: 1fr; }
  .brand-head { flex-direction: column; gap: var(--s3); }
  .brand-head h1 { font-size: var(--fs-lg); }
  .brand-mark { width: 60px; height: 56px; font-size: 12px; letter-spacing: 0; }
  .brand-stats { gap: var(--s4); }
  .form-grid { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .search-big { flex-direction: column; }
  .search-big button { height: 44px; }
  .form-card { padding: var(--s4); }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; }
  .notfound { padding: var(--s7) 0 var(--s6); }
  .notfound__code { font-size: 72px; }
  .thread__num { display: none; }
  .thread--head { display: none; }
  .floor { grid-template-columns: 1fr; }
  .floor__side { flex-direction: row; align-items: center; gap: var(--s3); border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: var(--s2); }
  .floor__stat { display: none; }
  .article__head { padding: var(--s4); }
  .article h1 { font-size: var(--fs-md); }
  .article__body { padding: var(--s4); }
  .linkbox { flex-wrap: wrap; }
  .linkbox .btn { margin-left: 0; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .poster-grid { grid-template-columns: repeat(3, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: start; }
  .hero__inner { grid-template-columns: 1fr; align-items: start; gap: var(--s5); }
  .hero__stats { max-width: 460px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding-left: var(--s4); padding-right: var(--s4); }
  .topbar__inner { height: auto; flex-wrap: wrap; gap: var(--s3); padding-top: var(--s3); padding-bottom: var(--s3); }
  .nav { order: 3; width: 100%; gap: var(--s4); overflow-x: auto; }
  .topbar__tools { margin-left: auto; }
  .search { width: 150px; }
  .hero h1 { font-size: var(--fs-xl); line-height: 1.34; text-wrap: balance; }
  .hero__inner { padding-top: var(--s6); padding-bottom: var(--s6); }
  .forum-row { grid-template-columns: minmax(0, 1fr) auto; }
  .forum-row--head { display: none; }
  .forum-num, .forum-last { display: none; }
  .forum-desc { white-space: normal; overflow: visible; }
  .feed__item { grid-template-columns: 46px minmax(0, 1fr); }
  .feed__stat { display: none; }
  .feed__title { white-space: normal; overflow-wrap: anywhere; }
  .thread__title > a { white-space: normal; overflow-wrap: anywhere; }
  .thread__sub { white-space: normal; }
  .side { grid-template-columns: 1fr; }
  .pager .pager__total { display: none; }
  .footer__inner { grid-template-columns: 1fr; gap: var(--s5); padding-top: var(--s6); }
  .footer__bottom { flex-direction: column; gap: var(--s1); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
