.course-page .site-header {
  background: rgba(3, 8, 20, 0.88);
}

.course-hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(24, 200, 255, 0.12), transparent 24rem),
    linear-gradient(145deg, rgba(8, 20, 42, 0.95), rgba(3, 9, 22, 0.98));
}

.course-hero .hero-grid {
  align-items: stretch;
}

.course-hero .hero-visual {
  min-height: auto;
  border-radius: 12px;
  overflow: hidden;
}

.hero-main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
}

.course-hero h1 {
  max-width: 620px;
}

.course-gradient-title {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, #18c8ff, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
}

.course-shell {
  padding-bottom: 28px;
}

.course-panel {
  padding: 32px;
  background:
    radial-gradient(circle at 82% 12%, rgba(24, 200, 255, 0.12), transparent 24rem),
    linear-gradient(145deg, rgba(8, 20, 42, 0.9), rgba(3, 9, 22, 0.9));
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 12px;
  box-shadow: inset 0 0 34px rgba(24, 200, 255, 0.05);
}

.course-intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.5fr);
  gap: 32px;
  align-items: stretch;
}

.course-block-title {
  position: relative;
  margin-bottom: 22px;
  padding-left: 20px;
  font-size: 26px;
}

.course-block-title::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 5px;
  content: "";
  background: linear-gradient(180deg, var(--primary), var(--purple));
  border-radius: 5px;
  box-shadow: 0 0 14px rgba(24, 200, 255, 0.7);
}

.course-copy p {
  color: var(--text-sub);
  line-height: 1.95;
}

.course-copy .course-lead {
  color: #dff7ff;
  font-size: 17px;
  font-weight: 800;
}

.course-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.course-highlight,
.course-module-card,
.course-audience,
.course-method {
  background: rgba(10, 25, 50, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 8px;
  box-shadow: inset 0 0 24px rgba(24, 200, 255, 0.05);
}

.course-highlight {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 16px;
  align-items: start;
  min-height: 190px;
  padding: 0 0 24px;
  overflow: hidden;
}

.course-highlight-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.course-highlight > div {
  padding: 0 18px;
}

.has-entry {
  position: relative;
}

.entry-tip {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: #8fe9ff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(24, 200, 255, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(24, 200, 255, 0.16);
}

.entry-tip::after {
  margin-left: 5px;
  content: ">";
}

.course-highlight:hover {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 18px 45px rgba(0, 180, 255, 0.16);
  transform: translateY(-5px);
}

.course-highlight h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.course-highlight p {
  margin-bottom: 12px;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.55;
}

.feature-action {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #8fe9ff;
  font-size: 13px;
  font-weight: 900;
  background: rgba(24, 200, 255, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(24, 200, 255, 0.16);
}

.feature-action::after {
  margin-left: 5px;
  content: ">";
}

.course-modules-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.course-module-card {
  position: relative;
  min-height: 220px;
  padding: 22px 18px 54px;
  text-align: center;
  border-color: currentColor;
}

.course-module-card .module-number {
  display: block;
  margin-bottom: 10px;
  color: currentColor;
  font-size: 24px;
  font-weight: 900;
}

.course-module-card .module-icon {
  margin: 0 auto 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  color: currentColor;
}

.course-module-card .entry-tip {
  left: 50%;
  transform: translateX(-50%);
  right: auto;
}

.course-module-card h3 {
  margin-bottom: 14px;
  color: currentColor;
  font-size: 19px;
}

.course-module-card p {
  margin-bottom: 0;
  color: var(--text-sub);
  line-height: 1.65;
}

.green {
  color: #14b8a6;
}

.course-two-col {
  display: grid;
  grid-template-columns: 0.75fr 1.75fr;
  gap: 24px;
}

.course-audience,
.course-method {
  padding: 28px;
}

.course-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.course-list li {
  position: relative;
  padding-left: 34px;
  color: #dcecff;
  line-height: 1.55;
}

.course-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  content: "";
  background: linear-gradient(135deg, rgba(24, 200, 255, 0.18), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(34, 211, 238, 0.36);
  border-radius: 50%;
}

.course-method-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 26px;
  align-items: center;
}

.training-scene {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(24, 200, 255, 0.26);
  border-radius: 8px;
}

.training-scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.course-price-card {
  position: relative;
  padding-top: 24px;
}

.course-price-card .module-icon {
  width: 50px;
  height: 50px;
  margin: 0 0 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  color: currentColor;
}

.course-page .bonus {
  padding-top: 0;
}

.course-cta-panel {
  grid-template-columns: 360px 1fr;
}

.course-cta-art {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.course-cta-art-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.course-cta-panel .cta-copy {
  display: grid;
  align-content: center;
}

.course-footer-note {
  padding: 14px 0;
  color: #8094b5;
  font-size: 13px;
  text-align: center;
  background: #020612;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.case-card .case-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1200px) {
  .course-modules-grid,
  .course-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .course-intro-grid,
  .course-two-col,
  .course-method-grid,
  .course-cta-panel {
    grid-template-columns: 1fr;
  }

  .course-highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .course-hero .hero-grid {
    grid-template-columns: 1fr;
  }

  .course-hero .hero-visual {
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .course-hero .hero-visual {
    display: none;
  }

  .course-panel {
    padding: 22px;
  }

  .course-highlight-grid {
    grid-template-columns: 1fr;
  }

  .course-modules-grid,
  .course-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-module-card {
    min-height: auto;
  }

  .course-pricing-grid {
    gap: 12px;
  }

  .course-price-card {
    padding: 20px 16px;
  }

  .course-price-card .price {
    font-size: 28px;
  }

  .course-price-card h3 {
    font-size: 18px;
  }

  .entry-tip {
    right: 10px;
    bottom: 10px;
    font-size: 11px;
  }

  .training-scene {
    min-height: 200px;
  }
}

.chip-topic-page .site-header {
  background: rgba(3, 8, 20, 0.88);
}

.topic-hero {
  padding-top: 78px;
  padding-bottom: 70px;
  background:
    radial-gradient(circle at 78% 28%, rgba(24, 200, 255, 0.18), transparent 30rem),
    linear-gradient(135deg, rgba(3, 8, 20, 0.98), rgba(5, 19, 44, 0.94));
}

.topic-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 46px;
  align-items: center;
}

.topic-hero h1 {
  font-size: clamp(48px, 5vw, 76px);
}

.topic-tags,
.custom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.topic-tags span,
.custom-tags span {
  padding: 8px 13px;
  color: #9befff;
  background: rgba(24, 200, 255, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  font-weight: 800;
}

.chip-matrix {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  min-height: 420px;
  padding: 32px;
  place-content: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(24, 200, 255, 0.24), transparent 12rem),
    rgba(10, 25, 50, 0.7);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 12px;
  overflow: hidden;
}

.chip-matrix::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(34, 211, 238, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}

.matrix-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 112px;
  height: 84px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(24, 200, 255, 0.9), rgba(47, 123, 255, 0.7));
  border: 1px solid rgba(143, 233, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 0 46px rgba(24, 200, 255, 0.48);
  transform: translate(-50%, -50%) perspective(280px) rotateX(52deg) rotateZ(-8deg);
  font-size: 30px;
  font-weight: 950;
}

.chip-matrix span {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 82px;
  place-items: center;
  color: #9befff;
  background: rgba(5, 16, 36, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: inset 0 0 18px rgba(24, 200, 255, 0.08);
}

.topic-section {
  padding: 48px 0;
}

.topic-title {
  margin-bottom: 26px;
  font-size: clamp(28px, 3vw, 42px);
}

.topic-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.topic-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.topic-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.topic-grid.five {
  grid-template-columns: repeat(5, 1fr);
}

.topic-card,
.project-card,
.chip-type-card,
.topic-final-panel {
  background:
    radial-gradient(circle at 92% 12%, rgba(24, 200, 255, 0.08), transparent 14rem),
    rgba(10, 25, 50, 0.78);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 8px;
  box-shadow: inset 0 0 28px rgba(24, 200, 255, 0.04);
}

.topic-card,
.project-card {
  padding: 20px;
  cursor: pointer;
}

.topic-card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.topic-card-link:hover .topic-card,
.topic-card-link:hover .project-card {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 18px 45px rgba(0, 180, 255, 0.18);
  transform: translateY(-6px);
}

.topic-card h2,
.topic-card h3,
.project-card h3 {
  margin-bottom: 12px;
}

.topic-card p,
.project-card p,
.chip-type-card p,
.chip-type-card li {
  color: var(--text-sub);
  line-height: 1.75;
}

.chip-type-list {
  display: grid;
  gap: 22px;
}

.chip-type-card {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 1.25fr;
  gap: 20px;
  padding: 26px;
}

.chip-type-card > div:first-child {
  grid-row: span 2;
}

.chip-type-card strong {
  display: block;
  margin-bottom: 8px;
  color: #8fe9ff;
  font-size: 18px;
}

.chip-type-card ul,
.topic-list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 0;
}

.type-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 950;
}

.type-power {
  color: #061326;
  background: #f59e0b;
}

.type-digital {
  color: #061326;
  background: #22d3ee;
}

.type-sensor {
  color: #061326;
  background: #8b5cf6;
}

.type-memory {
  color: #061326;
  background: #ec4899;
}

.type-mcu {
  color: #061326;
  background: #14b8a6;
}

.type-adc {
  color: #061326;
  background: #2f7bff;
}

.type-interface {
  color: #061326;
  background: #18c8ff;
}

.excerpt-three-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.excerpt-five-lines {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breakthrough-table {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 8px;
}

.breakthrough-table > div {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.breakthrough-table strong,
.breakthrough-table span {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.16);
}

.breakthrough-table strong {
  color: #fff;
  background: rgba(24, 200, 255, 0.14);
}

.breakthrough-table span {
  color: var(--text-sub);
  background: rgba(10, 25, 50, 0.62);
}

.topic-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
}

.topic-final-cta {
  padding: 48px 0 68px;
}

.topic-final-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 70% 40%, rgba(24, 200, 255, 0.24), transparent 18rem),
    linear-gradient(100deg, rgba(8, 35, 78, 0.92), rgba(18, 91, 190, 0.74));
}

.topic-final-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 38px);
}

.topic-final-panel p {
  margin-bottom: 0;
  color: #d7efff;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .topic-hero-grid,
  .topic-split,
  .topic-final-panel {
    grid-template-columns: 1fr;
  }

  .topic-grid.four,
  .topic-grid.five {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .chip-type-card {
    grid-template-columns: 1fr 1fr;
  }

  .chip-type-card > div:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .chip-matrix,
  .chip-type-card {
    grid-template-columns: 1fr;
  }

  .topic-grid.four,
  .topic-grid.five,
  .topic-grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .breakthrough-table > div {
    grid-template-columns: 1fr;
  }

  .breakthrough-table > div strong,
  .breakthrough-table > div span {
    grid-column: 1;
    border-bottom: none;
    padding: 12px 16px;
  }

  .breakthrough-table > div:first-child strong {
    display: none;
  }

  .breakthrough-table > div:not(:first-child) {
    border-bottom: 1px solid rgba(34, 211, 238, 0.16);
    padding-bottom: 12px;
    margin-bottom: 8px;
  }

  .breakthrough-table > div:not(:first-child) span:first-child {
    font-weight: 700;
    color: #8fe9ff;
    background: rgba(24, 200, 255, 0.1);
    margin-bottom: 4px;
  }

  .chip-matrix {
    min-height: auto;
  }

  .matrix-core {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto;
  }

  .hero-main-image{
    display: none;
  }
}

/* 案例中心页面样式 */
.case-hero-visual {
  position: relative;
  min-height: 430px;
}

.case-hero-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 38%, rgba(125, 211, 252, 0.45), transparent 34%),
    linear-gradient(135deg, rgba(10, 35, 66, 0.9), rgba(19, 32, 69, 0.9));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28), inset 0 0 42px rgba(34, 211, 238, 0.12);
}

.case-center-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-center-category-card {
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8, 24, 46, 0.95), rgba(8, 18, 36, 0.86));
  box-shadow: inset 0 0 34px rgba(14, 165, 233, 0.08);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.case-center-category-card:hover {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 18px 45px rgba(0, 180, 255, 0.18);
  transform: translateY(-5px);
}

.case-center-category-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.case-center-category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-center-category-icon {
  display: none;
}

.case-center-category-count {
  display: none;
}

.case-training-panel p {
  line-height: 1.95;
  margin-bottom: 20px;
}

.case-training-panel .custom-tags {
  margin-bottom: 28px;
}

.training-panel-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.training-panel-actions .btn {
  min-width: 150px;
}

@media (max-width: 992px) {
  .case-hero-main-image {
    height: 320px;
  }

  .case-center-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .case-center-category-card p {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 768px) {
  .case-hero-main-image {
    height: 260px;
  }

  .case-center-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .case-center-category-card p {
    -webkit-line-clamp: 3;
  }

  .training-panel-actions {
    flex-direction: column;
  }

  .training-panel-actions .btn {
    width: 100%;
    text-align: center;
  }
}
