/* 全局变量定义 */
:root {
  --primary-blue: #1e40af;
  --primary-blue-light: #3b82f6;
  --primary-blue-dark: #1e3a8a;
  --accent-orange: #f97316;
  --accent-green: #10b981;
  --text-dark: #1f2937;
  --text-light: #f9fafb;
  --gray-light: #f3f4f6;
  --gray-medium: #e5e7eb;
  --gray-dark: #6b7280;
  --success-green: #10b981;
  --danger-red: #ef4444;
  --border-radius: 12px;
  --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
}

body {
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
  background-color: var(--gray-light);
}

/* Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

/* 导航栏样式 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--text-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition-standard);
}

.navbar.scrolled {
  padding: 0.8rem 5%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand i {
  color: var(--primary-blue);
  font-size: 2rem;
  transition: var(--transition-standard);
}

.brand span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition-standard);
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

.nav-links a:hover {
  background: var(--gray-light);
  color: var(--primary-blue);
}

.nav-links a.active {
  background: var(--primary-blue);
  color: white;
}

.download-btn {
  background: var(--primary-blue);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-standard);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.1), 0 2px 4px -1px rgba(30, 64, 175, 0.06);
}

.download-btn:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px -1px rgba(30, 64, 175, 0.15), 0 4px 6px -1px rgba(30, 64, 175, 0.1);
}

/* 英雄区样式 */
.hero {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  padding: 12rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'%3E%3C/path%3E%3C/svg%3E");
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
}

.subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.news-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* 新闻内容 */
.news-content {
  padding: 5rem 2rem;
  background: white;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: -3rem;
  position: relative;
  z-index: 1;
}

.news-content .container {
  max-width: 800px;
  margin: 0 auto;
}

.news-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.news-content h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1.5rem;
  color: var(--primary-blue);
}

.news-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text-dark);
}

/* 新闻图片 */
.news-image {
  width: 100%;
  height: 300px;
  background: var(--gray-light);
  border-radius: var(--border-radius);
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
}

/* 相关新闻 */
.related-news {
  padding: 5rem 2rem;
  background: var(--gray-light);
}

.related-news h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition-standard);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.news-card-image {
  height: 180px;
  background: var(--primary-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.news-card-content {
  padding: 1.5rem;
}

.news-card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.news-card-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-dark);
  font-size: 0.9rem;
}

.news-card-content p {
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-standard);
  gap: 0.5rem;
}

.news-card-link:hover {
  color: var(--primary-blue-dark);
  transform: translateX(5px);
}

/* 页脚样式 */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 5rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-blue-light);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--gray-medium);
  text-decoration: none;
  transition: var(--transition-standard);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-standard);
}

.social-links a:hover {
  background: var(--primary-blue-light);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-medium);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* 回到顶部按钮样式 */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-blue);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  font-size: 18px;
  width: 50px;
  height: 50px;
  display: none;
  transition: var(--transition-standard);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.back-to-top.show {
  display: block;
}

.back-to-top i {
  font-size: 20px;
}

/* 动画效果 */
.animate-fade-in-up {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .news-content h2 {
    font-size: 1.8rem;
  }

  .related-news h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 3%;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 10rem 1.5rem 5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .news-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .news-content {
    padding: 3rem 1.5rem;
    margin-top: -2rem;
  }

  .news-content h2 {
    font-size: 1.6rem;
  }

  .news-content h3 {
    font-size: 1.3rem;
  }

  .related-news h2 {
    font-size: 1.6rem;
  }

  .news-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .news-image {
    height: 200px;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue-light);
  border-radius: 4px;
}

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

/* 动画延迟设置 */
.animate-fade-in-up:nth-child(1) {
  animation-delay: 0.1s;
}

.animate-fade-in-up:nth-child(2) {
  animation-delay: 0.3s;
}

.animate-fade-in-up:nth-child(3) {
  animation-delay: 0.5s;
}

.animate-fade-in-up:nth-child(4) {
  animation-delay: 0.7s;
}

.animate-fade-in-up:nth-child(5) {
  animation-delay: 0.9s;
}

.animate-fade-in-up:nth-child(6) {
  animation-delay: 1.1s;
}