/* =========================================================
   NOAH AI SCHOOL HOME UI V10 LIVEFIX - 2026-06-27
   目的：HOME 首页首屏头条、今日推荐使用 Wbcourse API 的实时课程数据，
   让首页课程图、价格与详情页保持一致。
========================================================= */
body.noah-v10-active .wb-headline-grid,
body.noah-v10-active .noah-v7-headline-twins,
body.noah-v10-active .noah-v8-headline-twins,
body.noah-v10-active .noah-v9-headline-twins {
  display: none !important;
}
body.noah-v10-active .wb-today-feed,
body.noah-v10-active .wb-today-dynamic,
body.noah-v10-active .noah-v7-today-grid,
body.noah-v10-active .noah-v8-today-grid,
body.noah-v10-active .noah-v9-today-grid {
  display: none !important;
}
.noah-v10-headline-twins,
.noah-v10-today-grid {
  box-sizing: border-box;
}
.noah-v10-headline-twins {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  width: 100%;
  min-height: 360px;
  margin-top: 18px;
}
.noah-v10-headline-card {
  position: relative;
  display: block;
  min-height: 166px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg,#eef7ff,#f7fbff);
  border: 1px solid rgba(21, 103, 255, .14);
  box-shadow: 0 14px 32px rgba(0, 33, 90, .12);
  color: #fff !important;
  text-decoration: none !important;
  transform: translateZ(0);
}
.noah-v10-headline-card img {
  width: 100%;
  height: 100%;
  min-height: 166px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.noah-v10-headline-card:hover img { transform: scale(1.04); }
.noah-v10-headline-card:after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 58%;
  background: linear-gradient(180deg, rgba(3,12,33,0), rgba(3,12,33,.82));
  pointer-events: none;
}
.noah-v10-badge {
  position: absolute;
  left: 14px;
  top: 12px;
  z-index: 2;
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg,#0d8bff,#18c4ff);
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: 0 8px 20px rgba(0,130,255,.28);
}
.noah-v10-headline-text {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0,0,0,.42);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.noah-v10-today-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  padding: 24px 30px 34px;
}
.noah-v10-today-card {
  display: flex;
  flex-direction: column;
  min-height: 238px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(21,103,255,.18);
  box-shadow: 0 12px 30px rgba(16,72,150,.08);
  color: #0c1428 !important;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.noah-v10-today-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,151,255,.42);
  box-shadow: 0 18px 44px rgba(16,72,150,.15);
}
.noah-v10-today-thumb {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
  background: #edf5ff;
}
.noah-v10-today-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 14px 14px 13px;
}
.noah-v10-today-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  font-size: 14px;
  line-height: 1.5;
  color: #0c1428;
  font-weight: 900;
}
.noah-v10-today-price {
  margin-top: 10px;
  color: #ff5b21;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}
.noah-v10-switching {
  opacity: .15;
  transition: opacity .14s ease;
}
.noah-v10-loading .noah-v10-today-grid:empty:before {
  content: "Loading courses...";
  display: block;
  grid-column: 1 / -1;
  padding: 40px 0;
  color: #8aa0bd;
  text-align: center;
}
@media (max-width: 1180px) {
  .noah-v10-today-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .noah-v10-today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; gap: 16px; }
  .noah-v10-headline-twins { min-height: 300px; }
}
