/* =========================================================
   上附学生社区 · SDFZ Student Hub
   非官方学生站点 · 视觉系统
   ========================================================= */

:root {
  --ink: #0d1b2a;
  --ink-2: #16324f;
  --ink-3: #22405f;
  --paper: #f7f4ed;
  --paper-2: #fffdf8;
  --card: #fffdf8;
  --red: #b3261e;
  --red-2: #8f1d17;
  --gold: #c9a24b;
  --gold-2: #e6cf94;
  --green: #1f4d3a;
  --muted: #5f6b76;
  --muted-2: #7c8791;
  --line: rgba(13, 27, 42, 0.12);
  --line-strong: rgba(13, 27, 42, 0.22);
  --header-bg: rgba(247, 244, 237, 0.86);
  --shadow: 0 18px 50px rgba(13, 27, 42, 0.1);
  --shadow-sm: 0 8px 24px rgba(13, 27, 42, 0.08);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1180px;
}

[data-theme="dark"] {
  --ink: #eef2f6;
  --ink-2: #c8d6e4;
  --ink-3: #9fb0c0;
  --paper: #0b131d;
  --paper-2: #0f1a27;
  --card: #101c2b;
  --red: #e3655b;
  --red-2: #ef837a;
  --gold: #d9b464;
  --gold-2: #f0dcaa;
  --green: #4f9a7c;
  --muted: #9fb0c0;
  --muted-2: #7f93a5;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(11, 19, 29, 0.86);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(201, 162, 75, 0.1), transparent 32rem),
    radial-gradient(circle at 92% 18%, rgba(179, 38, 30, 0.06), transparent 28rem);
  line-height: 1.7;
  font-size: 16px;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper-2);
  padding: 10px 16px;
  border-radius: 10px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: #0d1b2a;
  color: #e9edf2;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c7d2dd;
}

.topbar-note .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.16);
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e9edf2;
  border-bottom: 1px solid rgba(233, 237, 242, 0.35);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.topbar a:hover {
  color: var(--gold-2);
  border-color: var(--gold-2);
}

.topbar .ico {
  width: 13px;
  height: 13px;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 30px rgba(13, 27, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--red), var(--red-2));
  color: #fff8ec;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(179, 38, 30, 0.28);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 248, 236, 0.35);
  border-radius: 9px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand-text small {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  border-radius: 2px;
}

.nav a:hover {
  color: var(--red);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.nav a.active {
  color: var(--red);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  background: var(--paper-2);
  color: var(--red);
  border-color: var(--line-strong);
}

.icon-btn .ico {
  width: 19px;
  height: 19px;
}

.menu-btn {
  display: none;
}

/* ---------- 通用图标 ---------- */
.ico {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-sm {
  width: 16px;
  height: 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 74px 0 66px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 13px 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

.hero-badge .pin {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 77, 58, 0.14);
}

[data-theme="dark"] .hero-badge .pin {
  box-shadow: 0 0 0 4px rgba(79, 154, 124, 0.18);
}

.hero h1 {
  position: relative;
  isolation: isolate;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  line-height: 1.14;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hero h1 .accent {
  position: relative;
  z-index: 0;
  color: var(--red);
  white-space: nowrap;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 10px;
  background: linear-gradient(90deg, rgba(201, 162, 75, 0.5), rgba(201, 162, 75, 0.12));
  z-index: -1;
  border-radius: 2px;
}

.hero-lead {
  max-width: 34em;
  margin: 0 0 30px;
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .ico {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--red);
  color: #fff8ec;
  box-shadow: 0 12px 26px rgba(179, 38, 30, 0.24);
}

.btn-primary:hover {
  background: var(--red-2);
  box-shadow: 0 16px 32px rgba(179, 38, 30, 0.3);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-2);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink-3);
  background: var(--paper-2);
}

.btn-gold {
  background: var(--gold);
  color: #1a1408;
}

.btn-gold:hover {
  background: var(--gold-2);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta .ico {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

/* ---------- Hero 视觉 ---------- */
.hero-art {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.poster {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 0.82;
  padding: 30px 30px 26px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 12%, rgba(201, 162, 75, 0.4), transparent 34%),
    linear-gradient(155deg, #1b3a5c 0%, #10263f 46%, #0a1726 100%);
  color: #f4ead6;
  box-shadow: 0 40px 80px rgba(13, 27, 42, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: rotate(-3.5deg);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-art:hover .poster {
  transform: rotate(-1.2deg) translateY(-6px);
}

.poster::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(244, 234, 214, 0.2);
  border-radius: 16px;
  pointer-events: none;
}

.poster::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -120px;
  bottom: -140px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.35);
  box-shadow: 0 0 0 34px rgba(201, 162, 75, 0.05), 0 0 0 68px rgba(201, 162, 75, 0.03);
  pointer-events: none;
}

.poster-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 234, 214, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 234, 214, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.poster-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: rgba(244, 234, 214, 0.62);
  text-transform: uppercase;
}

.poster-main {
  position: relative;
  z-index: 1;
  margin-top: 54px;
}

.poster-kicker {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--gold-2);
}

.poster-main h2 {
  margin: 12px 0 6px;
  font-family: var(--serif);
  font-size: clamp(5.4rem, 10vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #f6ecd8;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.14);
}

.poster-main p {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: rgba(244, 234, 214, 0.78);
}

.poster-bottom {
  position: absolute;
  z-index: 1;
  left: 30px;
  right: 30px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: rgba(244, 234, 214, 0.58);
}

.poster-line {
  flex: 1;
  height: 1px;
  background: rgba(244, 234, 214, 0.25);
}

.poster-seal {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 54px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: #e08b83;
  font-family: var(--serif);
  font-size: 9px;
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-align: center;
  transform: rotate(9deg);
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border-radius: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  animation: floaty 7s ease-in-out infinite;
}

.float-card b {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.float-card small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}

.float-card .fc-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--red), var(--red-2));
  flex-shrink: 0;
}

.float-card .fc-num {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  color: var(--red);
  flex-shrink: 0;
}

.fc-1 {
  left: -6px;
  top: 62px;
  animation-delay: -1.4s;
}

.fc-2 {
  right: -10px;
  bottom: 74px;
  animation-delay: -3.6s;
}

.float-tag {
  position: absolute;
  z-index: 2;
  right: 2px;
  top: 20px;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--muted);
  padding: 12px 6px;
  border-left: 1px solid var(--line);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- 公告滚动条 ---------- */
.ticker {
  background: #0d1b2a;
  color: #dfe7ee;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: stretch;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 15px 20px 15px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  margin-right: 20px;
}

.ticker-viewport {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
}

.ticker-viewport:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 13px;
  color: #dfe7ee;
  transition: color 0.2s ease;
}

.ticker-track a:hover {
  color: var(--gold-2);
}

.ticker-track .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 区块 ---------- */
.section {
  padding: 86px 0;
}

.section.tight {
  padding: 64px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(201, 162, 75, 0.055) 40%, transparent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.section-head h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.24;
  letter-spacing: 0.02em;
}

.section-head p {
  max-width: 32em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--red);
  border-bottom: 1px solid rgba(179, 38, 30, 0.3);
  transition: gap 0.2s ease, border-color 0.2s ease;
}

.section-link:hover {
  gap: 12px;
  border-color: var(--red);
}

.section-link .ico {
  width: 15px;
  height: 15px;
}

/* ---------- 快捷入口 ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 20px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.quick-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 90px;
  height: 90px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.quick-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.quick-card:hover::after {
  transform: scale(1.35);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(179, 38, 30, 0.08);
  color: var(--red);
}

.quick-card:nth-child(2n) .quick-icon {
  background: rgba(201, 162, 75, 0.14);
  color: #8a6a1f;
}

.quick-card:nth-child(3n) .quick-icon {
  background: rgba(31, 77, 58, 0.1);
  color: var(--green);
}

[data-theme="dark"] .quick-card:nth-child(2n) .quick-icon {
  color: var(--gold);
}

.quick-card h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.03em;
}

.quick-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.quick-card .arrow {
  margin-top: auto;
  color: var(--muted-2);
  transition: transform 0.25s ease, color 0.25s ease;
}

.quick-card:hover .arrow {
  transform: translateX(4px);
  color: var(--red);
}

.quick-card .arrow .ico {
  width: 16px;
  height: 16px;
}

/* ---------- 新闻 ---------- */
.news-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 40px;
  align-items: start;
}

.feature-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #1b3a5c, #0a1726);
  color: #f4ead6;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-story .cover-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(201, 162, 75, 0.45), transparent 34%),
    linear-gradient(150deg, #1e4266 0%, #102841 55%, #081420 100%);
}

.feature-story .cover-art::before {
  content: "乒";
  position: absolute;
  right: -12px;
  bottom: -46px;
  font-family: var(--serif);
  font-size: 300px;
  line-height: 1;
  color: rgba(244, 234, 214, 0.07);
}

.feature-story .cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 234, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 234, 214, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to top, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 80%);
}

.feature-story .story-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 32px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(244, 234, 214, 0.1);
  border: 1px solid rgba(244, 234, 214, 0.2);
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.feature-story h3 {
  margin: 16px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.feature-story p {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(244, 234, 214, 0.68);
}

.story-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 234, 214, 0.16);
  font-size: 12px;
  color: rgba(244, 234, 214, 0.58);
}

.story-meta .read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-2);
  font-weight: 600;
}

.news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.news-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 19px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease, padding-left 0.25s ease;
}

.news-row:hover {
  background: rgba(201, 162, 75, 0.06);
  padding-left: 12px;
}

.news-date {
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
}

.news-date b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.news-row h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.news-row:hover h4 {
  color: var(--red);
}

.news-row .row-cat {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.news-row .row-arrow {
  color: var(--muted-2);
  transition: transform 0.25s ease, color 0.25s ease;
}

.news-row:hover .row-arrow {
  transform: translateX(4px);
  color: var(--red);
}

.news-row .row-arrow .ico {
  width: 18px;
  height: 18px;
}

/* ---------- 社团预览 ---------- */
.club-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.club-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  min-height: 230px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.club-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.club-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.club-card:hover::before {
  transform: scaleX(1);
}

.club-card .club-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
}

.club-card h3 {
  margin: 14px 0 8px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.04em;
}

.club-card p {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.club-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.club-tags span {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(13, 27, 42, 0.05);
  border: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}

[data-theme="dark"] .club-tags span {
  background: rgba(255, 255, 255, 0.04);
}

.club-card .club-no {
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
}

/* ---------- 树洞 / 话题 ---------- */
.topic-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
}

.topic-main {
  padding: 38px;
}

.topic-main .eyebrow {
  margin-bottom: 12px;
}

.topic-main h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.45;
}

.topic-main p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.topic-side {
  position: relative;
  padding: 38px;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 162, 75, 0.22), transparent 40%),
    linear-gradient(150deg, #16324f, #0a1726);
  color: #f4ead6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.topic-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 234, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 234, 214, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}

.topic-side blockquote {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.topic-side .quote-mark {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.6;
}

.topic-side .topic-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(244, 234, 214, 0.6);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 64px 56px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 10%, rgba(201, 162, 75, 0.28), transparent 36%),
    linear-gradient(145deg, #16324f, #0a1726);
  color: #f4ead6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 234, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 234, 214, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 80%);
}

.cta-text {
  position: relative;
  max-width: 40em;
}

.cta-text h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: 0.03em;
}

.cta-text p {
  margin: 0;
  color: rgba(244, 234, 214, 0.68);
  font-size: 14px;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.cta .btn-ghost {
  border-color: rgba(244, 234, 214, 0.3);
  color: #f4ead6;
}

.cta .btn-ghost:hover {
  background: rgba(244, 234, 214, 0.08);
  border-color: rgba(244, 234, 214, 0.6);
}

/* ---------- 内页头 ---------- */
.page-head {
  position: relative;
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-head::after {
  content: attr(data-en);
  position: absolute;
  right: -8px;
  bottom: -22px;
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
  white-space: nowrap;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb .sep {
  opacity: 0.5;
}

.page-head h1 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.page-head p {
  max-width: 46em;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 筛选 / 工具条 ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
}

[data-theme="dark"] .chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1408;
}

.search {
  position: relative;
  min-width: 240px;
}

.search .ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  font-size: 13.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.1);
}

.result-count {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--muted);
}

.empty-state {
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 新闻列表页 ---------- */
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.news-cover {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: linear-gradient(150deg, #1b3a5c, #0a1726);
}

.news-cover::before {
  content: attr(data-char);
  position: absolute;
  right: -6px;
  bottom: -34px;
  font-family: var(--serif);
  font-size: 150px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.09);
}

.news-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to top, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%);
}

.news-cover.red {
  background: linear-gradient(150deg, #9c231c, #4a0f0c);
}

.news-cover.green {
  background: linear-gradient(150deg, #24573f, #0c251a);
}

.news-cover.gold {
  background: linear-gradient(150deg, #6d4c1d, #2b1b06);
}

.news-cover.blue {
  background: linear-gradient(150deg, #24496f, #0a1726);
}

.news-cover .cover-tag {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 23, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #f4ead6;
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.news-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.news-body .news-kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 600;
}

.news-body h3 {
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.news-card:hover .news-body h3 {
  color: var(--red);
}

.news-body p {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body .news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.news-body .news-foot .src {
  color: var(--red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- 通知列表 ---------- */
.notice-list {
  border-top: 1px solid var(--line);
}

.notice-item {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s ease, padding-left 0.25s ease;
}

.notice-item:hover {
  background: rgba(201, 162, 75, 0.06);
  padding-left: 14px;
}

.notice-item time {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.notice-item h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
}

.notice-item .notice-src {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 社团页 ---------- */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.club-tile {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.club-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.club-tile .tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.club-tile .tile-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red);
}

.club-tile .tile-index {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--muted-2);
}

.club-tile h3 {
  margin: 14px 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.club-tile p {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.club-tile .tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.club-tile .tile-foot .more {
  color: var(--red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- 弹窗 ---------- */
dialog {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

dialog::backdrop {
  background: rgba(6, 14, 24, 0.6);
  backdrop-filter: blur(4px);
}

.dialog-head {
  position: relative;
  padding: 28px 28px 22px;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 162, 75, 0.28), transparent 40%),
    linear-gradient(150deg, #16324f, #0a1726);
  color: #f4ead6;
}

.dialog-head .tile-cat {
  color: var(--gold-2);
}

.dialog-head h3 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.04em;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(244, 234, 214, 0.3);
  border-radius: 9px;
  background: transparent;
  color: #f4ead6;
  cursor: pointer;
}

.dialog-close:hover {
  background: rgba(244, 234, 214, 0.1);
}

.dialog-body {
  padding: 26px 28px 30px;
}

.dialog-body .club-tags {
  margin: 2px 0 0;
}

.dialog-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.dialog-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.dialog-meta div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.dialog-meta small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 3px;
}

.dialog-meta b {
  font-size: 13px;
  font-weight: 600;
}

/* ---------- 学习页 ---------- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.subject-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.subject-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.subject-card .s-char {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--red);
}

.subject-card b {
  font-size: 13.5px;
  font-weight: 600;
}

.subject-card small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

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

.method-card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.method-card .m-no {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
}

.method-card h3 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-size: 18px;
}

.method-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.resource-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.resource-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.2s ease, background-color 0.2s ease;
}

.resource-row:hover {
  padding-left: 12px;
  background: rgba(201, 162, 75, 0.06);
}

.resource-row .r-name {
  display: flex;
  align-items: center;
  gap: 14px;
}

.resource-row .r-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.resource-row h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.resource-row .r-type {
  font-size: 11.5px;
  color: var(--muted);
}

.resource-row .r-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
}

.resource-row .r-link .ico {
  width: 14px;
  height: 14px;
}

details.faq {
  border-bottom: 1px solid var(--line);
}

details.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

details.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

details.faq[open] summary::after {
  transform: rotate(45deg);
}

details.faq p {
  margin: 0 4px 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ---------- 生活页 ---------- */
.life-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.info-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-card .info-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.info-card .info-head .quick-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.info-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.03em;
}

.info-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

.info-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-card li {
  position: relative;
  padding: 5px 0 5px 18px;
  font-size: 13px;
  color: var(--ink-2);
}

.info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.info-card .note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--muted-2);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.check-item:hover {
  border-color: var(--line-strong);
}

.check-item input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.check-item input:checked {
  background: var(--red);
  border-color: var(--red);
}

.check-item input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-item input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

/* ---------- 树洞 ---------- */
.treehole-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.compose {
  position: relative;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.compose h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 21px;
}

.compose .hint {
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.field label .count {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 13.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.1);
}

.compose .btn {
  width: 100%;
}

.form-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.6;
  text-align: center;
}

.mood-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mood-row label {
  cursor: pointer;
  margin: 0;
}

.mood-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mood-row span {
  display: inline-block;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.mood-row input:checked + span {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.wall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.wall-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
}

.wall-head .walls-count {
  font-size: 12px;
  color: var(--muted);
}

.wall {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wall-note {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(201, 162, 75, 0.1);
  border: 1px solid rgba(201, 162, 75, 0.3);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}

.wall-note strong {
  display: block;
  margin-bottom: 2px;
}

.note-card {
  position: relative;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  animation: noteIn 0.35s ease both;
}

.note-card .note-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 11.5px;
  color: var(--muted);
}

.note-card .note-top .who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink-2);
}

.note-card .avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--gold), #a8842f);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.note-card .note-mood {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(179, 38, 30, 0.08);
  color: var(--red);
  font-size: 10.5px;
}

.note-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.note-card .note-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
}

.note-card .del {
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: 11px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 5px;
}

.note-card .del:hover {
  color: var(--red);
  background: rgba(179, 38, 30, 0.06);
}

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

/* ---------- 关于页 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}

.prose h2 {
  margin: 34px 0 14px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.prose li {
  margin-bottom: 6px;
}

.callout {
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid rgba(179, 38, 30, 0.24);
  background: rgba(179, 38, 30, 0.06);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
}

.side-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.side-panel h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 18px;
}

.stat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.stat-list b {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--red);
  line-height: 1.2;
}

.stat-list small {
  font-size: 10.5px;
  color: var(--muted);
}

.meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}

.meta-list li:last-child {
  border-bottom: 0;
}

.meta-list span {
  color: var(--muted);
}

.meta-list b {
  font-weight: 600;
  color: var(--ink-2);
  text-align: right;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
  border-left: 1px solid var(--line-strong);
}

.timeline li {
  position: relative;
  padding: 0 0 20px 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--red);
}

.timeline b {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

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

/* ---------- 页脚 ---------- */
[data-theme="dark"] .topbar,
[data-theme="dark"] .ticker {
  background: #060d15;
}

.site-footer {
  margin-top: 20px;
  padding: 60px 0 30px;
  background: var(--ink);
  color: #c7d2dd;
}

[data-theme="dark"] .site-footer {
  background: #070e15;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 23px;
}

.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  color: #f4ead6;
  letter-spacing: 0.06em;
}

.footer-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #8fa1b2;
  margin-top: 3px;
}

.footer-about p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: #93a4b4;
  max-width: 30em;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #f4ead6;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 9px;
  font-size: 12.5px;
  color: #93a4b4;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-2);
}

.footer-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 11.5px;
  line-height: 1.75;
  color: #8fa1b2;
}

.footer-disclaimer .ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 1px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 11px;
  color: #6f8294;
}

.footer-bottom a {
  color: #8fa1b2;
}

.footer-bottom a:hover {
  color: var(--gold-2);
}

/* ---------- 动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .club-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    gap: 40px;
  }

  .subject-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1000px) {
  .nav {
    position: fixed;
    inset: 114px 16px auto 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 120;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a {
    padding: 12px 14px;
    font-size: 15px;
  }

  .nav a::after {
    display: none;
  }

  .nav a.active {
    background: rgba(179, 38, 30, 0.07);
  }

  .menu-btn {
    display: grid;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 460px;
    margin-top: 10px;
  }

  .poster {
    width: min(100%, 360px);
  }

  .news-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-story {
    min-height: 360px;
  }

  .news-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clubs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-card {
    grid-template-columns: 1fr;
  }

  .treehole-layout {
    grid-template-columns: 1fr;
  }

  .compose {
    position: static;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 42px 32px;
  }

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

  .info-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wrap,
  .ticker-inner {
    width: calc(100% - 32px);
  }

  .topbar-inner {
    justify-content: center;
  }

  .topbar-note {
    display: none;
  }

  .header-inner {
    min-height: 66px;
    gap: 12px;
  }

  .nav {
    inset: 104px 16px auto 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .brand-text strong {
    font-size: 16.5px;
  }

  .brand-text small {
    font-size: 8px;
  }

  .hero {
    padding: 48px 0 44px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-meta {
    gap: 8px 16px;
  }

  .hero-art {
    min-height: 400px;
  }

  .poster {
    padding: 24px;
  }

  .poster-main {
    margin-top: 38px;
  }

  .poster-main h2 {
    font-size: 5rem;
  }

  .poster-main p {
    font-size: 13px;
  }

  .poster-bottom {
    left: 24px;
    right: 24px;
    bottom: 20px;
  }

  .poster-seal {
    right: 24px;
    bottom: 46px;
    width: 46px;
    height: 46px;
  }

  .fc-1 {
    left: -4px;
    top: 40px;
  }

  .fc-2 {
    right: -4px;
    bottom: 54px;
  }

  .float-card {
    padding: 10px 12px;
  }

  .float-card small {
    display: none;
  }

  .float-tag {
    display: none;
  }

  .section {
    padding: 58px 0;
  }

  .section.tight {
    padding: 46px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .quick-card {
    padding: 18px 16px;
    gap: 14px;
  }

  .quick-card h3 {
    font-size: 14.5px;
  }

  .club-grid {
    grid-template-columns: 1fr;
  }

  .news-page-grid {
    grid-template-columns: 1fr;
  }

  .clubs-grid {
    grid-template-columns: 1fr;
  }

  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .news-row {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .news-row .row-arrow {
    display: none;
  }

  .news-date b {
    font-size: 19px;
  }

  .notice-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 4px;
  }

  .notice-item .notice-src {
    display: none;
  }

  .resource-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .resource-row .r-type {
    display: none;
  }

  .topic-main,
  .topic-side {
    padding: 26px;
  }

  .cta {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .stat-list {
    grid-template-columns: 1fr 1fr;
  }

  .dialog-meta {
    grid-template-columns: 1fr;
  }

  .page-head {
    padding: 44px 0 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 公众号 ---------- */
.wechat-account {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.wechat-avatar {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, #07c160, #0a8f47);
  color: #fff;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(7, 193, 96, 0.28);
}

.wechat-info {
  flex: 1;
  min-width: 220px;
}

.wechat-info h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.04em;
}

.wechat-info p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.wechat-info .wechat-id {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(7, 193, 96, 0.1);
  color: #0a8f47;
  font-size: 11px;
  letter-spacing: 0.06em;
}

[data-theme="dark"] .wechat-info .wechat-id {
  color: #5fd39a;
}

.wechat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

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

.wx-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.wx-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.wx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
}

.wx-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(7, 193, 96, 0.1);
  color: #0a8f47;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

[data-theme="dark"] .wx-tag {
  color: #5fd39a;
}

.wx-card h3 {
  margin: 14px 0 16px;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.wx-card:hover h3 {
  color: var(--red);
}

.wx-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.wx-go {
  color: var(--red);
  font-weight: 600;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list .c-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(179, 38, 30, 0.08);
  color: var(--red);
}

.contact-list small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.contact-list b,
.contact-list a {
  font-size: 14px;
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--red);
}

@media (max-width: 1080px) {
  .wx-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wx-grid {
    grid-template-columns: 1fr;
  }

  .wechat-account {
    padding: 22px;
  }

  .wechat-actions {
    width: 100%;
  }

  .wechat-actions .btn {
    flex: 1;
  }
}

.wx-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: -6px 0 18px;
}

.wx-year {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.wx-year select {
  height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6b76' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
}

.wx-year select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.1);
}

/* ---------- 每周菜谱 ---------- */
.prose h3 {
  margin: 26px 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.menu-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.menu-head h3 {
  margin: 10px 0 6px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.02em;
}

.menu-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

.menu-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(31, 77, 58, 0.12);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

[data-theme="dark"] .menu-badge {
  background: rgba(79, 154, 124, 0.16);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.menu-item {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.menu-item img {
  width: 100%;
  height: auto;
  display: block;
}

.menu-item span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.62);
  color: #fff;
  font-size: 10.5px;
}

.menu-recent {
  margin-top: 26px;
}

.menu-recent-title {
  font-family: var(--serif);
  font-size: 16px;
  margin: 0 0 10px;
}

.menu-recent-list {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
}

.menu-recent-list li {
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--muted);
  break-inside: avoid;
}

.menu-recent-list a:hover {
  color: var(--red);
}

@media (max-width: 1080px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-recent-list {
    columns: 1;
  }
}

/* ---------- 作息与考试 ---------- */
.routine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.routine-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.routine-card h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.03em;
}

.routine-card .note {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--muted-2);
}

.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}

.schedule li:last-child {
  border-bottom: 0;
}

.schedule b {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}

.schedule .brk,
.schedule .brk b {
  color: var(--muted);
}

.exam-panel {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.exam-panel h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.03em;
}

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

.exam-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.exam-grid small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.exam-grid b {
  font-family: var(--serif);
  font-size: 16px;
}

.exam-panel .note {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--muted-2);
}

@media (max-width: 900px) {
  .routine-grid {
    grid-template-columns: 1fr;
  }

  .exam-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 公众号合集添加 ---------- */
.album-add {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 24px;
}

.album-add-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.album-add h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 17px;
}

.album-add p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 42em;
}

.album-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.album-form input {
  height: 42px;
  min-width: 270px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 13px;
}

.album-form input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.1);
}

.album-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.album-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 11px;
  border-radius: 999px;
  background: rgba(7, 193, 96, 0.1);
  color: #0a8f47;
  font-size: 11.5px;
}

[data-theme="dark"] .album-chip {
  color: #5fd39a;
}

.album-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}

.album-empty {
  font-size: 11.5px;
  color: var(--muted-2);
}

.album-tip {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted-2);
  word-break: break-all;
}

@media (max-width: 640px) {
  .album-form {
    width: 100%;
  }

  .album-form input {
    flex: 1;
    min-width: 0;
  }
}
