:root {
  /* 多巴胺高饱和色板 */
  --pink: #ff2e93;
  --purple: #8a4dff;
  --cyan: #00d4ff;
  --green: #00e676;
  --yellow: #ffd60a;
  --orange: #ff7a00;
  --lime: #c6ff3d;
  --blue: #2e7bff;

  --bg: #fff7fb;
  --surface: #ffffff;
  --text: #221a2e;
  --muted: #6c5f7a;
  --border: #ffe0f0;
  --shadow: 0 10px 28px rgba(255, 46, 147, 0.14);
  --radius: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, #ffe3f3 0%, transparent 55%),
    radial-gradient(1000px 500px at 110% 0%, #e3f4ff 0%, transparent 50%),
    radial-gradient(900px 600px at 50% 120%, #eafff0 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); }

/* 顶部 —— 多巴胺流动渐变 */
.topbar {
  margin: 14px;
  border-radius: 26px;
  padding: 30px 18px;
  text-align: center;
  color: #fff;
  background: linear-gradient(115deg, var(--pink), var(--orange) 30%, var(--yellow) 50%, var(--green) 70%, var(--cyan) 88%, var(--purple));
  background-size: 300% 300%;
  animation: flow 14s ease infinite;
  box-shadow: 0 14px 36px rgba(255, 122, 0, 0.28);
}
@keyframes flow { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.topbar h1 {
  margin: 0; font-size: 30px; letter-spacing: 2px; font-weight: 900;
  text-shadow: 0 3px 0 rgba(0,0,0,.12), 0 0 18px rgba(255,255,255,.5);
}
.topbar p { margin: 10px 0 0; font-weight: 700; font-size: 14px; opacity: .96; }

/* 标签页 —— 彩色药丸 */
.tabs {
  display: flex; gap: 10px; overflow-x: auto; padding: 6px 16px 0;
  max-width: 1000px; margin: 0 auto; -webkit-overflow-scrolling: touch;
}
.tab {
  flex: 0 0 auto; padding: 11px 18px; border: 2px solid transparent; cursor: pointer;
  border-radius: 999px; font-size: 14px; font-weight: 800; white-space: nowrap;
  background: #fff; color: var(--muted);
  box-shadow: 0 4px 12px rgba(138,77,255,.12); transition: transform .15s, box-shadow .15s;
}
.tab:nth-child(1){ color: var(--pink); }
.tab:nth-child(2){ color: var(--purple); }
.tab:nth-child(3){ color: var(--blue); }
.tab:nth-child(4){ color: var(--orange); }
.tab:hover { transform: translateY(-2px); }
.tab.active { color: #fff; border-color: #fff; box-shadow: 0 8px 20px rgba(255,46,147,.35); }
.tab.active:nth-child(1){ background: var(--pink); }
.tab.active:nth-child(2){ background: var(--purple); }
.tab.active:nth-child(3){ background: var(--blue); }
.tab.active:nth-child(4){ background: var(--orange); }

/* 容器 */
.container { max-width: 1000px; margin: 18px auto; padding: 0 16px 70px; }
.panel { display: none; }
.panel.active { display: block; animation: pop .3s ease; }
@keyframes pop { from{opacity:0; transform:translateY(10px) scale(.98)} to{opacity:1; transform:none} }

/* 卡片 —— 圆润 + 彩色描边 */
.card {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; position: relative; overflow: hidden;
}
.card::before {
  content:""; position:absolute; inset:0 0 auto 0; height:6px;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--green), var(--cyan), var(--purple));
}
.card h2 { margin: 6px 0 4px; font-size: 20px; font-weight: 900; }
.card .sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; font-weight: 600; }

/* 表单 */
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 700; }
input[type="text"], textarea, select {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 14px;
  font-size: 14px; font-family: inherit; background: #fffdfe; color: var(--text); font-weight: 600;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255,46,147,.18); }
textarea { min-height: 120px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--muted); margin-top: 14px; font-weight: 600; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--pink); }

/* 按钮 —— 多巴胺渐变 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 20px; border: none; border-radius: 14px; cursor: pointer;
  font-size: 15px; font-weight: 900; color: #fff; width: 100%; margin-top: 16px;
  background: linear-gradient(100deg, var(--pink), var(--purple));
  box-shadow: 0 8px 20px rgba(138,77,255,.35); transition: transform .12s, filter .12s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: linear-gradient(100deg, var(--cyan), var(--blue)); box-shadow: 0 8px 20px rgba(0,212,255,.35); }
.btn.ghost { background: #fff; color: var(--purple); border: 2px solid var(--purple); box-shadow: none; width: auto; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* 列表 */
.list { display: flex; flex-direction: column; gap: 14px; }
.item {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 2px solid var(--border); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow);
  transition: transform .12s;
}
.item:hover { transform: translateY(-2px); }
.rank {
  flex: 0 0 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 17px; color: #fff; background: linear-gradient(135deg, var(--purple), var(--blue));
}
.rank.top { background: linear-gradient(135deg, var(--pink), var(--orange), var(--yellow)); box-shadow: 0 6px 16px rgba(255,122,0,.4); }
.item .meta { flex: 1; min-width: 0; }
.item .title { font-weight: 900; font-size: 16px; }
.item .author { color: var(--muted); font-size: 13px; font-weight: 700; }
.item .note { color: var(--muted); font-size: 12px; margin-top: 3px; font-weight: 600; }
.vote-btn {
  flex: 0 0 auto; border: none; color: #fff; border-radius: 12px; padding: 10px 16px; cursor: pointer;
  font-size: 14px; font-weight: 900; background: linear-gradient(120deg, var(--green), var(--cyan));
  box-shadow: 0 6px 14px rgba(0,230,118,.35); transition: transform .12s;
}
.vote-btn:hover { transform: scale(1.05); }
.vote-btn:disabled { background: #d9cfe6; box-shadow: none; cursor: not-allowed; }

.badge { display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 800; margin-left: 8px; vertical-align: middle; }
.badge.top12 { background: linear-gradient(120deg, var(--pink), var(--orange)); color: #fff; }
.badge.rec { background: #eafff0; color: #00a152; }
.badge.file { background: #e9f6ff; color: var(--blue); }
.badge.poem { background: #f3eaff; color: var(--purple); }

.empty { text-align: center; color: var(--muted); padding: 34px 0; font-size: 14px; font-weight: 700; }

/* 版权声明条 */
.copynote {
  font-size: 13px; font-weight: 700; background: #fff4e6; border: 2px dashed var(--orange);
  color: #a8520a; border-radius: 14px; padding: 14px 16px; margin-top: 14px;
}
.policy li { margin-bottom: 10px; font-size: 14px; font-weight: 600; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: linear-gradient(100deg, var(--purple), var(--pink)); color: #fff; padding: 12px 20px;
  border-radius: 14px; font-size: 14px; font-weight: 800; opacity: 0; pointer-events: none;
  transition: all .25s; z-index: 50; max-width: 90vw; text-align: center; box-shadow: 0 10px 24px rgba(255,46,147,.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 管理后台状态药丸 */
.pill { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 800; }
.pill.active { background: #eafff0; color: #00a152; }
.pill.deleted { background: #ffe9e9; color: #d33; }
.pill.blacklisted { background: #fff0e6; color: var(--orange); }
.b-restore { background: #eef2ff; color: var(--blue); }
.b-del { background: #ffe9e9; color: #d33; }
.b-ban { background: #fff0e6; color: var(--orange); }
.actions button { padding: 8px 13px; font-size: 12px; border-radius: 10px; border: none; cursor: pointer; font-weight: 800; }
.section-title { font-size: 17px; font-weight: 900; margin: 26px 0 12px; color: var(--purple); }
.stat .box { background: var(--surface); border: 2px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.stat .num { font-size: 24px; font-weight: 900; background: linear-gradient(120deg, var(--pink), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { font-size: 12px; color: var(--muted); font-weight: 700; }

@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 24px; }
}
