@font-face {
  font-family: 'DingTalk JinBuTi';
  src: url('../font/DingTalkJinBuTi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

/* 移除按钮焦点边框 */
button:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* 移除链接焦点样式 */
a:focus {
  outline: none !important;
  box-shadow: none !important;
}

:root {
  --color-primary: #7D2E21;
  --color-secondary: #D7B452;
  --color-light: #FFFFCC;
  --color-accent: #994D51;
  --color-dark: #333333;
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial;
  color: var(--color-dark);
  line-height: 1.7;
  background: #fff url('../images/body-bg.jpg') repeat center center fixed;
  background-size: contain;
}

a {
  color: inherit;
  text-decoration: none;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 3rem;
}

/* Header Styles */
.site-header {
  background: url('../images/top-nav-bg.png') no-repeat center center;
  background-size: cover;
  height: 80px;
  opacity: 1;
  padding: 8px 290px 8px 290px;
  box-sizing: border-box;
  position: relative;
}

.site-header .container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
}

.navbar {
  padding: 0;
  height: 100%;
  gap: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000000;
  margin: 0;
  font-family: 'DingTalk JinBuTi', sans-serif;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0%;
  display: flex;
  align-items: center;
}

.navbar-nav {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-item {
  list-style: none;
}

.nav-link {
  color: #000000 !important;
  font-family: 'DingTalk JinBuTi', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s linear;
}

.nav-link:hover {
  color: var(--color-secondary) !important;
}

.nav-link.active {
  color: var(--color-primary) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
}

.navbar-toggler {
  border-color: transparent !important;
  background-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  position: relative;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002 !important;
}

/* 菜单展开时按钮固定在右上角 */
.navbar-toggler[aria-expanded="true"] {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1003 !important;
}

.navbar-toggler:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* 自定义汉堡菜单按钮 - 三个横杠状态 */
.navbar-toggler .menu-icon {
  width: 25px;
  height: 2px;
  background-color: #000000;
  position: relative;
  transition: all 0.3s linear;
}

.navbar-toggler .menu-icon::before,
.navbar-toggler .menu-icon::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background-color: #000000;
  transition: all 0.3s linear;
  left: 0;
}

.navbar-toggler .menu-icon::before {
  top: -8px;
}

.navbar-toggler .menu-icon::after {
  top: 8px;
}

/* 打开状态动画 - X状态 */
.navbar-toggler[aria-expanded="true"] .menu-icon {
  background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
  background-color: rgba(255, 255, 204, 0.9);
}

.navbar-toggler[aria-expanded="true"] .menu-icon::after {
  transform: rotate(-45deg);
  top: 0;
  background-color: rgba(255, 255, 204, 0.9);
}

/* 隐藏默认的bootstrap图标 */
.navbar-toggler-icon {
  display: none;
}

/* Header Responsive Design */
@media (max-width: 1400px) {
  .site-header {
    padding: 8px 200px;
  }
  
  .navbar-nav {
    gap: 30px;
  }
}

@media (max-width: 1200px) {
  .site-header {
    padding: 8px 100px;
  }
  
  .navbar-nav {
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .site-header {
    padding: 8px 20px;
    height: auto;
    position: relative;
    z-index: 1001;
  }
  
  .navbar-collapse {
    background-color: rgba(125, 46, 33, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 100px 0 0 0;
    z-index: 1000;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin: 0;
    text-align: center;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: none;
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    display: block;
    padding: 20px 30px;
    transition: all 0.3s linear;
    font-family: 'DingTalk JinBuTi', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--color-light) !important;
    border-radius: 0;
  }
  
  .nav-link:hover {
    background-color: rgba(255, 255, 204, 0.1);
    color: var(--color-secondary) !important;
  }
  
  .nav-link.active {
    color: var(--color-secondary) !important;
    background-color: rgba(215, 180, 82, 0.2);
  }
  
  .nav-link.active::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .site-header {
    padding: 8px 15px;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .navbar-brand img {
    height: 50px;
  }
  
  .navbar-collapse {
    padding: 80px 0 0 0;
  }
  
  .nav-link {
    padding: 18px 20px;
    font-size: 16px;
  }
  
  .navbar-nav {
    gap: 15px;
  }
  
  /* 小屏幕上调整固定按钮的位置 */
  .navbar-toggler[aria-expanded="true"] {
    top: 15px;
    right: 15px;
  }
}

/* Footer Styles */
.site-footer {
  background: var(--color-primary) url('../images/footer-bg.png') no-repeat center center;
  background-size: cover;
  /* background-attachment: fixed; */
  color: var(--color-light);
  padding: 40px 360px 40px 360px;
  text-align: center;
  position: relative;
  margin-top: auto;
  height: auto;
  min-height: 259px;
  opacity: 1;
  box-sizing: border-box;
  overflow: hidden;
}

.site-footer .container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  margin-bottom: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.footer-qr {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-item {
  width: 120px;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex-shrink: 0;
}

.footer-menu a {
  color: var(--color-light);
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.footer-menu a:hover {
  opacity: 0.8;
}

.footer-copyright {
  margin-top: 20px;
  width: 100%;
  flex-shrink: 0;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-light);
  word-wrap: break-word;
  hyphens: auto;
}

/* Footer Responsive Design */
@media (max-width: 1400px) {
  .site-footer {
    padding: 40px 200px;
  }
  
  .footer-content {
    gap: 60px;
  }
  
  .footer-qr {
    gap: 30px;
  }
}

@media (max-width: 1200px) {
  .site-footer {
    padding: 40px 100px;
    min-height: 300px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-menu {
    align-items: center;
  }
  
  .qr-item {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 992px) {
  /* 平板设备优化 */
  .site-footer {
    padding: 40px 50px;
    min-height: 300px;
  }
  
  .footer-content {
    gap: 30px;
  }
  
  .footer-qr {
    gap: 20px;
  }
  
  .qr-item {
    width: 90px;
    height: 90px;
  }
  
  .footer-menu {
    gap: 12px;
  }
  
  .footer-menu a {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  /* 小平板和大屏手机优化 */
  .site-footer {
    padding: 35px 30px;
    min-height: 280px;
    background-size: auto;
    background-repeat: repeat-y;
  }
  
  .footer-content {
    gap: 25px;
  }
  
  .footer-qr {
    gap: 15px;
  }
  
  .qr-item {
    width: 85px;
    height: 85px;
  }
  
  .footer-menu {
    gap: 10px;
  }
  
  .footer-menu a {
    font-size: 0.9rem;
  }
  
  .footer-copyright p {
    font-size: 0.85rem;
    padding: 0 10px;
  }
}

@media (max-width: 576px) {
  /* 手机设备优化 */
  .site-footer {
    padding: 30px 20px;
    min-height: 260px;
    background-size: auto;
    background-repeat: repeat-y;
  }
  
  .footer-content {
    gap: 20px;
  }
  
  .footer-qr {
    gap: 15px;
    flex-direction: column;
  }
  
  .qr-item {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }
  
  .footer-menu {
    gap: 10px;
  }
  
  .footer-menu a {
    font-size: 0.9rem;
  }
  
  .footer-copyright {
    margin-top: 15px;
  }
  
  .footer-copyright p {
    font-size: 0.8rem;
    padding: 0 10px;
    line-height: 1.4;
  }
}

@media (max-width: 375px) {
  /* 小屏手机优化 */
  .site-footer {
    padding: 25px 15px;
    min-height: 240px;
  }
  
  .footer-content {
    gap: 15px;
  }
  
  .qr-item {
    width: 70px;
    height: 70px;
  }
  
  .footer-menu {
    gap: 8px;
  }
  
  .footer-menu a {
    font-size: 0.85rem;
  }
  
  .footer-copyright p {
    font-size: 0.75rem;
    padding: 0 5px;
  }
}

/* 通用分页样式 - 基于Bootstrap设计 */
.pagination {
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin: 40px 0;
    border-radius: 0.375rem;
    list-style: none;
}

.pagination li {
    margin: 0;
}

.pagination li a,
.pagination li span {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--color-primary);
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    min-width: 2.5rem;
    text-align: center;
    font-size: 0.95rem;
    border-radius: 0.25rem;
}

.pagination li:first-child a,
.pagination li:first-child span {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.pagination li:last-child a,
.pagination li:last-child span {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.pagination li a:hover {
    z-index: 2;
    color: #6a251a;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination li.active a,
.pagination li.active span {
    z-index: 1;
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.pagination li.disabled a,
.pagination li.disabled span {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination li a:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(125, 46, 33, 0.25);
}

.pagination li.ellipsis {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    font-weight: 600;
    color: var(--color-dark);
}

/* 分页响应式设计 */
@media (max-width: 768px) {
    .pagination {
        margin: 30px 0;
    }
    
    .pagination li a,
    .pagination li span {
        padding: 0.375rem 0.625rem;
        font-size: 0.9rem;
        min-width: 2.25rem;
    }
    
    .pagination li.ellipsis {
        padding: 0.375rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        margin: 25px 0;
    }
    
    .pagination li a,
    .pagination li span {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
        min-width: 2rem;
    }
    
    .pagination li.ellipsis {
        padding: 0.25rem 0.375rem;
    }
}

/* 通用Banner样式 - 自适应高度和宽度 */
.banner {
    /* 设置宽度为100%，适应父容器 */
    width: 100%;
    /* 使用padding-top创建响应式高度，基于宽高比 */
    /* 相对定位，用于内部绝对定位元素 */
    position: relative;
    /* 隐藏溢出内容 */
    overflow: hidden;
    /* 背景图片基础设置 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.banner .img-fluid {
    /* 图片宽度100%，高度自动调整 */
    width: 100%;
    height: auto;
}

/* Banner内容容器 - 用于放置浮动文字 */
.banner .banner-content {
    /* 绝对定位，覆盖在背景图片上 */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Banner标题样式 */
.banner .banner-title {
    /* 字体大小，使用rem单位实现响应式 */
    font-size: 3rem;
    /* 字体粗细 */
    font-weight: 700;
    /* 标题底部间距 */
    margin-bottom: 1rem;
    /* 文本对齐 */
    text-align: center;
    /* 防止文字溢出 */
    overflow-wrap: break-word;
    /* 最大宽度，确保在大屏幕上不会太宽 */
    max-width: 90%;
    /* 阴影效果 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Banner副标题样式 */
.banner .banner-subtitle {
    /* 字体大小，使用rem单位实现响应式 */
    font-size: 1.5rem;
    /* 字体粗细 */
    font-weight: 400;
    /* 文本对齐 */
    text-align: center;
    /* 防止文字溢出 */
    overflow-wrap: break-word;
    /* 最大宽度，确保在大屏幕上不会太宽 */
    max-width: 90%;
    /* 阴影效果 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.banner .banner-video {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: #FFFFCC;

}
/* Banner按钮样式（可选） */
.banner .banner-btn {
    /* 显示为块级元素 */
    display: inline-block;
    /* 内边距 */
    padding: 8px 24px;
    /* 字体大小 */
    font-size: 1rem;
    /* 字体粗细 */
    font-weight: 600;
    /* 文字颜色 - 黄金色 */
    color: #E8B256;
    /* 透明背景色 */
    background-color: rgba(232, 178, 86, 0.2);
    /* 双层边框：外层略粗黄金色，内层1px黄金色 */
    border: 1px solid #E8B256;
    outline: 2px solid #E8B256;
    outline-offset: 3px;
    /* 无圆角，保持矩形效果 */
    border-radius: 0;
    /* 文本装饰 */
    text-decoration: none;
    /* 鼠标悬停效果 */
    transition: all 0.3s ease;
    /* 确保文字居中 */
    text-align: center;
}

/* Banner按钮悬停效果 */
.banner .banner-btn:hover {
    /* 悬停时背景色变为半透明黄金色 */
    background-color: rgba(232, 178, 86, 0.3);
    /* 悬停时边框颜色加深 */
    border-color: #d4a047;
    outline-color: #d4a047;
    /* 悬停时文字颜色加深 */
    color: #d4a047;
    /* 阴影效果 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    /* 设置banner最小高度为210px */
    .banner {
        min-height: 210px;
    }
    
    /* 修改图片样式：高度匹配banner，宽度超出不展示，居中显示 */
    .banner .img-fluid {
        width: auto;
        height: 100%;
        min-height: 210px;
        object-fit: cover;
        object-position: center;
    }
    
    /* 减小标题字体大小 */
    .banner .banner-title {
        font-size: 2rem;
    }
    
    /* 减小副标题字体大小 */
    .banner .banner-subtitle {
        font-size: 1.2rem;
    }
    
    /* 减小按钮内边距和字体大小 */
    .banner .banner-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        /* 调整移动端边框大小 */
        outline: 2px solid #E8B256;
        outline-offset: 2px;
    }
    
    /* 减小文字容器内边距 */
    .banner .banner-content {
        padding: 15px;
    }
}

/* 小屏设备响应式设计 */
@media (max-width: 480px) {
    /* 设置banner最小高度为210px */
    .banner {
        min-height: 210px;
    }
    
    /* 修改图片样式：高度匹配banner，宽度超出不展示，居中显示 */
    .banner .img-fluid {
        width: auto;
        height: 100%;
        min-height: 210px;
        object-fit: cover;
        object-position: center;
    }
    
    /* 进一步减小标题字体大小 */
    .banner .banner-title {
        font-size: 1.5rem;
    }
    
    /* 进一步减小副标题字体大小 */
    .banner .banner-subtitle {
        font-size: 1rem;
    }
    
    /* 进一步减小按钮内边距和字体大小 */
    .banner .banner-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* 进一步减小文字容器内边距 */
    .banner .banner-content {
        padding: 10px;
    }
}

/* video-wrapper */
.video-wrapper {
    /* 视频内容区域的基础样式 */
    padding: 60px 0;
}

/* 视频内容区域的文本中心样式 */
.video-wrapper .text-center {
    padding: 0 100px;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* 确保在移动设备上文本区域的内边距合适 */
@media (max-width: 768px) {
    .video-wrapper .text-center {
        padding: 0 20px;
    }
}

/* 在小屏设备上进一步减少内边距 */
@media (max-width: 480px) {
    .video-wrapper .text-center {
        padding: 0 10px;
    }
}

/* 视频内容区域的标题样式 */
.video-wrapper .title {
    font-size: 32px;
    color: #434343;
    margin-bottom: 20px;
}

/* 视频内容区域的描述样式 */
.video-wrapper .description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 视频卡片样式 */
.video-wrapper .video-card {
    border: 1px solid #E8D8B8;
    padding: 15px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* 视频缩略图容器样式 */
.video-wrapper .video-thumbnail {
    position: relative;
    margin-bottom: 15px;
    cursor: pointer;
}

/* 视频缩略图图片样式 */
.video-wrapper .thumbnail-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 视频播放按钮样式 */
.video-wrapper .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 视频播放图标样式 */
.video-wrapper .play-icon {
    color: white;
    font-size: 20px;
}

/* 视频标题样式 */
.video-wrapper .video-title {
    font-size: 18px;
    color: #434343;
    margin-bottom: 10px;
}

/* 视频描述样式 */
.video-wrapper .video-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 视频tu2图片区域样式 */
.video-wrapper .tu2-section {
    margin: 60px 0;
}

/* 视频tu2图片容器样式 */
.video-wrapper .tu2-container {
    text-align: center;
}

/* 视频tu2图片样式 */
.video-wrapper .tu2-img {
    max-width: 100%;
    height: auto;
}

/* 视频模态框样式 */
.video-wrapper .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

/* 视频模态框内容样式 */
.video-wrapper .modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

/* 视频模态框淡入动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 视频模态框视频容器样式 */
.video-wrapper .modal-video-container {
    position: relative;
    padding: 20px;
}

/* 视频模态框关闭按钮样式 */
.video-wrapper .modal-close {
    color: white;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

/* 视频模态框关闭按钮悬停效果 */
.video-wrapper .modal-close:hover {
    background-color: #e74c3c;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* 视频模态框视频样式 */
.video-wrapper .modal-video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 确保模态框在移动设备上也能正常显示 */
@media (max-width: 768px) {
    .video-wrapper .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .video-wrapper .modal-video-container {
        padding: 10px;
    }
    
    .video-wrapper .modal-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
}