/* 主要样式文件 */
:root {
  --primary-color: #1a5276;
  --secondary-color: #2e86c1;
  --accent-color: #f39c12;
  --text-color: #333333;
  --light-text: #ffffff;
  --background-color: #f8f9fa;
  --section-bg: #ffffff;
  --section-alt-bg: #f1f8ff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', 'Noto Serif SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-self;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

/* 导航栏固定样式 */
.navbar-fixed {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px var(--shadow-color);
}

/* Hero 部分样式 */
.hero-section {
  position: relative;
  /* min-height: 70vh; */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--light-text);
  max-width: 800px;
  padding: 2rem;
}

/* 章节样式 */
.section {
  padding: 4rem 0;
  min-height: 50vh;
}

.section:nth-child(even) {
  background-color: var(--section-alt-bg);
}

.section:nth-child(odd) {
  background-color: var(--section-bg);
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px var(--shadow-color);
}

/* 按钮样式 */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: all var(--transition-speed);
  font-weight: 500;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* 图表容器样式 */
.chart-container {
  width: 100%;
  height: 400px;
  margin: 2rem 0;
}

/* 数据表格样式 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.data-table th,
.data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: var(--primary-color);
  color: white;
}

.data-table tbody tr:hover {
  background-color: rgba(46, 134, 193, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .section {
    padding: 2rem 0;
  }
  
  .hero-section {
    /* min-height: 50vh; */
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .chart-container {
    height: 300px;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* 微交互效果 */
.hover-scale {
  transition: transform var(--transition-speed);
}

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

.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

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