/* ============================================
   教育台高考 - 高考高招服务平台
   设计稿: 1920×5744px | 内容区: 1400px 居中
   设计令牌基于蓝湖设计稿提取
   ============================================ */

/* --- Design Tokens --- */
:root {
  --blue-primary: #1866C9;
  --blue-button: #127AFF;
  --blue-light-bg: #F4F8FF;
  --blue-tab-bg: #DAF0FF;
  --blue-active-text: #006EFF;
  --blue-border-light: #B2D2FB;
  --blue-banner: #2D81D0;
  --blue-dark: #0133CB;

  --text-primary: #333333;
  --text-secondary: #666666;
  --text-hint: #999999;
  --text-dark: #060606;
  --text-black: #000000;

  --white: #FFFFFF;
  --footer-bg: #DCEDFC;
  --divider-color: #C6DFFF;
  --orange-score: #FF4800;

  --font-family: "SourceHanSansCN", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --content-width: 1400px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 30px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--blue-light-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-width: 1440px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

/* --- 整体容器 --- */
.design-wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  background: var(--blue-light-bg);
}

.main-content {
  width: var(--content-width);
  margin: 0 auto;
}

/* ============================================ */
/* 模块1: Banner                                 */
/* ============================================ */
.section-banner {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================ */
/* 模块2: 三栏布局                                 */
/* ============================================ */
.section-three-col {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 460px;
}

/* 左栏: 侧边导航 */
.side-nav {
  flex: 0 0 290px;
  background: var(--white);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.side-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.side-nav-item:hover,
.side-nav-item.active {
  color: var(--blue-primary);
}

.side-nav-item:focus {
  outline: none;
}

.side-nav-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.side-nav-item.active .side-nav-icon {
  /* 可能有高亮效果 */
}

/* 中栏: 主视觉轮播 */
.center-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  overflow: hidden;
}

.center-swiper {
  width: 100%;
  height: 100%;
  position: relative;
}

.center-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DAE8FF;
}

.center-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-placeholder {
  width: 100%;
  height: 100%;
  background: #d6eaf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #2c3e50;
  letter-spacing: 4px;
}

/* 轮播分页圆点 - 右下角，透明黑色 */
.center-swiper .swiper-pagination {
  text-align: right;
  padding-right: 16px;
  bottom: 10px;
}

.center-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.25);
  opacity: 1;
  margin: 0 4px;
}

.center-swiper .swiper-pagination-bullet-active {
  background: rgba(0, 0, 0, 0.55);
}

/* 右栏: 留言板 */
.side-message {
  flex: 0 0 290px;
  background: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg-search-box {
  display: flex;
  background: rgba(244,248,255,0.38);
  border-radius: 21px;
  overflow: hidden;
  height: 42px;
  border: 1px solid #127AFF;
}

.msg-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text-primary);
  font-family: var(--font-family);
}

.msg-search-box input::placeholder {
  color: var(--text-secondary);
}

.msg-search-btn {
  flex: 0 0 70px;
  background: var(--blue-button);
  border: none;
  border-radius: 21px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msg-search-btn img {
  width: 22px;
  height: 21px;
}

.msg-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.msg-tag {
  font-size: 14px;
  color: var(--text-black);
  cursor: pointer;
}

.msg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  background: var(--blue-button);
  color: var(--white);
  border-radius: 19px;
  font-size: 20px;
  font-weight: 500;
  font-family: "SourceHanSansCN-Medium", var(--font-family);
  transition: opacity 0.2s;
}

.msg-btn:hover {
  opacity: 0.9;
}

.msg-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 194px;
  overflow: auto;
}

.msg-list::-webkit-scrollbar {
  width: 4px;
}

.msg-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 2px;
}

.msg-list::-webkit-scrollbar-track {
  background: transparent;
}

.msg-item {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.msg-item strong {
  color: var(--text-black);
  font-weight: 400;
}

.msg-empty {
  font-size: 14px;
  color: #999;
  text-align: center;
  padding: 20px 0;
}

.msg-divider {
  flex: 0 0 1px;
  height: 1px;
  background: var(--blue-border-light);
}

.msg-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.msg-header-icon {
  width: 24px;
  height: 23px;
}

.msg-header span {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-primary);
}

.msg-avatar {
  width: 84px;
  height: 83px;
  border-radius: 8px;
  align-self: center;
}

/* ============================================ */
/* 模块3+4: 横幅 + 图标导航(叠在横幅底部)             */
/* ============================================ */
.section-gaokao-banner {
  margin-top: 20px;
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gaokao-banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 249px;
  object-fit: cover;
  z-index: 0;
}

.gaokao-banner-text {
  position: absolute;
  left: 35px;
  right: 35px;
  top: 60px;
  z-index: 1;
  color: var(--blue-light-bg);
  font-size: 22px;
  font-weight: 500;
  font-family: "SourceHanSansCN-Medium", var(--font-family);
  line-height: 1.5;
}

/* 模块4: 7个图标导航 - 叠在横幅底部 */
.icons-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  padding: 30px 40px 40px;
  background: var(--white);
  border-radius: var(--radius-md);
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.icon-item:hover {
  transform: translateY(-3px);
}

.icon-img-wrap {
  width: 136px;
  height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-img-wrap img {
  width: 136px;
  height: 136px;
  object-fit: contain;
}

.icon-item span {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-dark);
  font-family: "SourceHanSansCN-Medium", var(--font-family);
}

/* ============================================ */
/* 模块5: 4列布局 - 政策资讯 + 院校               */
/* 列1(最左): 国家政策/分省政策 Tab(上下结构)       */
/* 列2(左2):  政策内容切换区                        */
/* 分隔线                                         */
/* 列3(右2):  院校内容切换区                        */
/* 列4(最右): 本科院校/专科院校 Tab(上下结构)        */
/* ============================================ */
.section-policy {
  margin-top: 20px;
  display: flex;
  align-items: stretch;
  gap: 13px;
  background: #F4F8FF;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 554px;
}
.section-policy-left {
  width: 574px;
  height: 554px;
  background: #FFFFFF;
  border-radius: 10px;
  display: flex;
  padding: 15px 15px 15px 0;
  box-sizing: border-box;
}

.section-policy-right {
  width: 811px;
  height: 554px;
  background: #FFFFFF;
  border-radius: 10px;
  display: flex;
}

/* 左右Tab列 */
.m5-tabs {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 28px 0;
  background: var(--white);
}

.m5-tab {
  width: 178px;
  height: 47px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.m5-tab.active {
  background-color: #0067D0;
}

.m5-tab:hover {
  opacity: 0.85;
}

.m5-tab.active:hover {
  opacity: 1;
}

.m5-tab-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-right: 14px;
}

.m5-tab-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: "SourceHanSansCN-Medium", var(--font-family);
}
.m5-tab.active .m5-tab-text {
  color: var(--white);
}

/* 政策内容区 */
.m5-content-policy {
  flex: 1;
  padding: 24px 16px 24px 20px;
  background: #F8FBFF;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.12) transparent;
}

.m5-content-policy::-webkit-scrollbar {
  width: 4px;
}

.m5-content-policy::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 2px;
}

.m5-content-policy::-webkit-scrollbar-track {
  background: transparent;
}

/* 竖向分隔线 */
.m5-divider {
  flex: 0 0 1px;
  background: rgba(189,189,191,0.3);
  margin: 20px 0;
}

/* 院校内容区 */
.m5-content-schools {
  flex: 1.4;
  padding: 20px 24px;
  position: relative;
}

.schools-content {
  display: flex;
}

.m5-tabs-right {
  padding: 0;
}
.schools-content-left {
  flex: 1;
}
.schools-content-right {
  width: 178px;
}

/* Tab面板切换 */
.m5-panel,
.pathway-panel,
.major-panel,
.subject-panel {
  display: none;
}

.m5-panel.active,
.pathway-panel.active,
.major-panel.active,
.subject-panel.active {
  display: block;
}

/* 面板占位文字 */
.panel-placeholder {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  padding: 60px 0;
}

/* 政策头部 */
.policy-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.policy-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-primary);
  font-family: "SourceHanSansCN-Bold", var(--font-family);
}

.policy-sub-tabs {
  display: flex;
  gap: 16px;
}

.policy-sub-tabs span {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
}

.policy-more {
  margin-left: auto;
  font-size: 16px;
  color: var(--blue-primary);
  white-space: nowrap;
}

.policy-underline {
  height: 14px;
  margin-bottom: 16px;
  position: relative;
}

.policy-underline-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 4px;
  background: var(--blue-button);
  border-radius: 2px;
}

.policy-list {
  display: flex;
  flex-direction: column;
}

.policy-list li {
  padding: 13px 0;
  font-size: 20px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(189,189,191,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.policy-list li::before {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: var(--blue-primary);
}

.policy-list li:hover {
  color: var(--blue-primary);
}

/* ============================================ */
/* 分省政策: 省份选择器                           */
/* ============================================ */
.province-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}

.province-city-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: #F5F6F8;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
  user-select: none;
}

.province-city-tab:hover {
  color: var(--blue-primary);
  background: #DAE8FF;
}

.province-city-tab.active {
  color: var(--white);
  background: var(--blue-primary);
}

.province-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--blue-primary);
  background: #EEF4FF;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  transition: background 0.2s;
}

.province-filter-btn:hover {
  background: #DAE8FF;
}

/* 省份下拉面板 */
.province-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 328px;
  max-height: 240px;
  overflow-y: auto;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.province-dropdown::-webkit-scrollbar {
  width: 4px;
}

.province-dropdown::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 2px;
}

.province-dd-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  font-size: 13px;
  color: var(--text-secondary);
  background: #F5F6F8;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  user-select: none;
}

.province-dd-item:hover {
  color: var(--blue-primary);
  background: #DAE8FF;
}

.province-dd-item.active {
  color: var(--white);
  background: var(--blue-primary);
}

/* ============================================ */
/* 分省政策: 省份资讯内容区                        */
/* ============================================ */
.province-content {
  display: none;
}

.province-content.active {
  display: block;
}

/* 滚动条 */
.province-content::-webkit-scrollbar {
  width: 4px;
}

.province-content::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 2px;
}

.province-content::-webkit-scrollbar-track {
  background: transparent;
}

.province-news-list {
  display: flex;
  flex-direction: column;
}

/* 带图片的置顶资讯 */
.province-news-item {
  border-bottom: 1px solid rgba(189,189,191,0.3);
}

.province-news-item:last-child {
  border-bottom: none;
}

.province-news-item a {
  display: block;
  padding: 14px 0;
  transition: background 0.2s;
}

.province-news-item a:hover {
  background: rgba(24,102,201,0.03);
}

.province-news-item a:hover .province-news-title {
  color: var(--blue-primary);
}

.province-news-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-black);
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.2s;
}

.province-news-body {
  display: flex;
  gap: 12px;
}

.province-news-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  background: #DDD;
}

.province-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.province-news-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.province-news-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.province-news-time {
  font-size: 12px;
  color: var(--text-hint);
}

/* 纯标题列表项 (无图) */
.province-news-simple a {
  padding: 13px 0;
}

.province-news-simple .province-news-title {
  font-size: 15px;
  margin-bottom: 0;
}

/* 加载占位 */
.province-news-placeholder {
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
  color: var(--text-hint);
}

/* 院校分类标签 */
.schools-tabs-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  margin-bottom: 12px;
}

.schools-tabs-scroll::-webkit-scrollbar {
  height: 4px;
}

.schools-tabs-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
}

.schools-tabs-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.schools-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  padding-bottom: 12px;
}

.schools-tab {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
  position: relative;
  padding-bottom: 6px;
}

.schools-tab.active {
  color: var(--blue-active-text);
  font-size: 20px;
}

/* 激活Tab下方指示线 */
.schools-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue-primary);
  border-radius: 1px;
}

/* Tab区与内容之间的分割线 */
.schools-divider {
  width: 100%;
  height: 1px;
  background: rgba(189,189,191,0.3);
  margin-bottom: 16px;
}

.schools-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

/* 院校列表滚动条 */
.schools-list::-webkit-scrollbar {
  width: 4px;
}

.schools-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 2px;
}

.schools-list::-webkit-scrollbar-track {
  background: transparent;
}

/* 加载提示 */
.schools-loading {
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-hint);
}

.school-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #F8FBFF;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
}

.school-item:hover {
  background: #EEF4FF;
}

.school-avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: #DDD;
}

.school-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.school-info strong {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-black);
}

.school-info small {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 院校详情iframe弹窗 */
.schools-content-left {
  position: relative;
}

.school-detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.school-detail-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 透明遮罩, 拦截iframe内部返回按钮的点击 */
.school-detail-back {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 80px;
  height: 44px;
  cursor: pointer;
  background: transparent;
  user-select: none;
}

/* ============================================ */
/* 模块6: 升学路径                                */
/* ============================================ */
.section-pathway {
  margin-top: 40px;
}

/* ============================================ */
/* 通用区块标题 (模块6+ 统一样式)                    */
/* 标题+Tab同一行 → 8px蓝色线 → 1px分界线          */
/* ============================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 40px;
}

.section-header .section-main-title {
  margin-bottom: 0;
  flex-shrink: 0;
}

.section-main-title {
  font-size: 34px;
  font-weight: 700;
  color: var(--text-black);
  font-family: "SourceHanSansCN-Bold", var(--font-family);
  margin-bottom: 6px;
  margin-right: 40px;
}

.section-title-underline {
  height: 8px;
  margin-bottom: 0;
}

.section-title-blue-bar {
  display: block;
  width: 160px;
  height: 8px;
  background: rgb(16,121,255);
}

.section-title-divider {
  height: 1px;
  width: 100%;
  background: var(--blue-border-light);
  margin-bottom: 20px;
}

.pathway-tabs {
  display: flex;
  align-items: center;
  gap: 40px;
}

.pathway-tab {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  padding: 8px 24px;
  border-radius: 19px;
  transition: color 0.2s, background 0.2s;
}

.pathway-tab.active {
  color: var(--blue-active-text);
  background: var(--blue-tab-bg);
}

/* 栏目导读 */
.pathway-guide {
  position: relative;
  height: 168px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.pathway-guide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pathway-guide-text {
  position: absolute;
  left: 187px;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 20px;
  line-height: 1.6;
  font-family: "SourceHanSansCN-Regular", var(--font-family);
}

.pathway-guide-arrow {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 37px;
  height: 15px;
  background: var(--blue-banner);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* 升学路径子分类平铺: 覆盖全局display:none，面板始终可见 */
.section-pathway .pathway-panel {
  display: block;
}

/* 升学路径子分类标题 */
.pathway-sub-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--blue-primary);
}

/* 升学路径面板间距 */
.pathway-panel + .pathway-panel {
  margin-top: 36px;
}

/* 升学路径卡片网格 */
.pathway-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-bottom: 20px;
}

.pathway-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 16/9;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pathway-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.pathway-card a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pathway-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pathway-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  background: rgba(44,44,44,0.5);
  color: var(--white);
}

.pathway-card-overlay h3 {
  font-size: 18px;
  font-weight: 500;
  font-family: "SourceHanSansCN-Medium", var(--font-family);
  line-height: 1.3;
  margin-bottom: 4px;
}

.pathway-card-overlay p {
  font-size: 14px;
  font-weight: 400;
  font-family: "SourceHanSansCN-Regular", var(--font-family);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 三个小横幅 */
.pathway-banners {
  display: flex;
  gap: 17px;
}

.pathway-banner {
  flex: 1;
  height: 140px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* ============================================ */
/* 模块7: 专业职业                                */
/* ============================================ */
.section-major {
  margin-top: 60px;
}

.major-tabs {
  display: flex;
  align-items: center;
  gap: 80px;
}

.major-tab {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 19px;
  transition: color 0.2s, background 0.2s;
}

.major-tab.active {
  color: var(--blue-active-text);
  background: var(--blue-tab-bg);
}

/* 专业学科分类Tab */
.major-category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.major-category-tab {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 16px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  user-select: none;
}

.major-category-tab:hover {
  color: var(--blue-primary);
  background: #DAE8FF;
}

.major-category-tab.active {
  color: var(--blue-active-text);
  background: var(--blue-tab-bg);
}

/* 分类内容面板 */
#majorCategoryContent .major-category-panel {
  display: none !important;
}

#majorCategoryContent .major-category-panel.active {
  display: block !important;
}

/* 栏目导读 */
.major-guide {
  position: relative;
  height: 168px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.major-guide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.major-guide-text {
  position: absolute;
  left: 187px;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 20px;
  line-height: 1.6;
  font-family: "SourceHanSansCN-Regular", var(--font-family);
}

.major-guide-arrow {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 37px;
  height: 15px;
  background: var(--blue-banner);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* 专业卡片 */
.major-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 20px;
}

.major-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.major-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.major-card-img {
  height: 242px;
  background: var(--blue-banner);
  position: relative;
  overflow: hidden;
}

.major-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 职业探索面板 - 竖版图片 9:16 */
.major-panel[data-tab="zhiye"] .major-card-img {
  height: auto;
  aspect-ratio: 9 / 16;
}

.major-panel[data-tab="zhiye"] .major-card-subtag {
  min-height: 80px;
}

.major-card-tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 6px 20px;
  background: rgba(0,0,0,0.4);
  color: var(--white);
  font-size: 18px;
  border-radius: 0 8px 0 8px;
  z-index: 1;
}

.major-card h4 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 16px 16px 4px;
  font-family: "SourceHanSansCN-Medium", var(--font-family);
}

.major-card-subtag {
  display: flex;
  align-items: center;
  min-height: 110px;
  padding: 0 16px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: "SourceHanSansCN-Medium", var(--font-family);
  line-height: 1.5;
}

.major-card p {
  padding: 12px 16px 20px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 专业子横幅 */
.major-subbanners {
  display: flex;
  gap: 17px;
  margin-bottom: 20px;
}

.major-subbanners img {
  flex: 1;
  height: 140px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* ============================================ */
/* 模块8: 选科志愿                                */
/* ============================================ */
.section-subject {
  margin-top: 60px;
}

.subject-tabs {
  display: flex;
  align-items: center;
  gap: 60px;
}

.subject-tab {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  padding: 8px 28px;
  border-radius: 19px;
  transition: color 0.2s, background 0.2s;
}

.subject-tab.active {
  color: var(--blue-active-text);
  background: var(--blue-tab-bg);
}

.subject-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}

.subject-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.subject-card a {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.subject-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.subject-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.subject-card h4 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 16px 16px 6px;
  font-family: "SourceHanSansCN-Medium", var(--font-family);
}

.subject-card-school {
  display: flex;
  align-items: center;
  min-height: 110px;
  padding: 0 16px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: "SourceHanSansCN-Medium", var(--font-family);
  line-height: 1.5;
}

/* ============================================ */
/* 模块9: 工具中心                               */
/* ============================================ */
.section-tools {
  margin-top: 60px;
  margin-bottom: 40px;
}

.tools-cards {
  display: flex;
  gap: 16px;
}

.tool-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.tool-card-img {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  object-fit: contain;
  padding: 15px;
}

.tool-card-info {
  flex: 1;
  padding: 20px 20px 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-card-info h4 {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-black);
  font-family: "SourceHanSansCN-Medium", var(--font-family);
}

.tool-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-card-rating img {
  width: 22px;
  height: 21px;
}

.tool-card-star {
  width: 22px;
  height: 21px;
  background: #FFD700;
  border-radius: 2px;
}

.tool-card-score {
  font-size: 22px;
  font-weight: 500;
  color: var(--orange-score);
  font-family: "SourceHanSansCN-Medium", var(--font-family);
}

.tool-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tool-tag {
  padding: 4px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  border-radius: 2px;
  font-family: "SourceHanSansCN-Medium", var(--font-family);
}

.tool-tag-blue {
  background: var(--blue-button);
}

.tool-tag-orange {
  background: #FF9D28;
}

/* ============================================ */
/* 响应式 / 交互                                 */
/* ============================================ */

/* 标签页交互状态 */
.schools-tab:hover,
.pathway-tab:hover,
.major-tab:hover,
.subject-tab:hover {
  color: var(--blue-primary);
}

/* 动画过渡 */
.side-nav-item,
.icon-item,
.pathway-card,
.major-card,
.subject-card,
.tool-card {
  transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ============================================ */
/* 留言悬浮iframe: 按钮左侧弹出                     */
/* ============================================ */
.msg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.msg-overlay-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

.msg-overlay-box {
  position: fixed;
  width: 650px;
  height: 600px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.msg-overlay-close {
  position: absolute;
  top: 8px;
  right: 16px;
  z-index: 2;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.msg-overlay-close:hover {
  color: #333;
}

.msg-overlay-iframe {
  width: 100%;
  height: 100%;
  border: none;
}
