/* ===== 基础样式 ===== */
:where([class^="ri-"])::before { content: "\f3c2"; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.6;
}
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
}
 
/* ===== 交互元素 ===== */
.section-dot {
  transition: all 0.3s ease;
}
.section-dot.active  {
  transform: scale(1.5);
  background-color: #1a56db;
}
 
.hexagon {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 0.3s ease;
}
.hexagon:hover { transform: scale(1.05); }
 
.news-item {
  transition: transform 0.3s ease;
}
.news-item:hover { transform: translateX(10px); }
 
/* ===== 开关控件 ===== */
.custom-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.custom-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #1a56db;
}
input:checked + .slider:before {
  transform: translateX(26px);
}
input:focus {
  border-color: #0066CC;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
 
/* ===== 英雄区域 ===== */
#hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
}
#hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  transform: translateZ(0);
  transition: opacity 0.8s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
#hero video.loaded  { opacity: 1; }
#hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}
 
/* ===== 加载动画 ===== */
.video-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.video-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

/* 新闻列表动画效果 */
.news-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-item:hover {
  transform: translateY(-3px);
}
 
/* 文字截断 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 
/* 图片缩放效果 */
img {
  transition: transform 0.5s cubic-bezier(0.25, 0.45, 0.45, 0.95);
}
 
/* ===== 导航系统 ===== */
header {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 15px rgba(0, 102, 204, 0.1);
}
.nav-item {
  position: relative;
  margin: 0 4px;
}
.nav-link {
  position: relative;
  padding: 12px 16px;
  font-weight: 500;
  color: #374151;
  transition: all 0.3s ease;
  border-radius: 8px;
  font-size: 15px;
}
.nav-link:hover {
  color: #0066CC;
  background-color: rgba(0, 102, 204, 0.05);
  transform: translateY(-2px);
}
.nav-link.current  {
  color: #0066CC;
  background-color: rgba(0, 102, 204, 0.1);
  font-weight: 600;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background-color: #0066CC;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.current::after  {
  width: calc(100% - 32px);
}
 
/* ===== 下拉菜单 ===== */
.nav-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -5px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  padding: 8px 0;
}
.group:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: #4B5563;
  font-size: 14px;
  transition: all 0.2s ease;
  animation: slideIn 0.3s ease-out forwards;
  opacity: 0;
}
.nav-dropdown-item:hover {
  color: #0066CC;
  background-color: rgba(0, 102, 204, 0.05);
  padding-left: 20px;
}
.group::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 5px solid #4B5563;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transition: transform 0.3s ease;
}
.group:hover::after {
  transform: rotate(180deg);
  border-top-color: #0066CC;
}
 
/* ===== 移动端导航 ===== */
#mobileMenu {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 确保没有其他样式覆盖 */
#mobileMenu:not(.translate-x-full) {
  transform: translateX(0);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: #1F2937;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin: 4px 0;
}
.mobile-nav-link:hover {
  background-color: rgba(0, 102, 204, 0.1);
  color: #0066CC;
}
.mobile-submenu {
  padding-left: 12px;
  margin-top: 4px;
  display: none;
  animation: fadeIn 0.3s ease-out;
}
.mobile-submenu.active  {
  display: block;
}
.mobile-submenu-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #4B5563;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.mobile-submenu-item:hover {
  background-color: rgba(0, 102, 204, 0.05);
  color: #0066CC;
  padding-left: 24px;
}
#mobileMenuButton, #closeMobileMenu {
  transition: transform 0.3s ease;
}
#mobileMenuButton:hover, #closeMobileMenu:hover {
  transform: scale(1.1);
}
 
/* ===== 按钮样式 ===== */
.btn-primary {
  background: linear-gradient(135deg, #0066CC 0%, #004D99 100%);
  box-shadow: 0 4px 6px rgba(0, 102, 204, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #005bb7 0%, #003d7a 100%);
  transform: translateY(-2px);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}
.btn-primary:hover::after {
  animation: ripple 1s ease-out;
}
.cta-button:hover {
  animation: pulse 1.5s infinite;
}
 
/* ===== 动画定义 ===== */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}
 
/* ===== 延迟动画 ===== */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.nav-dropdown-item:nth-child(1) { animation-delay: 0.1s; }
.nav-dropdown-item:nth-child(2) { animation-delay: 0.15s; }
.nav-dropdown-item:nth-child(3) { animation-delay: 0.2s; }
.nav-dropdown-item:nth-child(4) { animation-delay: 0.25s; }
 
/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  .nav-link {
    padding: 10px 14px;
    font-size: 14px;
  }
  .nav-dropdown {
    min-width: 200px;
  }
}
@media (max-width: 768px) {
  header { padding: 12px 0; }
  .mobile-nav-link { font-size: 16px; }
  .mobile-submenu-item { font-size: 15px; }
}
@media (max-aspect-ratio: 16/9) {
  #hero video { width: auto; height: 100%; }
}
@media (min-aspect-ratio: 16/9) {
  #hero video { width: 100%; height: auto; }
}
 
/* ===== 实用类 ===== */
.animate-fade-in { animation: fadeIn 0.8s ease-out forwards; }
.hero-title { animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }