/* ========== 基础重置 ========== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  color: #1f2937;
  line-height: 1.6;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ========== 容器 ========== */
.container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ========== 标题样式 ========== */
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.75rem;
  }
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
}

@media (min-width: 768px) {
  h2 {
    font-size: 2.25rem;
  }
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.875rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}

/* ========== 按钮样式 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
  }
}

.btn-primary {
  background-color: #1e3a8a;
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
}

.btn-primary:hover {
  background-color: #1e40af;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-0.125rem);
}

.btn-secondary {
  background-color: white;
  color: #1e3a8a;
  border: 2px solid #1e3a8a;
  transform: translateY(0);
}

.btn-secondary:hover {
  background-color: #eff6ff;
  transform: translateY(-0.125rem);
}

.btn-outline {
  background-color: transparent;
  color: #1e3a8a;
  border: 2px solid #1e3a8a;
}

.btn-outline:hover {
  background-color: #1e3a8a;
  color: white;
}

/* CTA按钮脉冲动画 */
.cta-pulse {
  animation: cta-pulse 2s infinite;
}

@keyframes cta-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(30, 64, 175, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 64, 175, 0);
  }
}

/* ========== 卡片样式 ========== */
.card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.card-hover {
  cursor: pointer;
}

.card-hover:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-0.25rem);
}

/* ========== 区块样式 ========== */
.section {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

@media (max-width: 768px) {
  .section {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }
}

@media print {
  .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.section-dark {
  background-color: #f9fafb;
}

.section-primary {
  background-color: #1e3a8a;
  color: white;
}

/* ========== 网格布局 ========== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.header-init .nav-link{
    color:#f1f2f4AA !important;
}
.header-init .nav-link:hover{
    color:#f1f2f4 !important;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ========== 导航栏 ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.header-scrolled {
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-scrolled .nav-link {
  color: #1f2937;
}
.header-scrolled .header-logo img{
    filter: invert(100%) !important;
}
.header-scrolled .mobile-menu-btn{
    color: #333;
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: block;
}

/* ========== 动画类 ========== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ========== 滚动显示 ========== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== 数字滚动动画 ========== */
.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e3a8a;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3rem;
  }
}

/* ========== 图标样式 ========== */
.icon {
  width: 3rem;
  height: 3rem;
  color: #1e3a8a;
}

.icon-lg {
  width: 4rem;
  height: 4rem;
  color: #1e3a8a;
}

.icon-sm {
  width: 2rem;
  height: 2rem;
  color: #1e3a8a;
}

/* ========== 标签页 ========== */
.tab-btn {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-weight: 500;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  border-bottom-color: #1e3a8a;
  color: #1e3a8a;
}

.tab-btn:hover:not(.active) {
  color: #2563eb;
}

/* ========== 表单样式 ========== */
.form-input {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.form-input:focus {
  outline: none;
  ring: 2px;
  ring-color: #3b82f6;
  border-color: transparent;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb a:hover {
  color: #1e3a8a;
}

.breadcrumb-separator {
  color: #d1d5db;
}

/* ========== 页脚 ========== */
.footer {
  background-color: #111827;
  color: white;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-link {
  color: #9ca3af;
  transition-property: color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.footer-link:hover {
  color: white;
}

/* ========== 工具类 ========== */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #1e3a8a, #2563eb);
}

.bg-gradient-primary {
  background-image: linear-gradient(to right, #1e3a8a, #1e40af);
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .btn {
    width: 100%;
  }
}

/* ========== 打印样式 ========== */
@media print {
  .header,
  .footer,
  .no-print {
    display: none !important;
  }
  
  .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
