/* 顶部导航/间隔样式 */
.rowny {
  max-width: 100%;
  background-color: #f8f9fa;
  padding: 6px 0;
  margin-bottom: 12px;
  z-index: 99999999;
}

/* 容器基础 - 自适应居中 */
.containerny {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* 面包屑导航 - 移除固定宽度，改为自适应 */
.breadcrumb {
  font-size: 16px;
  padding: 0.5rem 0.5rem;
  max-width: 1350px; 
  margin: 0 auto;
}
.breadcrumb a {
  color: #182e82;
  text-decoration: none;
}

/* 标题区域 - 自适应布局 */
.header-section {
  background-color: #f8f9fa;
  padding: 2rem 1rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.header-title {
  flex: 1 1 60%;
  margin-right: 2rem;
}
.header-title h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #002b5c;
  margin-bottom: 0.5rem;
}
.header-meta {
  font-size: 0.9rem;
  color: #6c757d;
}
.header-desc {
  flex: 1 1 35%;
  font-size: 1rem;
  color: #333;
}

/* 侧边栏 + 主内容 布局容器 - 核心：移除固定width，改用max-width+flex */
.content-container {
  max-width: 1350px; /* 替代原width:1350px */
  margin: 0 auto;
  display: flex;
  padding: 1rem 0; 
  flex-wrap: nowrap;
  gap: 1rem;
}

/* 左侧侧边栏 - 滚动浮动逻辑保留，手机端重置 */
.sidebar-left {
  width: 280px;
  flex-shrink: 0;
  max-height: calc(120vh - 2rem);
  overflow-y: auto;
  background: #FFFFFF;
}
/* 滚动时浮动样式 */
.sidebar-left.sticky {
  position: sticky;
  top: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.sidebar-nav {
  background-color: #fff;
  margin-bottom: 1rem;
}
.sidebar-nav-title {
	background-color: #0056b3;
	color: #fff;
	padding: 1.05rem 2rem;
	font-weight: 700;
	font-size: 20px;
}
.sidebar-nav ul {
  list-style: none;
}
.sidebar-nav li {
  border-bottom: 1px solid #e9ecef;
}
.sidebar-nav li a {
  display: flex;
  align-items: center;
  padding: 1.05rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
  	 font-size:15px;
}
/* 当前选中项 */
.sidebar-nav li.active a {
  background-color: #d9d9d9;
   font-weight:600;
     color:#145fa1;
	 font-size:15px;
}
.sidebar-nav li a:hover:not(.active) {
  background-color: #f8f9fa;
}


/* 当前选中项 */
.sidebar-nav li.active1 a {
  font-weight:600;
}
.sidebar-nav li a:hover:not(.active1) {
  background-color: #f8f9fa;
}


/* 自定义箭头 - 带动画 */
.sidebar-nav li .arrow {
  transition: all 0.3s ease;
  margin-right: 0.75rem;
  width: 16px; 
  height: 12px; 
  transform-origin: center;
}
.sidebar-nav li a:hover .arrow {
  animation: arrowPulse 0.5s ease;
}
@keyframes arrowPulse {
  0% { transform: translateX(0); }
  50% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}
.sidebar-nav li.active a:hover .arrow {
  animation: activeArrowPulse 0.5s ease;
}
@keyframes activeArrowPulse {
  0% { transform: rotate(90deg) translateX(0); }
  50% { transform: rotate(90deg) translateX(5px); }
  100% { transform: rotate(90deg) translateX(0); }
}

/* 主内容区域 - 自适应 + 图片修复 */
.main-content {
	flex-grow: 1;
	background-color: #fff;
	border: 1px solid #e9ecef;
	line-height: 1.8;
	min-height: 400px;
	padding-top: 1.5rem;
	padding-right: 2rem;
	padding-bottom: 1.5rem;
	padding-left: 3rem;
}
.main-content h2 {
  line-height: 2;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #145fa1;
  margin: 20px 0 40px;
}
.main-content p {
  margin-bottom: 1rem;
  font-size: 14px;
  color: #515151;
  /* 重置p标签默认样式，避免影响图片 */
  line-height: 24px;
}
/* 核心：图片100%自适应 + 清除额外间距 */
.main-content img {
	max-width: 100% !important; /* 强制覆盖可能的冲突样式 */
	width:700px;
	height: auto !important;
	margin: 1.5rem 0;
	display: block;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.main-content1 {
  flex-grow: 1;
  background-color: #fff;
  border: 1px solid #e9ecef;
  padding: 1.5rem;
  line-height: 1.8;
  min-height: 400px;
}
.main-content1 h2 {
  line-height: 2;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #145fa1;
  margin: 20px 0 40px;
}
.main-content1 p {
  margin-bottom: 1rem;
  font-size: 14px;
  color: #515151;
  /* 重置p标签默认样式，避免影响图片 */
  line-height: 24px;
}
/* 核心：图片100%自适应 + 清除额外间距 */




/* 分页样式 */
.pages {
  margin: 40px auto 0;
  color: #666;
  font-size: 15px;
  text-align: center;
}
.pages a {
  display: inline-block;
  padding: 0 15px;
  background-color: #fff;
  height: 32px;
  line-height: 32px;
  text-align: center;
  margin: 0 5px;
  border-radius: 2px;
  color: #666;
  font-size: 14px;
  border: 1px solid #ddd;
  text-decoration: none;
}
.pages a:hover {
  background-color: #182e82;
  color: #fff;
  border: 1px solid #182e82;
}
.pages a.page-num-current {
  background-color: #182e82; 
  color: #fff; 
  border: 1px solid #182e82; 
  font-weight: bold; 
}
.pages a.pnnum1 {
  background-color: #182e82;
  color: #fff;
  border: 1px solid #182e82;
}
.pages input {
  display: inline-block;
  padding: 0 5px;
  background-color: #182e82;
  width: 40px!important;
  height: 32px!important;
  line-height: 32px;
  text-align: center;
  border-radius: 2px;
  margin: 0 5px;
  color: #fff;
  cursor: pointer;
  border: 0;
  outline: none;
}
.pages .p_input {
  display: inline-block;
  padding: 0 5px;
  background-color: #fff;
  width: 40px!important;
  height: 32px;
  line-height: 30px;
  text-align: center;
  margin: 0 5px;
  color: #555;
  font-size: 14px;
  cursor: default;
  border: 1px solid #efefef;
}

/* 响应式适配 - 手机端关键修复 */
@media (max-width: 768px) {
  /* 标题区域堆叠 */
  .header-section {
    flex-direction: column;
  }
  .header-title,
  .header-desc {
    flex: 1 1 100%;
    margin-right: 0;
    margin-bottom: 1rem;
  }

  /* 布局容器堆叠 + 侧边栏适配 */
  .content-container {
    flex-wrap: wrap;
  
  }
  .sidebar-left {
    width: 100%;
    max-height: none;
    position: static !important;
    margin-bottom: 1rem;
    padding: 0 10px;
  }
  
  
  
      .main-content1 {
    width: 100%;
    padding: 1rem;
  }
  
  
    /* 图片、段落间距优化 */
  .main-content1 h2 {
    font-size: 1.5rem; /* 缩小手机端标题 */
    margin: 15px 0 25px;
  }
  .main-content1 p {
    font-size: 14px;
    line-height: 24px;
    padding: 0 5px; /* 增加内边距避免文字贴边 */
  }
  .main-content1 img {
    margin: 1rem auto; /* 图片居中 */
    border-radius: 2px;
  }
  
  
  .main-content {
    width: 100%;
    padding: 1rem;
  }


  /* 图片、段落间距优化 */
  .main-content h2 {
    font-size: 1.5rem; /* 缩小手机端标题 */
    margin: 15px 0 25px;
  }
  .main-content p {
    font-size: 14px;
    line-height: 24px;
    padding: 0 5px; /* 增加内边距避免文字贴边 */
  }
  .main-content img {
  
  width:100%;
  height:auto;
    margin: 1rem auto; /* 图片居中 */
    border-radius: 2px;
  }
}

/* 其他页面样式（教师列表、下载页等） */
.teacher-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  justify-content: flex-start;
}
.teacher-item {
  background-color: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.teacher-item img {
  width: 100%;
  height: 245px;
  display: block;
  object-fit: cover;
}
.teacher-info {
  padding: 15px;
}
.teacher-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #145fa1;
  line-height: 22px;
}
.teacher-info p {
  font-size: 14px;
  line-height: 1.6;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.page-title {
  color: #2c3e50;
  font-size: 2.2rem;
  margin-bottom: 15px;
}
.page-description {
  color: #7f8c8d;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}
.download-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.filter-btn {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}
.filter-btn:hover,
.filter-btn.active {
  background-color: #2c3e50;
  color: white;
  border-color: #2c3e50;
}
.download-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.download-item {
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.download-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.download-content {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.download-icon {
  flex: 0 0 40px;
  height: 40px;
  background-color: #f8f9fa;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c3e50;
  font-size: 1.2rem;
}
.download-info {
  flex: 1;
  min-width: 250px;
}
.download-title {
  font-size: 1.4rem;
  color: #145fa1;
  margin-bottom: 5px;
}
.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: #7f8c8d;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.download-description {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
}
.download-action {
  flex: 0 0 auto;
  padding-left: 15px;
  border-left: 1px dashed #eee;
}
.download-link {
  display: inline-block;
  background-color: #2c3e50;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  font-size:15px;
}
.download-link:hover {
  background-color: #34495e;
  color: white;
    font-size:15px;
}
.download-link i {
  margin-right: 6px;
}
