/* ============================================================
   全站主题：新年（红金）
   通过 html[data-theme="newyear"] 覆盖默认配色
   - 同时覆盖旧站 CSS 变量（variables.css）与 Tailwind 工具类
   - 覆盖页面：首页、登录、账号、教师端、班级广场、Vue 管理端
   ============================================================ */

html[data-theme="newyear"] {
  --ny-red-950: #450a0a;
  --ny-red-900: #7f1d1d;
  --ny-red-800: #991b1b;
  --ny-red-700: #b91c1c;
  --ny-red-600: #dc2626;
  --ny-gold: #d4af37;
  --ny-gold-light: #f5d98b;
  --ny-gold-deep: #b8860b;
  --ny-cream: #fff7ed;
  --ny-card: #fffaf0;
  --ny-ink: #431407;
  --ny-muted: #9a3412;
  --ny-line: #f0d7a8;
  --ny-line-strong: #e7c98f;
  --ny-shadow: 0 18px 40px -24px rgba(127, 29, 29, .35);
  --ny-shadow-lg: 0 26px 55px -28px rgba(127, 29, 29, .45);

  /* 旧站公共变量（variables.css），一处覆盖即可带动首页/登录等页面 */
  --primary: #b91c1c;
  --primary-light: #dc2626;
  --primary-dark: #7f1d1d;
  --primary-bg: #fee2e2;

  --bg: #fff7ed;
  --white: #fffaf0;
  --bg-light: #ffedd5;
  --bg-hover: #fff3e0;

  --text: #431407;
  --text-light: #7c2d12;
  --text-muted: #9a3412;
  --text-placeholder: #c08457;

  --border: #e7c98f;
  --border-light: #f0d7a8;
  --border-hover: #d4af37;

  --shadow-xs: 0 1px 2px 0 rgba(127, 29, 29, .08);
  --shadow-sm: 0 2px 6px -1px rgba(127, 29, 29, .10), 0 1px 2px -1px rgba(127, 29, 29, .08);
  --shadow-md: 0 8px 18px -8px rgba(127, 29, 29, .22);
  --shadow-lg: 0 16px 30px -14px rgba(127, 29, 29, .28);
  --shadow-xl: 0 26px 55px -24px rgba(127, 29, 29, .38);

  /* 班级广场原有变量 */
  --cm-primary: #b91c1c;
  --cm-primary-soft: #fee2e2;
  --cm-bg: #fff7ed;
  --cm-card: #fffaf0;
  --cm-text: #431407;
  --cm-muted: #9a3412;
  --cm-line: #f0d7a8;
  --cm-shadow: 0 18px 40px -24px rgba(127, 29, 29, .30);
}

/* ---------- 页面底色与装饰 ---------- */
html[data-theme="newyear"] body {
  background-color: var(--ny-cream) !important;
  background-image:
    radial-gradient(circle at 8% -6%, rgba(212, 175, 55, .22) 0, rgba(212, 175, 55, 0) 34%),
    radial-gradient(circle at 94% 4%, rgba(185, 28, 28, .12) 0, rgba(185, 28, 28, 0) 30%),
    radial-gradient(circle at 12% 20%, rgba(212, 175, 55, .10) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 74%, rgba(185, 28, 28, .05) 0 2px, transparent 3px) !important;
  background-size: auto, auto, 120px 120px, 160px 160px !important;
  background-attachment: fixed, fixed, scroll, scroll !important;
  color: var(--ny-ink) !important;
  box-shadow: inset 0 4px 0 var(--ny-gold);
}

/* 登录页原有蓝色渐变与光斑，改为红金氛围 */
html[data-theme="newyear"] body::before {
  background:
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, .18) 0%, transparent 52%),
    radial-gradient(circle at 72% 74%, rgba(185, 28, 28, .12) 0%, transparent 52%) !important;
}

html[data-theme="newyear"] ::selection {
  background: rgba(185, 28, 28, .18);
  color: var(--ny-red-900);
}

html[data-theme="newyear"] ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html[data-theme="newyear"] ::-webkit-scrollbar-track {
  background: #fff1e0;
}

html[data-theme="newyear"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e7c98f, #d4af37);
  border-radius: 999px;
  border: 2px solid #fff1e0;
}

/* ---------- 通用卡片 / 容器 ---------- */
html[data-theme="newyear"] .card,
html[data-theme="newyear"] .panel,
html[data-theme="newyear"] .box,
html[data-theme="newyear"] .card-container,
html[data-theme="newyear"] .auth-container,
html[data-theme="newyear"] .auth-card,
html[data-theme="newyear"] .login-card,
html[data-theme="newyear"] .cm-card,
html[data-theme="newyear"] .cm-post,
html[data-theme="newyear"] .cm-comment,
html[data-theme="newyear"] .cm-admin-row,
html[data-theme="newyear"] .cm-admin-item {
  background-color: var(--ny-card) !important;
  border-color: var(--ny-line) !important;
  box-shadow: var(--ny-shadow) !important;
}

html[data-theme="newyear"] .card:hover,
html[data-theme="newyear"] .cm-card:hover {
  border-color: var(--ny-gold) !important;
  box-shadow: var(--ny-shadow-lg) !important;
}

html[data-theme="newyear"] .card-header,
html[data-theme="newyear"] .card-footer,
html[data-theme="newyear"] .cm-card-top,
html[data-theme="newyear"] .cm-post-head,
html[data-theme="newyear"] .cm-comments-head {
  border-color: var(--ny-line) !important;
}

html[data-theme="newyear"] .card-title,
html[data-theme="newyear"] .cm-card-title,
html[data-theme="newyear"] .cm-post-title,
html[data-theme="newyear"] h1,
html[data-theme="newyear"] h2,
html[data-theme="newyear"] h3 {
  color: var(--ny-ink) !important;
}

html[data-theme="newyear"] .card-desc,
html[data-theme="newyear"] .card-status,
html[data-theme="newyear"] .cm-card-excerpt,
html[data-theme="newyear"] .cm-muted,
html[data-theme="newyear"] .cm-time,
html[data-theme="newyear"] .cm-post-meta,
html[data-theme="newyear"] .cm-card-meta,
html[data-theme="newyear"] .cm-comment-time {
  color: var(--ny-muted) !important;
}

html[data-theme="newyear"] .card-icon {
  background: linear-gradient(135deg, var(--ny-gold), var(--ny-gold-light)) !important;
  color: var(--ny-red-900) !important;
  box-shadow: 0 8px 18px -10px rgba(127, 29, 29, .5);
}

html[data-theme="newyear"] .card-status {
  background: var(--primary-bg) !important;
}

/* ---------- 顶部导航 ---------- */
html[data-theme="newyear"] .header-content,
html[data-theme="newyear"] .topbar,
html[data-theme="newyear"] .navbar,
html[data-theme="newyear"] .site-header,
html[data-theme="newyear"] .cm-header {
  background-color: var(--ny-red-900) !important;
  background-image:
    radial-gradient(circle at 14% 20%, rgba(245, 217, 139, .22) 0, rgba(245, 217, 139, 0) 42%),
    radial-gradient(circle at 88% 80%, rgba(245, 217, 139, .12) 0, rgba(245, 217, 139, 0) 38%),
    linear-gradient(135deg, var(--ny-red-900), var(--ny-red-800) 55%, var(--ny-red-700)) !important;
  color: #fff7ed !important;
  border-bottom: 2px solid var(--ny-gold) !important;
  box-shadow: 0 10px 26px -22px rgba(69, 10, 10, .9);
}

html[data-theme="newyear"] header h1,
html[data-theme="newyear"] header h2,
html[data-theme="newyear"] .header-content h1,
html[data-theme="newyear"] .topbar h1,
html[data-theme="newyear"] .cm-header h1 {
  color: #fff7ed !important;
  text-shadow: 0 2px 12px rgba(69, 10, 10, .35);
}

html[data-theme="newyear"] header .subtitle,
html[data-theme="newyear"] .header-content p,
html[data-theme="newyear"] .cm-header p,
html[data-theme="newyear"] .cm-brand p {
  color: #fde68a !important;
}

html[data-theme="newyear"] .cm-brand-icon {
  background: linear-gradient(135deg, var(--ny-gold), var(--ny-gold-light)) !important;
  color: var(--ny-red-900) !important;
  box-shadow: 0 6px 16px -8px rgba(69, 10, 10, .7);
}

/* 顶栏上的按钮/信息块：改成红底金边 */
html[data-theme="newyear"] .help-btn,
html[data-theme="newyear"] .logout-btn,
html[data-theme="newyear"] .letter-bell,
html[data-theme="newyear"] .cm-identity,
html[data-theme="newyear"] .cm-btn-ghost {
  background: rgba(255, 247, 237, .10) !important;
  color: #fde68a !important;
  border-color: rgba(245, 217, 139, .45) !important;
}

html[data-theme="newyear"] .help-btn:hover,
html[data-theme="newyear"] .logout-btn:hover,
html[data-theme="newyear"] .letter-bell:hover {
  background: rgba(245, 217, 139, .22) !important;
  color: #fff !important;
  border-color: var(--ny-gold) !important;
}

html[data-theme="newyear"] .letter-bell i,
html[data-theme="newyear"] .cm-identity i {
  color: #f5d98b !important;
}

html[data-theme="newyear"] .letter-bell-badge {
  background: var(--ny-gold) !important;
  color: var(--ny-red-900) !important;
}

/* 首页顶栏内的用户名/图标使用内联深色，红底上改为浅色 */
html[data-theme="newyear"] header #user-name,
html[data-theme="newyear"] header .user-info span {
  color: #fff7ed !important;
}

html[data-theme="newyear"] header .user-info i,
html[data-theme="newyear"] header .user-info a i {
  color: #f5d98b !important;
}

/* 管理端顶部标题栏保持浅色，避免两块大红相邻 */
html[data-theme="newyear"] main > header {
  background-color: var(--ny-card) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--ny-line) !important;
  color: var(--ny-ink) !important;
  box-shadow: none;
}

html[data-theme="newyear"] main > header h1 {
  color: var(--ny-red-900) !important;
  text-shadow: none;
}

/* ---------- 按钮 ---------- */
html[data-theme="newyear"] .btn-primary,
html[data-theme="newyear"] .primary-btn,
html[data-theme="newyear"] .auth-btn,
html[data-theme="newyear"] .cm-btn-primary,
html[data-theme="newyear"] .bg-slate-900 {
  background-color: var(--ny-red-800) !important;
  background-image: linear-gradient(135deg, var(--ny-red-700), var(--ny-red-900)) !important;
  color: #fff7ed !important;
  border-color: var(--ny-red-900) !important;
  box-shadow: 0 2px 0 rgba(212, 175, 55, .55), 0 10px 22px -14px rgba(127, 29, 29, .7);
}

html[data-theme="newyear"] .btn-primary:hover,
html[data-theme="newyear"] .auth-btn:hover,
html[data-theme="newyear"] .cm-btn-primary:hover,
html[data-theme="newyear"] .hover\:bg-slate-800:hover {
  background-image: linear-gradient(135deg, var(--ny-red-600), var(--ny-red-800)) !important;
  box-shadow: 0 2px 0 rgba(245, 217, 139, .8), 0 14px 26px -14px rgba(127, 29, 29, .8);
}

html[data-theme="newyear"] .btn-secondary,
html[data-theme="newyear"] .btn-ghost,
html[data-theme="newyear"] .cm-btn:not(.cm-btn-primary):not(.cm-btn-danger):not(.cm-btn-ghost) {
  background-color: var(--ny-card) !important;
  color: var(--ny-red-800) !important;
  border-color: var(--ny-line) !important;
}

html[data-theme="newyear"] .btn-secondary:hover,
html[data-theme="newyear"] .btn-ghost:hover,
html[data-theme="newyear"] .cm-btn:not(.cm-btn-primary):not(.cm-btn-danger):not(.cm-btn-ghost):hover {
  background-color: #ffedd5 !important;
  border-color: var(--ny-gold) !important;
  color: var(--ny-red-900) !important;
}

html[data-theme="newyear"] .cm-btn-danger {
  background: linear-gradient(135deg, var(--ny-red-700), var(--ny-red-900)) !important;
  color: #fff7ed !important;
  border-color: var(--ny-red-900) !important;
}

/* ---------- 链接 ---------- */
html[data-theme="newyear"] a {
  color: var(--ny-red-700);
}

html[data-theme="newyear"] .header-content a,
html[data-theme="newyear"] aside a,
html[data-theme="newyear"] .cm-header a {
  color: #fde68a;
}

/* 登录页“返回首页”默认白字，浅色底需改为深红 */
html[data-theme="newyear"] .back-link a {
  color: var(--ny-red-800);
}

html[data-theme="newyear"] .back-link a:hover {
  color: var(--ny-red-600);
}

/* ---------- 表单 ---------- */
html[data-theme="newyear"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[data-theme="newyear"] textarea,
html[data-theme="newyear"] select {
  background: #fffdf7 !important;
  border-color: var(--ny-line-strong) !important;
  color: var(--ny-ink) !important;
}

html[data-theme="newyear"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
html[data-theme="newyear"] textarea:hover,
html[data-theme="newyear"] select:hover {
  border-color: var(--ny-gold) !important;
}

html[data-theme="newyear"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
html[data-theme="newyear"] textarea:focus,
html[data-theme="newyear"] select:focus {
  border-color: var(--ny-red-600) !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .14) !important;
}

html[data-theme="newyear"] ::placeholder {
  color: #c08457 !important;
}

/* ---------- Vue 新前端（/app/*）自定义类 ---------- */
html[data-theme="newyear"] .bg-surface {
  background-color: var(--ny-cream) !important;
  background-image:
    radial-gradient(circle at 8% -6%, rgba(212, 175, 55, .18) 0, rgba(212, 175, 55, 0) 34%),
    radial-gradient(circle at 92% 2%, rgba(185, 28, 28, .10) 0, rgba(185, 28, 28, 0) 30%) !important;
}

html[data-theme="newyear"] .text-ink {
  color: var(--ny-ink) !important;
}

html[data-theme="newyear"] .bg-brand-gradient,
html[data-theme="newyear"] .bg-hero-gradient {
  background-color: var(--ny-red-900) !important;
  background-image: linear-gradient(135deg, var(--ny-red-950), var(--ny-red-900) 52%, var(--ny-red-700)) !important;
}

html[data-theme="newyear"] .bg-brand-50 {
  background-color: #fee2e2 !important;
}

html[data-theme="newyear"] .bg-brand-600 {
  background-color: var(--ny-red-800) !important;
  background-image: linear-gradient(135deg, var(--ny-red-700), var(--ny-red-900)) !important;
}

html[data-theme="newyear"] .bg-brand-700,
html[data-theme="newyear"] .hover\:bg-brand-700:hover {
  background-color: var(--ny-red-900) !important;
}

html[data-theme="newyear"] .text-brand-700,
html[data-theme="newyear"] .text-brand-600,
html[data-theme="newyear"] .text-brand-500 {
  color: var(--ny-red-700) !important;
}

html[data-theme="newyear"] .border-brand-400,
html[data-theme="newyear"] .border-brand-300,
html[data-theme="newyear"] .border-brand-200 {
  border-color: var(--ny-gold) !important;
}

html[data-theme="newyear"] .focus\:border-brand-400:focus {
  border-color: var(--ny-red-600) !important;
}

html[data-theme="newyear"] .ring-brand-100 {
  --tw-ring-color: rgba(185, 28, 28, .18) !important;
}

html[data-theme="newyear"] .bg-slate-50\/80 {
  background-color: rgba(255, 247, 237, .86) !important;
}

html[data-theme="newyear"] .bg-slate-300 {
  background-color: #e7c98f !important;
}

html[data-theme="newyear"] .border-slate-300 {
  border-color: var(--ny-line-strong) !important;
}

html[data-theme="newyear"] .bg-violet-400\/30,
html[data-theme="newyear"] .bg-indigo-400\/20 {
  background-color: rgba(245, 217, 139, .28) !important;
}

html[data-theme="newyear"] .hover\:bg-slate-200:hover {
  background-color: #f8e0bb !important;
}

/* ---------- 管理端 Tailwind 覆盖 ---------- */
html[data-theme="newyear"] .bg-slate-50 {
  background-color: var(--ny-cream) !important;
}

html[data-theme="newyear"] .bg-slate-100 {
  background-color: #ffedd5 !important;
}

html[data-theme="newyear"] .bg-slate-200 {
  background-color: #f8e0bb !important;
}

html[data-theme="newyear"] .hover\:bg-slate-100:hover {
  background-color: #ffedd5 !important;
}

html[data-theme="newyear"] .hover\:bg-slate-50:hover,
html[data-theme="newyear"] .hover\:bg-slate-50\/60:hover {
  background-color: #fff3e0 !important;
}

html[data-theme="newyear"] .bg-white {
  background-color: var(--ny-card) !important;
}

html[data-theme="newyear"] .bg-white\/85,
html[data-theme="newyear"] .bg-white\/80,
html[data-theme="newyear"] .bg-white\/75 {
  background-color: rgba(255, 250, 240, .88) !important;
}

html[data-theme="newyear"] .border-slate-200,
html[data-theme="newyear"] .border-slate-200\/50,
html[data-theme="newyear"] .border-slate-200\/60,
html[data-theme="newyear"] .border-slate-100 {
  border-color: var(--ny-line) !important;
}

html[data-theme="newyear"] .text-slate-900 {
  color: var(--ny-ink) !important;
}

html[data-theme="newyear"] .text-slate-800 {
  color: #5c1a0b !important;
}

html[data-theme="newyear"] .text-slate-700 {
  color: #7c2d12 !important;
}

html[data-theme="newyear"] .text-slate-600,
html[data-theme="newyear"] .text-slate-500 {
  color: var(--ny-muted) !important;
}

html[data-theme="newyear"] .text-slate-400,
html[data-theme="newyear"] .text-slate-300 {
  color: #b45309 !important;
}

/* 教师端 / 账号页使用的 gray 系 */
html[data-theme="newyear"] .bg-gray-50 {
  background-color: var(--ny-cream) !important;
}

html[data-theme="newyear"] .bg-gray-100 {
  background-color: #ffedd5 !important;
}

html[data-theme="newyear"] .bg-gray-200 {
  background-color: #f8e0bb !important;
}

html[data-theme="newyear"] .border-gray-100,
html[data-theme="newyear"] .border-gray-200,
html[data-theme="newyear"] .border-gray-300 {
  border-color: var(--ny-line) !important;
}

html[data-theme="newyear"] .text-gray-900,
html[data-theme="newyear"] .text-gray-800 {
  color: var(--ny-ink) !important;
}

html[data-theme="newyear"] .text-gray-700 {
  color: #7c2d12 !important;
}

html[data-theme="newyear"] .text-gray-600,
html[data-theme="newyear"] .text-gray-500 {
  color: var(--ny-muted) !important;
}

html[data-theme="newyear"] .text-gray-400 {
  color: #b45309 !important;
}

/* 账号页 / 教师端的主色（blue / indigo）统一改为中国红 */
html[data-theme="newyear"] .text-primary,
html[data-theme="newyear"] .text-blue-600,
html[data-theme="newyear"] .text-blue-500,
html[data-theme="newyear"] .text-indigo-600,
html[data-theme="newyear"] .text-indigo-500 {
  color: var(--ny-red-700) !important;
}

html[data-theme="newyear"] .bg-primary,
html[data-theme="newyear"] .bg-blue-600,
html[data-theme="newyear"] .bg-indigo-600 {
  background-color: var(--ny-red-800) !important;
}

html[data-theme="newyear"] .bg-primary-bg,
html[data-theme="newyear"] .bg-blue-50,
html[data-theme="newyear"] .bg-indigo-50 {
  background-color: #fee2e2 !important;
}

html[data-theme="newyear"] .from-primary-bg {
  --tw-gradient-from: #fee2e2 !important;
  --tw-gradient-to: rgba(254, 226, 226, 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

html[data-theme="newyear"] .to-white {
  --tw-gradient-to: var(--ny-card) !important;
}

html[data-theme="newyear"] .border-primary\/10 {
  border-color: var(--ny-line) !important;
}

html[data-theme="newyear"] .bg-red-50 {
  background-color: #fee2e2 !important;
}

html[data-theme="newyear"] .text-red-600 {
  color: var(--ny-red-700) !important;
}

/* 侧边栏：深红底 + 金色选中态 */
html[data-theme="newyear"] aside.bg-white {
  background-color: var(--ny-red-900) !important;
  background-image: linear-gradient(180deg, var(--ny-red-900), var(--ny-red-800)) !important;
  border-color: #b45309 !important;
}

html[data-theme="newyear"] aside .text-slate-900,
html[data-theme="newyear"] aside .text-slate-800,
html[data-theme="newyear"] aside .text-slate-700,
html[data-theme="newyear"] aside .text-slate-600 {
  color: #fff7ed !important;
}

html[data-theme="newyear"] aside .text-slate-400 {
  color: #fde68a !important;
}

html[data-theme="newyear"] aside button {
  color: #fde68a !important;
}

html[data-theme="newyear"] aside button:hover {
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
}

html[data-theme="newyear"] aside button.bg-slate-900,
html[data-theme="newyear"] aside .bg-slate-900 {
  background: linear-gradient(135deg, var(--ny-gold), var(--ny-gold-light)) !important;
  color: var(--ny-red-900) !important;
  box-shadow: 0 8px 18px -12px rgba(69, 10, 10, .8);
}

html[data-theme="newyear"] aside .text-rose-500 {
  color: #fecdd3 !important;
}

html[data-theme="newyear"] aside .border-slate-100 {
  border-color: rgba(245, 217, 139, .3) !important;
}

/* 表格 */
html[data-theme="newyear"] table thead {
  background: #fef3c7 !important;
}

html[data-theme="newyear"] table th {
  color: var(--ny-red-900) !important;
}

html[data-theme="newyear"] table td {
  color: var(--ny-ink);
}

html[data-theme="newyear"] table tbody tr {
  border-color: var(--ny-line) !important;
}

html[data-theme="newyear"] table tbody tr:hover {
  background: #fff7ed !important;
}

/* ---------- 页脚 ---------- */
html[data-theme="newyear"] footer {
  background-color: var(--ny-red-900) !important;
  background-image: linear-gradient(135deg, var(--ny-red-950), var(--ny-red-900) 60%, var(--ny-red-800)) !important;
  border-top: 2px solid var(--ny-gold) !important;
}

html[data-theme="newyear"] footer .footer-text,
html[data-theme="newyear"] footer .footer-content p {
  color: #fde68a !important;
}

html[data-theme="newyear"] footer .footer-links a {
  color: #f5d98b !important;
}

html[data-theme="newyear"] footer .footer-links a:hover {
  color: #fff !important;
}

/* ---------- 弹窗 / 提示 ---------- */
html[data-theme="newyear"] .modal-content,
html[data-theme="newyear"] .cm-modal {
  background-color: var(--ny-card) !important;
  border: 1px solid var(--ny-line) !important;
  box-shadow: var(--ny-shadow-lg) !important;
}

html[data-theme="newyear"] .modal-title {
  color: var(--ny-ink) !important;
}

html[data-theme="newyear"] .modal-overlay,
html[data-theme="newyear"] .cm-modal-mask {
  background: rgba(69, 10, 10, .55) !important;
}

html[data-theme="newyear"] .cm-modal-head {
  border-color: var(--ny-line) !important;
}

html[data-theme="newyear"] .badge-primary {
  background: var(--primary-bg) !important;
  color: var(--primary) !important;
}

/* ---------- 班级广场补充 ---------- */
html[data-theme="newyear"] .cm-tabs,
html[data-theme="newyear"] .cm-toolbar {
  background: var(--ny-card) !important;
  border-color: var(--ny-line) !important;
}

html[data-theme="newyear"] .cm-tab {
  color: var(--ny-muted) !important;
}

html[data-theme="newyear"] .cm-tab.active {
  background: linear-gradient(135deg, var(--ny-red-700), var(--ny-red-900)) !important;
  color: #fff7ed !important;
}

html[data-theme="newyear"] .cm-badge.pin {
  background: linear-gradient(135deg, var(--ny-red-700), var(--ny-red-900)) !important;
  color: #fff7ed !important;
}

html[data-theme="newyear"] .cm-badge:not(.pin) {
  background: #fef3c7 !important;
  color: var(--ny-red-800) !important;
  border-color: var(--ny-line) !important;
}

html[data-theme="newyear"] .cm-like.active {
  color: var(--ny-red-700) !important;
}

html[data-theme="newyear"] .cm-avatar {
  background: linear-gradient(135deg, var(--ny-gold), var(--ny-gold-light)) !important;
  color: var(--ny-red-900) !important;
}

html[data-theme="newyear"] .cm-author strong {
  color: var(--ny-ink) !important;
}

html[data-theme="newyear"] .cm-comment-content,
html[data-theme="newyear"] .cm-post-content,
html[data-theme="newyear"] .cm-plain-content,
html[data-theme="newyear"] .cm-html-content {
  color: #5c1a0b !important;
}

html[data-theme="newyear"] .cm-comment {
  border-color: var(--ny-line) !important;
}

html[data-theme="newyear"] .cm-reply-chip,
html[data-theme="newyear"] .cm-floor {
  background: #fef3c7 !important;
  color: var(--ny-red-800) !important;
}

html[data-theme="newyear"] .cm-comment-form {
  background: #fff7ed !important;
  border-color: var(--ny-line) !important;
}

html[data-theme="newyear"] .cm-class-item,
html[data-theme="newyear"] .cm-upload,
html[data-theme="newyear"] .cm-search input {
  background: #fffdf7 !important;
  border-color: var(--ny-line) !important;
}

html[data-theme="newyear"] .cm-class-item.checked,
html[data-theme="newyear"] .cm-class-item:hover {
  background: #fef3c7 !important;
  border-color: var(--ny-gold) !important;
}

html[data-theme="newyear"] .cm-pagination button {
  background: var(--ny-card) !important;
  border-color: var(--ny-line) !important;
  color: var(--ny-red-800) !important;
}

html[data-theme="newyear"] .cm-pagination button.active {
  background: linear-gradient(135deg, var(--ny-red-700), var(--ny-red-900)) !important;
  color: #fff7ed !important;
}

html[data-theme="newyear"] .cm-toast {
  background: var(--ny-red-900) !important;
  color: #fde68a !important;
  border: 1px solid var(--ny-gold) !important;
}

/* ---------- 首页生日横幅 / 版本提示 ---------- */
html[data-theme="newyear"] .birthday-banner {
  background: linear-gradient(135deg, var(--ny-red-700) 0%, var(--ny-red-800) 55%, var(--ny-red-700) 100%) !important;
  box-shadow: 0 8px 26px -12px rgba(127, 29, 29, .65) !important;
}

html[data-theme="newyear"] .version-alert {
  border-color: var(--ny-line) !important;
}

/* 移动端：缩小顶部留白，避免红金装饰挤压内容 */
@media (max-width: 640px) {
  html[data-theme="newyear"] body {
    box-shadow: inset 0 3px 0 var(--ny-gold);
  }

  html[data-theme="newyear"] .cm-header {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
