/* ============================================
   新知课堂 官网样式
   用途：ICP备案展示站 + 微信小店教育培训类目配套官网
   ============================================ */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --navy-3: #1d4e89;
  --gold: #c9a227;
  --gold-light: #e8c766;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #24303e;
  --text-light: #5b6b7c;
  --border: #e3e9f0;
  --red-up: #d93025;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- 顶部导航 ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(11, 37, 69, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}
.logo-text { font-size: 20px; font-weight: 700; color: var(--navy); }
.logo-text small { display: block; font-size: 11px; font-weight: 400; color: var(--text-light); letter-spacing: 2px; }

.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-3); border-bottom-color: var(--gold); }

/* ---------- 首页 Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 80% -50%, rgba(201, 162, 39, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0e3057 100%);
  color: #fff;
  padding: 92px 0 104px;
}
.hero-inner { display: flex; align-items: center; gap: 60px; }
.hero-copy { flex: 1.15; }
.hero-badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid rgba(232, 199, 102, 0.45);
  color: var(--gold-light);
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: 1px;
}
.hero h1 { font-size: 42px; line-height: 1.35; font-weight: 700; margin-bottom: 18px; }
.hero h1 .gold { color: var(--gold-light); }
.hero p.sub { font-size: 17px; color: rgba(255, 255, 255, 0.78); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; }
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 600;
}
.btn-gold { background: linear-gradient(135deg, var(--gold) 0%, #b08d1e 100%); color: #fff; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

.hero-visual { flex: 1; display: flex; justify-content: center; }
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 28px 26px;
  width: 320px;
  backdrop-filter: blur(6px);
}
.hero-card .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}
.hero-card .row:last-child { border-bottom: none; }
.hero-card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.hero-card .t { font-size: 15px; font-weight: 600; }
.hero-card .d { font-size: 12.5px; color: rgba(255, 255, 255, 0.62); }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .eyebrow { color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: 3px; margin-bottom: 12px; }
.section-head h2 { font-size: 30px; color: var(--navy); font-weight: 700; margin-bottom: 14px; }
.section-head p { color: var(--text-light); font-size: 15.5px; }

/* ---------- 特色卡片 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 26px;
  transition: all 0.25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11, 37, 69, 0.1); border-color: var(--gold); }
.feature .f-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(29, 78, 137, 0.1), rgba(201, 162, 39, 0.14));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature h3 { font-size: 17.5px; color: var(--navy); margin-bottom: 10px; }
.feature p { font-size: 14px; color: var(--text-light); }

/* ---------- 课程卡 ---------- */
.course-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11, 37, 69, 0.12); }
.course-cover {
  height: 132px;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px;
}
.cover-a { background: linear-gradient(135deg, #0b2545, #1d4e89); }
.cover-b { background: linear-gradient(135deg, #8a6d1d, #c9a227); }
.cover-c { background: linear-gradient(135deg, #14452f, #2e7d5b); }
.cover-d { background: linear-gradient(135deg, #4a2c5e, #7a4e97); }
.course-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.course-tag {
  align-self: flex-start;
  font-size: 12px;
  color: var(--navy-3);
  background: rgba(29, 78, 137, 0.08);
  border: 1px solid rgba(29, 78, 137, 0.18);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 600;
}
.course-body h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.course-body p { font-size: 14px; color: var(--text-light); flex: 1; }
.course-meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--text-light);
}

/* ---------- 合规声明带 ---------- */
.compliance-band {
  background: linear-gradient(135deg, #fdf8ec 0%, #faf3dd 100%);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 56px 0;
}
.compliance-inner { display: flex; gap: 40px; align-items: flex-start; }
.compliance-icon { font-size: 40px; line-height: 1; }
.compliance-band h3 { font-size: 20px; color: var(--navy); margin-bottom: 12px; }
.compliance-band li { font-size: 14.5px; color: var(--text); margin-bottom: 8px; margin-left: 20px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: 56px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer p, .site-footer li { font-size: 13.5px; line-height: 2; }
.site-footer ul { list-style: none; }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-mark { width: 34px; height: 34px; font-size: 16px; }
.footer-logo span { color: #fff; font-size: 17px; font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 2.2;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.65); }

/* ---------- 页面横幅 ---------- */
.page-banner {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 58px 0;
  text-align: center;
}
.page-banner h1 { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.page-banner p { color: rgba(255, 255, 255, 0.7); font-size: 15px; }

/* ---------- 关于我们 ---------- */
.about-flex { display: flex; gap: 50px; align-items: flex-start; }
.about-copy { flex: 1.2; }
.about-copy h3 { font-size: 20px; color: var(--navy); margin: 26px 0 12px; }
.about-copy h3:first-child { margin-top: 0; }
.about-copy p { font-size: 15px; color: var(--text-light); margin-bottom: 12px; }
.about-side { flex: 1; }
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
}
.info-card .row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.info-card .row:last-child { border-bottom: none; }
.info-card .k { color: var(--text-light); }
.info-card .v { color: var(--navy); font-weight: 600; }

/* ---------- 讲师 ---------- */
.teacher {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  text-align: center;
}
.teacher .avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy-3), var(--navy));
  color: var(--gold-light);
  font-size: 30px;
  display: flex; align-items: center; justify-content: center;
}
.teacher h3 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.teacher .role { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 10px; }
.teacher p { font-size: 13.5px; color: var(--text-light); }

/* ---------- 主讲讲师（单人） ---------- */
.teacher-single {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 42px 44px;
  display: flex;
  gap: 38px;
  align-items: flex-start;
}
.teacher-single .avatar {
  width: 108px; height: 108px;
  margin: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-3), var(--navy));
  color: var(--gold-light);
  font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.teacher-single .ts-info h3 { font-size: 22px; color: var(--navy); margin-bottom: 4px; }
.teacher-single .role { font-size: 14px; color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.teacher-single .tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.teacher-single .tag {
  font-size: 12.5px;
  color: var(--navy-3);
  background: rgba(29, 78, 137, 0.07);
  border: 1px solid rgba(29, 78, 137, 0.16);
  padding: 4px 12px;
  border-radius: 999px;
}
.teacher-single .bio { font-size: 15px; color: var(--text-light); line-height: 2; }
.teacher-single .bio b { color: var(--navy); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.25s;
}
.contact-card:hover { border-color: var(--gold); box-shadow: 0 12px 30px rgba(11, 37, 69, 0.08); }
.contact-card .c-icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(29, 78, 137, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.contact-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--text-light); }
.contact-card .val { font-size: 16px; color: var(--navy); font-weight: 700; margin-top: 6px; }

.notice {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 24px 28px;
  margin-top: 44px;
  font-size: 14px;
  color: var(--text-light);
}
.notice strong { color: var(--navy); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner, .about-flex { flex-direction: column; }
  .hero h1 { font-size: 32px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .teacher-single { flex-direction: column; padding: 32px 26px; }
}
