/* ==========================================================================
   Moka HR Skill 中心 · 业务页面样式
   覆盖：登录 / 注册、作品提交、用户中心、作品与版本详情。
   仅复用 base.css 的 token 与通用组件，页面新增类统一使用 dash- 前缀。
   ========================================================================== */

[hidden] {
  display: none !important;
}

/* ------------------------------ 通用页面骨架 ------------------------------ */

.dash-eyebrow {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dash-inline-hint {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}

.dash-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.dash-page-head__text {
  max-width: 720px;
}

.dash-page-head h1 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.dash-page-head__sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.dash-label-note {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}

.dash-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12.5px;
}

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

.dash-crumbs a:hover {
  color: var(--brand);
}

.dash-crumbs__sep {
  color: var(--line-strong);
}

.dash-empty {
  margin: 0;
  padding: 22px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.dash-section {
  margin-bottom: 36px;
}

.dash-section .section-head {
  margin-bottom: 16px;
}

.dash-subtitle {
  margin: 20px 0 12px;
  font-size: 14.5px;
  font-weight: 700;
}

.center-actions {
  justify-content: center;
}

/* ------------------------------ 认证页 ------------------------------ */

.dash-auth {
  display: grid;
  min-height: calc(100vh - var(--header-h) - 260px);
  padding: 20px 0 44px;
  place-items: center;
}

.dash-auth__card {
  width: min(460px, 100%);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.dash-auth--wide .dash-auth__card {
  width: min(560px, 100%);
}

.dash-auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}

.dash-auth__brand:hover {
  color: var(--ink);
}

.dash-auth__brand .brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.dash-auth__title {
  font-size: clamp(1.5rem, 3.2vw, 1.85rem);
  font-weight: 750;
}

.dash-auth__sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.dash-auth__form {
  margin-top: 26px;
}

.dash-auth__form .input {
  font-size: 16px;
}

.dash-auth__form .field {
  margin-bottom: 16px;
}

.dash-auth__form .btn--block {
  margin-top: 6px;
}

.dash-auth__switch {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.dash-auth__switch a {
  font-weight: 650;
}

.dash-auth__foot {
  margin-top: 12px;
  color: #93a1b8;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

/* ------------------------------ 投稿页 ------------------------------ */

.dash-submit {
  max-width: 980px;
  margin: 0 auto;
}

.dash-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid var(--info-line);
  border-radius: var(--radius-md);
  background: var(--info-bg);
  color: var(--info);
  font-size: 13.5px;
  line-height: 1.6;
}

.dash-notice p {
  flex: 1;
  min-width: 240px;
}

.dash-notice strong {
  font-weight: 700;
}

.dash-notice__link {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dash-notice--info {
  border-color: var(--info-line);
  background: var(--info-bg);
  color: var(--info);
}

.dash-existing {
  margin-bottom: 20px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 13.5px;
}

.dash-existing summary {
  color: var(--ink-soft);
  font-weight: 650;
  cursor: pointer;
}

.dash-existing summary:hover {
  color: var(--brand);
}

.dash-existing__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: var(--ink-soft);
}

.dash-existing__list li {
  line-height: 1.6;
}

.dash-existing__list .muted {
  font-size: 12.5px;
}

.dash-step {
  margin-bottom: 22px;
  overflow: hidden;
}

.dash-step__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-soft), #fff);
}

.dash-step__no {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13.5px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.dash-step__intro h2 {
  font-size: 17px;
  font-weight: 700;
}

.dash-step__intro p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dash-step__body {
  padding: 22px 24px 26px;
}

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

.dash-form-grid .field--full {
  grid-column: 1 / -1;
}

.dash-form-grid .field {
  min-width: 0;
}

.dash-fieldset {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.dash-fieldset > legend {
  padding: 0;
  margin-bottom: 7px;
}

/* 压缩包上传 */

.dash-drop__zone {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 30px 20px;
  border: 2px dashed var(--brand-line);
  border-radius: var(--radius-md);
  background: #f7f9ff;
  color: var(--ink-soft);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.dash-drop__zone:hover,
.dash-drop.is-dragover .dash-drop__zone {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(41, 82, 227, 0.08);
}

.dash-drop.is-uploading .dash-drop__zone {
  cursor: progress;
  opacity: 0.7;
}

.dash-drop.is-done .dash-drop__zone {
  border-style: solid;
  border-color: var(--success-line);
  background: var(--success-bg);
}

.dash-drop__icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 2px;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
}

.dash-drop__title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.dash-drop__hint {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.dash-drop__file {
  margin-top: 4px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.dash-upload {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 13.5px;
}

.dash-upload.is-checking {
  border-color: var(--info-line);
  background: var(--info-bg);
}

.dash-upload.is-ok {
  border-color: var(--success-line);
  background: var(--success-bg);
}

.dash-upload.is-error {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}

.dash-upload__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  overflow-wrap: anywhere;
}

.dash-upload__line strong {
  font-weight: 650;
}

.dash-upload__meta {
  color: var(--muted);
  font-size: 12.5px;
}

.dash-upload.is-error .dash-upload__meta,
.dash-upload.is-error .dash-upload__state {
  color: var(--danger);
}

.dash-upload__state {
  margin-top: 6px;
  font-weight: 550;
}

.dash-upload__sha {
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.dash-upload__sha code {
  font-size: 11.5px;
}

.dash-progress {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(41, 82, 227, 0.12);
}

.dash-progress__bar {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #7f97ff);
  animation: dash-indeterminate 1.15s ease-in-out infinite;
}

@keyframes dash-indeterminate {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(320%); }
}

.dash-findings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.dash-finding {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.dash-finding--high { border-left-color: var(--danger); }
.dash-finding--medium { border-left-color: var(--warn); }
.dash-finding--low { border-left-color: var(--info); }

.dash-finding__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.dash-finding__badge {
  padding: 1px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.dash-finding--high .dash-finding__badge {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}

.dash-finding--medium .dash-finding__badge {
  border-color: var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn);
}

.dash-finding--low .dash-finding__badge {
  border-color: var(--info-line);
  background: var(--info-bg);
  color: var(--info);
}

.dash-finding__rule {
  color: var(--ink);
  font-weight: 650;
}

.dash-finding__file {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.dash-finding__reason {
  margin-top: 3px;
}

.dash-finding__snippet {
  display: block;
  margin-top: 6px;
  padding: 6px 8px;
  overflow-x: auto;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dash-warnings {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--warn-line);
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 12.5px;
}

.dash-warnings__title {
  font-weight: 700;
}

.dash-warnings__list {
  margin: 4px 0 0;
  padding-left: 18px;
  line-height: 1.6;
}

.dash-help {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.dash-help summary {
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
}

.dash-help summary:hover {
  color: var(--brand);
}

.dash-help__list {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.7;
}

.dash-field-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dash-field-foot .field__hint {
  margin-top: 6px;
}

.dash-count {
  flex: none;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dash-count.is-near {
  color: var(--warn);
  font-weight: 650;
}

/* 作品类型 / 原作品 */

.dash-worktypes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.dash-worktype {
  position: relative;
  display: flex;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fbfdff;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.dash-worktype:hover {
  border-color: var(--brand-line);
  background: #fff;
}

.dash-worktype:focus-within {
  outline: 3px solid rgba(41, 82, 227, 0.45);
  outline-offset: 2px;
}

.dash-worktype input {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.dash-worktype.is-checked {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(41, 82, 227, 0.1);
}

.dash-worktype__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 24px;
}

.dash-worktype__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.dash-worktype__title {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}

.dash-worktype__en {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.dash-worktype__desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.dash-worktype__tag {
  align-self: flex-start;
  margin-top: 3px;
  padding: 2px 7px;
  border: 1px solid var(--warn-line);
  border-radius: 6px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 11.5px;
}

.dash-original {
  margin: 4px 0 22px;
  padding: 18px 20px 6px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  background: #f8faff;
}

.dash-original__head {
  margin-bottom: 16px;
}

.dash-original__head h3 {
  font-size: 14.5px;
  font-weight: 700;
}

.dash-original__head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

/* 文件选择器 */

.dash-fileinput {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.dash-fileinput::file-selector-button {
  margin-right: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.dash-fileinput::file-selector-button:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

/* 截图预览 */

.dash-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.dash-thumb {
  position: relative;
  width: 128px;
}

.dash-thumb img {
  display: block;
  width: 128px;
  height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  object-fit: cover;
}

.dash-thumb__name {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-thumb__remove {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.dash-thumb__remove:hover {
  border-color: var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}

/* 脱敏提示 */

.dash-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid var(--warn-line);
  border-radius: var(--radius-md);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 12.5px;
  line-height: 1.6;
}

.dash-warning svg {
  flex: none;
  margin-top: 2px;
}

/* 声明与提交 */

.dash-declarations {
  margin-bottom: 8px;
}

.dash-declare {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.dash-declare:hover {
  border-color: var(--line-strong);
}

.dash-declare:focus-within {
  border-color: var(--brand-line);
  outline: 3px solid rgba(41, 82, 227, 0.3);
  outline-offset: 1px;
}

.dash-declare--master {
  margin-bottom: 4px;
  border-color: var(--brand-line);
  background: #f3f6ff;
  color: var(--ink);
  font-weight: 650;
}

.dash-declare__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.dash-declare__tag {
  margin-right: 2px;
  color: var(--danger);
  font-weight: 650;
}

.dash-submitbar {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.dash-submitbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.dash-submitbar__hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.dash-submitbar .field__error {
  margin-top: 10px;
}

/* ------------------------------ 用户中心 ------------------------------ */

.dash-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.dash-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dash-stat__label {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
}

.dash-stat__value {
  color: var(--ink);
  font-size: 25px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.dash-stat__hint {
  color: #8c9ab2;
  font-size: 11.5px;
}

.dash-me__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
  align-items: start;
}

.dash-me__grid .card__head {
  align-items: flex-start;
}

.dash-me__grid .card__head h2 {
  font-size: 17px;
}

.dash-table td.cell-note {
  max-width: 320px;
  white-space: normal;
}

.dash-table td {
  vertical-align: top;
}

.dash-table td:first-child,
.dash-table th:first-child {
  padding-left: 18px;
}

.dash-table td:last-child,
.dash-table th:last-child {
  padding-right: 18px;
}

.dash-table--compact th,
.dash-table--compact td {
  padding: 10px 12px;
}

.dash-table--compact th:first-child,
.dash-table--compact td:first-child {
  padding-left: 16px;
}

.dash-table--compact th:last-child,
.dash-table--compact td:last-child {
  padding-right: 16px;
}

.dash-table-wrap .table {
  min-width: 0;
}

/* 上传日志 */

.dash-logcard {
  padding: 6px 20px;
}

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

.dash-log {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.dash-log:last-child {
  border-bottom: 0;
}

.dash-log__action {
  color: var(--ink);
  font-weight: 600;
}

.dash-log__time {
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.dash-log__ip {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.dash-log__detail {
  grid-column: 1 / -1;
  font-size: 12.5px;
}

.dash-log__detail summary {
  color: var(--brand);
  cursor: pointer;
}

.dash-log__detail summary:hover {
  color: var(--brand-strong);
}

.dash-log__detail pre {
  margin: 8px 0 0;
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ------------------------------ 我的作品 / 版本 ------------------------------ */

.dash-deleted__reason {
  margin-top: 4px;
  font-weight: 600;
}

.dash-deleted__hint {
  margin-top: 4px;
  opacity: 0.88;
}

.dash-skill__grid,
.dash-skill-page .dash-kv-wide + .dash-info-note {
  margin-top: 0;
}

.dash-skill__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.6fr);
  gap: 20px;
  align-items: start;
}

.dash-kv-wide {
  grid-template-columns: 116px minmax(0, 1fr);
}

.dash-info-note {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.dash-version-no {
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0;
}

.dash-hash {
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

/* 版本详情页 */

.dash-version__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.dash-version__main,
.dash-version__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.dash-version__side {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.dash-scan {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid var(--info-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--info-bg), #fff);
  color: var(--info);
}

.dash-scan__spinner {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  border: 3px solid var(--brand-line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: dash-spin 0.85s linear infinite;
}

@keyframes dash-spin {
  to { transform: rotate(360deg); }
}

.dash-scan__body h2 {
  color: var(--info);
  font-size: 15.5px;
  font-weight: 700;
}

.dash-scan__body p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.dash-scan__hint {
  font-variant-numeric: tabular-nums;
}

.dash-review-note {
  margin-bottom: 20px;
  padding: 16px 20px;
  border: 1px solid var(--warn-line);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius-md);
  background: var(--warn-bg);
}

.dash-review-note h2 {
  color: var(--warn);
  font-size: 14px;
  font-weight: 700;
}

.dash-review-note p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dash-review-note__meta {
  color: var(--muted) !important;
  font-size: 12px !important;
}

.dash-report-count {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.dash-verdict {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.dash-verdict__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 120px;
}

.dash-verdict__label {
  color: var(--muted);
  font-size: 12px;
}

.dash-verdict__value {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}

.dash-prose {
  margin-top: 16px;
}

.dash-prose h3 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.dash-prose__body {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dash-pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dash-policy {
  color: var(--ink);
  font-weight: 650;
}

.dash-code {
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
}

/* 发现列表表格：固定列宽，避免窄容器把「说明」列挤成竖排 */
.dash-report-table {
  table-layout: fixed;
  white-space: normal;
}

.dash-report-table th,
.dash-report-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dash-report-table th:nth-child(1),
.dash-report-table td:nth-child(1) {
  width: 21%;
}

.dash-report-table th:nth-child(2),
.dash-report-table td:nth-child(2) {
  width: 8%;
}

.dash-report-table th:nth-child(3),
.dash-report-table td:nth-child(3) {
  width: 18%;
}

.dash-report-table th:nth-child(4),
.dash-report-table td:nth-child(4) {
  width: 27%;
}

.dash-report-table th:nth-child(5),
.dash-report-table td:nth-child(5) {
  width: 26%;
}

.dash-report-table .dash-snippet {
  display: block;
  max-width: 100%;
  max-height: 5.2em;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.dash-snippet {
  display: inline-block;
  max-width: 280px;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.dash-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  object-fit: cover;
}

.dash-gallery__link {
  display: block;
  border-radius: 8px;
}

.dash-gallery__link:hover img {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
}

.dash-downloads {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-downloads .btn {
  width: 100%;
}

.dash-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--line);
  list-style: none;
}

.dash-timeline__item {
  position: relative;
  min-width: 0;
}

.dash-timeline__item::before {
  position: absolute;
  top: 5px;
  left: -25px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  content: "";
}

.dash-timeline__action {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.dash-timeline__meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.dash-timeline__detail {
  margin-top: 6px;
  font-size: 12.5px;
}

.dash-timeline__detail summary {
  color: var(--brand);
  cursor: pointer;
}

.dash-timeline__detail pre {
  margin: 6px 0 0;
  padding: 8px 10px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

@media (max-width: 1180px) {
  .dash-version__grid {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
}

@media (max-width: 1024px) {
  .dash-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dash-me__grid {
    grid-template-columns: 1fr;
  }

  .dash-skill__grid {
    grid-template-columns: 1fr;
  }

  .dash-version__grid {
    grid-template-columns: 1fr;
  }

  .dash-version__side {
    position: static;
  }

  .dash-worktypes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .dash-auth {
    min-height: 0;
    padding: 8px 0 32px;
  }
}

@media (max-width: 768px) {
  .dash-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .dash-page-head h1 {
    font-size: 1.45rem;
  }

  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-stat {
    padding: 14px;
  }

  .dash-stat__value {
    font-size: 22px;
  }

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

  .dash-step__head {
    padding: 16px 18px;
  }

  .dash-step__body {
    padding: 18px 18px 22px;
  }

  .dash-drop__zone {
    padding: 24px 16px;
  }

  .dash-worktype {
    padding: 13px;
  }

  .dash-submitbar__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dash-submitbar__actions .btn {
    width: 100%;
  }

  .dash-log {
    grid-template-columns: 1fr;
  }

  .dash-log__time {
    text-align: left;
  }

  .dash-logcard {
    padding: 4px 16px;
  }

  .dash-scan {
    padding: 16px;
  }

  .dash-scan__body h2 {
    font-size: 14.5px;
  }

  .dash-kv-wide {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .dash-snippet {
    max-width: 180px;
  }

  .dash-thumb,
  .dash-thumb img {
    width: 104px;
  }

  .dash-thumb img {
    height: 70px;
  }

  .dash-notice {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .dash-auth__card {
    padding: 22px 18px;
  }

  .dash-auth__brand {
    margin-bottom: 20px;
  }

  .dash-drop__title {
    font-size: 14px;
  }

  .dash-drop__icon {
    width: 40px;
    height: 40px;
  }

  .dash-step__head {
    gap: 10px;
    padding: 14px 14px;
  }

  .dash-step__no {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 12px;
  }

  .dash-step__body {
    padding: 16px 14px 20px;
  }

  .dash-declare {
    padding: 11px 12px;
  }

  .dash-stats {
    gap: 10px;
  }

  .dash-stat {
    padding: 12px;
  }

  .dash-stat__value {
    font-size: 20px;
  }

  .dash-kv-wide {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .dash-snippet {
    max-width: 130px;
  }

  .dash-thumb,
  .dash-thumb img {
    width: 92px;
  }

  .dash-thumb img {
    height: 62px;
  }

  .dash-verdict {
    gap: 10px 18px;
  }
}

@media (max-width: 390px) {
  .dash-drop__zone {
    padding: 20px 12px;
  }

  .dash-page-head__sub {
    font-size: 13px;
  }

  .dash-stat__hint {
    display: none;
  }

  .dash-submitbar__hint {
    font-size: 12px;
  }
}

/* 富文本单页（参赛须知） */
.rules-page {
  width: 100%;
  max-width: 860px;
  margin: 28px auto 56px;
}

.rules-page__head {
  margin-bottom: 22px;
}

.rules-page__eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.rules-page__title {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.2;
}

.rules-page__meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.rich-text {
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.85;
}

.rich-text h2 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.rich-text h2:first-child {
  margin-top: 0;
}

.rich-text h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

.rich-text p {
  margin: 10px 0;
}

.rich-text ul,
.rich-text ol {
  margin: 10px 0;
  padding-left: 24px;
}

.rich-text li {
  margin: 6px 0;
}

.rich-text blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--brand);
  background: var(--surface-muted);
  color: var(--ink-soft);
}

.rich-text img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px auto;
  border-radius: 10px;
}

.rich-text a {
  color: var(--brand);
  text-decoration: underline;
}

.rich-text hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.rich-text table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
}

.rich-text th,
.rich-text td {
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.rich-text th {
  background: var(--surface-muted);
}

.rules-page__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .rules-page {
    margin: 16px auto 40px;
  }

  .rules-page__title {
    font-size: 26px;
  }

  .rich-text {
    padding: 20px 18px;
    border-radius: 12px;
  }
}

/* 富文本单页：底部相关链接 */
.rules-page__foot-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-left: auto;
  font-size: 13px;
}

.rules-page__foot-links a {
  color: var(--muted);
  text-decoration: none;
}

.rules-page__foot-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .rules-page__foot-links {
    margin-left: 0;
  }
}

/* 个人中心：设置 / 注销账户 */
.dash-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.dash-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.dash-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
}

.danger-zone {
  border-color: rgba(180, 35, 24, 0.22);
}

.danger-zone .alert {
  margin-bottom: 16px;
}

.danger-zone .btn--danger {
  margin-top: 4px;
}
