/* ========================================
   星刻保研网 · 设计系统
   清华紫学术风
======================================== */

:root {
  /* 主色 */
  --purple: #660874;          /* 清华紫 */
  --purple-dark: #4a054f;     /* 深紫 */
  --purple-light: #a855b7;    /* 亮紫 */
  --purple-soft: #f5ecf7;     /* 浅紫底色 */
  --purple-border: #e8dcef;

  /* 中性色 */
  --ink: #1a1213;             /* 近黑 */
  --ink-2: #3a2a3f;           /* 次级文字 */
  --ink-3: #6b5a70;           /* 辅助文字 */
  --ink-4: #a898ab;           /* 更淡 */

  --cream: #faf7f5;           /* 米白背景 */
  --paper: #fffdfa;           /* 纸白 */
  --line: #ece5e7;            /* 分隔线 */

  --gold: #b8860b;            /* 烫金点缀 */
  --red: #c83c3c;             /* 紧急红 */
  --yellow: #d9a923;          /* 警告黄 */

  /* 阴影 */
  --shadow-s: 0 1px 3px rgba(102, 8, 116, 0.06);
  --shadow-m: 0 4px 20px rgba(102, 8, 116, 0.08);
  --shadow-l: 0 12px 40px rgba(102, 8, 116, 0.12);

  /* 字体 */
  --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'HarmonyOS Sans', 'Microsoft YaHei', sans-serif;

  /* 容器 */
  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ========================================
   导航栏
======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--purple);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 2px 8px rgba(102, 8, 116, 0.3);
}
.brand-mark::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid var(--cream);
  border-radius: 50%;
}
.brand-mark::after {
  content: '星';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--purple);
}

.brand-en {
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.2em;
  font-weight: 500;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  line-height: 1.2;
}

.nav {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.nav-item {
  padding: 10px 20px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 6px;
  transition: all 0.2s;
  position: relative;
}
.nav-item:hover { color: var(--purple); }
.nav-item.active { color: var(--purple); font-weight: 700; }
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--purple);
}

.btn-login {
  padding: 9px 22px;
  background: var(--purple);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}
.btn-login:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 8, 116, 0.3);
}

/* ========================================
   Hero 区
======================================== */

.hero {
  position: relative;
  padding: 100px 0 80px;
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  overflow: hidden;
}

.hero-decor {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-decor-l {
  background: var(--purple);
  top: -100px;
  left: -100px;
}
.hero-decor-r {
  background: var(--purple-light);
  bottom: -100px;
  right: -100px;
  opacity: 0.22;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--purple);
  font-weight: 600;
  padding: 6px 16px;
  background: white;
  border: 1px solid var(--purple-border);
  border-radius: 100px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-s);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero-title-main { color: var(--ink); }
.hero-title-accent {
  color: var(--purple);
  position: relative;
  display: inline-block;
}
.hero-title-accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 14px;
  background: linear-gradient(90deg, var(--purple-light), transparent);
  opacity: 0.25;
  z-index: -1;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-3);
  line-height: 1.8;
  margin-bottom: 44px;
}

.hero-search {
  display: flex;
  max-width: 640px;
  margin: 0 auto 52px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-m);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-search input {
  flex: 1;
  padding: 18px 24px;
  border: none;
  font-size: 16px;
  font-family: inherit;
  background: transparent;
  outline: none;
  color: var(--ink);
}
.hero-search input::placeholder { color: var(--ink-4); }
.hero-search button {
  padding: 0 36px;
  background: var(--purple);
  color: white;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.15em;
  transition: background 0.2s;
}
.hero-search button:hover { background: var(--purple-dark); }

/* 统计 */
.stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.stat {
  flex: 1;
  text-align: center;
  padding: 0 28px;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--line);
  flex-shrink: 0;
}

/* ========================================
   通用 Section
======================================== */

.section {
  padding: 80px 0;
}
.section-urgent { background: var(--paper); }
.section-filter { background: var(--cream); }
.section-schools { background: var(--paper); }

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

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.section-more {
  font-size: 14px;
  color: var(--purple);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.section-more:hover { border-bottom-color: var(--purple); }

/* ========================================
   即将截止卡片
======================================== */

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

.urgent-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
}
.urgent-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--purple);
  transition: width 0.2s;
}
.urgent-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-l);
  border-color: var(--purple-border);
}
.urgent-card:hover::before { width: 5px; }

.urgent-card.urgent-red::before { background: var(--red); }
.urgent-card.urgent-yellow::before { background: var(--yellow); }

.urgent-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.urgent-tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.urgent-days {
  text-align: right;
  line-height: 1;
}
.days-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--purple);
}
.urgent-red .days-num { color: var(--red); }
.urgent-yellow .days-num { color: var(--yellow); }
.days-unit {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
  letter-spacing: 0.15em;
}

.urgent-school {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--purple);
  letter-spacing: 0.03em;
}

.urgent-title {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.urgent-meta {
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

/* ========================================
   分类 Tiles
======================================== */

.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
  border-color: var(--purple-border);
}
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; z-index: 1; }

.tile-icon {
  width: 60px;
  height: 60px;
  background: var(--purple);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(102, 8, 116, 0.25);
}
.tile-summer .tile-icon { background: linear-gradient(135deg, #d86b3e, #c83c3c); box-shadow: 0 6px 16px rgba(200, 60, 60, 0.3); }
.tile-pre .tile-icon { background: linear-gradient(135deg, var(--purple), var(--purple-dark)); }
.tile-talk .tile-icon { background: linear-gradient(135deg, #2a7a82, #1a5a62); box-shadow: 0 6px 16px rgba(42, 122, 130, 0.3); }
.tile-list .tile-icon { background: linear-gradient(135deg, var(--gold), #8a6408); box-shadow: 0 6px 16px rgba(184, 134, 11, 0.3); }

.tile-body { flex: 1; }

.tile-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.tile-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 8px;
}

.tile-count {
  font-size: 12px;
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ========================================
   学校网格
======================================== */

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

.school-card {
  padding: 22px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  transition: all 0.2s;
}
.school-card:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
  transform: translateY(-2px);
}

.school-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.school-count {
  font-size: 12px;
  color: var(--purple);
  font-weight: 500;
}

/* ========================================
   底部
======================================== */

.site-footer {
  background: linear-gradient(180deg, var(--paper) 0%, #f3ecf2 100%);
  border-top: 1px solid var(--line);
  padding: 72px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  padding-bottom: 56px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-slogan {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.footer-desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.8;
  max-width: 480px;
}

.footer-qr {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}

.qr-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  width: 170px;
}
.qr-card img {
  width: 138px;
  height: 138px;
  border-radius: 6px;
  background: var(--purple-soft);
  margin: 0 auto 10px;
  object-fit: cover;
}

.qr-label {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.qr-sub {
  font-size: 11px;
  color: var(--ink-3);
}

.footer-copy {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 13px;
  color: var(--ink-4);
}
.footer-copy .container {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.footer-sep { color: var(--ink-4); }

/* ========================================
   登录弹窗
======================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.show { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 19, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s;
}

.modal-panel {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 48px 52px 44px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
  animation: slideUp 0.25s;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 24px;
  color: var(--ink-4);
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: var(--ink); background: var(--cream); }

.modal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.modal-desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.8;
  margin-bottom: 20px;
}

.modal-tip {
  font-size: 13px;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-qr img {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border-radius: 6px;
  background: var(--purple-soft);
  border: 1px solid var(--line);
}

.empty-hint {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--ink-3);
  font-size: 14px;
}

/* ========================================
   动画
======================================== */

@keyframes fadeIn { from {opacity: 0} to {opacity: 1} }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero 入场动画 */
.hero-eyebrow, .hero-title, .hero-sub, .hero-search, .stats {
  animation: riseIn 0.7s backwards;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero-title { animation-delay: 0.15s; }
.hero-sub { animation-delay: 0.25s; }
.hero-search { animation-delay: 0.35s; }
.stats { animation-delay: 0.45s; }

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

/* ========================================
   响应式
======================================== */

/* ========================================
   列表页 & 详情页 · 通用
======================================== */

.page-head {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  background: var(--purple-light);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.15;
}

.breadcrumb {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 16px;
  position: relative;
}
.breadcrumb a {
  color: var(--ink-3);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--purple); }
.crumb-sep {
  margin: 0 8px;
  color: var(--ink-4);
}

.page-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  position: relative;
}

.page-sub {
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}

/* 列表页布局 */
.list-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 80px;
  align-items: start;
}

.side {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.side::-webkit-scrollbar { width: 4px; }
.side::-webkit-scrollbar-thumb { background: var(--purple-border); border-radius: 2px; }

.side-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 18px;
}

.side-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.3em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--purple-border);
  margin-bottom: 18px;
}

.filter-group { margin-bottom: 18px; }
.filter-label {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill {
  padding: 5px 12px;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 0.15s;
  font-family: inherit;
}
.pill:hover { border-color: var(--purple); color: var(--purple); }
.pill-active {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}
.pill-active:hover { color: white; }

.filter-select {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink-2);
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.filter-select:focus { border-color: var(--purple); }

.btn-reset {
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--purple);
  background: transparent;
  border: 1px dashed var(--purple-border);
  border-radius: 6px;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-reset:hover {
  background: var(--purple-soft);
  border-style: solid;
}

.side-qr-item {
  text-align: center;
  margin-bottom: 16px;
}
.side-qr-item:last-child { margin-bottom: 0; }
.side-qr-item img {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1;
  border-radius: 6px;
  margin: 0 auto 6px;
  background: var(--purple-soft);
  object-fit: cover;
  border: 1px solid var(--line);
}
.side-qr-label {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.side-qr-sub {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}

.list-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.list-search {
  flex: 1;
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-s);
  transition: border-color 0.2s;
}
.list-search:focus-within { border-color: var(--purple); }
.list-search input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  color: var(--ink);
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--ink-3);
}

.list-count {
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}
.list-count strong {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--purple);
  font-weight: 700;
  padding: 0 3px;
}

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

.card {
  display: flex;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 26px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--purple);
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover {
  transform: translateX(2px);
  border-color: var(--purple-border);
  box-shadow: var(--shadow-m);
}
.card:hover::before { opacity: 1; }

.card-left {
  flex: 1;
  min-width: 0;
}
.card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.card-school {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.03em;
}
.school-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-right: 8px;
  vertical-align: middle;
  letter-spacing: 0;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  overflow: hidden;
}
.school-logo-img {
  background: #fff !important;
  border: 1px solid #e8e0f3;
}
.school-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  box-sizing: border-box;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.school-logo-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  overflow: hidden;
}
.school-logo-lg-img {
  background: #fff !important;
  border: 1px solid #e8e0f3;
}
.school-logo-lg-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.tag-level {
  font-size: 11px;
  padding: 2px 7px;
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 3px;
  font-weight: 600;
}
.tag-province {
  font-size: 11px;
  color: var(--ink-3);
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.card-dept {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 8px;
  font-style: italic;
}

.card-title {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-3);
}
.meta-tag {
  padding: 2px 8px;
  background: var(--cream);
  color: var(--ink-2);
  border-radius: 3px;
  font-weight: 600;
}
.meta-time { display: inline-flex; align-items: center; gap: 4px; }

.card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-left: 24px;
  border-left: 1px dashed var(--line);
  margin-left: 20px;
  min-width: 100px;
}

.status-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.status-active { background: #e8f5e8; color: #2a7a3a; }
.status-upcoming { background: #fff4e0; color: #9a6a0a; }
.status-ended { background: #f0e8ea; color: #8a6a6e; }

.card-days { text-align: right; }
.days-label {
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 2px;
  letter-spacing: 0.1em;
}
.days-value {
  font-family: var(--font-serif);
  line-height: 1;
}
.days-n {
  font-size: 32px;
  font-weight: 700;
  color: var(--purple);
}
.days-u {
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 2px;
}
.days-red .days-n { color: var(--red); }
.days-yellow .days-n { color: var(--yellow); }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pg-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-2);
  font-family: inherit;
  transition: all 0.15s;
}
.pg-btn:hover:not(:disabled):not(.active) {
  border-color: var(--purple);
  color: var(--purple);
}
.pg-btn.active {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}
.pg-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pg-ellipsis { color: var(--ink-4); padding: 0 4px; }

.list-loading, .list-empty, .detail-loading, .detail-empty {
  background: white;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 80px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}
.empty-ico {
  font-size: 48px;
  color: var(--purple-border);
  margin-bottom: 16px;
  font-family: var(--font-serif);
}
.empty-sub {
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 8px;
}

/* 详情页 */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 80px;
  align-items: start;
}

.detail-main {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 44px 56px;
  box-shadow: var(--shadow-s);
}

.detail-head {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tag-primary {
  background: var(--purple);
  color: white;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.detail-school-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.detail-school {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.05em;
}
.detail-dept {
  font-size: 15px;
  color: var(--ink-2);
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-3);
}

.detail-keybox {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--line);
}
.key-item {
  background: var(--paper);
  padding: 18px 20px;
}
.key-label {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}
.key-value {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.key-strong { color: var(--purple); }
.key-countdown {
  background: linear-gradient(135deg, var(--purple-soft), white);
  grid-column: 1 / -1;
  padding: 20px;
  text-align: center;
}
.key-countdown.days-red { background: linear-gradient(135deg, #fde8e8, white); }
.key-countdown.days-yellow { background: linear-gradient(135deg, #fff4e0, white); }
.count-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 800;
  color: var(--purple);
}
.key-countdown.days-red .count-num { color: var(--red); }
.key-countdown.days-yellow .count-num { color: var(--yellow); }
.count-unit {
  font-size: 14px;
  color: var(--ink-3);
  margin-left: 4px;
  letter-spacing: 0.15em;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--purple);
  color: white;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 8, 116, 0.35);
}
.btn-primary .cta-arrow { transition: transform 0.2s; }
.btn-primary:hover .cta-arrow { transform: translateX(4px); }
.detail-cta { margin-bottom: 28px; }

.detail-section {
  margin-top: 32px;
  position: relative;
  padding-left: 18px;
}
.section-indicator {
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 22px;
  background: var(--purple);
  border-radius: 2px;
}
.indicator-gold { background: var(--gold); }
.indicator-red { background: var(--red); }

.detail-h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.prose {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.9;
}
.prose p { margin-bottom: 12px; }
.prose p:last-child { margin-bottom: 0; }
.prose-highlight {
  background: linear-gradient(135deg, #fef7e8 0%, #fdfbf6 100%);
  border-left: 3px solid var(--gold);
  padding: 18px 24px;
  border-radius: 0 8px 8px 0;
}

.timeline {
  padding: 10px 0;
}
.timeline-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
}
.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-3);
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}
.step-line {
  position: absolute;
  left: 17px;
  top: 48px;
  bottom: -12px;
  width: 2px;
  background: var(--line);
  z-index: 1;
}
.step-info { padding-top: 6px; }
.step-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 2px;
}
.step-date { font-size: 13px; color: var(--ink-3); }

.step-past .step-dot {
  background: var(--ink-4);
  border-color: var(--ink-4);
  color: white;
}
.step-past .step-name { color: var(--ink-3); }
.step-current .step-dot {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 0 0 6px rgba(102, 8, 116, 0.1);
  animation: pulse 1.8s infinite;
}
.step-current .step-name { color: var(--purple); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(102, 8, 116, 0.1); }
  50% { box-shadow: 0 0 0 10px rgba(102, 8, 116, 0); }
}

.timeline-empty { color: var(--ink-3); font-size: 13px; padding: 20px 0; }

.detail-note {
  margin-top: 24px;
  padding: 14px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

.detail-disclaimer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-4);
  line-height: 1.7;
  font-style: italic;
}

.related-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  transition: all 0.15s;
}
.related-item:last-child { border-bottom: none; }
.related-item:hover .related-title { color: var(--purple); }
.related-title {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 6px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.related-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--ink-3);
}
.related-days { color: var(--purple); font-weight: 600; }
.related-empty { font-size: 12px; color: var(--ink-3); padding: 12px 0; text-align: center; }

/* 响应式 */
@media (max-width: 1024px) {
  .urgent-grid { grid-template-columns: repeat(2, 1fr); }
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
  .school-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-qr { justify-content: flex-start; }
  .list-layout, .detail-layout { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  .detail-keybox { grid-template-columns: repeat(2, 1fr); }
  .detail-main { padding: 32px 28px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  /* .nav { display: none; } 已废弃 — 见文末 mobile-nav 修复 */
  .hero { padding: 60px 0 50px; }
  .hero-sub br { display: none; }
  .hero-search { flex-direction: column; }
  .hero-search button { padding: 16px; }
  .stats { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .stat { flex: 1 1 45%; padding: 10px; }
  .stat-num { font-size: 36px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .urgent-grid { grid-template-columns: 1fr; }
  .category-tiles { grid-template-columns: 1fr; }
  .school-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-qr { flex-direction: column; align-items: center; }
  .page-title { font-size: 30px; }
  .card { flex-direction: column; padding: 18px 20px; }
  .card-right {
    padding-left: 0;
    margin-left: 0;
    border-left: none;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px dashed var(--line);
    flex-direction: row;
    align-items: center;
    min-width: 0;
    width: 100%;
    justify-content: space-between;
  }
  .detail-main { padding: 24px 18px; }
  .detail-title { font-size: 22px; }
  .detail-keybox { grid-template-columns: 1fr 1fr; }
  .list-head { flex-direction: column; align-items: stretch; gap: 10px; }
}

/* 二维码放大 */
.qr-card {
  width: 220px !important;
  padding: 18px !important;
}
.qr-card img {
  width: 185px !important;
  height: 185px !important;
  object-fit: contain !important;
  background: white !important;
}
.side-qr-item img {
  max-width: 200px !important;
  width: 100% !important;
  aspect-ratio: auto !important;
  height: auto !important;
  object-fit: contain !important;
  background: white !important;
}
.qr-label { font-size: 15px !important; margin-top: 8px !important; }
.qr-sub { font-size: 12px !important; }
.side-qr-label { font-size: 14px !important; }
.side-qr-sub { font-size: 12px !important; }
.footer-qr { gap: 32px !important; }

/* ========================================
   登录/注册/用户菜单 · 追加样式
======================================== */

/* ---------- 用户菜单 ---------- */
.user-menu {
  position: relative;
}
.user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.user-trigger:hover {
  border-color: var(--purple-border);
  box-shadow: var(--shadow-s);
}
.user-avatar {
  width: 28px;
  height: 28px;
  background: var(--purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
}
.user-name {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-caret {
  font-size: 10px;
  color: var(--ink-3);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(102, 8, 116, 0.15);
  padding: 6px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: all 0.15s;
  z-index: 99;
}
.user-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.user-dropdown-head {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.user-dropdown-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}
.user-dropdown-sub {
  font-size: 12px;
  color: var(--ink-3);
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 6px;
  transition: all 0.15s;
  cursor: pointer;
}
.user-dropdown-item:hover {
  background: var(--purple-soft);
  color: var(--purple);
}
.dd-icon {
  font-size: 14px;
  color: var(--purple);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.dd-count {
  margin-left: auto;
  font-size: 12px;
  padding: 2px 8px;
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 10px;
  font-weight: 600;
}
.user-dropdown-sep {
  height: 1px;
  background: var(--line);
  margin: 6px 8px;
}
.dd-logout { color: var(--red); }
.dd-logout:hover { background: #fef0f0; color: var(--red); }
.dd-logout .dd-icon { color: var(--red); }

/* ---------- 认证弹窗 ---------- */
.auth-panel {
  padding: 36px 40px 28px !important;
  max-width: 400px !important;
  text-align: left !important;
}

.auth-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.auth-brand-mark {
  width: 36px;
  height: 36px;
  background: var(--purple);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 2px 8px rgba(102, 8, 116, 0.3);
  flex-shrink: 0;
}
.auth-brand-mark::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid var(--cream);
  border-radius: 50%;
}
.auth-brand-mark::after {
  content: '星';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
}
.auth-brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--purple);
  letter-spacing: 0.05em;
}

.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.auth-tab:hover { color: var(--ink-2); }
.auth-tab.active {
  color: var(--purple);
  font-weight: 700;
  border-bottom-color: var(--purple);
}

.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
  animation: authFadeIn 0.2s;
}
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-field {
  margin-bottom: 14px;
}
.auth-field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.field-hint {
  font-size: 11px;
  color: var(--ink-4);
  font-weight: 400;
}
.auth-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fafafa;
  color: var(--ink);
  transition: all 0.15s;
  outline: none;
}
.auth-field input:focus {
  border-color: var(--purple);
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 8, 116, 0.08);
}

.auth-error {
  min-height: 20px;
  font-size: 13px;
  color: var(--red);
  margin: 4px 0 12px;
  line-height: 1.4;
}

.auth-submit {
  width: 100%;
  padding: 13px;
  background: var(--purple);
  color: white;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.auth-submit:hover:not(:disabled) {
  background: var(--purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 8, 116, 0.3);
}
.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.auth-submit-small {
  padding: 10px;
  font-size: 14px;
}

.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
}
.auth-switch a {
  color: var(--purple);
  font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

.auth-footer {
  text-align: center;
  font-size: 12px;
  color: var(--ink-4);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- 资料弹窗 ---------- */
.profile-section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.profile-divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

/* ---------- Toast ---------- */
.auth-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: white;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s;
}
.auth-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 响应式 */
@media (max-width: 640px) {
  .user-name { display: none; }
  .auth-panel { padding: 28px 24px 24px !important; }
}

/* 已截止状态(报名结束但活动还在) */
.status-closed {
  background: #fff4e6 !important;
  color: #d97706 !important;
  border-color: #fed7aa !important;
}

/* 已截止状态(报名结束但活动还在) */
.status-closed {
  background: #fff4e6 !important;
  color: #d97706 !important;
  border-color: #fed7aa !important;
}

/* 通知原文区块 */
.article-content {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
  padding: 8px 4px;
}
.article-content p {
  margin: 12px 0;
}
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.article-content h1, .article-content h2, .article-content h3, .article-content h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  margin: 20px 0 12px;
  font-weight: 700;
}
.article-content h1 { font-size: 20px; }
.article-content h2 { font-size: 18px; }
.article-content h3 { font-size: 16px; }
.article-content ul, .article-content ol {
  padding-left: 24px;
  margin: 12px 0;
}
.article-content li {
  margin: 6px 0;
}
.article-content a {
  color: var(--purple);
  text-decoration: underline;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}
.article-content td, .article-content th {
  border: 1px solid var(--line);
  padding: 8px 12px;
}
.article-content th {
  background: var(--purple-soft);
}
.article-content strong, .article-content b {
  color: var(--ink);
  font-weight: 700;
}

/* === 移动端 nav 修复 (2026-04-26): 横滚胶囊条 === */
@media (max-width: 640px) {
  .nav-wrap {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 4px;
  }
  .nav {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    order: 99;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 20px 8px;
    margin: 0 -20px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-item {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 18px;
    background: #f7f5fa;
    color: #5b3a8a;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
  }
  .nav-item:hover { color: #5b3a8a; }
  .nav-item.active { background: #5b3a8a; color: #fff; font-weight: 500; }
  .nav-item.active::after { display: none; }
  .nav-actions { margin-left: auto; }
  .btn-login { padding: 6px 14px; font-size: 13px; }
  .brand-en { display: none; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 26px; height: 26px; }
}

/* === 移动端 nav 修复 v2 (2026-04-26): 真正独立成行,跟登录行分开 === */
@media (max-width: 640px) {
  .site-header { padding: 0 !important; }
  .nav-wrap {
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0 !important;
    row-gap: 0 !important;
    padding: 0 !important;
    height: auto !important;
  }
  /* 第一行: 品牌 + 登录 */
  .brand {
    order: 1 !important;
    flex: 1 1 auto !important;
    padding: 14px 0 !important;
  }
  .nav-actions {
    order: 2 !important;
    padding: 14px 0 !important;
  }
  /* 第二行: nav 独占, 加视觉分隔 */
  .nav {
    flex-basis: 100% !important;
    width: calc(100% + 40px) !important;
    order: 99 !important;
    margin: 0 -20px !important;
    padding: 10px 20px !important;
    border-top: 1px solid #efeaf6 !important;
    background: #faf8fc !important;
  }
}

/* === 移动端经验卡片: 2 列 (2026-04-26) === */
@media (max-width: 640px) {
  .experience-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .experience-card {
    padding: 14px 12px !important;
    min-height: 0 !important;
    border-radius: 10px !important;
  }
  .exp-card-cover {
    width: calc(100% + 24px) !important;
    margin: -14px -12px 10px !important;
    height: 100px !important;
    border-radius: 10px 10px 0 0 !important;
  }
  .exp-card-tag {
    font-size: 10px !important;
    padding: 2px 7px !important;
    margin-bottom: 8px !important;
  }
  .exp-card-title {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
  }
  .exp-card-excerpt {
    font-size: 11px !important;
    line-height: 1.5 !important;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 8px !important;
  }
  .exp-card-meta {
    font-size: 10px !important;
    padding-top: 8px !important;
    gap: 4px !important;
  }
  .exp-card-avatar {
    width: 16px !important;
    height: 16px !important;
  }
  .exp-card-author {
    max-width: 50px !important;
  }
  .exp-card-date {
    display: none !important;
  }
}

/* === nav 横向溢出修复 (2026-05-02) — 7 项不换行 === */
.nav { flex-wrap: nowrap; gap: 4px !important; }
.nav-item { white-space: nowrap; padding: 8px 12px !important; font-size: 15px !important; }
@media (max-width: 1100px) {
  .nav-item { padding: 6px 8px !important; font-size: 13px !important; }
}
