:root {
  --bg0: #070914;
  --bg1: #0d1638;
  --card: rgba(255, 255, 255, 0.08);
  --card2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow2: 0 22px 65px rgba(0, 0, 0, 0.45);
  --ring: 0 0 0 4px rgba(124, 92, 255, 0.24);
  --radius: 18px;
  --radius2: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
}

@media (prefers-color-scheme: light) {
  :root {
    --bg0: #f6f8ff;
    --bg1: #e7edff;
    --card: rgba(255, 255, 255, 0.72);
    --card2: rgba(255, 255, 255, 0.55);
    --stroke: rgba(15, 23, 42, 0.12);
    --text: rgba(15, 23, 42, 0.92);
    --muted: rgba(15, 23, 42, 0.66);
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow2: 0 26px 80px rgba(15, 23, 42, 0.14);
    --ring: 0 0 0 4px rgba(124, 92, 255, 0.18);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(1200px 700px at 15% 20%, rgba(124, 92, 255, 0.35), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(0, 209, 255, 0.25), transparent 55%),
    radial-gradient(900px 700px at 70% 90%, rgba(48, 209, 88, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
}

.theme-anime {
  /* Sweet kawaii (奶油甜妹粉) */
  --anime-pink: #ff5fb7;
  --anime-pink2: #ff93d6;
  --anime-purple: #b59cff;
  --anime-lavender: #efe8ff;
  --anime-cream: #fff6fb;
  --anime-cyan: #7be7ff;
  --anime-mint: #9bffd8;

  /* Override base tokens to a lighter, milky palette */
  --text: rgba(35, 18, 44, 0.92);
  --muted: rgba(35, 18, 44, 0.62);
  --stroke: rgba(35, 18, 44, 0.12);
  --card: rgba(255, 255, 255, 0.78);
  --card2: rgba(255, 255, 255, 0.6);
  --shadow: 0 18px 50px rgba(35, 18, 44, 0.14);
  --shadow2: 0 26px 80px rgba(35, 18, 44, 0.18);
  --ring: 0 0 0 4px rgba(255, 95, 183, 0.22);
}

body.theme-anime {
  color-scheme: light;
  background:
    radial-gradient(1100px 720px at 16% 16%, rgba(255, 95, 183, 0.28), transparent 58%),
    radial-gradient(980px 640px at 90% 18%, rgba(123, 231, 255, 0.22), transparent 58%),
    radial-gradient(860px 700px at 70% 92%, rgba(181, 156, 255, 0.26), transparent 62%),
    linear-gradient(180deg, #fff7fc, #f1ecff);
}

.bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(700px 500px at 50% 40%, rgba(255, 255, 255, 0.06), transparent 60%);
  pointer-events: none;
  filter: blur(0.2px);
}

.theme-anime .bg {
  background:
    radial-gradient(700px 520px at 50% 40%, rgba(255, 255, 255, 0.26), transparent 60%),
    /* sparkles */
    radial-gradient(2px 2px at 20px 30px, rgba(255, 95, 183, 0.35), transparent 60%),
    radial-gradient(2px 2px at 120px 160px, rgba(181, 156, 255, 0.35), transparent 60%),
    radial-gradient(2px 2px at 240px 90px, rgba(123, 231, 255, 0.35), transparent 60%),
    radial-gradient(2px 2px at 360px 220px, rgba(255, 95, 183, 0.3), transparent 60%),
    radial-gradient(2px 2px at 520px 120px, rgba(181, 156, 255, 0.3), transparent 60%),
    radial-gradient(2px 2px at 680px 260px, rgba(123, 231, 255, 0.28), transparent 60%);
  opacity: 1;
}

/* B) Heart sticker overlay (very subtle, won't distract) */
.theme-anime .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none'%3E%3Cpath d='M36 56c0-9 7-16 16-16 6 0 11 3 14 8 3-5 8-8 14-8 9 0 16 7 16 16 0 18-30 34-30 34S36 74 36 56z' fill='%23ff5fb7' fill-opacity='.35'/%3E%3Cpath d='M110 108c0-6 5-11 11-11 4 0 8 2 10 6 2-4 6-6 10-6 6 0 11 5 11 11 0 12-21 22-21 22s-21-10-21-22z' fill='%23b59cff' fill-opacity='.28'/%3E%3Ccircle cx='122' cy='44' r='3' fill='%237be7ff' fill-opacity='.35'/%3E%3Ccircle cx='46' cy='116' r='2.5' fill='%23ff93d6' fill-opacity='.35'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  filter: blur(0.1px);
}

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

.admin {
  padding-bottom: 20px;
}


.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.admin-grid--meta {
  margin-bottom: 24px;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group--checkbox {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  flex-shrink: 0;
  position: relative;
}

.theme-anime .checkbox-custom {
  border-color: rgba(255, 95, 183, 0.3);
  background: rgba(255, 255, 255, 0.7);
}

.checkbox-input:checked + .checkbox-custom {
  background: linear-gradient(135deg, rgba(255, 95, 183, 0.9), rgba(181, 156, 255, 0.8));
  border-color: rgba(255, 95, 183, 0.5);
}

.checkbox-input:checked + .checkbox-custom::after {
  content: "✓";
  color: white;
  font-weight: 900;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.checkbox-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.checkbox-label:hover .checkbox-custom {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 95, 183, 0.2);
}

.form-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid rgba(255, 95, 183, 0.3);
}

.theme-anime .form-hint {
  background: rgba(255, 255, 255, 0.6);
  border-left-color: rgba(255, 95, 183, 0.4);
}

.hint-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.admin-actions {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.theme-anime .admin-actions {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.6));
  border-color: rgba(255, 95, 183, 0.2);
  box-shadow: 0 24px 60px rgba(255, 95, 183, 0.15);
}

.admin-actions__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--stroke);
}

.theme-anime .admin-actions__header {
  border-bottom-color: rgba(255, 95, 183, 0.18);
}

.admin-actions__title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pill--primary {
  background: linear-gradient(135deg, rgba(255, 95, 183, 0.25), rgba(181, 156, 255, 0.2));
  border-color: rgba(255, 95, 183, 0.3);
  color: rgba(35, 18, 44, 0.9);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(255, 95, 183, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* 后台：手机端适配 */
@media (max-width: 720px) {
  .admin-actions {
    padding: 16px;
  }

  .admin-actions__header {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .admin-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .button-group,
  .button-group--primary {
    width: 100%;
    justify-content: stretch;
  }

  .button-group .btn,
  .button-group--primary .btn {
    flex: 1;
    width: 100%;
  }

  .admin-token {
    min-width: 0;
  }
}

.admin-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button-group--primary {
  width: 100%;
  margin-bottom: 8px;
}

.button-group--primary .btn {
  flex: 1;
  min-width: 140px;
}

.admin-token {
  display: grid;
  gap: 8px;
  min-width: 280px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.payment-form__input--token {
  padding-right: 44px;
}

.input-toggle {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  font-size: 16px;
  opacity: 0.6;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 1;
}

.input-toggle:hover {
  opacity: 1;
  transform: scale(1.1);
}

.label-icon {
  display: inline-block;
  margin-right: 6px;
  font-size: 14px;
}

.small {
  font-size: 12px;
  line-height: 1.6;
}

/* 响应式优化：合并媒体查询 */
@media (max-width: 1100px) {
  .admin-grid,
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-actions__header {
    grid-template-columns: 1fr;
  }
  .admin-buttons {
    justify-content: flex-start;
  }
  .button-group--primary .btn {
    min-width: auto;
  }
  .admin-token {
    min-width: auto;
  }
}

@media (max-width: 820px) {
  .grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.hero {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  animation: heroFadeIn 0.6s ease-out;
}

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

.theme-anime .hero {
  border-color: rgba(35, 18, 44, 0.12);
  box-shadow: var(--shadow2);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(520px 160px at 20% 10%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(420px 220px at 90% 25%, rgba(0, 209, 255, 0.14), transparent 60%),
    radial-gradient(420px 220px at 60% 120%, rgba(124, 92, 255, 0.18), transparent 60%);
  pointer-events: none;
  filter: blur(0.2px);
}

.theme-anime .hero::before {
  background:
    radial-gradient(520px 180px at 15% 10%, rgba(255, 95, 183, 0.26), transparent 60%),
    radial-gradient(520px 220px at 92% 18%, rgba(123, 231, 255, 0.2), transparent 62%),
    radial-gradient(540px 240px at 65% 120%, rgba(181, 156, 255, 0.24), transparent 64%),
    radial-gradient(320px 220px at 35% 60%, rgba(255, 255, 255, 0.32), transparent 62%);
}

.theme-anime .hero__title {
  text-shadow: 0 12px 28px rgba(255, 95, 183, 0.18);
}

.hero > * {
  position: relative;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: radial-gradient(120px 120px at 20% 20%, rgba(255, 255, 255, 0.24), transparent 55%),
    linear-gradient(135deg, rgba(124, 92, 255, 0.9), rgba(0, 209, 255, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.theme-anime .avatar {
  border-color: rgba(35, 18, 44, 0.1);
  background:
    radial-gradient(140px 140px at 20% 20%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(135deg, rgba(255, 95, 183, 0.95), rgba(181, 156, 255, 0.85));
  box-shadow: 0 22px 55px rgba(255, 95, 183, 0.18), 0 18px 40px rgba(35, 18, 44, 0.14);
}

.avatar:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
}

.theme-anime .avatar {
  animation: floatY 6s ease-in-out infinite;
}

.avatar__text {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
}

.hero__title {
  margin: 2px 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
  position: relative;
}

.theme-anime .hero__title {
  text-shadow:
    0 0 18px rgba(255, 95, 183, 0.45),
    0 0 32px rgba(181, 156, 255, 0.45);
}

.theme-anime .hero__title::after {
  content: "✦";
  position: absolute;
  right: -18px;
  top: -6px;
  font-size: 18px;
  color: #ff5fb7;
  text-shadow: 0 0 12px rgba(255, 95, 183, 0.8);
  animation: sparkle 2.8s ease-in-out infinite;
}

.hero__subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.goal {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(220px 60px at 10% 0%, rgba(255, 255, 255, 0.45), transparent 55%),
    linear-gradient(90deg, rgba(255, 95, 183, 0.15), rgba(181, 156, 255, 0.3));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-anime .goal {
  border-color: rgba(255, 95, 183, 0.32);
  background: radial-gradient(260px 70px at 8% 0%, rgba(255, 255, 255, 0.85), transparent 60%),
    linear-gradient(90deg, rgba(255, 147, 214, 0.32), rgba(181, 156, 255, 0.4));
  box-shadow: 0 14px 38px rgba(255, 95, 183, 0.26);
}

.goal__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
}

.goal__label {
  font-weight: 700;
}

.goal__value {
  font-family: var(--mono);
}

.goal__bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.goal__bar-inner {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.8), rgba(124, 92, 255, 0.95));
  transition: width 400ms ease;
}

.theme-anime .goal__bar-inner {
  background: linear-gradient(90deg, rgba(255, 95, 183, 0.75), rgba(255, 95, 183, 0.9));
}

/* 多级目标样式 */
.multi-goals {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  backdrop-filter: blur(8px);
}

.theme-anime .multi-goals {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 95, 183, 0.2);
}

.multi-goals__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.multi-goals__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.multi-goal-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.multi-goal-item__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

.multi-goal-item__value {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

.multi-goal-item__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.theme-anime .multi-goal-item__bar {
  background: rgba(255, 95, 183, 0.15);
}

.multi-goal-item__bar-inner {
  height: 100%;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.7), rgba(124, 92, 255, 0.85));
  border-radius: inherit;
  transition: width 400ms ease;
}

.theme-anime .multi-goal-item__bar-inner {
  background: linear-gradient(90deg, rgba(255, 95, 183, 0.6), rgba(255, 95, 183, 0.8));
}

/* 赞赏活动徽章 */
.donation-event-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(255, 95, 183, 0.9), rgba(181, 156, 255, 0.9));
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 95, 183, 0.3);
  animation: pulse 2s ease-in-out infinite;
  z-index: 10;
}

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

.theme-anime .donation-event-badge {
  background: linear-gradient(135deg, rgba(255, 95, 183, 1), rgba(181, 156, 255, 1));
  box-shadow: 0 4px 16px rgba(255, 95, 183, 0.4);
}

.goal__bar-inner {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5fb7, #ff93d6, #b59cff);
  background-size: 200% 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
  transition: width 260ms ease-out;
  animation: goalGlow 3s linear infinite;
}

.hero__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.theme-anime .pill {
  border-color: rgba(35, 18, 44, 0.12);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 34px rgba(35, 18, 44, 0.12);
}

.pill--toggle {
  cursor: pointer;
  border-style: dashed;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pill--toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.theme-anime .pill--toggle:hover {
  border-color: rgba(255, 95, 183, 0.4);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(255, 95, 183, 0.18);
  transform: translateY(-3px) scale(1.06);
}

.section {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  transition: box-shadow 250ms ease, transform 250ms ease, border-color 250ms ease;
  animation: sectionFadeIn 0.5s ease-out backwards;
}

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

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }

.theme-anime .section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.56));
  border-color: rgba(35, 18, 44, 0.12);
  position: relative;
}

.theme-anime .section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(520px 160px at 20% 0%, rgba(255, 95, 183, 0.14), transparent 60%),
    radial-gradient(520px 200px at 95% 15%, rgba(123, 231, 255, 0.12), transparent 62%);
  opacity: 0.7;
  z-index: 0;
}

.theme-anime .section[aria-label="留言墙"]::before,
.theme-anime .section[aria-label="公告与动态"]::before {
  background:
    radial-gradient(420px 140px at 12% 0%, rgba(255, 95, 183, 0.2), transparent 60%),
    radial-gradient(420px 160px at 95% 18%, rgba(123, 231, 255, 0.18), transparent 62%),
    radial-gradient(6px 6px at 40px 26px, rgba(255, 95, 183, 0.72), transparent 60%),
    radial-gradient(6px 6px at 110px 80px, rgba(181, 156, 255, 0.7), transparent 60%),
    radial-gradient(5px 5px at 220px 46px, rgba(123, 231, 255, 0.7), transparent 60%);
}

.section:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.theme-anime .section:hover {
  box-shadow: 0 30px 80px rgba(35, 18, 44, 0.16), 0 0 0 1px rgba(255, 95, 183, 0.12);
  border-color: rgba(255, 95, 183, 0.2);
}

.theme-anime .section__head,
.theme-anime .grid {
  position: relative;
  z-index: 1;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 2px 2px 0;
}

.section__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.section__subtitle {
  margin: 0;
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid--stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.07));
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms ease, border-color 250ms ease;
  isolation: isolate;
  animation: cardFadeIn 0.4s ease-out backwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.2s; }

.card--compact {
  min-height: 0;
}

.theme-anime .card {
  border-color: rgba(35, 18, 44, 0.12);
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(380px 120px at 12% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(320px 140px at 100% 20%, rgba(0, 209, 255, 0.12), transparent 58%),
    radial-gradient(420px 180px at 80% 110%, rgba(124, 92, 255, 0.16), transparent 60%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.theme-anime .card::before {
  opacity: 0.75;
  background:
    radial-gradient(420px 160px at 12% 0%, rgba(255, 95, 183, 0.18), transparent 62%),
    radial-gradient(380px 180px at 105% 25%, rgba(123, 231, 255, 0.12), transparent 64%),
    radial-gradient(520px 220px at 75% 112%, rgba(181, 156, 255, 0.16), transparent 64%);
}

/* A) Jelly/gloss highlight for cards */
.theme-anime .card::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  height: 46%;
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.08));
  opacity: 0.55;
  transform: skewY(-2deg);
  filter: blur(0.2px);
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card__body {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow2);
  border-color: rgba(255, 255, 255, 0.24);
}

.theme-anime .card:hover {
  box-shadow: 0 38px 120px rgba(35, 18, 44, 0.22), 0 0 0 1px rgba(255, 95, 183, 0.15);
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 95, 183, 0.25);
}

.theme-anime .card:hover::before {
  opacity: 0.9;
  background:
    radial-gradient(480px 180px at 12% 0%, rgba(255, 95, 183, 0.25), transparent 65%),
    radial-gradient(420px 200px at 105% 25%, rgba(123, 231, 255, 0.18), transparent 67%),
    radial-gradient(560px 240px at 75% 112%, rgba(181, 156, 255, 0.22), transparent 67%);
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.card__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__icon {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 95, 183, 0.2), rgba(181, 156, 255, 0.15));
  border: 1px solid rgba(255, 95, 183, 0.2);
}

.card__title h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.card--overview {
  min-height: auto;
}

.card--payment {
  min-height: auto;
}

.badge {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
}

.badge--primary {
  border-color: rgba(255, 95, 183, 0.38);
  background: linear-gradient(135deg, rgba(255, 95, 183, 0.18), rgba(255, 255, 255, 0.9));
}

.theme-anime .badge {
  border-color: rgba(35, 18, 44, 0.14);
  background: rgba(255, 255, 255, 0.85);
}

.theme-anime .badge--primary {
  border-color: rgba(255, 95, 183, 0.48);
  background: linear-gradient(135deg, rgba(255, 95, 183, 0.22), rgba(255, 255, 255, 0.96));
}

.card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.brand {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.brand--wechat {
  background: radial-gradient(circle at 30% 30%, #93ffb0, #29c356);
}

.brand--alipay {
  background: radial-gradient(circle at 30% 30%, #9ae8ff, #2ea9ff);
}

.theme-anime .brand--wechat {
  background: radial-gradient(circle at 30% 30%, #a8ffd2, var(--anime-mint));
}
.theme-anime .brand--alipay {
  background: radial-gradient(circle at 30% 30%, #b8f0ff, var(--anime-cyan));
}

.qr {
  position: relative;
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  cursor: zoom-in;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.theme-anime .qr {
  border-style: dashed;
  border-color: rgba(255, 95, 183, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.56));
}

.theme-anime .qr::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  pointer-events: none;
  background: radial-gradient(240px 120px at 20% 10%, rgba(255, 95, 183, 0.12), transparent 60%),
    radial-gradient(240px 120px at 90% 30%, rgba(123, 231, 255, 0.1), transparent 60%);
  opacity: 0.9;
  z-index: 0;
}

.qr img {
  width: min(240px, 100%);
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.qr__hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.qr__countdown {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 95, 183, 0.3);
  background: rgba(255, 95, 183, 0.15);
  color: rgba(255, 95, 183, 0.9);
  font-weight: 700;
  font-family: var(--mono);
  z-index: 2;
  backdrop-filter: blur(4px);
}

.theme-anime .qr__countdown {
  border-color: rgba(255, 95, 183, 0.4);
  background: rgba(255, 95, 183, 0.25);
  color: rgba(255, 95, 183, 1);
  box-shadow: 0 2px 8px rgba(255, 95, 183, 0.2);
}

.theme-anime .qr__hint {
  border-color: rgba(35, 18, 44, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(35, 18, 44, 0.72);
}

@media (prefers-color-scheme: light) {
  .qr__hint {
    background: rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.78);
  }
}

.qr:hover {
  transform: translateY(-3px) scale(1.01);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.theme-anime .qr:hover {
  border-color: rgba(255, 95, 183, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.68));
  box-shadow: 0 24px 65px rgba(255, 95, 183, 0.2), 0 0 0 1px rgba(255, 95, 183, 0.15);
}

.qr:hover img {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.35);
}

.theme-anime .qr:hover img {
  box-shadow: 0 28px 75px rgba(255, 95, 183, 0.25);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field {
  min-width: 0;
  flex: 1;
}

.field__label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field__value {
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease;
}

.field__value:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.mono {
  font-family: var(--mono);
  font-size: 13px;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.theme-anime .btn {
  border-color: rgba(255, 95, 183, 0.22);
  background: linear-gradient(180deg, rgba(255, 95, 183, 0.22), rgba(255, 255, 255, 0.62));
  box-shadow: 0 16px 40px rgba(255, 95, 183, 0.12);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.theme-anime .btn::before {
  content: "";
  position: absolute;
  left: -20%;
  top: -60%;
  width: 140%;
  height: 140%;
  pointer-events: none;
  background: radial-gradient(220px 120px at 30% 30%, rgba(255, 255, 255, 0.75), transparent 55%),
    radial-gradient(220px 140px at 80% 40%, rgba(255, 255, 255, 0.28), transparent 60%);
  opacity: 0.32;
  transform: rotate(-8deg);
  z-index: 0;
  mix-blend-mode: soft-light;
}

.theme-anime .btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  opacity: 0.35;
  z-index: 0;
}

.theme-anime .btn--soft {
  border-color: rgba(35, 18, 44, 0.12);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 40px rgba(35, 18, 44, 0.08);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.theme-anime .btn:hover {
  border-color: rgba(255, 95, 183, 0.42);
  background: linear-gradient(180deg, rgba(255, 147, 214, 0.35), rgba(255, 255, 255, 0.72));
  box-shadow: 0 22px 55px rgba(255, 95, 183, 0.18), 0 0 0 1px rgba(255, 95, 183, 0.2);
  transform: translateY(-3px) scale(1.03);
}

.theme-anime .btn:hover::before {
  opacity: 0.45;
  transform: rotate(-5deg) scale(1.1);
}

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

.btn--soft {
  background: rgba(255, 255, 255, 0.07);
}

.btn--primary {
  background: linear-gradient(135deg, rgba(255, 95, 183, 0.9), rgba(181, 156, 255, 0.85));
  border-color: rgba(255, 95, 183, 0.4);
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(255, 95, 183, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, rgba(255, 95, 183, 1), rgba(181, 156, 255, 0.95));
  box-shadow: 0 16px 40px rgba(255, 95, 183, 0.4);
  transform: translateY(-3px) scale(1.03);
}

.btn--save {
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.9), rgba(123, 231, 255, 0.85));
  border-color: rgba(48, 209, 88, 0.4);
  box-shadow: 0 12px 30px rgba(48, 209, 88, 0.3);
}

.btn--save:hover {
  background: linear-gradient(135deg, rgba(48, 209, 88, 1), rgba(123, 231, 255, 0.95));
  box-shadow: 0 16px 40px rgba(48, 209, 88, 0.4);
}

.btn-icon {
  display: inline-block;
  margin-right: 6px;
  font-size: 14px;
}

.stats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.stats-list--compact {
  gap: 4px;
}

.stats-list--enhanced {
  gap: 10px;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 200ms ease, transform 200ms ease;
}

.theme-anime .stats-item {
  background: rgba(255, 255, 255, 0.5);
}

.stats-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.theme-anime .stats-item:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(255, 95, 183, 0.1);
}

.stats-item__icon {
  font-size: 16px;
  flex-shrink: 0;
}

.admin-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-summary__tip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid rgba(255, 95, 183, 0.4);
}

.theme-anime .admin-summary__tip {
  background: rgba(255, 255, 255, 0.6);
  border-left-color: rgba(255, 95, 183, 0.5);
}

.stats-label {
  color: var(--muted);
}

.stats-value {
  font-weight: 800;
  font-family: var(--mono);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.timeline__empty {
  color: var(--muted);
}

.timeline__item {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.16);
}

.theme-anime .timeline__item {
  border-color: rgba(35, 18, 44, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.timeline__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.timeline__amount {
  font-weight: 800;
}

.timeline__time {
  font-size: 11px;
  color: var(--muted);
}

.timeline__note {
  font-size: 12px;
  color: var(--muted);
}

.timeline__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  margin-right: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
}

.timeline__badge--gold {
  border-color: rgba(255, 191, 0, 0.7);
  background: linear-gradient(135deg, #ffe08a, #ffc857);
  color: #5a3a00;
}

.timeline__badge--pink {
  border-color: rgba(255, 95, 183, 0.6);
  background: linear-gradient(135deg, #ffbddf, #ff93d6);
  color: #61223a;
}

.timeline__badge--mint {
  border-color: rgba(155, 255, 216, 0.7);
  background: linear-gradient(135deg, #d7fff0, #9bffd8);
  color: #124135;
}

.recommend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.recommend-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.guestbook {
  display: grid;
  gap: 14px;
}

.guestbook__form {
  display: grid;
  gap: 10px;
}

.guestbook__row {
  display: grid;
  gap: 6px;
}

.guestbook__field {
  width: 100%;
}

.guestbook__textarea {
  resize: vertical;
}

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

.guestbook__hint {
  font-size: 12px;
}

.guestbook__row--small {
  margin-top: 6px;
}

.guestbook__field--emoji {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.guestbook__emoji-label {
  font-size: 12px;
  color: var(--muted);
}

.guestbook__emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.emoji-btn {
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.emoji-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.guestbook__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.guestbook__item {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.16);
  font-size: 13px;
}

.theme-anime .guestbook__item {
  border-color: rgba(35, 18, 44, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.guestbook__item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.guestbook__name {
  font-weight: 800;
}

.guestbook__time {
  font-size: 11px;
  color: var(--muted);
}

.guestbook__message {
  font-size: 13px;
  line-height: 1.7;
}

.guestbook__empty {
  color: var(--muted);
  font-size: 13px;
}

.chart-mini {
  margin-top: 10px;
  height: 56px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.chart-mini__bar {
  flex: 1;
  position: relative;
  min-height: 2px;
  border-radius: 999px 999px 0 0;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.chart-mini__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 95, 183, 0.75));
  transition: height 260ms ease-out;
}

.theme-anime .chart-mini__bar {
  background: rgba(255, 255, 255, 0.35);
}

.theme-anime .chart-mini__fill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 147, 214, 0.9));
}

.share-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@keyframes goalGlow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes floatY {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-2px) scale(1.15);
    opacity: 1;
  }
}

/* Payment Form Styles */
.payment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--stroke);
}

.payment-form__input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.payment-form__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.payment-form__input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.payment-form__input {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  transition: border-color 180ms ease, background 180ms ease;
  appearance: none;
}

.payment-form__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.theme-anime .payment-form__input:focus {
  border-color: rgba(255, 95, 183, 0.4);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 95, 183, 0.15), 0 8px 20px rgba(255, 95, 183, 0.12);
}

.payment-form__currency {
  position: absolute;
  right: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
}

.payment-form__quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-amount {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.quick-amount:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.theme-anime .quick-amount:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 147, 214, 0.75));
  border-color: rgba(255, 95, 183, 0.35);
  box-shadow: 0 10px 25px rgba(255, 95, 183, 0.2);
  transform: translateY(-3px) scale(1.06);
}

.quick-amount:active {
  transform: translateY(0px) scale(0.96);
}

.btn--payment {
  width: 100%;
  margin-top: 4px;
}

/* Theme Anime Payment Form */
.theme-anime .payment-form {
  border-top-color: rgba(255, 95, 183, 0.18);
}

.theme-anime .payment-form__input {
  border-color: rgba(35, 18, 44, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(35, 18, 44, 0.9);
}

.theme-anime .payment-form__input:focus {
  border-color: rgba(255, 95, 183, 0.35);
  background: rgba(255, 255, 255, 0.85);
}

.theme-anime .payment-form__currency {
  color: rgba(35, 18, 44, 0.6);
}

.theme-anime .quick-amount {
  border-color: rgba(35, 18, 44, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 147, 214, 0.6));
  color: rgba(35, 18, 44, 0.85);
}

.theme-anime .quick-amount:hover {
  background: linear-gradient(135deg, rgba(255, 205, 235, 0.9), rgba(255, 147, 214, 0.9));
  border-color: rgba(255, 95, 183, 0.28);
}

/* PayPal Button Container */
#paypal-button-container {
  margin-top: 8px;
  min-height: 45px;
}

#paypal-button-container > div {
  border-radius: 12px;
  overflow: hidden;
}

/* 捐赠者墙样式 */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.wall-card {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.theme-anime .wall-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.56));
  border-color: rgba(35, 18, 44, 0.12);
}

.wall-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
}

.theme-anime .wall-card:hover {
  box-shadow: 0 30px 80px rgba(35, 18, 44, 0.18), 0 0 0 1px rgba(255, 95, 183, 0.15);
  border-color: rgba(255, 95, 183, 0.25);
  transform: translateY(-5px) scale(1.03);
}

.wall-card__badge {
  font-size: 36px;
  margin-bottom: 8px;
}

.wall-card__name {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text);
}

.wall-card__badge-name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.wall-card__stats {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--stroke);
}

.wall-card__stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.wall-card__stat-label {
  font-size: 12px;
  color: var(--muted);
}

.wall-card__stat-value {
  font-weight: 800;
  font-family: var(--mono);
  font-size: 13px;
}

/* 订单查询样式 */
.query-form {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.query-result {
  margin-top: 20px;
}

.query-details {
  padding: 8px 0;
}

@media (max-width: 600px) {
  .wall-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
}

.faq {
  margin-top: 16px;
  padding: 18px 18px 6px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.faq__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.faq__head h2 {
  margin: 0;
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

.qa {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 2px;
}

.qa:first-of-type {
  border-top: none;
}

.qa summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "⌄";
  opacity: 0.75;
  font-weight: 900;
  transform: rotate(-90deg);
  transition: transform 180ms ease, opacity 180ms ease;
}

.qa[open] summary::after {
  transform: rotate(0deg);
  opacity: 0.95;
}

.qa__a {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  margin-top: 16px;
  padding: 14px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__left,
.footer__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  opacity: 0.55;
}

.link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
}

.link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* 已合并到上方 */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  font-weight: 800;
  z-index: 50;
  transition: opacity 180ms ease, transform 180ms ease;
}

@media (prefers-color-scheme: light) {
  .toast {
    background: rgba(255, 255, 255, 0.78);
    color: rgba(15, 23, 42, 0.92);
  }
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.modal:not([hidden]) .modal__panel {
  animation: pop 180ms ease-out;
}

@keyframes pop {
  from {
    transform: translateY(10px) scale(0.98);
    opacity: 0.7;
  }
  to {
    transform: translateY(0px) scale(1);
    opacity: 1;
  }
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.theme-anime .toast {
  border-style: dashed;
  border-color: rgba(255, 95, 183, 0.22);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(35, 18, 44, 0.9);
}

.toast--success {
  border-color: rgba(48, 209, 88, 0.4);
  background: rgba(48, 209, 88, 0.15);
  color: rgba(48, 209, 88, 0.95);
}

.theme-anime .toast--success {
  background: rgba(48, 209, 88, 0.2);
  border-color: rgba(48, 209, 88, 0.4);
}

.toast--error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.15);
  color: rgba(239, 68, 68, 0.95);
}

.theme-anime .toast--error {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

.modal__panel {
  position: relative;
  width: min(520px, calc(100% - 28px));
  margin: 8vh auto 0;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(20, 24, 48, 0.92), rgba(12, 16, 38, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.theme-anime .modal__panel {
  border-color: rgba(35, 18, 44, 0.12);
}

@media (prefers-color-scheme: dark) {
  /* Force sweet theme to stay readable even if system is dark */
  body.theme-anime {
    color-scheme: light;
  }
}

@media (prefers-color-scheme: light) {
  .modal__panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86));
  }
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.modal__title {
  font-weight: 900;
}

.iconbtn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.iconbtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.modal__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__body p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.modal__body img {
  width: min(420px, 100%);
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.modal__hint {
  font-size: 12px;
}

/* 已合并到上方 */

@media (max-width: 600px) {
  .container {
    width: calc(100% - 24px);
    margin: 20px auto 32px;
  }
  .section {
    padding: 14px;
    margin-top: 12px;
  }
  .hero {
    padding: 16px;
    grid-template-columns: 64px 1fr;
  }
  .hero__title {
    font-size: 22px;
  }
  .hero__subtitle {
    font-size: 13px;
  }
  .payment-form__quick-amounts {
    grid-template-columns: repeat(2, 1fr);
  }
  .btn {
    width: 100%;
  }
  .row {
    flex-direction: column;
    align-items: stretch;
  }
  .footer {
    padding-inline: 0;
  }
  .toast {
    left: 50%;
    bottom: 16px;
    max-width: calc(100% - 40px);
    text-align: center;
  }
}

.realtime-notify {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(255, 95, 183, 0.15), rgba(181, 156, 255, 0.12));
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInDown 0.4s ease-out;
  box-shadow: 0 8px 24px rgba(255, 95, 183, 0.15);
}

.theme-anime .realtime-notify {
  background: linear-gradient(135deg, rgba(255, 95, 183, 0.25), rgba(181, 156, 255, 0.2));
  border-color: rgba(255, 95, 183, 0.3);
}

.realtime-notify__icon {
  font-size: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.realtime-notify__text {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 表格样式 */
.table-wrapper {
  overflow-x: auto;
  margin: 0 -18px;
  padding: 0 18px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table thead {
  background: rgba(255, 255, 255, 0.05);
}

.theme-anime .table thead {
  background: rgba(255, 255, 255, 0.4);
}

.table th {
  padding: 12px 8px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--stroke);
}

.table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--stroke);
  color: var(--text);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.theme-anime .table tbody tr {
  transition: background 200ms ease, transform 200ms ease;
}

.theme-anime .table tbody tr:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(2px);
  box-shadow: -2px 0 8px rgba(255, 95, 183, 0.1);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* 分页样式 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--stroke);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .table-wrapper {
    margin: 0 -14px;
    padding: 0 14px;
  }
  
  .table {
    font-size: 12px;
  }
  
  .table th,
  .table td {
    padding: 8px 4px;
  }
}

/* 加载动画 */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

.theme-anime .loading-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 95, 183, 0.1) 0%,
    rgba(255, 95, 183, 0.25) 50%,
    rgba(255, 95, 183, 0.1) 100%
  );
  background-size: 1000px 100%;
}

/* 平滑滚动和焦点样式优化 */
html {
  scroll-behavior: smooth;
}

/* 增强的焦点样式（使用CSS变量优化） */
:root {
  --focus-color: rgba(255, 95, 183, 0.5);
}

*:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 优化按钮和链接的焦点样式 */
.btn:focus-visible,
.link:focus-visible,
.qr:focus-visible,
.iconbtn:focus-visible,
.qa summary:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

/* 加载遮罩层 */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 95, 183, 0.9);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.theme-anime .spinner {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 95, 183, 0.9);
}

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

.loading-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.theme-anime .loading-text {
  color: rgba(35, 18, 44, 0.9);
}

/* 按钮加载动画 */
.btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
}

/* 配置变更横幅 */
.config-changed-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.95), rgba(255, 152, 0, 0.95));
  color: rgba(0, 0, 0, 0.9);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-out;
}

.theme-anime .config-changed-banner {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.98), rgba(255, 152, 0, 0.98));
  box-shadow: 0 -6px 30px rgba(255, 152, 0, 0.3);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.banner-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.banner-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.btn--small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn,
  .qr,
  .card,
  .iconbtn,
  .toast {
    transition: none !important;
  }
  .modal:not([hidden]) .modal__panel {
    animation: none !important;
  }
  .realtime-notify {
    animation: none !important;
  }
  .realtime-notify__icon {
    animation: none !important;
  }
  .hero,
  .section,
  .card {
    animation: none !important;
  }
  .config-changed-banner {
    animation: none !important;
  }
  .spinner,
  .btn-spinner {
    animation: none !important;
  }
}

