/* ===== 小蓝鸭反馈系统 - 高标准 UI/UX 视觉系统 ===== */
:root {
  --sky-50: #f4fcff;
  --sky-100: #e9f8ff;
  --sky-150: #def2ff;
  --sky-200: #d2eeff;
  --sky-300: #b6e1ff;
  --sky-400: #8fd0fb;
  --sky-500: #67b8ed;
  --sky-600: #4f9edf;
  --sky-700: #3f7fc7;
  --ink-900: #203347;
  --ink-700: #4b6378;
  --ink-500: #7a8ea0;
  --white: #ffffff;
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.78);
  --surface-muted: rgba(245, 251, 255, 0.88);
  --border-soft: rgba(105, 171, 232, 0.18);
  --border-strong: rgba(95, 161, 222, 0.28);
  --shadow-soft: 0 18px 40px rgba(82, 147, 215, 0.14);
  --shadow-hover: 0 28px 58px rgba(82, 147, 215, 0.2);
  --shadow-floating: 0 12px 30px rgba(100, 172, 235, 0.14);
  --duck-yellow: #ffd96c;
  --duck-yellow-deep: #ffbf44;
  --success-green: #58b774;
  --danger-red: #f06262;
  --warning-gold: #ffcc5b;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --motion-fast: 180ms ease;
  --motion-base: 260ms cubic-bezier(0.22, 1, 0.36, 1);
  --motion-slow: 420ms cubic-bezier(0.22, 1, 0.36, 1);

  /* 兼容旧变量命名 */
  --primary-blue: var(--sky-500);
  --light-blue: var(--sky-300);
  --pale-blue: var(--sky-100);
  --deep-blue: var(--sky-700);
  --accent-green: var(--success-green);
  --accent-yellow: var(--duck-yellow-deep);
  --accent-red: var(--danger-red);
  --text-dark: var(--ink-900);
  --text-gray: var(--ink-700);
  --text-light: var(--ink-500);
  --bg-white: var(--white);
  --bg-light: var(--surface-muted);
  --border-color: var(--border-soft);
  --shadow: var(--shadow-soft);
  --shadow-hover-old: var(--shadow-hover);
  --radius: var(--radius-lg);
  --radius-sm-old: var(--radius-sm);
  --transition: var(--motion-base);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink-900);
  line-height: 1.6;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(187, 236, 255, 0.88) 0 8%, transparent 9%),
    radial-gradient(circle at 84% 18%, rgba(255, 239, 172, 0.88) 0 5%, transparent 6%),
    radial-gradient(circle at 88% 76%, rgba(203, 243, 255, 0.72) 0 10%, transparent 11%),
    linear-gradient(165deg, #eefcff 0%, #f7fbff 44%, #edf5ff 100%);
}

body.page-shell,
body.user-page,
body.admin-page,
body.entry-page {
  position: relative;
  overflow-x: hidden;
}

body.page-shell::before,
body.page-shell::after,
body.user-page::before,
body.admin-page::before,
body.entry-page::before {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(10px);
}

body.page-shell::before,
body.user-page::before,
body.entry-page::before {
  width: 280px;
  height: 280px;
  top: 14%;
  left: -70px;
  background: rgba(178, 236, 255, 0.28);
  animation: drift 16s linear infinite alternate;
}

body.page-shell::after {
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: 14%;
  background: rgba(255, 236, 166, 0.2);
  animation: drift 18s linear infinite alternate-reverse;
}

body.admin-page {
  background:
    radial-gradient(circle at 10% 10%, rgba(194, 233, 255, 0.7) 0 8%, transparent 9%),
    linear-gradient(180deg, #f5fbff 0%, #fbfdff 48%, #f0f7ff 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ===== 通用壳层 ===== */
.container,
.container-wide {
  width: min(1120px, calc(100% - 40px));
  margin: 40px auto;
}

.container {
  width: min(1040px, calc(100% - 40px));
}

.hero-card,
.panel-card,
.card,
.stat-card,
.feedback-item,
.modal-content,
.detail-item,
.empty-state,
.entry-link,
.hero-badge {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.card,
.panel-card,
.hero-card {
  padding: 32px;
}

.card {
  margin-bottom: 24px;
  transition:
    transform var(--motion-base),
    box-shadow var(--motion-base),
    border-color var(--motion-fast);
}

.card:hover,
.panel-card:hover,
.hero-card:hover,
.stat-card:hover,
.feedback-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.card-title,
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(105, 171, 232, 0.16);
  color: var(--sky-700);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card-title img,
.section-title img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--sky-700);
  background: rgba(107, 191, 238, 0.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtitle {
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.75;
}

.brand-panel,
.info-panel,
.support-panel {
  position: relative;
  overflow: hidden;
}

.brand-panel::before,
.info-panel::before,
.support-panel::before {
  content: "";
  position: absolute;
  inset: auto -32px -38px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(188, 234, 255, 0.2);
}

.brand-panel::after,
.info-panel::after {
  content: "";
  position: absolute;
  inset: 20px auto auto -28px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(118, 189, 241, 0.16);
}

.hero-logo {
  width: 84px;
  margin-bottom: 18px;
}

.entry-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(180px, 0.72fr);
  align-items: center;
  gap: 22px;
}

.entry-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.entry-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-hero-logo {
  width: min(100%, 200px);
  margin: 0;
}

.hero-title {
  margin-bottom: 14px;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.12;
  color: var(--ink-900);
}

.hero-copy {
  max-width: 46ch;
  color: var(--ink-700);
  font-size: 15px;
}

.hero-tips,
.hero-stats,
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tip-chip,
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(121, 186, 237, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
}

.hero-chip--warm {
  background: rgba(255, 236, 180, 0.54);
  border-color: rgba(255, 201, 86, 0.18);
}

.shell-grid,
.two-pane-layout,
.query-layout,
.detail-layout,
.dashboard-grid,
.admin-detail-layout {
  display: grid;
  gap: 22px;
}

.two-pane-layout,
.query-layout {
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.detail-layout {
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  align-items: start;
}

.admin-detail-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: start;
}

.dashboard-grid {
  grid-template-columns: 1fr;
}

.surface-stack {
  display: grid;
  gap: 18px;
}

.brand-illustration {
  width: min(100%, 300px);
  margin-top: 28px;
  margin-left: auto;
  filter: drop-shadow(0 16px 34px rgba(84, 151, 214, 0.18));
}

.brand-illustration.small {
  width: min(100%, 180px);
}

/* ===== 导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 30px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(102, 170, 228, 0.12);
  box-shadow: 0 12px 32px rgba(89, 158, 222, 0.08);
  backdrop-filter: blur(14px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.nav-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(102, 170, 228, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--sky-700);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform var(--motion-fast),
    background var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast);
}

.nav-home-link:hover {
  transform: translateY(-1px);
  background: rgba(104, 188, 238, 0.12);
  border-color: rgba(89, 158, 222, 0.22);
  box-shadow: inset 0 0 0 1px rgba(89, 158, 222, 0.08);
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.navbar .logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.navbar .logo span {
  min-width: 0;
  color: var(--sky-700);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform var(--motion-fast),
    background var(--motion-fast),
    color var(--motion-fast),
    box-shadow var(--motion-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sky-700);
  background: rgba(104, 188, 238, 0.14);
  box-shadow: inset 0 0 0 1px rgba(89, 158, 222, 0.16);
  transform: translateY(-1px);
}

/* ===== 表单 ===== */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 700;
}

.form-group label .required,
.required {
  color: var(--danger-red);
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid rgba(109, 177, 235, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(248, 252, 255, 0.92);
  color: var(--ink-900);
  transition:
    border-color var(--motion-fast),
    background var(--motion-fast),
    box-shadow var(--motion-fast),
    transform var(--motion-fast);
  appearance: none;
}

.form-control::placeholder {
  color: var(--ink-500);
}

.form-control:hover {
  border-color: rgba(98, 169, 230, 0.28);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(92, 165, 227, 0.42);
  box-shadow: 0 0 0 5px rgba(133, 206, 246, 0.18);
  transform: translateY(-1px);
}

textarea.form-control {
  min-height: 138px;
  resize: vertical;
}

select.form-control {
  padding-right: 46px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%235a7b99' d='M7 9.8 2.4 5.2h9.2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-note,
.field-tip {
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 12px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform var(--motion-fast),
    box-shadow var(--motion-fast),
    background var(--motion-fast),
    color var(--motion-fast),
    opacity var(--motion-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
  box-shadow: 0 14px 28px rgba(90, 155, 220, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(90, 155, 220, 0.28);
}

.btn-secondary {
  color: var(--sky-700);
  background: rgba(104, 188, 238, 0.14);
  box-shadow: inset 0 0 0 1px rgba(89, 158, 222, 0.1);
}

.btn-success {
  color: var(--white);
  background: linear-gradient(135deg, #6bc689, #47a566);
  box-shadow: 0 14px 28px rgba(74, 163, 102, 0.22);
}

.btn-warning {
  color: #6f4d00;
  background: linear-gradient(135deg, var(--duck-yellow), var(--duck-yellow-deep));
  box-shadow: 0 14px 28px rgba(255, 194, 77, 0.2);
}

.btn-danger {
  color: var(--white);
  background: linear-gradient(135deg, #f57a7a, #dd5353);
  box-shadow: 0 14px 28px rgba(234, 95, 95, 0.22);
}

.id-verify-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.id-verify-btn {
  min-width: 112px;
  padding-inline: 18px;
}

/* ===== 文件上传 ===== */
.file-upload {
  position: relative;
  padding: 26px 22px;
  border: 1px dashed rgba(104, 171, 231, 0.32);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(243, 250, 255, 0.9));
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--motion-fast),
    transform var(--motion-fast),
    background var(--motion-fast),
    box-shadow var(--motion-fast);
}

.file-upload:hover {
  transform: translateY(-2px);
  border-color: rgba(92, 165, 227, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 247, 255, 0.94));
  box-shadow: var(--shadow-floating);
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload-icon {
  margin-bottom: 10px;
  color: var(--sky-600);
  font-size: 34px;
}

.file-upload-text {
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 600;
}

.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.file-preview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 2px solid rgba(104, 171, 231, 0.16);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px rgba(103, 171, 232, 0.12);
}

/* ===== 反馈列表与状态 ===== */
.feedback-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.feedback-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  transition:
    transform var(--motion-base),
    box-shadow var(--motion-base),
    border-color var(--motion-fast);
}

.feedback-info {
  flex: 1;
}

.feedback-info .feedback-type {
  margin-bottom: 6px;
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 700;
}

.feedback-info .feedback-time {
  color: var(--ink-500);
  font-size: 12px;
}

.feedback-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.feedback-status.pending {
  color: #bf4f4f;
  background: rgba(243, 98, 98, 0.12);
}

.feedback-status.processing {
  color: #a77706;
  background: rgba(255, 204, 91, 0.18);
}

.feedback-status.completed {
  color: #368f52;
  background: rgba(88, 183, 116, 0.14);
}

.feedback-status.solved {
  color: #368f52;
  background: rgba(88, 183, 116, 0.14);
}

.feedback-status.rejected {
  color: #a33f3f;
  background: rgba(240, 102, 102, 0.18);
}

.feedback-status.withdrawn {
  color: #9b6b00;
  background: rgba(255, 204, 91, 0.18);
}

.feedback-status.reward {
  color: #8a5a00;
  background: rgba(255, 214, 92, 0.28);
}

/* ===== 进度链 ===== */
.progress-card {
  padding: 26px;
}

.progress-chain {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 8px 6px;
}

.progress-chain::before {
  content: "";
  position: absolute;
  inset: 42px 11% auto;
  height: 4px;
  border-radius: 999px;
  background: rgba(161, 206, 238, 0.46);
}

.progress-node {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
}

.progress-node .node-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border: 2px solid rgba(146, 194, 230, 0.6);
  border-radius: 50%;
  background: rgba(231, 244, 253, 0.98);
  color: var(--sky-700);
  font-size: 16px;
  font-weight: 700;
  transition:
    transform var(--motion-base),
    background var(--motion-base),
    border-color var(--motion-base),
    box-shadow var(--motion-base);
}

.progress-node .node-label {
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
}

.progress-node.is-current .node-circle {
  border-color: rgba(88, 183, 116, 0.44);
  background: rgba(217, 246, 225, 0.98);
  box-shadow: 0 14px 26px rgba(88, 183, 116, 0.16);
  transform: scale(1.08);
}

.progress-node.is-current .node-label {
  color: #2e8750;
}

.progress-node.is-complete .node-circle {
  border-color: rgba(124, 183, 227, 0.6);
  background: rgba(237, 248, 255, 0.98);
}

.progress-message {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(232, 245, 255, 0.88);
  color: var(--sky-700);
  font-size: 14px;
  line-height: 1.75;
}

/* ===== 详情、数据和筛选 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 22px 20px;
  text-align: left;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 255, 0.9));
  transition:
    transform var(--motion-base),
    box-shadow var(--motion-base);
}

.stat-value {
  margin-bottom: 8px;
  color: var(--sky-700);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 600;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(105, 171, 232, 0.12);
  border-radius: var(--radius-md);
  background: rgba(247, 251, 255, 0.9);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.detail-item {
  padding: 16px;
  background: rgba(247, 251, 255, 0.92);
}

.detail-label {
  margin-bottom: 6px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-value {
  color: var(--ink-900);
  font-size: 15px;
  word-break: break-word;
}

.status-panel,
.reply-panel,
.action-panel {
  padding: 20px;
  border: 1px solid rgba(105, 171, 232, 0.12);
  border-radius: var(--radius-md);
  background: rgba(247, 251, 255, 0.88);
}

.status-pill,
.detail-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.detail-card-status.pending {
  color: #c34a4a;
  background: rgba(243, 98, 98, 0.12);
}

.detail-card-status.processing {
  color: #a77706;
  background: rgba(255, 204, 91, 0.18);
}

.detail-card-status.completed {
  color: #388f54;
  background: rgba(88, 183, 116, 0.14);
}

.detail-card-status.solved {
  color: #388f54;
  background: rgba(88, 183, 116, 0.14);
}

.detail-card-status.rejected {
  color: #a33f3f;
  background: rgba(240, 102, 102, 0.18);
}

.detail-card-status.withdrawn {
  color: #9b6b00;
  background: rgba(255, 204, 91, 0.18);
}

.result-copy-box {
  background: rgba(247, 251, 255, 0.92);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ===== 提示、弹窗、加载 ===== */
.toast {
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 60;
  max-width: min(360px, calc(100% - 36px));
  padding: 14px 18px;
  border-radius: 18px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transform: translateX(120%);
  box-shadow: var(--shadow-soft);
  transition: transform var(--motion-base);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: linear-gradient(135deg, #68c684, #48a565);
}

.toast.error {
  background: linear-gradient(135deg, #f57a7a, #dc5555);
}

.toast.warning {
  color: #6a4d00;
  background: linear-gradient(135deg, #ffe28c, #ffc85e);
}

.toast.info {
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 29, 46, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-base), visibility var(--motion-base);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: min(100%, 480px);
  padding: 34px 30px;
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--motion-base);
}

.modal-overlay.show .modal-content {
  transform: translateY(0) scale(1);
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6cc88a, #46a562);
  box-shadow: 0 18px 34px rgba(88, 183, 116, 0.22);
  animation: pulse 1.8s ease-in-out infinite;
}

.success-icon::after {
  content: "✓";
  color: var(--white);
  font-size: 46px;
  font-weight: 800;
}

.modal-title {
  margin-bottom: 14px;
  color: #389058;
  font-size: 24px;
  font-weight: 800;
}

.modal-title--ink {
  color: var(--ink-900);
}

.modal-message {
  margin-bottom: 24px;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.8;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(17, 29, 46, 0.1);
}

.modal-badge--warning {
  color: #7a5600;
  background: linear-gradient(135deg, #ffe39f, #ffd164);
}

.modal-badge--success {
  color: #246d41;
  background: linear-gradient(135deg, #d5f3e1, #a7e3bf);
}

.modal-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(92, 165, 227, 0.12);
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
}

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

.modal-message img {
  width: min(100%, 120px);
  margin: 16px auto 0;
}

.loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(227, 244, 255, 0.8);
  border-top-color: var(--sky-700);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.empty-state {
  padding: 44px 24px;
  text-align: center;
  color: var(--ink-500);
}

.empty-state img {
  width: min(100%, 170px);
  margin: 0 auto 16px;
  opacity: 0.75;
}

.empty-state p {
  font-size: 15px;
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(16, 28, 43, 0.86);
  cursor: pointer;
}

.image-preview-modal img {
  max-width: 92%;
  max-height: 92%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.hidden {
  display: none !important;
}

.footer {
  padding: 26px 20px 34px;
  color: var(--ink-500);
  font-size: 13px;
  text-align: center;
}

.logo-large {
  width: 92px;
  margin: 0 auto 18px;
}

.login-container {
  width: min(1120px, calc(100% - 40px));
  margin: 44px auto;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

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

.inline-link {
  color: var(--sky-700);
  text-decoration: none;
  font-weight: 700;
}

.inline-link:hover {
  text-decoration: underline;
}

.entry-main {
  width: min(1020px, calc(100% - 40px));
  margin: 52px auto;
}

.entry-grid {
  display: grid;
  gap: 16px;
}

.entry-grid-user {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.entry-admin-row {
  display: flex;
  justify-content: center;
}

.entry-link {
  display: flex;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
  padding: 24px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--motion-base),
    box-shadow var(--motion-base),
    border-color var(--motion-fast);
}

.entry-link-user {
  min-height: 204px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(214, 241, 255, 0.96), rgba(168, 220, 248, 0.9) 52%, rgba(241, 250, 255, 0.94));
}

.entry-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.entry-link-title {
  color: var(--sky-700);
  font-size: 20px;
  font-weight: 800;
}

.entry-link-user .entry-link-title {
  color: var(--duck-yellow-deep);
  font-size: 30px;
}

.entry-link-copy {
  color: var(--ink-700);
  font-size: 14px;
}

.entry-link-admin {
  width: min(100%, 360px);
  min-height: 88px;
  padding: 18px 24px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.88), rgba(255, 255, 255, 0.94));
  box-shadow: 0 14px 28px rgba(82, 147, 215, 0.1);
}

.entry-link-admin .entry-link-title {
  color: var(--ink-700);
  font-size: 17px;
  font-weight: 700;
}

/* ===== 页面语义差异 ===== */
.user-page .hero-card,
.entry-page .hero-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(241, 250, 255, 0.84));
}

.admin-page .hero-card,
.admin-page .panel-card,
.admin-page .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 255, 0.9));
}

.submit-hero .brand-illustration,
.progress-hero .brand-illustration,
.login-hero .brand-illustration {
  margin-inline: auto 0;
}

/* ===== 动画 ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(16px, -14px, 0);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-card,
.panel-card,
.card,
.stat-card {
  animation: fadeUp 420ms var(--motion-base) both;
}

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

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

  .two-pane-layout,
  .query-layout,
  .detail-layout,
  .admin-detail-layout,
  .login-shell,
  .entry-grid-user {
    grid-template-columns: 1fr;
  }

  .entry-hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .entry-hero-copy {
    align-items: center;
  }

  .entry-admin-row {
    justify-content: stretch;
  }

  .entry-link-admin {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 14px 18px;
    align-items: stretch;
    flex-direction: column;
  }

  .nav-left {
    flex-wrap: wrap;
  }

  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

  .container,
  .container-wide,
  .entry-main,
  .login-container {
    width: calc(100% - 28px);
    margin: 24px auto;
  }

  .card,
  .hero-card,
  .panel-card {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .card-title,
  .section-title {
    font-size: 22px;
  }

  .hero-title {
    font-size: 30px;
  }

  .stats-grid,
  .detail-grid,
  .filter-bar,
  .id-verify-group {
    grid-template-columns: 1fr;
  }

  .feedback-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .feedback-status {
    min-width: 0;
  }

  .admin-actions {
    flex-direction: column;
  }

  .progress-chain {
    flex-direction: column;
    align-items: stretch;
    padding-left: 24px;
  }

  .progress-chain::before {
    inset: 24px auto 24px 34px;
    width: 4px;
    height: auto;
  }

  .progress-node {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
  }

  .progress-node .node-circle {
    margin: 0;
    flex: 0 0 auto;
  }

  .modal-content {
    padding: 28px 20px;
  }

  .toast {
    right: 14px;
    left: 14px;
    max-width: none;
    transform: translateY(-130%);
  }

  .toast.show {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
