/* ===== MC World 社区子页面共享样式 ===== */
:root {
  --bg: #0a0410;
  --bg-2: #120618;
  --ink: #fdeef6;
  --ink-soft: rgba(253, 238, 246, 0.66);
  --ink-faint: rgba(253, 238, 246, 0.36);
  --pink: #ff2e88;
  --cyan: #25e6e0;
  --sun: #ff8a3d;
  --violet: #7b2ff7;
  --line: rgba(255, 46, 136, 0.18);
  --line-2: rgba(37, 230, 224, 0.16);
  --panel: rgba(18, 6, 24, 0.72);
  --ok: #25e6a0;
  --warn: #ffb02e;
  --err: #ff4d6d;
  --display: "Anton", "Noto Sans SC", sans-serif;
  --body: "Archivo", "Noto Sans SC", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(255, 46, 136, 0.16), transparent 70%),
    radial-gradient(50% 50% at 90% 10%, rgba(37, 230, 224, 0.12), transparent 70%),
    radial-gradient(60% 60% at 50% 100%, rgba(123, 47, 247, 0.16), transparent 70%),
    var(--bg);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ===== 顶栏 ===== */
.pnav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10, 4, 16, 0.86), rgba(10, 4, 16, 0.4));
  border-bottom: 1px solid var(--line);
}
.pnav .brand {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 1px;
}
.pnav .brand span { color: var(--pink); }
.pnav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}
.pnav-back:hover { color: var(--ink); border-color: var(--pink); transform: translateX(-3px); }
.pnav-right { display: flex; align-items: center; gap: 12px; }
.pnav-auth { display: flex; align-items: center; gap: 10px; }
.pnav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(37, 230, 224, 0.06);
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pnav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); flex-shrink: 0; }
.pnav-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.18); }
.pnav-logout {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  transition: all 0.25s var(--ease);
}
.pnav-logout:hover { color: #ff9db0; border-color: var(--err); }
.pnav-login {
  font-size: 13px;
  font-weight: 700;
  color: #1a0410;
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--pink), var(--sun));
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.pnav-login:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 46, 136, 0.34); }

/* ===== 弹窗 ===== */
.pmodal {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(5, 2, 10, 0.78);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
.pmodal.show { opacity: 1; }
.pmodal-card {
  width: min(94vw, 560px);
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(26px, 4vw, 40px);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.32s var(--ease);
}
.pmodal.show .pmodal-card { transform: none; }
.pmodal-title { font-family: var(--display); font-size: clamp(22px, 4vw, 30px); letter-spacing: 0.5px; margin-bottom: 22px; padding-right: 40px; }
.pmodal-x {
  position: absolute; top: 18px; right: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 20px;
  transition: all 0.2s var(--ease);
}
.pmodal-x:hover { border-color: var(--pink); color: var(--pink); transform: rotate(90deg); }
.pmodal-body .field:last-of-type { margin-bottom: 14px; }

/* ===== 区块标题右上角动作 ===== */
.sec-cta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: #1a0410;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--pink), var(--sun));
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s;
}
.sec-cta:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 46, 136, 0.34); }
.sec-cta:disabled { opacity: 0.45; cursor: not-allowed; }

/* ===== 页头 ===== */
.phero {
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 48px);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.phero-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 7px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  margin-bottom: 22px;
  animation: pIn 0.6s var(--ease) both;
}
.phero-title {
  font-family: var(--display);
  font-size: clamp(40px, 8vw, 84px);
  line-height: 0.96;
  letter-spacing: 1px;
  animation: pIn 0.6s var(--ease) 0.05s both;
}
.phero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--pink), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.phero-desc {
  max-width: 580px;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  animation: pIn 0.6s var(--ease) 0.1s both;
}

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

/* ===== 内容容器 ===== */
.pwrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) 120px;
}

/* ===== 卡片通用 ===== */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* ===== 投票 ===== */
.poll-list { display: grid; gap: 26px; }
.poll {
  padding: clamp(22px, 3vw, 34px);
  position: relative;
  overflow: hidden;
  animation: pIn 0.55s var(--ease) both;
}
.poll::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(var(--pink), var(--violet));
}
.poll-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.poll-title { font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: 0.3px; }
.poll-tag {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--cyan);
  white-space: nowrap;
}
.poll-tag.multi { color: var(--sun); border-color: rgba(255, 138, 61, 0.3); }
.poll-tag.closed { color: var(--ink-faint); border-color: rgba(255,255,255,0.12); }
.poll-tag.anon { color: #c9a7ff; border-color: rgba(176, 130, 255, 0.32); }
.poll-tag.secret { color: var(--ink-faint); border-color: rgba(255,255,255,0.12); }
.poll-tag + .poll-tag { margin-left: 6px; }
.poll-desc { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.poll-deadline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-faint);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.poll-deadline.urgent { color: var(--sun); border-color: rgba(255, 138, 61, 0.35); background: rgba(255, 138, 61, 0.08); }
.poll-deadline.ended { color: var(--ink-faint); opacity: 0.8; }
.poll-options { display: grid; gap: 12px; }
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.2s var(--ease), background 0.25s;
  text-align: left;
  width: 100%;
  color: var(--ink);
}
.opt:hover:not(.disabled) { border-color: var(--pink); transform: translateX(3px); }
.opt.disabled { cursor: default; }
.opt-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 46, 136, 0.18), rgba(123, 47, 247, 0.12));
  transition: width 0.7s var(--ease);
  z-index: 0;
}
.opt-check {
  position: relative;
  z-index: 1;
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--ink-faint);
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: all 0.2s var(--ease);
}
.opt.radio .opt-check { border-radius: 50%; }
.opt.checked .opt-check { border-color: var(--pink); background: var(--pink); }
.opt.checked .opt-check::after { content: "✓"; font-size: 12px; color: #fff; font-weight: 700; }
.opt-label { position: relative; z-index: 1; flex: 1; font-size: 15px; }
.opt-pct { position: relative; z-index: 1; font-weight: 800; font-size: 15px; color: var(--cyan); min-width: 46px; text-align: right; }
.opt-votes { position: relative; z-index: 1; font-size: 12px; color: var(--ink-faint); min-width: 50px; text-align: right; }
.opt.mine { border-color: var(--cyan); }
.poll-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.poll-total { font-size: 13px; color: var(--ink-faint); }
.poll-total b { color: var(--ink); font-size: 15px; }
.poll-tag.collect { color: var(--sun); border-color: rgba(255, 138, 61, 0.3); }
.poll-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.poll-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
  transition: border-color 0.25s var(--ease), background 0.25s, color 0.25s, transform 0.2s var(--ease);
}
.poll-tab:hover { transform: translateY(-1px); border-color: var(--line-2); color: var(--ink); }
.poll-tab.active {
  border-color: var(--pink);
  background: rgba(255, 46, 136, 0.08);
  color: var(--ink);
}
.poll-tab-type {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-faint);
}
.poll-tab.active .poll-tab-type { background: rgba(255, 46, 136, 0.18); color: var(--pink); }
.poll-tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poll-tab-dot {
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(57, 211, 233, 0.6);
}
.poll-tab-dot.ended { background: var(--ink-faint); box-shadow: none; }
.poll-entries { list-style: none; display: grid; gap: 10px; margin: 0 0 18px; padding: 0; }
.poll-entries.empty-entries {
  display: block;
  padding: 26px 18px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-faint);
  border: 1px dashed var(--line-2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
}
.entry-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s var(--ease), background 0.25s;
}
.entry-item.mine { border-color: var(--cyan); background: rgba(57, 211, 233, 0.05); }
.entry-seq {
  flex-shrink: 0;
  min-width: 30px;
  font-weight: 800;
  font-size: 14px;
  color: var(--pink);
  text-align: center;
  line-height: 1.5;
}
.poll-entries.collect .entry-seq { color: var(--sun); }
.entry-body { flex: 1; min-width: 0; }
.entry-name-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.entry-name { font-size: 15px; font-weight: 700; color: var(--ink); word-break: break-word; }
.entry-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(57, 211, 233, 0.28);
  background: rgba(57, 211, 233, 0.06);
  transition: background 0.2s, border-color 0.2s;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entry-link:hover { background: rgba(57, 211, 233, 0.14); border-color: var(--cyan); }
.entry-note { font-size: 13px; line-height: 1.6; color: var(--ink-soft); word-break: break-word; white-space: pre-wrap; margin-bottom: 6px; }
.entry-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 0; flex-wrap: wrap; }
.entry-author { font-size: 13px; font-weight: 700; color: var(--ink); }
.entry-author.anon { color: var(--ink-faint); font-weight: 600; }
.entry-time { font-size: 11px; color: var(--ink-faint); }
.entry-content { font-size: 14px; line-height: 1.6; color: var(--ink-soft); word-break: break-word; white-space: pre-wrap; }
.entry-del {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-faint);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.entry-del:hover { color: var(--pink); border-color: var(--pink); background: rgba(255, 46, 136, 0.08); }
.entry-form { display: grid; gap: 12px; margin-top: 4px; }
.entry-input {
  width: 100%;
  resize: vertical;
  min-height: 64px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  transition: border-color 0.25s var(--ease);
}
.entry-input:focus { outline: none; border-color: var(--pink); }
.entry-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #1a0410;
  background: linear-gradient(120deg, var(--pink), var(--sun));
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 46, 136, 0.34); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn.ghost:hover:not(:disabled) { color: var(--ink); border-color: var(--cyan); box-shadow: none; }

/* ===== 表单（分享 / 反馈）===== */
.form-card { padding: clamp(24px, 4vw, 40px); max-width: 680px; margin: 0 auto; }
.field { display: block; margin-bottom: 20px; }
.field > span { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 9px; letter-spacing: 0.5px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), background 0.25s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--pink);
  background: rgba(255, 255, 255, 0.05);
}
.field-hint { font-size: 12px; color: var(--ink-faint); margin-top: 7px; }

/* ===== 图片上传控件 ===== */
.img-up { display: grid; gap: 10px; }
.img-up-drop {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  min-height: 150px;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.img-up-drop:hover, .img-up-drop:focus-visible { border-color: var(--pink); background: rgba(255, 46, 136, 0.05); outline: none; }
.img-up-drop.is-over { border-color: var(--cyan); background: rgba(37, 230, 224, 0.08); }
.img-up-drop.is-busy { opacity: 0.6; pointer-events: none; }
.img-up-empty { display: grid; justify-items: center; gap: 7px; padding: 26px 18px; text-align: center; }
.img-up-ic { font-size: 30px; line-height: 1; }
.img-up-tip { font-size: 13px; color: var(--ink-soft); }
.img-up-sub { font-size: 11px; color: var(--ink-faint); }
.img-up-preview { position: relative; width: 100%; }
.img-up-preview img { width: 100%; max-height: 280px; object-fit: contain; background: rgba(0, 0, 0, 0.3); }
.img-up-clear {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 4, 16, 0.82);
  color: var(--ink);
  font-size: 17px;
  display: grid; place-items: center;
  transition: all 0.2s var(--ease);
}
.img-up-clear:hover { border-color: var(--err); color: #ff9db0; }

.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg-item {
  flex: 1;
  min-width: 110px;
  padding: 13px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font-size: 14px;
  transition: all 0.2s var(--ease);
}
.seg-item:hover { border-color: var(--cyan); color: var(--ink); }
.seg-item.active { border-color: var(--pink); background: rgba(255, 46, 136, 0.12); color: var(--ink); }
.form-msg { font-size: 14px; min-height: 20px; margin-bottom: 14px; }
.form-msg.err { color: var(--err); }
.form-msg.ok { color: var(--ok); }
.form-actions { display: flex; gap: 12px; align-items: center; }
.char-count { font-size: 12px; color: var(--ink-faint); margin-left: auto; }

/* ===== 分享列表 ===== */
.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 38px;
}
.share-item {
  display: block;
  overflow: hidden;
  animation: pIn 0.5s var(--ease) both;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.share-item:hover { transform: translateY(-4px); border-color: var(--line-2); }
.share-stats { color: var(--ink-soft); white-space: nowrap; }
.share-meta-sub { margin-top: 6px; }
.share-img { aspect-ratio: 16/10; overflow: hidden; background: #10162b url('/assets/default-landscape.svg') center / cover no-repeat; }
.share-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.share-item:hover .share-img img { transform: scale(1.05); }
.share-body { padding: 18px 20px 22px; }
.share-t { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.share-c { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 14px; white-space: pre-wrap; word-break: break-word; }
.share-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-faint); }
.share-author { color: var(--cyan); }

/* ===== 我的投稿状态 ===== */
.mine-list { display: grid; gap: 12px; margin-top: 18px; }
.mine-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.mine-row .mt { font-weight: 700; font-size: 14px; }
.mine-row .md { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.badge { font-size: 11px; padding: 4px 11px; border-radius: 999px; letter-spacing: 0.5px; white-space: nowrap; }
.badge.pending { color: var(--warn); border: 1px solid rgba(255,176,46,0.3); }
.badge.approved { color: var(--ok); border: 1px solid rgba(37,230,160,0.3); }
.badge.rejected { color: var(--err); border: 1px solid rgba(255,77,109,0.3); }
.mine-row-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mine-del {
  font-size: 12px; padding: 5px 12px; border-radius: 8px; cursor: pointer;
  color: var(--err); background: transparent;
  border: 1px solid rgba(255,77,109,0.3);
  transition: background 0.18s, color 0.18s;
}
.mine-del:hover { background: rgba(255,77,109,0.12); }
.mine-del:disabled { opacity: 0.55; cursor: default; }

/* ===== 区块标题 ===== */
.sec-head { display: flex; align-items: baseline; gap: 14px; margin: 56px 0 6px; }
.sec-head h2 { font-family: var(--display); font-size: clamp(24px, 4vw, 34px); letter-spacing: 0.5px; }
.sec-head .line { flex: 1; height: 1px; background: var(--line); }

/* ===== 状态/空态 ===== */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-faint);
  font-size: 15px;
}
.loading-state { text-align: center; padding: 60px 20px; color: var(--ink-faint); }
.spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--line);
  border-top-color: var(--pink);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 登录提示 ===== */
.need-login {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  margin-bottom: 30px;
  background: rgba(255, 46, 136, 0.04);
}
.need-login span { color: var(--ink-soft); font-size: 14px; }

/* ===== Toast ===== */
.ptoast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 6, 24, 0.95);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.ptoast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ptoast.ok { border-color: rgba(37, 230, 160, 0.4); }
.ptoast.err { border-color: rgba(255, 77, 109, 0.4); }

/* ===== 灯箱（分享配图放大）===== */
.plight {
  position: fixed; inset: 0; z-index: 90;
  display: none; place-items: center;
  background: rgba(5, 2, 10, 0.9);
  backdrop-filter: blur(8px);
  padding: 30px;
}
.plight.show { display: grid; }
.plight img { max-width: 90vw; max-height: 86vh; border-radius: 14px; border: 1px solid var(--line); }
.plight-x {
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(18, 6, 24, 0.8);
  color: var(--ink);
  font-size: 22px;
}

.pfoot {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-faint);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

/* ===== 乐趣详情页 ===== */
.post-wrap { padding-top: clamp(28px, 5vw, 56px); }
.post-detail { overflow: hidden; }
.post-detail.card, .post-detail { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; backdrop-filter: blur(10px); animation: pIn 0.5s var(--ease) both; }
.post-hero { background: #10162b url('/assets/default-landscape.svg') center / cover no-repeat; max-height: 520px; overflow: hidden; display: grid; place-items: center; }
.post-hero img { width: 100%; max-height: 520px; object-fit: contain; cursor: zoom-in; }
.post-main { padding: clamp(22px, 4vw, 38px); }
.post-title { font-family: var(--display); font-size: clamp(26px, 5vw, 40px); line-height: 1.1; letter-spacing: 0.5px; }
.post-author { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; }
.post-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); flex-shrink: 0; }
.post-author-name { color: var(--cyan); font-weight: 700; font-size: 15px; }
.post-date { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.post-content { color: var(--ink-soft); font-size: 16px; line-height: 1.8; margin: 22px 0; white-space: pre-wrap; word-break: break-word; }
.post-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }

.like-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  font-size: 15px; font-weight: 700;
  transition: all 0.22s var(--ease);
}
.like-btn .like-ic { font-size: 18px; color: var(--ink-faint); transition: all 0.22s var(--ease); }
.like-btn:hover:not(:disabled) { border-color: var(--pink); transform: translateY(-2px); }
.like-btn.liked { border-color: var(--pink); background: rgba(255, 46, 136, 0.12); color: var(--pink); }
.like-btn.liked .like-ic { color: var(--pink); transform: scale(1.15); }
.like-btn:disabled { opacity: 0.6; cursor: default; }

.share-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.share-label { font-size: 13px; color: var(--ink-faint); }
.share-btn {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  transition: all 0.2s var(--ease);
}
.share-btn:hover { color: var(--ink); border-color: var(--cyan); transform: translateY(-2px); }

/* ===== 评论区 ===== */
.comments { margin-top: 12px; }
.comment-box { margin: 22px 0 8px; }
.comment-form { display: grid; gap: 12px; }
.comment-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 84px;
  line-height: 1.6;
  transition: border-color 0.25s var(--ease), background 0.25s;
}
.comment-input:focus { outline: none; border-color: var(--pink); background: rgba(255, 255, 255, 0.05); }
.comment-form-foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.comment-form-foot .btn { padding: 10px 22px; font-size: 13px; }

.comment-list { display: grid; gap: 6px; margin-top: 18px; }
.comment {
  display: flex; gap: 13px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  animation: pIn 0.4s var(--ease) both;
}
.comment.is-reply { padding: 14px 0 0; border-top: none; }
.comment-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
  flex-shrink: 0;
}
.comment-avatar.is-empty, .post-avatar.is-empty {
  display: grid; place-items: center;
  background: linear-gradient(120deg, var(--pink), var(--violet));
  color: #fff; font-weight: 800;
}
.post-avatar.is-empty { font-size: 18px; }
.comment-avatar.is-empty { font-size: 15px; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.comment-author { color: var(--cyan); font-weight: 700; font-size: 14px; }
.comment-date { font-size: 12px; color: var(--ink-faint); }
.comment-text { font-size: 15px; color: var(--ink); line-height: 1.65; margin: 6px 0 8px; white-space: pre-wrap; word-break: break-word; }
.comment-foot { display: flex; gap: 16px; }
.comment-reply-btn { background: transparent; border: none; color: var(--ink-faint); font-size: 13px; transition: color 0.2s var(--ease); }
.comment-reply-btn:hover { color: var(--pink); }
.comment-withdraw-btn { background: transparent; border: none; color: var(--ink-faint); font-size: 13px; cursor: pointer; transition: color 0.2s var(--ease); }
.comment-withdraw-btn:hover { color: var(--err); }
.comment-withdraw-btn:disabled { opacity: 0.55; cursor: default; }
.comment-replies { margin-top: 8px; border-left: 1px solid var(--line); padding-left: 14px; }
.comment-replies.collapsed { display: none; }
.replies-toggle {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  padding: 6px 14px;
  transition: all 0.2s var(--ease);
}
.replies-toggle:hover { border-color: var(--cyan); background: rgba(37, 230, 224, 0.08); }
.reply-host:not(:empty) { margin-top: 14px; }

@media (max-width: 560px) {
  .post-actions { gap: 14px; }
  .share-wrap { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
  .poll-head { flex-direction: column; }
  .opt-votes { display: none; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .char-count { margin: 4px 0 0; text-align: right; }
}
