/* 页面整体滑动动画初始状态 */
.page-section {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.highlight-text {
  font-weight: 800;
  color: #1e293b;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 从左滑入效果 */
.slide-in-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* 从右滑入效果 */
.slide-in-right {
  opacity: 0;
  transform: translateX(80px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* 缩放滑入效果 */
.slide-in-scale {
  opacity: 0;
  transform: scale(0.9) translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-scale.animate-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

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

/* 确保HTML和BODY完全消除空白 */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
  width: 100%;
  border: 0;
  outline: 0;
}

/* 强制重置可能影响布局的元素 */
html {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  scroll-behavior: smooth;
}

body {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 确保页面第一个元素不会影响导航栏 */
body>*:first-child {
  margin-top: 0 !important;
  padding-top: 0;
}

/* 消除任何可能的默认浏览器样式 */
nav,
header {
  margin: 0 !important;
  padding: 0;
}

/* 兼容性重置 - 消除webkit和其他浏览器的默认样式 */
* {
  -webkit-margin-before: 0;
  -webkit-margin-after: 0;
  -webkit-margin-start: 0;
  -webkit-margin-end: 0;
  -webkit-padding-before: 0;
  -webkit-padding-after: 0;
  -webkit-padding-start: 0;
  -webkit-padding-end: 0;
}

/* 浏览器兼容性修复 */
::-webkit-scrollbar {
  width: 0;
}

/* 移动端视口修复 */
@-webkit-viewport {
  width: device-width;
}

@-moz-viewport {
  width: device-width;
}

@-ms-viewport {
  width: device-width;
}

@-o-viewport {
  width: device-width;
}

@viewport {
  width: device-width;
}

:root {
  /* 现代科技色彩主题 */
  --primary-blue: #0066ff;
  --secondary-blue: #003d99;
  --accent-cyan: #00d4ff;
  --dark-blue: #001f3f;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg-white: #ffffff;
  --bg-light: #f8fafb;
  --bg-dark: #0a0f1a;
  --border-light: #e5e7eb;
  --border-dark: #374151;

  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
  --gradient-dark: linear-gradient(135deg, #0a0f1a 0%, #1e293b 100%);
  --gradient-light: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);

  /* 字体 */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* 间距 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  --spacing-xxl: 8rem;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  top: 0;
  left: 0;
}

/* 全局容器设置 - 消除白边 */
section {
  padding-left: 0;
  padding-right: 0;
}

main {
  padding: 0;
  margin: 0;
}

.container {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 max(3%, 30px);
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0 !important;
  left: 0;
  width: 100%;
  background: #fff;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
  transition: all 0.3s ease;
  margin: 0 !important;
  padding: 0;
}

.navbar.scrolled {
  background: #fff;
  backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 max(3%, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
}

.logo-image {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}


.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 20px;
}

.nav-item {
  position: relative;
}

/* 导航链接统一样式 */
.nav-link {
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem !important;
  /* 强制统一字体大小 */
  transition: all 0.3s ease;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #1a1a1a;
  text-shadow: none;
}

.navbar.scrolled .nav-link {
  color: #1a1a1a;
  text-shadow: none;
}

.nav-link:hover,
.nav-link.active {
  color: #00d4ff;
  background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary-blue);
  background: rgba(0, 102, 255, 0.05);
}

/* 下拉菜单样式 */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid #e5e7eb;
  display: none !important;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
}

.dropdown-item:hover {
  background: #f3f4f6;
  color: #0066ff;
}

/* 下拉箭头旋转 */
.dropdown:hover .nav-link .fa-chevron-down {
  transform: rotate(180deg);
}

.nav-link .fa-chevron-down {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: inherit;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s ease;
}

/*内容页文案说明 start*/
.header-content {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  width: 100%;
}

.header-left {
  flex: 0 0 auto;
  min-width: 350px;
}

.header-right {
  flex: 1;
  max-width: calc(100% - 430px);
  margin-left: 120px;
}

/*内容页文案说明 end*/

.footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, #3b82f6, transparent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-brand {
  flex: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.company-logo-footer {
  height: 60px;
  width: auto;
  max-width: 200px;
}


.footer-slogan {
  font-size: 1.3rem;
  color: white;
  margin: 15px 0 10px 0;
  font-weight: 600;
}

.footer-mission {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 10px 0;
  font-weight: 400;
  line-height: 1.6;
}

.footer-address {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.qrcode-placeholder {
  width: 160px !important;
  height: 160px !important;
  padding: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-qrcode-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.qrcode-placeholder:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  transform: translateY(-2px);
}


.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.6) !important;
}

.qrcode-full,
.footer-qrcode-img {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.qrcode-full:hover,
.footer-qrcode-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


.qrcode-display-flat {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.qrcode-item-flat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {

  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .qrcode-modal-content {
    max-width: 300px;
    max-height: 300px;
    margin: 20px;
  }

  .nav-container {
    padding: 0;
    height: 75px;
  }

  .logo-image {
    width: 90px;
    height: 90px;
  }

  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 2rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  .nav-link {
    font-size: 1rem !important;
    /* 强制统一字体大小 */
    padding: 1.2rem 2rem;
    display: block;
    border-radius: 10px;
    margin: 0 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .nav-link:hover {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-blue);
    transform: translateY(-2px);
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    gap: 5px;
  }

  .nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .dropdown-menu {
    position: static;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: none;
    border: none;
    padding: 0.5rem 0;
    margin: 0.5rem 1.5rem;
    border-radius: 8px;
  }

  .dropdown-item {
    padding: 0.8rem 1.5rem;
    margin: 0.25rem 0;
    background: transparent;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
  }

  .dropdown-item:hover {
    background: rgba(0, 102, 255, 0.05);
  }

  main>section {
    padding-top: 75px;
  }

  .container {
    padding: 0 max(4%, 20px);
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  h4 {
    font-size: 1.3rem;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .card,
  .news-item,
  .product-card,
  .service-card,
  .value-item,
  .member-card {
    margin-bottom: 20px;
  }
}
