/*
 * 一剧之本 · 站点级共享样式
 * 在 styles.css 的设计令牌（--ink/--accent/--line 等）之上，补充首页之外各页面
 * 复用的组件：页面横幅、面包屑、内容容器、评委卡片、作品报告、账号表单、信息页、
 * FAQ、个人中心与 404。所有页面统一加载 styles.css + site.css，保证一套视觉语言。
 */

/* ---------- 电影节母品牌归属 ---------- */
.festival-affiliation {
  position: relative;
  z-index: 30;
  background: #0b1730;
  color: #fff;
}

.festival-affiliation a {
  width: min(1240px, calc(100% - 40px));
  min-height: 34px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .04em;
}

.festival-affiliation span { font-weight: 700; }
.festival-affiliation strong { color: #aebbd0; font-weight: 500; }
.festival-affiliation b { margin-left: auto; color: #efc46f; font-weight: 650; }

@media (max-width: 560px) {
  .festival-affiliation a { width: min(100% - 28px, 1240px); }
  .festival-affiliation strong { display: none; }
}

/* ---------- 通用容器 ---------- */
.wrap {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.section-band {
  padding: 64px max(20px, calc((100% - 1240px) / 2));
}

.section-band + .section-band {
  border-top: 1px solid var(--line);
}

.band-surface {
  background: var(--surface);
}

.band-ink {
  background: var(--ink);
  color: white;
}

/* ---------- 页面横幅（非首页统一头部区块） ---------- */
.page-hero {
  padding: 56px max(20px, calc((100% - 1240px) / 2)) 44px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-hero.hero-ink {
  border-bottom: 0;
  background: var(--ink);
  color: white;
}

.page-hero-inner {
  max-width: 820px;
}

.page-hero.hero-ink .section-context {
  color: #91aefb;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-hero .lead {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  text-wrap: pretty;
}

.page-hero.hero-ink .lead {
  color: #cbd2df;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--ink-faint);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--ink-soft);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span[aria-hidden] {
  color: var(--line-strong);
}

/* ---------- 统计条 ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
}

.hero-ink .stat-row {
  border-color: rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.05);
}

.stat-row > div {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

.hero-ink .stat-row > div {
  border-color: rgb(255 255 255 / 0.16);
}

.stat-row > div:last-child {
  border-right: 0;
}

.stat-row strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-row span {
  display: block;
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 12px;
}

.hero-ink .stat-row span {
  color: #aeb7c7;
}

/* ---------- 筛选 chip 行 ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  border-color: #c9d7ff;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 650;
}

/* ---------- 评委库 ---------- */
.judge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.judge-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.judge-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgb(16 24 40 / 0.08);
}

.judge-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.judge-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 700;
}

.judge-card-head h3 {
  margin: 0;
  font-size: 16px;
}

.judge-card-head p {
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.judge-field {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.judge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
}

.tag {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.judge-stats {
  display: flex;
  gap: 22px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.judge-stats div {
  display: grid;
  gap: 3px;
}

.judge-stats span {
  color: var(--ink-faint);
  font-size: 10px;
}

.judge-stats strong {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 作品详情报告 ---------- */
.report-hero {
  padding: 40px max(20px, calc((100% - 1240px) / 2));
  background: var(--ink);
  color: white;
}

.report-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.report-grade {
  width: 84px;
  height: 92px;
  flex: 0 0 auto;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 15px;
  background: rgb(255 255 255 / 0.08);
  display: grid;
  place-content: center;
  text-align: center;
}

.report-grade strong {
  color: #b7c9ff;
  font-size: 36px;
  line-height: 1;
}

.report-grade span {
  margin-top: 6px;
  color: #d9dfeb;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.report-status {
  margin: 0 0 8px;
  color: #86e0be;
  font-size: 12px;
  font-weight: 700;
}

.report-hero h1 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
}

.report-hero-meta {
  margin: 10px 0 0;
  color: #b8c0ce;
  font-size: 13px;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 40px;
  padding: 48px max(20px, calc((100% - 1240px) / 2));
}

.report-block h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.report-conclusion p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.report-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.report-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.report-facts dt {
  color: var(--ink-faint);
  font-size: 12px;
}

.report-facts dd {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

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

.score-list li {
  margin-bottom: 15px;
}

.score-list li > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
}

.score-list strong {
  font-variant-numeric: tabular-nums;
}

.report-note {
  padding: 16px max(20px, calc((100% - 1240px) / 2));
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink-faint);
  font-size: 11px;
}

/* ---------- 账号表单（登录/注册/找回等） ---------- */
.auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-aside {
  padding: 64px max(24px, 6%);
  background: var(--ink);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-aside .section-context {
  color: #91aefb;
}

.auth-aside h2 {
  margin: 0 0 16px;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-aside p {
  max-width: 420px;
  color: #cbd2df;
  font-size: 14px;
  line-height: 1.8;
}

.auth-points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.auth-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  color: #d9dfeb;
  font-size: 13px;
  line-height: 1.6;
}

.auth-points li span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: #b7c9ff;
  font-size: 11px;
}

.auth-main {
  padding: 56px max(24px, 6%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(400px, 100%);
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.auth-card .auth-sub {
  margin: 0 0 28px;
  color: var(--ink-faint);
  font-size: 13px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.field-hint {
  margin: 7px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-actions {
  margin-top: 8px;
}

.form-actions .button {
  width: 100%;
}

.auth-alt {
  margin: 20px 0 0;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
}

.auth-alt a {
  color: var(--accent);
  font-weight: 650;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--ink-faint);
  font-size: 11px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.notice {
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid #c9d7ff;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.notice.verified {
  border-color: #b7e5d4;
  background: var(--verified-soft);
  color: #155b45;
}

/* ---------- 信息页 / 文章 ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding: 48px max(20px, calc((100% - 1240px) / 2));
  align-items: start;
}

.toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 4px;
}

.toc p {
  margin: 0 0 8px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc a {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 13px;
}

.toc a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.article {
  max-width: 720px;
}

.article section + section {
  margin-top: 40px;
}

.article h2 {
  margin: 0 0 14px;
  padding-top: 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
  scroll-margin-top: 96px;
}

.article h3 {
  margin: 26px 0 10px;
  font-size: 15px;
}

.article p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.article ul,
.article ol {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}

.article li {
  margin-bottom: 6px;
}

.article strong {
  color: var(--ink);
}

.article .updated {
  margin: 0 0 28px;
  color: var(--ink-faint);
  font-size: 12px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq summary {
  padding: 18px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq .faq-body {
  padding: 16px 20px 20px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.faq .faq-body p {
  margin: 0 0 10px;
}

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

/* ---------- 个人中心 ---------- */
.profile-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  padding: 44px max(20px, calc((100% - 1240px) / 2));
  align-items: start;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  text-align: center;
}

.profile-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 28px;
  font-weight: 700;
}

.profile-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.profile-card .profile-id {
  margin: 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.profile-card .pill {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--verified-soft);
  color: var(--verified);
  font-size: 12px;
  font-weight: 650;
}

.profile-meta {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  text-align: left;
}

.profile-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.profile-meta dt {
  color: var(--ink-faint);
}

.profile-meta dd {
  margin: 0;
  font-weight: 600;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel + .panel {
  margin-top: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  margin: 0;
  font-size: 15px;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.panel-body {
  padding: 8px 22px 14px;
}

.record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

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

.record-row h4 {
  margin: 0 0 5px;
  font-size: 14px;
}

.record-row p {
  margin: 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.status-tag {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.status-tag.ok {
  background: var(--verified-soft);
  color: var(--verified);
}

.status-tag.progress {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.status-tag.wait {
  background: #fdf1df;
  color: var(--warning);
}

.empty-inline {
  padding: 26px 0;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: calc(100vh - 72px - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}

.notfound .code {
  font-size: clamp(72px, 16vw, 140px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}

.notfound h1 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.notfound p {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 14px;
}

.notfound .actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 简易重定向页 ---------- */
.redirect-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
}

.redirect-shell p {
  color: var(--ink-soft);
  font-size: 14px;
}

.redirect-shell a {
  color: var(--accent);
  font-weight: 650;
}

/* ---------- 首页角色入口区 ---------- */
.role-section {
  padding: 72px max(20px, calc((100% - 1240px) / 2));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.role-intro {
  max-width: 720px;
  margin-bottom: 32px;
}

.role-intro h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.role-intro > p:last-child {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.role-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.role-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgb(16 24 40 / 0.07);
}

.role-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-family: "Songti SC", SimSun, serif;
  font-size: 22px;
  line-height: 1;
}

.role-mark.creator { background: var(--accent); }
.role-mark.judge { background: #344054; }
.role-mark.admin { background: var(--ink); }

.role-card h3 {
  margin: 16px 0 0;
  font-size: 18px;
}

.role-card > p {
  flex: 1;
  margin: 9px 0 16px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.role-links {
  list-style: none;
  margin: 0;
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
}

.role-links a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.role-links a:hover { color: var(--accent-dark); }

.role-note {
  margin: 26px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .role-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .role-intro h2 { font-size: 27px; }
}

/* ---------- 移动端统一导航（由 site.js 生成） ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 160ms ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  right: 0;
  left: 0;
  z-index: 30;
  max-height: calc(100dvh - 72px);
  padding: 18px max(20px, calc((100% - 1240px) / 2)) 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 40px rgb(16 24 40 / 0.12);
  overflow-y: auto;
}

.mobile-nav.open {
  display: block;
  animation: mobile-nav-in 180ms ease;
}

.mobile-nav-open {
  overflow: hidden;
}

.mobile-nav-open .site-header {
  z-index: 40;
}

.mobile-nav-group + .mobile-nav-group {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mobile-nav-label {
  margin: 0 4px 6px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 650;
}

@keyframes mobile-nav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
  display: flex;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  align-items: center;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.mobile-nav-link:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.mobile-nav-link.current {
  background: var(--accent-soft);
  color: var(--accent);
}

.mobile-nav-link.cta {
  margin-top: 8px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  text-align: center;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 72px 0 0;
  z-index: 25;
  background: rgb(15 23 42 / 0.36);
}

.mobile-nav-backdrop.open {
  display: block;
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .mobile-nav,
  .mobile-nav-backdrop {
    top: 64px;
  }

  .mobile-nav-backdrop {
    inset: 64px 0 0;
  }

  .mobile-nav {
    max-height: calc(100dvh - 64px);
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .judge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .page-hero {
    padding-top: 40px;
    padding-bottom: 32px;
  }
}

@media (max-width: 640px) {
  .judge-grid {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .stat-row > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .report-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
