/* 基础样式重置 + 核心通用样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-family: Inter, system-ui, sans-serif;
}
body {
  background-color: #f8f9fa;
  color: #374151;
}
/* 隐藏滚动条并优化 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background-color: #0f3460;
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}
/* 自定义工具类（替代Tailwind核心功能，通用复用） */
.content-auto {
  content-visibility: auto;
}
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.container-custom {
  width: 90%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.btn-primary {
  background-color: #e63946;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  background-color: #d62839;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.btn-outline {
  border: 2px solid #0f3460;
  color: #0f3460;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 700;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover {
  background-color: #0f3460;
  color: white;
}
/* 导航栏滚动专属样式 */
.nav-scrolled {
  background-color: rgba(255,255,255,0.95);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  color: #0f3460 !important; /* 强制设置滚动后文字为深色 */
  backdrop-filter: blur(8px);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
/* 栅格布局（核心自适应，列表页/内容页可直接复用） */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
/* 自适应断点：小屏（手机） */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:flex {
    display: flex;
  }
  .sm\:block {
    display: block;
  }
  .sm\:hidden {
    display: none;
  }
}
/* 自适应断点：大屏（平板/电脑） */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* 自适应断点：中屏（平板）- 已补全.md:flex样式，修复PC端导航不显示 */
@media (min-width: 768px) {
  .md\:flex {
    display: flex !important;
  }
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  .md\:hidden {
    display: none;
  }
  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  .md\:py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .md\:py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .md\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .md\:space-x-8 > * + * {
    margin-left: 2rem;
  }
  .md\:text-left {
    text-align: left;
  }
  .md\:text-right {
    text-align: right;
  }
  .md\:flex-row {
    flex-direction: row;
  }
  .md\:items-center {
    align-items: center;
  }
}
/* 自适应断点：超大屏（电脑） */
@media (min-width: 1280px) {
  .lg\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }
}
/* 通用布局类（全页面复用） */
.flex {
  display: flex;
}
.hidden {
  display: none;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.flex-col {
  flex-direction: column;
}
.space-x-4 > * + * {
  margin-left: 1rem;
}
.space-x-8 > * + * {
  margin-left: 2rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-y-6 > * + * {
  margin-top: 1.5rem;
}
.space-y-8 > * + * {
  margin-top: 2rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-12 {
  gap: 3rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-16 {
  margin-bottom: 4rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.h-screen {
  height: 100vh;
}
.w-12 {
  width: 3rem;
}
.h-12 {
  height: 3rem;
}
.w-14 {
  width: 3.5rem;
}
.h-14 {
  height: 3.5rem;
}
.w-16 {
  width: 4rem;
}
.h-16 {
  height: 4rem;
}
.shrink-0 {
  flex-shrink: 0;
}
/* 通用文本样式（全页面复用） */
.text-center {
  text-align: center;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.leading-tight {
  line-height: 1.25;
}
.leading-relaxed {
  line-height: 1.6;
}
.text-white {
  color: white;
}
.text-gray-600 {
  color: #718096;
}
.text-gray-700 {
  color: #4a5568;
}
.text-gray-800 {
  color: #2d3748;
}
.text-primary {
  color: #0f3460;
}
.text-secondary {
  color: #e63946;
}
.opacity-80 {
  opacity: 0.8;
}
.opacity-90 {
  opacity: 0.9;
}
.opacity-70 {
  opacity: 0.7;
}
/* 通用背景与边框样式（全页面复用） */
.bg-white {
  background-color: white;
}
.bg-light {
  background-color: #f8f9fa;
}
.bg-dark {
  background-color: #1a1a2e;
}
.bg-primary {
  background-color: #0f3460;
}
.bg-primary-5 {
  background-color: rgba(15, 52, 96, 0.05);
}
.bg-primary-10 {
  background-color: rgba(15, 52, 96, 0.1);
}
.bg-secondary-20 {
  background-color: rgba(230, 57, 70, 0.2);
}
.bg-white-10 {
  background-color: rgba(255, 255, 255, 0.1);
}
.bg-secondary {
  background-color: #e63946;
}
.border {
  border: 1px solid #e5e7eb;
}
.border-2 {
  border: 2px solid;
}
.border-gray-100 {
  border-color: #f3f4f6;
}
.border-gray-200 {
  border-color: #e5e7eb;
}
.border-primary {
  border-color: #0f3460;
}
.border-white-30 {
  border-color: rgba(255, 255, 255, 0.3);
}
.border-t {
  border-top: 1px solid;
}
.rounded {
  border-radius: 0.375rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-full {
  border-radius: 9999px;
}
/* 通用阴影样式（全页面复用） */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
/* 通用定位与层级（全页面复用） */
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.top-0 {
  top: 0;
}
.left-0 {
  left: 0;
}
.bottom-8 {
  bottom: 2rem;
}
.right-8 {
  right: 2rem;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}
.z-0 {
  z-index: 0;
}
.z-10 {
  z-index: 10;
}
/* 通用过渡与动画（全页面复用） */
.transition-all {
  transition: all 0.3s ease;
}
.transition-colors {
  transition: color 0.3s ease;
}
.transition-transform {
  transition: transform 0.5s ease;
}
.duration-300 {
  transition-duration: 0.3s;
}
.duration-500 {
  transition-duration: 0.3s;
}
.animate-bounce {
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
  }
  50% {
    transform: translateY(0);
  }
}
/* 通用表单样式（内容页/表单页复用） */
input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
/* 通用图片样式（全页面复用） */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.object-cover {
  object-fit: cover;
}
/* 通用链接样式（全页面复用） */
a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  text-decoration: none;
}
/* 通用列表样式（列表页核心复用） */
ul {
  list-style: none;
}
/* 通用伪元素与特殊样式 */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}
.backdrop-blur {
  backdrop-filter: blur(8px);
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-x-1-2 {
  --tw-translate-x: -50%;
}
.-translate-y-1 {
  --tw-translate-y: -0.25rem;
}
.-bottom-2 {
  bottom: -0.5rem;
}
.hover\:scale-105:hover {
  transform: scale(1.05);
}
.hover\:text-secondary:hover {
  color: #e63946;
}
.hover\:bg-secondary-90:hover {
  background-color: rgba(230, 57, 70, 0.9);
}
.hover\:bg-primary:hover {
  background-color: #0f3460;
}
.hover\:text-white:hover {
  color: white;
}
.hover\:shadow-md:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
/* LOGO容器样式，保证图片比例协调 */
nav a img {
  transition: all 0.3s ease;
}
nav.nav-scrolled a img {
  filter: brightness(0); /* 滚动后LOGO变深色，适配白色导航栏 */
}
/* 电脑端菜单下划线动画样式（配合HTML中的after伪元素） */
nav ul li a after {
  transition: width 0.3s ease;
}
/* 移动端菜单按钮和菜单项交互优化 */
#menuBtn {
  cursor: pointer;
}
#mobileMenu ul li a {
  font-size: 1rem;
  font-medium;
}
/* 修复：滚动后移动端菜单文字颜色继承问题 */
.nav-scrolled #menuBtn {
  color: #0f3460 !important;
}