/* 基础样式设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  color: var(--light);
  overflow-x: hidden;
}

/* 全局链接样式 */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #0b1e2d;
  font-weight:400;
}
/* 颜色变量 */
:root {
  --primary: #1a365d;
  --secondary: #4299e1;
  --accent: #ed8936;
  --dark: #171923;
  --light: #f7fafc;
}

/* 搜索按钮样式 */
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--light);
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
  margin-right: 16px;
}

.search:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.search i {
  font-size: 18px;
}

.search span {
  font-size: 16px;
  font-weight: 500;
}

/* 导航栏样式 */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.5s;
  padding: 16px 0;
}

#navbar .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* 右侧操作区容器 */
.nav-actions {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--light);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /*background-color: var(--accent);
  display: flex;*/
  align-items: center;
  justify-content: center;
}

.logo-icon img{
  width: 118px;
  height: 50px;
}

.logo-icon i {
  color: var(--primary);
  font-size: 20px;
}

.logo span {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: -0.5px;
}

#menu-toggle {
  font-size: 24px;
  background: none;
  border: none;
  color: var(--light);
  cursor: pointer;
  z-index: 50;
}

/* 导航栏滚动效果 */
#navbar.nav-scrolled {
  background-color: rgb(96, 114, 74);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

/* 侧边菜单样式 */
#side-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 25%;
  background-color:#60724a;
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.2);
}

#side-menu .menu-content {
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.menu-header h3 {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

#menu-close {
  font-size: 20px;
  background: none;
  border: none;
  color: var(--light);
  cursor: pointer;
  transition: color 0.3s;
}

#menu-close:hover {
  color: var(--accent);
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-grow: 1;
  justify-content: center;
}

.menu-nav a {
  font-size: 18px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s;
}

.menu-nav a:hover,
.menu-nav a.active {
  color: var(--accent);
}

.menu-footer {
  margin-top: auto;
}

.menu-footer a {
  display: block;
  width: 100%;
  background-color: var(--accent);
  color: var(--primary);
  text-align: center;
  padding: 12px;
  border-radius: 24px;
  font-weight: 600;
  transition: all 0.3s;
  transform: scale(1);
}

.menu-footer a:hover {
  background-color: rgba(237, 137, 54, 0.9);
  transform: scale(1.05);
}

/* 菜单背景遮罩 */
#menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* 菜单底部容器样式 */
.menu-footer-container {
  width: 100%;
  padding: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 社交分享图标样式 */
.social-share {
  display: flex;
  gap: 16px;
}

.social-share a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.social-share a:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

/* 版权信息样式 */
.copyright-text {
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.text-xl {
  color: #fff;
}

.flex {
  display: flex;
  gap: 0.1rem;
}
/* 兼容旧浏览器 */
.flex > * + * {
  margin-left:5px;
}

.copyright-text:hover {
  color: var(--light);
}
/* 确保flex容器正确工作 */
.mt-auto {
  margin-top: auto;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-4 > * + * {
  margin-left: 1rem; /* 16px */
}

.text-light\/70 {
  color: rgba(247, 250, 252, 0.7);
}

.text-sm {
  font-size: 0.575rem; /* 14px */
}
/* 底部联系方式区域 */
.footer {
  width: 100%;
  background-color: rgb(96, 114, 74);
  margin-top: 20px;
}

.contact-bar h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.contact-content p {
  font-size: 0.8rem;
  color: #d9d1d1;
  margin-bottom: 5px;
  line-height: 1.6;
}
.ico.space-x-3 {
  padding: 10px;
}
.text-white.hover\:text-accent.transition-colors {
  margin-left: .5rem;
  margin-right: .5rem;
}
/* 底部联系方式区域 */
.contact-bar {
  background-color: rgb(96, 114, 74);
  color: var(--light);
  padding: 10px 20px;
  margin-top: 5px;
  text-align: center;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  /*margin-bottom: 32px;*/
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-item i {
  font-size: 1.1rem;
  color: var(--accent);
}

.contact-bar a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-bar a:hover {
  color: var(--accent);
}

.contact-btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--primary);
  padding: 12px 32px;
  border-radius: 24px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  margin-top: 16px;
}

.contact-btn:hover {
  background-color: #d47a2e;
  transform: scale(1.05);
}
/* 通用容器样式 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 响应式工具类 */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }
  
  .mobile-block {
    display: block;
  }
  #side-menu {
    width: 75%; /* 移动端占四分之三 */
  }
}

/* 列表顶部背景图区域 */

/* 列表顶部背景图区域 */
.hero-section {
  position: relative;
  min-height: 100vh;
  /* 解决移动端vh计算问题 */
  min-height: -webkit-fill-available;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  padding: 0 1rem;
  max-width: 900px;
  width: 100%;
}

/* 根元素样式设置 */
html {
  height: -webkit-fill-available;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* 移动端适配 - 小屏手机 (320px - 480px) */
@media (max-width: 480px) {
  .hero-content {
    padding: 0 0.75rem;
  }
  
  /* 可以在这里调整移动端字体大小 */
  .hero-content h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  /* 针对小屏幕优化背景图位置 */
  .hero-image {
    object-position: 30% center;
  }
}

/* 平板及中等屏幕设备 (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-content {
    padding: 0 1.25rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
}

/* 横屏移动设备适配 */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vmax; /* 解决横屏时高度不足问题 */
  }
  
  .hero-content {
    transform: translate(-50%, -50%) scale(0.9); /* 适当缩小内容 */
  }
}

/* 针对iOS Safari的特殊处理 */
@supports (-webkit-overflow-scrolling: touch) {
  .hero-section {
    min-height: -webkit-fill-available;
  }
}

/* 修复顶部大背景图区域样式 */
.hero-section {
  width: 100%;
  overflow: hidden; /* 防止图片溢出容器 */
  position: relative;
}
.hero-section {
  min-height: auto;
}
.hero-bg {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-image {
  width: 100%; /* 确保图片宽度充满容器 */
  height: auto; /* 保持图片原有比例 */
  object-fit: cover; /* 图片覆盖容器，保持比例裁剪 */
  display: block; /* 移除图片底部间隙 */
  max-width: 100%; /* 确保不会超过容器宽度 */
}

/* 如果需要全屏背景图，可以添加以下样式 */
.fullscreen-hero .hero-image {
  height: 100vh; /* 高度为视口高度 */
  object-position: center; /* 图片居中显示 */
}


/* 响应式设计 */
@media (max-width: 1400px) {
  .carousel-wrapper {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .carousel-text h3 {
    font-size: 1.5rem;
  }
  
  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .black-carousel-container,
  .images-carousel-section {
    padding: 5px 0;
  }
}

@media (max-width: 480px) {
  .section-header {
    padding: 20px 10px;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .carousel-text h3 {
    font-size: 1.3rem;
  }
  
  .carousel-text p {
    font-size: 1rem;
  }
  
  .indicator {
    width: 10px;
    height: 3px;
  }
  
  .indicator.active {
    width: 20px;
  }
}
