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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  background: #0f0f23;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* 暗色模式支持（默认已暗） */
@media (prefers-color-scheme: light) {
  body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #f0f0f0;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
  background: #e94560;
  border-radius: 4px;
}

/* 通用容器 */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 60px 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }
section:nth-child(10) { animation-delay: 0.9s; }
section:nth-child(11) { animation-delay: 1.0s; }
section:nth-child(12) { animation-delay: 1.1s; }
section:nth-child(13) { animation-delay: 1.2s; }
section:nth-child(14) { animation-delay: 1.3s; }
section:nth-child(15) { animation-delay: 1.4s; }
section:nth-child(16) { animation-delay: 1.5s; }
section:nth-child(17) { animation-delay: 1.6s; }
section:nth-child(18) { animation-delay: 1.7s; }

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

/* 标题通用样式 */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.8rem;
  background: linear-gradient(135deg, #e94560, #f5a623, #e94560);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

h2 {
  font-size: 2rem;
  color: #f5a623;
  border-left: 5px solid #e94560;
  padding-left: 15px;
  margin-top: 20px;
}

h3 {
  font-size: 1.5rem;
  color: #e94560;
}

p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #ccc;
}

a {
  color: #f5a623;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

a:hover {
  color: #e94560;
  transform: scale(1.05);
}

/* 列表样式 */
ul, ol {
  padding-left: 25px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #bbb;
}

/* 按钮通用 */
a[href*="#"] {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #e94560, #f5a623);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

a[href*="#"]:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.6);
}

/* 渐变Banner - hero */
#hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #e94560 100%);
  padding: 100px 20px;
  text-align: center;
  border-radius: 20px;
  margin: 20px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
  animation: heroGlow 6s ease-in-out infinite;
}

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

#hero h1 {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  margin-bottom: 20px;
}

#hero p {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #ddd;
}

#hero a {
  position: relative;
  z-index: 1;
}

/* 圆角卡片通用 */
section:not(#hero) {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

section:not(#hero):hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(233, 69, 96, 0.3);
}

/* 毛玻璃效果强化 */
article, blockquote, details {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px;
  margin: 15px 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s;
}

article:hover, blockquote:hover, details:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #e94560;
  transform: scale(1.02);
}

/* 导航栏 */
header {
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(233, 69, 96, 0.3);
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
}

nav ul li a {
  padding: 8px 18px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.05);
  color: #ccc;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid transparent;
}

nav ul li a:hover {
  background: linear-gradient(135deg, #e94560, #f5a623);
  color: #fff;
  border-color: #e94560;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

/* Footer */
footer {
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(233, 69, 96, 0.2);
  margin-top: 40px;
}

footer p {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

footer nav ul {
  margin-top: 15px;
}

footer nav ul li a {
  font-size: 0.9rem;
  padding: 5px 12px;
  background: transparent;
  color: #aaa;
}

footer nav ul li a:hover {
  color: #f5a623;
  background: rgba(233, 69, 96, 0.1);
}

/* 响应式布局 */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  section {
    padding: 40px 0;
  }

  section:not(#hero) {
    padding: 25px;
    margin: 15px 0;
  }

  #hero {
    padding: 60px 15px;
  }

  #hero h1 {
    font-size: 2rem;
  }

  #hero p {
    font-size: 1rem;
  }

  header {
    padding: 10px 15px;
  }

  nav ul {
    gap: 5px;
  }

  nav ul li a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  article, blockquote, details {
    padding: 15px;
  }

  footer {
    padding: 25px 15px;
  }
}

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

  h2 {
    font-size: 1.3rem;
  }

  #hero {
    padding: 40px 10px;
  }

  #hero h1 {
    font-size: 1.5rem;
  }

  a[href*="#"] {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

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

/* 细节与summary样式 */
details {
  cursor: pointer;
}

details summary {
  font-weight: 600;
  color: #f5a623;
  padding: 10px 0;
  outline: none;
  transition: color 0.3s;
}

details summary:hover {
  color: #e94560;
}

details p {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 3px solid #e94560;
}

/* blockquote 引用 */
blockquote {
  font-style: italic;
  color: #ddd;
  border-left: 4px solid #f5a623;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
}

/* 知识中心卡片网格 */
#knowledge-center {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

#knowledge-center h2 {
  width: 100%;
}

#knowledge-center article {
  flex: 1 1 280px;
  max-width: 350px;
  min-width: 250px;
}

/* 案例与反馈网格 */
#case-studies ul, #testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
}

#case-studies ul li, #testimonials blockquote {
  flex: 1 1 250px;
  min-width: 220px;
}

/* 联系与法律信息 */
#contact ul, #legal p {
  padding-left: 0;
  list-style: none;
}

#contact ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 滚动动画支持（部分浏览器） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 暗色模式微调 */
@media (prefers-color-scheme: dark) {
  body {
    background: #0f0f23;
  }
  section:not(#hero) {
    background: rgba(20, 20, 40, 0.8);
  }
}