/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fc;
  color: #1a1a2e;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode {
  background: #0f0f1a;
  color: #e0e0e0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部导航 */
header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

body.dark-mode header {
  background: linear-gradient(135deg, #0a0a1a, #1a1a3e);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}

nav a:hover {
  color: #ffd200;
  transform: translateY(-2px);
}

.dark-toggle {
  background: none;
  border: 2px solid #ffd200;
  color: #ffd200;
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.dark-toggle:hover {
  background: #ffd200;
  color: #1a1a2e;
}

/* 英雄区域 - 渐变Banner */
.hero {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #0a0a1a, #1a1a3e, #0f1f3e);
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffd200, #f7971e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.hero .btn {
  display: inline-block;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #1a1a2e;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 8px 25px rgba(247,151,30,0.4);
}

.hero .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(247,151,30,0.6);
}

/* 轮播滑块 */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.slider-track {
  display: flex;
  transition: transform 0.8s ease;
}

.slider-item {
  min-width: 100%;
  padding: 60px 40px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  text-align: center;
}

.slider-item h3 {
  font-size: 32px;
  margin-bottom: 15px;
}

.slider-item p {
  font-size: 18px;
}

/* 通用区块 */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  margin: 15px auto;
  border-radius: 2px;
}

/* 网格布局 */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 圆角卡片 */
.card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(5px);
}

body.dark-mode .card {
  background: #1a1a2e;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.card p {
  color: #666;
  line-height: 1.7;
}

body.dark-mode .card p {
  color: #bbb;
}

/* 毛玻璃效果 */
.glass {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
}

body.dark-mode .glass {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

/* 数据统计 */
.stat-grid {
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 18px;
  margin-top: 8px;
  opacity: 0.8;
}

/* FAQ折叠 */
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 20px 0;
  cursor: pointer;
}

body.dark-mode .faq-item {
  border-color: #333;
}

.faq-question {
  font-weight: 700;
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-top: 0;
  color: #555;
}

body.dark-mode .faq-answer {
  color: #aaa;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-top: 15px;
}

.faq-toggle {
  font-size: 24px;
  transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* 联系信息 */
.contact-info {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: white;
  padding: 60px;
  border-radius: 20px;
}

body.dark-mode .contact-info {
  background: linear-gradient(135deg, #0a0a1a, #1a1a3e);
}

.contact-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-info p {
  margin: 10px 0;
  font-size: 18px;
}

/* 页脚 */
footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 60px 0 30px;
}

body.dark-mode footer {
  background: #0a0a1a;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-col a {
  color: #aaa;
  text-decoration: none;
  display: block;
  margin: 8px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #ffd200;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
}

/* 回到顶部 */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #1a1a2e;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 5px 20px rgba(247,151,30,0.4);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  transform: scale(1.1);
}

/* 滚动动画 */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 搜索框 */
.search-box {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.search-box input {
  width: 300px;
  padding: 12px 20px;
  border: 2px solid #ddd;
  border-radius: 30px 0 0 30px;
  outline: none;
  font-size: 16px;
  transition: 0.3s;
}

.search-box input:focus {
  border-color: #f7971e;
}

.search-box button {
  padding: 12px 25px;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  border: none;
  border-radius: 0 30px 30px 0;
  color: #1a1a2e;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.search-box button:hover {
  background: #f7971e;
}

/* 面包屑 */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #888;
}

.breadcrumb a {
  color: #f7971e;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.pagination a {
  padding: 8px 16px;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: #1a1a2e;
  font-weight: 500;
  transition: 0.3s;
}

body.dark-mode .pagination a {
  background: #1a1a2e;
  color: #e0e0e0;
}

.pagination a:hover {
  background: #f7971e;
  color: white;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .stat-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

  .header-inner {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero {
    padding: 60px 0;
  }

  .section {
    padding: 50px 0;
  }

  .contact-info {
    padding: 30px;
  }
}