/* ============================================
   知乎教育 v2.0 - 第一档 5 模块 + 3 新页面 + 视频 Hero 样式
   专业稳重主题（主页 / 一级页面）
   ============================================ */

/* 主题色变量 */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #4a90d9;
  --secondary: #ff6b35;
  --secondary-dark: #e55a2b;
  --accent: #f59e0b;
  --success: #10b981;
  --text-dark: #1f2937;
  --text-medium: #4b5563;
  --text-light: #6b7280;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

/* 年轻活力主题（二级及子栏目） */
[data-theme="vivid"] {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --primary-light: #ff8a5b;
  --secondary: #f59e0b;
  --accent: #fbbf24;
  --bg-light: #fff7ed;
  --bg-gray: #ffedd5;
}

/* ================== 通用板块 ================== */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
  font-size: 36px; font-weight: 800; color: var(--text-dark);
  position: relative; display: inline-block;
  margin-bottom: 12px;
}
.section-title h2::after {
  content: ''; position: absolute; bottom: -12px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.section-title p { color: var(--text-light); font-size: 16px; margin-top: 24px; }

/* ================== 1. 大数据滚动 ================== */
.countup-section { background: linear-gradient(135deg, #1a73e8 0%, #4a90d9 100%); color: #fff; }
.countup-section .section-title h2,
.countup-section .section-title p { color: #fff; }
.countup-section .section-title h2::after { background: #fff; }
.countup-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 30px; max-width: 1200px; margin: 0 auto;
}
.countup-item { text-align: center; }
.countup-number { font-size: 48px; font-weight: 900; line-height: 1.2; }
.countup-number .num { font-family: 'Arial Black', sans-serif; }
.countup-number .suffix { font-size: 24px; opacity: 0.9; margin-left: 4px; }
.countup-label { font-size: 16px; opacity: 0.9; margin-top: 8px; }
@media (max-width: 900px) { .countup-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } .countup-number { font-size: 36px; } }
@media (max-width: 500px) { .countup-grid { grid-template-columns: repeat(2, 1fr); } }

/* ================== 2. 实时报名播报 ================== */
.broadcast-section { background: #fffbe6; padding: 16px 0; border-top: 1px solid #fef3c7; border-bottom: 1px solid #fef3c7; }
.broadcast-bar { display: flex; align-items: center; gap: 16px; }
.broadcast-label { display: flex; align-items: center; gap: 8px; flex-shrink: 0; color: #d97706; font-weight: 700; }
.broadcast-label .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,0.7);
  animation: broadcastDot 1.5s infinite;
}
@keyframes broadcastDot {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
  70% { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.broadcast-list {
  flex: 1; overflow: hidden; height: 32px; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.broadcast-item {
  position: absolute; top: 0; left: 100%; white-space: nowrap;
  line-height: 32px; font-size: 14px; color: #1f2937;
  animation: broadcastMove 18s linear infinite;
}
.broadcast-item strong { color: #d97706; margin-right: 6px; }
.broadcast-item .city { color: #6b7280; }
.broadcast-item em { color: #1a73e8; font-style: normal; margin: 0 4px; }
.broadcast-item .time { color: #9ca3af; font-size: 12px; margin-left: 8px; }
.broadcast-item.new { color: #dc2626; }
@keyframes broadcastMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-150%); }
}

/* ================== 3. 录取通知书墙 ================== */
.admission-section { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.admission-wall { overflow: hidden; padding: 20px 0; }
.admission-track { display: flex; gap: 20px; width: max-content; }
.admission-card {
  flex-shrink: 0; width: 240px; background: #fff;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s;
}
.admission-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.letter-img { padding: 16px; background: linear-gradient(135deg, #fef3c7, #fde68a); }
.letter-mock {
  background: linear-gradient(135deg, #fff 0%, #fef9e7 100%);
  border: 3px double #b45309; padding: 16px 12px;
  text-align: center; border-radius: 4px; position: relative;
  min-height: 280px; display: flex; flex-direction: column; justify-content: space-between;
}
.letter-mock::before {
  content: '★'; position: absolute; top: 8px; right: 8px; color: #b45309; font-size: 18px;
}
.letter-title { font-size: 20px; font-weight: 800; color: #b45309; letter-spacing: 4px; }
.letter-school { font-size: 16px; font-weight: 700; color: #1f2937; margin: 12px 0 4px; }
.letter-name { font-size: 14px; color: #4b5563; }
.letter-major { font-size: 12px; color: #6b7280; margin: 8px 0; }
.letter-year { font-size: 14px; color: #1f2937; }
.letter-seal { font-size: 10px; color: #b45309; margin-top: 12px; }
.letter-info { padding: 12px 16px; }
.letter-name-text { font-size: 16px; font-weight: 700; color: #1f2937; display: block; }
.letter-major-text { font-size: 12px; color: var(--primary); display: block; margin: 4px 0; }
.letter-school-text { font-size: 12px; color: var(--text-light); display: block; }
.admission-cta { text-align: center; margin-top: 40px; }

/* ================== 4. 学费计算器 ================== */
.calc-section { background: var(--bg-light); }
.calc-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  background: #fff; border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow);
}
.calc-form { display: flex; flex-direction: column; gap: 24px; }
.calc-row label { display: block; font-weight: 700; margin-bottom: 12px; color: var(--text-dark); font-size: 16px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-item { position: relative; cursor: pointer; }
.radio-item input { position: absolute; opacity: 0; }
.radio-item span {
  display: inline-block; padding: 10px 20px; border: 2px solid var(--border);
  border-radius: 999px; font-size: 14px; transition: all 0.2s;
}
.radio-item input:checked + span {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.calc-select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: 8px; font-size: 15px; background: #fff;
}
.calc-btn {
  width: 100%; padding: 14px; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.calc-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.calc-result {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border-radius: var(--radius); padding: 32px; text-align: center;
  border: 2px solid #fcd34d; opacity: 0.4; transition: all 0.3s;
}
.calc-result.show { opacity: 1; }
.calc-result-title { color: var(--text-medium); font-size: 16px; }
.calc-result-total { margin: 16px 0 24px; }
.calc-result-total .currency { font-size: 24px; color: var(--secondary); }
.calc-result-total .total-num {
  font-size: 56px; font-weight: 900; color: var(--secondary);
  font-family: 'Arial Black', sans-serif; margin: 0 4px;
}
.calc-result-total .unit { font-size: 20px; color: var(--secondary); }
.calc-result-detail { background: rgba(255,255,255,0.7); border-radius: 8px; padding: 16px; text-align: left; }
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--text-medium); border-bottom: 1px dashed #fcd34d; }
.detail-row:last-child { border: none; }
.detail-row.total-row { font-weight: 800; color: var(--secondary); font-size: 16px; padding-top: 12px; border-top: 2px solid #fcd34d; }
.calc-call { display: block; margin-top: 16px; padding: 12px; background: var(--secondary); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 700; }
@media (max-width: 800px) { .calc-box { grid-template-columns: 1fr; } }

/* ================== 5. 智能匹配测试 ================== */
.smart-test-section { background: linear-gradient(180deg, #fff 0%, #f0f9ff 100%); }
.smart-test-box { max-width: 720px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.test-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.test-bar { flex: 1; height: 8px; background: var(--bg-gray); border-radius: 4px; overflow: hidden; }
.test-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); width: 20%; transition: width 0.3s; }
.test-step { color: var(--text-light); font-size: 14px; flex-shrink: 0; }
.test-step span { color: var(--primary); font-weight: 700; }
.test-question { font-size: 22px; color: var(--text-dark); margin-bottom: 24px; }
.test-options { display: flex; flex-direction: column; gap: 12px; }
.test-option { display: block; padding: 16px 20px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all 0.2s; }
.test-option:hover { border-color: var(--primary); background: #f0f9ff; }
.test-option input { display: none; }
.test-option input:checked + .test-option-text { color: var(--primary); font-weight: 700; }
.test-option:has(input:checked) { border-color: var(--primary); background: #f0f9ff; }
.test-actions { display: flex; gap: 12px; margin-top: 32px; }
.test-btn { padding: 12px 28px; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; transition: all 0.2s; }
.test-prev { background: var(--bg-gray); color: var(--text-dark); }
.test-next { background: var(--primary); color: #fff; flex: 1; }
.test-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.test-result { text-align: center; padding: 20px 0; }
.test-result-icon { font-size: 64px; }
.test-result h3 { font-size: 28px; margin: 16px 0; color: var(--text-dark); }
.recommend-type { color: var(--secondary); font-weight: 900; font-size: 36px; }
.test-recommend-reason { background: #f0f9ff; padding: 20px; border-radius: var(--radius); margin: 24px 0; text-align: left; color: var(--text-medium); line-height: 1.8; }
.test-result-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; padding: 12px 28px; background: var(--secondary); color: #fff;
  border: none; border-radius: 8px; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-secondary {
  display: inline-block; padding: 12px 28px; background: #fff; color: var(--primary);
  border: 2px solid var(--primary); border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer;
}

/* ================== 视频背景 Hero ================== */
.video-hero { position: relative; min-height: 600px; color: #fff; overflow: hidden; display: flex; align-items: center; }
.video-bg { position: absolute; inset: 0; z-index: 0; }
.video-bg video { width: 100%; height: 100%; object-fit: cover; }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,0.7) 0%, rgba(26,115,232,0.6) 100%); }
.video-hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.vbadge {
  display: inline-block; padding: 6px 20px; background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 999px;
  font-size: 14px; backdrop-filter: blur(8px); margin-bottom: 24px;
}
.vtitle { font-size: 56px; font-weight: 900; line-height: 1.2; margin-bottom: 24px; }
.vtitle em { background: linear-gradient(90deg, #fbbf24, #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.vsub { font-size: 20px; opacity: 0.9; line-height: 1.6; margin-bottom: 40px; }
.vstats { display: flex; justify-content: center; gap: 60px; margin-bottom: 40px; }
.vstat { text-align: center; }
.vstat .num { display: block; font-size: 36px; font-weight: 900; color: #fbbf24; }
.vstat .lbl { font-size: 14px; opacity: 0.9; }
.vcta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.vbtn-primary {
  display: inline-block; padding: 16px 40px; background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #fff; border-radius: 999px; font-size: 18px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 20px rgba(245,158,11,0.4); transition: all 0.3s;
}
.vbtn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(245,158,11,0.6); }
.vbtn-ghost {
  display: inline-block; padding: 16px 40px; background: rgba(255,255,255,0.1);
  color: #fff; border: 2px solid rgba(255,255,255,0.3); border-radius: 999px;
  font-size: 18px; font-weight: 700; text-decoration: none; backdrop-filter: blur(8px);
}
.vtrust { display: flex; justify-content: center; gap: 24px; font-size: 14px; opacity: 0.9; flex-wrap: wrap; }
.vtrust span::before { content: '✔'; color: #10b981; margin-right: 4px; font-weight: 700; }
.hero-scroll-tip {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  text-align: center; z-index: 1; opacity: 0.7; font-size: 12px;
}
.mouse {
  width: 22px; height: 36px; border: 2px solid #fff; border-radius: 11px; margin: 8px auto 0;
  position: relative;
}
.mouse::before {
  content: ''; width: 4px; height: 8px; background: #fff; border-radius: 2px;
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  animation: mouseScroll 1.5s infinite;
}
@keyframes mouseScroll { 0% { top: 6px; opacity: 1; } 100% { top: 18px; opacity: 0; } }
@media (max-width: 700px) { .vtitle { font-size: 32px; } .vsub { font-size: 16px; } .vstats { gap: 24px; } .vstat .num { font-size: 24px; } }

/* ================== 视频专区 ================== */
.videos-section { background: var(--bg-light); }
.videos-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.vtab {
  padding: 8px 20px; background: #fff; border: 2px solid var(--border);
  border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--text-medium); transition: all 0.2s;
}
.vtab:hover, .vtab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.videos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.video-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-frame { position: relative; padding-top: 56.25%; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-platform {
  position: absolute; top: 8px; right: 8px;
  padding: 4px 10px; background: rgba(0,0,0,0.6); color: #fff;
  border-radius: 4px; font-size: 12px;
}
.video-info { padding: 16px; }
.video-info h4 { font-size: 16px; margin: 0 0 6px; color: var(--text-dark); }
.video-cat { font-size: 12px; color: var(--text-light); }
.videos-empty { text-align: center; padding: 60px 20px; color: var(--text-light); grid-column: 1 / -1; }
@media (max-width: 900px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .videos-grid { grid-template-columns: 1fr; } }

/* ================== 3 个新页面公共样式 ================== */
.page-hero {
  background: linear-gradient(135deg, #1a73e8 0%, #4a90d9 100%);
  color: #fff; padding: 60px 0; text-align: center;
  margin-top: 0;
}
.page-hero h1 { font-size: 42px; margin-bottom: 12px; color: #fff; }
.page-hero p { font-size: 18px; opacity: 0.95; color: #fff; }
[data-theme="vivid"] .page-hero { background: linear-gradient(135deg, #ff6b35 0%, #f59e0b 100%); }
.majors-hero { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.schools-hero { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.english-hero { background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%); }
.page-content { padding: 40px 0 80px; }
.filter-bar { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 32px; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label { font-weight: 700; color: var(--text-dark); font-size: 14px; }
.filter-chip {
  padding: 6px 14px; background: var(--bg-gray); color: var(--text-medium);
  border-radius: 999px; font-size: 13px; text-decoration: none; transition: all 0.2s;
}
.filter-chip:hover { background: var(--bg-light); }
.filter-chip.active { background: var(--primary); color: #fff; }
.empty { text-align: center; padding: 60px 20px; color: var(--text-light); font-size: 16px; }
.page-cta {
  text-align: center; padding: 40px; background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border-radius: var(--radius-lg); margin-top: 40px;
}
.page-cta h3 { font-size: 24px; margin-bottom: 12px; color: var(--text-dark); }
.page-cta p { color: var(--text-medium); margin-bottom: 20px; }

/* ================== 专业库卡片 ================== */
.majors-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.major-card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm); transition: all 0.3s; position: relative; overflow: hidden;
}
.major-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.major-card.hot { border-top: 3px solid var(--secondary); }
.hot-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--secondary); color: #fff; padding: 2px 10px;
  border-radius: 4px; font-size: 12px; font-weight: 700;
}
.major-cat { font-size: 12px; color: var(--primary); margin-bottom: 8px; }
.major-name { font-size: 18px; font-weight: 800; color: var(--text-dark); margin: 0 0 12px; }
.major-school { font-size: 13px; color: var(--text-medium); margin-bottom: 12px; }
.major-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.major-career { font-size: 12px; color: var(--text-medium); line-height: 1.6; margin-bottom: 16px; min-height: 40px; }
.major-cta { display: block; padding: 10px; background: var(--bg-light); color: var(--primary); text-align: center; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px; }
.major-cta:hover { background: var(--primary); color: #fff; }
@media (max-width: 1000px) { .majors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .majors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 450px) { .majors-grid { grid-template-columns: 1fr; } }

/* ================== 院校库卡片 ================== */
.schools-list { display: flex; flex-direction: column; gap: 20px; }
.school-card {
  display: flex; gap: 24px; padding: 24px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.school-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.school-logo { position: relative; flex-shrink: 0; }
.logo-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 900;
}
.logo-circle.logo-211 {
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}
.badge-211, .badge-985 {
  position: absolute; bottom: -4px; right: -4px;
  padding: 2px 8px; font-size: 10px; font-weight: 800;
  border-radius: 999px; color: #fff;
}
.badge-211 { background: #dc2626; }
.badge-985 { background: #f59e0b; }
.school-info { flex: 1; }
.school-name { font-size: 22px; font-weight: 800; color: var(--text-dark); margin: 0 0 8px; }
.school-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.school-intro { color: var(--text-medium); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.school-cta { display: inline-block; padding: 8px 20px; background: var(--primary); color: #fff; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; }
@media (max-width: 600px) { .school-card { flex-direction: column; align-items: center; text-align: center; } .school-meta { justify-content: center; } }

/* ================== 学位英语卡片 ================== */
.english-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 32px; background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--radius); margin-bottom: 24px; gap: 24px; flex-wrap: wrap;
}
.banner-left h3 { font-size: 22px; margin-bottom: 4px; color: #b45309; }
.banner-left p { color: #92400e; }
.english-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.english-card {
  display: flex; gap: 16px; padding: 20px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); align-items: center;
  transition: all 0.3s;
}
.english-card:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.english-icon { font-size: 40px; flex-shrink: 0; }
.english-info { flex: 1; }
.english-info h4 { font-size: 16px; margin: 0 0 8px; color: var(--text-dark); }
.english-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-light); }
.english-meta .free { color: #10b981; font-weight: 700; }
.english-cta {
  flex-shrink: 0; padding: 8px 16px; background: var(--primary); color: #fff;
  border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700;
}
@media (max-width: 700px) { .english-grid { grid-template-columns: 1fr; } }
