:root {
  --bg: #eef2fb;
  --card: rgba(255, 255, 255, 0.86);
  --card-solid: #ffffff;
  --ink: #101828;
  --ink-2: #475467;
  --muted: #667085;
  --line: #e2e8f5;
  --line-soft: #edf1fa;

  --indigo: #4f46e5;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --sky: #3b82f6;
  --amber: #f59e0b;
  --rose: #ec4899;
  --ok: #10b981;
  --danger: #e11d48;

  --brand: var(--indigo);
  --brand-2: #4338ca;
  --brand-soft: #eef1ff;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 10px 30px -12px rgba(30, 41, 90, 0.18);
  --shadow-lg: 0 26px 60px -24px rgba(30, 41, 90, 0.34);
  --ring: 0 0 0 4px rgba(79, 70, 229, 0.14);
  --grad-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #06b6d4 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b, #ec4899);
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 背景：三团光晕 + 细点阵 */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw;
  z-index: -2;
  background:
    radial-gradient(42vw 42vw at 10% 6%, rgba(79, 70, 229, 0.20), transparent 62%),
    radial-gradient(38vw 38vw at 92% 12%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(46vw 46vw at 60% 96%, rgba(236, 72, 153, 0.12), transparent 62%);
  filter: blur(12px);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(79, 70, 229, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 70%);
  pointer-events: none;
}

::selection { background: rgba(124, 58, 237, 0.22); }

/* 滚动条 */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c7d2fe, #a5b4fc);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a5b4fc, #818cf8); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

a { color: var(--brand-2); text-decoration: none; transition: color 0.15s ease; }
a:hover { text-decoration: none; color: var(--violet); }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* 顶栏比正文宽一点，导航和账号区能排在一行 */
.topbar .wrap { width: min(1340px, calc(100% - 32px)); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 245, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 8px 24px -20px rgba(16, 24, 40, 0.5);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex: 0 0 auto;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo::after {
  content: "";
  position: absolute;
  inset: -60% -80%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.75) 50%, transparent 58%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}

.brand:hover .logo { transform: rotate(-6deg) scale(1.04); }
.brand:hover .logo::after { transform: translateX(100%); }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; letter-spacing: 0.3px; }
.brand-text small { color: var(--muted); font-size: 11.5px; letter-spacing: 0.2px; }

.nav {
  display: flex;
  gap: 2px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}

.nav a:hover { background: rgba(79, 70, 229, 0.07); color: var(--brand-2); }
.nav a:hover::after { width: 42%; }

.nav a.on {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(79, 70, 229, 0.95);
}

.nav a.on::after { display: none; }

.topbar-right {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.search input,
.nick input {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  color: var(--ink);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, width 0.25s ease;
}

.search input { width: 136px; }
.nick input { width: 96px; }

.search input::placeholder { color: #9aa5b8; }

.search input:focus,
.nick input:focus {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: var(--ring);
  background: #fff;
}

.nick button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-2);
  font-family: inherit;
  transition: all 0.16s ease;
}

.nick button:hover { border-color: rgba(124, 58, 237, 0.5); color: var(--brand-2); }

.ghost-link {
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 9px;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease;
}

.ghost-link:hover { background: rgba(79, 70, 229, 0.08); color: var(--brand-2); }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #28324a;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(199, 210, 254, 0.9);
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}

.user-chip .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -4px rgba(79, 70, 229, 0.9);
}

.user-chip em {
  font-style: normal;
  font-size: 11px;
  color: #b45309;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 2px;
}

.main { padding: 26px 0 56px; }

.flashes { margin-top: 16px; }

.flash {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 10px;
  border: 1px solid transparent;
  position: relative;
  padding-left: 18px;
  animation: slideDown 0.35s cubic-bezier(0.2, 0.85, 0.25, 1);
  box-shadow: var(--shadow-xs);
}

.flash::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.55;
}

.flash.ok { background: linear-gradient(135deg, #ecfdf5, #f0fdfa); color: #047857; border-color: #bbf7d0; }
.flash.error { background: linear-gradient(135deg, #fff1f2, #fef2f2); color: #be123c; border-color: #fecdd3; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3 { line-height: 1.35; letter-spacing: -0.2px; }
h1 { font-size: 27px; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 18px 0 8px; }

.muted { color: var(--muted); font-size: 13px; }
.meta { color: var(--muted); font-size: 12px; }
.empty {
  color: var(--muted);
  padding: 26px 18px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(244, 247, 255, 0.7));
  text-align: center;
  font-size: 14px;
}
.pre { white-space: pre-wrap; word-break: break-word; }
.center { text-align: center; }
.big {
  font-size: 64px;
  margin: 0;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-head { margin-bottom: 20px; padding-bottom: 2px; }
.page-head h1 { font-size: 24px; }
.page-head h1 { margin-bottom: 4px; }
.page-head .muted { max-width: 760px; }

.card {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(226, 232, 245, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(199, 210, 254, 0.95);
}

.card.slim { padding: 14px 20px; }
.card.narrow { width: min(560px, 100%); margin: 0 auto 18px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.card-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-head h2::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--grad-brand);
  box-shadow: 0 3px 8px -2px rgba(79, 70, 229, 0.9);
  transform: rotate(12deg);
}

.more {
  font-size: 13px;
  color: var(--muted);
  padding: 3px 9px;
  border-radius: 999px;
  transition: all 0.16s ease;
}

.more:hover { color: var(--brand-2); background: rgba(79, 70, 229, 0.08); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero-text {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 255, 0.9));
  border: 1px solid rgba(226, 232, 245, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px;
}

.hero-text::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -90px;
  background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.22), transparent 68%);
  border-radius: 50%;
  filter: blur(10px);
  animation: floaty 9s ease-in-out infinite;
}

.hero-text::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: -80px;
  background: radial-gradient(circle at 60% 40%, rgba(6, 182, 212, 0.26), transparent 65%);
  border-radius: 50%;
  filter: blur(8px);
  animation: floaty 11s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-14px, 12px, 0) scale(1.08); }
}

.hero-text h1 {
  position: relative;
  font-size: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.6px;
  background: linear-gradient(120deg, #1e1b4b 0%, #4338ca 55%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { position: relative; color: var(--ink-2); font-size: 15px; margin: 0 0 20px; }

.hero-actions { position: relative; display: flex; gap: 10px; flex-wrap: wrap; }

/* 按钮 */
.btn {
  display: inline-block;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 245, 1);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1.5px); box-shadow: 0 12px 24px -14px rgba(30, 41, 90, 0.55); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn.primary {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 26px -14px rgba(79, 70, 229, 0.95);
  position: relative;
  overflow: hidden;
}

.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn.primary:hover::after { transform: translateX(120%); }

.btn.ghost { background: rgba(255, 255, 255, 0.6); border-color: rgba(199, 210, 254, 0.95); color: var(--brand-2); }
.btn.ghost:hover { background: #fff; border-color: rgba(124, 58, 237, 0.55); }

.btn.danger { background: linear-gradient(135deg, #f43f5e, #e11d48); color: #fff; border-color: transparent; box-shadow: 0 12px 24px -14px rgba(225, 29, 72, 0.9); }
.btn.warn { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; border-color: transparent; }
.btn.warn:hover { background: linear-gradient(135deg, #d97706, #c2410c); }

.btn.small { padding: 4px 11px; font-size: 12px; border-radius: 999px; }

/* 倒计时卡 */
.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(6, 182, 212, 0.55), transparent 55%),
    linear-gradient(155deg, #1e1b4b 0%, #312e81 45%, #4f46e5 100%);
  border-radius: var(--radius);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 24px;
  box-shadow: 0 30px 60px -30px rgba(49, 46, 129, 0.95);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.20) 40deg, transparent 90deg, transparent 220deg, rgba(6, 182, 212, 0.30) 260deg, transparent 300deg);
  animation: spin 22s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: linear-gradient(160deg, rgba(30, 27, 75, 0.55), rgba(49, 46, 129, 0.72) 45%, rgba(79, 70, 229, 0.55));
  z-index: 0;
}

.hero-card > * { position: relative; z-index: 1; }




.class-tag {
  margin-top: 12px;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  letter-spacing: 0.4px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  position: relative;
  overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 245, 0.95);
  border-radius: 16px;
  padding: 14px 8px 12px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat:hover::before { transform: scaleX(1); }

.stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #4338ca, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span { font-size: 12px; color: var(--muted); }

.notice-list, .file-list, .msg-list, .plain-list { list-style: none; margin: 0; padding: 0; }

.notice-list li, .file-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 10px;
  margin: 0 -10px;
  border-radius: 12px;
  border-bottom: 1px dashed var(--line-soft);
  flex-wrap: wrap;
  transition: background 0.18s ease, transform 0.18s ease;
}

.notice-list li:last-child, .file-list li:last-child { border-bottom: none; }

.notice-list li:hover, .file-list li:hover {
  background: linear-gradient(90deg, rgba(238, 242, 255, 0.9), rgba(255, 255, 255, 0));
  transform: translateX(2px);
}

.notice-list li > a, .file-list li > a { font-weight: 500; }

.tag {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.10);
  color: var(--brand-2);
  border: 1px solid rgba(199, 210, 254, 0.7);
}

.tag.pin {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #b45309;
  border-color: #fed7aa;
}

.badge {
  display: inline-block;
  min-width: 16px;
  padding: 0 6px;
  margin-left: 4px;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border-radius: 999px;
  box-shadow: 0 6px 12px -6px rgba(225, 29, 72, 0.9);
}

.badge:not(:empty) { animation: pop 0.4s ease; }

@keyframes pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.mini-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }

.mini-timeline li {
  display: flex;
  gap: 12px;
  padding: 8px 8px;
  margin: 0 -8px;
  align-items: flex-start;
  border-radius: 12px;
  transition: background 0.18s ease;
}

.mini-timeline li:hover { background: rgba(238, 242, 255, 0.8); }

.mini-timeline .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad-brand);
  margin-top: 8px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

.mini-timeline strong { display: block; font-size: 14px; }
.mini-timeline em { font-style: normal; color: var(--muted); font-size: 12px; }

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.thumb {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  position: relative;
  box-shadow: var(--shadow-xs);
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 27, 75, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.thumb img {
  width: 100%;
  height: 156px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.thumb:hover img { transform: scale(1.07); }
.thumb:hover::after { opacity: 1; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease;
}

.photo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.photo a { display: block; overflow: hidden; }

.photo img {
  width: 100%;
  height: 186px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.photo:hover img { transform: scale(1.06); }

.photo figcaption {
  padding: 10px 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo figcaption strong { font-size: 13px; }
.photo figcaption span { color: var(--muted); font-size: 12px; }

.msg {
  border-bottom: 1px dashed var(--line-soft);
  padding: 14px 10px;
  margin: 0 -10px;
  border-radius: 14px;
  transition: background 0.18s ease;
}

.msg:hover { background: rgba(238, 242, 255, 0.55); }
.msg:last-child { border-bottom: none; }

.msg header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.msg-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.msg-head strong { font-size: 14px; color: #1e293b; }
.msg p { margin: 0 0 8px; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }

.msg.tree {
  background: linear-gradient(135deg, #faf5ff, #f5f3ff);
  border: 1px solid #ede9fe;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 12px;
  position: relative;
  overflow: hidden;
}

.msg.tree::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
}

.anon { color: #7c3aed; font-weight: 600; }

.like {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}

.like:hover { color: #db2777; border-color: #fbcfe8; background: #fff1f5; transform: translateY(-1px); }
.like.done { color: #db2777; border-color: #fbcfe8; background: linear-gradient(135deg, #fff1f5, #ffe4e6); }

.form { display: flex; flex-direction: column; gap: 14px; }

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}

.form input[type="text"],
.form input[type="date"],
.form input[type="password"],
.form input:not([type]),
.form input[type="file"],
.form select,
.form textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  outline: none;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.form input:hover, .form select:hover, .form textarea:hover { border-color: #c7d2fe; }

.form textarea { resize: vertical; min-height: 96px; line-height: 1.65; }

.form input:focus, .form textarea:focus, .form select:focus {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: var(--ring);
  background: #fff;
}

.form input[type="file"] {
  padding: 9px 11px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  cursor: pointer;
}

.form .btn { align-self: flex-start; }

.row-form {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.row-form label { flex: 0 0 auto; }
.row-form .grow { flex: 1 1 220px; }

.tiny-input {
  width: 96px;
  padding: 5px 8px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  outline: none;
}

.tiny-input:focus { border-color: rgba(124, 58, 237, 0.5); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.10); }

.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }

.table th, .table td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  background: linear-gradient(180deg, #f8fafc, rgba(248, 250, 252, 0));
}

.table tbody tr { transition: background 0.16s ease; }
.table tbody tr:hover td { background: rgba(238, 242, 255, 0.75); }
.table tr:last-child td { border-bottom: none; }
.table td:first-child, .table th:first-child { padding-left: 12px; }

.row-muted { background: #fcfcfd; color: #94a3b8; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }

.chip {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-2);
  border: 1px solid var(--line);
  transition: all 0.16s ease;
}

.chip:hover { border-color: rgba(124, 58, 237, 0.5); color: var(--brand-2); transform: translateY(-1px); }
.chip.on { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 10px 20px -14px rgba(79, 70, 229, 0.95); }
.chip b { font-weight: 600; margin-left: 2px; }
.cat { font-weight: 500; }

.timeline { list-style: none; margin: 0; padding: 6px 0 0 0; }

.timeline li { display: flex; gap: 18px; padding: 0 0 22px 0; position: relative; }

.timeline li::before {
  content: "";
  position: absolute;
  left: 70px;
  top: 10px;
  bottom: -6px;
  width: 2px;
  background: linear-gradient(180deg, #c7d2fe, rgba(199, 210, 254, 0.15));
}

.timeline li:last-child::before { display: none; }

.t-date {
  flex: 0 0 70px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-2);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.t-body {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.t-body::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #a5b4fc;
}

.timeline li:hover .t-body { transform: translateX(3px); box-shadow: var(--shadow); }
.t-body h3 { margin: 0 0 4px; }
.t-body p { margin: 0 0 4px; }

.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.profile {
  display: flex;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}

.profile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(199, 210, 254, 0.95);
}

.avatar {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  object-fit: cover;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  border: 1px solid rgba(226, 232, 245, 0.9);
}

.avatar.text {
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  border: none;
  box-shadow: 0 12px 24px -14px rgba(79, 70, 229, 0.95);
}

.p-info { min-width: 0; }
.p-info strong { font-size: 14.5px; }
.p-info em { font-style: normal; color: var(--muted); font-size: 12px; }
.p-info p { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); }
.motto { color: #4338ca; }

.honor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.honor {
  position: relative;
  overflow: hidden;
  border: 1px solid #fde68a;
  background: linear-gradient(160deg, #fffdf5, #fff7e6 60%, #fef3c7);
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 10px 26px -20px rgba(180, 83, 9, 0.8);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.24s ease;
}

.honor::after {
  content: "";
  position: absolute;
  inset: -50% -60%;
  background: linear-gradient(115deg, transparent 45%, rgba(255, 255, 255, 0.85) 50%, transparent 55%);
  transform: translateX(-100%);
  transition: transform 0.9s ease;
}

.honor:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(180, 83, 9, 0.95); }
.honor:hover::after { transform: translateX(100%); }

.honor .medal { color: #d97706; font-size: 19px; }
.honor-who { font-weight: 700; margin-top: 3px; color: #78350f; }
.honor-what { font-size: 13px; color: #92400e; }

.notice {
  border-top: 1px solid var(--line-soft);
  padding: 16px 12px;
  margin: 0 -12px;
  border-radius: 14px;
  transition: background 0.18s ease;
}

.notice:first-of-type { border-top: none; }
.notice:hover { background: rgba(238, 242, 255, 0.55); }
.notice header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.notice h3 { margin: 0; }
.notice p { margin: 8px 0 0; color: var(--ink-2); white-space: pre-wrap; }

.tips { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; }
.tips li { margin-bottom: 6px; }
.tips li::marker { color: #a5b4fc; }

.plain-list li { padding: 8px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14px; }
.plain-list li:last-child { border-bottom: none; }

.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.actions form { display: inline-block; margin: 0; }
.minor-title { font-size: 14px; color: #1e293b; margin: 16px 0 6px; font-weight: 600; }
.danger-tag { color: #be123c; background: #ffe4e6; }
.warn-tag { color: #b45309; background: #fef3c7; }
.moderation { background: linear-gradient(135deg, #ffffff, #f5f3ff); }

.auth-card { margin: 6vh auto 10vh; }
.auth-card h1 { margin-bottom: 4px; }
.auth-card .form { margin-top: 6px; }

.footer {
  position: relative;
  border-top: 1px solid rgba(226, 232, 245, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(238, 242, 255, 0.85));
  backdrop-filter: blur(10px);
  padding: 26px 0 30px;
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.55), rgba(6, 182, 212, 0.55), transparent);
}

.footer p { margin: 3px 0; font-size: 13px; color: var(--ink-2); }
.footer .muted { color: var(--muted); font-size: 12px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero, .card, .stat, .notice, .msg, .photo, .profile, .honor {
  animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stats .stat:nth-child(1) { animation-delay: 0.04s; }
.stats .stat:nth-child(2) { animation-delay: 0.08s; }
.stats .stat:nth-child(3) { animation-delay: 0.12s; }
.stats .stat:nth-child(4) { animation-delay: 0.16s; }
.stats .stat:nth-child(5) { animation-delay: 0.20s; }
.stats .stat:nth-child(6) { animation-delay: 0.24s; }
.grid-2 > .card:nth-child(1) { animation-delay: 0.06s; }
.grid-2 > .card:nth-child(2) { animation-delay: 0.12s; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .thumb-grid, .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid, .honor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search input { width: 120px; }
  .hero-text h1 { font-size: 27px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 22px); }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .topbar-right { order: 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-text { padding: 20px; }
  .hero-text h1 { font-size: 23px; }
    .profile-grid, .honor-grid, .thumb-grid, .photo-grid { grid-template-columns: 1fr; }
  .timeline li::before { display: none; }
  .t-date { flex: 0 0 56px; }
  .card { padding: 16px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* 内容少的时候也让页脚贴着底部 */
body { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1 0 auto; }
.footer { flex: 0 0 auto; }

.user-menu { position: relative; }

.user-menu > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding-right: 8px;
}

.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { border-color: rgba(124, 58, 237, 0.5); }

.user-menu .caret { font-size: 10px; color: var(--muted); margin-left: -2px; transition: transform 0.2s ease; }
.user-menu[open] .caret { transform: rotate(180deg); }

.user-menu .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 22px 44px -20px rgba(30, 41, 90, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
  animation: menuIn 0.16s ease both;
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-menu .menu a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.user-menu .menu a:hover { background: rgba(79, 70, 229, 0.08); color: var(--brand-2); }
.user-menu .menu a.danger { color: #be123c; }
.user-menu .menu a.danger:hover { background: #fff1f2; }

.avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(199, 210, 254, 0.9);
}

.page-head.narrow-head { text-align: center; }

.me-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.me-card { text-align: center; padding: 26px 22px; position: sticky; top: 84px; }

.me-avatar {
  width: 108px;
  height: 108px;
  margin: 0 auto 14px;
  border-radius: 32px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 22px 40px -22px rgba(79, 70, 229, 0.95);
  border: 4px solid rgba(255, 255, 255, 0.9);
}

.me-avatar img { width: 100%; height: 100%; object-fit: cover; }

.me-name { font-size: 19px; margin: 0 0 2px; }
.me-card .muted { margin: 0 0 16px; }

.me-progress { margin: 0 0 18px; }
.me-progress .bar {
  height: 7px;
  border-radius: 99px;
  background: #e8edf9;
  overflow: hidden;
}
.me-progress .bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--grad-brand);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.me-progress p { margin: 6px 0 0; font-size: 12px; }

.me-facts { margin: 0 0 18px; padding: 0; display: grid; gap: 8px; text-align: left; }
.me-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line-soft);
}
.me-facts > div:last-child { border-bottom: none; padding-bottom: 0; }
.me-facts dt { color: var(--muted); }
.me-facts dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }

.me-form-card { padding: 24px 26px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.small-note { font-size: 12.5px; margin-top: 16px; }

.celebrate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, rgba(79, 70, 229, 0.35), rgba(16, 24, 40, 0.72));
  backdrop-filter: blur(6px);
  animation: fadeIn 0.35s ease both;
  overflow: hidden;
}

.celebrate.gone { animation: fadeOut 0.35s ease both; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.bday-card {
  position: relative;
  z-index: 2;
  width: min(460px, calc(100vw - 40px));
  padding: 30px 32px 24px;
  text-align: center;
  border-radius: 26px;
  background: linear-gradient(165deg, #ffffff, #f3f0ff 55%, #eaf6ff);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 40px 90px -30px rgba(16, 24, 40, 0.7);
  animation: cardPop 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes cardPop {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bday-cake { font-size: 54px; line-height: 1; animation: cakeBounce 2.4s ease-in-out infinite; }
@keyframes cakeBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

.bday-card h2 {
  margin: 12px 0 8px;
  font-size: 25px;
  justify-content: center;
  background: linear-gradient(120deg, #4338ca, #7c3aed 55%, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bday-card h2::before { display: none; }

.bday-line { color: var(--ink-2); font-size: 14px; margin: 0 0 10px; }
.bday-wish {
  color: #312e81;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 18px;
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(124, 58, 237, 0.35);
}
.bday-sign { margin: 14px 0 0; font-size: 12px; color: var(--muted); letter-spacing: 0.4px; }

.confetti {
  position: absolute;
  top: -20px;
  z-index: 1;
  border-radius: 2px;
  opacity: 0.95;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(108vh) rotate(720deg); opacity: 0.85; }
}

@media (max-width: 900px) {
  .me-layout { grid-template-columns: 1fr; }
  .me-card { position: static; }
  .form-grid { grid-template-columns: 1fr; }
}


.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 11px;
  font-size: 15px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.search input {
  width: 168px;
  padding-left: 30px;
  transition: width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.search input::placeholder { color: #9aa5b8; }

.search:focus-within .search-icon { color: var(--violet); }

.search input:focus {
  width: 216px;
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: var(--ring);
}

.like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.like i {
  font-style: normal;
  font-size: 14px;
  color: #cbd5e1;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s ease;
}

.like:hover i { color: #f472b6; transform: scale(1.18); }
.like.done i { color: #e11d48; }
.like:disabled { cursor: default; opacity: 1; }

.like.just i { animation: heartPop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }

@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.55); }
  70% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--grad-brand);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 16px 30px -14px rgba(79, 70, 229, 0.95);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 60;
}

.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { filter: brightness(1.06); }

.hero-card {
  gap: 14px;
  padding: 26px 24px 22px;
}

.ring {
  width: 178px;
  height: 178px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: conic-gradient(from -90deg, #22d3ee calc(var(--p) * 1%), rgba(255, 255, 255, 0.14) 0);
  box-shadow: 0 26px 60px -32px rgba(6, 182, 212, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: ringGlow 5s ease-in-out infinite;
}

@keyframes ringGlow {
  0%, 100% { box-shadow: 0 26px 60px -32px rgba(6, 182, 212, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
  50% { box-shadow: 0 26px 74px -26px rgba(124, 58, 237, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
}

.ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.20), rgba(24, 22, 66, 0.94) 62%);
  z-index: 0;
}

/* 圆里那层水：跟着页面滚动倾斜、晃荡 */
#ringWater {
  position: absolute;
  inset: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.ring-inner { position: relative; text-align: center; line-height: 1.15; z-index: 2; }
.cd-label { font-size: 11.5px; letter-spacing: 1.2px; opacity: 0.72; }
.cd-num {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 25%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cd-unit { font-size: 12px; letter-spacing: 2px; opacity: 0.7; }

.cd-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  opacity: 0.82;
  letter-spacing: 0.4px;
}

.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.prog { width: 100%; max-width: 210px; }
.prog-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.prog-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.prog-text { margin-top: 6px; font-size: 11.5px; opacity: 0.72; letter-spacing: 0.3px; }

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.75;
  filter: blur(0.4px);
  animation: twinkle 3.6s ease-in-out infinite;
}
.spark.s1 { top: 16%; left: 12%; animation-delay: 0.2s; }
.spark.s2 { top: 72%; right: 13%; width: 4px; height: 4px; animation-delay: 1.1s; }
.spark.s3 { top: 30%; right: 18%; width: 5px; height: 5px; animation-delay: 2.2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.hero-card .class-tag { margin-top: 2px; }



