/* =========================================================
   番剧补完计划 —— 动漫风格主题
   配色：樱花粉 / 天空蓝 / 暮紫 + 玻璃拟态 + 大量微动画
   ========================================================= */

:root {
  --pink: #ff6b9d;
  --pink-soft: #ffb3d1;
  --purple: #9b5de5;
  --blue: #4d9eff;
  --blue-soft: #a0d2ff;
  --mint: #6ee7c7;
  --ink: #2d1b3d;
  --ink-soft: #5b4a6e;
  --paper: rgba(255, 255, 255, 0.72);
  --paper-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(155, 93, 229, 0.18);
  --shadow: 0 18px 50px -12px rgba(155, 93, 229, 0.45);
  --shadow-soft: 0 8px 24px -8px rgba(45, 27, 61, 0.25);
  --radius: 20px;
  --radius-sm: 12px;
  --t: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  background: #fff0f6;
}

/* ---------- 动态渐变背景 ---------- */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(125deg, #ffe0ec, #e7e0ff, #d6ecff, #ffe7f3);
  background-size: 300% 300%;
  animation: gradientShift 22s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ---------- 漂浮光球 ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  animation: floatOrb 18s ease-in-out infinite;
}
.orb-1 { width: 360px; height: 360px; background: var(--pink-soft); top: -80px; left: -60px; }
.orb-2 { width: 420px; height: 420px; background: var(--blue-soft); bottom: -120px; right: -80px; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: #d8b6ff; top: 40%; right: 20%; animation-delay: -12s; }
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

/* ---------- 樱花飘落 ---------- */
.sakura-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -5%;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 30% 30%, #ffd0e2, #ff8fb6);
  border-radius: 150% 0 150% 0;
  opacity: 0.8;
  animation: fall linear infinite;
  will-change: transform;
}
@keyframes fall {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.85; }
  100% { transform: translate3d(var(--drift, 60px), 110vh, 0) rotate(540deg); opacity: 0; }
}

/* ---------- 布局 ---------- */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  position: relative;
}

/* ---------- 导航 ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 22px;
  color: #fff;
  /* background: linear-gradient(135deg, var(--pink), var(--purple)); */
  border-radius: 12px;
  /* box-shadow: 0 6px 16px -4px var(--pink); */
  animation: bob 3.5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-5px) rotate(3deg); }
}
.brand-text { font-size: 18px; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: var(--t);
}
.nav-links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  transform: translateY(-2px);
}
/* 已登录用户信息（头像 + 昵称）：与导航链接同风格的胶囊 */
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 14px -6px var(--pink);
}
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px -2px var(--pink);
}
.nav-user-name {
  font-weight: 600;
  color: var(--ink);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 30px 10px 26px; }
.hero-small { padding-bottom: 18px; }
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--purple);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 18px;
  animation: fadeInUp 0.7s both;
}
.hero-title {
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--ink);
}
.title-line { display: block; animation: fadeInUp 0.8s both; }
.title-line:nth-child(2) { animation-delay: 0.12s; }
.title-line.accent {
  background: linear-gradient(120deg, var(--pink), var(--purple) 60%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sparkle {
  display: inline-block;
  color: var(--pink);
  -webkit-text-fill-color: var(--pink);
  animation: twinkle 1.6s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%      { transform: scale(1.4) rotate(45deg); opacity: 0.6; }
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 15px;
  animation: fadeInUp 1s both;
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 玻璃卡片 ---------- */
.card {
  position: relative;
  background: var(--paper);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.entrance { animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card-glow {
  position: absolute;
  top: -40%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(closest-side, rgba(255, 107, 157, 0.25), transparent);
  pointer-events: none;
  animation: glowSweep 9s ease-in-out infinite;
}
@keyframes glowSweep {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(80%); }
}

.form-card { padding: 8px 30px 30px; }

/* ---------- 表单 ---------- */
.anime-form { position: relative; }

.form-banner {
  margin: 22px 0 6px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}
.form-banner.error {
  color: #c0392b;
  background: rgba(255, 138, 142, 0.18);
  border: 1px solid rgba(192, 57, 43, 0.25);
}

.field-group {
  border: none;
  margin: 28px 0 8px;
  padding: 0;
  border-top: 1px dashed var(--line);
  padding-top: 22px;
}
.field-group:first-of-type { border-top: none; padding-top: 22px; }
.field-group legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--purple);
  padding: 0 8px;
}
.legend-num {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 8px;
  font-family: "ZCOOL KuaiLe", sans-serif;
}

.field { margin-bottom: 18px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink-soft);
}
.field-label.required::after {
  content: " *";
  color: var(--pink);
}

.input {
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--t);
}
.input::placeholder { color: #b6a8c9; }
.input:hover { border-color: var(--pink-soft); }
.input:focus {
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.18), 0 4px 14px -6px var(--pink);
  transform: translateY(-1px);
}
select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--purple) 50%),
                    linear-gradient(135deg, var(--purple) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.textarea { resize: vertical; min-height: 96px; }

/* 输入框校验失败的红色描边 */
.field:has(.field-error) .input {
  border-color: #e8637a;
  background: rgba(255, 200, 210, 0.35);
  animation: shake 0.4s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.field-error {
  margin: 6px 2px 0;
  font-size: 12.5px;
  color: #d64561;
  font-weight: 500;
  animation: fadeInUp 0.3s both;
}
.field-hint {
  margin: 6px 2px 0;
  font-size: 12px;
  color: var(--ink-soft);
}

/* 类型标签芯片 */
.genre-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; min-height: 4px; }
.genre-chips .chip {
  padding: 4px 12px;
  font-size: 12.5px;
  color: var(--purple);
  background: rgba(155, 93, 229, 0.12);
  border-radius: 999px;
  animation: chipPop 0.3s both;
}
@keyframes chipPop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* 文件拖放区 */
.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.55);
  border: 2px dashed var(--pink-soft);
  border-radius: var(--radius-sm);
  transition: var(--t);
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--pink);
  background: rgba(255, 107, 157, 0.1);
  transform: translateY(-2px);
}
.file-drop-text { font-size: 14px; font-weight: 500; }
.file-drop-name { font-size: 12.5px; color: var(--purple); word-break: break-all; }

/* ---------- 按钮 ---------- */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 10px 24px -8px var(--pink);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -8px var(--pink); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:active { transform: translateY(-1px) scale(0.98); }

.btn-ghost {
  color: var(--purple);
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }

/* 提交按钮 loading */
.btn-loader {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn-label { opacity: 0.7; }
.btn.is-loading .btn-loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.form-foot .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(110, 231, 199, 0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(110, 231, 199, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(110, 231, 199, 0); }
}

/* ---------- Flash 提示 ---------- */
.flash-wrap { margin-bottom: 16px; }
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  animation: cardIn 0.5s both;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}
.flash-success { color: #1a8a5c; background: rgba(110, 231, 199, 0.22); border-color: rgba(26, 138, 92, 0.3); }
.flash-error   { color: #c0392b; background: rgba(255, 138, 142, 0.22); border-color: rgba(192, 57, 43, 0.3); }
.flash-close { background: none; border: none; font-size: 20px; cursor: pointer; color: inherit; opacity: 0.6; }
.flash-close:hover { opacity: 1; }

/* ---------- 成功页 ---------- */
.success-card { text-align: center; padding: 50px 30px; }
.checkmark { width: 92px; height: 92px; margin: 0 auto 16px; }
.checkmark-circle {
  stroke: var(--mint);
  stroke-width: 2.5;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.7s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards;
}
.checkmark-check {
  stroke: var(--mint);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes stroke { to { stroke-dashoffset: 0; } }

.success-title {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 32px;
  margin: 0 0 6px;
  background: linear-gradient(120deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.success-sub { color: var(--ink-soft); margin: 0 0 24px; }

.success-detail {
  max-width: 420px;
  margin: 0 auto 28px;
  text-align: left;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.detail-row:last-child { border-bottom: none; }
.detail-k { color: var(--ink-soft); }
.detail-v { font-weight: 600; }

.success-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 错误页 ---------- */
.error-card { text-align: center; padding: 60px 30px; }
.error-code {
  font-family: "ZCOOL KuaiLe", sans-serif;
  font-size: 84px;
  line-height: 1;
  background: linear-gradient(120deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: floatOrb 5s ease-in-out infinite;
}
.error-title { font-family: "ZCOOL KuaiLe", sans-serif; font-size: 26px; margin: 8px 0 6px; }

/* ---------- 补番墙网格 ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.plan-card {
  background: var(--paper);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: var(--t);
  animation-delay: var(--d, 0s);
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--pink-soft);
}
.plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  color: #fff;
}
.tag-planned   { background: var(--blue); }
.tag-watching  { background: var(--pink); }
.tag-completed { background: var(--mint); color: #14704f; }
.tag-dropped   { background: #b0a8c0; }
.plan-priority { font-size: 11.5px; color: var(--ink-soft); }
.prio-high { color: var(--pink); font-weight: 600; }
.plan-title { font-size: 18px; margin: 0; font-weight: 700; }
.plan-orig { margin: 2px 0 12px; font-size: 12.5px; color: var(--ink-soft); }

.plan-progress { margin: 12px 0; }
.progress-bar {
  height: 8px;
  background: rgba(155, 93, 229, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 999px;
  animation: barGrow 1s ease both;
}
@keyframes barGrow { from { width: 0 !important; } }
.progress-num { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-soft); }

.plan-genres { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip {
  font-size: 11.5px;
  padding: 3px 10px;
  background: rgba(155, 93, 229, 0.12);
  color: var(--purple);
  border-radius: 999px;
}
.plan-notes {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 10px 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  border-left: 3px solid var(--pink-soft);
}
.plan-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}
.plan-foot .by { color: var(--purple); font-weight: 600; }
.plan-foot .rating { color: #f5a623; }
.plan-foot .time { margin-left: auto; }
.by { color: var(--purple); font-weight: 600; }
.rating { color: #f5a623; }

/* 空状态 */
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty-emoji { font-size: 48px; margin-bottom: 10px; animation: bob 3s ease-in-out infinite; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.pager-info { font-size: 14px; color: var(--ink-soft); }

/* ---------- 页脚 ---------- */
.footer {
  text-align: center;
  padding: 30px 20px 40px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- 响应式 ---------- */
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 8px 18px 24px; }
  .navbar { padding: 18px; }
  .success-detail { padding: 14px 16px; }
}

/* 尊重用户的减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .petal { display: none; }
}

/* =========================================================
   需求征集平台 —— 新增组件样式
   ========================================================= */

/* ---------- 导航变体 ---------- */
.nav-links a.nav-admin {
  color: var(--purple);
  border: 1.5px solid var(--line);
  font-size: 13px;
}
.nav-links a.nav-logout { color: #d64561; }

/* ---------- 按钮变体 ---------- */
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #e8637a);
  box-shadow: 0 8px 20px -8px #e8637a;
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px #e8637a; }

.input-sm { padding: 8px 12px; font-size: 13.5px; }
.textarea-sm { min-height: 56px; resize: vertical; padding: 9px 12px; font-size: 13.5px; }

/* ---------- 状态标签（全站统一配色） ---------- */
.tag-pending     { background: var(--blue); }
.tag-in_progress { background: var(--purple); }
.tag-updated     { background: var(--mint); color: #14704f; }
.tag-wont_update { background: #e8637a; }
.tag-archived    { background: #b0a8c0; }

/* ---------- 需求墙筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 6px 0 26px;
}
.filter-tab {
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: var(--t);
}
.filter-tab:hover { transform: translateY(-2px); border-color: var(--pink-soft); }
.filter-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  box-shadow: 0 8px 18px -8px var(--pink);
}

/* ---------- 需求卡内部信息 ---------- */
.demand-card { display: flex; flex-direction: column; }
.demand-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.meta-pill {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--purple);
  background: rgba(155, 93, 229, 0.12);
}
.meta-urgency-high { color: #fff; background: linear-gradient(135deg, #ff8a8a, #e8637a); }
.meta-urgency-normal { color: var(--purple); }
.meta-urgency-low { color: var(--ink-soft); background: rgba(155, 93, 229, 0.08); }

/* ---------- 官方回复块 ---------- */
.admin-reply {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.public-reply {
  background: rgba(110, 231, 199, 0.18);
  border-left: 3px solid var(--mint);
}
.pending-reply {
  background: rgba(255, 255, 255, 0.5);
  border-left: 3px solid var(--blue-soft);
}
.admin-reply p { margin: 6px 0 0; color: var(--ink); }
.reply-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #14704f;
}
.reply-badge.muted { color: var(--ink-soft); }

.source-link {
  display: inline-block;
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--blue);
  text-decoration: none;
}
.source-link:hover { text-decoration: underline; }

/* ---------- +1 支持按钮 ---------- */
.support-row { margin-top: auto; padding-top: 12px; }
.btn-support {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px dashed var(--pink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--t);
}
.btn-support:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--pink);
  border-style: solid;
  background: rgba(255, 107, 157, 0.1);
}
.btn-support.voted {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #e8637a);
  border-color: transparent;
  cursor: default;
}
.btn-support.closed { opacity: 0.55; cursor: not-allowed; }
.btn-support:disabled { cursor: default; }
.support-count { font-weight: 700; font-size: 15px; }
.support-text { font-size: 12.5px; opacity: 0.9; }
.heart { display: inline-block; font-size: 16px; }
.heart.beat { animation: beat 0.5s ease; }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.5); }
  60% { transform: scale(0.9); }
}

/* ---------- 空状态卡 ---------- */
.empty-card { text-align: center; padding: 50px 24px; }
.empty-card a { color: var(--pink); font-weight: 600; }

/* ---------- 详情页 ---------- */
.back-link { display: inline-block; margin: 20px 0 14px; color: var(--purple); text-decoration: none; font-size: 14px; }
.back-link:hover { text-decoration: underline; }
.detail-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.detail-title {
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  margin: 12px 0 4px;
}
.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.detail-cell {
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.detail-section { margin: 18px 0; }
.detail-h { font-size: 15px; color: var(--purple); margin: 0 0 8px; }
.detail-reason {
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0;
  line-height: 1.7;
}
.detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.support-summary { font-size: 14px; color: var(--ink-soft); }
.support-summary b { color: var(--pink); font-size: 17px; }

/* ---------- 后台统计 ---------- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 20px;
}
.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 88px;
  padding: 12px 16px;
  text-decoration: none;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: var(--t);
}
.stat-chip:hover { transform: translateY(-3px); border-color: var(--pink-soft); }
.stat-chip.active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  box-shadow: 0 10px 22px -10px var(--pink);
}
.stat-chip.active .stat-num,
.stat-chip.active .stat-lbl { color: #fff; }
.stat-num { font-family: "ZCOOL KuaiLe", sans-serif; font-size: 24px; color: var(--ink); line-height: 1.1; }
.stat-lbl { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- 后台搜索 ---------- */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.search-bar .input { flex: 1; min-width: 200px; }

/* ---------- 后台需求卡 ---------- */
.admin-list { display: flex; flex-direction: column; gap: 16px; }
.admin-card { padding: 20px 24px; }
.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.admin-card-head .meta-pill { margin-left: 4px; }
.admin-id { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.admin-title { font-size: 20px; margin: 4px 0; }
.admin-alias { font-size: 13px; color: var(--ink-soft); font-weight: 400; margin-left: 8px; }
.admin-reason {
  white-space: pre-wrap;
  font-size: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 8px 0;
  border-left: 3px solid var(--pink-soft);
}
.admin-source { font-size: 12.5px; color: var(--ink-soft); word-break: break-all; margin: 6px 0; }
.admin-source a { color: var(--blue); }
.admin-contact { font-size: 12.5px; color: var(--ink-soft); margin: 6px 0; }
.admin-contact span { color: #c0392b; font-weight: 600; }

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inline-form.reply-form { flex-direction: column; align-items: stretch; }
.inline-form.reply-form .input { width: 100%; }
.mini-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.inline-form select { max-width: 200px; }

.admin-foot { margin-top: 30px; text-align: center; }

/* ---------- 响应式补充 ---------- */
@media (max-width: 600px) {
  .admin-card { padding: 16px; }
  .admin-card-head { font-size: 13px; }
  .stat-chip { min-width: 72px; padding: 10px; }
}
