:root {
  --primary-color: #0056b3;
  --secondary-color: #5a6c7d;
  --accent-color: #ffc107;
  --text-color: #2c3e50;
  --text-secondary: #5a6c7d;
  --text-light: #8892a6;
  --light-bg: #f8f9fa;
  --gradient-start: #0056b3;
  --gradient-end: #004494;
  --gradient-accent: linear-gradient(135deg, #0066cc 0%, #004494 100%);
}

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.8;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.card-title {
  font-weight: 600;
  color: #1a202c;
  letter-spacing: -0.01em;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.section-title {
  position: relative;
  margin-bottom: 35px;
  padding-bottom: 20px;
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: -0.02em;
}

/* 语言切换按钮样式 */
.lang-switch-btn {
  border-radius: 20px;
  padding: 4px 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 48px;
}

.lang-switch-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lang-text {
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* 页面加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* 滚动显示动画 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

.navbar {
  box-shadow: 0 2px 15px rgba(0, 86, 179, 0.2);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.25rem;
}

.carousel-item {
  height: 500px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
}

.carousel-caption {
  background-color: rgba(0, 86, 179, 0.85);
  padding: 30px;
  border-radius: 8px;
  bottom: 10%;
}

.carousel-caption h2 {
  font-size: 2.5rem;
  font-weight: bold;
}

.carousel-caption p {
  font-size: 1.2rem;
}

.section-title {
  position: relative;
  margin-bottom: 35px;
  padding-bottom: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 86, 179, 0.2);
}

.card-title {
  font-weight: bold;
  color: #2c3e50;
}

.card-text {
  color: #666;
}

.btn-primary {
  background: var(--gradient-accent);
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 86, 179, 0.4);
}

.btn-outline-primary {
  border-radius: 8px;
  padding: 8px 20px;
  font-weight: 600;
}

.bg-gradient {
  background: linear-gradient(135deg, #e8f4fc 0%, #f0f8ff 50%, #e8f4fc 100%);
}

.icon-box {
  width: 90px;
  height: 90px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  box-shadow: 0 12px 35px rgba(0, 86, 179, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: float 3s ease-in-out infinite;
}

.icon-box:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 86, 179, 0.5);
}

.grayscale {
  filter: grayscale(60%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.grayscale:hover {
  filter: grayscale(0%);
  opacity: 1;
}

footer {
  background: linear-gradient(135deg, #1a202c 0%, #0d1117 100%);
  padding: 3rem 0;
}

footer h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f7fafc;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

footer p, footer li {
  font-size: 0.9375rem;
  color: #a0aec0;
  line-height: 1.8;
}

footer a {
  text-decoration: none;
  color: #a0aec0;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  line-height: 2;
}

footer a:hover {
  color: #ffffff;
  text-decoration: none;
  padding-left: 4px;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 86, 179, 0.3);
}

.timeline-item.right::before {
  right: -10px;
}

.timeline-item.left::before {
  left: -10px;
}

.list-group-item {
  border: none;
  background: transparent;
  padding: 12px 0;
}

.map-container iframe {
  border-radius: 12px;
}

@media (max-width: 768px) {
  .carousel-item {
    height: 300px;
  }
  
  .carousel-caption {
    padding: 15px;
    bottom: 5%;
  }
  
  .carousel-caption h2 {
    font-size: 1.5rem;
  }
  
  .carousel-caption p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item::before {
    left: 10px !important;
    right: auto !important;
  }
}

.partner-carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.partner-carousel-track {
  display: flex;
  transition: transform 0.5s ease-out;
}

.partner-slide {
  flex: 0 0 calc(25% - 20px);
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.partner-slide:hover .partner-img {
  transform: scale(1.1);
}

.partner-img {
  width: 100%;
  max-width: 150px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(60%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 992px) {
  .partner-slide {
    flex: 0 0 calc(33.333% - 20px);
  }
}

.category-btn {
  padding: 12px 16px;
  border: 2px solid #0056b3;
  background: white;
  color: #0056b3;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 0.9375rem;
  position: relative;
  overflow: hidden;
  text-align: left;
  letter-spacing: 0.01em;
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.category-btn:hover::before,
.category-btn.active::before {
  opacity: 1;
}

.category-btn:hover,
.category-btn.active {
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.category-btn span {
  position: relative;
  z-index: 1;
}

.category-sidebar {
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.category-sidebar h3 {
  font-size: 1.25rem;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 16px !important;
}

@media (max-width: 768px) {
  .partner-slide {
    flex: 0 0 calc(50% - 20px);
  }
  
  .partner-img {
    max-width: 120px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1rem;
  }
  
  .partner-slide {
    flex: 0 0 calc(50% - 10px);
    margin: 0 5px;
  }
  
  .partner-img {
    max-width: 100px;
    height: 50px;
  }
}