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

:root {
  --primary: #f5a623;
  --primary-dark: #d48c1a;
  --bg-dark: #0a1628;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.10);
  --text-primary: #f0f4fa;
  --text-secondary: #a0b4cc;
  --glass-bg: rgba(10, 22, 40, 0.75);
  --glass-border: rgba(255, 255, 255, 0.12);
  --shadow-glow: 0 0 30px rgba(245, 166, 35, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 渐变背景（Banner 风格） ===== */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(245, 166, 35, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 80%, rgba(245, 166, 35, 0.05) 0%, transparent 50%),
              linear-gradient(160deg, #0a1628 0%, #0f1f3a 50%, #0a1628 100%);
  z-index: -2;
  pointer-events: none;
}

/* 动态光晕动画 */
@keyframes aurora {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  33% { transform: translate(2%, -3%) scale(1.1); opacity: 0.6; }
  66% { transform: translate(-1%, 2%) scale(0.95); opacity: 0.3; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
}

body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 140%;
  background: radial-gradient(circle at 50% 40%, rgba(245, 166, 35, 0.03) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
  animation: aurora 12s ease-in-out infinite;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== 通用 ===== */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #ffc34d; }

ul, ol { list-style: none; }

img, svg { max-width: 100%; display: block; }

/* ===== 滚动动画（Intersection Observer 配合） ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

section {
  animation: fadeUp 0.7s ease-out both;
}

/* ===== 头部导航 ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 24px;
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

nav ul {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav ul li a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}

nav ul li a:hover {
  background: rgba(245, 166, 35, 0.12);
  color: var(--primary);
}

/* 移动端导航折叠 */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  nav {
    justify-content: center;
  }
}

/* ===== Hero 区域（渐变Banner） ===== */
#hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(245, 166, 35, 0.10) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 70% 70%, rgba(245, 166, 35, 0.06) 0%, transparent 60%);
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 800px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f5a623 0%, #ffd166 50%, #f5a623 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(245, 166, 35, 0.2);
}

#hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 36px;
}

#hero a {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #0a1628;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.25);
}

#hero a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(245, 166, 35, 0.35);
}

/* ===== 通用 section 布局 ===== */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

section {
  padding: 70px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

section:last-of-type { border-bottom: none; }

section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ===== 圆角卡片（毛玻璃效果） ===== */
article, .card, #services ul, #advantages ul, #resources article, #faq article, #contact address {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

article:hover, .card:hover, #services ul li:hover, #advantages ul li:hover, #resources article:hover, #faq article:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

/* ===== 产品与服务网格 ===== */
#products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

#products h2 {
  grid-column: 1 / -1;
}

#products article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}

#products article p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== 服务列表 ===== */
#services ul, #advantages ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 24px 28px;
}

#services ul li, #advantages ul li {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: background var(--transition), transform var(--transition);
}

#services ul li:hover, #advantages ul li:hover {
  background: rgba(245, 166, 35, 0.08);
  transform: translateX(4px);
}

/* ===== 资源区域 ===== */
#resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

#resources h2 {
  grid-column: 1 / -1;
}

#resources article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary);
}

#resources article p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

#resources article a {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#resources article a::after {
  content: '→';
  transition: transform var(--transition);
}

#resources article a:hover::after {
  transform: translateX(4px);
}

/* ===== 使用指南 ===== */
#howto ol {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

#howto ol li {
  counter-increment: step;
  padding: 16px 20px 16px 48px;
  background: var(--glass-bg);
  backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  position: relative;
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: transform var(--transition), background var(--transition);
}

#howto ol li:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #0a1628;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== FAQ ===== */
#faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

#faq h2 {
  grid-column: 1 / -1;
}

#faq article h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

#faq article p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== 联系 ===== */
#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

#contact address p {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== 底部 ===== */
footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

footer nav ul {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

footer nav ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer nav ul li a:hover {
  color: var(--primary);
}

footer p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

footer p a {
  color: var(--text-secondary);
  margin: 0 6px;
}

footer p a:hover {
  color: var(--primary);
}

/* ===== 响应式微调 ===== */
@media (max-width: 640px) {
  main { padding: 0 16px 40px; }
  section { padding: 50px 0; }
  article, .card, #services ul, #advantages ul, #resources article, #faq article, #contact address {
    padding: 20px 22px;
  }
  #hero { padding: 60px 16px 40px; min-height: 70vh; }
  #hero a { padding: 12px 30px; font-size: 0.95rem; }
  #howto ol { grid-template-columns: 1fr; }
  #contact address { grid-template-columns: 1fr; }
  footer { padding: 30px 16px 20px; }
}

/* ===== 暗色模式（默认已是暗色，保持一致性） ===== */
@media (prefers-color-scheme: light) {
  :root {
    --bg-dark: #0a1628;
    --text-primary: #f0f4fa;
    --text-secondary: #a0b4cc;
  }
  /* 强制暗色，不做亮色切换 */
}

/* ===== 额外毛玻璃装饰 ===== */
#hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

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