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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* 暗色模式（默认暗色） */
body {
  background: #0d0d1a;
  color: #e0e0e0;
}

/* 链接 */
a {
  color: #f0b90b;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #ffd966;
}

/* 头部导航 */
header {
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 185, 11, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 1.5rem;
}

nav[aria-label="主导航"] ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

nav[aria-label="主导航"] a {
  color: #c0c0d0;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  position: relative;
}

nav[aria-label="主导航"] a:hover {
  background: rgba(240, 185, 11, 0.15);
  color: #f0b90b;
  transform: translateY(-2px);
}

nav[aria-label="主导航"] a[aria-current="page"] {
  color: #f0b90b;
  background: rgba(240, 185, 11, 0.1);
}

/* 主内容区 */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* 通用section卡片风格 */
section {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 2rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

section:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(240, 185, 11, 0.08);
  border-color: rgba(240, 185, 11, 0.2);
}

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

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

/* 标题 */
h1, h2, h3 {
  color: #f0f0f5;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.8rem;
  background: linear-gradient(135deg, #f0b90b 0%, #f7d875 50%, #f0b90b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(240, 185, 11, 0.15);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #f0b90b, transparent);
  border-radius: 2px;
  margin-top: 0.5rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #f0b90b;
}

/* 段落 */
p {
  margin-bottom: 1rem;
  color: #c8c8d8;
  font-size: 1.05rem;
}

/* 按钮 */
a[role="button"] {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  background: linear-gradient(135deg, #f0b90b, #d4a308);
  color: #0d0d1a;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(240, 185, 11, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

a[role="button"]:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 40px rgba(240, 185, 11, 0.5);
  background: linear-gradient(135deg, #ffd966, #f0b90b);
  color: #0d0d1a;
}

/* 列表 */
ul, ol {
  padding-left: 1.8rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  color: #c8c8d8;
  line-height: 1.7;
}

/* 引用块 */
blockquote {
  background: rgba(240, 185, 11, 0.06);
  border-left: 4px solid #f0b90b;
  padding: 1.2rem 1.8rem;
  margin-bottom: 1rem;
  border-radius: 0 16px 16px 0;
  font-style: italic;
  transition: background 0.3s;
}

blockquote:hover {
  background: rgba(240, 185, 11, 0.1);
}

/* details/summary 常见问题 */
details {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 0.8rem 1.5rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s, background 0.3s;
}

details:hover {
  border-color: rgba(240, 185, 11, 0.3);
  background: rgba(240, 185, 11, 0.04);
}

summary {
  font-weight: 600;
  color: #f0b90b;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

summary:hover {
  color: #ffd966;
}

details p {
  padding: 0.8rem 0 0.2rem;
  color: #b0b0c0;
}

/* address */
address {
  font-style: normal;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
  line-height: 2;
}

/* 文章卡片（产品/案例/洞察） */
article {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

article:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(240, 185, 11, 0.15);
}

/* 底部 */
footer {
  background: rgba(13, 13, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(240, 185, 11, 0.15);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

footer nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

footer nav a {
  color: #a0a0b0;
  font-size: 0.95rem;
  transition: color 0.3s;
}

footer nav a:hover {
  color: #f0b90b;
}

footer p {
  color: #808090;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

/* 渐变Banner（第一个section特殊处理） */
section:first-of-type {
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.08) 0%, rgba(13, 13, 26, 0.9) 60%, rgba(30, 30, 47, 0.8) 100%);
  border: 1px solid rgba(240, 185, 11, 0.15);
  position: relative;
  overflow: hidden;
}

section:first-of-type::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(240, 185, 11, 0.06), transparent 60%);
  pointer-events: none;
}

section:first-of-type h1 {
  font-size: 3.2rem;
}

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

  main {
    padding: 1.2rem;
    gap: 2rem;
  }

  section {
    padding: 1.5rem 1.2rem;
    border-radius: 20px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  nav[aria-label="主导航"] ul {
    gap: 0.8rem;
  }

  nav[aria-label="主导航"] a {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }

  section:first-of-type h1 {
    font-size: 2.4rem;
  }

  a[role="button"] {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
  }

  article {
    padding: 1.2rem 1rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  footer nav ul {
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  main {
    padding: 0.8rem;
    gap: 1.5rem;
  }

  section {
    padding: 1.2rem 1rem;
    border-radius: 16px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  section:first-of-type h1 {
    font-size: 2rem;
  }

  nav[aria-label="主导航"] ul {
    gap: 0.5rem;
  }

  nav[aria-label="主导航"] a {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
  }

  a[role="button"] {
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
  }

  blockquote {
    padding: 0.8rem 1rem;
  }

  details {
    padding: 0.6rem 1rem;
  }

  footer nav ul {
    gap: 0.5rem;
  }
}

/* 暗色模式增强 */
@media (prefers-color-scheme: light) {
  body {
    background: #f5f5fa;
    color: #1a1a2e;
  }

  header {
    background: rgba(245, 245, 250, 0.85);
    border-bottom: 1px solid rgba(26, 26, 46, 0.1);
  }

  nav[aria-label="主导航"] a {
    color: #333;
  }

  nav[aria-label="主导航"] a:hover {
    background: rgba(240, 185, 11, 0.2);
    color: #b8860b;
  }

  section {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  h1 {
    background: linear-gradient(135deg, #b8860b, #d4a308, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  h2, h3, summary {
    color: #1a1a2e;
  }

  h3 {
    color: #b8860b;
  }

  p, li, details p {
    color: #333;
  }

  blockquote {
    background: rgba(240, 185, 11, 0.08);
    border-left-color: #b8860b;
  }

  article {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.04);
  }

  details {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  address {
    background: rgba(255, 255, 255, 0.3);
  }

  footer {
    background: rgba(245, 245, 250, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  footer nav a {
    color: #555;
  }

  footer p {
    color: #666;
  }

  a[role="button"] {
    background: linear-gradient(135deg, #b8860b, #d4a308);
    color: #fff;
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.3);
  }

  a[role="button"]:hover {
    background: linear-gradient(135deg, #d4a308, #b8860b);
    color: #fff;
  }

  section:first-of-type {
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.12) 0%, rgba(245, 245, 250, 0.9) 60%, rgba(255, 255, 255, 0.8) 100%);
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0d0d1a;
}

::-webkit-scrollbar-thumb {
  background: #f0b90b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffd966;
}

/* 选中文本 */
::selection {
  background: rgba(240, 185, 11, 0.3);
  color: #0d0d1a;
}