/* ══════════════════════════════════════════════════════════════
   Datacore HLS 视频 Hero —— 设计令牌
   ══════════════════════════════════════════════════════════════ */

:root {
  /* 主色 */
  --dc-purple:       #7b39fc;
  --dc-purple-hover: #6a2ce0;
  /* 次色 */
  --dc-navy:         #2b2344;
  --dc-navy-hover:   #352b54;
  /* 强调 */
  --dc-orange:       #f87b52;
  /* 玻璃拟态 */
  --dc-glass-bg:     rgba(85, 80, 110, 0.40);
  --dc-glass-border: rgba(164, 132, 215, 0.50);
  --dc-glass-blur:   12px;
  /* 文字 */
  --dc-text:         #ffffff;
  --dc-text-80:      rgba(255, 255, 255, 0.80);
  --dc-text-60:      rgba(255, 255, 255, 0.60);
  /* 遮罩 */
  --dc-overlay:      rgba(0, 0, 0, 0.60);

  /* 字体 */
  --dc-font:         'Manrope', ui-sans-serif, system-ui, sans-serif;
  --dc-font-head:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --dc-font-ui:      'Cabin', ui-sans-serif, system-ui, sans-serif;
  --dc-font-serif:   'Instrument Serif', Georgia, serif;

  /* 圆角 */
  --dc-radius-pill:  9999px;
  --dc-radius:       12px;

  /* 字号 */
  --dc-h1:           clamp(40px, 6vw, 76px);

  /* 过渡 */
  --dc-ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

/* ══════════════════════════════════════════════════════════════
   Datacore HLS 视频 Hero —— 样式
   ══════════════════════════════════════════════════════════════ */

/* ── 字体(本地化,4 个)── */
@font-face { font-family: 'Manrope'; src: url('/fonts/dc/Manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter';   src: url('/fonts/dc/Inter.woff2') format('woff2');   font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Cabin';   src: url('/fonts/dc/Cabin.woff2') format('woff2');   font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/dc/InstrumentSerif.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

/* ══ ① 外层 ══ */
.dc {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
  font-family: var(--dc-font);
  color: var(--dc-text);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 视频 + poster 层 */
.dc__media { position: absolute; inset: 0; z-index: 0; }
.dc__video, .dc__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.dc__poster {
  transition: opacity .6s ease;
  z-index: 1;
  background: #0a0812;      /* poster 加载前的底色 */
}
.dc__overlay {
  position: absolute; inset: 0;
  background: var(--dc-overlay);
  z-index: 2;
}

/* 内容层 */
.dc__layer {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 20px;
}
@media (min-width: 640px) { .dc__layer { padding: 0 32px; } }
@media (min-width: 1024px){ .dc__layer { padding: 0 64px; } }

/* ══ ② 导航栏 ══ */
.dc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  flex: 0 0 auto;
}
@media (min-width: 768px) { .dc-nav { padding: 28px 0; } }

/* Logo:白方块 + 图标 */
.dc-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.dc-logo__mark {
  width: 34px; height: 34px;
  background: #fff;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #000;
  flex: 0 0 auto;
}
.dc-logo__name { font-family: var(--dc-font-head); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }

/* 中间链接 */
.dc-nav__links { display: none; align-items: center; gap: 28px; margin: 0 auto; }
@media (min-width: 900px) { .dc-nav__links { display: flex; } }
.dc-nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--dc-font);
  font-size: 14px; font-weight: 500;
  color: var(--dc-text-80);
  text-decoration: none;
  transition: color .2s ease;
}
.dc-nav__link:hover { color: #fff; }

/* 右侧按钮组 */
.dc-nav__actions { display: none; align-items: center; gap: 10px; }
@media (min-width: 900px) { .dc-nav__actions { display: flex; } }

/* 玻璃按钮 */
.dc-glass {
  background: var(--dc-glass-bg);
  border: 1px solid var(--dc-glass-border);
  backdrop-filter: blur(var(--dc-glass-blur));
  -webkit-backdrop-filter: blur(var(--dc-glass-blur));
}
.dc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--dc-font-ui);
  font-size: 14px; font-weight: 500;
  border-radius: var(--dc-radius-pill);
  padding: 11px 22px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.dc-btn--glass {
  background: var(--dc-glass-bg);
  border-color: var(--dc-glass-border);
  backdrop-filter: blur(var(--dc-glass-blur));
  -webkit-backdrop-filter: blur(var(--dc-glass-blur));
  color: #fff;
}
.dc-btn--glass:hover { background: rgba(85,80,110,0.55); }
.dc-btn--purple { background: var(--dc-purple); color: #fff; }
.dc-btn--purple:hover { background: var(--dc-purple-hover); }
.dc-btn--navy { background: var(--dc-navy); color: #fff; }
.dc-btn--navy:hover { background: var(--dc-navy-hover); }

/* 汉堡按钮 */
.dc-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--dc-radius-pill);
  background: var(--dc-glass-bg);
  border: 1px solid var(--dc-glass-border);
  color: #fff; cursor: pointer; padding: 0;
}
@media (min-width: 900px) { .dc-burger { display: none; } }

/* ══ ③ Hero 内容(居中)══ */
.dc-hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 80px;
}
@media (min-width: 768px) { .dc-hero { padding: 60px 0 100px; } }

/* 徽章(玻璃胶囊) */
.dc-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--dc-radius-pill);
  background: var(--dc-glass-bg);
  border: 1px solid var(--dc-glass-border);
  backdrop-filter: blur(var(--dc-glass-blur));
  -webkit-backdrop-filter: blur(var(--dc-glass-blur));
  margin-bottom: 28px;
}
.dc-badge__tag {
  font-family: var(--dc-font-ui);
  font-size: 12px; font-weight: 600;
  background: var(--dc-orange);
  color: #fff;
  border-radius: var(--dc-radius-pill);
  padding: 4px 11px;
  line-height: 1.2;
}
.dc-badge__text {
  font-family: var(--dc-font);
  font-size: 13px; font-weight: 500;
  color: var(--dc-text-80);
}

/* 大标题 */
.dc-hero__h1 {
  font-family: var(--dc-font-head);
  font-size: var(--dc-h1);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 22px;
  max-width: 900px;
}
.dc-hero__h1 span { display: block; }
.dc-hero__italic {
  font-family: var(--dc-font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* 副标题 */
.dc-hero__sub {
  font-family: var(--dc-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dc-text-60);
  max-width: 520px;
  margin: 0 0 36px;
}
@media (min-width: 640px) { .dc-hero__sub { font-size: 17px; } }

/* CTA 组 */
.dc-hero__cta {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.dc-hero__cta .dc-btn { padding: 15px 30px; font-size: 15px; }

/* ══ ④ 移动端全屏菜单 ══ */
.dc-menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.97);
  display: flex; flex-direction: column;
  padding: 24px 24px 40px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.dc-menu.cx-open { opacity: 1; pointer-events: auto; }
.dc-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.dc-menu__links { display: flex; flex-direction: column; gap: 4px; }
.dc-menu__link {
  font-family: var(--dc-font-head);
  font-size: 30px; font-weight: 600;
  color: #fff; text-decoration: none;
  padding: 14px 0; letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dc-menu__link:hover { color: var(--dc-purple); }
.dc-menu__actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.dc-menu__actions .dc-btn { width: 100%; padding: 15px; font-size: 15px; }

/* ══ ⑤ 无障碍 ══ */
.dc-btn:focus-visible, .dc-burger:focus-visible, .dc-nav__link:focus-visible, .dc-menu__link:focus-visible {
  outline: 2px solid var(--dc-orange); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .dc__poster { transition: none; }
  .dc-btn { transition: none; }
}