:root {
  --primary-color: #b8860b;
  --secondary-color: #deb887;
  --bg-light: #f5f0e6;
  --bg-dark: #d2b48c;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background-color: #fff;
}

/* 全局a标签样式 */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
  text-decoration: none;
}

/* 头部导航容器 */
.header-nav-wrapper {
  width: 100%;
  height: 824px;
  background: url('/static/kzxt2026/images/header-bg.jpg') no-repeat center top;
  background-size: cover;
  position: relative;
}

/* 顶部导航 */
.top-header {
  padding: 40px 0;
}

.logo img {
  height: 50px;
}

.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-box input {
  border-radius: 4px 0px 0px 4px;
  border: 0.5px solid #b28953;
  background-color: #f6d5a9;
}

.search-box button {
  border-radius: 0 4px 4px 0;
  background-color: #8f171f;
  border: none;
  color: #fff;
  width: 70px;
  height: 38px;
}

.search-box button:hover,
.search-box button:focus,
.search-box button:active {
  background-color: #8f171f;
  border: none;
  color: #fff;
}

.main-nav {
  background-color: transparent;
  /* border-top: 1px solid #ccc; */
  /* border-bottom: 1px solid #ccc; */
}

.main-nav .navbar-nav {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border-top: 1px solid #9d161d;
}

.main-nav .navbar-nav .nav-item {
  flex: 1;
  text-align: center;
  border-top: 4px solid transparent;
  transition: border-top-color 0.3s;
  margin-top: -4px;
  padding-top: 4px;
}

.main-nav .navbar-nav .nav-item:hover,
.main-nav .navbar-nav .nav-item.active {
  border-top-color: #945500;
}

.main-nav .navbar-nav .nav-link {
  color: #945500;
  padding: 10px;
  font-weight: bold;
  font-size: 18px;
}

.main-nav .navbar-nav .nav-link:hover {
  /* background-color: var(--primary-color); */
  /* color: #fff; */
}

/* 下拉菜单悬停显示 */
.main-nav .nav-item.dropdown:hover > .dropdown-menu {
  display: block;
  margin-top: 0;
}

/* 移除下拉箭头 */
.main-nav .dropdown-toggle::after {
  display: none;
}

.main-nav .dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  min-width: 120px;
  background-color: #fff;
  margin-left: 20px;
}

.main-nav .dropdown-item {
  padding: 10px 20px;
  color: #945500;
  font-size: 16px;
  transition: all 0.3s;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
}

.main-nav .dropdown-item:last-child {
  border-bottom: none;
}

.main-nav .dropdown-item:hover {
  background-color: #f8f7f4;
  color: #b8860b;
  padding-left: 25px;
}

/* 通知公告 */
.notice-bar {
  background-color: #fff;
  padding: 20px 0 0 0;
  color: #cb842e;
}

/* 通知公告滚动样式 */
.notice-scroll-container {
  height: 24px;
  overflow: hidden;
  position: relative;
}

.notice-scroll-wrapper {
  animation: noticeScroll 12s infinite;
}

.notice-item {
  height: 24px;
  line-height: 24px;
}

.notice-item a {
  color: inherit;
  text-decoration: none;
}

.notice-item a:hover {
  color: inherit;
  text-decoration: none;
}

@keyframes noticeScroll {
  0%, 25% {
    transform: translateY(0);
  }
  33%, 58% {
    transform: translateY(-24px);
  }
  66%, 91% {
    transform: translateY(-48px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 通用区块样式 */
.section {
  padding: 20px 0;
}

.section-title {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.section-title i {
  margin-right: 8px;
}

.section-more {
  margin-left: auto;
  font-size: 12px;
  color: #999;
}

.section-more a {
  color: #999;
  text-decoration: none;
}

.section-more a:hover {
  color: #999;
  text-decoration: none;
}

/* 学堂资讯 */
.news-section {
  background-color: #fff;
}

.news-focus {
  height: 360px;
}

.news-focus img {
  width: 100%;
  object-fit: cover;
}

/* Swiper 轮播图样式 */
.news-focus .swiper-container.sw1 {
  height: 360px;
}

.news-focus .swiper-wrapper {
  height: 100%;
}

.news-focus .swiper-slide.slide-item {
  height: 100%;
}

.news-focus .swiper-slide-link {
  display: block;
  height: 100%;
  position: relative;
}

.news-focus .swiper-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-focus .swiper-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-focus .swiper-slide-caption small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-focus .swiper-pagination.swcl1 {
  text-align: right;
  right: 30px;
  left: auto;
}

/* 右侧资讯列表样式 */
.news-section .col-md-6:last-child {
  display: flex;
  flex-direction: column;
  height: 360px;
}

.news-section .section-title {
  flex-shrink: 0;
}

.news-list {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-list .news-item {
  display: flex;
  gap: 15px;
  padding-bottom: 15px;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  border-bottom: 1px solid #eee;
}

.news-list .news-item > div:last-child {
  flex: 1;
  height: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-list .news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--primary-color);
  font-size: 14px;
  min-width: 60px;
}


.news-date {
  width: 65px;
  height: 50px;
  text-align: center;
  background-color: transparent;
  border-right: 1px solid #ccc;
}

.news-date-day {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1;
}

.news-date-month {
  font-size: 12px;
  color: #999;
  margin-top: 3px;
}

.news-btn {
  flex-shrink: 0;
  margin-top: 15px;
  height: 60px;
  background-color: #e9ca88;
  color: #fff;
  border: none;
  padding: 10px 20px;
  width: 100%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-btn img {
  margin-right: 8px;
  vertical-align: middle;
}

/* 学堂简介 */
.intro-section {
  background-color: var(--bg-light);
}

.intro-section .col-md-8,
.intro-section .col-md-4 {
  height: 330px;
}

.intro-box {
  background-color: #fff;
  padding: 25px;
  margin-bottom: 20px;
  height: 100%;
}

.intro-box img {
  max-width: 100%;
  height: auto;
}

.section-title img {
  max-width: 100%;
  height: auto;
}

.query-box {
  background-color: #fff;
  padding: 25px;
  height: 100%;
}

.query-box input {
  border-radius: 0;
  border: 1px solid var(--secondary-color);
  height: 66px;
  font-size: 16px;
}

.query-box input::placeholder {
  color: #ebc292;
}

.query-box .search-btn {
  border-radius: 0;
  background-color: #c96d00;
  color: #fff;
  border: none;
  height: 66px;
  padding: 0 30px;
  font-size: 16px;
  white-space: nowrap;
}

.query-box button {
  border-radius: 0;
  background-color: #c96d00;
  border: none;
}

.query-btn {
  background-color: #c96d00;
  color: #fff;
  border: none;
  padding: 12px;
  width: 100%;
  margin-top: 10px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.query-btn i {
  margin-right: 8px;
}

.query-btn img {
  margin-right: 8px;
  vertical-align: middle;
}

/* 学堂活动 */
.activity-section {
  background-color: var(--bg-light);
}

.activity-section .col-md-3 {
  padding: 5px;
}

.activity-card {
  border: none;
  margin-bottom: 20px;
}

.activity-card img {
  object-fit: cover;
  border-radius: 0 !important;
}

/* 学堂资源 */
.resource-section {
  background-color: var(--bg-light);
  padding-bottom: 50px;
}

.resource-tabs .nav-tabs {
  border: none;
}

.resource-tabs .nav-tabs .nav-link {
  border: none;
  color: #fff;
  background-color: #c7b797;
  padding: 10px 20px;
  border-radius: 0;
  font-weight: bold;
  width: 130px;
  margin-right: 5px;
}

.resource-tabs .nav-tabs .nav-link.active {
  background-color: #bf9c72;
  color: #fff;
}

.resource-section .tab-content {
  background-color: #bf9c72;
  padding: 20px;
  margin-top: 0 !important;
}

.resource-card {
  background-color: #efe7d7;
  padding: 15px;
}

.resource-card h6 {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-card img {
  width: 100%;
  height: 206px;
  display: block;
  object-fit: cover;
}

.resource-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

.resource-list li {
  padding: 10px 0 10px 10px;
  border-bottom: 1px solid #e2d6bd;
  font-size: 14px;
  list-style: none;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #bf9c72;
  border-radius: 50%;
}

.resource-list li:last-child {
  border-bottom: none;
}

/* lhMap 模块样式 */
.lhMap {
  padding: 25px 0;
}

.lhMap .MapBox {
  border-bottom: 1px solid #dbba92;
  width: 1180px;
  height: 510px;
  position: relative;
  margin: 0 auto;
}

.lhMap .MapBox .leftButton {
  display: inline-block;
  width: 46px;
  height: 106px;
  position: absolute;
  left: 0px;
  top: 20%;
  cursor: pointer;
  background: url('/static/kzxt2026/images/left_b.png') no-repeat;
}

.lhMap .MapBox .rightButton {
  display: inline-block;
  width: 46px;
  height: 106px;
  position: absolute;
  right: 0px;
  top: 20%;
  cursor: pointer;
  background: url('/static/kzxt2026/images/right_b.png') no-repeat;
}

.lhMap .MapBox .mapBoxList {
  width: 964px;
  height: 510px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

/* Swiper 容器 */
.lhMap .MapBox .mapBoxList .swiper {
  width: 100%;
  height: 100%;
}

.lhMap .MapBox .mapBoxList .swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  transition-property: transform;
}

.lhMap .MapBox .mapBoxList .swiper-slide {
  width: 238px;
  height: 510px;
  overflow: hidden;
  text-align: center;
  position: relative;
  float: left;
  /* 使用 flexbox 布局实现垂直居中 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lhMap .MapBox .mapBoxList .swiper-slide > a img {
  display: block;
  margin: 0 auto;
}


/* icon1 图标样式 - 底部居中 */
.lhMap .MapBox li .icon1,
.lhMap .MapBox .swiper-slide .icon1 {
  display: inline-block;
  width: 53px;
  height: 53px;
  background: url('/static/kzxt2026/images/icon1.png') no-repeat center bottom;
  /* 定位到父元素底部居中 */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  margin-bottom: 20px;
}


.item-intro {
  flex: 1; /* 占据剩余空间 */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
  padding: 10px;
}

.item-intro h5 {
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
}

.item-intro div {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Swiper slide 中的 show 元素样式 */
.lhMap .MapBox .swiper-slide .show {
  opacity: 0 !important; /* 使用 !important 确保优先级 */
  width: 100%;
  background: #c96d00;
  height: 280px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  padding: 20px;
  transition: opacity 0.3s ease-in-out; /* 添加过渡动画 */
  color: #fff;
  box-sizing: border-box; /* 确保 padding 包含在宽度内 */
}

.lhMap .MapBox .swiper-slide .show a:link {
  color: #fff;
}

.lhMap .MapBox .swiper-slide .show h4 {
  font-weight: bold;
}


/* 鼠标悬停时显示 */
.lhMap .MapBox .swiper-slide:hover .show {
  opacity: 1 !important; /* 使用 !important 确保优先级 */
}

/* Tab 区块标题 */
.tab-section-title {
  color: #fff;
  height: 20px;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  border-left: 2px solid #fff;
  padding-left: 10px;
}

.tab-section-title h6 {
  margin: 0;
  line-height: 1;
}

.tab-section-more {
  margin-left: auto;
  font-size: 12px;
  color: #fff;
  line-height: 1;
}

/* 名师 banner */
.teacher-banner {
  background-color: #f8f7f4;
  padding: 30px 0;
  text-align: center;
}

.teacher-banner img {
  width: 100%;
  height: auto;
}

/* 学堂故事学堂人 */
.story-section {
  background-color: #f8f7f4;
  padding: 30px 0 50px 0;
}

.story-list {
  background-color: #fff;
  list-style: disc;
  padding-right: 20px;
}

.story-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.story-list li a {
  text-decoration: none;
  color: #000;
}

.teacher-photo img {
  width: 100%;
  height: 224px;
  object-fit: cover;
  margin-bottom: 10px;
}

.teacher-name {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.teacher-name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  max-height: 3em; /* 2行 × 1.5行高 */
}

/* 页脚 */
.footer {
  background-color: #bf9c72;
  color: #7f4400;
  padding: 40px 0 20px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 15px;
}

.footer-info {
  font-size: 14px;
  line-height: 1.8;
}

.footer-qr {
  width: 100px;
  display: block;
  float: right;
}

.footer-qr img {
  width: 100px;
  height: 100px;
}

.footer-qr p {
  font-size: 14px;
  margin-top: 5px;
  text-align: center;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 30px;
  padding-top: 20px;
  font-size: 14px;
  text-align: center;
}


/* 信息报送弹窗样式 */
.info-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(74, 74, 73, 0.6);
}

.info-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.info-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 0;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.info-modal-body {
  margin: 20px;
  padding: 20px;
  border: 1px solid #b8860b;
}

.info-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 30px 0;
}

.info-modal-header h3 {
  text-align: center;
  flex: 1;
  color: #b8860b;
  font-size: 32px;
  font-weight: bold;
}

.info-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 40px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 40px;
  height: 40px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.info-modal-close:hover {
  color: #b8860b;
}

.info-modal-btn {
  background-color: #bd8000;
  color: #fff;
  padding: 20px 30px;
  margin-bottom: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 15px;
  border-bottom: none;
}

.info-modal-btn:last-child {
  margin-bottom: 0;
}

.info-modal-btn:hover {
  background-color: #a0740a;
}

.info-modal-btn h4 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.info-modal-btn p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  opacity: 0.9;
}


/* 列表页开始 */
.list-header-nav-wrapper {
  width: 100%;
  height: 215px;
  background: url('/static/kzxt2026/images/list-banner.jpg') no-repeat center top;
  background-size: cover;
  position: relative;
}

.list-section {
  background-color: #f8f7f4;
}

.list-card {
  background-color: #fff;
  padding: 25px;
  margin: 10px;
}

.breadcrumb-nav {
  padding-bottom: 5px;
  border-bottom: 1px solid #e5e5e5;
  color: #aaaaaa;
}

.breadcrumb-nav a {
  color: #aaaaaa;
  text-decoration: none;
}

.list-card ul.article-list {
  list-style: none;
  padding: 30px 15px 15px 15px;
}

.list-card ul.article-list li {
  height: 60px;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  padding-left: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.list-card ul.article-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #b6040a;
  border-radius: 50%;
}

.list-card ul.article-list li a {
  line-height: 60px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 10px;
  text-decoration: none;
  color: #000;
}

.list-card ul.article-list li span {
  flex-shrink: 0;
  color: #999;
}

.list-card ul.article-list li:last-child {
  border-bottom: none;
}

.list-nav {
  margin-top: 30px;
  background-color: #d5c09f;
  height: 330px;
  padding: 0;
}

.list-nav-title {
  width: 100%;
  height: 60px;
  background-color: #9c3d00;
  line-height: 60px;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  color: #fff;
}

.left-nav-list {
  list-style-type: none;
  margin: 8px 0 0 0;
  padding: 0;
}

.left-nav-list li {
  width: 100%;
  height: 60px;
  line-height: 60px;
}

.left-nav-list li a {
  display: block;
  text-decoration: none;
  color: #000;
  font-size: 18px;
  text-align: center;
}

.left-nav-active {
  background-color: #ffe6bd;
}

/* 列表页结束 */


/* 内容页开始 */

#attachment-download {
  display: block;
  margin: 32px 0 32px 32px;
}

#attachment-download a {
  color: blue;
}

/* 内容页结束 */



/* 响应式调整 */
@media (max-width: 768px) {
  .header-nav-wrapper {
    height: 500px;
  }

  .banner-section img {
    height: 250px;
  }

  .news-focus img {
    height: 200px;
  }

  .section {
    padding: 20px 0;
  }

  .main-nav .navbar-nav .nav-link {
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* 学堂查询页面样式 */
.query-page {
  padding: 40px 0 60px;
}

/* 页面标题 */
.query-page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.query-page-title img {
  height: 29px;
  margin-right: 10px;
}

.query-page-title h2 {
  font-size: 28px;
  color: #333;
  margin: 0;
  font-weight: bold;
}

/* 搜索框 */
.query-search-box {
  display: flex;
  max-width: 800px;
  margin: 0 auto 50px;
  height: 60px;
}

.query-search-box input {
  flex: 1;
  border: 1px solid #c96d00;
  border-right: none;
  padding: 0 20px;
  font-size: 16px;
  border-radius: 0;
  outline: none;
}

.query-search-box input::placeholder {
  color: #c96d00;
}

.query-search-box .search-btn {
  width: 80px;
  background-color: #c96d00;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* 查询结果 */
.query-result {
  max-width: 1140px;
  margin: 0 auto 60px;
}

.result-title {
  font-size: 24px;
  color: #c96d00;
  font-weight: bold;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c96d00;
}

.result-info {
  margin-top: 20px;
}

.info-row {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 16px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: bold;
  color: #333;
  min-width: 140px;
}

.info-value {
  color: #333;
  flex: 1;
}

/* 网站声明 */
.query-disclaimer {
  max-width: 1140px;
  margin: 60px auto 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-left: 4px solid #ff0000;
}

.query-disclaimer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #ff0000;
}

.query-disclaimer strong {
  font-weight: bold;
}
