/* 效果展厅（/effects 与 /effects/<id>）样式。
   全部选择器限定在 .ep 内、类名一律 ep- 前缀：便携构建会把所有页面的
   CSS 合并成一个文件，展厅不得泄漏进应用页，也不依赖应用页的变量。
   设计令牌与 landing.css 保持一致（近黑阶层 + 信号黄），同样固定深色。 */

.ep {
  --ep-bg: #0d0e11;
  --ep-ink-1: #15171c;
  --ep-ink-2: #1d2027;
  --ep-line: #23262e;
  --ep-line-2: #313540;
  --ep-fg: #f4f5f7;
  --ep-fg-2: #c7cbd3;
  --ep-muted: #8d93a0;
  --ep-accent: #ffd60a;
  --ep-accent-hover: #ffdf3d;
  --ep-accent-ink: #171500;

  --ep-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ep-display: 'bw-bebas-neue', Impact, 'Arial Narrow', system-ui, sans-serif;

  --ep-radius: 16px;
  --ep-radius-sm: 10px;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ep-bg);
  color: var(--ep-fg);
  font: 16px/1.78 system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
  overflow-x: clip;
}
.ep main { flex: 1; }
.ep ::selection { background: var(--ep-accent); color: var(--ep-accent-ink); }
.ep :focus-visible { outline: 2px solid var(--ep-accent); outline-offset: 3px; border-radius: 4px; }
.ep h1, .ep h2, .ep h3, .ep h4, .ep p, .ep ol, .ep ul { margin: 0; }
.ep ol, .ep ul { padding: 0; list-style: none; }
.ep [id] { scroll-margin-top: 88px; }
.ep-wrap { max-width: 1140px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); width: 100%; box-sizing: border-box; }
.ep *, .ep *::before, .ep *::after { box-sizing: border-box; }

/* ---------- 按钮 ---------- */
.ep .ep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--ep-radius-sm);
  border: 1px solid transparent;
  font: 600 15px/1 inherit;
  font-family: inherit;
  letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.ep .ep-btn-primary { background: var(--ep-accent); color: var(--ep-accent-ink); }
.ep .ep-btn-primary:hover { background: var(--ep-accent-hover); box-shadow: 0 8px 24px rgba(255, 214, 10, .22); transform: translateY(-1px); }
.ep .ep-btn-primary:active { transform: translateY(1px); box-shadow: none; }
.ep .ep-btn-ghost { border-color: var(--ep-line-2); color: var(--ep-fg); background: transparent; }
.ep .ep-btn-ghost:hover { border-color: #434956; background: var(--ep-ink-1); }
.ep .ep-btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- 页头（与落地页同款视觉，ep- 前缀） ---------- */
.ep .ep-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 14, 17, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--ep-line);
}
.ep .ep-nav-inner {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ep .ep-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.ep .ep-brand-glyph {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ep-accent); color: var(--ep-accent-ink);
  display: grid; place-items: center;
  font-size: 17px; font-weight: 700; line-height: 1;
}
.ep .ep-brand-name { font-size: 17px; font-weight: 650; letter-spacing: .02em; }
.ep .ep-brand-en {
  font-family: var(--ep-display);
  font-size: 13px; letter-spacing: .14em;
  color: var(--ep-muted);
  margin-left: 9px; transform: translateY(-1px);
}
.ep .ep-nav-links { display: flex; gap: clamp(14px, 2.2vw, 26px); }
.ep .ep-nav-links a {
  font-size: 14px; color: var(--ep-muted); text-decoration: none;
  padding: 6px 2px;
  white-space: nowrap;
  transition: color .16s ease;
}
.ep .ep-nav-links a:hover { color: var(--ep-fg); }
.ep .ep-nav-links a[aria-current='page'] { color: var(--ep-accent); }
@media (max-width: 640px) {
  /* Keep the current section link, but drop the English wordmark suffix so
     brand + link + CTA still fit a 360px phone without wrapping. */
  .ep .ep-brand-en { display: none; }
  .ep .ep-nav-links a:not([aria-current='page']) { display: none; }
  .ep .ep-btn-sm { padding: 9px 12px; }
}

/* ---------- 页脚（与落地页同款视觉，ep- 前缀） ---------- */
.ep .ep-footer { border-top: 1px solid var(--ep-line); background: var(--ep-bg); }
.ep .ep-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding: 40px 0 28px;
}
.ep .ep-footer-brand p { margin-top: 14px; color: var(--ep-muted); font-size: 14px; max-width: 30em; }
.ep .ep-footer-col { display: flex; flex-direction: column; gap: 10px; }
.ep .ep-footer-col h4 { font-size: 13px; color: var(--ep-fg-2); letter-spacing: .08em; }
.ep .ep-footer-col a { color: var(--ep-muted); text-decoration: none; font-size: 14px; }
.ep .ep-footer-col a:hover { color: var(--ep-fg); }
.ep .ep-footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--ep-line);
  padding: 16px 0 28px;
  color: var(--ep-muted); font-size: 13px;
}
@media (max-width: 720px) {
  .ep .ep-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- 面包屑 / 标题 ---------- */
.ep .ep-crumbs ol { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ep .ep-crumbs li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ep-muted); }
.ep .ep-crumbs li + li::before { content: '/'; color: var(--ep-line-2); }
.ep .ep-crumbs a { color: var(--ep-muted); text-decoration: none; }
.ep .ep-crumbs a:hover { color: var(--ep-fg); }
.ep .ep-crumbs [aria-current='page'] { color: var(--ep-fg-2); }
.ep .ep-title {
  margin-top: 14px;
  font-family: var(--ep-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  letter-spacing: .01em;
}
.ep .ep-lede { margin-top: 12px; color: var(--ep-fg-2); font-size: 17px; max-width: 44em; }

/* ---------- 总览：卡片墙 ---------- */
.ep .ep-hero { padding: 44px 0 8px; }
.ep .ep-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  padding: 24px 0 64px;
}
.ep .ep-card {
  display: flex; flex-direction: column;
  background: var(--ep-ink-1);
  border: 1px solid var(--ep-line);
  border-radius: var(--ep-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.ep .ep-card:hover, .ep .ep-card:focus-visible {
  border-color: var(--ep-line-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
.ep .ep-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
  container-type: inline-size;
}
.ep .ep-card-thumb > .bw-stage { position: absolute; inset: 0; }
.ep .ep-card-meta { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.ep .ep-card-meta strong { font-size: 15px; }
.ep .ep-card-meta span { color: var(--ep-muted); font-size: 13px; line-height: 1.5; }

/* ---------- 详情：两栏 ---------- */
.ep .ep-main { padding: 36px 0 72px; display: flex; flex-direction: column; gap: 28px; }
.ep .ep-cols {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(300px, 5fr);
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .ep .ep-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 设备切换与舞台 ---------- */
.ep .ep-devices {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ep-line);
  border-radius: 999px;
  background: var(--ep-ink-1);
}
.ep .ep-device {
  border: 0;
  border-radius: 999px;
  padding: 7px 16px;
  background: none;
  color: var(--ep-muted);
  font: 600 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}
.ep .ep-device:hover { color: var(--ep-fg); }
.ep .ep-device[aria-checked='true'] { background: var(--ep-accent); color: var(--ep-accent-ink); }

.ep .ep-stage {
  position: relative;
  margin: 22px auto 8px;
  background: #000;
  transition: width .25s ease, height .25s ease;
}
/* 手机：竖屏粗边框 */
.ep .ep-device-phone {
  width: min(264px, 72%);
  aspect-ratio: 9 / 19.5;
  border: 10px solid #23262e;
  border-radius: 32px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
}
/* 平板：横屏中边框 */
.ep .ep-device-tablet {
  width: min(480px, 100%);
  aspect-ratio: 4 / 3;
  border: 7px solid #23262e;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
}
/* PC：显示器边框 */
.ep .ep-device-pc {
  width: min(640px, 100%);
  aspect-ratio: 16 / 9;
  border: 12px solid #15171c;
  border-top-width: 14px;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
}
/* 电视：极薄边框 */
.ep .ep-device-tv {
  width: min(680px, 100%);
  aspect-ratio: 16 / 9;
  border: 4px solid #101216;
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
}
.ep .ep-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  container-type: inline-size;
}

/* ---------- 舞台下的动作与二维码 ---------- */
.ep .ep-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.ep .ep-share {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--ep-ink-1);
  border: 1px solid var(--ep-line);
  border-radius: var(--ep-radius);
}
.ep .ep-qr {
  width: 116px; height: 116px;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  line-height: 0;
}
.ep .ep-qr-svg { width: 100%; height: 100%; display: block; }
.ep .ep-qr-empty { visibility: hidden; }
.ep .ep-qr-note { color: var(--ep-muted); font-size: 13.5px; max-width: 18em; }

/* ---------- 设置面板 ---------- */
.ep .ep-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  background: var(--ep-ink-1);
  border: 1px solid var(--ep-line);
  border-radius: var(--ep-radius);
}
.ep .ep-field { display: flex; flex-direction: column; gap: 8px; }
.ep .ep-label { color: var(--ep-fg); font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.ep .ep-mini { color: var(--ep-muted); font-size: 13.5px; }
.ep .ep-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ep .ep-text {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--ep-line-2);
  border-radius: var(--ep-radius-sm);
  background: var(--ep-ink-2);
  color: var(--ep-fg);
  font: 15px/1.5 inherit;
  font-family: inherit;
}
.ep .ep-text:focus { outline: 2px solid var(--ep-accent); border-color: transparent; }
.ep .ep-color {
  width: 44px; height: 32px;
  padding: 2px;
  border: 1px solid var(--ep-line-2);
  border-radius: 8px;
  background: var(--ep-ink-2);
  cursor: pointer;
}
.ep .ep-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ep .ep-chip {
  border: 1px solid var(--ep-line-2);
  border-radius: 999px;
  padding: 6px 13px;
  background: var(--ep-ink-2);
  color: var(--ep-fg-2);
  font: 500 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.ep .ep-chip:hover { color: var(--ep-fg); border-color: var(--ep-muted); }
.ep .ep-chip[aria-pressed='true'] {
  background: var(--ep-accent);
  border-color: var(--ep-accent);
  color: var(--ep-accent-ink);
  font-weight: 650;
}
.ep .ep-select {
  padding: 7px 10px;
  border: 1px solid var(--ep-line-2);
  border-radius: 8px;
  background: var(--ep-ink-2);
  color: var(--ep-fg);
  font: 13.5px/1.2 inherit;
  font-family: inherit;
  cursor: pointer;
}
.ep .ep-select:focus-visible { outline: 2px solid var(--ep-accent); }

/* ---------- 底部静态内容（SEO 区） ---------- */
.ep .ep-seo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--ep-line);
}
.ep .ep-seo h2 {
  font-family: var(--ep-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: .02em;
  line-height: 1;
  margin-bottom: 12px;
}
.ep .ep-scenes li, .ep .ep-steps li {
  position: relative;
  padding-left: 18px;
  color: var(--ep-fg-2);
  font-size: 14.5px;
  line-height: 1.9;
}
.ep .ep-scenes li::before {
  content: '';
  position: absolute; left: 2px; top: .72em;
  width: 6px; height: 6px;
  background: var(--ep-accent);
  border-radius: 2px;
}
.ep .ep-steps { counter-reset: ep-step; }
.ep .ep-steps li { padding-left: 30px; counter-increment: ep-step; }
.ep .ep-steps li::before {
  content: counter(ep-step, decimal-leading-zero);
  position: absolute; left: 0; top: .18em;
  font-family: var(--ep-display);
  font-size: 17px;
  color: var(--ep-accent);
}
.ep .ep-related li { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--ep-line); }
.ep .ep-related li:last-child { border-bottom: 0; }
.ep .ep-related a { color: var(--ep-fg); text-decoration: none; font-weight: 600; font-size: 15px; }
.ep .ep-related a:hover { color: var(--ep-accent); }
.ep .ep-related span { color: var(--ep-muted); font-size: 13px; line-height: 1.5; }

/* ---------- 无 JS 的静态预览（近似字样） ---------- */
.ep .ep-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7%;
  white-space: pre-line;
  overflow: hidden;
  line-height: 1.15;
  font-size: 18px;
  font-size: clamp(14px, 13cqw, 76px);
}
.ep .ep-f0, .ep .ep-f1, .ep .ep-f2 { font-family: system-ui, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.ep .ep-f3 { font-family: Georgia, 'Times New Roman', serif; }
.ep .ep-f4 { font-family: var(--ep-display); }
.ep .ep-f5 { font-family: var(--ep-mono); }
.ep .ep-f6 { font-family: 'Comic Sans MS', 'Segoe Print', cursive; }
