/* ================================================
   COURSES CENTER -- Hero Banner
   y=130, h=494px
   ================================================ */
.cc-hero {
  position: relative;
  height: 25.7292vw; /* 494/1920 */
  overflow: hidden;
  background: #0a1628;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-hero-bg {
  position: absolute;
  /*inset: 0;*/
}

.cc-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.cc-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cc-hero-title {
  font-size: 4.1667vw; /* 80/1920 */
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.0833vw; /* 1.6/1920 */
  line-height: 5.2083vw; /* 100/1920 */
}

.cc-hero-subtitle {
  font-family: var(--font-display);
  font-size: 2.0833vw; /* 40/1920 */
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.2708vw; /* 5.2/1920 */
  line-height: 5.2083vw; /* 100/1920 */
  margin-top: 0.5208vw;
}

/* ================================================
   COURSES CENTER -- 课程体系
   y=624, h=1282px
   ================================================ */
.cc-system {
  padding: 4.1667vw 0 3.125vw;
  background: var(--color-white);
}

.cc-system-title-line1,
.cc-system-title-line2 {
  font-size: 2.0833vw; /* 40/1920 */
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: 0.2083vw; /* 4/1920 */
  text-align: center;
}

.cc-system-title-line2 {
  margin-top: 1.042vw; /* 20/1920 */
}

.cc-system-traits {
  text-align: center;
  margin: 2.6042vw auto 1.5625vw;
}

.cc-system-traits-img {
  max-width: 60.0521vw; /* ~1153px */
  width: 100%;
  margin: 0 auto;
}

.cc-system-descriptions {
  display: flex;
  gap: 2.0833vw;
  margin-bottom: 3.125vw;
}

.cc-system-desc-item {
  flex: 1;
  text-align: center;
}

.cc-system-desc-item p {
  font-size: 1.0417vw; /* 20/1920 */
  font-weight: 500;
  color: #777777;
  line-height: 2.0833vw; /* 40/1920 */
  max-width: 18.75vw;
  margin: 0 auto;
}

/* ================================================
   Tab Bar
   y=1519, h=83px, w=644px
   ================================================ */
.cc-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EEF0F4;
  border-radius: 0.9375vw; /* 18/1920 */
  height: 4.3229vw; /* 83/1920 */
  padding: 0.833vw 0.729vw;
  gap: 5.2083vw; /* ~100px */
  margin: 0 auto 3.125vw;
  width: 33.698vw; /* 644/1920 */
}

.cc-tab {
  font-size: 1.0417vw; /* 20/1920 */
  font-weight: 500;
  color: #777777;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4167vw 1.0417vw;
  border-radius: 0.6771vw; /* 13/1920 */
  transition: all 0.3s;
  white-space: nowrap;
}

.cc-tab.active {
  background: #3660F3;
  color: var(--color-white);
  height: 2.8646vw; /* 55/1920 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5625vw;
}

.cc-tab:hover:not(.active) {
  color: var(--color-primary);
}

/* ================================================
   Skill Indicators (2x2 grid)
   ================================================ */
.cc-system-indicators {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.0833vw 6.25vw;
  max-width: 41.6667vw;
  margin: 0 auto;
}

.cc-indicator {
  display: flex;
  align-items: center;
  gap: 0.7292vw;
}

.cc-indicator-icon {
  width: 3.2292vw; /* 62/1920 */
  height: 3.2292vw;
  flex-shrink: 0;
}

.cc-indicator-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cc-indicator-label {
  font-size: 1.0417vw; /* 20/1920 */
  font-weight: 500;
  color: #777777;
  white-space: nowrap;
  margin-right: 0.5208vw;
}

.cc-indicator-stars {
  display: flex;
  gap: 0.2604vw; /* 5/1920 */
  align-items: center;
}

.cc-star {
  width: 1.0417vw; /* 20/1920 */
  height: 1.0417vw;
  object-fit: contain;
}

/* ================================================
   Watermark
   y=1966, 128px
   ================================================ */
.cc-watermark-wrapper {
  display: none; /* watermark moved inside .cc-featured as pseudo-element */
}

/* ================================================
   COURSES CENTER -- 精品课程介绍
   y=1906, h=1120px, bg=#F3F8FE
   ================================================ */
.cc-featured {
  position: relative;
  padding: 4.1667vw 0 5.2083vw;
  background: #F3F8FE;
  border: 1px solid #F1F9FF;
  overflow: hidden;
}

.cc-featured::before {
  content: 'Course Introduction';
  position: absolute;
  top: -1.0417vw;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 6.6667vw; /* 128/1920 */
  font-weight: 700;
  color: rgba(190, 190, 190, 0.16);
  text-transform: uppercase;
  letter-spacing: 0.6667vw; /* 12.8/1920 */
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  margin-top: 1.25vw;
}

.cc-featured > .container {
  position: relative;
  z-index: 1;
}

.cc-featured-item {
  display: flex;
  align-items: center;
  gap: 10.2083vw; /* 100/1920 */
  margin-top: 3.125vw;
  max-width: 60vw;
  margin-left: auto;
  margin-right: auto;
}

.cc-featured-item--reverse {
  flex-direction: row;
  max-width: 52.0833vw; /* 1000/1920 */
  gap: 5.2083vw; /* 100/1920 */
}

.cc-featured-text {
  flex: 0 0 22.9167vw; /* 440/1920 — same as image width */
}

.cc-featured-num {
  font-size: 3.3333vw; /* 64/1920 */
  font-weight: 900;
  color: #3D65F3;
  line-height: 1;
  display: block;
  margin-bottom: 0.5208vw;
}

.cc-featured-name {
  font-size: 2.0833vw; /* 40/1920 */
  font-weight: 700;
  color: #3D65F3;
  letter-spacing: 0.2083vw; /* 4/1920 */
  line-height: 2.7604vw;
  margin-bottom: 1.0417vw;
}

.cc-featured-desc {
  font-size: 0.9375vw; /* 18/1920 */
  font-weight: 500;
  color: #454545;
  letter-spacing: 0.0469vw; /* 0.9/1920 */
  line-height: 1.7188vw; /* 33/1920 */
}

.cc-featured-img {
  flex: 0 0 22.9167vw; /* 440/1920 — same as text width */
  border-radius: 1.0417vw;
  overflow: hidden;
}

.cc-featured-img--large {
  flex: 0 0 22.9167vw; /* same width for alignment */
}

.cc-featured-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.0417vw;
  object-fit: contain;
}

/* ================================================
   COURSES CENTER -- 课程大纲
   y=3026, h=1612px
   ================================================ */
.cc-outline {
  padding: 5.2083vw 0 5.2083vw;
  background: var(--color-white) url('../assets/02-courses-center/bg/outline-bg.webp') center / cover no-repeat;
}

.cc-outline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.563vw 1.3021vw;
  margin-top: 2.6042vw;
}

.cc-outline-card {
  position: relative;
  border-radius: 1.5625vw; /* 30/1920 */
  overflow: hidden;
  height: 20.8333vw; /* 400/1920 */
  display: flex;
  padding: 0 2.0833vw 2.0833vw 1.823vw;
}

.cc-outline-card-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 1.667vw;
  position: relative;
  z-index: 2;
  height: 100%;
}

.cc-outline-card-ghost {
  font-size: 6.6667vw; /* 128/1920 */
  font-weight: 900;
  color: rgba(255, 255, 255, 0.28);
  line-height: 0.8;
  flex-shrink: 0;
  padding-top: 2.0883vw;
}

.cc-outline-card-right {
  display: flex;
  flex-direction: column;
  padding-top: 5.541vw;
  flex: 1;
  height: 100%;
}

.cc-outline-card-title {
  font-size: 1.6667vw; /* 32/1920 */
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.1667vw; /* 3.2/1920 */
  margin-bottom: 0.5208vw;
}

.cc-outline-card-desc {
  font-size: 0.9375vw; /* 18/1920 */
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.5625vw;
}

.cc-outline-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9.0625vw; /* 174/1920 */
  height: 2.3438vw; /* 45/1920 */
  background: var(--color-white);
  border-radius: 1.1719vw;
  color: #6581F7;
  font-size: 1.25vw; /* 24/1920 */
  font-weight: 900;
  box-shadow: inset 0 0.1042vw 0.2083vw rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: opacity 0.3s;
  margin-top: auto;
}

.cc-outline-card-btn:hover {
  opacity: 0.9;
}

.cc-outline-card-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16.5625vw; /* 318/1920 */
  height: 8.9063vw; /* 171/1920 */
  border-radius: 1.8229vw; /* 35/1920 */
  overflow: hidden;
  z-index: 1;
}

.cc-outline-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* Tint blue icons to match each card's color */
.cc-outline-card--01 .cc-outline-card-img img { filter: none; }
.cc-outline-card--02 .cc-outline-card-img img { filter: none; }
.cc-outline-card--03 .cc-outline-card-img img { filter: hue-rotate(170deg) saturate(2); }
.cc-outline-card--04 .cc-outline-card-img img { filter: hue-rotate(80deg) saturate(1.5); }
.cc-outline-card--05 .cc-outline-card-img img { filter: hue-rotate(140deg) saturate(1.8); }


.cc-outline-card-img--large {
  width: 24.7396vw; /* 475/1920 */
  height: 16.25vw; /* 312/1920 */
}

/* Card gradients */
.cc-outline-card--01 { background: linear-gradient(135deg, #3660F3, #D0CDFF); }
.cc-outline-card--02 { background: linear-gradient(135deg, #36AEF3, #CDFAFF); }
.cc-outline-card--03 { background: linear-gradient(135deg, #F39436, #F7CE86); }
.cc-outline-card--04 { background: linear-gradient(135deg, #E466EF, #FFCDF1); }
.cc-outline-card--05 { background: linear-gradient(135deg, #F3363F, #FFCDCE); }

.cc-outline-card--full {
  grid-column: 1 / -1;
  height: 20.8333vw; /* 400/1920 */
}

/* ================================================
   COURSES CENTER -- 实战训练营
   y=4638, h=2040px
   ================================================ */
.cc-camp {
  padding: 5.2083vw 0 6.25vw;
  background: var(--color-white);
  border: 1px solid #F1F9FF;
}

.cc-camp-header {
  margin-bottom: 2.6042vw;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.cc-camp-num {
  font-size: 3.3333vw; /* 64/1920 */
  font-weight: 900;
  color: #3D65F3;
  line-height: 1;
  display: inline;
}

.cc-camp-title {
  font-size: 2.0833vw; /* 40/1920 */
  font-weight: 700;
  color: #3D65F3;
  letter-spacing: 0.2083vw; /* 4/1920 */
  line-height: 2.7604vw;
  display: inline;
  margin-left: 0.8333vw; /* 16px */
}

.cc-camp-desc {
  font-size: 1.3542vw; /* 26/1920 */
  font-weight: 500;
  color: #777777;
  letter-spacing: 0.1354vw; /* 2.6/1920 */
  line-height: 2.0833vw;
  margin-top: 2.396vw;
  width: 100%; /* force new line in flex-wrap */
}

/* Tag pills */
.cc-camp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.0417vw;
  margin-bottom: 5.469vw;
}

.cc-camp-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.2292vw; /* 62/1920 */
  min-width: 10.6771vw; /* ~205px */
  padding: 0 1.5625vw;
  background: linear-gradient(135deg, #D4DCEF, #E9ECF7);
  border-radius: 3.3333vw; /* 64/1920 */
  font-size: 1.6667vw; /* 32/1920 */
  font-weight: 700;
  color: #3D65F3;
  white-space: nowrap;
}

.cc-camp-outline-title {
  font-size: 2.0833vw; /* 40/1920 */
  font-weight: 700;
  color: #3D65F3;
  margin-bottom: 1.5625vw;
}

.cc-camp-list {
  display: flex;
  flex-direction: column;
  gap: 1.5625vw;
}

.cc-camp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #D2DAEE, #EBEEF8);
  border-radius: 1.5625vw; /* 30/1920 */
  padding: 2.656vw 1.4896vw 2.8125vw 4.427vw;
  width: 73.75vw; /* 1416/1920 */
  min-height: 13.6458vw; /* 262/1920 */
  position: relative;
}

.cc-camp-item:nth-child(2) {
  min-height: 11.7188vw; /* 225/1920 */
}

.cc-camp-item-text {
  display: flex;
  align-items: flex-start;
  gap: 1.5625vw;
  flex: 1;
  position: relative;
  z-index: 2;
}

.cc-camp-item-num {
  font-size: 6.6667vw; /* 128/1920 */
  font-weight: 900;
  background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  min-width: 5.2083vw;
}

.cc-camp-item-name {
  font-size: 1.6667vw; /* 32/1920 */
  font-weight: 700;
  color: #3D65F3;
  letter-spacing: 0.0833vw;
  line-height: 2.3438vw;
  margin-bottom: 0.5208vw;
}

.cc-camp-item-desc {
  font-size: 0.9375vw; /* 18/1920 */
  font-weight: 500;
  color: #777777;
  line-height: 1.5625vw;
}

.cc-camp-item-img {
  flex: 0 0 14.8438vw; /* 285/1920 */
  height: 13.6458vw; /* 262/1920 */
  border-radius: 0.7813vw;
  overflow: hidden;
  margin-left: 2.0833vw;
}

.cc-camp-item:nth-child(2) .cc-camp-item-img {
  height: 11.6667vw; /* 224/1920 */
}

.cc-camp-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* ================================================
   COURSES CENTER -- Responsive (max-width: 1023px)
   ================================================ */
@media (max-width: 1023px) {

  /* -- Global overflow prevention -- */
  .cc-hero,
  .cc-system,
  .cc-featured,
  .cc-outline,
  .cc-camp {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* ---- Hero ---- */
  .cc-hero {
    height: auto;
    min-height: auto;
    padding: 50px 0;
  }

  .cc-hero-title {
    font-size: 28px;
    line-height: 38px;
    letter-spacing: 1px;
  }

  .cc-hero-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    line-height: 24px;
    margin-top: 8px;
  }

  /* ---- Course System ---- */
  .cc-system {
    padding: 36px 0 32px;
  }

  .cc-system-title-line1,
  .cc-system-title-line2 {
    font-size: 22px;
    letter-spacing: 2px;
    line-height: 32px;
  }

  .cc-system-title-line2 {
    margin-top: 8px;
  }

  .cc-system-traits {
    margin: 24px auto 20px;
  }

  .cc-system-traits-img {
    max-width: 100%;
  }

  .cc-system-descriptions {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }

  .cc-system-desc-item p {
    font-size: 14px;
    line-height: 24px;
    max-width: none;
  }

  /* ---- Tabs Bar ---- */
  .cc-tabs-bar {
    width: 100%;
    height: auto;
    min-height: 48px;
    border-radius: 14px;
    padding: 8px 12px;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cc-tab {
    font-size: 14px;
    padding: 6px 14px;
  }

  .cc-tab.active {
    height: 36px;
    padding: 0 18px;
    border-radius: 10px;
  }

  /* ---- Skill Indicators ---- */
  .cc-system-indicators {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 100%;
  }

  .cc-indicator {
    gap: 10px;
  }

  .cc-indicator-icon {
    width: 32px;
    height: 32px;
  }

  .cc-indicator-label {
    font-size: 14px;
    min-width: 50px;
    margin-right: 6px;
  }

  .cc-indicator-stars {
    gap: 3px;
  }

  .cc-star {
    width: 14px;
    height: 14px;
  }

  /* ---- Watermark ---- */
  .cc-watermark-wrapper {
    display: none;
  }

  .cc-featured::before {
    font-size: 36px;
    letter-spacing: 4px;
    top: -4px;
  }

  /* ---- Featured Courses ---- */
  .cc-featured {
    padding: 36px 0;
  }

  .cc-featured-item,
  .cc-featured-item--reverse {
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
    max-width: 100%;
  }

  .cc-featured-text {
    flex: none;
    width: 100%;
  }

  .cc-featured-num {
    font-size: 32px;
  }

  .cc-featured-name {
    font-size: 22px;
    line-height: 32px;
    letter-spacing: 2px;
  }

  .cc-featured-desc {
    font-size: 14px;
    line-height: 24px;
  }

  .cc-featured-img,
  .cc-featured-img--large {
    flex: none;
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
  }

  .cc-featured-img img {
    width: 100%;
    height: auto;
    border-radius: 14px;
  }

  /* ---- Course Outline ---- */
  .cc-outline {
    padding: 36px 0;
  }

  .cc-outline-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .cc-outline-card {
    height: auto;
    min-height: auto;
    border-radius: 14px;
    padding: 20px;
    flex-direction: column;
  }

  .cc-outline-card--full {
    grid-column: 1;
    height: auto;
  }

  .cc-outline-card-content {
    flex-direction: column;
    gap: 0;
  }

  .cc-outline-card-ghost {
    font-size: 48px;
    padding-top: 0;
  }

  .cc-outline-card-right {
    padding-top: 8px;
    flex: none;
    width: 100%;
  }

  .cc-outline-card-title {
    font-size: 20px;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 8px;
  }

  .cc-outline-card-desc {
    font-size: 14px;
    line-height: 24px;
    max-width: none;
  }

  .cc-outline-card-btn {
    width: auto;
    min-width: 160px;
    height: 42px;
    font-size: 15px;
    border-radius: 21px;
    margin-top: 16px;
    display: inline-flex;
  }

  .cc-outline-card-img {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    height: 140px;
    border-radius: 12px;
    margin-top: 16px;
  }

  .cc-outline-card-img--large {
    width: 100%;
    height: 160px;
  }

  /* ---- Camp Section ---- */
  .cc-camp {
    padding: 36px 0 40px;
    border: none;
  }

  .cc-camp-header {
    margin-bottom: 20px;
  }

  .cc-camp-num {
    font-size: 32px;
  }

  .cc-camp-title {
    font-size: 22px;
    line-height: 32px;
    letter-spacing: 2px;
    margin-left: 8px;
  }

  .cc-camp-desc {
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 1px;
    max-width: none;
    margin-top: 12px;
  }

  .cc-camp-tags {
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }

  .cc-camp-tag {
    height: 36px;
    min-width: auto;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 36px;
  }

  .cc-camp-outline-title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .cc-camp-list {
    gap: 16px;
  }

  .cc-camp-item {
    flex-direction: column;
    padding: 20px;
    border-radius: 14px;
    gap: 16px;
    width: 100%;
    min-height: auto;
  }

  .cc-camp-item:nth-child(2) {
    min-height: auto;
  }

  .cc-camp-item-text {
    gap: 10px;
  }

  .cc-camp-item-num {
    font-size: 36px;
    min-width: 36px;
  }

  .cc-camp-item-name {
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0.5px;
  }

  .cc-camp-item-desc {
    font-size: 14px;
    line-height: 24px;
    max-width: none;
  }

  .cc-camp-item-img {
    flex: none;
    width: 100%;
    height: 180px;
    margin-left: 0;
    border-radius: 12px;
  }

  .cc-camp-item:nth-child(2) .cc-camp-item-img {
    height: 180px;
  }

  .cc-camp-item-img img {
    object-fit: cover;
  }
}
