/* ==========================================================================
   在线学习系统 · 官网通用样式（site.css）
   - 与后台主题色对齐：主色 #2563eb，深色 #1e3a8a，强调 #06b6d4
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #2563eb;
  --brand-dark: #1e3a8a;
  --brand-light: #eef2ff;
  --accent: #06b6d4;
  --warn: #f59e0b;
  --ok: #10b981;
  --text: #1f2937;
  --text-soft: #4b5563;
  --text-weak: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e5e7eb;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 30px rgba(37, 99, 235, 0.12);
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== 顶部导航 ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05); }
.site-header .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--brand-dark);
  letter-spacing: .5px;
}
.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  font-size: 16px;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.nav-main { display: flex; gap: 4px; }
.nav-main a {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .18s;
}
.nav-main a:hover,
.nav-main a.active {
  color: var(--brand);
  background: var(--brand-light);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }
.user-menu { display: flex; align-items: center; gap: 12px; }
.user-info {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
  font-size: 14px; font-weight: 500;
  padding: 6px 10px; border-radius: 8px;
  transition: background .2s;
}
.user-info:hover { background: var(--bg-soft); }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover;
}
.user-avatar-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-sm { padding: 7px 16px; font-size: 13px; border-radius: 8px; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  background: #fff;
  color: var(--text);
  transition: all .18s ease;
  text-align: center;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #3b82f6 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
  color: #fff;
}
.btn-outline {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 12px; }

.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  color: var(--brand-dark);
  padding: 6px 8px;
  border-radius: 8px;
}

/* ===================== Hero 首屏 ===================== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(800px 400px at 10% 10%, rgba(37, 99, 235, 0.20), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: .6;
  pointer-events: none;
}
.hero-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.hero h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero h1 .hl {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 30px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}
.hero-stats .stat .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats .stat .num small {
  font-size: 16px;
  color: var(--accent);
  font-weight: 700;
  margin-left: 2px;
}
.hero-stats .stat .label {
  font-size: 13px;
  color: var(--text-weak);
}

/* Hero 右侧插图（纯 CSS 卡片组合） */
.hero-visual {
  position: relative;
  height: 440px;
}
.hero-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.hero-card .top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.hero-card .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.hero-card h4 { font-size: 14px; color: var(--text); font-weight: 600; }
.hero-card .mini { font-size: 12px; color: var(--text-weak); }
.hero-card .progress {
  height: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
  margin-top: 6px;
}
.hero-card .progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.hero-card.hero-card-1 { top: 20px; left: 30px; width: 280px; }
.hero-card.hero-card-2 { top: 140px; right: 10px; width: 260px; }
.hero-card.hero-card-3 { bottom: 10px; left: 60px; width: 260px; }
.hero-card .float-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--ok);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

/* ===================== 通用 section ===================== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: 34px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.section-head p { color: var(--text-soft); font-size: 16px; }

/* ===================== 特色功能 ===================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}
.feature-card:nth-child(2) .feature-icon { background: #ecfeff; color: #0e7490; }
.feature-card:nth-child(3) .feature-icon { background: #fff7ed; color: #c2410c; }
.feature-card:nth-child(4) .feature-icon { background: #f0fdf4; color: #15803d; }
.feature-card:nth-child(5) .feature-icon { background: #fdf4ff; color: #86198f; }
.feature-card:nth-child(6) .feature-icon { background: #fef2f2; color: #b91c1c; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; color: #0f172a; font-weight: 600; }
.feature-card p { color: var(--text-soft); font-size: 14.5px; }

/* ===================== 学科分类 ===================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.category-card .ico {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-light), #ffffff);
  color: var(--brand-dark);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.1);
}
.category-card:nth-child(2) .ico { background: #ecfeff; color: #0e7490; }
.category-card:nth-child(3) .ico { background: #fff7ed; color: #c2410c; }
.category-card:nth-child(4) .ico { background: #f0fdf4; color: #15803d; }
.category-card:nth-child(5) .ico { background: #fdf4ff; color: #86198f; }
.category-card:nth-child(6) .ico { background: #fef3c7; color: #854d0e; }
.category-card h4 { font-size: 15px; font-weight: 600; color: #0f172a; margin-bottom: 4px; }
.category-card .count { font-size: 12px; color: var(--text-weak); }

/* ===================== 课程展示 ===================== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.course-cover {
  height: 170px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}
.course-card:nth-child(2) .course-cover { background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%); }
.course-card:nth-child(3) .course-cover { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.course-cover .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.course-cover .level {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}
.course-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.course-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: #0f172a; }
.course-body p { color: var(--text-soft); font-size: 13.5px; flex: 1; }
.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-weak);
}
.course-meta .price { color: var(--warn); font-weight: 700; font-size: 16px; }

/* ===================== 数据统计带 ===================== */
.stats-band {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--accent) 100%);
  padding: 70px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 200px at 20% 30%, rgba(255,255,255,0.08), transparent 60%),
              radial-gradient(400px 200px at 80% 70%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-box .big-num {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}
.stat-box .big-num small { font-size: 20px; color: #a5f3fc; margin-left: 3px; }
.stat-box .label { font-size: 14px; opacity: 0.85; }

/* ===================== 学习路径（时间轴） ===================== */
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.path-step {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  position: relative;
  transition: all .2s;
}
.path-step:hover { box-shadow: var(--shadow); border-color: var(--brand); }
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.path-step h3 { font-size: 16px; margin-bottom: 8px; color: #0f172a; font-weight: 600; }
.path-step p { color: var(--text-soft); font-size: 13.5px; }

/* ===================== 学员评价 ===================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 72px;
  line-height: 1;
  color: var(--brand-light);
  font-family: Georgia, serif;
  font-weight: 700;
}
.testimonial p {
  color: var(--text-soft);
  font-size: 14.5px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.testimonial .name { font-weight: 600; color: #0f172a; font-size: 14px; }
.testimonial .role { color: var(--text-weak); font-size: 12px; }

/* ===================== 合作品牌 ===================== */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 50px;
  align-items: center;
  padding: 30px 0;
}
.partner-strip span {
  font-size: 20px;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: .7;
  transition: all .2s;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.partner-strip span:hover {
  color: var(--brand);
  opacity: 1;
  border-color: var(--brand);
}
.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all .2s;
  opacity: .7;
}
.partner-item:hover {
  opacity: 1;
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
.partner-logo {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
}
.partner-text {
  font-size: 20px;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 1px;
}
.partner-item:hover .partner-text {
  color: var(--brand);
}

/* ===================== CTA 带 ===================== */
.cta-band {
  background: #fff;
}
.cta-box {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--accent) 100%);
  border-radius: 24px;
  padding: 54px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 200px at 90% 20%, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
}
.cta-box .content { position: relative; max-width: 620px; }
.cta-box h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.cta-box p { font-size: 15px; opacity: 0.9; }
.cta-box .actions { position: relative; display: flex; gap: 12px; flex-shrink: 0; }
.cta-box .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.cta-box .btn-primary:hover { background: #f1f5f9; color: var(--brand-dark); }
.cta-box .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.cta-box .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ===================== 页脚 ===================== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h5 {
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: #fff; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  font-size: 16px;
}
.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.footer-brand-desc { color: #94a3b8; font-size: 13.5px; line-height: 1.8; margin-bottom: 16px; }

.contact-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #94a3b8;
  margin-bottom: 8px;
  font-size: 13.5px;
}
.contact-list li .lab { color: #64748b; flex-shrink: 0; }

.social-row { display: flex; gap: 10px; margin-top: 4px; }
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.08);
}
.social-row a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.footer-bottom {
  margin-top: 48px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748b;
}
.footer-bottom .legal-row { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ===================== 公告条（可选） ===================== */
.site-notice {
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 10px 0;
  font-size: 13.5px;
  border-bottom: 1px solid #fcd34d;
  display: none;
}
.site-notice.show { display: block; }
.site-notice .notice-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.site-notice .ico {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

/* ===================== 响应式 ===================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 36px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-visual { height: auto; min-height: 360px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .cta-box { flex-direction: column; text-align: center; padding: 40px; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: inline-block; }
  .nav-main {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 14px 20px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  }
  .nav-main.open { display: flex; }
  .nav-main a { padding: 12px 14px; }
  .nav-cta .btn:not(.btn-primary) { display: none; }

  .hero { padding: 48px 0 60px; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 15px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stats .stat .num { font-size: 22px; }
  .hero-card.hero-card-1 { width: 78%; top: 0; left: 0; }
  .hero-card.hero-card-2 { width: 70%; top: 140px; right: 0; }
  .hero-card.hero-card-3 { width: 72%; bottom: -10px; left: 10%; }
  .hero-visual { min-height: 420px; }

  .section { padding: 54px 0; }
  .section-head h2 { font-size: 26px; }
  .feature-grid, .course-grid, .path-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stat-box .big-num { font-size: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* 简单淡入动画 */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: fadeUp .6s ease forwards; }
.reveal.delay-1 { animation-delay: .1s; }
.reveal.delay-2 { animation-delay: .2s; }
.reveal.delay-3 { animation-delay: .3s; }
.reveal.delay-4 { animation-delay: .4s; }

/* ===================== 用户菜单（登录后显示） ===================== */
.user-menu {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  padding: 6px 10px 6px 6px !important;
  border-radius: 999px !important;
  transition: background .15s !important;
  position: relative !important;
}
.user-menu:hover { background: rgba(37, 99, 235, 0.08) !important; }
.user-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.user-info { display: flex !important; flex-direction: column !important; }
.user-name { font-size: 13px !important; font-weight: 600 !important; color: #0f172a !important; }
.user-label { font-size: 11px !important; color: #64748b !important; }
.user-dropdown {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  min-width: 180px !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
  border: 1px solid #e2e8f0 !important;
  padding: 6px 0 !important;
  z-index: 9999 !important;
}
.user-menu:hover .user-dropdown { display: block !important; }
.user-dropdown a {
  display: block !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  color: #334155 !important;
  transition: background .12s !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}
.user-dropdown a:hover {
  background: #eff6ff !important;
  color: #1e40af !important;
}
.drop-divider {
  height: 1px !important;
  background: #e2e8f0 !important;
  margin: 6px 0 !important;
}
