:root { --brand:#4abc99; --ink:#334155; --muted:#64748b; --line:#e2e8f0; --toefl-bg: #4abc99; /* 托福背景色 */ --ielts-bg: #e8e7ec; /* 雅思背景色 */ --sat-bg: #5bc0de; /* SAT背景色 */ }
*{box-sizing:border-box}html{scroll-behavior: smooth;}body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,Apple Color Emoji,Segoe UI Emoji; color:var(--ink); height: 100%;}
body{padding-top: 64px;} /* 为 body 添加 padding-top，以避免内容被固定导航栏遮挡 */
@media (max-width:960px){
  /* 窄屏模式下 body 的 padding-top 已在全局设置，此处无需重复 */
}
body.no-scroll {
  overflow: hidden;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
/* Layout helpers */
.container{max-width:1200px;margin:0 auto;padding:0 16px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:12px;font-weight:600}
.btn-brand{background:var(--brand); color:#fff}
.section{padding:56px 0; position: relative;}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.shadow{box-shadow:0 10px 30px rgba(2,20,35,.06)}
.muted{color:var(--muted)}
.grid{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1200px){ .grid-4{grid-template-columns:repeat(4,minmax(0,1fr))} } /* 保持宽屏 */
@media (max-width:768px){ .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))} } /* 平板以下变为2列 */
@media (max-width:600px){
  .grid{gap:10px} /* 减小网格间距 */
  .grid-2{grid-template-columns:1fr}
  .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))} /* 手机下课程变为2列 */
  .grid-4{grid-template-columns:repeat(2,1fr);} /* 手机下师资团队变为2列，并确保平均分配空间 */
  .section{padding:40px 0}
  .banner .content .inner > div:first-child{font-size:14px !important;}
  .banner .content .inner h1{font-size:28px !important; margin-bottom: 0px !important;} /* 进一步缩小h1和p之间的间距 */
  .banner .content .inner p{font-size:14px !important; margin-top: 4px !important;} /* 调整p标签的margin-top */
  /* 窄屏模式下修改 banner 部分的上下内边距 */
  #home > .container.grid.grid-2 {
    padding: 40px 16px !important; /* 调整上下内边距 */
  }
  /* 窄屏模式下修改 logo 图片的高度 */
  header .brand img {
    height: 48px !important;
  }
  /* 窄屏模式下调整 banner 按钮样式 */
  .banner-buttons {
    flex-wrap: nowrap !important; /* 强制按钮不换行 */
    gap: 8px !important; /* 减小按钮间距 */
  }
  .banner-buttons a {
    padding: 8px 12px !important; /* 缩小按钮内边距 */
    font-size: 14px !important; /* 缩小字体大小 */
    flex-shrink: 1; /* 允许按钮内容缩小 */
    min-width: 0; /* 允许内容缩小到最小 */
  }
  /* 窄屏模式下联系我们二维码左对齐 */
  #contact .container > div:last-child {
    justify-self: start !important;
  }
  /* 窄屏模式下缩小备案号字体 */
  footer .container > div:last-child {
    font-size: 12px !important;
  }
  /* 窄屏模式下缩小联系我们二维码框的宽度 */
  #contact .container > div:last-child .card {
    width: 150px !important;
    padding: 8px !important;
    margin-top: 10px !important; /* 在窄屏模式下添加顶部外边距 */
  }
}
 
@media (max-width: 600px) {
  .scrolling-text-item {
    font-size: 15px; /* 窄屏下缩小主文本字体 */
  }
  .scrolling-text-sitn {
    font-size: 10px; /* 窄屏下缩小 sitn 文本字体 */
  }
  /* 窄屏模式下督导服务体系卡片宽度100% */
  #supervision-service-card {
    grid-column: 1 / -1; /* 让卡片在窄屏模式下占据所有列 */
  }
  /* 窄屏模式下督导服务体系图片容器高度调整为180px，截取60% */
  #supervision-service-card > div:first-child {
    height: 120px; /* 修正高度 */
  }
  /* 窄屏模式下显示 tixi4.png，隐藏 tixi3.png */
  /* 移除图片显示/隐藏的CSS规则，改为JS控制 */
}
 
/* Header / Nav */
header{position:fixed;top:0;width:100%;z-index:30;background:rgba(255,255,255,.9);backdrop-filter:saturate(150%) blur(6px); border-bottom:1px solid var(--line); transform: translateZ(0);}
.nav{display:flex;align-items:center;gap:8px}
.nav a,.nav button{padding:8px 12px;border-radius:10px;font-size:14px; background:transparent; border:0; cursor:pointer; color:var(--ink);}
.nav a:hover,.nav button:hover{background:#f8fafc}
.nav button.btn-highlight {
  background: var(--brand);
  color: #fff;
  padding: 8px 12px; /* 保持与 .btn 类似的内边距 */
  border-radius: 10px; /* 保持与 .btn 类似的圆角 */
  font-weight: 600; /* 保持与 .btn 类似的字体粗细 */
}
.nav button.btn-highlight:hover {
  background: #34bfa3; /* 悬停时稍微深一点的绿色 */
}
.brand{display:flex;align-items:center;gap:8px}
.brand .dot{width:32px;height:32px;border-radius:12px;background:var(--brand)}
.hamburger{
  display:none;
  width: 40px; /* 按钮宽度缩小 */
  height: 40px; /* 按钮高度缩小 */
  border-radius: 10px; /* 圆角稍微缩小 */
  background: transparent; /* 完全透明背景 */
  color: rgba(51, 65, 85, 0.6); /* SVG 描边颜色调整为 ink 颜色，并设置 60% 透明度 */
  border: 1px solid var(--line); /* 边框 */
  transition: background .2s ease, color .2s ease; /* 过渡效果 */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  cursor: pointer; /* 鼠标指针 */
}
.hamburger:hover {
  background: #f8fafc; /* 悬停时背景色变浅 */
  color: var(--ink); /* 悬停时 SVG 描边颜色变深 */
}
@media (max-width:960px){
  .nav{display:none}
  .hamburger{
    display:inline-flex;
    width: 36px; /* 窄屏模式下按钮宽度缩小 */
    height: 36px; /* 窄屏模式下按钮高度缩小 */
  }
  header{
    position: fixed; /* 确保导航栏固定在顶部 */
    top: 0;
    width: 100%;
    background:#fff; /* 窄屏模式下导航栏完全不透明 */
  }
}
/* Dropdown */
.dropdown{position:relative}
.dropdown-menu{position:absolute;left:0;right:auto;top:100%;margin-top:6px;background:rgba(255,255,255,1);backdrop-filter:saturate(150%) blur(6px);border:1px solid var(--line);border-radius:14px;box-shadow:0 10px 30px rgba(2,20,35,.08);opacity:0;transform:translateY(-6px);pointer-events:none;transition:opacity .2s ease, transform .2s ease; min-width: 120px;}
.dropdown-menu.show{opacity:1;transform:translateY(0);pointer-events:auto;}
.dropdown-menu a{display:block;padding:10px 14px;font-size:14px}
.dropdown-menu a:hover{background:#f8fafc; border-radius:12px;}
.dropdown-system .dropdown-menu{right:0;left:auto;}

/* Mobile drawer */
.drawer{
  display:none;
  position: fixed; /* 改为固定定位 */
  top: 64px; /* 从 header 下方开始 */
  left: 0;
  width: 100%;
  border-top:1px solid var(--line);
  background:#fff;
  z-index: 25; /* 确保在 overlay 之上，但低于 header */
}
.drawer a, .drawer summary{padding:10px 16px;border-radius:10px;transition:background .2s ease}
.drawer a:hover, .drawer summary:hover{background:#f8fafc}
.drawer a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer summary {
  display: flex; /* 使用 flex 布局 */
  align-items: center; /* 垂直居中 */
  gap: 12px; /* 图标与文字的间距 */
}
.drawer summary > svg.dropdown-arrow { /* 针对下拉箭头 SVG */
  margin-left: auto; /* 将下拉箭头推到最右边 */
}
.drawer .dropdown-arrow {
  margin-left: 8px; /* 图标与文字的间距 */
  transition: transform 0.3s ease; /* 添加旋转过渡效果 */
}
.drawer details[open] .dropdown-arrow {
  transform: rotate(180deg); /* details 打开时旋转图标 */
}
details ul{margin:8px 0 0 28px;padding:0; list-style:none}
details li{margin:6px 0}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* 浅黑灰色 */
  z-index: 20; /* 低于导航栏的 z-index: 30 */
  display: none; /* 默认隐藏 */
}

/* Banner carousel */
.banner-carousel {
  position: relative;
  height: 0; /* 使用 padding-bottom 来控制高度 */
  padding-bottom: 56.737%; /* 320px / 564px ≈ 0.56737 */
}
@media (max-width: 600px) {
  .banner-carousel {
    padding-bottom: 56.737%; /* 在窄屏下保持相同的宽高比 */
  }
}
.banner-carousel .slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform .5s ease;
}
.banner-carousel .slide {
  position: relative;
  min-width: 100%;
  height: 100%; /* 确保 slide 填充其父容器 */
}
.banner-carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-carousel .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
}
.banner-carousel .content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.banner-carousel .content .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  color: #fff;
}
.banner-carousel .dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0; /* 移除默认 padding */
}
.banner-carousel .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  opacity: .4;
  border: 0;
  cursor: pointer;
}
.banner-carousel .dot.active {
  opacity: 1;
}
.banner-carousel .nav-btn {
  display: none; /* 在所有屏幕尺寸下隐藏按钮 */
}
.banner-carousel .prev {
  left: 8px;
}
.banner-carousel .next {
  right: 8px;
}

/* Banner Static Image for xitong.html */
.banner-static-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  height: 0; /* 使用 padding-bottom 来控制高度 */
  padding-bottom: 56.737%; /* 320px / 564px ≈ 0.56737，与 .banner-carousel 保持一致 */
}

.banner-static-image img {
  position: absolute; /* 绝对定位以填充父容器 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 移除窄屏下对 .banner-static-image 高度的单独调整，因为 padding-bottom 会自动响应 */

/* Jiaoshi carousel */
.carousel{position:relative; overflow:hidden;}
.carousel-track{display:flex;transition:transform .5s ease;}
.carousel-page{min-width:100%; flex-shrink: 0;}
.jiaoshi-card img{height:100%;width:100%;object-fit:cover} /* 图片高度填充父容器 */
.jiaoshi-image-wrapper{height:300px; background:linear-gradient(to bottom right,#4ABC99,#34bfa3,#9de1fc); overflow:hidden;} /* 教师图片容器，带背景色 */
@media (max-width:1200px){ .jiaoshi-image-wrapper{height:245px} }
@media (max-width:1000px){ .jiaoshi-image-wrapper{height:200px} }
@media (max-width:830px){ .jiaoshi-image-wrapper{height:180px} }
@media (max-width:768px){ .jiaoshi-image-wrapper{height:240px} } /* 窄屏下教师图片容器高度 */
@media (max-width:600px){
  .jiaoshi-image-wrapper{height:170px} /* 手机下教师图片容器高度调低 */
  .carousel-page{width:100%; flex-basis: 100%; max-width: 100%;} /* 确保 carousel-page 在手机下占据全部宽度，并正确处理 flex 布局 */
}
.carousel .nav-btn{position:absolute;top:50%;transform:translateY(-50%);background:#fff;border:1px solid var(--line);border-radius:999px;padding:12px;box-shadow:0 4px 16px rgba(2,20,35,.08);cursor:pointer}
.carousel .prev{left:-10px}.carousel .next{right:-10px}
@media (max-width:768px){ .carousel .nav-btn{display:none} } /* 平板以下隐藏按钮 */

.carousel-dots{display:flex;justify-content:center;gap:8px;padding:12px 0}
.carousel-dot{width:8px;height:8px;border-radius:999px;background:var(--brand);opacity:.4;border:0;cursor:pointer}
.carousel-dot.active{opacity:1}

/* Sections */
.bg-alt{background:#f8fafc}
h2{font-size:24px;margin:0 0 0 40px;z-index:2;}
h3{font-size:20px;margin:0 0 12px}
.subtitle{font-size:14px;color:var(--muted)}

.brand-image-wrapper {
  position: relative;
  height: 300px; /* 默认高度，可以根据需要调整 */
  overflow: hidden; /* 确保图片超出部分隐藏 */
  display: block; /* 确保在布局中占据空间 */
}

.brand-carousel-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Brand Intro 窄屏排版调整 */
.brand-intro-title-mobile {
  display: none; /* 默认隐藏，宽屏不显示 */
}

@media (max-width: 600px) {
  .brand-intro-title-desktop {
    display: none; /* 窄屏隐藏宽屏标题 */
  }
  .brand-intro-title-mobile {
    display: block; /* 窄屏显示窄屏标题 */
    margin-bottom: 0px; /* 移除底部间距 */
    text-align: left; /* 确保左对齐 */
    /* 保持原有 h2 的样式：与窗口的间隙等，这些由父容器 .container 和 h2 默认样式控制 */
  }
  .brand-image-wrapper {
    height: 180px !important; /* 设置窄屏模式下品牌图容器的高度 */
    margin-bottom: -10px; /* 缩小与下方元素的间隙 */
    width: 100%; /* 确保在 flex 布局中占据全部宽度 */
    flex-shrink: 0; /* 防止在 flex 容器中缩小 */
  }
  .section .container.grid.grid-2 {
    display: flex; /* 确保 flex 布局 */
    flex-direction: column; /* 垂直排列 */
    align-items: flex-start !important; /* 确保内容左对齐，并覆盖内联样式 */
    gap: 16px !important; /* 调整间距 */
  }
  .brand-intro-title-mobile {
    order: -2; /* 将标题放在最前面 */
  }
  .brand-image-wrapper {
    order: -1; /* 将图片放在标题之后，文本之前 */
  }
  .brand-text-wrapper {
    order: 0; /* 文本内容和按钮保持在最后 */
  }
  .brand-text-wrapper p.muted {
    margin-bottom: 8px !important; /* 缩小与下方按钮的间隙 */
  }
  .brand-text-wrapper a.btn-brand {
    margin-top: 8px !important; /* 缩小与上方文本的间隙 */
  }
}

/* Learning System Module */
.learning-system-grid {
  grid-template-columns: repeat(2, 2.5fr) repeat(3, 1fr); /* 两个大方块各占2.5份，三个小方块各占1份 */
  gap: 20px;
}

.learning-system-large-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 将内容推到顶部和底部 */
  align-items: flex-start; /* 确保文本左对齐 */
  height: 360px; /* 将大方块的高度改为360px */
  background:linear-gradient(to bottom right,#66b3ff,#3399ff,#0066cc); /* 以蓝色为基调的渐变 */
  color: #fff; /* 将文字颜色改为白色 */
  padding: 22px; /* 将大方块的整体内边距改为22px */
  position: relative; /* 添加相对定位 */
  overflow: hidden; /* 确保图片不会溢出卡片 */
}

.learning-system-large-card > div:first-child { /* 针对文字内容 div */
  position: relative; /* 确保 z-index 生效 */
  z-index: 2; /* 确保在图片上方 */
}

.learning-system-large-card img {
  position: absolute; /* 绝对定位 */
  bottom: 10%; /* 距离底部 10% */
  right: 5%; /* 距离右侧 5% */
  width: 80%; /* 宽度是父级的80% */
  height: auto; /* 高度自适应 */
  z-index: 1; /* 确保在文字下方 */
  opacity: 0.25; /* 设置图片透明度为 0.25 */
}

.learning-system-small-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 将内容推到顶部和底部 */
  align-items: center; /* 文本和SVG居中 */
  height: 360px; /* 将小方块的高度改为360px */
  padding: 22px; /* 将小方块的整体内边距改为22px */
}

.learning-system-small-card .muted {
  margin-top: 10px; /* 将小文字向上微调 */
  margin-bottom: 10px; /* 调整文本与SVG的间距 */
}

.learning-system-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; /* 圆形背景的宽度 */
  height: 64px; /* 圆形背景的高度 */
  border-radius: 50%; /* 使其成为圆形 */
  background-color: rgba(74, 188, 153, 0.1); /* 圆形背景颜色改为很浅的绿色 */
  margin-top: auto; /* 恢复原始的 margin-top */
  transform: translateY(-20px); /* 使用 transform 向上移动图标，不影响文字布局 */
}

.learning-system-icon {
  color: var(--brand); /* SVG图标颜色不变 */
  width: 32px; /* SVG图标尺寸 */
  height: 32px; /* SVG图标尺寸 */
}

@media (max-width: 768px) {
  .learning-system-grid {
    grid-template-columns: repeat(2, 1fr); /* 平板下变为2列 */
  }
  .learning-system-large-card {
    grid-column: 1 / -1; /* 大方块占据所有列 */
    height: auto; /* 自动高度 */
  }
  .learning-system-small-card {
    height: 300px; /* 窄屏下小方块高度进一步增加 */
  }
}

@media (max-width: 600px) {
  .learning-system-grid {
    grid-template-columns: repeat(3, 1fr); /* 手机下变为3列 */
  }
  .learning-system-large-card {
    height: auto; /* 自动高度 */
  }
  .learning-system-small-card {
    height: 240px; /* 手机下小方块高度调整为240px */
    padding: 10px; /* 窄屏模式下减小内边距 */
  }
  .learning-system-icon {
    width: 40px;
    height: 40px;
  }
}

/* Footer */
footer{border-top:1px solid var(--line)}

.banner-decoration-svg {
  width: 30%; /* 默认宽度 */
  aspect-ratio: 8 / 5; /* 宽高比为 8:5 */
}
@media (min-width: 601px) { /* 宽屏模式：当grid-2为双列时 */
  .banner-decoration-svg {
    width: 80% !important; /* 调整为父元素宽度的80%，使其接近container宽度的40% */
    max-width: 480px; /* 限制最大宽度为1200px的40% */
  }
}
@media (max-width: 600px) {
  .banner-decoration-svg {
    width: 75% !important;
  }
}

.learning-system-decoration-svg {
  position: absolute;
  bottom: 14px;
  left: -6px;
  width: 54px;
  height: auto;
  opacity: 1; /* 将整体透明度设置为1，通过 mask-image 实现渐变透明 */
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); /* 左上角透明度1，右下角透明度0 */
  -webkit-mask-image: linear-gradient(to bottom right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%); /* 兼容 Webkit 浏览器 */
}

@media (max-width: 768px) {
  .learning-system-decoration-svg {
    width: 54px; /* 窄屏下保持一致 */
    bottom: 14px;
    left: -6px;
  }
}

@media (max-width: 600px) {
  .learning-system-decoration-svg {
    width: 54px; /* 手机下保持一致 */
    bottom: 14px;
    left: -6px;
  }
}

.scrolling-text-item.toefl {
    background: linear-gradient(to top left,#4ABC99,#5ed6b3,#9fdedb);
}

.scrolling-text-item.ielts {
    background: linear-gradient(to bottom right, #f9fcff, #d8ecfd, #b8dcfc); /* 雅思背景色改为指定渐变色 */
    color: #4b7eb8; /* 雅思文字颜色改为 #4b7eb8 */
    border-radius: 20px; /* 保持圆角 */
    text-shadow: none; /* 移除文字投影 */
}

.scrolling-text-item.sat {
    background: linear-gradient(to bottom right,#5bc0de,#3399ff,#0066cc);
}

.scrolling-text-container {
     width: 100%; /* 调整宽度 */
     max-width: 1200px; /* 最大宽度 */
     height: 350px; /* 宽屏模式下为5行高度 (5 * 70px) */
     overflow: hidden;
     position: relative;
     padding: 20px;
     box-sizing: border-box;
 }

@media (max-width: 600px) {
  .scrolling-text-container {
    height: 490px; /* 窄屏模式下为7行高度 (7 * 70px) */
  }
}

.scrolling-text-line {
    display: flex;
    white-space: nowrap;
    position: absolute;
    animation: scrollLeft linear infinite;
    left: 0; /* 初始位置在容器左侧 */
}

.scrolling-text-line:nth-child(1) { animation-duration: 240s; top: 0; animation-delay: 0s; }
.scrolling-text-line:nth-child(2) { animation-duration: 280s; top: 70px; animation-delay: -10s; } /* 交错效果 */
.scrolling-text-line:nth-child(3) { animation-duration: 224s; top: 140px; animation-delay: -20s; }
.scrolling-text-line:nth-child(4) { animation-duration: 256s; top: 210px; animation-delay: -30s; }
.scrolling-text-line:nth-child(5) { animation-duration: 200s; top: 280px; animation-delay: -40s; }
.scrolling-text-line:nth-child(6) { animation-duration: 260s; top: 350px; animation-delay: -50s; }
.scrolling-text-line:nth-child(7) { animation-duration: 210s; top: 420px; animation-delay: -60s; }

.scrolling-text-item {
    padding: 8px 15px;
    margin-right: 30px; /* 文本间距 */
    background-color: var(--brand);
    color: #fff;
    border-radius: 20px;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: inline-block; /* 确保文本项可以设置 margin-right */
    vertical-align: top; /* 确保内容顶部对齐 */
    line-height: 1.2; /* 调整行高 */
    text-align: center; /* 文本居中对齐 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* 添加文字投影 */
}

.scrolling-text-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scrolling-text-sitn {
    font-size: 12px; /* 设置 sitn 文本的字体大小 */
    opacity: 0.8; /* 稍微降低透明度 */
    margin-top: 4px; /* 与上方成绩文本的间距 */
}

@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* 移动自身宽度的一半，实现无缝循环 */
}

.high-score-badge {
    position: absolute;
    top: -10px; /* 调整到右上角，根据实际效果微调 */
    right: -10px; /* 调整到右上角，根据实际效果微调 */
    width: 40px; /* 装饰图案的宽度 */
    height: auto; /* 高度自适应 */
    z-index: 10; /* 确保在其他内容之上 */
    pointer-events: none; /* 不影响鼠标事件 */
    opacity: 1; /* 透明度改为1 */
    transform: rotate(28deg); /* 顺时针旋转28度 */
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff; /* 背景色改为白色 */
    /* 移除 padding，由 modal-scrollable-area 控制 */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* 添加 overflow: hidden; 来裁剪内部元素的直角 */
    /* 移除 overflow-y: auto;，由 modal-scrollable-area 控制 */
}

.modal-content img {
    max-height: 80vh;
    border-radius: 0;
    object-fit: contain;
}
#contactModalImage {
    max-width: 310px; /* 限制最大宽度 */
    max-height: 670px; /* 限制最大高度 */
}

@media (min-width: 769px) {
    #contactModalImage {
        max-width: 375px; /* 宽屏下宽度450 */
        max-height: 800px; /* 宽屏下高度1000 */
    }
}

.modal-close {
    position: absolute;
    top: 10px; /* 恢复到原始位置 */
    right: 10px; /* 恢复到原始位置 */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ink);
    padding: 5px;
    z-index: 1001; /* 确保在内容之上 */
}

/* Fixed chat icon */
.fixed-chat-icon {
    position: fixed;
    bottom: 40px; /* 向上移动 */
    right: 40px; /* 向左移动 */
    width: 64px; /* 增大图标尺寸 */
    height: 64px; /* 增大图标尺寸 */
    background-color: var(--brand); /* 绿色背景 */
    border-radius: 50%; /* 圆形 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 999; /* 确保在其他内容之上 */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fixed-chat-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fixed-chat-icon svg {
    width: 32px; /* 增大 SVG 图标尺寸 */
    height: 32px; /* 增大 SVG 图标尺寸 */
    fill: #fff; /* 白色 SVG */
}

@media (max-width: 600px) {
  .fixed-chat-icon {
    bottom: 30px; /* 窄屏下向上移动 */
    right: 30px; /* 窄屏下向左移动 */
    width: 64px; /* 窄屏下增大图标尺寸 */
    height: 64px; /* 窄屏下增大图标尺寸 */
  }
  .fixed-chat-icon svg {
    width: 32px; /* 窄屏下增大 SVG 图标尺寸 */
    height: 32px; /* 窄屏下增大 SVG 图标尺寸 */
  }
}

/* Jiaoshi Detail Modal Specific Styles */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.jiaoshi-detail-content {
    max-width: 500px; /* 教师详情模态框的最大宽度 */
    padding: 0; /* 取消 padding */
    background: #fff; /* 确保教师详情模态框内容背景为白色 */
}

.modal-scrollable-area {
    flex-grow: 1; /* 填充可用空间 */
    overflow-y: auto; /* 使其成为可滚动区域 */
    /* 移除 padding，由 jiaoshi-detail-body 控制 */
    width: 100%; /* 确保宽度为100% */
    border-bottom-left-radius: 16px; /* 添加底部圆角 */
    border-bottom-right-radius: 16px; /* 添加底部圆角 */
}

.jiaoshi-detail-header {
    width: 100%; /* 宽度改为100% */
    background: linear-gradient(to bottom right,#4ABC99,#34bfa3,#9de1fc); /* 添加banner渐变背景色 */
    color: #fff; /* 文字颜色改为白色 */
    padding: 0; /* 移除内边距 */
    border-top-left-radius: 16px; /* 添加顶部圆角 */
    border-top-right-radius: 16px; /* 添加顶部圆角 */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0; /* 移除 margin-bottom */
    text-align: left;
    overflow: hidden; /* 确保图片超出部分隐藏 */
    min-height: 156px; /* 设置最小高度 */
}
.jiaoshi-detail-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px; /* 文本元素之间的间距 */
    padding: 20px 10px 20px 20px; /* 保持原有 padding */
}

.jiaoshi-detail-photo {
    width: 40%; /* 宽度最大为父级宽度的40% */
    height: 100%; /* 高度改为父级的100% */
    border-radius: 0;
    object-fit: cover;
    margin-bottom: 0;
    background: linear-gradient(to bottom, #97d2c8, #e8fffb); /* 修改为渐变背景色 */
    border: none;
    box-shadow: none;
}

.jiaoshi-detail-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff; /* 文本颜色改为白色 */
    margin: 0;
}

.jiaoshi-detail-name .jiaoshi-card-experience {
  font-size: 14px !important;
}

.jiaoshi-detail-subject {
    font-size: 18px;
    color: #fff; /* 文本颜色改为白色 */
    margin: 0;
}

.jiaoshi-detail-experience {
    font-size: 16px;
    color: #fff; /* 文本颜色改为白色 */
    font-weight: 600;
    margin: 0;
}

.jiaoshi-detail-body {
    width: 100%;
    text-align: left;
    margin-top: 0; /* 移除 margin-top */
    padding: 20px; /* 恢复 padding */
    background-color: #fff; /* 背景色改为白色 */
    border-radius: 0; /* 移除圆角 */
}

.jiaoshi-detail-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 20px; /* 增加亮点与简介的间距 */
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center; /* 亮点居中显示 */
}

.jiaoshi-detail-highlights li {
    background-color: #e6f7f0; /* 浅绿色背景 */
    color: #34bfa3; /* 绿色文字 */
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
}

.jiaoshi-detail-content .jiaoshi-highlights li {
    background-color: transparent !important; /* 背景透明 */
    color: #fff !important; /* 白色文字 */
    padding: 0px !important;
    border-radius: 0px !important;
    white-space: normal !important;
}

.jiaoshi-detail-content .jiaoshi-highlights li::before {
  color: #fff !important; /* 确保在详情模态框中显示为白色 */
}

.jiaoshi-detail-introductions,
.jiaoshi-detail-evaluation {
    margin-bottom: 20px; /* 增加各部分之间的间距 */
}

.jiaoshi-intro-header {
  display: flex;
  align-items: center;
  gap: 8px; /* 调整图片和标题之间的间距 */
  margin-bottom: 10px; /* 调整标题与下方内容的间距 */
  border-bottom: 1px solid var(--line); /* 添加下划线 */
  padding-bottom: 5px;
}

.jiaoshi-intro-decoration-svg {
  width: 24px; /* 调整SVG大小 */
  height: 24px;
  flex-shrink: 0; /* 防止SVG缩小 */
  opacity: 0.8; /* 调整透明度 */
}

.jiaoshi-detail-introductions h4,
.jiaoshi-detail-evaluation h4 {
    font-size: 18px;
    color: var(--ink);
    margin: 0; /* 移除 h4 自身的 margin，由父容器控制 */
}

.jiaoshi-detail-introductions p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    margin: 0 0 10px;
}

.jiaoshi-detail-introductions p:last-child {
    margin-bottom: 0;
}

.jiaoshi-detail-evaluation p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    font-style: italic;
    margin: 0;
}

/* Style for brand color bullet points */
.brand-bullet-list p {
  position: relative;
  padding-left: 20px; /* Space for the bullet */
}

.brand-bullet-list p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px; /* Adjust vertical alignment */
  width: 5px; /* 调整小点宽度为5px */
  height: 5px; /* 调整小点高度为5px */
  background-color: var(--brand);
  border-radius: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
    .jiaoshi-detail-content {
        padding: 0px;
        max-width: 90%;
    }
    .jiaoshi-detail-body {
        padding: 15px; /* 窄屏下调整 padding */
    }
    .jiaoshi-detail-photo {
        height: 100%; /* 高度为父级的100% */
        width: auto; /* 宽度保持宽高比 */
        max-width: 40%; /* 宽度最多不超过父级宽度的40% */
    }
    .jiaoshi-detail-name {
        font-size: 24px;
    }
    .jiaoshi-detail-subject {
        font-size: 16px;
        margin-bottom: 8px; /* 窄屏下调整间距 */
    }
    .jiaoshi-detail-experience {
        font-size: 14px;
        margin-bottom: 15px; /* 窄屏下调整间距 */
    }
    .jiaoshi-detail-highlights li {
        font-size: 13px;
        padding: 6px 12px;
    }
    .jiaoshi-detail-introductions h4,
    .jiaoshi-detail-evaluation h4 {
        font-size: 16px;
    }
    .jiaoshi-detail-introductions p,
    .jiaoshi-detail-evaluation p {
        font-size: 14px;
    }
}

/* New Module: Left List, Right Content */
.new-module-section {
  position: relative; /* 为内部绝对定位的背景提供上下文 */
  /* overflow: hidden; /* 隐藏超出部分的背景 - 移除以允许背景延伸 */
}

.new-module-left-bg,
.new-module-right-bg {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: -1; /* 确保在内容下方 */
}

.new-module-left-bg {
  left: 0;
  /* 重新计算宽度以覆盖从视口左边缘到左侧列表项右边缘的区域 */
  /* width will be set by JavaScript for dynamic calculation */
  background-color: #f8fafc;
  border-right: 1px solid var(--line); /* 在宽屏模式下添加右边线 */
}

.new-module-right-bg {
  right: 0;
  width: calc(50% - 600px + (1200px - 32px) * 0.75 + 16px); /* 右侧占 3/4，加上右侧的空白 */
  background-color: #ffffff;
}

.new-module-grid {
  display: grid;
  grid-template-columns: 1fr 3fr; /* 左边窄，右边宽 */
  gap: 30px;
  align-items: flex-start; /* 顶部对齐 */
  margin-top: 20px;
}

@media (min-width: 769px) {
  .new-module-list-container { /* 确保 sticky 元素在 grid 布局中正确对齐 */
    align-self: start;
    position: sticky; /* 使容器固定 */
    top: 64px; /* 固定在导航栏下方 */
    z-index: 10; /* 确保在其他内容之上 */
  }
}

.new-module-list .list-item {
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-bottom: 5px; /* 列表项之间增加一点间距 */
}

.new-module-list .list-item:last-child {
  margin-bottom: 0;
}

.new-module-list .list-item h3 {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}

@media (min-width: 769px) {
  .new-module-list {
    margin-top: 20px; /* 仅在宽屏模式下添加顶部外边距 */
  }
}

.new-module-list .list-item:hover {
  background-color: #f0f4f8; /* 悬停效果 */
}

.new-module-list .list-item.active {
  background-color: #f0f3fa; /* 选中时的底色 */
  color: var(--ink); /* 选中时文字颜色 */
}

.new-module-list .list-item.active h3 {
  color: var(--ink); /* 选中时标题文字颜色 */
}

.new-module-content {
  background: transparent; /* 背景色由外部 div 控制 */
  border: none; /* 移除描边 */
  border-radius: 0; /* 移除圆角 */
  padding: 30px;
  box-shadow: none; /* 移除投影 */
}

.new-module-content .content-block {
  display: none; /* 默认隐藏 */
  animation: fadeIn 0.5s ease-out; /* 添加淡入动画 */
}

.new-module-content .content-block.active {
  display: block; /* 选中时显示 */
}

.new-module-content .content-block h2 {
  font-size: 28px;
  margin: 0 0 16px;
  color: var(--brand);
}

.new-module-content .content-block p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 20px;
  text-align: justify; /* 设置文字两端对齐 */
}

.new-module-content .content-block img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* 窄屏响应式 */
@media (max-width: 768px) {
  #home { /* 针对 banner 区域 */
    margin-bottom: 0 !important; /* 移除底部外边距 */
    padding-bottom: 0 !important; /* 移除底部内边距 */
  }
  .new-module-section { /* 针对 new-module-section */
    margin-top: 0 !important; /* 移除顶部负边距 */
    padding-top: 0 !important; /* 移除顶部内边距 */
  }
  .new-module-left-bg {
    display: none; /* 窄屏下隐藏左侧背景 */
  }

  .new-module-right-bg {
    width: 100%; /* 窄屏下背景占据全部宽度 */
    left: 0;
    right: 0;
  }

  .new-module-left-bg {
    background-color: #f8fafc; /* 窄屏下整个背景为 #f8fafc */
  }

  .new-module-right-bg {
    display: none; /* 窄屏下隐藏右侧背景 */
  }

  .new-module-grid {
    grid-template-columns: 1fr; /* 窄屏下变为单列布局 */
    gap: 20px;
  }

  .new-module-list {
    background: transparent; /* 背景色由外部 div 控制 */
    padding: 5px;
    display: flex; /* 变为 flex 布局 */
    overflow-x: auto; /* 允许水平滑动 */
    -webkit-overflow-scrolling: touch; /* 改善 iOS 上的滑动体验 */
    scroll-snap-type: x mandatory; /* 启用吸附效果 */
    gap: 10px; /* 列表项之间的间距 */
    padding-bottom: 10px; /* 避免滚动条遮挡内容 */
  }

  .new-module-list::-webkit-scrollbar {
    display: none; /* 隐藏滚动条 */
  }
  
  /* New Module Wrapper and Navigation Buttons */
  /* New Module Wrapper and Navigation Buttons */
  .new-module-list-container { /* 新增的容器样式 */
    position: relative;
    /* 默认不使用 flex 布局，只在窄屏下应用 */
  }
  
  .new-module-nav-btn {
    display: none; /* 确保默认隐藏 */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    cursor: pointer;
    z-index: 10;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
  }
  
  .new-module-nav-btn:hover {
    background: #f8fafc;
    border-color: var(--brand);
    color: var(--brand);
  }
  
  .new-module-nav-btn.prev-btn {
    left: 0; /* 紧贴左侧 */
  }
  
  .new-module-nav-btn.next-btn {
    right: 0; /* 紧贴右侧 */
  }
  
  .new-module-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #e0e0e0; /* 再次调整为更浅的灰色 */
    background: transparent; /* 禁用状态下也移除背景 */
    border-color: transparent; /* 禁用状态下也移除边框 */
  }
  
  @media (max-width: 768px) {
    .new-module-list-container {
      display: flex; /* 窄屏下使用 flex 布局 */
      align-items: center;
      gap: 10px; /* 按钮与列表之间的间距 */
      padding: 0 40px; /* 窄屏下为按钮留出更多空间 */
      background-color: #f8fafc; /* 添加背景色 */
      /* 使背景延伸到屏幕边缘 */
      margin-left: calc(-1 * var(--container-padding, 16px)); /* 减去容器左侧 padding */
      margin-right: calc(-1 * var(--container-padding, 16px)); /* 减去容器右侧 padding */
      width: calc(100% + 2 * var(--container-padding, 16px)); /* 增加宽度以覆盖 padding */
    }
    .new-module-nav-btn {
      display: flex !important; /* 窄屏下强制显示 */
      align-items: center;
      justify-content: center;
      width: 40px; /* 按钮大小 */
      height: 40px; /* 按钮大小 */
      background: transparent; /* 移除背景 */
      border: none; /* 移除边框 */
      box-shadow: none; /* 移除阴影 */
      color: var(--ink); /* 按钮颜色 */
    }
    .new-module-nav-btn svg { /* 针对 SVG 元素 */
      width: 24px; /* 增大 SVG 图标尺寸 */
      height: 24px; /* 增大 SVG 图标尺寸 */
    }
    .new-module-nav-btn:hover {
      background: transparent; /* 移除背景 */
      border-color: transparent; /* 移除边框 */
      color: var(--ink); /* 悬停时颜色保持不变 */
    }
    .new-module-list {
      padding: 5px 0; /* 调整 padding，确保内容不被按钮遮挡 */
    }
  }

  @media (min-width: 769px) {
    .new-module-nav-btn {
      display: none !important; /* 宽屏模式下隐藏导航按钮 */
    }
  }

  .new-module-list .list-item {
    flex-shrink: 0; /* 防止列表项缩小 */
    scroll-snap-align: start; /* 列表项吸附到开始位置 */
    padding: 12px 15px;
    font-size: 16px;
    margin-bottom: 0; /* 移除垂直间距 */
  }

  .new-module-list .list-item h3 {
    font-size: 16px;
  }

  .new-module-content {
    background: #ffffff; /* 窄屏下内容区域背景为白色 */
    padding: 20px;
  }

  .new-module-content .content-block h2 {
    font-size: 24px;
  }

  .new-module-content .content-block p {
    font-size: 15px;
  }
}


/* New Dropdown Styles for new-module-list */
.new-dropdown-container {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
}

/* 默认在宽屏模式下显示，窄屏模式下隐藏 */
@media (max-width: 768px) {
  .new-dropdown-container {
    display: none;
  }
}

/* 窄屏模式下显示的下拉菜单 */
.new-dropdown-container-mobile {
  display: none; /* 默认隐藏 */
}

@media (max-width: 768px) {
  .new-dropdown-container-mobile {
    display: block !important; /* 窄屏下显示 */
  }
}

@media (min-width: 769px) {
  .new-dropdown-container {
    margin-top: 20px; /* 宽屏模式下添加顶部外边距 */
  }
}

@media (min-width: 769px) {
  .new-dropdown-container {
    width: 100%; /* 确保在宽屏模式下与 new-module-list 的父容器宽度一致 */
    padding: 0; /* 移除 padding，使其与 .new-module-list 对齐 */
    margin-bottom: -5px; /* 宽屏模式下添加底部负外边距 */
  }
}

.new-dropdown-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  background-color: #fff; /* 背景色改为透明 */
  color: var(--ink);
  border: 1px solid var(--line); /* 加上描边 */
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.new-dropdown-button:hover {
  background-color: #f1f3fa; /* 鼠标悬浮时背景色改为 #f1f3fa */
}

.new-dropdown-button.active {
  background-color: #fff; /* 选中时不改变背景色，保持白色 */
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.new-dropdown-button svg {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.new-dropdown-button.active svg {
  transform: rotate(180deg);
}

.new-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff; /* 背景色改为透明 */
  border: 1px solid var(--line); /* 加上描边 */
  border-radius: 0 0 10px 10px;
  box-shadow: none; /* 移除投影 */
  overflow: hidden;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.new-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.new-dropdown-item {
  display: block;
  padding: 12px 20px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.new-dropdown-item:hover {
  background-color: #e0e3ea;
}

.new-dropdown-item.active {
  background-color: #4abc99; /* 背景色改为 #4abc99 */
  color: #fff; /* 字体颜色改为白色 */
  font-weight: 600;
}

/* 窄屏响应式调整 */
@media (max-width: 768px) {
  .new-dropdown-container {
    margin-bottom: 0;
  }

  /* 调整窄屏模式下新下拉菜单的样式 */
  .new-dropdown-container-mobile {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0; /* 移除 padding-left */
    padding-right: 0; /* 移除 padding-right */
    /* width: auto; 让其根据内容自适应 */
    /* max-width: none; 移除最大宽度限制 */
    box-sizing: border-box; /* 确保 padding 不会增加总宽度 */
    background-color: #f9fafc; /* 设置背景色 */
    display: flex; /* 使用 flex 布局 */
    flex-direction: column; /* 垂直排列 */
    align-items: center; /* 水平居中 */
    margin-left: auto; /* 居中 */
    margin-right: auto; /* 居中 */
  }

  .new-dropdown-button {
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 8px;
    margin-top: 0; /* 取消 margin-top */
    margin-bottom: 0; /* 取消 margin-bottom */
    margin-left: auto; /* 水平居中 */
    margin-right: auto; /* 水平居中 */
  }

  .new-dropdown-button.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .new-dropdown-menu {
    border-radius: 0 0 8px 8px;
    margin-left: auto; /* 水平居中 */
    margin-right: auto; /* 水平居中 */
    left: 0; /* 确保绝对定位元素可以居中 */
    right: 0; /* 确保绝对定位元素可以居中 */
  }

  .new-dropdown-item {
    padding: 10px 15px;
    font-size: 15px;
  }
}

/* Jiaoshi Introduction Module Styles */
.jiaoshi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 默认宽屏模式下三列 (大于1150px) */
  gap: 30px; /* 卡片间距 */
  margin-top: 30px;
}

@media (max-width: 1150px) {
  .jiaoshi-grid {
    grid-template-columns: repeat(2, 1fr); /* 宽屏模式下，窗口宽度小于等于1150px时，一行显示2个 */
  }
}

@media (max-width: 768px) {
  .jiaoshi-grid {
    grid-template-columns: 1fr; /* 窄屏模式下变为一列 */
    gap: 20px;
  }
}

.jiaoshi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(2,20,35,.06);
  display: flex;
  flex-direction: row; /* 默认顺序，文字在左，图片在右 */
  justify-content: space-between; /* 文字和图片之间留出空间 */
  align-items: center; /* 垂直居中对齐 */
  padding: 20px; /* 整体内边距 */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer; /* 添加手型光标 */
}

.jiaoshi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(2,20,35,.1);
}

.jiaoshi-photo-container {
  position: relative;
  width: 120px; /* 图片容器宽度 */
  flex-shrink: 0; /* 防止缩小 */
  align-self: stretch; /* 使其填充父容器的高度 */
  margin-left: 20px; /* 图片与信息之间的间距 */
  margin-right: 0; /* 移除右侧间距 */
  overflow: visible; /* 允许子元素溢出 */
  order: 2; /* 图片在右 */
}

.jiaoshi-photo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 40px); /* 突破父级 padding */
  height: calc(100% + 40px); /* 突破父级 padding */
  background: linear-gradient(to bottom right,#4ABC99,#34bfa3,#9de1fc); /* 渐变背景色与banner一致 */
  border-radius: 0; /* 取消圆角效果 */
  z-index: 0;
}

.jiaoshi-photo {
  position: relative;
  width: 100%;
  height: 100%;
  /* border-radius: 16px 16px 16px 3px; */ /* 圆角矩形图片，左下角3px */
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  /* border: 3px solid #fff; */ /* 白色边框 */
  /* box-shadow: 0 2px 8px rgba(0,0,0,.1); */
}

.jiaoshi-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  order: 1; /* 文字在左 */
  margin-right: 10px; /* 宽屏和窄屏都添加右侧间距，改为10px */
}

.jiaoshi-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink); /* 教师姓名颜色改为墨色 */
}

.jiaoshi-name .jiaoshi-card-experience {
  font-size: 14px !important; /* 调整字体大小 */
  font-weight: normal !important; /* 恢复正常字体粗细 */
  color: var(--muted) !important; /* 使用柔和的颜色 */
  margin-left: 2px !important; /* 与姓名保持一定间距 */
}

.jiaoshi-detail-name .jiaoshi-card-experience {
  font-weight: normal !important;
}

.jiaoshi-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.jiaoshi-role-tag {
  background-color: #e6f7f0; /* 浅绿色背景 */
  color: #34bfa3; /* 绿色文字 */
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 13px;
  white-space: nowrap;
}

.jiaoshi-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jiaoshi-highlights li {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.3; /* 调整行高 */
}

.jiaoshi-highlights li:last-child {
  margin-bottom: 0;
}

.jiaoshi-highlights li::before {
  content: '›'; /* 使用大于号作为列表项符号 */
  color: var(--brand); /* 绿色 */
  font-weight: bold;
  margin-right: 8px;
  font-size: 18px;
  line-height: 1;
}

/* 移除不再使用的样式 */
.jiaoshi-subject,
.jiaoshi-introductions,
.jiaoshi-introductions p,
.jiaoshi-introductions p:last-child,
.jiaoshi-evaluation {
  display: none;
}

@media (max-width: 600px) {
  .jiaoshi-card {
    flex-direction: row; /* 窄屏下改为水平排列 */
    align-items: center; /* 垂直居中对齐 */
    padding: 15px; /* 保持窄屏下的内边距 */
  }

  .jiaoshi-info {
    order: 1; /* 文字在左 */
    /* margin-right: 15px; 窄屏下不再单独设置，由全局控制 */
  }

  .jiaoshi-photo-container {
    width: 120px; /* 恢复宽屏下的图片容器宽度 */
    margin-left: 20px; /* 恢复宽屏下的左侧间距 */
    margin-right: 0; /* 移除右侧间距 */
    margin-bottom: 0; /* 移除底部间距 */
    align-self: stretch; /* 使其填充父容器的高度 */
    order: 2; /* 图片在右 */
  }

  .jiaoshi-name {
    font-size: 20px;
  }

  .jiaoshi-roles {
    margin-bottom: 10px;
  }

  .jiaoshi-role-tag {
    font-size: 12px;
    padding: 3px 8px;
  }

  .jiaoshi-highlights li {
    font-size: 13px;
    margin-bottom: 4px;
  }
}


/* Teachers Carousel Specific Styles */
.teacher-card {
  display: block; /* 确保在网格布局中正确显示 */
  cursor: pointer; /* 添加手型光标 */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(2,20,35,.1);
}

.teacher-image-wrapper {
  height: 300px; /* 教师图片容器，带背景色 */
  background: linear-gradient(to bottom right, #4ABC99, #34bfa3, #9de1fc);
  overflow: hidden;
}
.teacher-image-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
@media (max-width: 1200px) {
  .teacher-image-wrapper {
    height: 245px;
  }
}
@media (max-width: 1000px) {
  .teacher-image-wrapper {
    height: 200px;
  }
}
@media (max-width: 830px) {
  .teacher-image-wrapper {
    height: 180px;
  }
}
@media (max-width: 768px) {
  .teacher-image-wrapper {
    height: 240px; /* 窄屏下教师图片容器高度 */
  }
}
@media (max-width: 600px) {
  .teacher-image-wrapper {
    height: 170px; /* 手机下教师图片容器高度调低 */
  }
}

/* 教师详情模态框文本两端对齐 */
#detailJiaoshiIntroductions,
#detailJiaoshiEvaluation {
  text-align: justify;
}


/* 响应式 SVG 显示控制 */
.brand-mobile-decoration-svg,
.brand-desktop-decoration-svg {
  position: absolute;
  bottom: 12px;
  left: -44px;
  width: 54px;
  height: auto;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* 窄屏模式下隐藏宽屏的SVG，显示窄屏的SVG */
@media (max-width: 600px) {
  .brand-desktop-decoration-svg {
    display: none;
  }
  .brand-mobile-decoration-svg {
    display: inline; /* 确保在窄屏下显示 */
  }
}

/* 宽屏模式下隐藏窄屏的SVG，显示宽屏的SVG */
@media (min-width: 601px) {
  .brand-mobile-decoration-svg {
    display: none;
  }
  .brand-desktop-decoration-svg {
    display: inline; /* 确保在宽屏下显示 */
  }
}

/* 响应式显示/隐藏工具类 */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block; /* 默认宽屏显示 */
}

@media (max-width: 600px) {
  .mobile-only {
    display: block; /* 窄屏显示 */
  }
  .desktop-only {
    display: none; /* 窄屏隐藏 */
  }
}

/* 宽屏品牌介绍布局 */
.brand-introduction-desktop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 两列布局 */
  gap: 40px; /* 列间距 */
  align-items: center; /* 垂直居中 */
}

.brand-introduction-desktop-grid .text-content {
  display: flex;
  flex-direction: column;
  gap: 20px; /* 文本块之间的间距 */
}

.brand-introduction-desktop-grid .image-content {
  display: flex;
  flex-direction: column;
  gap: 20px; /* 图片块之间的间距 */
}

.brand-introduction-desktop-grid h3 {
  font-size: 28px; /* 宽屏标题更大 */
  margin-bottom: 0;
}

.brand-introduction-desktop-grid p {
  font-size: 18px; /* 宽屏文本更大 */
  line-height: 1.8;
  margin-bottom: 0;
}

.brand-introduction-desktop-grid img {
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Brand Introduction Paragraph Styles */
.brand-intro-paragraph {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 20px;
  text-align: justify;
}

/* 移动端调整 */
@media (max-width: 600px) {
  .brand-intro-paragraph {
    font-size: 15px;
    margin-bottom: 15px;
  }
}

/* 宽屏下隐藏特定 div */
@media (min-width: 769px) {
  div[style*="width: 100%;height: auto;background-color: #f9fafc;"] {
    display: none !important;
  }
}

/* New Module: Left List, Right Content */
.new-module-section {
  position: relative; /* 为内部绝对定位的背景提供上下文 */
}

.new-module-left-bg {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: -1; /* 确保在内容下方 */
  left: 0;
  background-color: #f8fafc;
  border-right: 1px solid var(--line); /* 在宽屏模式下添加右边线 */
}

.new-module-grid {
  display: grid;
  grid-template-columns: 1fr 3fr; /* 左边窄，右边宽 */
  gap: 30px;
  align-items: flex-start; /* 顶部对齐 */
  margin-top: 20px;
}

.new-module-list {
  background: transparent; /* 背景色由外部 div 控制 */
  border: none; /* 移除描边 */
  border-radius: 0; /* 移除圆角 */
  padding: 0; /* 移除默认 padding */
  box-shadow: none; /* 移除投影 */
}

@media (min-width: 769px) {
  .new-module-list {
    padding: 0; /* 宽屏模式下移除 padding */
  }
}

.new-module-list .list-item {
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-bottom: 5px; /* 列表项之间增加一点间距 */
}

.new-module-list .list-item:last-child {
  margin-bottom: 0;
}

.new-module-list .list-item h3 {
  margin: 0;
  font-size: 18px;
  color: var(--ink);
}

@media (min-width: 769px) {
  .new-module-list {
    margin-top: 20px; /* 仅在宽屏模式下添加顶部外边距 */
  }
}

.new-module-list .list-item:hover {
  background-color: #f0f4f8; /* 悬停效果 */
}

.new-module-list .list-item.active {
  background-color: #f0f3fa; /* 选中时的底色 */
  color: var(--ink); /* 选中时文字颜色 */
}

.new-module-list .list-item.active h3 {
  color: var(--ink); /* 选中时标题文字颜色 */
}

.new-module-content {
  background: transparent; /* 背景色由外部 div 控制 */
  border: none; /* 移除描边 */
  border-radius: 0; /* 移除圆角 */
  padding: 30px;
  box-shadow: none; /* 移除投影 */
}

.new-module-content .content-block {
  display: none; /* 默认隐藏 */
  animation: fadeIn 0.5s ease-out; /* 添加淡入动画 */
}

.new-module-content .content-block.active {
  display: block; /* 选中时显示 */
}

.new-module-content .content-block h2 {
  font-size: 28px;
  margin: 0 0 16px;
  color: var(--brand);
}

.new-module-content .content-block p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 20px;
  text-align: justify; /* 设置文字两端对齐 */
}

.new-module-content .content-block img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* 针对 Brand Introduction Section (Desktop Only) 中的图片 */
@media (min-width: 769px) {
  #brand-introduction-desktop .new-module-content .content-block img {
    width: 100%; /* 图片宽度占父级宽度的100% */
  }
}

/* 窄屏响应式 */
@media (max-width: 768px) {
  #home { /* 针对 banner 区域 */
    margin-bottom: 0 !important; /* 移除底部外边距 */
    padding-bottom: 0 !important; /* 移除底部内边距 */
  }
  .new-module-section { /* 针对 new-module-section */
    margin-top: 0 !important; /* 移除顶部负边距 */
    padding-top: 0 !important; /* 移除顶部内边距 */
  }
  .new-module-left-bg {
    display: none; /* 窄屏下隐藏左侧背景 */
  }

  .new-module-grid {
    grid-template-columns: 1fr; /* 窄屏下变为单列布局 */
    gap: 20px;
  }

  .new-module-list {
    background: transparent; /* 背景色由外部 div 控制 */
    padding: 5px;
    display: flex; /* 变为 flex 布局 */
    overflow-x: auto; /* 允许水平滑动 */
    -webkit-overflow-scrolling: touch; /* 改善 iOS 上的滑动体验 */
    scroll-snap-type: x mandatory; /* 启用吸附效果 */
    gap: 3px; /* 列表项之间的间距 */
    padding-bottom: 10px; /* 避免滚动条遮挡内容 */
  }

  .new-module-list::-webkit-scrollbar {
    display: none; /* 隐藏滚动条 */
  }
  
  .new-module-list-container { /* 新增的容器样式 */
    position: relative;
  }
  
  .new-module-nav-btn {
    display: none; /* 确保默认隐藏 */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    cursor: pointer;
    z-index: 10;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
  }
  
  .new-module-nav-btn:hover {
    background: #f8fafc;
    border-color: var(--brand);
    color: var(--brand);
  }
  
  .new-module-nav-btn.prev-btn {
    left: 0; /* 紧贴左侧 */
  }
  
  .new-module-nav-btn.next-btn {
    right: 0; /* 紧贴右侧 */
  }
  
  .new-module-nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #e0e0e0; /* 再次调整为更浅的灰色 */
    background: transparent; /* 禁用状态下也移除背景 */
    border-color: transparent; /* 禁用状态下也移除边框 */
  }
  
  @media (max-width: 768px) {
    .new-module-list-container {
      display: flex; /* 窄屏下使用 flex 布局 */
      align-items: center;
      gap: 10px; /* 按钮与列表之间的间距 */
      padding: 0 40px; /* 窄屏下为按钮留出更多空间 */
      background-color: #f8fafc; /* 添加背景色 */
      /* 使背景延伸到屏幕边缘 */
      margin-left: calc(-1 * var(--container-padding, 16px)); /* 减去容器左侧 padding */
      margin-right: calc(-1 * var(--container-padding, 16px)); /* 减去容器右侧 padding */
      width: calc(100% + 2 * var(--container-padding, 16px)); /* 增加宽度以覆盖 padding */
    }
    .new-module-nav-btn {
      display: flex !important; /* 窄屏下强制显示 */
      align-items: center;
      justify-content: center;
      width: 40px; /* 按钮大小 */
      height: 40px; /* 按钮大小 */
      background: transparent; /* 移除背景 */
      border: none; /* 移除边框 */
      box-shadow: none; /* 移除阴影 */
      color: var(--ink); /* 按钮颜色 */
    }
    .new-module-nav-btn svg { /* 针对 SVG 元素 */
      width: 24px; /* 增大 SVG 图标尺寸 */
      height: 24px; /* 增大 SVG 图标尺寸 */
    }
    .new-module-nav-btn:hover {
      background: transparent; /* 移除背景 */
      border-color: transparent; /* 移除边框 */
      color: var(--ink); /* 悬停时颜色保持不变 */
    }
    .new-module-list {
      padding: 5px 0px 5px 0; /* 调整 padding，确保内容不被按钮遮挡 */
    }
  }

  .new-module-list .list-item {
    flex-shrink: 0; /* 防止列表项缩小 */
    scroll-snap-align: start; /* 列表项吸附到开始位置 */
    padding: 12px 14px;
    font-size: 16px;
    margin-bottom: 0; /* 移除垂直间距 */
  }

  .new-module-list .list-item h3 {
    font-size: 16px;
  }

  .new-module-content {
    background: #ffffff; /* 窄屏下内容区域背景为白色 */
    padding: 20px;
  }

  .new-module-content .content-block h2 {
    font-size: 24px;
  }

  .new-module-content .content-block p {
    font-size: 15px;
  }
}
