:root {
  --bg: #0a0d14;
  --bg2: #101a30;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #eef0f6;
  --muted: #97a0b2;
  --accent1: #6d5cff;
  --accent2: #35d0e8;
  --accent1-rgb: 109, 92, 255;
  --accent2-rgb: 53, 208, 232;
  --modal-bg: #141923;
  --ok: #4ade80;
  --err: #fb7185;
}

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

html { scrollbar-color: rgba(255,255,255,.18) transparent; }

body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: linear-gradient(165deg, var(--bg), var(--bg2));
  color: var(--text);
  min-height: 100vh;
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1100px 560px at 12% -8%, rgba(var(--accent1-rgb), 0.16), transparent 60%),
    radial-gradient(900px 480px at 88% 112%, rgba(var(--accent2-rgb), 0.12), transparent 60%);
  background-attachment: fixed;
}

::selection { background: rgba(var(--accent1-rgb), 0.45); }

.wrap { max-width: 900px; margin: 0 auto; padding: 44px 20px 72px; }

.head { text-align: center; margin-bottom: 30px; }
.head-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; text-align: left; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand h1 {
  margin: 0;
  background: linear-gradient(90deg, #ffffff 0%, #a99dff 22%, #6be0f2 45%, #a99dff 68%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleFlow 5s linear infinite, titleGlow 3.2s ease-in-out infinite;
}
@keyframes titleFlow {
  0% { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}
@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(var(--accent1-rgb), 0.25)); }
  50% { filter: drop-shadow(0 0 15px rgba(var(--accent2-rgb), 0.5)); }
}
.brand .sub { margin-top: 6px; }
.logo {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 34px rgba(var(--accent1-rgb), 0.38);
  overflow: hidden;
  animation: logoFloat 3.4s ease-in-out infinite, logoGlow 2.6s ease-in-out infinite;
}
.logo::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.4) 50deg, transparent 100deg, transparent 180deg, rgba(var(--accent2-rgb), 0.5) 235deg, rgba(var(--accent1-rgb), 0.55) 285deg, transparent 335deg, transparent 360deg);
  animation: logoSpin 3.2s linear infinite;
  pointer-events: none;
}
.logo svg { position: relative; z-index: 1; width: 27px; height: 27px; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); }
@keyframes logoSpin { to { transform: rotate(360deg); } }
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 12px 34px rgba(var(--accent1-rgb), 0.38); }
  50% { box-shadow: 0 16px 46px rgba(var(--accent2-rgb), 0.5), 0 0 20px rgba(var(--accent1-rgb), 0.3); }
}
.head h1 {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0;
}
.sub { color: var(--muted); font-size: 14px; margin-top: 9px; line-height: 1.7; }
.ver-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: #0f1115;
  background: #ffd479;
  vertical-align: 1px;
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 460px;
}
.top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 18px;
}
.ts-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ts-group .ub-item {
  font-size: 12px;
}
.ts-group .ub-btn {
  padding: 11px 16px;
  font-size: 12px;
}
.ub-item {
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 11px 16px;
  border-radius: 99px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.badge-member {
  color: #ffd479;
  border-color: rgba(255, 200, 90, 0.35);
  background: rgba(255, 200, 90, 0.08);
}
.ub-btn {
  padding: 11px 16px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 用户头像 */
.ub-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s;
}
.ub-user:hover {
  transform: scale(1.02);
}
.ub-user .ub-avatar {
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
}
.ub-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ub-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #eef0f6;
  line-height: 1;
  white-space: nowrap;
}
.ub-exp {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ub-exp-label {
  font-size: 10px;
  font-weight: 800;
  color: #ffd479;
  white-space: nowrap;
}
.ub-exp-bar {
  width: 86px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border: 1px solid rgba(255, 212, 121, 0.25);
}
.ub-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  vertical-align: middle;
  flex: none;
  transition: transform 0.15s, border-color 0.2s;
}
.ub-avatar:hover {
  transform: scale(1.08);
  border-color: rgba(255, 154, 118, 0.8);
}
.ub-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ub-avatar-default {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #cfd6e4;
}
.ub-avatar-default svg {
  width: 16px;
  height: 16px;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.avatar-opt {
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  aspect-ratio: 1;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.avatar-opt:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}
.avatar-opt.active {
  border-color: #ff9a76;
  box-shadow: 0 0 12px rgba(255, 154, 118, 0.55);
}
.avatar-opt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.forum-admin-list .fadmin-cat {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.fadmin-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.fadmin-row input,
.fadmin-sub input {
  flex: 1;
  min-width: 120px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eef0f6;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}
.fadmin-sub {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
  display: grid;
  gap: 8px;
}
.fadmin-sub textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eef0f6;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  resize: vertical;
  font-family: inherit;
}
.fadmin-row select,
.fadmin-sub select {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eef0f6;
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 13px;
  outline: none;
}
.fadmin-row img,
.fadmin-sub img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
}
.fadmin-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: border-color 0.15s, transform 0.15s;
}
.fadmin-icon:hover {
  border-color: rgba(var(--accent1-rgb), 0.6);
  transform: scale(1.08);
}
.fadmin-icon img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
}
.icon-pick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
  max-height: 370px;
  overflow-y: auto;
  padding-right: 4px;
}
.icon-pick-search {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #eef0f6;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  margin-top: 8px;
  font-family: inherit;
}
.icon-pick-search:focus {
  border-color: rgba(var(--accent1-rgb), 0.6);
}
.icon-pick-count {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.icon-pick-opt {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.15s, transform 0.15s;
}
.icon-pick-opt:hover {
  transform: scale(1.06);
}
.icon-pick-opt.active {
  border-color: #ff9a76;
  box-shadow: 0 0 10px rgba(255, 154, 118, 0.5);
}
.icon-pick-opt img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  display: block;
}
.icon-pick-opt span {
  display: block;
  font-size: 10px;
  color: var(--text);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fadmin-row button,
.fadmin-sub button {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dfe3ec;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}
.fadmin-row button.danger,
.fadmin-sub button.danger {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}
.fadmin-addsub {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #9aa3b8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
  width: 100%;
}
@media (max-width: 560px) {
  .avatar-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.avatar-close-btn {
  display: block;
  width: 220px;
  margin: 14px auto 0;
}

/* 全局浮动提示（画面中央） */
.app-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  background: linear-gradient(135deg, rgba(var(--accent1-rgb), 0.95), rgba(var(--accent2-rgb), 0.95));
  color: #fff;
  padding: 16px 30px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.app-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.app-toast.err {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.95), rgba(251, 113, 133, 0.95));
}

/* 算力点数字动态效果 */
.credits-num {
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(90deg, #ffe08a, #ffb703, #ff7b3a, #ffe08a);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: creditsFlow 2.4s linear infinite, creditsGlow 1.8s ease-in-out infinite;
  display: inline-block;
  padding: 0 2px;
}
@keyframes creditsFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}
@keyframes creditsGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 3px rgba(255, 183, 3, 0.45));
  }
  50% {
    filter: drop-shadow(0 0 9px rgba(255, 183, 3, 0.85));
  }
}

/* 算力充能按钮：常驻科技感动效（不悬停也动） */
.charge-btn {
  position: relative;
  overflow: hidden;
  color: #ffd479 !important;
  border-color: rgba(255, 212, 121, 0.45) !important;
  background: linear-gradient(115deg, rgba(255, 212, 121, 0.04) 20%, rgba(255, 212, 121, 0.18) 50%, rgba(255, 212, 121, 0.04) 80%);
  background-size: 220% 100%;
  animation: chargeBg 2.6s linear infinite, chargeGlow 1.9s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 212, 121, 0.5);
}
.charge-btn::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -55%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-16deg);
  animation: chargeSweep 2.2s ease-in-out infinite;
  pointer-events: none;
}
.charge-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}
@keyframes chargeBg {
  0% { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}
@keyframes chargeSweep {
  0% { left: -55%; }
  60%, 100% { left: 130%; }
}
@keyframes chargeGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 212, 121, 0.15); }
  50% { box-shadow: 0 0 16px rgba(255, 212, 121, 0.45), 0 0 28px rgba(var(--accent1-rgb), 0.22); }
}

.sponsor-link {
  color: #ffd479;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}
.sponsor-link:hover { color: #ffe9b0; }

.quota-msg {
  flex-basis: 100%;
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(251, 113, 133, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.25);
  font-size: 15px;
  line-height: 1.9;
  color: #ffd7dc;
}
.quota-msg .sponsor-link { font-size: 15px; }
.quota-msg.flash { animation: quotaFlash 0.6s ease; }
@keyframes quotaFlash {
  0% { background: rgba(251, 113, 133, 0.28); }
  100% { background: rgba(251, 113, 133, 0.08); }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 18px;
}
.modal.hidden { display: none; }
.hidden { display: none !important; }
.modal.no-blur {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(5, 7, 12, 0.5);
}
.modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--modal-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.code-row { display: flex; gap: 10px; margin-top: 12px; }
.code-row input { flex: 1; }
.code-row button { white-space: nowrap; padding: 0 16px; }
.modal-card .big { margin-top: 14px; }

.tabs { display: flex; gap: 8px; margin: 14px 0 4px; }
.tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tab.active {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  border-color: transparent;
}
.sub-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0 4px;
}
.sub-tab {
  flex: 1;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13px;
  cursor: pointer;
}
.sub-tab.active {
  background: linear-gradient(135deg, rgba(var(--accent1-rgb), 0.85), rgba(var(--accent2-rgb), 0.85));
  color: #fff;
  border-color: transparent;
}

.admin-card { max-width: 660px; max-height: 84vh; display: flex; flex-direction: column; }
.admin-list { overflow-y: auto; margin-top: 10px; }
.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.admin-phone { font-size: 15px; font-weight: 700; }
.admin-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-controls select, .admin-dt {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1115;
  color: var(--text);
  font-size: 13px;
}
.admin-dt { color-scheme: dark; }
.admin-credits {
  width: 90px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1115;
  color: var(--text);
  font-size: 13px;
  color-scheme: dark;
}
.admin-settings { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 6px; padding-top: 8px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 14px; }
.settings-grid label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.settings-grid input {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1115;
  color: var(--text);
  font-size: 14px;
  color-scheme: dark;
}
.apanel {
  margin-top: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1115;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  outline: none;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}
.help-body {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 2;
  color: #d5dae4;
  margin: 12px 0 16px;
  max-height: 60vh;
  overflow-y: auto;
}
.help-toolbar { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.help-toolbar button {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.help-editor {
  min-height: 180px;
  max-height: 40vh;
  overflow-y: auto;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1115;
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
  outline: none;
}
.help-editor:focus { border-color: rgba(var(--accent1-rgb), 0.72); }
.history-list { max-height: 55vh; overflow-y: auto; margin-top: 12px; }
.history-row {
  padding: 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
}
.history-row:hover { background: rgba(255, 255, 255, 0.05); }
}
.history-name {
  font-size: 14px;
  color: #dde1ea;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.plan-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.plan-card.selected {
  border-color: var(--accent1);
  background: rgba(var(--accent1-rgb), 0.14);
  box-shadow: 0 0 0 3px rgba(var(--accent1-rgb), 0.18);
}
.pay-methods { display: flex; gap: 10px; margin: 4px 0 4px; }
.pay-method {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.pay-method.active {
  background: linear-gradient(135deg, rgba(var(--accent2-rgb), 0.25), rgba(var(--accent1-rgb), 0.25));
  border-color: rgba(var(--accent2-rgb), 0.65);
  box-shadow: 0 0 0 3px rgba(var(--accent2-rgb), 0.12);
}
.plan-name { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan-credits {
  font-size: 18px;
  font-weight: 800;
  color: #ffd479;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 212, 121, 0.3);
  white-space: nowrap;
}
.plan-trial-tag {
  font-size: 11px;
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 99px;
  padding: 2px 8px;
  margin-top: 2px;
}
.plan-used { opacity: 0.5; cursor: not-allowed; }
.plan-used-tag {
  font-size: 11px;
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.4);
  border-radius: 99px;
  padding: 2px 8px;
  margin-top: 2px;
}
.qr-wrap { text-align: center; margin: 22px 0 6px; }
.qr-wrap img { width: 190px; height: 190px; border-radius: 14px; background: #fff; object-fit: contain; }
.qr-wrap {
  position: relative;
}
.qr-wrap.qr-on::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 202px;
  height: 202px;
  transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 16px;
  background: conic-gradient(
    from 0deg,
    rgba(109, 92, 255, 0) 0deg,
    rgba(109, 92, 255, 0) 235deg,
    rgba(53, 208, 232, 0.95) 280deg,
    rgba(109, 92, 255, 0.95) 325deg,
    rgba(53, 208, 232, 0) 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent 0, transparent calc(100% - 7px), #000 calc(100% - 7px), #000 calc(100% - 2px), transparent calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent 0, transparent calc(100% - 7px), #000 calc(100% - 7px), #000 calc(100% - 2px), transparent calc(100% - 2px));
  animation: qrRingSweep 1.6s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes qrRingSweep {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.qr-wrap.qr-on img {
  position: relative;
  z-index: 1;
  border: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(115deg, #6d5cff, #35d0e8, #4facfe, #6d5cff) border-box;
  background-size: 100% 100%, 300% 100%;
  box-shadow: 0 0 18px rgba(109, 92, 255, 0.3), 0 0 30px rgba(53, 208, 232, 0.18);
  animation: qrBorderFlow 2.4s linear infinite;
}
@keyframes qrBorderFlow {
  0% {
    background-position: 0 0, 0% 0;
  }
  100% {
    background-position: 0 0, 300% 0;
  }
}

.share-intro { color: var(--muted); font-size: 13px; margin: 4px 0 14px; line-height: 1.7; }
.share-rewards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.share-reward {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--accent1-rgb), 0.14), rgba(var(--accent2-rgb), 0.1));
  border: 1px solid rgba(var(--accent1-rgb), 0.25);
}
.sr-icon {
  font-size: 22px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  flex-shrink: 0;
}
.sr-text { flex: 1; }
.sr-label { font-size: 13px; color: #c6cbd5; }
.sr-pts { font-size: 14px; color: var(--muted); margin-top: 2px; }
.sr-pts span { font-size: 21px; font-weight: 800; color: #ffd479; margin-right: 2px; }
.share-note { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 12px; }

.credits-num { font-weight: 800; color: #ffff00; }
.lv-item { display: flex; align-items: center; gap: 6px; }
.lv-label {
  font-size: 12px;
  font-weight: 800;
  color: #ffd479;
  white-space: nowrap;
}
.lv-bar {
  width: 86px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border: 1px solid rgba(255, 212, 121, 0.25);
}
.lv-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd479, #ff9a3c, #ffe08a, #ff9a3c, #ffd479);
  background-size: 200% 100%;
  box-shadow: 0 0 8px rgba(255, 180, 90, 0.55);
  transition: width 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: lvFlow 2.6s linear infinite, lvGlow 2s ease-in-out infinite;
}
.lv-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: lvShine 2.8s ease-in-out infinite;
}
@keyframes lvFlow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
@keyframes lvShine {
  0% { left: -60%; }
  55% { left: 120%; }
  100% { left: 120%; }
}
@keyframes lvGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 180, 90, 0.45); }
  50% { box-shadow: 0 0 14px rgba(255, 195, 110, 0.85); }
}
.lv-num { font-size: 10px; color: var(--muted); white-space: nowrap; }

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 26px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
  margin-bottom: 20px;
}

.lab {
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 8px;
  letter-spacing: 0.6px;
}
.pay-methods-label {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
}
.url-lab {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: 1px;
}
.url-hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 4px;
  line-height: 1.6;
}

/* 解析进度条 */
.parse-progress {
  margin-top: 16px;
}
.parse-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.parse-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 46%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--accent1-rgb), 0), var(--accent1) 20%, var(--accent2) 50%, var(--accent1) 80%, rgba(var(--accent1-rgb), 0));
  animation: parseFlow 1.5s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(var(--accent1-rgb), 0.55), 0 0 4px rgba(var(--accent2-rgb), 0.5);
}
@keyframes parseFlow {
  0% { left: -46%; }
  100% { left: 100%; }
}
.parse-hint {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9aa3b5;
}
.parse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 8px rgba(var(--accent2-rgb), 0.8);
  animation: parsePulse 1.2s ease-in-out infinite;
}
@keyframes parsePulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* 所有进度条轨道常驻动效：进度停在 0% 时也有明显的流动与呼吸感 */
.parse-track,
.bar,
.lv-bar,
.rating-track {
  position: relative;
  animation: trackGlow 2.8s ease-in-out infinite;
}
.parse-track::before,
.bar::before,
.lv-bar::before,
.rating-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), rgba(var(--accent1-rgb), 0.12), transparent);
  animation: trackSweep 2.4s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes trackSweep {
  0% { left: -60%; }
  60%, 100% { left: 115%; }
}
@keyframes trackGlow {
  0%, 100% { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 rgba(var(--accent1-rgb), 0); }
  50% { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 10px rgba(var(--accent1-rgb), 0.22), 0 0 4px rgba(var(--accent2-rgb), 0.25); }
}

/* 影视搜索 */
@property --vangle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes vspin {
  to {
    --vangle: 360deg;
  }
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.movie-card {
  position: relative;
  cursor: pointer;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028));
  border-radius: 17px;
  padding: 5px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.28s ease;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
/* 电影卡片：悬停时才启动旋转渐变动画边框 */
.movie-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 17px;
  padding: 1.6px;
  background: conic-gradient(
    from var(--vangle),
    transparent 0deg,
    transparent 80deg,
    rgba(var(--accent1-rgb), 0.65) 190deg,
    rgba(var(--accent2-rgb), 0.6) 255deg,
    transparent 330deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: none;
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.movie-card:hover::before {
  opacity: 1;
  animation: vspin 3.2s linear infinite;
}
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 42px rgba(var(--accent1-rgb), 0.3), 0 0 24px rgba(var(--accent2-rgb), 0.2);
}
/* 小说卡片：同样带背景框，边框静态微光 */
.movie-card.novel-card::before {
  animation: none;
  opacity: 0.32;
  background: conic-gradient(
    from 220deg,
    rgba(var(--accent1-rgb), 0.7),
    rgba(var(--accent2-rgb), 0.55),
    rgba(var(--accent1-rgb), 0.7)
  );
}
.movie-card.novel-card:hover::before {
  animation: none;
  opacity: 0.7;
}
.movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.25);
}
.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.movie-noimg {
  font-size: 12px;
  color: var(--muted);
}
.movie-type {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(10, 13, 20, 0.74);
  color: #ffd479;
  border: 1px solid rgba(255, 212, 121, 0.35);
}
.movie-eps {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(10, 13, 20, 0.74);
  color: var(--accent2);
  border: 1px solid rgba(var(--accent2-rgb), 0.35);
}
.movie-card-info {
  padding: 11px 10px 13px;
}
.movie-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #f2f6ff;
  letter-spacing: 0.4px;
  text-shadow: 0 0 12px rgba(var(--accent2-rgb), 0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.movie-card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.movie-empty,
.movie-loading {
  margin: 18px 0 4px;
  color: var(--muted);
  text-align: center;
  padding: 26px 0;
  font-size: 14px;
}
.movie-stale-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: #ffd479;
  text-align: center;
}
.movie-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ffd479;
}
.movie-list-head span {
  background: linear-gradient(135deg, #ffd479, #ff9f43);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffd479;
  letter-spacing: 1px;
}
.movie-list-head a {
  color: var(--accent2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
}
.movie-list-head a:hover {
  text-decoration: underline;
}
.search-more {
  text-align: center;
  margin-top: 18px;
}
.search-more-btn {
  padding: 9px 24px;
  border-radius: 99px;
  font-size: 13px;
}
.movie-detail-card {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  animation: movieFade 0.45s ease both;
}
@keyframes movieFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.movie-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.movie-back {
  font-size: 13px;
  color: var(--muted);
}
.movie-detail-main {
  display: flex;
  gap: 22px;
  margin-top: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.movie-detail-main .movie-poster.big {
  width: 188px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.movie-detail-main .movie-poster.big:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(var(--accent1-rgb), 0.32);
}
.movie-info {
  flex: 1;
  min-width: 250px;
}
.movie-title {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
}
.movie-year {
  margin-left: 8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.movie-meta {
  margin-top: 8px;
  color: var(--accent2);
  font-size: 13px;
}
.movie-meta-lines {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.movie-person {
  color: #b9c3d6;
  text-decoration: none;
  transition: color 0.15s;
}
.movie-person:hover {
  color: var(--accent2);
}
.movie-rating {
  margin-top: 12px;
}
.rating-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 6px;
}
.rating-head-label {
  font-size: 15px;
  font-weight: 700;
  color: #ffd479;
}
.rating-head-num {
  font-size: 22px;
  font-weight: 800;
  color: #ffb703;
  line-height: 1;
}
.star-icons {
  color: #ffb703;
  letter-spacing: 1px;
  font-size: 14px;
}
.star-dim {
  color: rgba(255, 255, 255, 0.18);
}
.movie-rating .rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.movie-rating .rating-star {
  width: 86px;
  font-size: 13px;
  color: #ffb703;
  letter-spacing: 1px;
}
.movie-rating .rating-track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.movie-rating .rating-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
}
.movie-rating .rating-num {
  width: 44px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.movie-summary-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.movie-plot {
  margin-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}
.plot-body p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 2;
  color: #d6dae6;
  text-indent: 2em;
}
.plot-gen-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent2);
  animation: parsePulse 1.2s ease-in-out infinite;
}
.plot-gen-hint.err {
  color: var(--muted);
  animation: none;
}
.movie-episodes {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 16px;
}
.eps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.eps-head .movie-summary-title {
  margin-bottom: 0;
}
.eps-count {
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 11px;
  border-radius: 99px;
  white-space: nowrap;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 9px;
  max-height: 268px;
  overflow-y: auto;
  padding: 4px 3px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.episode-grid::-webkit-scrollbar {
  width: 6px;
}
.episode-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
}
.episode-grid::-webkit-scrollbar-track {
  background: transparent;
}
.episode-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 9px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.episode-btn:hover {
  border-color: rgba(var(--accent1-rgb), 0.7);
  background: rgba(var(--accent1-rgb), 0.08);
  transform: translateY(-1px);
  filter: none;
}
.episode-btn.active {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(var(--accent1-rgb), 0.34);
}
.episode-detail {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 18px;
}
.episode-detail .movie-loading {
  margin: 0;
  padding: 18px 0;
}
.episode-title {
  font-size: 17px;
  font-weight: 700;
}
.episode-plot-title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #ffd479;
}
.episode-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.episode-synopsis {
  margin-top: 8px;
  font-size: 15px;
  line-height: 2;
  color: #d6dae6;
  white-space: pre-line;
  text-indent: 2em;
}
.episode-err {
  color: var(--err);
  font-size: 13px;
}
.movie-related {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 14px;
}
.movie-related .rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
}
.rel-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  font-size: 12px;
  transition: transform 0.25s ease;
}
.rel-card:hover {
  transform: translateY(-4px);
}
.rel-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
}
.rel-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1.6px;
  background: conic-gradient(
    from var(--vangle),
    transparent 0deg,
    transparent 90deg,
    rgba(var(--accent1-rgb), 0.72) 195deg,
    rgba(var(--accent2-rgb), 0.62) 260deg,
    transparent 335deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
}
.rel-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rel-card:hover .rel-poster img {
  transform: scale(1.09);
}
.rel-card:hover .rel-poster {
  box-shadow: 0 12px 28px rgba(var(--accent1-rgb), 0.35);
  border-color: rgba(var(--accent1-rgb), 0.45);
}
.rel-card:hover .rel-poster::before {
  opacity: 1;
  animation: vspin 2.8s linear infinite;
}
.rel-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 3px;
  background: linear-gradient(180deg, rgba(10, 13, 20, 0) 35%, rgba(10, 13, 20, 0.78) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.rel-card:hover .rel-hint {
  opacity: 1;
}
.rel-name {
  display: block;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 评论区 */
.movie-comments {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 14px;
}
.comment-form {
  margin: 12px 0;
}
.comment-form textarea,
.comment-editbox textarea,
.comment-replybox textarea {
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 14px;
  outline: none;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}
.comment-form textarea:focus,
.comment-editbox textarea:focus,
.comment-replybox textarea:focus {
  border-color: rgba(var(--accent1-rgb), 0.7);
}
.comment-form-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.comment-form-foot .comment-tip {
  margin-right: auto;
}
.comment-tip {
  font-size: 12px;
  color: var(--muted);
}
.comment-tip.err {
  color: var(--err);
}
.comment-submit {
  padding: 9px 18px;
}
.comment-login {
  padding: 14px;
  border-radius: 12px;
  background: rgba(var(--accent1-rgb), 0.08);
  border: 1px solid rgba(var(--accent1-rgb), 0.2);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin: 12px 0;
}
.comment-empty,
.comment-err {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 18px 0;
}
.comment-err {
  color: var(--err);
}
.comment-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.comment-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
}
.comment-time {
  font-size: 11px;
  color: var(--muted);
}
.comment-ops {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.comment-btn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  cursor: pointer;
}
.comment-btn:hover {
  border-color: rgba(var(--accent1-rgb), 0.6);
  color: var(--text);
}
.comment-btn.danger {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}
.comment-text {
  font-size: 14px;
  line-height: 1.8;
  color: #d6dae6;
  margin-top: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-edited {
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
}
.comment-replies {
  margin: 10px 0 0 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  padding-left: 12px;
}
.reply-item {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 8px;
}
.reply-item .comment-text {
  font-size: 13px;
  margin-top: 5px;
}
.comment-replybox {
  margin-top: 8px;
}
.comment-replybox textarea {
  min-height: 52px;
  font-size: 13px;
}
.comment-editbox textarea {
  min-height: 60px;
}

/* 最近更新的影视剧情（首页收录入口） */
.seo-hot {
  margin-top: 26px;
}
.seo-hot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.seo-hot-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--text);
  font-size: 13px;
  transition: all 0.16s ease;
}
.seo-hot-item:hover {
  border-color: rgba(var(--accent1-rgb), 0.65);
  background: rgba(var(--accent1-rgb), 0.08);
  color: #fff;
}
.seo-hot-item em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
.seo-hot-empty {
  font-size: 13px;
  color: var(--muted);
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: #5d6573; }
input:focus {
  border-color: rgba(var(--accent1-rgb), 0.72);
  box-shadow: 0 0 0 4px rgba(var(--accent1-rgb), 0.16);
}

button {
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, filter 0.15s, box-shadow 0.2s;
}
button:hover { filter: brightness(1.15); }
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

/* 链接样式按钮统一深色底，避免浏览器默认白底 */
button.home {
  background: rgba(255, 255, 255, 0.07);
}
button.home:hover {
  background: rgba(var(--accent2-rgb), 0.14);
}

/* SEO 页面管理员标记 */
#seoAdminBox {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  background: rgba(18, 22, 32, 0.95);
  border: 1px solid rgba(var(--accent1-rgb), 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 0 18px rgba(var(--accent1-rgb), 0.18);
  max-width: 260px;
  backdrop-filter: blur(8px);
}
.seo-admin-label {
  font-size: 12px;
  color: #ffd479;
  font-weight: 700;
  margin-bottom: 8px;
}
.seo-admin-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.seo-admin-btns button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #eef0f6;
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.seo-admin-btns button:hover {
  border-color: rgba(var(--accent1-rgb), 0.7);
  color: #fff;
}
.seo-admin-msg {
  font-size: 11px;
  color: #97a0b2;
  margin-top: 8px;
  min-height: 14px;
}

.primary {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  box-shadow: 0 8px 26px rgba(var(--accent1-rgb), 0.3);
}
.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(var(--accent1-rgb), 0.5), 0 0 18px rgba(var(--accent2-rgb), 0.3);
  filter: brightness(1.12);
}
.primary.big {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  font-size: 15px;
}
.ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #dfe3ec;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ghost:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(var(--accent1-rgb), 0.6);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--accent1-rgb), 0.25);
  filter: brightness(1.08);
}
.btn-danger {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.45);
}
.res-sel {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1115;
  color: #dfe3ec;
  font-size: 13px;
  color-scheme: dark;
}

.res-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  max-height: 46vh;
  overflow-y: auto;
}
.res-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.res-row .res-label {
  font-size: 15px;
  font-weight: 600;
  color: #dfe3ec;
}
.res-row .res-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.res-row button {
  padding: 8px 18px;
  font-size: 13px;
  flex-shrink: 0;
}
.res-video-name {
  color: #ffd479;
  word-break: break-all;
}

.quota-msg-body {
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.8;
  color: #dfe3ec;
  text-align: center;
  word-break: break-all;
}
.quota-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quota-charge-btn {
  background: linear-gradient(135deg, #ffb648, #ff8a3d);
  color: #1a1206;
}
.quota-charge-btn:hover {
  filter: brightness(1.08);
}
.modal-title.center {
  text-align: center;
}
.modal-close-center {
  display: block;
  margin: 14px auto 0;
  min-width: 140px;
}
.quota-bottom-row {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}
.quota-bottom-row button {
  flex: 1;
}

.status {
  margin-top: 14px;
  font-size: 13px;
  color: #f0b67d;
  min-height: 18px;
  word-break: break-all;
}
.status.pay-amount {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffd479;
  text-align: center;
}
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.lab.ok { color: var(--ok); font-size: 16px; font-weight: 700; }
.dl-path {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.7;
}
.dl-box { margin-top: 16px; }

.bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin: 14px 0 8px;
}
.bar div {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  transition: width 0.25s ease;
  position: relative;
  overflow: hidden;
}
.bar div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.bar.indeterminate { position: relative; overflow: hidden; }
.bar-move {
  position: absolute;
  top: 0;
  left: 0;
  width: 32%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  animation: slideX 1.4s ease-in-out infinite;
}
@keyframes slideX {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(340%); }
}

.video-card { display: flex; gap: 20px; flex-wrap: wrap; }
.video-card img {
  width: 158px;
  height: 210px;
  object-fit: cover;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.video-card img.cover-wide {
  width: 248px;
  height: 140px;
}
.video-card.youtube-card {
  flex-direction: column;
}
.video-card.youtube-card img.cover-wide {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}
.video-meta { flex: 1; min-width: min(260px, 100%); }
.video-meta .desc {
  font-size: 15px;
  line-height: 1.8;
  color: #dde1ea;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.video-meta .meta { font-size: 12px; color: var(--muted); margin-top: 10px; }
.btn-row { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.btn-row button { padding: 12px 22px; font-size: 15px; }
.btn-main { display: block; line-height: 1.3; }
.btn-cost {
  display: block;
  font-size: 10px;
  color: #ffd479;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0;
  white-space: nowrap;
}

.tx-box {
  flex-basis: 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 12px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
}
.tx-area {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-all;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.9;
  color: #d5dae4;
  max-height: 340px;
  overflow-y: auto;
  margin: 10px 0 14px;
}

.user-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.user-head img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.user-head .name { font-size: 20px; font-weight: 700; }
.user-head .sig { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }

.item {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 12px 8px;
  border-radius: 12px;
  transition: background 0.15s;
}
.item:hover { background: rgba(255, 255, 255, 0.035); }
.item img {
  width: 70px;
  height: 94px;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
  flex-shrink: 0;
}
.item img.cover-wide {
  width: 120px;
  height: 68px;
}
.item .desc {
  flex: 1;
  font-size: 13px;
  line-height: 1.6;
  color: #c9ced9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item .acts { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.item .acts button { padding: 7px 11px; font-size: 12px; border-radius: 9px; }

.batch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.batch-head span { font-weight: 700; font-size: 17px; }
.batch-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
  color: #454d5c;
  font-size: 12px;
  margin-top: 34px;
}
.ver-text {
  color: #ffd479;
  font-weight: 700;
  font-size: 13px;
}
.foot-btn {
  padding: 4px 14px;
  font-size: 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 212, 121, 0.35);
  color: #ffd479;
  background: transparent;
  cursor: pointer;
}
.foot-btn:hover { background: rgba(255, 212, 121, 0.12); }

.advantages { margin-top: 34px; }
.adv-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.adv-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.15s, border-color 0.15s;
}
.adv-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent1-rgb), 0.45);
}
.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}
.platform-tag {
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, rgba(var(--accent1-rgb), 0.16), rgba(var(--accent2-rgb), 0.14));
  border: 1px solid rgba(var(--accent1-rgb), 0.35);
}
.adv-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--accent1-rgb), 0.18), rgba(var(--accent2-rgb), 0.14));
}
.adv-name { font-size: 15px; font-weight: 700; color: var(--text); }
.adv-desc { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.adv-editor { display: flex; flex-direction: column; gap: 10px; max-height: 45vh; overflow-y: auto; margin: 10px 0 14px; }
.adv-edit-row { display: flex; gap: 8px; align-items: center; }
.adv-edit-row .adv-icon-in { width: 70px; flex-shrink: 0; }
.adv-edit-row .adv-name-in { flex: 1; min-width: 120px; }
.adv-edit-row .adv-desc-in { flex: 2; min-width: 160px; }
.ph-edit-row .ph-text-in { flex: 1; min-width: 220px; }
.adv-del { padding: 8px 12px; flex-shrink: 0; }
.adv-ico-btn { padding: 8px 10px; flex-shrink: 0; }
.icon-modal { max-width: 430px; }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
  margin: 14px 0;
}
.icon-grid button {
  font-size: 22px;
  padding: 10px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.icon-grid button:hover { background: rgba(var(--accent1-rgb), 0.25); border-color: rgba(var(--accent1-rgb), 0.6); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 网站主题换肤 ---------- */
@keyframes themeFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

html[data-theme="cyber"] {
  --bg: #120b24; --bg2: #241245; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #b14bff; --accent2: #ff5ec7; --accent1-rgb: 177, 75, 255; --accent2-rgb: 255, 94, 199; --modal-bg: #1d1030;
}
html[data-theme="neon"] {
  --bg: #04121c; --bg2: #0a2e3a; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #00d4ff; --accent2: #00ffa3; --accent1-rgb: 0, 212, 255; --accent2-rgb: 0, 255, 163; --modal-bg: #061d26;
}
html[data-theme="aurora"] {
  --bg: #07122b; --bg2: #0d2a4a; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #4facfe; --accent2: #00f2fe; --accent1-rgb: 79, 172, 254; --accent2-rgb: 0, 242, 254; --modal-bg: #0a1c38;
}
html[data-theme="pink"] {
  --bg: #220a1d; --bg2: #421030; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #ff4d9d; --accent2: #ff9a76; --accent1-rgb: 255, 77, 157; --accent2-rgb: 255, 154, 118; --modal-bg: #2a1124;
}
html[data-theme="mint"] {
  --bg: #081812; --bg2: #0f2e22; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #2ecc9a; --accent2: #7ef0c9; --accent1-rgb: 46, 204, 154; --accent2-rgb: 126, 240, 201; --modal-bg: #0a2018;
}
html[data-theme="sakura"] {
  --bg: #1d0f1a; --bg2: #3b1c2e; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #ff7eb3; --accent2: #ffb3c6; --accent1-rgb: 255, 126, 179; --accent2-rgb: 255, 179, 198; --modal-bg: #251322;
}
html[data-theme="forest"] {
  --bg: #0a1410; --bg2: #14301f; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #58c977; --accent2: #a8e063; --accent1-rgb: 88, 201, 119; --accent2-rgb: 168, 224, 99; --modal-bg: #0c1c14;
}
html[data-theme="mist"] {
  --bg: #0c1220; --bg2: #1a2740; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #8fb3ff; --accent2: #b8c6ff; --accent1-rgb: 143, 179, 255; --accent2-rgb: 184, 198, 255; --modal-bg: #0f1728;
}
html[data-theme="graphite"] {
  --bg: #101318; --bg2: #1d232b; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #8e9eab; --accent2: #c7d0dc; --accent1-rgb: 142, 158, 171; --accent2-rgb: 199, 208, 220; --modal-bg: #151a20;
}
html[data-theme="sunset"] {
  --bg: #1c0f0a; --bg2: #3d1c0d; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #ff9a3c; --accent2: #ffd479; --accent1-rgb: 255, 154, 60; --accent2-rgb: 255, 212, 121; --modal-bg: #221309;
}

/* 动态主题：背景缓慢流动 */
html[data-theme="auroraflow"] body,
html[data-theme="flame"] body,
html[data-theme="ocean"] body,
html[data-theme="lime"] body,
html[data-theme="starry"] body,
html[data-theme="galaxy"] body,
html[data-theme="emerald"] body,
html[data-theme="daylight"] body,
html[data-theme="magma"] body,
html[data-theme="polar"] body {
  background-size: 400% 400%;
  animation: themeFlow 20s ease infinite;
}
html[data-theme="auroraflow"] {
  --bg: #051024; --bg2: #0b2f55; --panel: rgba(255, 255, 255, 0.055); --panel-border: rgba(255, 255, 255, 0.13);
  --accent1: #4facfe; --accent2: #00f2fe; --accent1-rgb: 79, 172, 254; --accent2-rgb: 0, 242, 254; --modal-bg: #081a33;
}
html[data-theme="auroraflow"] body {
  background: linear-gradient(120deg, #051024, #0b2f55, #1b1040, #0b2f55, #051024);
}
html[data-theme="flame"] {
  --bg: #2b0a06; --bg2: #7a2c0e; --panel: rgba(255, 255, 255, 0.055); --panel-border: rgba(255, 170, 120, 0.18);
  --accent1: #ff6a3c; --accent2: #ffb03a; --accent1-rgb: 255, 106, 60; --accent2-rgb: 255, 176, 58; --modal-bg: #30100a;
}
html[data-theme="flame"] body {
  background: linear-gradient(120deg, #2b0a06, #7a2c0e, #c2531a, #7a2c0e, #2b0a06);
}
html[data-theme="ocean"] {
  --bg: #03121d; --bg2: #06364d; --panel: rgba(255, 255, 255, 0.055); --panel-border: rgba(255, 255, 255, 0.13);
  --accent1: #00c6fb; --accent2: #4ade80; --accent1-rgb: 0, 198, 251; --accent2-rgb: 74, 222, 128; --modal-bg: #061b2a;
}
html[data-theme="ocean"] body {
  background: linear-gradient(120deg, #03121d, #06364d, #0a2f52, #06364d, #03121d);
}
html[data-theme="lime"] {
  --bg: #071d10; --bg2: #14401f; --panel: rgba(255, 255, 255, 0.055); --panel-border: rgba(255, 255, 255, 0.13);
  --accent1: #a8e063; --accent2: #38ef7d; --accent1-rgb: 168, 224, 99; --accent2-rgb: 56, 239, 125; --modal-bg: #0a2413;
}
html[data-theme="lime"] body {
  background: linear-gradient(120deg, #071d10, #14401f, #1e5c2b, #14401f, #071d10);
}
html[data-theme="starry"] {
  --bg: #050a1c; --bg2: #0d1b3e; --panel: rgba(255, 255, 255, 0.055); --panel-border: rgba(255, 255, 255, 0.13);
  --accent1: #8fb3ff; --accent2: #b14bff; --accent1-rgb: 143, 179, 255; --accent2-rgb: 177, 75, 255; --modal-bg: #0a1128;
}
html[data-theme="starry"] body {
  background: linear-gradient(120deg, #050a1c, #0d1b3e, #1b1040, #0d1b3e, #050a1c);
}

html[data-theme="violet"] {
  --bg: #150a2e; --bg2: #2c1254; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #9b59ff; --accent2: #c39bff; --accent1-rgb: 155, 89, 255; --accent2-rgb: 195, 155, 255; --modal-bg: #1a0e38;
}
html[data-theme="bluevolt"] {
  --bg: #050d2e; --bg2: #0b1f55; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #3b82f6; --accent2: #60a5fa; --accent1-rgb: 59, 130, 246; --accent2-rgb: 96, 165, 250; --modal-bg: #081536;
}
html[data-theme="rose"] {
  --bg: #2a0714; --bg2: #4d0f24; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #ff2e6b; --accent2: #ff8fb3; --accent1-rgb: 255, 46, 107; --accent2-rgb: 255, 143, 179; --modal-bg: #320a1a;
}
html[data-theme="gold"] {
  --bg: #201506; --bg2: #3d2a0d; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #ffc93c; --accent2: #ffe08a; --accent1-rgb: 255, 201, 60; --accent2-rgb: 255, 224, 138; --modal-bg: #271a08;
}
html[data-theme="galaxy"] {
  --bg: #070a20; --bg2: #1a1140; --panel: rgba(255, 255, 255, 0.055); --panel-border: rgba(255, 255, 255, 0.13);
  --accent1: #a78bfa; --accent2: #f472b6; --accent1-rgb: 167, 139, 250; --accent2-rgb: 244, 114, 182; --modal-bg: #0d0f2c;
}
html[data-theme="galaxy"] body {
  background: linear-gradient(120deg, #070a20, #1a1140, #2d1b5e, #1a1140, #070a20);
}
html[data-theme="emerald"] {
  --bg: #04140d; --bg2: #0b3d28; --panel: rgba(255, 255, 255, 0.055); --panel-border: rgba(255, 255, 255, 0.13);
  --accent1: #10b981; --accent2: #6ee7b7; --accent1-rgb: 16, 185, 129; --accent2-rgb: 110, 231, 183; --modal-bg: #061c12;
}
html[data-theme="emerald"] body {
  background: linear-gradient(120deg, #04140d, #0b3d28, #11664a, #0b3d28, #04140d);
}
html[data-theme="daylight"] {
  --bg: #081a26; --bg2: #0f3a55; --panel: rgba(255, 255, 255, 0.055); --panel-border: rgba(255, 255, 255, 0.13);
  --accent1: #38bdf8; --accent2: #7dd3fc; --accent1-rgb: 56, 189, 248; --accent2-rgb: 125, 211, 252; --modal-bg: #0a2231;
}
html[data-theme="daylight"] body {
  background: linear-gradient(120deg, #081a26, #0f3a55, #155e85, #0f3a55, #081a26);
}
html[data-theme="magma"] {
  --bg: #1c0804; --bg2: #4a1608; --panel: rgba(255, 255, 255, 0.055); --panel-border: rgba(255, 170, 120, 0.18);
  --accent1: #f97316; --accent2: #fbbf24; --accent1-rgb: 249, 115, 22; --accent2-rgb: 251, 191, 36; --modal-bg: #240b05;
}
html[data-theme="magma"] body {
  background: linear-gradient(120deg, #1c0804, #4a1608, #8a2c0e, #4a1608, #1c0804);
}
html[data-theme="polar"] {
  --bg: #060b16; --bg2: #0f1f3d; --panel: rgba(255, 255, 255, 0.055); --panel-border: rgba(255, 255, 255, 0.13);
  --accent1: #93c5fd; --accent2: #c7d2fe; --accent1-rgb: 147, 197, 253; --accent2-rgb: 199, 210, 254; --modal-bg: #0a1226;
}
html[data-theme="polar"] body {
  background: linear-gradient(120deg, #060b16, #0f1f3d, #1a2f5c, #0f1f3d, #060b16);
}
html[data-theme="cloud"] {
  --bg: #0e1626; --bg2: #1b2a45; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #9fc0ff; --accent2: #d0e1ff; --accent1-rgb: 159, 192, 255; --accent2-rgb: 208, 225, 255; --modal-bg: #111b2e;
}
html[data-theme="lavender"] {
  --bg: #16102a; --bg2: #2b1c4d; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #b39dff; --accent2: #d9ccff; --accent1-rgb: 179, 157, 255; --accent2-rgb: 217, 204, 255; --modal-bg: #1b1433;
}
html[data-theme="peach"] {
  --bg: #241209; --bg2: #42240f; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #ffb37e; --accent2: #ffd7b0; --accent1-rgb: 255, 179, 126; --accent2-rgb: 255, 215, 176; --modal-bg: #2b160c;
}
html[data-theme="lake"] {
  --bg: #081a22; --bg2: #0f3240; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #5ec8d8; --accent2: #a5e3ec; --accent1-rgb: 94, 200, 216; --accent2-rgb: 165, 227, 236; --modal-bg: #0a2028;
}
html[data-theme="moss"] {
  --bg: #101a0e; --bg2: #1e3320; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #9dbf7a; --accent2: #c5dc9e; --accent1-rgb: 157, 191, 122; --accent2-rgb: 197, 220, 158; --modal-bg: #131f11;
}
html[data-theme="rosegold"] {
  --bg: #1f1018; --bg2: #3a1b28; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #ff9eb0; --accent2: #ffd1b3; --accent1-rgb: 255, 158, 176; --accent2-rgb: 255, 209, 179; --modal-bg: #25131c;
}
html[data-theme="night"] {
  --bg: #0a0a14; --bg2: #181a2c; --panel: rgba(255, 255, 255, 0.05); --panel-border: rgba(255, 255, 255, 0.12);
  --accent1: #a0a8c8; --accent2: #c9cfe8; --accent1-rgb: 160, 168, 200; --accent2-rgb: 201, 207, 232; --modal-bg: #0d0e1c;
}

/* 顶部主题切换按钮 */
.ub-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  flex: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 0 10px rgba(var(--accent1-rgb), 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.ub-theme-btn:hover {
  transform: scale(1.12) rotate(10deg);
  box-shadow: 0 0 16px rgba(var(--accent1-rgb), 0.65);
}
.ub-theme-btn svg {
  width: 19px;
  height: 19px;
}
.theme-card {
  max-width: 560px !important;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
.theme-opt {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.15s, transform 0.15s;
}
.theme-opt:hover {
  transform: scale(1.05);
}
.theme-opt.active {
  border-color: #ff9a76;
  box-shadow: 0 0 12px rgba(255, 154, 118, 0.5);
}
.theme-swatch {
  display: block;
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.theme-name {
  display: block;
  font-size: 11px;
  color: var(--text);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 560px) {
  .theme-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 章节目录悬停科技感动画（影视/小说详情页通用） */
.toc-ch {
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s !important;
}
.toc-ch::after {
  content: "";
  position: absolute;
  left: -130%;
  top: 0;
  bottom: 0;
  width: 55%;
  background: linear-gradient(105deg, transparent, rgba(53, 208, 232, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.45s ease;
  pointer-events: none;
}
.toc-ch:hover {
  transform: translateX(5px) !important;
  background: linear-gradient(90deg, rgba(109, 92, 255, 0.22), rgba(53, 208, 232, 0.08)) !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(109, 92, 255, 0.3), inset 0 0 0 1px rgba(53, 208, 232, 0.35) !important;
}
.toc-ch:hover::after {
  left: 135%;
}

/* 全站图片加载动效：加载完成前显示流光占位，完成后淡入 */
.img-ph {
  position: relative;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.045) 40%, rgba(109, 92, 255, 0.16) 50%, rgba(53, 208, 232, 0.12) 60%, rgba(255, 255, 255, 0.045) 70%);
  background-size: 200% 100%;
  animation: imgShimmer 1.5s ease-in-out infinite;
  opacity: 0.7;
}
.img-ph.img-ok {
  opacity: 1;
  animation: none;
  background: none;
  transition: opacity 0.45s ease;
}
@keyframes imgShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
