/* ============================================
   首页旗舰级样式 v4.0 — 修复版
   薛老师网校 xuelaoshi.cn
   设计理念：星河璀璨 · 学海无涯
   ============================================ */

/* ===== Hero 外层：取消负边距，改用正常间距 ===== */
.hero-banner {
  border-radius: 20px;
  padding: 44px 24px 38px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg,
    #0a0e27 0%, #131b41 12%, #1a237e 24%, #283593 36%,
    #4a148c 50%, #880e4f 64%, #bf360c 78%, #e65100 100%
  );
  background-size: 300% 300%;
  animation: heroGalaxy 16s ease-in-out infinite;
  box-shadow:
    0 25px 80px rgba(26,35,126,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 120px rgba(74,20,140,0.2);
  /* 关键：所有子元素白色文字 */
  color: #fff;
}

@keyframes heroGalaxy {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 0%; }
  50%  { background-position: 100% 100%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* Hero 光球装饰 */
.hero-banner::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(139,92,246,0.1) 30%, transparent 70%);
  border-radius: 50%;
  animation: heroOrbFloat1 10s ease-in-out infinite;
  filter: blur(3px); pointer-events: none; z-index: 0;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -35%; left: -18%;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(233,69,96,0.12) 0%, rgba(245,166,35,0.08) 35%, transparent 70%);
  border-radius: 50%;
  animation: heroOrbFloat2 8s ease-in-out infinite 1s;
  filter: blur(3px); pointer-events: none; z-index: 0;
}
@keyframes heroOrbFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  30%     { transform: translate(-40px,25px) scale(1.15); }
  60%     { transform: translate(15px,-20px) scale(0.9); }
}
@keyframes heroOrbFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(30px,-30px) scale(1.2); }
  80%     { transform: translate(-20px,18px) scale(0.85); }
}

/* Hero 粒子 Canvas */
.hero-particles {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}

/* Hero 星空点阵 */
.hero-dots {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.22;
  background-image:
    radial-gradient(2px 2px at 15% 25%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 45% 10%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 75% 60%, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 85% 20%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.45), transparent),
    radial-gradient(2px 2px at 60% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 10% 45%, rgba(255,255,255,0.4), transparent);
  background-size: 200px 200px;
  animation: starsDrift 30s linear infinite;
}
@keyframes starsDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}

/* ----- Hero 内容（z-index > 粒子）----- */
.hero-subtitle,
.hero-title,
.hero-desc,
.hero-stats {
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 12px; font-weight: 600;
  opacity: 0.92; margin-bottom: 8px;
  letter-spacing: 3px; text-transform: uppercase;
  display: inline-block; padding: 5px 16px;
  background: rgba(255,255,255,0.12);
  border-radius: 24px; backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.hero-title {
  font-size: 30px; font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.25;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
  letter-spacing: -0.5px;
  color: #fff;
}

.hero-desc {
  font-size: 13px; opacity: 0.85;
  margin-bottom: 24px; line-height: 1.8;
  max-width: 480px; color: rgba(255,255,255,0.9);
}

/* Hero 统计栏（毛玻璃） */
.hero-stats {
  display: flex; gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 16px; backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-stat {
  flex: 1; text-align: center; position: relative;
}
.hero-stat + .hero-stat::before {
  content: ''; position: absolute; left: -8px; top: 10%; height: 80%;
  width: 1px; background: rgba(255,255,255,0.18);
}
.hero-stat-num {
  font-size: 26px; font-weight: 900; color: #fff;
  letter-spacing: -1px; line-height: 1.1;
}
.hero-stat-label {
  font-size: 11px; opacity: 0.7; margin-top: 5px;
  font-weight: 500; color: rgba(255,255,255,0.8);
}

/* =============================================
   倒计时 → 超强旗舰版（实时滴答+进度+阶段判定）
   ============================================= */
.countdown-hero {
  position: relative;
  border-radius: 20px;
  padding: 28px 22px 20px;
  margin-bottom: 20px;
  background: linear-gradient(160deg, #0c0a2e 0%, #1a1045 20%, #1e1a5e 40%, #2d1050 60%, #3d0a3a 80%, #1a0530 100%);
  background-size: 200% 200%;
  animation: cdBgShift 10s ease-in-out infinite;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(124,58,237,0.25),
    0 0 100px rgba(239,68,68,0.12),
    inset 0 1px 0 rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  text-align: center;
}
@keyframes cdBgShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* 顶部光晕 */
.cd-glow {
  position: absolute; top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 260px; height: 120px;
  background: radial-gradient(ellipse, rgba(239,68,68,0.35) 0%, rgba(249,115,22,0.15) 40%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 0;
  animation: cdGlowPulse 3s ease-in-out infinite;
}
@keyframes cdGlowPulse {
  0%,100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%     { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

/* 粒子点阵装饰 */
.countdown-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.12;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 55% 15%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 70% 75%, rgba(255,255,255,0.5), transparent),
    radial-gradient(2px 2px at 88% 35%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 95% 70%, rgba(255,255,255,0.45), transparent);
  background-size: 180px 180px;
  animation: cdStarsDrift 25s linear infinite;
}
@keyframes cdStarsDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 180px 180px; }
}

/* 标题行 */
.cd-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.cd-header-left {
  display: flex; align-items: center; gap: 6px;
}
.cd-fire {
  font-size: 22px;
  animation: cdFireBounce 1.5s ease-in-out infinite;
}
@keyframes cdFireBounce {
  0%,100% { transform: scale(1) rotate(0deg); }
  25%     { transform: scale(1.2) rotate(-5deg); }
  75%     { transform: scale(1.15) rotate(5deg); }
}
.cd-title {
  font-size: 15px; font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 1px;
}

/* 阶段徽章 */
.cd-badge {
  font-size: 11px; font-weight: 800;
  padding: 4px 14px; border-radius: 20px;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.5s ease;
  position: relative; z-index: 2;
}
.badge-calm   { background: rgba(16,185,129,0.25); color: #6ee7b7; }
.badge-build  { background: rgba(59,130,246,0.25); color: #93c5fd; }
.badge-speed  { background: rgba(249,115,22,0.25); color: #fdba74; }
.badge-rush   { background: rgba(239,68,68,0.25); color: #fca5a5; }
.badge-urgent { background: rgba(220,38,38,0.3); color: #fecaca; animation: badgePulse 1s ease-in-out infinite; }
.badge-crisis { background: rgba(185,28,28,0.35); color: #fecaca; animation: badgePulse 0.6s ease-in-out infinite; }
.badge-final  { background: rgba(234,179,8,0.35); color: #fde68a; animation: badgePulse 0.5s ease-in-out infinite; }
@keyframes badgePulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 rgba(239,68,68,0); }
  50%     { transform: scale(1.08); box-shadow: 0 0 20px rgba(239,68,68,0.4); }
}

/* 主数字区 */
.cd-digits {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 2px; margin-bottom: 18px;
  flex-wrap: wrap;
}
.cd-digit-block {
  display: flex; flex-direction: column; align-items: center;
  min-width: 56px;
}
.cd-digit-num {
  font-size: 38px; font-weight: 900;
  line-height: 1; letter-spacing: -2px;
  background: linear-gradient(180deg, #fff 0%, #e0d4ff 40%, #fbbf24 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 10px rgba(255,255,255,0.25));
  font-variant-numeric: tabular-nums;
  transition: all 0.3s ease;
}
.cd-digit-label {
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-top: 2px; letter-spacing: 2px; text-transform: uppercase;
}
.cd-digit-sep {
  font-size: 32px; font-weight: 300;
  color: rgba(255,255,255,0.35);
  margin: 0 2px; padding-bottom: 18px;
  animation: cdSepBlink 2s step-end infinite;
}
@keyframes cdSepBlink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.25; }
}

/* 进度条区域 */
.cd-progress-wrap {
  position: relative; z-index: 2;
  margin-bottom: 18px;
}
.cd-progress-bar {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.1);
  overflow: hidden; margin-bottom: 8px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}
.cd-progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #f59e0b, #f97316, #ef4444, #dc2626);
  background-size: 200% 100%;
  animation: cdProgressShimmer 3s ease-in-out infinite;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 14px rgba(239,68,68,0.5);
  position: relative;
}
.cd-progress-fill::after {
  content: '';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.6), 0 0 20px rgba(239,68,68,0.5);
}
@keyframes cdProgressShimmer {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.cd-progress-info {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,0.6);
  padding: 0 2px;
}
.cd-progress-info strong {
  color: #fbbf24; font-size: 13px;
}
#cdMotivation {
  color: rgba(255,255,255,0.75);
  font-style: italic;
  animation: cdMotFade 4s ease-in-out infinite;
}
@keyframes cdMotFade {
  0%,100% { opacity: 0.6; }
  50%     { opacity: 1; }
}

/* 底部快捷按钮 */
.cd-actions {
  position: relative; z-index: 2;
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap;
}
.cd-action-btn {
  flex: 1; min-width: 80px; max-width: 140px;
  padding: 10px 14px; border-radius: 14px;
  font-size: 12px; font-weight: 700;
  text-decoration: none; text-align: center;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.cd-action-gold {
  background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(217,119,6,0.2));
}
.cd-action-amber {
  background: linear-gradient(135deg, rgba(249,115,22,0.3), rgba(234,88,12,0.2));
}
.cd-action-fire {
  background: linear-gradient(135deg, rgba(239,68,68,0.3), rgba(220,38,38,0.2));
}
.cd-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.25);
}
.cd-action-btn:active {
  transform: scale(0.94);
  transition: transform 0.1s;
}

/* =============================================
   励志语 — 金色卷轴
   ============================================= */
.daily-quote-card {
  background: linear-gradient(135deg, #fffdf0 0%, #fff7e6 30%, #fff1d6 60%, #fffbeb 100%);
  border: 1.5px solid #fde68a;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(217,119,6,0.06);
}
.daily-quote-card::before {
  content: '\275D'; position: absolute;
  top: -12px; right: 16px;
  font-size: 90px; color: rgba(217,119,6,0.04);
  line-height: 1; pointer-events: none; font-family: serif;
}
.daily-quote-card::after {
  content: ''; position: absolute;
  left: 0; top: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, #f59e0b, #d97706, #b45309);
  border-radius: 4px 0 0 4px;
}
.daily-quote-icon {
  font-size: 30px; flex-shrink: 0; line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(217,119,6,0.2));
  animation: iconFloat 3s ease-in-out infinite;
}
@keyframes iconFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}
.daily-quote-text {
  font-size: 15px; font-weight: 600;
  color: #78350f; line-height: 1.8;
  position: relative; z-index: 1;
}
.daily-quote-author {
  font-size: 12px; color: #92400e;
  text-align: right; margin-top: 10px; font-style: italic;
  position: relative; z-index: 1;
}

/* =============================================
   公告栏
   ============================================= */
.bulletin-board {
  border-radius: 16px; margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border: 1.5px solid #dbeafe; overflow: hidden;
  background: #fff;
}
.bulletin-header {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  padding: 14px 18px;
  border-bottom: 1.5px solid #dbeafe;
  display: flex; align-items: center; justify-content: space-between;
}
.bulletin-title { font-size: 14px; color: #1e40af; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.bulletin-header-actions { display: flex; align-items: center; gap: 10px; }
.bulletin-count { font-size: 11px; color: #64748b; }
.bulletin-close-btn {
  width: 28px; height: 28px; font-size: 14px;
  border-radius: 50%; background: rgba(239,68,68,0.08); color: #ef4444;
  border: none; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bulletin-close-btn:hover { background: rgba(239,68,68,0.15); transform: scale(1.1); }
.bulletin-list { padding: 4px; }
.bulletin-item-header {
  padding: 11px 16px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background .2s; border-radius: 8px;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.bulletin-item-header:hover { background: #f8fafc; }
.bulletin-item-title { font-size: 13px; font-weight: 600; flex: 1; color: #1e293b; }
.bulletin-item-time { font-size: 11px; color: #94a3b8; white-space: nowrap; flex-shrink: 0; }
.bulletin-arrow { font-size: 12px; color: #94a3b8; transition: transform .3s; flex-shrink: 0; }
.bulletin-item.expanded .bulletin-arrow { transform: rotate(180deg); }
.bulletin-item-content {
  font-size: 12px; padding: 0 16px; line-height: 1.8; color: #475569;
  max-height: 0; overflow: hidden; transition: all .35s ease;
}
.bulletin-item.expanded .bulletin-item-content { max-height: 500px; padding: 0 16px 14px; }
.bulletin-pin-tag {
  font-size: 10px; background: #fef3c7; color: #92400e;
  padding: 2px 8px; border-radius: 10px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
}
.bulletin-pinned { background: linear-gradient(135deg, #fffbeb, #fef7cd); border-radius: 8px; }

/* =============================================
   今日学习仪表盘
   ============================================= */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-bottom: 20px;
}
.dashboard-card {
  background: #fff; border-radius: 16px; padding: 16px 10px;
  border: 1.5px solid #e2e8f0;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all .35s cubic-bezier(0.4,0,0.2,1);
}
.dashboard-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 0 0 2px 2px;
}
.dashboard-card:nth-child(1)::after { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.dashboard-card:nth-child(2)::after { background: linear-gradient(90deg, #059669, #34d399); }
.dashboard-card:nth-child(3)::after { background: linear-gradient(90deg, #dc2626, #f87171); }
.dashboard-card:nth-child(4)::after { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.dashboard-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.dashboard-card:active { transform: scale(0.96); }
.dash-icon { font-size: 26px; margin-bottom: 6px; display: block; }
.dash-value { font-size: 22px; font-weight: 900; color: #1e293b; line-height: 1.1; }
.dash-label { font-size: 11px; color: #64748b; margin-top: 4px; font-weight: 500; }

/* =============================================
   Section 标题
   ============================================= */
.section-title {
  font-size: 18px; font-weight: 800;
  margin-bottom: 14px; color: #1e293b;
  display: flex; align-items: center; gap: 8px; letter-spacing: -0.3px;
}
.section-title::after {
  content: ''; flex: 1; height: 2px;
  background: linear-gradient(90deg, #e2e8f0, transparent);
  border-radius: 2px; margin-top: 2px;
}

/* =============================================
   科目选择卡片（覆盖 style.css 同类规则）
   ============================================= */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 22px;
}
.subject-card {
  background: #fff; border-radius: 16px;
  padding: 24px 8px 20px; text-align: center;
  text-decoration: none; color: #1e293b;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
  border: 2px solid #e2e8f0;
  position: relative; overflow: hidden;
  transition: all .4s cubic-bezier(0.4,0,0.2,1);
}
.subject-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  transition: opacity .4s; pointer-events: none; z-index: 0;
  border-radius: 14px;
}
.subject-card.math::before { background: radial-gradient(circle at 50% 0%, rgba(79,70,229,0.12), transparent 60%); }
.subject-card.physics::before { background: radial-gradient(circle at 50% 0%, rgba(16,185,129,0.12), transparent 60%); }
.subject-card.chemistry::before { background: radial-gradient(circle at 50% 0%, rgba(239,68,68,0.12), transparent 60%); }
.subject-card:hover::before { opacity: 1; }
.subject-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.subject-card:active { transform: scale(0.93); transition: transform .12s; }
.subject-card.math { border-top: 3px solid #4f46e5; }
.subject-card.physics { border-top: 3px solid #10b981; }
.subject-card.chemistry { border-top: 3px solid #ef4444; }
.subject-card.math:hover { border-color: #4f46e5; box-shadow: 0 16px 40px rgba(79,70,229,0.15); }
.subject-card.physics:hover { border-color: #10b981; box-shadow: 0 16px 40px rgba(16,185,129,0.15); }
.subject-card.chemistry:hover { border-color: #ef4444; box-shadow: 0 16px 40px rgba(239,68,68,0.15); }
.subject-card .subject-icon {
  font-size: 42px; margin-bottom: 8px; display: block;
  transition: transform .4s cubic-bezier(0.4,0,0.2,1);
  position: relative; z-index: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08));
}
.subject-card:hover .subject-icon { transform: scale(1.25) rotate(-6deg); }
.subject-card .subject-name {
  font-size: 15px; font-weight: 800;
  position: relative; z-index: 1;
}
.subject-card .subject-count {
  font-size: 10px; color: #64748b; margin-top: 5px;
  position: relative; z-index: 1;
}

/* =============================================
   快速入口 Tab
   ============================================= */
.quick-entry-section { margin-bottom: 20px; }
.quick-tabs {
  background: #fff; border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border: 1.5px solid #e2e8f0; overflow: hidden;
}
.quick-tabs-nav-wrapper {
  background: #f8fafc; border-bottom: 1.5px solid #e2e8f0;
  padding: 10px 12px;
}
.quick-tabs-nav {
  display: flex; gap: 6px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 2px 0;
}
.quick-tabs-nav::-webkit-scrollbar { display: none; }
.quick-tab {
  padding: 8px 16px; border-radius: 22px;
  border: 1.5px solid transparent;
  background: transparent;
  font-size: 13px; font-weight: 600;
  color: #64748b; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: all .25s ease;
  scroll-snap-align: start; user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.quick-tab:hover { background: rgba(79,70,229,0.05); color: #4f46e5; }
.quick-tab:active { transform: scale(0.94); }
.quick-tab.active {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; border-color: #4f46e5;
  box-shadow: 0 6px 20px rgba(79,70,229,0.3);
  font-weight: 700;
}
.quick-tab .tab-dot { display: none; }
.quick-tab.active .tab-dot {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: #fff; margin-right: 4px; vertical-align: middle; margin-top: -2px;
}
.quick-tabs-panels { padding: 14px; }
.quick-tab-panel { display: none; animation: tabFadeIn .4s ease; }
.quick-tab-panel.active { display: block; }
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   功能卡片网格
   ============================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-bottom: 0;
}
.feature-card {
  background: #fff; border-radius: 14px;
  padding: 16px 12px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #1e293b;
  box-shadow: 0 1.5px 6px rgba(0,0,0,0.03);
  border: 1.5px solid #e2e8f0;
  transition: all .3s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; border-radius: 0 4px 4px 0;
  transform: scaleY(0); transition: transform .3s cubic-bezier(0.4,0,0.2,1);
}
.feature-card:has(.feature-icon.blue)::before   { background: #4f46e5; }
.feature-card:has(.feature-icon.red)::before    { background: #ef4444; }
.feature-card:has(.feature-icon.orange)::before { background: #f97316; }
.feature-card:has(.feature-icon.green)::before  { background: #10b981; }
.feature-card:has(.feature-icon.purple)::before { background: #8b5cf6; }
.feature-card:has(.feature-icon.yellow)::before { background: #f59e0b; }
.feature-card:has(.feature-icon.gold)::before   { background: #d97706; }
.feature-card:has(.feature-icon.amber)::before  { background: #ea580c; }
.feature-card:hover::before { transform: scaleY(1); }
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: transparent;
}
.feature-card:active { transform: scale(0.95); transition: transform .1s; }
.feature-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  transition: all .3s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.15); }
.feature-icon.blue   { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #4f46e5; }
.feature-icon.green  { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #059669; }
.feature-icon.red    { background: linear-gradient(135deg, #fef2f2, #fee2e2); color: #ef4444; }
.feature-icon.orange { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #ea580c; }
.feature-icon.purple { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #7c3aed; }
.feature-icon.yellow { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #d97706; }
.feature-icon.gold   { background: linear-gradient(135deg, #fffbeb, #fde68a); color: #b45309; }
.feature-icon.amber  { background: linear-gradient(135deg, #fff7ed, #fed7aa); color: #c2410c; }
.feature-info { flex: 1; min-width: 0; }
.feature-info h3 { font-size: 14px; font-weight: 700; margin-bottom: 2px; line-height: 1.3; }
.feature-info p  { font-size: 11px; color: #64748b; margin: 0; line-height: 1.4; }

/* =============================================
   热门专题
   ============================================= */
.hot-topics { margin-bottom: 22px; }
.hot-topics-scroll {
  display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 4px 0 8px;
}
.hot-topics-scroll::-webkit-scrollbar { display: none; }
.hot-topic-item {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 14px;
  background: #fff; border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  text-decoration: none; color: #1e293b;
  font-size: 13px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  transition: all .25s ease;
  scroll-snap-align: start;
}
.hot-topic-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.hot-topic-item:active { transform: scale(0.95); }
.hot-topic-icon { font-size: 20px; flex-shrink: 0; }

/* =============================================
   冲刺路线图时间轴
   ============================================= */
.advice-timeline { margin-bottom: 20px; }
.advice-step {
  display: flex; gap: 14px; padding: 14px 0; position: relative;
}
.advice-step:not(:last-child)::after {
  content: ''; position: absolute; left: 19px; top: 48px; bottom: -14px;
  width: 2px; background: linear-gradient(180deg, #4f46e5 0%, #e2e8f0 100%);
  border-radius: 1px;
}
.advice-step-num {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 12px rgba(79,70,229,0.3);
  z-index: 1; position: relative;
}
.advice-step-content { flex: 1; padding-top: 8px; min-width: 0; }
.advice-step-content strong {
  color: #1e293b; display: block; margin-bottom: 2px; font-size: 14px;
}
.advice-step-content span {
  color: #64748b; font-size: 12px; line-height: 1.6;
}

/* =============================================
   滚动渐现动画
   ============================================= */
.animate-on-scroll {
  opacity: 0; transform: translateY(35px);
  transition: opacity .7s ease, transform .7s cubic-bezier(0.22,1,0.36,1);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   回顶部按钮
   ============================================= */
.back-to-top {
  position: fixed; bottom: 100px; right: 18px;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; border: none; font-size: 22px; cursor: pointer;
  box-shadow: 0 6px 24px rgba(79,70,229,0.4);
  opacity: 0; transform: translateY(30px);
  pointer-events: none;
  transition: all .35s cubic-bezier(0.4,0,0.2,1);
  z-index: 900; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(79,70,229,0.5); }
.back-to-top:active { transform: scale(0.88); }

/* =============================================
   底部 CTA 按钮
   ============================================= */
.cta-btn {
  display: inline-block; padding: 14px 40px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; border-radius: 30px;
  text-decoration: none; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 30px rgba(79,70,229,0.35);
  transition: all .3s;
  -webkit-tap-highlight-color: transparent;
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(79,70,229,0.45);
}
.cta-btn:active { transform: scale(0.95); }

/* =============================================
   全国高校数据库 - 首页入口模块
   ============================================= */
.uni-home-section {
  background: var(--bg-card, #fff);
  border-radius: var(--radius-xl, 20px);
  padding: 28px 22px 22px;
  margin-bottom: 22px;
  border: 1px solid var(--border, #E2E8F0);
  box-shadow: var(--shadow, 0 2px 12px rgba(0,0,0,0.04));
}
.uni-home-header {
  text-align: center;
  margin-bottom: 18px;
}
.uni-home-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.uni-home-title-row h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--text, #1e293b);
  margin: 0;
}
.uni-home-icon {
  font-size: 26px;
}
.uni-home-desc {
  font-size: 13px;
  color: var(--text-secondary, #64748b);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 6px;
}
.uni-home-desc strong {
  color: var(--primary, #4F46E5);
}
.uni-home-more {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary, #4F46E5);
  text-decoration: none;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(79,70,229,0.08);
  transition: all 0.25s;
}
.uni-home-more:hover {
  background: rgba(79,70,229,0.15);
}

/* 统计迷你卡片 */
.uni-home-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.uni-home-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 12px;
  background: var(--bg, #F8FAFC);
  border: 1px solid var(--border, #E2E8F0);
}
.uni-home-stat-icon {
  font-size: 15px;
}
.uni-home-stat-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary, #4F46E5);
}
.uni-home-stat-label {
  font-size: 11px;
  color: var(--text-secondary, #64748b);
}

/* 高校卡片网格 */
.uni-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
}
.uni-home-card {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg, #F8FAFC);
  border: 1.5px solid var(--border, #E2E8F0);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.uni-home-card:hover {
  border-color: var(--primary-light, #A5B4FC);
  box-shadow: 0 8px 25px rgba(79,70,229,0.12);
  transform: translateY(-2px);
}
.uni-home-card-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  margin-top: 2px;
}
.badge-gold { background: linear-gradient(135deg, #FBBF24, #F59E0B); color: #fff; }
.badge-purple { background: linear-gradient(135deg, #A78BFA, #7C3AED); color: #fff; }
.badge-indigo { background: #EEF2FF; color: #4F46E5; border: 2px solid #C7D2FE; }
.uni-home-card-badge:not(.badge-gold):not(.badge-purple):not(.badge-indigo) {
  background: #F1F5F9; color: #94A3B8; border: 1px solid #E2E8F0;
}

.uni-home-card-body {
  flex: 1;
  min-width: 0;
}
.uni-home-card-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text, #1e293b);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uni-home-card-loc {
  font-size: 10px;
  color: var(--text-light, #94A3B8);
  margin-bottom: 5px;
}
.uni-home-card-labels {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.home-label {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.home-label-985 { background: #FEF2F2; color: #DC2626; }
.home-label-211 { background: #EFF6FF; color: #3B82F6; }
.home-label-df { background: #ECFDF5; color: #059669; }

.uni-home-card-majors {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.home-major-pill {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: linear-gradient(135deg, #FAF5FF, #F3E8FF);
  color: #7C3AED;
  border: 1px solid #E9D5FF;
  white-space: nowrap;
}
.home-major-pill b {
  color: #5B21B6;
}

.uni-home-card-arrow {
  color: var(--text-light, #94A3B8);
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s;
  align-self: center;
  flex-shrink: 0;
}
.uni-home-card:hover .uni-home-card-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* 底部CTA */
.uni-home-cta {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(79,70,229,0.3);
  transition: all 0.3s;
}
.uni-home-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79,70,229,0.4);
}

@media (max-width: 768px) {
  .uni-home-grid {
    grid-template-columns: 1fr;
  }
  .uni-home-section {
    padding: 20px 14px 16px;
  }
  .uni-home-title-row h2 {
    font-size: 17px;
  }
}

/* =============================================
   暗色模式
   ============================================= */
[data-theme="dark"] .countdown-hero {
  background: linear-gradient(160deg, #0a0520 0%, #120830 20%, #160d3d 40%, #200b3a 60%, #2a0828 80%, #120420 100%);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .daily-quote-card {
  background: linear-gradient(135deg, #1e293b, #2d1b00);
  border-color: #78350f;
}
[data-theme="dark"] .daily-quote-text { color: #fde68a; }
[data-theme="dark"] .daily-quote-author { color: #d97706; }
[data-theme="dark"] .bulletin-header {
  background: linear-gradient(135deg, #1e293b, #1e3a5f);
  border-color: #334155;
}
[data-theme="dark"] .bulletin-title { color: #93c5fd; }
[data-theme="dark"] .bulletin-pinned { background: linear-gradient(135deg, #1e293b, #2d1b00); }
[data-theme="dark"] .quick-tabs-nav-wrapper { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .quick-tab { color: #94a3b8; }
[data-theme="dark"] .quick-tab:hover { background: rgba(79,70,229,0.15); color: #818cf8; }
[data-theme="dark"] .quick-tab.active { background: #4f46e5; color: #fff; }
[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .subject-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .hot-topic-item,
[data-theme="dark"] .quick-tabs,
[data-theme="dark"] .bulletin-board,
[data-theme="dark"] .bulletin-item-header:hover {
  background: #1e293b; border-color: #334155;
}
[data-theme="dark"] .dash-value,
[data-theme="dark"] .subject-name,
[data-theme="dark"] .feature-info h3,
[data-theme="dark"] .section-title,
[data-theme="dark"] .hot-topic-item,
[data-theme="dark"] .bulletin-item-title {
  color: #f1f5f9;
}
[data-theme="dark"] .advice-step-content strong { color: #f1f5f9; }
[data-theme="dark"] .advice-step-content span { color: #94a3b8; }
[data-theme="dark"] .feature-icon.blue   { background: linear-gradient(135deg, #1e3a5f, #1e2d4a); }
[data-theme="dark"] .feature-icon.green  { background: linear-gradient(135deg, #064e3b, #043620); }
[data-theme="dark"] .feature-icon.red    { background: linear-gradient(135deg, #4c1d1d, #3b1010); }
[data-theme="dark"] .feature-icon.orange { background: linear-gradient(135deg, #4a2c0a, #3b1f06); }
[data-theme="dark"] .feature-icon.purple { background: linear-gradient(135deg, #2d1b4e, #1e1030); }
[data-theme="dark"] .feature-icon.yellow { background: linear-gradient(135deg, #3d2a0a, #2d1d06); }
[data-theme="dark"] .feature-icon.gold   { background: linear-gradient(135deg, #3d2a0a, #2d1d06); }
[data-theme="dark"] .feature-icon.amber  { background: linear-gradient(135deg, #3b1f06, #2a1004); }

[data-theme="dark"] .uni-home-section { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .uni-home-title-row h2 { color: #f1f5f9; }
[data-theme="dark"] .uni-home-desc { color: #94a3b8; }
[data-theme="dark"] .uni-home-stat { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .uni-home-card { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .uni-home-card:hover { border-color: #6366f1; }
[data-theme="dark"] .uni-home-card-name { color: #f1f5f9; }
[data-theme="dark"] .badge-indigo { background: #1e293b; border-color: #4338ca; color: #818cf8; }
[data-theme="dark"] .home-label-985 { background: rgba(239,68,68,0.15); }
[data-theme="dark"] .home-label-211 { background: rgba(59,130,246,0.15); }
[data-theme="dark"] .home-label-df { background: rgba(16,185,129,0.15); }
[data-theme="dark"] .home-major-pill { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.3); color: #a78bfa; }
[data-theme="dark"] .home-major-pill b { color: #c4b5fd; }

/* =============================================
   响应式 — 超小屏 < 360px
   ============================================= */
@media (max-width: 359px) {
  .hero-banner { padding: 32px 14px 28px; border-radius: 16px; }
  .hero-title { font-size: 24px; }
  .hero-desc { font-size: 11px; }
  .hero-stats { gap: 8px; padding: 12px 10px; }
  .hero-stat-num { font-size: 22px; }
  .hero-stat-label { font-size: 10px; }
  .hero-stat + .hero-stat::before { left: -4px; }
  .subjects-grid { gap: 8px; }
  .subject-card { padding: 18px 4px 16px; }
  .subject-card .subject-icon { font-size: 34px; }
  .subject-card .subject-name { font-size: 13px; }
  .quick-tab { padding: 6px 10px; font-size: 11px; }
  .quick-tabs-panels { padding: 10px; }
  .feature-grid { gap: 8px; }
  .feature-card { padding: 12px 8px; gap: 6px; }
  .feature-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 10px; font-size: 18px; }
  .feature-info h3 { font-size: 12px; }
  .feature-info p { font-size: 10px; }
  .countdown-hero { padding: 20px 12px 16px; border-radius: 16px; }
  .cd-digit-num { font-size: 28px; }
  .cd-digit-block { min-width: 42px; }
  .cd-digit-sep { font-size: 24px; }
  .cd-title { font-size: 12px; }
  .cd-actions { gap: 6px; }
  .cd-action-btn { padding: 8px 8px; font-size: 10px; border-radius: 10px; }
  .section-title { font-size: 15px; }
  .dashboard-grid { gap: 8px; }
  .dashboard-card { padding: 12px 6px; }
  .dash-value { font-size: 18px; }
  .dash-icon { font-size: 22px; }
  .daily-quote-card { padding: 14px; }
  .daily-quote-text { font-size: 13px; }
  .hot-topic-item { padding: 10px 12px; font-size: 12px; }
}

/* =============================================
   响应式 — 小屏 360-479px
   ============================================= */
@media (min-width: 360px) and (max-width: 479px) {
  .hero-title { font-size: 28px; }
  .quick-tab { padding: 7px 12px; font-size: 12px; }
  .subject-card .subject-icon { font-size: 38px; }
  .countdown-hero { padding: 24px 16px 18px; }
  .cd-digit-num { font-size: 32px; }
  .cd-digit-block { min-width: 48px; }
  .cd-title { font-size: 13px; }
  .cd-action-btn { padding: 9px 10px; font-size: 11px; }
}

/* =============================================
   响应式 — 平板 ≥ 480px
   ============================================= */
@media (min-width: 480px) {
  .hero-banner { padding: 52px 30px 44px; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 14px; max-width: 520px; }
  .hero-stats { gap: 24px; padding: 18px 26px; max-width: 420px; }
  .hero-stat-num { font-size: 30px; }
  .subjects-grid { gap: 16px; }
  .subject-card { padding: 30px 12px 26px; }
  .subject-card .subject-icon { font-size: 50px; }
  .subject-card .subject-name { font-size: 17px; }
  .subject-card .subject-count { font-size: 11px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .quick-tab { padding: 9px 20px; font-size: 14px; }
  .countdown-hero { padding: 32px 30px 24px; }
  .cd-digit-num { font-size: 44px; }
  .cd-digit-block { min-width: 64px; }
  .cd-digit-sep { font-size: 36px; margin: 0 6px; }
  .cd-title { font-size: 15px; }
  .cd-action-btn { padding: 11px 18px; font-size: 13px; }
  .dashboard-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .dashboard-card { padding: 18px 12px; }
  .dash-value { font-size: 24px; }
}

/* =============================================
   响应式 — 桌面 ≥ 768px
   ============================================= */
@media (min-width: 768px) {
  .hero-banner { padding: 56px 40px 50px; border-radius: 24px; }
  .hero-title { font-size: 42px; }
  .hero-desc { font-size: 15px; }
  .hero-stats { max-width: 500px; }
  .hero-stat-num { font-size: 32px; }
  .subjects-grid { gap: 20px; }
  .subject-card { padding: 36px 16px 28px; }
  .feature-grid { gap: 14px; }
  .feature-card { padding: 18px 14px; }
  .daily-quote-text { font-size: 16px; }
  .section-title { font-size: 20px; }
  .dashboard-grid { gap: 16px; }
  .dashboard-card { padding: 20px 14px; }
  .dash-value { font-size: 26px; }
  .countdown-hero { padding: 36px 36px 28px; border-radius: 24px; }
  .cd-digit-num { font-size: 52px; }
  .cd-digit-block { min-width: 72px; }
  .cd-title { font-size: 16px; }
  .cd-progress-info { font-size: 12px; }
}

/* =============================================
   响应式 — 大桌面 ≥ 1024px
   ============================================= */
@media (min-width: 1024px) {
  .hero-banner { padding: 64px 52px 56px; }
  .hero-title { font-size: 48px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .back-to-top { right: calc(50% - 530px); }
  .countdown-hero { padding: 40px 48px 32px; }
  .cd-digit-num { font-size: 60px; }
  .cd-digit-block { min-width: 80px; }
  .cd-digit-sep { font-size: 44px; margin: 0 10px; }
}

/* =============================================
   打印模式
   ============================================= */
@media print {
  .hero-banner { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .back-to-top { display: none; }
}
