/* ========== 1. 变量 & 主题 ========== */
:root {
  --primary: #2563eb;
  --primary-soft: #dbeafe;
  --primary-deep: #1e40af;
  --bg: #f7f8fa;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #ca8a04;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .04);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 60px;
}
/* 主题色后备：若 JS 未执行也能显示蓝色主题 */
[data-theme="red"]    { --primary:#dc2626; --primary-soft:#fee2e2; --primary-deep:#991b1b; }
[data-theme="yellow"] { --primary:#ca8a04; --primary-soft:#fef9c3; --primary-deep:#854d0e; }
[data-theme="blue"]   { --primary:#2563eb; --primary-soft:#dbeafe; --primary-deep:#1e40af; }
[data-theme="green"]  { --primary:#16a34a; --primary-soft:#dcfce7; --primary-deep:#166534; }
[data-theme="orange"] { --primary:#ea580c; --primary-soft:#ffedd5; --primary-deep:#9a3412; }
[data-theme="pink"]   { --primary:#db2777; --primary-soft:#fce7f3; --primary-deep:#9d174d; }
[data-theme="purple"] { --primary:#9333ea; --primary-soft:#f3e8ff; --primary-deep:#6b21a8; }
/* ========== 2. 基础重置 ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color .25s, color .25s;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--text-muted); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 8px 16px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }
/* ========== 3. Header / 导航 ========== */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
  transition: background-color .25s;
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); font-size: 17px; }
.logo__icon { font-size: 22px; }
.logo__text { white-space: nowrap; }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 500;
  transition: background-color .2s, color .2s;
  min-height: 40px; display: inline-flex; align-items: center;
}
.nav-link:hover { background: var(--primary-soft); color: var(--primary-deep); }
.nav-link.is-active { background: var(--primary); color: #fff; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-icon {
  width: 40px; height: 40px; border: 1px solid var(--border);
  background: var(--card-bg); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; transition: transform .2s, border-color .2s;
}
.btn-icon:hover { border-color: var(--primary); transform: rotate(15deg); }
.btn-icon.is-open { border-color: var(--primary); background: var(--primary-soft); }
.theme-wrap { position: relative; }
.theme-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px;
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  width: 220px; z-index: 200;
}
.theme-panel[hidden] { display: none; }
.theme-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--dot, #999); border: 2px solid transparent;
  transition: transform .2s, border-color .2s;
  position: relative;
}
.theme-dot:hover { transform: scale(1.1); }
.theme-dot.is-active { border-color: var(--text); }
.theme-dot.is-active::after {
  content: '✓'; position: absolute; inset: 0; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.user-status {
  padding: 8px 14px; border-radius: 20px;
  background: var(--primary-soft); color: var(--primary-deep);
  font-weight: 600; font-size: 14px; min-height: 40px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: background-color .2s;
}
.user-status:hover { background: var(--primary); color: #fff; }
.badge-ok { color: var(--success); font-weight: 700; }
/* 汉堡菜单 */
.hamburger {
  display: none; width: 40px; height: 40px;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* ========== 4. Footer ========== */
.site-footer {
  margin-top: auto;
  background: var(--card-bg); border-top: 1px solid var(--border);
  padding: 24px 0; font-size: 13px; color: var(--text-muted);
  text-align: center;
}
.footer-inner p { margin: 4px 0; }
/* ========== 5. 通用组件 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
  min-height: 40px; transition: all .2s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.btn--sm { padding: 6px 12px; font-size: 13px; min-height: 32px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  background: var(--primary-soft); color: var(--primary-deep);
}
.tag--danger { background: #fee2e2; color: #991b1b; }
.tag--success { background: #dcfce7; color: #166534; }
.tag--warning { background: #fef9c3; color: #854d0e; }
.tag--gray { background: #f3f4f6; color: #4b5563; }
/* Toast */
#global-toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px);
  background: rgba(17,24,39,.94); color: #fff;
  padding: 10px 20px; border-radius: 24px;
  font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 9999;
  max-width: 80vw; text-align: center;
}
#global-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
#global-toast.toast--error { background: rgba(185,28,28,.95); }
#global-toast.toast--success { background: rgba(21,128,61,.95); }
/* 空态 / 加载中 */
.state { text-align: center; padding: 40px 16px; color: var(--text-muted); }
.state__icon { font-size: 40px; margin-bottom: 8px; }
.state__text { font-size: 14px; }
.state--error { color: var(--danger); }
/* ========== 6. 首页 ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff; padding: 32px 24px; border-radius: var(--radius);
  margin: 20px 0; text-align: center;
  transition: background .3s;
}
.hero__title { font-size: 26px; margin-bottom: 6px; }
.hero__subtitle { font-size: 14px; opacity: .9; margin-bottom: 18px; }
.search { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.search__input {
  flex: 1; padding: 12px 16px; border: none; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.95); color: var(--text); font-size: 14px;
  min-height: 44px;
}
.quick-links { display: flex; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.quick-link {
  background: rgba(255,255,255,.18); color: #fff;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  backdrop-filter: blur(4px);
}
.quick-link:hover { background: rgba(255,255,255,.3); }
.section { margin: 28px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section__title { font-size: 18px; display: flex; align-items: center; gap: 6px; }
.section__title::before { content: ''; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }
.section__more { font-size: 13px; color: var(--text-muted); }
.section__more:hover { color: var(--primary); }
.carousel-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
#carouselCanvas { display: block; width: 100%; height: 220px; cursor: grab; }
#carouselCanvas:active { cursor: grabbing; }
.carousel-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; padding: 0;
  transition: background-color .2s, width .2s; cursor: pointer;
}
.carousel-dot.is-active { background: #fff; width: 24px; border-radius: 5px; }
.course-list, .notice-list { display: flex; flex-direction: column; gap: 10px; }
.course-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--card-bg); border: 1px solid var(--border);
}
.course-item.is-active { border-color: var(--primary); background: var(--primary-soft); }
.course-item__time { font-weight: 700; color: var(--primary); font-size: 13px; min-width: 100px; }
.course-item__name { font-weight: 600; flex: 1; }
.course-item__meta { font-size: 12px; color: var(--text-muted); }
.course-item__state { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--border); }
.course-item.is-active .course-item__state { background: var(--primary); color: #fff; }
.notice-item {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--card-bg); border: 1px solid var(--border);
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.notice-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.notice-item__title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-item__date { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
/* ========== 7. 列表页 ========== */
.tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 8px 0; margin: 16px 0;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card-bg);
  font-size: 14px; font-weight: 600; min-height: 40px;
  transition: all .2s;
}
.tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.list-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.list-toolbar .search { flex: 1; min-width: 200px; margin: 0; }
.list-toolbar .search__input { border: 1px solid var(--border); background: var(--card-bg); }
.result-count { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.item-card { display: flex; flex-direction: column; gap: 8px; position: relative; }
.item-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.item-card__title { font-weight: 700; font-size: 15px; flex: 1; line-height: 1.4; }
.item-card__price { color: var(--danger); font-weight: 700; font-size: 16px; }
.item-card__desc {
  color: var(--text-muted); font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-card__meta { font-size: 12px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.item-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); }
.item-card__publisher { font-size: 12px; color: var(--text-muted); }
.stars { color: #f59e0b; letter-spacing: 1px; }
/* 弹窗 */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: 16px; opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__panel {
  background: var(--card-bg); border-radius: var(--radius);
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  padding: 22px; transform: translateY(20px); transition: transform .25s;
}
.modal.is-open .modal__panel { transform: translateY(0); }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal__title { font-size: 17px; }
.modal__close {
  width: 32px; height: 32px; border: none; background: none;
  font-size: 22px; color: var(--text-muted); line-height: 1;
}
/* 表单 */
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-field .required { color: var(--danger); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); font-size: 14px; min-height: 42px;
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-field.is-error input,
.form-field.is-error select,
.form-field.is-error textarea { border-color: var(--danger); }
.form-field.is-ok input,
.form-field.is-ok select,
.form-field.is-ok textarea { border-color: var(--success); }
.form-error { color: var(--danger); font-size: 12px; margin-top: 4px; min-height: 16px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  width: 42px; height: 24px; border-radius: 999px;
  background: var(--border); position: relative; transition: background-color .2s;
}
.switch__track::after {
  content: ''; position: absolute; left: 2px; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .2s; box-shadow: var(--shadow-sm);
}
.switch input:checked + .switch__track { background: var(--primary); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.star-picker { display: flex; gap: 4px; font-size: 26px; line-height: 1; }
.star-picker button {
  background: none; border: none; padding: 2px 4px;
  color: var(--border); transition: color .15s, transform .15s;
}
.star-picker button.is-on { color: #f59e0b; }
.star-picker button:hover { transform: scale(1.15); }
/* ========== 8. explore 页 ========== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.filter-chip {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card-bg);
  font-size: 13px; min-height: 34px;
}
.filter-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.club-card { display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.club-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.club-card__name { font-weight: 700; font-size: 15px; }
.club-card__intro { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.club-card__foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: auto; padding-top: 8px; }
.job-item {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.job-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.job-item__main { flex: 1; min-width: 0; }
.job-item__title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.job-item__meta { font-size: 12px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 10px; }
.job-item__salary { color: var(--danger); font-weight: 700; font-size: 14px; text-align: right; flex-shrink: 0; }
/* ========== 9. detail 页 ========== */
.detail-card { padding: 22px; margin: 20px 0; }
.detail-title { font-size: 22px; margin-bottom: 10px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.detail-desc { font-size: 15px; line-height: 1.7; margin-bottom: 16px; white-space: pre-wrap; word-break: break-word; }
.img-lazy {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.img-lazy img { width: 100%; height: 100%; object-fit: cover; }
.img-lazy.is-loaded { animation: none; background: none; }
.img-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; background: var(--border);
  color: var(--text-muted); font-size: 13px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.publisher-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--primary-soft);
}
.publisher-box__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.publisher-box__name { font-weight: 600; display: flex; align-items: center; gap: 4px; }
.publisher-box__sub { font-size: 12px; color: var(--text-muted); }
/* 聊天面板 */
.chat-panel {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); margin: 20px 0;
  display: flex; flex-direction: column; max-height: 520px;
}
.chat-panel__head { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 700; }
.chat-list { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; min-height: 120px; }
.msg { max-width: 75%; display: flex; flex-direction: column; gap: 3px; }
.msg__bubble {
  padding: 8px 12px; border-radius: 14px; font-size: 14px;
  line-height: 1.5; word-break: break-word; white-space: pre-wrap;
}
.msg__time { font-size: 11px; color: var(--text-muted); padding: 0 4px; }
.msg--me { align-self: flex-end; align-items: flex-end; }
.msg--me .msg__bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg--other { align-self: flex-start; }
.msg--other .msg__bubble { background: var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.chat-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.chat-input input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); min-height: 42px;
}
.chat-input input:focus { border-color: var(--primary); outline: none; }
/* ========== 10. auth 页 ========== */
.auth-wrap { max-width: 460px; margin: 30px auto; }
.auth-card { padding: 26px; }
.auth-title { font-size: 20px; margin-bottom: 6px; }
.auth-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.privacy-note {
  font-size: 12px; color: var(--text-muted);
  background: var(--primary-soft); padding: 10px 12px;
  border-radius: var(--radius-sm); margin-top: 16px; line-height: 1.6;
}
.authed-box { display: flex; flex-direction: column; gap: 10px; }
.authed-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.authed-row__label { color: var(--text-muted); font-size: 13px; }
.authed-row__val { font-weight: 600; }
/* ========== 11. 响应式 ========== */
@media (max-width: 767px) {
  .hamburger { display: flex; margin-left: auto; order: 2; }
  .header-tools { margin-left: 0; order: 3; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--card-bg); border-bottom: 1px solid var(--border);
    padding: 8px 12px; margin: 0;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-link { border-radius: var(--radius-sm); }
  .logo__text { display: none; }
  .theme-panel { width: 180px; grid-template-columns: repeat(3, 1fr); }
  #carouselCanvas { height: 180px; }
  .hero { padding: 24px 16px; }
  .hero__title { font-size: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .item-card__title { font-size: 14px; }
  .detail-title { font-size: 19px; }
  .modal__panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ========== 12. 校园墙热度榜 / 点赞 ========== */
.wall-rank { padding: 14px 16px; }
.wall-rank__title { font-size: 16px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.rank-list { display: flex; flex-direction: column; gap: 4px; }
.rank-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background-color .15s;
}
.rank-item:hover { background: var(--primary-soft); }
.rank-item__no {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--border);
}
.rank-item__no.is-top { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.rank-item__text { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item__hot { font-size: 13px; font-weight: 700; color: var(--danger); flex-shrink: 0; }
/* ========== 13. 报名 ========== */
.signup-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--primary-soft); border: 1px dashed var(--primary);
  margin-top: 12px;
}
.signup-count { font-size: 13px; color: var(--primary-deep); font-weight: 600; }
.signup-count b { font-size: 16px; }
.signup-box .btn:disabled { opacity: .55; }
/* ========== 14. 评课聚合 ========== */
.review-group { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.review-group:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.review-group__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.review-group__course { font-weight: 700; font-size: 15px; }
.review-group__teacher { font-size: 12px; margin-top: 2px; }
.review-group__score { text-align: right; flex-shrink: 0; }
.review-group__avg { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.review-group__stars { font-size: 15px; display: block; margin: 2px 0; }
/* 留言板内昵称 */
.msg__name { font-size: 12px; color: var(--primary-deep); font-weight: 600; margin-bottom: 2px; }
/* 移动端适配 */
@media (max-width: 767px) {
  .rank-item__text { font-size: 12px; }
  .review-group__avg { font-size: 22px; }
  .signup-box { flex-direction: column; align-items: stretch; }
}

/* ========== 12. 链接样式按钮（auth 页切换用） ========== */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--primary-deep); }

