/* 新创投商学 - 学员端设计系统（深藏青 + 鎏金） */
:root {
  --primary: #1B2A4A;      /* 深藏青 */
  --primary-light: #2A3D66;
  --gold: #C9A24B;          /* 鎏金 */
  --gold-light: #E3C878;
  --dark: #0F1E3D;
  --text: #3A3F4B;
  --gray: #8A8F99;
  --bg: #F7F6F3;
  --card: #FFFFFF;
  --border: #EAE7E0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }

/* ===== 顶部导航 ===== */
.nav {
  background: var(--primary);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(15,30,61,0.25);
}
.nav .logo { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.nav .logo .badge {
  background: var(--gold);
  color: var(--dark);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0;
  font-weight: 600;
}
.nav .links a {
  margin-left: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.nav .links a:hover { color: var(--gold-light); }
.nav .links a.active { color: var(--gold-light); font-weight: 600; }
.nav .links a.btn-nav {
  background: var(--gold);
  color: var(--dark);
  padding: 7px 18px;
  border-radius: 20px;
  font-weight: 600;
}

/* 移动端导航适配 */
@media (max-width: 768px) {
  .nav { padding: 0 12px; height: 52px; }
  .nav .logo { font-size: 15px; gap: 6px; letter-spacing: 0; }
  .nav .logo .badge { font-size: 9px; padding: 1px 5px; border-radius: 3px; }
  .nav .links a { margin-left: 10px; font-size: 13px; }
  .nav .links a.btn-nav { padding: 5px 12px; font-size: 13px; }
}
@media (max-width: 400px) {
  .nav .logo { font-size: 14px; }
  .nav .logo .badge { font-size: 8px; padding: 1px 4px; }
  .nav .links a { margin-left: 8px; font-size: 12px; }
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* ===== Hero 区 ===== */
.hero {
  background: linear-gradient(135deg, #0F1E3D 0%, #1B2A4A 55%, #2A3D66 100%);
  color: #fff;
  padding: 60px 18px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 300px; height: 300px;
  border: 1px solid rgba(201,162,75,0.25);
  border-radius: 50%;
}
.hero .eyebrow {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.hero h1 .gold { color: var(--gold-light); }
.hero .slogan { font-size: 17px; color: rgba(255,255,255,0.8); letter-spacing: 1px; margin-bottom: 28px; }
.hero .metrics {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero .metric .num { font-size: 28px; font-weight: 700; color: var(--gold-light); }
.hero .metric .label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* ===== 区块标题 ===== */
.section { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title h2 { font-size: 26px; color: var(--dark); font-weight: 700; letter-spacing: 1px; }
.section-title .en { font-size: 12px; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 6px; }
.section-title .line {
  width: 40px; height: 3px; background: var(--gold); margin: 12px auto 0; border-radius: 2px;
}

/* ===== 学院架构 ===== */
.org-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .org-grid { grid-template-columns: repeat(2, 1fr); } }
.org-card {
  background: var(--card);
  border-radius: 14px;
  padding: 26px 18px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(15,30,61,0.06);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}
.org-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(15,30,61,0.12); }
.org-card .icon { font-size: 34px; margin-bottom: 12px; }
.org-card h3 { font-size: 17px; color: var(--dark); margin-bottom: 6px; font-weight: 700; }
.org-card .tag { font-size: 11px; color: var(--gray); margin-bottom: 8px; }
.org-card .desc { font-size: 12px; color: var(--gray); line-height: 1.6; }
.org-card.active {
  border: 2px solid var(--gold);
  position: relative;
  background: linear-gradient(180deg, #FFFDF7, #fff);
}
.org-card.active .active-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--dark);
  font-size: 11px; padding: 2px 12px; border-radius: 10px; font-weight: 600;
}
.org-card.soon { opacity: 0.7; }

/* ===== 课程卡片 ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.course-card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,30,61,0.06);
  transition: transform .2s, box-shadow .2s;
  display: block;
  border: 1px solid var(--border);
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(15,30,61,0.14); }
.course-cover {
  height: 130px;
  background: linear-gradient(135deg, #1B2A4A, #2A3D66);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
}
.course-cover .price-tag {
  position: absolute; right: 12px; bottom: 12px;
  background: var(--gold); color: var(--dark);
  font-size: 15px; font-weight: 700;
  padding: 2px 12px; border-radius: 6px;
  letter-spacing: 0;
}
.course-info { padding: 16px; }
.course-info h3 { font-size: 16px; color: var(--dark); margin-bottom: 6px; font-weight: 700; }
.course-info .sub { font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all .2s;
}
.btn:hover { background: var(--primary-light); color: #fff; }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); color: var(--dark); }
.btn-block { display: block; width: 100%; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== 表单 ===== */
.form-card {
  background: var(--card);
  border-radius: 14px;
  padding: 28px;
  max-width: 400px;
  margin: 30px auto;
  box-shadow: 0 2px 16px rgba(15,30,61,0.08);
}
.form-card h2 { font-size: 22px; color: var(--dark); margin-bottom: 22px; text-align: center; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--dark); font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}
.form-group input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,0.12); }
.error { color: #c0392b; font-size: 13px; text-align: center; margin-bottom: 12px; }

/* ===== 课程详情页 ===== */
.detail-hero {
  background: linear-gradient(135deg, #0F1E3D, #2A3D66);
  color: #fff;
  padding: 44px 18px;
}
.detail-hero .inner { max-width: 1080px; margin: 0 auto; }
.detail-hero .cate { color: var(--gold-light); font-size: 13px; letter-spacing: 2px; margin-bottom: 10px; }
.detail-hero h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.detail-hero .sub { color: rgba(255,255,255,0.8); font-size: 15px; margin-bottom: 18px; }
.detail-hero .price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.detail-hero .price { font-size: 34px; font-weight: 700; color: var(--gold-light); }
.detail-hero .origin { font-size: 16px; color: rgba(255,255,255,0.5); text-decoration: line-through; }
.detail-body { max-width: 1080px; margin: -20px auto 0; padding: 0 18px; }
.detail-card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(15,30,61,0.1);
  margin-bottom: 20px;
}
.detail-card h2 { font-size: 18px; color: var(--dark); margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--gold); }
.detail-card .desc { font-size: 14px; color: var(--text); white-space: pre-line; line-height: 1.8; }

.lesson-list { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(15,30,61,0.06); }
.lesson-item {
  display: flex;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.lesson-item:last-child { border-bottom: none; }
.lesson-item .num {
  width: 30px; height: 30px;
  background: #F2EEE5;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
}
.lesson-item.locked { color: var(--gray); }

/* ===== 学习页 ===== */
.learn-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  padding: 24px 0;
}
@media (max-width: 768px) { .learn-layout { grid-template-columns: 1fr; } }
.video-box {
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.video-box video { width: 100%; display: block; max-height: 62vh; }
.lesson-title { font-size: 20px; color: var(--dark); font-weight: 700; margin-bottom: 8px; }
.lesson-doc { margin-top: 14px; }
.sidebar {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(15,30,61,0.06);
  height: fit-content;
}
.sidebar h3 { font-size: 15px; color: var(--dark); margin-bottom: 14px; font-weight: 700; }
.sidebar .lesson-item { padding: 11px 8px; border-radius: 8px; cursor: pointer; border-bottom: none; }
.sidebar .lesson-item.active { background: #F2EEE5; color: var(--primary); font-weight: 700; }
.sidebar .lesson-item:hover { background: #FAF8F3; }

/* ===== 兑换码 ===== */
.redeem-box {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(15,30,61,0.06);
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.redeem-box input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
}

/* ===== 其他 ===== */
.tip {
  background: #FDF7EA;
  color: #8a6d1a;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  border-left: 3px solid var(--gold);
}
.empty { text-align: center; color: var(--gray); padding: 50px 0; }
.mt16 { margin-top: 16px; }
.footer {
  text-align: center;
  padding: 30px 18px;
  color: var(--gray);
  font-size: 13px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
