/* 自定义颜色变量 */
:root {
  --color-primary: #008f97;
  --color-secondary: #40bccc;
  --color-accent: #F63854;
  --color-accent-light: #fc4c9a;
}

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: #333;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #40bccc;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #008f97;
}

/* 视频容器样式 */
#video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 视频轮播按钮样式 */
.video-btn {
  transition: all 0.3s ease;
}

.video-btn.active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* 导航栏滚动效果 */
#header {
  transition: all 0.3s ease;
}

#header.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

/* 返回顶部按钮 */
#back-to-top,
#backToTop {
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

#back-to-top.visible,
#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover,
#backToTop:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 188, 204, 0.4);
}

/* 移动端菜单动画 */
#mobile-menu {
  transition: all 0.3s ease;
}

/* 表单输入框样式 */
input:focus,
textarea:focus {
  outline: none;
  border-color: #40bccc;
  box-shadow: 0 0 0 3px rgba(64, 188, 204, 0.2);
}

/* 按钮悬停效果 */
button:hover,
a:hover {
  transition: all 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .text-3xl {
    font-size: 1.75rem;
  }

  .text-4xl {
    font-size: 2rem;
  }

  .text-5xl {
    font-size: 2.25rem;
  }
}

/* 打印样式 */
@media print {
  header,
  footer,
  #back-to-top,
  #backToTop,
  #contact {
    display: none;
  }
}

/* 图片加载动画 */
img {
  transition: opacity 0.3s ease;
}

img.loaded {
  opacity: 1;
}

/* 滚动动画 */
.animate-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 辅助功能优化 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 焦点可见性 */
:focus-visible {
  outline: 2px solid #40bccc;
  outline-offset: 2px;
}

/* 隐藏滚动条（移动端面包屑导航） */
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

