/* ============================================
   基础排版与工具类
   ============================================ */

html {
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-dark-primary);
}

/* --- 标题 --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-white);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: var(--fs-hero); letter-spacing: 2px; }
h2 { font-size: var(--fs-4xl); letter-spacing: 1px; }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

/* --- 段落 --- */
p {
  margin-bottom: var(--sp-md);
  color: var(--color-text-secondary);
}

p:last-child { margin-bottom: 0; }

strong { color: var(--color-white); font-weight: 700; }

/* --- 链接 --- */
a {
  color: var(--color-gold);
  transition: color var(--t-fast);
}

a:hover { color: var(--color-gold-light); }

/* --- 区块标题装饰 --- */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-3xl);
}

.section-header h2 {
  margin-bottom: var(--sp-md);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  margin: var(--sp-md) auto 0;
  border-radius: 2px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--fs-lg);
}

/* --- 工具类 --- */
.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* 深色背景区域内的文字颜色覆盖 */
.hero .text-gold,
.cta-banner .text-gold {
  color: rgba(255, 255, 255, 0.85);
}

.hero .text-white,
.cta-banner .text-white {
  color: #ffffff;
}

.hero p,
.hero .breadcrumb {
  color: rgba(255, 255, 255, 0.7);
}

.hero a:not(.btn) {
  color: rgba(255, 255, 255, 0.75);
}

.hero a:not(.btn):hover {
  color: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: var(--r-md);
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* --- 选择文字颜色 --- */
::selection {
  background: var(--color-gold);
  color: #ffffff;
}

::-moz-selection {
  background: var(--color-gold);
  color: #ffffff;
}

/* --- 响应式字号 --- */
@media (max-width: 1023px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }
}

@media (max-width: 767px) {
  html { font-size: 15px; }
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  .section-header { margin-bottom: var(--sp-2xl); }
}
