/* ============================================================
   鸿鹄易学官网 · base.css
   设计系统：CSS 变量 / reset / 排版 / 按钮 / 徽章 / 卡片
   ============================================================ */

:root {
  /* 品牌色（取自 Logo 蓝色渐变） */
  --brand: #1E6FFF;
  --brand-deep: #0A4FD6;
  --brand-sky: #7DB4FF;
  --brand-grad: linear-gradient(135deg, #1E6FFF 0%, #7DB4FF 100%);

  /* 浅色基底 */
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --bg-card: #FFFFFF;

  /* 深色电影感区段 */
  --dark-1: #0A1128;
  --dark-2: #101B3C;
  --dark-card: rgba(255, 255, 255, 0.06);
  --dark-border: rgba(255, 255, 255, 0.12);

  /* 文字（苹果经典） */
  --text: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-on-dark: #F5F7FA;
  --text-on-dark-secondary: rgba(245, 247, 250, 0.62);

  /* 阴影语言 */
  --shadow-sm: 0 1px 4px rgba(10, 20, 60, 0.06);
  --shadow-md: 0 2px 8px rgba(10, 20, 60, 0.06), 0 12px 40px rgba(10, 20, 60, 0.08);
  --shadow-lg: 0 4px 16px rgba(10, 20, 60, 0.08), 0 24px 64px rgba(10, 20, 60, 0.14);

  /* 圆角 */
  --radius-card: 24px;
  --radius-pill: 999px;

  /* 布局 */
  --max-w: 1120px;
  --nav-h: 64px;

  /* 动效曲线（苹果感） */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);

  /* 字体栈 */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC",
    "Helvetica Neue", Arial, sans-serif;
}

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

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

/* ---------- Lenis 平滑滚动配套规则（官方要求，勿删） ----------
   注意：此处不能给 html 设置全局 scroll-behavior: smooth，
   否则会与 Lenis 的逐帧滚动互相冲突、导致滚动异常；
   锚点的平滑滚动已由 JS 指定（有 Lenis 走 Lenis，无 Lenis 走原生 smooth）。 */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

::selection {
  background: rgba(30, 111, 255, 0.18);
}

/* ---------- 排版 ---------- */
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.section-sub {
  margin-top: 16px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 640px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple),
    background-color 0.35s var(--ease-apple), color 0.35s var(--ease-apple);
  will-change: transform;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(30, 111, 255, 0.35);
}

.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30, 111, 255, 0.45);
}

.btn-ghost {
  background: rgba(30, 111, 255, 0.08);
  color: var(--brand);
}

.btn-ghost:hover {
  background: rgba(30, 111, 255, 0.14);
  transform: translateY(-2px);
}

.btn-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  border: 1px solid var(--dark-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-dark:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(30, 111, 255, 0.09);
  color: var(--brand);
  white-space: nowrap;
}

.badge svg {
  width: 14px;
  height: 14px;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease-apple), box-shadow 0.45s var(--ease-apple);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ---------- 图标泡 ---------- */
.icon-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 111, 255, 0.3);
  flex: none;
}

.icon-bubble svg {
  width: 26px;
  height: 26px;
}
