/* =========================================================
   Dark & Darker inspired theme
   Dark medieval-fantasy: black textured ground, gold/bronze
   accents, ornate framed panels, gothic serif headings.
   ========================================================= */

:root {
  --bg-void:        #07060a;
  --bg-deep:        #0d0b12;
  --bg-panel:       #14121b;
  --bg-panel-2:     #1b1824;
  --bg-input:       #0a0910;

  --gold:           #c9a24a;
  --gold-bright:    #e6c777;
  --gold-dim:       #8a7038;
  --bronze:         #6b5324;

  --ink:            #d9cfb8;   /* parchment text */
  --ink-dim:        #9c917a;
  --ink-faint:      #6a6152;

  --blood:          #8c2f2f;
  --blood-bright:   #c94b4b;

  --ok:             #5a8c4a;
  --ok-bright:      #7fbf68;
  --warn:           #c08a2e;
  --pending:        #7a7486;

  --line:           rgba(201, 162, 74, 0.28);
  --line-strong:    rgba(201, 162, 74, 0.55);

  --shadow-deep:    0 18px 48px rgba(0, 0, 0, 0.75);
  --glow-gold:      0 0 18px rgba(201, 162, 74, 0.35);

  --font-title: "Cinzel", "Noto Serif SC", serif;
  --font-body:  "EB Garamond", "Noto Serif SC", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img, video {
  max-width: 100%;
  height: auto;
}
svg, canvas {
  max-width: 100%;
}

/* 防止长单词 / 流程码撑破窄屏布局 */
p, h1, h2, h3, .panel-hint, .dr-val, .tl-note, .subtitle {
  overflow-wrap: anywhere;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(201, 162, 74, 0.10), transparent 55%),
    radial-gradient(ellipse at 50% 120%, rgba(140, 47, 47, 0.08), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: 0.2px;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* thin vignette on edges */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 200px 40px rgba(0, 0, 0, 0.9);
  z-index: 1;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-bright); }

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */
.wrap {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 22px 80px;
}
.wrap--wide { max-width: 1180px; }

/* ---------------------------------------------------------
   Header / Nav
   --------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: max(46px, calc(env(safe-area-inset-top, 0px) + 24px)) 16px 26px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(201,162,74,0.06), transparent 90%);
}

.site-header .crest {
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: var(--glow-gold);
  letter-spacing: 6px;
}

.site-header h1 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 8px;
  color: var(--gold-bright);
  text-transform: uppercase;
  text-shadow: 0 2px 0 #000, 0 0 24px rgba(201,162,74,0.35);
}

.site-header .subtitle {
  margin-top: 8px;
  color: var(--ink-dim);
  font-style: italic;
  letter-spacing: 3px;
  font-size: 15px;
}

.nav-thanks {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.nav-thanks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 3px;
  text-indent: 3px; /* 抵消 letter-spacing 末字空隙，视觉水平居中 */
  text-transform: uppercase;
  padding: 11px 28px 9px; /* 略补视觉偏上 */
  border: 1px solid #8a7038;
  color: #1a1408;
  background:
    linear-gradient(180deg, #c9a24a 0%, #8a7038 55%, #6b5324 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 180, 0.35),
    0 0 14px rgba(201, 162, 74, 0.22);
  transition: all .2s;
}
.nav-thanks a:hover {
  color: #0a0804;
  border-color: #e6c777;
  background:
    linear-gradient(180deg, #e6c777 0%, #c9a24a 50%, #8a7038 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 210, 0.45),
    0 0 18px rgba(201, 162, 74, 0.4);
}
.nav-thanks a.active {
  color: #0a0804;
  border-color: #e6c777;
  background:
    linear-gradient(180deg, #e6c777 0%, #c9a24a 45%, #8a7038 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 210, 0.5),
    0 0 20px rgba(230, 199, 119, 0.45);
}

/* divider with center diamond */
.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px auto;
  max-width: 520px;
  color: var(--gold-dim);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.rule .diamond { transform: rotate(45deg); width: 8px; height: 8px; background: var(--gold); box-shadow: var(--glow-gold); }

.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-row--admin {
  margin-top: 2px;
}
.nav a {
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  background: rgba(20, 18, 27, 0.6);
  transition: all .2s;
}
.nav a:hover { border-color: var(--line-strong); color: var(--gold-bright); background: var(--bg-panel-2); }
.nav a.active { color: var(--gold-bright); border-color: var(--gold); box-shadow: var(--glow-gold); }
.nav a.nav-gold {
  border-color: #8a7038;
  color: #1a1408;
  background:
    linear-gradient(180deg, #c9a24a 0%, #8a7038 55%, #6b5324 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 180, 0.35),
    0 0 14px rgba(201, 162, 74, 0.22);
}
.nav a.nav-gold:hover {
  color: #0a0804;
  border-color: #e6c777;
  background:
    linear-gradient(180deg, #e6c777 0%, #c9a24a 50%, #8a7038 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 210, 0.45),
    0 0 18px rgba(201, 162, 74, 0.4);
}
.nav a.nav-gold.active {
  color: #0a0804;
  border-color: #e6c777;
  background:
    linear-gradient(180deg, #e6c777 0%, #c9a24a 45%, #8a7038 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 210, 0.5),
    0 0 20px rgba(230, 199, 119, 0.45);
}
.nav a.auth-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 1px;
}
.nav a.auth-nav-link .auth-nav-link__text { letter-spacing: 1px; }

/* User avatars */
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-dim);
  background: var(--bg-input);
  vertical-align: middle;
  flex-shrink: 0;
}
.user-avatar--nav { width: 22px; height: 22px; font-size: 11px; }
.user-avatar--sm { width: 28px; height: 28px; font-size: 12px; }
.user-avatar--md { width: 56px; height: 56px; font-size: 22px; }
.user-avatar--lg { width: 88px; height: 88px; font-size: 32px; }
.user-avatar--placeholder {
  font-family: var(--font-title);
  color: var(--gold-bright);
  letter-spacing: 0;
  background: linear-gradient(180deg, #241f16, #14121b);
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.avatar-editor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 8px 0 18px;
}
.avatar-editor__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
}
.avatar-editor input[type="file"] { display: none; }
.avatar-editor__hint { color: var(--ink-faint); font-size: 13px; }

.avatar-crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: rgba(3, 2, 6, 0.88);
  backdrop-filter: blur(8px);
}
.avatar-crop-overlay.is-open { display: flex; }
.avatar-crop-dialog {
  width: min(100%, 520px);
  max-height: min(92dvh, 920px);
  overflow: auto;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-deep);
  padding: 22px 22px 18px;
}
.avatar-crop-dialog h3 {
  font-family: var(--font-title);
  color: var(--gold-bright);
  letter-spacing: 2px;
  font-size: 18px;
  margin-bottom: 8px;
  text-align: center;
}
.avatar-crop-dialog__hint {
  text-align: center;
  color: var(--ink-dim);
  font-size: 14px;
  margin-bottom: 14px;
}
.avatar-crop-stage {
  width: 100%;
  height: min(46dvh, 360px);
  min-height: 200px;
  background: #0a0910;
  border: 1px solid var(--line);
  overflow: hidden;
}
.avatar-crop-stage img {
  display: block;
  max-width: 100%;
}
.avatar-crop-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.avatar-crop-overlay .cropper-view-box,
.avatar-crop-overlay .cropper-face {
  border-radius: 50%;
}

/* ---------------------------------------------------------
   Panels (ornate framed cards)
   --------------------------------------------------------- */
.panel {
  position: relative;
  background:
    linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255,255,255,0.03);
  padding: 38px 40px;
  margin: 34px 0;
}

/* corner ornaments */
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.8;
}
.panel::before { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.panel::after  { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.panel > .corner-tr,
.panel > .corner-bl {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.8;
}
.panel > .corner-tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.panel > .corner-bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }

.panel h2 {
  font-family: var(--font-title);
  color: var(--gold-bright);
  font-size: 24px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.panel .panel-hint {
  color: var(--ink-dim);
  font-size: 15px;
  font-style: italic;
  margin-bottom: 26px;
}

/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.field label .req { color: var(--blood-bright); margin-left: 4px; }

.field input[type="text"],
.field input[type="password"],
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-dim), var(--glow-gold);
}
.field .hint { margin-top: 6px; font-size: 13px; color: var(--ink-faint); font-style: italic; }
.field .hint .desc-count { float: right; }

/* Report-video upload guidance */
.upload-guidance {
  margin: 0 0 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-dim);
  background: linear-gradient(90deg, rgba(201, 162, 74, 0.08), rgba(10, 9, 16, 0.78));
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.7;
}
.upload-guidance__heading { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.upload-guidance__icon { color: var(--gold); font-size: 12px; }
.upload-guidance h3 {
  font-family: var(--font-title);
  color: var(--gold-bright);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.upload-guidance ol { margin: 8px 0 8px 21px; padding: 0; }
.upload-guidance li + li { margin-top: 3px; }
.upload-guidance__note {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.upload-guidance__note strong { color: var(--gold); }

/* Login requirement shown while the upload form remains fully previewable. */
.upload-login-notice {
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: rgba(201, 162, 74, 0.06);
  color: var(--ink-dim);
  font-size: 14px;
  text-align: center;
}
.upload-login-notice a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 2px; }
.upload-login-notice.is-hidden { display: none; }

/* Split authentication pages */
.auth-page .site-header { padding-top: 32px; padding-bottom: 22px; }
.auth-page .site-header .crest { margin-bottom: 5px; font-size: 25px; }
.auth-page .site-header h1 { font-size: 28px; letter-spacing: 6px; }
.auth-page .site-header .subtitle { margin-top: 5px; font-size: 13px; letter-spacing: 2px; }
.auth-wrap { max-width: 640px; padding-bottom: 64px; }
.auth-wrap .rule { margin: 18px auto 24px; max-width: 330px; }
.auth-card {
  position: relative;
  overflow: visible;
  padding: 44px 48px 38px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 50% 0%, rgba(201,162,74,0.14), transparent 35%),
    linear-gradient(145deg, rgba(30,27,39,0.98), rgba(13,11,18,0.98));
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255,255,255,0.04);
}
.auth-card::before,
.auth-card::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  pointer-events: none;
  opacity: .72;
}
.auth-card::before {
  top: -36px;
  left: -36px;
  border: 1px solid var(--gold-dim);
  transform: rotate(45deg);
}
.auth-card::after {
  right: -36px;
  bottom: -36px;
  border: 1px solid var(--gold-dim);
  transform: rotate(45deg);
}
.auth-card__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.auth-card__topline span:last-child { color: var(--ink-faint); }
.auth-card__mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  background: rgba(201,162,74,0.07);
}
.auth-card__mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; }
.auth-card h2 {
  margin: 0;
  color: var(--gold-bright);
  font-family: var(--font-title);
  font-size: 27px;
  letter-spacing: 2px;
}
.auth-card__lead { margin: 8px 0 28px; color: var(--ink-dim); font-size: 15px; }
.auth-card .field { margin-bottom: 18px; }
.auth-card .field label { margin-bottom: 7px; }
.auth-card .field input { min-height: 50px; }
.auth-card .field input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-dim), var(--glow-gold);
}
.auth-card .btn-block { margin-top: 8px; min-height: 50px; }
.auth-switch {
  margin-top: 23px;
  color: var(--ink-faint);
  font-size: 14px;
  text-align: center;
}
.auth-switch a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.auth-card__notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.55;
}
.auth-card__notice svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; fill: none; stroke: var(--gold-dim); stroke-width: 1.8; }
.auth-card--member { text-align: center; padding-top: 52px; }
.auth-card--member .auth-card__mark { margin: 0 auto 18px; }
.auth-member__label {
  color: var(--ink-faint);
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.auth-card .auth-member__name {
  margin: 7px 0 24px;
  color: var(--gold-bright);
  font-family: var(--font-title);
  font-size: 25px;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
}
.auth-member__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.auth-wrap--account { max-width: 920px; }
.password-change {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.password-change[hidden] { display: none; }
.password-change__head { margin-bottom: 16px; }
.password-change__head h3 {
  margin: 0 0 6px;
  font-family: var(--font-title);
  color: var(--gold-bright);
  letter-spacing: 2px;
  font-size: 18px;
  text-align: center;
}
.password-change__hint {
  margin: 0;
  color: var(--ink-faint);
  font-size: 13px;
  text-align: center;
}
.password-change__form {
  max-width: 420px;
  margin: 0 auto;
}
.my-submissions {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.my-submissions__head { margin-bottom: 16px; }
.my-submissions__head h3 {
  margin: 0 0 6px;
  font-family: var(--font-title);
  color: var(--gold-bright);
  letter-spacing: 2px;
  font-size: 18px;
  text-align: center;
}
.my-submissions__hint {
  margin: 0;
  color: var(--ink-faint);
  font-size: 13px;
  text-align: center;
}
.my-submissions__table td.my-submissions__desc {
  max-width: 360px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink-dim);
}
.my-submissions__empty {
  text-align: center;
  color: var(--ink-faint);
  padding: 28px 12px !important;
}
.my-submissions__table .code-cell a {
  color: inherit;
  text-decoration: none;
}
.my-submissions__table .code-cell a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .auth-card, .auth-card * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Upload dropzone */
.dropzone {
  position: relative;
  border: 2px dashed var(--line-strong);
  background: var(--bg-input);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--gold);
  background: rgba(201, 162, 74, 0.05);
  box-shadow: var(--glow-gold) inset;
}
.dropzone .dz-icon { font-size: 42px; color: var(--gold-dim); margin-bottom: 10px; }
.dropzone .dz-text { color: var(--ink-dim); font-size: 15px; }
.dropzone .dz-text strong { color: var(--gold-bright); }
.dropzone input[type="file"] { display: none; }

.file-chosen {
  margin-top: 14px;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
}
.file-chosen.show { display: flex; }
.file-chosen .fc-name { flex: 1; color: var(--ink); font-size: 14px; word-break: break-all; }
.file-chosen .fc-size { color: var(--ink-faint); font-size: 13px; }
.file-chosen .fc-remove { color: var(--blood-bright); cursor: pointer; font-size: 20px; line-height: 1; }

/* progress bar */
.progress {
  margin-top: 14px;
  height: 10px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  display: none;
  overflow: hidden;
}
.progress.show { display: block; }
.progress .bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--bronze), var(--gold), var(--gold-bright));
  box-shadow: var(--glow-gold);
  transition: width .2s;
}
.progress.is-indeterminate .bar {
  width: 34%;
  animation: upload-sweep 1.35s ease-in-out infinite;
}
@keyframes upload-sweep {
  from { transform: translateX(-115%); }
  to { transform: translateX(320%); }
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 34px;
  max-width: 100%;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-deep));
  color: var(--gold-bright);
  transition: all .2s;
  position: relative;
}
.btn:hover {
  background: linear-gradient(180deg, #241f16, #17130c);
  box-shadow: var(--glow-gold);
  color: #fff;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.btn-block { width: 100%; }
.btn.btn-ghost { border-color: var(--line); color: var(--ink-dim); background: transparent; }
.btn.btn-ghost:hover { border-color: var(--line-strong); color: var(--gold-bright); box-shadow: none; }
.btn.btn-danger { border-color: var(--blood); color: var(--blood-bright); }
.btn.btn-danger:hover { background: rgba(140,47,47,0.2); box-shadow: 0 0 18px rgba(140,47,47,0.4); color: #fff; }

/* 用户启停开关 */
.status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.status-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.status-toggle__track {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 16, 24, 0.9);
  transition: background .2s, border-color .2s, box-shadow .2s;
  flex: 0 0 auto;
}
.status-toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-dim);
  transition: transform .2s, background .2s;
}
.status-toggle__input:checked + .status-toggle__track {
  border-color: var(--gold);
  background: rgba(201, 162, 74, 0.22);
  box-shadow: inset 0 0 10px rgba(201, 162, 74, 0.18);
}
.status-toggle__input:checked + .status-toggle__track::after {
  transform: translateX(20px);
  background: var(--gold-bright);
}
.status-toggle__input:disabled + .status-toggle__track {
  opacity: 0.55;
}
.status-toggle__label {
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 1px;
  min-width: 2em;
}
.status-toggle__input:checked ~ .status-toggle__label {
  color: var(--gold-bright);
}

/* ---------------------------------------------------------
   Tracking code result
   --------------------------------------------------------- */
.result-code {
  text-align: center;
  padding: 30px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(ellipse at center, rgba(201,162,74,0.08), transparent 70%), var(--bg-input);
  margin-top: 10px;
  overflow: visible;
}
.result-code .rc-label {
  font-family: var(--font-title);
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
}
.result-code .rc-code {
  font-family: var(--font-title);
  font-size: clamp(22px, 7vw, 34px);
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin: 14px 0;
  text-shadow: var(--glow-gold);
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.result-code .rc-note { color: var(--ink-dim); font-size: 14px; font-style: italic; }
.copy-btn { margin-top: 16px; }

/* ---------------------------------------------------------
   Status timeline / badges
   --------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.badge::before { content: "◆"; font-size: 9px; }
.badge.s-pending  { color: var(--pending); }
.badge.s-review   { color: var(--warn); }
.badge.s-approved { color: var(--ok-bright); }
.badge.s-rejected { color: var(--blood-bright); }
.badge.s-done     { color: var(--gold-bright); }

.case-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.case-head .ch-code {
  font-family: var(--font-title);
  font-size: clamp(18px, 5vw, 22px);
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.case-head .ch-meta { color: var(--ink-dim); font-size: 14px; margin-top: 4px; }

.timeline { list-style: none; position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--bronze));
}
.timeline li { position: relative; padding: 0 0 26px 8px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -30px; top: 4px;
  width: 14px; height: 14px;
  background: var(--bg-void);
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: var(--glow-gold);
}
.timeline li.muted::before { border-color: var(--ink-faint); box-shadow: none; }
.timeline .tl-status { font-family: var(--font-title); letter-spacing: 1px; color: var(--gold-bright); }
.timeline .tl-time { color: var(--ink-faint); font-size: 13px; margin: 2px 0; }
.timeline .tl-note { color: var(--ink-dim); font-size: 15px; overflow-wrap: anywhere; }

/* ---------------------------------------------------------
   Tables (admin)
   --------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.data th {
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
table.data td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}
table.data tr:hover td { background: rgba(201,162,74,0.04); }
table.data .code-cell {
  font-family: var(--font-title);
  color: var(--gold-bright);
  letter-spacing: 1px;
  white-space: nowrap;
}
table.data .actions { display: flex; gap: 8px; align-items: center; }
table.data .btn-sm { padding: 7px 14px; font-size: 12px; }
table.data .video-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }

/* ---------------------------------------------------------
   Admin toolbar / stats
   --------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat {
  border: 1px solid var(--line);
  background: var(--bg-input);
  padding: 18px;
  text-align: center;
}
.stat .num { font-family: var(--font-title); font-size: 30px; color: var(--gold-bright); }
.stat .lbl { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-dim); margin-top: 4px; }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.toolbar input, .toolbar select {
  background: var(--bg-input); border: 1px solid var(--line); color: var(--ink);
  padding: 10px 14px; font-family: var(--font-body); font-size: 15px;
}
.toolbar .spacer { flex: 1; }
.page-size-control { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-dim); font-size: 14px; white-space: nowrap; }
.page-size-control select { min-width: 68px; padding: 8px 10px; }
.video-link-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pagination__summary {
  display: flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink-dim);
  font-size: 14px;
}
.pagination__controls { display: flex; align-items: center; gap: 8px; }
.pagination__controls .btn-sm { padding: 7px 12px; font-size: 12px; }
.pagination__pages { display: flex; align-items: center; gap: 5px; }
.pagination__page {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--font-title);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.pagination__page:hover { border-color: var(--line-strong); background: rgba(201,162,74,.08); color: var(--gold-bright); }
.pagination__page.is-active { border-color: var(--gold); background: rgba(201,162,74,.14); color: var(--gold-bright); cursor: default; }
.pagination__page:focus-visible,
.pagination__controls .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pagination__ellipsis { width: 18px; color: var(--ink-faint); text-align: center; }

/* ---------------------------------------------------------
   Sponsorship
   --------------------------------------------------------- */
.ink-faint { color: var(--ink-faint); }
.sponsor-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: start;
  justify-items: center;
}
.sponsor-qr {
  margin: 0;
  width: 100%;
  max-width: 300px;
}
.sponsor-qr img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-deep);
}

/* 赞助页 · 免责声明 */
.panel--disclaimer .disclaimer-list {
  list-style: none;
  counter-reset: disclaimer;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.panel--disclaimer .disclaimer-list > li {
  counter-increment: disclaimer;
  position: relative;
  padding: 16px 18px 16px 64px;
  border: 1px solid rgba(201, 162, 74, 0.16);
  background: rgba(0, 0, 0, 0.22);
}
.panel--disclaimer .disclaimer-list > li::before {
  content: counter(disclaimer, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--gold);
  line-height: 1.2;
}
.panel--disclaimer .disclaimer-list h3 {
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--gold-bright);
  font-weight: 600;
  margin: 0 0 8px;
  text-transform: none;
}
.panel--disclaimer .disclaimer-list p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.7;
}
.panel--disclaimer .disclaimer-list strong {
  color: var(--ink);
  font-weight: 600;
}
.panel--disclaimer .disclaimer-ack {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 14px;
  font-style: italic;
  text-align: center;
  line-height: 1.7;
}

/* 赞助鸣谢 · 上半区（标题+前三）呼吸光晕 */
.panel--sponsor-hall {
  position: relative;
  /* 不可 hidden：手机端 scale / 光晕会把金额与边框裁切掉 */
  overflow: visible;
}
.sponsor-hall-hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.sponsor-hall-hero > *:not(.sponsor-aura) {
  position: relative;
  z-index: 1;
}
.panel--sponsor-hall .sponsor-hall-title {
  text-align: center;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 7vw, 44px);
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: none;
  margin: 0 auto 12px;
  max-width: 100%;
  padding-inline: 4px;
  background-image: linear-gradient(
    90deg,
    #f4efe0 0%,
    #edd9a0 38%,
    #e0b84a 68%,
    #c99214 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.sponsor-hall-hero > .panel-hint {
  text-align: center;
  padding-inline: 4px;
  line-height: 1.5;
}
.sponsor-podium-stage {
  position: relative;
  overflow: visible;
  margin-bottom: 8px;
  padding: 28px 12px 28px;
}
/*
  呼吸光晕：默认居中于领奖台区域；JS 会精确对齐到 NO.1 卡片中心。
  pointer-events: none，不挡点击。
*/
.sponsor-aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, 90%);
  height: min(420px, 140%);
  max-width: none;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: none;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 215, 0, 0.28) 0%,
    rgba(230, 199, 119, 0.18) 22%,
    rgba(201, 162, 74, 0.09) 44%,
    transparent 70%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 72%,
    rgba(0, 0, 0, 0.35) 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 72%,
    rgba(0, 0, 0, 0.35) 88%,
    transparent 100%
  );
}
.sponsor-aura.is-ready {
  animation: sponsorAuraPulse 3s ease-in-out infinite;
}
@keyframes sponsorAuraPulse {
  0%, 100% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

/* 赞助鸣谢 · 前三名并排 */
.sponsor-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  padding: 8px 0 4px;
  position: relative;
  z-index: 1;
  width: 100%;
}
.sponsor-podium__slot {
  width: 100%;
  max-width: 200px;
  text-align: center;
  position: relative;
  /* 裁切顶部金色装饰线以贴合圆角；内容已不再使用 scale，不会被误裁 */
  overflow: hidden;
  border: 2px solid rgba(209, 176, 107, 0.3);
  border-radius: 12px;
  background: rgba(209, 176, 107, 0.08);
  padding: 22px 14px 20px;
  box-shadow: var(--shadow-deep);
  flex: 0 1 200px;
  min-width: 0;
  transition: transform .25s;
}
.sponsor-podium__slot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #d1b06b, #f2b300, #d1b06b);
  opacity: 0.85;
  z-index: 2;
  animation: podiumBarPulse 3s ease-in-out infinite;
}
/* 两端渐隐仅用于中间 NO.1 */
.sponsor-podium__slot--1::before {
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, #d1b06b 18%, #f2b300 50%, #d1b06b 82%, transparent);
  opacity: 0.95;
}
.sponsor-podium__glow {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 80px;
  height: 80px;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: podiumCardGlow 3s ease-in-out infinite;
}
.sponsor-podium__slot--1 {
  order: 2;
  /* 桌面端用更大尺寸体现排名，避免 scale 导致裁切 */
  z-index: 2;
  max-width: 220px;
  flex-basis: 220px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.28), transparent 55%),
    linear-gradient(160deg, rgba(255, 215, 0, 0.16), rgba(32, 28, 20, 0.72) 55%, rgba(16, 14, 12, 0.78));
  border-color: rgba(255, 215, 0, 0.52);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.24), inset 0 0 18px rgba(255, 215, 0, 0.10), var(--shadow-deep);
  padding: 26px 16px 22px;
  animation: podiumFramePulse1 3s ease-in-out infinite;
}
.sponsor-podium__slot--1 .sponsor-podium__glow {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.34) 0%, rgba(242, 179, 0, 0.16) 40%, transparent 70%);
}
.sponsor-podium__slot--2 {
  order: 1;
  max-width: 200px;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(230, 199, 119, 0.22), transparent 55%),
    linear-gradient(160deg, rgba(201, 162, 74, 0.14), rgba(28, 25, 20, 0.74) 55%, rgba(14, 12, 14, 0.8));
  border-color: rgba(201, 162, 74, 0.48);
  box-shadow: 0 0 16px rgba(201, 162, 74, 0.18), inset 0 0 16px rgba(201, 162, 74, 0.08), var(--shadow-deep);
  animation: podiumFramePulse2 3s ease-in-out infinite;
}
.sponsor-podium__slot--2 .sponsor-podium__glow {
  background: radial-gradient(circle, rgba(230, 199, 119, 0.28) 0%, rgba(201, 162, 74, 0.14) 40%, transparent 70%);
}
.sponsor-podium__slot--2::before {
  background: linear-gradient(90deg, #a88840, #e6c777, #a88840);
}
.sponsor-podium__slot--3 {
  order: 3;
  max-width: 190px;
  flex-basis: 190px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 74, 0.16), transparent 55%),
    linear-gradient(160deg, rgba(201, 162, 74, 0.1), rgba(26, 23, 20, 0.76) 55%, rgba(13, 12, 14, 0.82));
  border-color: rgba(201, 162, 74, 0.38);
  box-shadow: 0 0 14px rgba(201, 162, 74, 0.14), inset 0 0 14px rgba(201, 162, 74, 0.06), var(--shadow-deep);
  animation: podiumFramePulse3 3s ease-in-out infinite;
}
.sponsor-podium__slot--3 .sponsor-podium__glow {
  background: radial-gradient(circle, rgba(201, 162, 74, 0.22) 0%, rgba(168, 136, 64, 0.12) 40%, transparent 70%);
}
.sponsor-podium__slot--3::before {
  background: linear-gradient(90deg, #8a7038, #c9a24a, #8a7038);
}
@keyframes podiumCardGlow {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.95; transform: translateX(-50%) scale(1.18); }
}
@keyframes podiumBarPulse {
  0%, 100% { opacity: 0.45; filter: brightness(0.85); }
  50% { opacity: 1; filter: brightness(1.25); }
}
@keyframes podiumFramePulse1 {
  0%, 100% {
    border-color: rgba(255, 215, 0, 0.38);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.12), inset 0 0 12px rgba(255, 215, 0, 0.06), var(--shadow-deep);
  }
  50% {
    border-color: rgba(255, 215, 0, 0.78);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.42), inset 0 0 24px rgba(255, 215, 0, 0.16), var(--shadow-deep);
  }
}
@keyframes podiumFramePulse2 {
  0%, 100% {
    border-color: rgba(201, 162, 74, 0.32);
    box-shadow: 0 0 10px rgba(201, 162, 74, 0.10), inset 0 0 10px rgba(201, 162, 74, 0.05), var(--shadow-deep);
  }
  50% {
    border-color: rgba(230, 199, 119, 0.68);
    box-shadow: 0 0 24px rgba(201, 162, 74, 0.32), inset 0 0 20px rgba(201, 162, 74, 0.12), var(--shadow-deep);
  }
}
@keyframes podiumFramePulse3 {
  0%, 100% {
    border-color: rgba(201, 162, 74, 0.26);
    box-shadow: 0 0 8px rgba(201, 162, 74, 0.08), inset 0 0 8px rgba(201, 162, 74, 0.04), var(--shadow-deep);
  }
  50% {
    border-color: rgba(201, 162, 74, 0.58);
    box-shadow: 0 0 20px rgba(201, 162, 74, 0.26), inset 0 0 16px rgba(201, 162, 74, 0.10), var(--shadow-deep);
  }
}
@keyframes podiumTextPulse1 {
  0%, 100% { color: #e6c84a; text-shadow: 0 0 6px rgba(255, 215, 0, 0.18); }
  50% { color: #ffe566; text-shadow: 0 0 18px rgba(255, 215, 0, 0.65); }
}
@keyframes podiumTextPulse2 {
  0%, 100% { color: #b89648; text-shadow: 0 0 4px rgba(201, 162, 74, 0.12); }
  50% { color: #e6c777; text-shadow: 0 0 14px rgba(230, 199, 119, 0.5); }
}
@keyframes podiumTextPulse3 {
  0%, 100% { color: #a88840; text-shadow: 0 0 4px rgba(201, 162, 74, 0.1); }
  50% { color: #d4b56a; text-shadow: 0 0 12px rgba(201, 162, 74, 0.42); }
}
@keyframes podiumAvatarPulse1 {
  0%, 100% { border-color: rgba(255, 215, 0, 0.55); box-shadow: 0 4px 10px rgba(255, 215, 0, 0.18); }
  50% { border-color: #ffd700; box-shadow: 0 4px 26px rgba(255, 215, 0, 0.55); }
}
@keyframes podiumAvatarPulse2 {
  0%, 100% { border-color: rgba(201, 162, 74, 0.45); box-shadow: 0 4px 8px rgba(201, 162, 74, 0.12); }
  50% { border-color: rgba(230, 199, 119, 0.9); box-shadow: 0 4px 20px rgba(201, 162, 74, 0.42); }
}
@keyframes podiumAvatarPulse3 {
  0%, 100% { border-color: rgba(201, 162, 74, 0.35); box-shadow: 0 4px 6px rgba(201, 162, 74, 0.1); }
  50% { border-color: rgba(201, 162, 74, 0.8); box-shadow: 0 4px 16px rgba(201, 162, 74, 0.35); }
}
.sponsor-podium__crown {
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  animation: podiumTextPulse2 3s ease-in-out infinite;
}
.sponsor-podium__slot--1 .sponsor-podium__crown {
  font-size: 12px;
  animation-name: podiumTextPulse1;
}
.sponsor-podium__slot--3 .sponsor-podium__crown {
  animation-name: podiumTextPulse3;
}
.sponsor-podium__avatar { margin: 0 auto 12px; position: relative; z-index: 1; }
.sponsor-podium__slot--1 .user-avatar {
  width: 84px; height: 84px; font-size: 32px; border-width: 2px;
  animation: podiumAvatarPulse1 3s ease-in-out infinite;
}
.sponsor-podium__slot--2 .user-avatar {
  width: 72px; height: 72px; font-size: 28px;
  animation: podiumAvatarPulse2 3s ease-in-out infinite;
}
.sponsor-podium__slot--3 .user-avatar {
  width: 64px; height: 64px; font-size: 24px;
  animation: podiumAvatarPulse3 3s ease-in-out infinite;
}
.sponsor-podium__name {
  font-family: var(--font-title);
  color: var(--gold-bright);
  letter-spacing: 1px;
  margin-bottom: 8px;
  word-break: break-all;
  font-size: 15px;
  position: relative;
  z-index: 1;
  animation: podiumTextPulse2 3s ease-in-out infinite;
}
.sponsor-podium__slot--1 .sponsor-podium__name {
  font-size: 17px;
  animation-name: podiumTextPulse1;
}
.sponsor-podium__slot--2 .sponsor-podium__name { font-size: 15px; }
.sponsor-podium__slot--3 .sponsor-podium__name {
  font-size: 14px;
  animation-name: podiumTextPulse3;
}
.sponsor-podium__amount {
  font-family: var(--font-title);
  color: var(--gold-bright);
  letter-spacing: 1px;
  font-size: 18px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
  padding-bottom: 2px;
  overflow-wrap: anywhere;
  animation: podiumTextPulse2 3s ease-in-out infinite;
}
.sponsor-podium__slot--1 .sponsor-podium__amount {
  font-size: 22px;
  animation-name: podiumTextPulse1;
}
.sponsor-podium__slot--2 .sponsor-podium__amount { font-size: 19px; }
.sponsor-podium__slot--3 .sponsor-podium__amount {
  font-size: 17px;
  animation-name: podiumTextPulse3;
}
.sponsor-podium__amount span {
  font-size: 0.55em;
  color: var(--gold-dim);
  margin-left: 2px;
}
.sponsor-podium__empty {
  width: 100%;
  text-align: center;
  color: var(--ink-dim);
  padding: 24px;
}
@media (prefers-reduced-motion: reduce) {
  .sponsor-aura,
  .sponsor-podium__glow,
  .sponsor-podium__slot::before,
  .sponsor-podium__slot--1,
  .sponsor-podium__slot--2,
  .sponsor-podium__slot--3,
  .sponsor-podium__crown,
  .sponsor-podium__name,
  .sponsor-podium__amount,
  .sponsor-podium__slot .user-avatar {
    animation: none !important;
  }
  .sponsor-aura.is-ready {
    opacity: 0.75;
    transform: translate(-50%, -50%);
  }
}

/* 其余赞助者多列网格 */
.sponsor-grid-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.sponsor-grid-section__title {
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold-dim);
  text-align: center;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 16px 12px;
}
.sponsor-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
}
.sponsor-grid__name {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.5px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sponsor-hall-more {
  display: flex;
  justify-content: center;
  padding: 18px 8px 6px;
}
.sponsor-hall-more__btn {
  min-width: 168px;
  letter-spacing: 1px;
}
.sponsor-hall-status {
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  padding: 12px 8px 4px;
  min-height: 1.5em;
}

@media (max-width: 720px) {
  .sponsor-podium-stage {
    padding: 18px 0 16px;
  }
  .sponsor-aura {
    width: min(340px, 120%);
    height: min(300px, 120%);
  }
  .sponsor-podium {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: min(100%, 300px);
    margin-inline: auto;
    padding: 0;
  }
  .sponsor-podium__slot,
  .sponsor-podium__slot--1,
  .sponsor-podium__slot--2,
  .sponsor-podium__slot--3 {
    transform: none;
    max-width: none;
    width: 100%;
    flex: none;
  }
  .sponsor-podium__slot--1 {
    order: 1;
    padding: 22px 16px 20px;
  }
  .sponsor-podium__slot--2 { order: 2; }
  .sponsor-podium__slot--3 { order: 3; }
  .sponsor-podium__slot--1 .user-avatar {
    width: 76px;
    height: 76px;
    font-size: 30px;
  }
  .sponsor-podium__slot--1 .sponsor-podium__amount { font-size: 20px; }
  .sponsor-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 14px 10px;
  }
}

table.data .sponsor-edit-amount,
table.data .sponsor-edit-note {
  width: 100%;
  min-width: 88px;
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 14px;
}
table.data .sponsor-edit-note { min-width: 140px; }

/* ---------------------------------------------------------
   Modal
   --------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(3, 2, 6, 0.84);
  display: none;
  align-items: center; justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  backdrop-filter: blur(8px);
}
.modal-overlay.show { display: flex; animation: modalFadeIn .18s ease-out; }
.confirm-overlay { z-index: 60; }

.review-modal {
  isolation: isolate;
  width: min(880px, 100%);
  max-height: min(90dvh, 860px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse at 14% 0%, rgba(201,162,74,.15), transparent 34%),
    linear-gradient(145deg, rgba(29,26,38,.99), rgba(11,10,15,.99));
  box-shadow: 0 28px 76px rgba(0,0,0,.82), inset 0 1px 0 rgba(255,255,255,.05);
  animation: modalRise .22s ease-out;
}
.review-modal::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid rgba(201,162,74,.13);
  pointer-events: none;
}
.review-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 70px 24px 30px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(201,162,74,.09), transparent 56%);
}
.review-modal__eyebrow,
.confirm-dialog__eyebrow {
  margin-bottom: 6px;
  color: var(--gold-dim);
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.review-modal h3,
.confirm-dialog h3 {
  margin: 0;
  color: var(--gold-bright);
  font-family: var(--font-title);
  font-size: 25px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.review-modal .modal-sub {
  margin-top: 5px;
  color: var(--ink-dim);
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 1.4px;
}
.modal-close {
  position: absolute;
  top: 17px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.modal-close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.modal-close:hover { border-color: rgba(201,162,74,.45); background: rgba(201,162,74,.08); color: var(--gold-bright); }
.modal-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.review-modal__body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 16px;
  padding: 24px 30px 28px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.review-modal__body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.case-card,
.video-review,
.decision-card {
  border: 1px solid var(--line);
  background: rgba(8,7,12,.62);
}
.case-card { padding: 18px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,162,74,.18);
}
.section-heading span:first-child {
  color: var(--gold-bright);
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 1.5px;
}
.section-heading span:last-child {
  color: var(--ink-faint);
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.case-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.review-modal .detail-row {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid rgba(201,162,74,.15);
  background: rgba(255,255,255,.018);
}
.review-modal .detail-row--wide { grid-column: 1 / -1; min-height: auto; }
.review-modal .detail-row .dr-key {
  flex: none;
  color: var(--ink-faint);
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.review-modal .detail-row .dr-val { flex: 1; color: var(--ink); word-break: break-word; }
.detail-description { display: block; white-space: pre-wrap; line-height: 1.62; }

.video-review { padding: 18px; }
.video-review__header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 13px; }
.video-review__header p {
  color: var(--gold-bright);
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 1.5px;
}
.video-review__header div > span { display: block; max-width: 560px; margin-top: 3px; overflow: hidden; color: var(--ink-dim); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.video-review__meta { flex: 0 0 auto; color: var(--ink-faint); font-size: 12px; }
.video-frame { overflow: hidden; border: 1px solid rgba(201,162,74,.28); background: #000; aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-review .video-link-actions { justify-content: flex-end; }
.video-review .video-link-actions a { font-size: 14px; }

.decision-card { padding: 18px; }
.decision-card .field:last-child { margin-bottom: 0; }
.decision-card select,
.decision-card textarea { background: rgba(7,6,10,.75); }

.danger-zone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(201,75,75,.38);
  background: linear-gradient(90deg, rgba(140,47,47,.16), rgba(140,47,47,.035));
}
.danger-zone p { margin-bottom: 2px; color: var(--blood-bright); font-family: var(--font-title); font-size: 13px; letter-spacing: 1.2px; }
.danger-zone span { color: var(--ink-dim); font-size: 13px; }
.danger-zone .btn { flex: 0 0 auto; white-space: nowrap; }

.review-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  background: rgba(5,4,8,.54);
}

.confirm-dialog {
  position: relative;
  width: min(430px, 100%);
  max-height: min(90dvh, 720px);
  overflow: auto;
  padding: 36px 34px 32px;
  border: 1px solid rgba(201,75,75,.55);
  background:
    radial-gradient(circle at 50% 0%, rgba(140,47,47,.22), transparent 39%),
    linear-gradient(160deg, #21151a, #110d12);
  box-shadow: 0 26px 68px rgba(0,0,0,.82);
  text-align: center;
  animation: modalRise .2s ease-out;
}
.confirm-dialog__mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(201,75,75,.62);
  color: var(--blood-bright);
  background: rgba(140,47,47,.16);
}
.confirm-dialog__mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; }
.confirm-dialog h3 { color: #f0b3b3; font-size: 22px; }
.confirm-dialog__copy { margin: 13px auto 25px; color: var(--ink-dim); font-size: 15px; line-height: 1.65; }
.confirm-dialog__copy strong { color: var(--gold-bright); font-family: var(--font-title); font-size: 13px; letter-spacing: 1px; }
.confirm-dialog__error {
  max-height: 210px;
  margin: -7px 0 21px;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(201,75,75,.48);
  color: #f4c4c4;
  background: rgba(85,24,24,.24);
  font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.confirm-dialog__actions { display: flex; justify-content: center; gap: 12px; }
.sponsor-reject-dialog {
  width: min(520px, 100%);
  text-align: left;
}
.sponsor-reject-dialog .confirm-dialog__eyebrow,
.sponsor-reject-dialog h3,
.sponsor-reject-dialog .confirm-dialog__copy {
  text-align: center;
}
.sponsor-reject-dialog textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
}
.sponsor-reject-reason {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 查询页面也使用 detail-row，保留其原有的简洁排版。 */
.detail-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-row .dr-key { flex: 0 0 120px; color: var(--gold); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.detail-row .dr-val { flex: 1; color: var(--ink); word-break: break-word; }

@media (prefers-reduced-motion: reduce) {
  .modal-overlay.show,
  .review-modal,
  .confirm-dialog { animation: none; }
}

/* ---------------------------------------------------------
   Toast / alerts
   --------------------------------------------------------- */
.toast-host {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  left: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}
.toast {
  min-width: 0;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel-2);
  color: var(--ink);
  box-shadow: var(--shadow-deep);
  animation: toastIn .25s ease;
  pointer-events: auto;
  overflow-wrap: anywhere;
}
.toast.ok { border-color: var(--ok); }
.toast.err { border-color: var(--blood); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.empty {
  text-align: center;
  color: var(--ink-faint);
  font-style: italic;
  padding: 50px 20px;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  position: relative; z-index: 2;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 30px 20px max(40px, calc(env(safe-area-inset-bottom, 0px) + 24px));
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

/* ---------------------------------------------------------
   Hero (home)
   --------------------------------------------------------- */
.hero { text-align: center; padding: 30px 0 10px; }
.hero p { color: var(--ink-dim); max-width: 620px; margin: 0 auto 26px; font-size: 17px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 主页 · 快捷通道（默认折叠，弹层看图） */
.panel--quick-channel {
  text-align: center;
}
.panel--quick-channel .panel-hint {
  margin-bottom: 16px;
}
.quick-channel-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}
.quick-channel-empty {
  margin: 0;
  color: var(--ink-faint);
  font-size: 14px;
  font-style: italic;
}
.quick-channel-modal {
  width: min(520px, calc(100vw - 28px));
  max-height: min(90vh, 900px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-deep);
}
.quick-channel-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.quick-channel-modal__header h3 {
  margin: 0;
  font-family: var(--font-title);
  color: var(--gold-bright);
  font-size: 18px;
  letter-spacing: 2px;
}
.quick-channel-modal__figure {
  margin: 0;
  padding: 16px;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.quick-channel-modal__figure img {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.quick-channel-admin-preview {
  display: flex;
  justify-content: center;
}
.quick-channel-admin-preview .quick-channel-empty {
  padding: 28px 16px;
  border: 1px dashed rgba(201, 162, 74, 0.28);
  width: 100%;
  max-width: 420px;
}
.quick-channel-admin-preview .quick-channel-figure {
  margin: 0;
  width: 100%;
  max-width: 360px;
}
.quick-channel-admin-preview .quick-channel-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.info-card { border: 1px solid var(--line); background: var(--bg-input); padding: 26px; text-align: center; }
.info-card .ic-icon { font-size: 34px; color: var(--gold); margin-bottom: 12px; }
.info-card h3 { font-family: var(--font-title); color: var(--gold-bright); letter-spacing: 2px; font-size: 17px; margin-bottom: 8px; }
.info-card p { color: var(--ink-dim); font-size: 14px; }

/* responsive */
@media (max-width: 640px) {
  .wrap { padding: 0 14px 56px; }
  .site-header { padding-left: 12px; padding-right: 12px; }
  .site-header h1 { font-size: 24px; letter-spacing: 4px; }
  .site-header .subtitle { font-size: 12px; letter-spacing: 1px; padding-inline: 8px; }
  .nav { gap: 6px; }
  .nav-row { gap: 6px; }
  .nav a {
    font-size: 12px;
    letter-spacing: 1px;
    padding: 8px 12px;
  }
  .nav-thanks a { font-size: 12px; padding: 8px 12px 6px; }
  .panel { padding: 22px 16px; margin: 22px 0; }
  .panel h2 {
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 1.35;
  }
  .panel--sponsor-hall .sponsor-hall-title {
    font-size: clamp(26px, 8vw, 34px);
    letter-spacing: 0.1em;
  }
  body { font-size: 16px; }
  .field .hint .desc-count { display: block; float: none; }
  .upload-guidance { padding: 16px; }
  .auth-page .site-header h1 { font-size: 24px; letter-spacing: 4px; }
  .auth-card { padding: 28px 18px 26px; }
  .auth-card h2 { font-size: 22px; letter-spacing: 2px; }
  .auth-card::before,
  .auth-card::after { width: 44px; height: 44px; }
  .cards { grid-template-columns: 1fr; }
  .info-card { padding: 20px 16px; }
  .sponsor-qr-grid { gap: 12px; }
  .sponsor-qr { max-width: none; }
  .panel--disclaimer .disclaimer-list > li {
    padding: 14px 14px 14px 52px;
  }
  .panel--disclaimer .disclaimer-list > li::before {
    left: 12px;
    top: 14px;
    font-size: 15px;
  }
  .panel--disclaimer .disclaimer-list h3 {
    font-size: 15px;
    letter-spacing: 1px;
  }
  .panel--disclaimer .disclaimer-list p {
    font-size: 14px;
  }
  .hero p { font-size: 15px; padding-inline: 4px; }
  .hero .cta-row { width: 100%; }
  .hero .cta-row .btn { width: 100%; }

  /* 查询结果：标签与内容改为上下排列，避免窄屏挤压 */
  .detail-row {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }
  .detail-row .dr-key {
    flex: none;
    width: auto;
  }
  .case-head { gap: 12px; }
  .result-code { padding: 22px 14px; }
  .timeline { padding-left: 24px; }
  .timeline li { padding-right: 0; }

  /* 管理端工具条 / 统计 */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px 10px; }
  .stat .num { font-size: 24px; }
  .toolbar { gap: 8px; }
  .toolbar input,
  .toolbar select {
    width: 100%;
    min-width: 0;
    flex: 1 1 140px;
  }
  .toolbar .spacer { display: none; }
  .page-size-control { width: 100%; justify-content: space-between; }
  .video-link-actions {
    flex-wrap: wrap;
    width: 100%;
  }
  .video-link-actions .btn,
  .video-link-actions a {
    flex: 1 1 140px;
  }

  .toast-host {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    max-width: none;
  }

  .avatar-crop-dialog { padding: 16px 14px 14px; }
  .avatar-crop-stage { height: min(42dvh, 300px); min-height: 180px; }
  .sponsor-reject-reason {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

@media (max-width: 640px) {
  .modal-overlay { align-items: flex-end; }
  .review-modal { max-height: calc(100dvh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  .review-modal__header { padding: 22px 58px 19px 21px; }
  .review-modal h3 { font-size: 21px; letter-spacing: 1px; }
  .review-modal__body { gap: 12px; padding: 16px 15px 18px; }
  .case-card, .video-review, .decision-card { padding: 14px; }
  .case-details { grid-template-columns: 1fr; gap: 8px; }
  .review-modal .detail-row--wide { grid-column: auto; }
  .video-review__header { gap: 10px; }
  .video-review__header div > span { max-width: 100%; }
  .video-review .video-link-actions { justify-content: space-between; gap: 8px; }
  .danger-zone { align-items: stretch; flex-direction: column; gap: 12px; }
  .danger-zone .btn { width: 100%; }
  .review-modal .modal-actions { flex-direction: column-reverse; padding: 14px 15px; }
  .review-modal .modal-actions .btn { width: 100%; }
  .confirm-dialog { padding: 28px 18px 22px; max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)); }
  .confirm-dialog__actions { flex-direction: column-reverse; }
  .confirm-dialog__actions .btn { width: 100%; }
  .pagination { align-items: stretch; flex-direction: column; }
  .pagination__summary { text-align: center; }
  .pagination__controls { width: 100%; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .nav a { padding: 7px 10px; }
  .btn { padding: 12px 18px; letter-spacing: 1px; font-size: 14px; }
}

/* ---------------------------------------------------------
   关于页 · 长卡片（黑金）
   大卡片宽度 = 3×小卡片 + 2×间距 + 左右内边距
   --------------------------------------------------------- */
.about-panel {
  --about-card-w: 280px;
  --about-card-gap: 12px;
  --about-pad-x: 40px;
  box-sizing: border-box;
  width: calc(
    3 * var(--about-card-w) + 2 * var(--about-card-gap) + 2 * var(--about-pad-x)
  );
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 36px var(--about-pad-x) 32px;
  background:
    radial-gradient(ellipse 80% 55% at 8% 0%, rgba(201, 162, 74, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(201, 162, 74, 0.06), transparent 45%),
    linear-gradient(165deg, #1a1722 0%, #121018 50%, #0c0a11 100%);
}

.about-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.about-card__avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  color: var(--gold-bright);
  filter: drop-shadow(0 0 10px rgba(201, 162, 74, 0.28));
}

.about-card__avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.about-card__title {
  margin: 0;
  color: var(--gold-bright);
  font-family: var(--font-title);
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
}

.about-card__role {
  margin: 5px 0 0;
  color: var(--ink-dim);
  font-size: 15px;
  letter-spacing: 0.5px;
}

.about-card__bio {
  margin: 0 0 28px;
  width: 100%;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.85;
  text-align: left;
  word-break: break-word;
}

.about-contact__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--gold-bright);
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
}

.about-contact__title svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.about-contact__list {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--about-card-gap);
  align-items: stretch;
}

.about-contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 var(--about-card-w);
  width: var(--about-card-w);
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(201, 162, 74, 0.08), transparent 42%),
    rgba(27, 24, 36, 0.88);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(201, 162, 74, 0.1);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}

a.about-contact__item:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(201, 162, 74, 0.14), transparent 48%),
    #221e2c;
  box-shadow: var(--glow-gold), inset 0 1px 0 rgba(201, 162, 74, 0.18);
  transform: translateY(-1px);
}

.about-contact__item--static {
  cursor: default;
}

button.about-contact__item {
  font: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.about-contact__item--copy {
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}

.about-contact__item--copy:hover,
.about-contact__item--copy:focus-visible {
  color: var(--ink);
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(201, 162, 74, 0.14), transparent 48%),
    #221e2c;
  box-shadow: var(--glow-gold), inset 0 1px 0 rgba(201, 162, 74, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.about-contact__item--copy:hover .about-contact__arrow,
.about-contact__item--copy:focus-visible .about-contact__arrow {
  color: var(--gold-bright);
}

.about-contact__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 162, 74, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.about-contact__icon svg {
  width: 22px;
  height: 22px;
}

.about-contact__icon i {
  font-size: 20px;
  line-height: 1;
}

.about-contact__icon--douyin {
  background: linear-gradient(160deg, #1a1a1a 0%, #0a0a0a 100%);
}

.about-contact__icon--mail {
  color: var(--gold-bright);
  background: linear-gradient(160deg, #2a2418 0%, #15110c 100%);
}

.about-contact__icon--wechat {
  color: #07c160;
  background: linear-gradient(160deg, #2a2418 0%, #15110c 100%);
}

.about-contact__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.about-contact__label {
  color: var(--ink-dim);
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 1.5px;
  line-height: 1.3;
}

.about-contact__value {
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-contact__arrow {
  flex: 0 0 auto;
  color: var(--gold-dim);
  font-size: 16px;
  line-height: 1;
  transition: color .2s, transform .2s;
}

.about-contact__copy-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.about-contact__copy-mark svg {
  width: 16px;
  height: 16px;
}

a.about-contact__item:hover .about-contact__arrow {
  color: var(--gold-bright);
  transform: translate(2px, -2px);
}

/* 广告合作 · 上下卡片布局 */
.about-panel--coop {
  margin-top: 0;
}

.about-coop__hero {
  text-align: center;
  margin-bottom: 26px;
}

.about-coop__badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(201, 162, 74, 0.45);
  background:
    linear-gradient(160deg, rgba(201, 162, 74, 0.18), transparent 55%),
    #1a1622;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(201, 162, 74, 0.16);
}

.about-coop__badge svg {
  width: 26px;
  height: 26px;
}

.about-coop__hero .about-card__title {
  text-align: center;
}

.about-coop__tagline {
  margin: 8px 0 0;
  color: var(--ink-dim);
  font-size: 15px;
  letter-spacing: 1px;
}

.about-coop__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--about-card-gap);
}

.about-coop__card {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(201, 162, 74, 0.08), transparent 42%),
    rgba(27, 24, 36, 0.88);
  box-shadow: inset 0 1px 0 rgba(201, 162, 74, 0.1);
}

.about-coop__card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--gold-bright);
  font-family: var(--font-title);
}

.about-coop__card-head svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex: 0 0 auto;
}

.about-coop__card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

.about-coop__card-desc {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
}

.about-coop__card-desc--solo {
  margin-bottom: 0;
}

.about-coop__contact-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.about-coop__contact-stack .about-contact__item {
  flex: 0 0 auto;
  width: 100%;
}

.about-coop__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.55;
}

.about-coop__note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--gold);
}

@media (max-width: 720px) {
  .about-panel {
    --about-pad-x: 18px;
    width: 100%;
    padding: 28px var(--about-pad-x) 22px;
  }
  .about-card__avatar {
    width: 48px;
    height: 48px;
  }
  .about-card__bio {
    font-size: 14.5px;
    margin-bottom: 22px;
  }
  .about-contact__list {
    flex-direction: column;
    flex-wrap: wrap;
  }
  .about-contact__item {
    flex: 0 0 auto;
    width: 100%;
    min-height: 64px;
  }
  .about-coop__contact-stack {
    grid-template-columns: 1fr;
  }
  .about-coop__badge {
    width: 48px;
    height: 48px;
  }
}
