/* ============================================
   Hermes Base Styles
   全局重置 + 深色主题基础
   ============================================ */

/* ── 重置 ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s var(--ease-standard);
}
a:hover { color: var(--brand-light); }

img { max-width: 100%; height: auto; }

ul { list-style: none; }

/* ── 选择高亮 ── */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ── 标题基础 ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

/* ── 板块通用 ── */
.hermes-section {
  padding: var(--space-section) 0;
  position: relative;
}

.hermes-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-caption);
  color: var(--brand-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.section-title {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--gradient-brand);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-desc {
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ── 滚动动画 ── */
.hermes-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.hermes-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── stagger 延迟 ── */
.hermes-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.hermes-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.hermes-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.hermes-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.hermes-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.hermes-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.hermes-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ── 分割线 ── */
.hermes-divider {
  height: 1px;
  background: var(--gradient-divider);
  border: none;
  margin: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 深色主题覆盖 Bootstrap 残余 ── */
.bg-light { background-color: var(--bg-dark) !important; }
.text-muted { color: var(--text-tertiary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
