/* 模板字体本地内置：Switzer（标题）+ Inter（正文），避免国内访问 Google Fonts */
@font-face {
  font-family: Switzer; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/Switzer-Bold.otf") format("opentype");
}
@font-face {
  font-family: Switzer; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/fonts/Switzer-Semibold.otf") format("opentype");
}
@font-face {
  font-family: Switzer; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/Switzer-Medium.otf") format("opentype");
}
@font-face {
  font-family: Inter; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/inter-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: Inter; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/inter-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: Inter; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/fonts/inter-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: Inter; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/inter-latin-700.woff2") format("woff2");
}

:root {
  --w-dark: #100f12;
  --w-gray-1: #3a383f;
  --w-gray-2: #494d4d;
  --w-gray-5: #f8f9fa;
  --p1: #2e1698;
  --p3: #5223b1;
  --p7: #7823b1;
  --p2: #e930c9;
  --grad: linear-gradient(260deg, var(--p2), var(--p7) 30%, var(--p3) 60%, var(--p1));
  --text: #151418;
  --muted: #6c7076;
  --line: rgba(21, 20, 24, 0.10);
  --line-strong: rgba(21, 20, 24, 0.20);
  --surface: #ffffff;
  --soft: #f4f5f7;
  --shadow: 0 4px 20px rgba(21, 20, 24, 0.07);
  --shadow-lg: 0 20px 60px rgba(21, 20, 24, 0.16);
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-head: Switzer, Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body { font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--w-dark); letter-spacing: -0.01em; }

/* 通用按钮（模板形态：滑块胶囊 + 紫粉渐变 / 描边白） */
.wx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 12px 26px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1;
  transition: all .2s ease-in-out;
}
.wx-btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 20px rgba(82, 35, 177, 0.32); }
.wx-btn-primary:hover { filter: brightness(1.06); box-shadow: 0 6px 26px rgba(82, 35, 177, 0.42); color: #fff; }
.wx-btn-dark { background: linear-gradient(180deg, #3a383f, #100f12); color: #fff; border-color: var(--w-dark); box-shadow: 0 4px 20px rgba(21, 20, 24, 0.35); }
.wx-btn-dark:hover { color: #fff; filter: brightness(1.1); }
.wx-btn-white { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.wx-btn-white:hover { border-color: var(--p7); color: var(--p7); }
.wx-btn-sm { padding: 9px 20px; font-size: 14px; }

/* 渐变描边胶囊标签 */
.wx-badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 1px;
  background: var(--grad);
}
.wx-badge > span {
  display: inline-block; border-radius: 999px; background: var(--surface); color: var(--muted);
  font-size: 12.5px; padding: 5px 14px; line-height: 1.3; white-space: nowrap;
}
