/* ==========================================================================
  四川云创年华网络科技有限公司
   字体：思源黑体 Noto Sans SC（SIL OFL 1.1，免费商用，本地自托管）
   ========================================================================== */

/* 本地字体（unicode-range 分片，按需加载） */
@import url("fonts.css");

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 字体：优先使用本地思源黑体，缺失时回落到系统无衬线 */
  --font: "Noto Sans SC Variable", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;

  /* 品牌色 */
  --brand: #2ba0e8;
  --brand-dark: #1a86c9;
  --brand-light: #e8f5fd;
  --cyan: #0ecae7;
  --cyan-dark: #08a8c2;

  /* 文字 */
  --text: #222;
  --text-sub: #666;
  --text-mute: #999;
  --text-on-dark: #fff;
  --text-on-dark-sub: #d5dee6;

  /* 背景与描边 */
  --bg: #fff;
  --bg-soft: #f5f8fa;
  --bg-dark: #1c2229;
  --bg-darker: #151a20;
  --line: #e8ebee;

  /* 尺寸 */
  --wrap: 1400px;
  --radius: 6px;
  --radius-lg: 12px;
  --header-h: 72px;

  /* 阴影 */
  --shadow: 0 2px 12px rgba(0, 0, 0, .06);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, .12);

  /* 动效 */
  --ease: .28s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.75 var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease);
}

img, video, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- 3. 排版 ---------- */
h1 { font-size: 40px; line-height: 1.3; font-weight: 700; }
h2 { font-size: 32px; line-height: 1.35; font-weight: 700; }
h3 { font-size: 22px; line-height: 1.45; font-weight: 700; }
h4 { font-size: 17px; line-height: 1.5; font-weight: 700; }

/* ---------- 4. 工具类 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

.center { text-align: center; }
.hide { display: none !important; }
.mb0 { margin-bottom: 0; }

/* 图片按比例填充容器，避免布局跳动 */
.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 5. 无障碍 / 动效偏好 ---------- */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
