@import url(common.css);
/* ============================================================
   无忧教育 - index.css  v3.0
   首页专属现代样式 / 2026年全新改版
   架构: 上(header) → 横向全宽通栏(banner) → 横向主体(home-main) → 下(footer)
   主体宽度: .width1200 (1200px 居中标准宽屏)
   ============================================================ */

/* ── 常用宽度规范 ─────────────────────────────────────────── */
.width1200 {
  width: 1200px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.container {
  width: 1200px;
  margin: 0 auto;
}

/* ── 顶部弹出广告（已废弃隐藏） ──────────────────────────── */
#top_ad,
#top_ad1 {
  display: none !important;
}

/* ── 1. BANNER 主轮播图（主导航下方全宽通栏，100%宽 + 指定高度420px） ─ */
.banner-wrap {
  width: 100%;
  position: relative;
  background: #0d1a2e;
  line-height: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.banner-swiper {
  width: 100%;
  height: 420px;
}

.banner-swiper .swiper-slide {
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.banner-swiper .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-swiper .swiper-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.banner-swiper .swiper-button-prev,
.banner-swiper .swiper-button-next {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.32);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: all .25s ease;
}

.banner-swiper .swiper-button-prev:hover,
.banner-swiper .swiper-button-next:hover {
  background: rgba(19, 105, 192, 0.85);
  transform: scale(1.08);
}

.banner-swiper .swiper-button-prev::after,
.banner-swiper .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

.banner-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.55;
  width: 10px;
  height: 10px;
  transition: all .25s ease;
}

.banner-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: #fff;
  width: 24px;
  border-radius: 6px;
}

/* ── 2. 横向主体结构 (home-main) ─────────────────────────── */
.home-main {
  width: 100%;
  background: #f4f6f9;
  padding: 24px 0 40px;
}

.home-section {
  width: 1200px;
  margin: 0 auto 24px;
  box-sizing: border-box;
}

/* ── 通用区块标题栏 ───────────────────────────────────────── */
.sec-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 8px;
  position: relative;
}

.sec-header-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sec-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  position: relative;
  padding-left: 14px;
  letter-spacing: 0.5px;
}

.sec-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background: var(--primary);
  border-radius: 3px;
}

.sec-header .sec-subtitle {
  font-size: 13px;
  color: #64748b;
  font-weight: 400;
}

.sec-header .sec-more {
  font-size: 13px;
  color: #64748b;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}

.sec-header .sec-more:hover {
  color: var(--primary);
  gap: 6px;
}

/* ── 3. 新闻公告 + 最新公示 (参考图1三张卡片+水印数字) ─────── */
.news-section-wrap {
  width: 100%;
  box-sizing: border-box;
}

.news-tab-bar {
  display: flex;
  align-items: center;
  gap: 24px;
}

.news-tab-item {
  font-size: 20px;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  position: relative;
  padding-bottom: 6px;
  transition: all .2s;
  user-select: none;
}

.news-tab-item.active {
  color: #0f172a;
}

.news-tab-item.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.news-tab-item:hover {
  color: var(--primary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.news-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 22px 15px 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 185px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all .25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(19, 105, 192, 0.1);
  border-color: #cfe1fa;
}

/* 背景水印数字 (1, 2, 3) */
.news-card-num {
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: 64px;
  font-weight: 900;
  color: #e5effd;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  font-family: Arial, Helvetica, sans-serif;
  user-select: none;
}

.news-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.5;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px;
}

.news-card h4 a {
  color: inherit;
  transition: color .2s;
}

.news-card h4 a:hover {
  color: var(--primary);
}

.news-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 14px;
  position: relative;
  z-index: 2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card .news-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 2;
  transition: all .2s;
  text-decoration: none;
}

.news-card .news-link:hover {
  color: var(--accent);
  gap: 8px;
}

/* ── 4. 三图横排广告 (postion=73) ─────────────────────────── */
.adsub-wrap {
  width: 1200px;
  margin: 20px auto;
  display: flex;
  gap: 16px;
  box-sizing: border-box;
}

.adsub-wrap a {
  flex: 1;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  height: 100px;
  line-height: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.adsub-wrap a img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.adsub-wrap a:hover img {
  transform: scale(1.03);
}

/* ── 5. 分类课程板块 (参考图3分类布局，8个box，2行×4列) ──────── */
.cat-section {
  width: 100%;
  box-sizing: border-box;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 6px;
}

.cat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(19, 105, 192, 0.12);
  border-color: #cbd5e1;
}

.cat-card-header {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #edf2f7;
  padding: 12px 14px;
  transition: background .25s ease, border-color .25s ease;
}

.cat-card:hover .cat-card-header {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-bottom-color: #dbeafe;
}

.cat-card-header a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.cat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .25s ease;
}

.cat-card-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  /* 将灰色矢量 SVG 图标转换为统一的无忧品牌蓝 (#1369c0) */
  filter: invert(32%) sepia(90%) saturate(1600%) hue-rotate(195deg) brightness(90%) contrast(95%);
  transition: filter .25s ease, transform .25s ease;
}

.cat-card:hover .cat-card-icon {
  background: var(--primary);
  box-shadow: 0 4px 10px rgba(19, 105, 192, 0.25);
  transform: translateY(-1px);
}

.cat-card:hover .cat-card-icon img {
  filter: brightness(0) invert(1);
  transform: scale(1.05);
}

.cat-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.5px;
  line-height: 1.3;
  transition: color .2s ease;
}

.cat-card:hover .cat-card-title {
  color: var(--primary);
}

.cat-card-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.cat-card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 8px;
}

.cat-card-list a {
  font-size: 14px;
  color: #475569;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  text-decoration: none;
  position: relative;
  padding-left: 10px;
  transition: color .2s ease, transform .2s ease;
}

.cat-card-list a::before {
  content: '·';
  position: absolute;
  left: 1px;
  top: 0;
  color: #94a3b8;
  font-weight: bold;
}

.cat-card-list a:hover {
  color: var(--primary);
  font-weight: 600;
  transform: translateX(2px);
}

.cat-card-more {
  margin-top: 10px;
  text-align: center;
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
}

.btn-cat-more {
  display: inline-block;
  padding: 3px 16px;
  font-size: 12px;
  color: var(--primary);
  background: #f0f7ff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all .2s ease;
}

.btn-cat-more:hover {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(19, 105, 192, 0.25);
}

/* ── 6. 特色服务板块 (扁平化去阴影、去padding、去背景边框，消除多层视觉嵌套) ─── */
.service-section {
  width: 1200px;
  margin: 0 auto 32px;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border: none;
  box-sizing: border-box;
}

/* 去除三个板块定义的背景色和边框，保持视觉清爽直观 */
.block-zhongji,
.block-gaoji,
.block-daili {
  background: transparent;
  border: none;
}

/* 特色服务板块布局: 左侧主题引导卡 + 右侧图文卡片网格 */
.service-layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-top: 4px;
}

/* 左侧主题大卡片 (主题宣传与专题入口) */
.service-feature-card {
  width: 220px;
  min-width: 220px;
  border-radius: 10px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.service-feature-card.c-zhongji {
  background: linear-gradient(145deg, #1877f2 0%, #0d52a0 100%);
}

.service-feature-card.c-gaoji {
  background: linear-gradient(145deg, #f57c00 0%, #c85100 100%);
}

.service-feature-card.c-daili {
  background: linear-gradient(145deg, #059669 0%, #047857 100%);
}

.feature-badge {
  align-self: flex-start;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.service-feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  margin: 14px 0 8px;
  color: #fff;
}

.service-feature-card p {
  font-size: 12px;
  opacity: 0.92;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.feature-action {
  margin-top: 18px;
}

.btn-feature {
  display: block;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  text-align: center;
  transition: all .25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.c-zhongji .btn-feature {
  color: #1877f2;
}

.c-gaoji .btn-feature {
  color: #e65100;
}

.c-daili .btn-feature {
  color: #059669;
}

.btn-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 右侧特色服务卡片网格 (5个项目自适应分布) */
.service-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-sizing: border-box;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.service-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: 105px;
  overflow: hidden;
  background: #f1f5f9;
}

.service-card-cover a {
  display: block;
  width: 100%;
  height: 100%;
}

.service-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.service-card:hover .service-card-cover img {
  transform: scale(1.06);
}

.service-card-info {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.service-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #1e293b;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.service-card-title a:hover {
  color: var(--primary);
}

/* 参数调用展示行 */
.service-params {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.service-param-row {
  font-size: 11px;
  line-height: 16px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.service-param-row .k {
  color: #94a3b8;
  flex-shrink: 0;
  width: 58px;
}

.service-param-row .v {
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.service-param-row .v.accent {
  color: var(--accent);
  font-weight: 600;
}

.service-card-btn-wrap {
  margin-top: auto;
}

.btn-reg-service {
  display: block;
  width: 100%;
  padding: 5px 0;
  background: linear-gradient(135deg, var(--primary-1) 0%, var(--primary-2) 100%);
  color: var(--primary-8) !important;
  font-size: 12px;
  font-weight: 600;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
}

.btn-reg-service:hover {
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary-3) 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(19, 105, 192, 0.3);
}

/* ── 7. 单图全宽广告 (postion=74, 75) ──────────────────────── */
.adsub-single {
  width: 1200px;
  margin: 18px auto;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.adsub-single a {
  display: block;
}

.adsub-single img {
  width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: cover;
  display: block;
}

/* ── 8. 底部全宽广告 (postion=76) ─────────────────────────── */
.bottomad {
  width: 1200px;
  line-height: 0;
  margin: 20px auto 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.bottomad a {
  display: block;
}

.bottomad img {
  width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: cover;
  display: block;
}