/* Creator Guide：About 下方的创作者指南视频合集（PC / 移动端共用，data-layout 区分版式）。
   视觉沿用页面现有体系：金橙描边 #f8aa1f / #df910b、奶油底 #fff8e1、标题字 eryamianhuatang；翻页器复用画廊的箭头 / 圆点 / 星形素材。 */
.creator-guide {
  --guide-width: 76vw; /* PC 视频区总宽：左视频 ≈55.5vw（与 About 正文同宽）+ 右集数导航 */
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: round(nearest, 3.6vw, 1px);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #252424;
  scroll-margin-top: calc(round(nearest, 3.6vw, 1px) + 16px);
}
.creator-guide[hidden] { display: none; }

/* ---- 标题：眉标 + 副标题（本板块属于 About，标题降一档、从属于 About 主标题：PC 2.08vw ≈ 主标题 65%，移动 6.13vw） ---- */
.guide-heading { text-align: center; }
.guide-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: round(nearest, .9vw, 1px);
  font: 800 round(nearest, .94vw, 1px)/1.2 var(--body-font), 'SourceHanSansVF', sans-serif;
  letter-spacing: .16em;
  color: #f8aa1f;
}
.guide-eyebrow::before,
.guide-eyebrow::after {
  content: '';
  width: round(nearest, 5.2vw, 1px);
  height: max(2px, round(nearest, .1vw, 1px));
  background: linear-gradient(to right, rgba(248, 170, 31, 0), #f8aa1f);
}
.guide-eyebrow::after { transform: scaleX(-1); }
.guide-title {
  max-width: 90vw;
  margin: round(nearest, .4vw, 1px) auto 0;
  font-family: 'eryamianhuatang', 'Arial Black', sans-serif;
  font-size: round(nearest, 2.08vw, 1px);
  font-weight: normal;
  line-height: 1.2;
  color: #000;
  text-wrap: balance;
}
/* 其它语言：译文用该语言的标题字；英文原文（译文未到位时）仍用英文标题字 */
html:not([data-locale='en']) body .creator-guide .guide-title {
  font-family: var(--locale-font), 'eryamianhuatang', 'Arial Black', sans-serif !important;
  line-height: 1.25;
}

/* ---- 视频区 ----
   PC 左右结构：左侧视频框，右侧竖排集数导航（PC 切集只靠导航，不放翻页器），导航与视频框等高。
   总宽 76vw，矮宽屏（带鱼屏）放不下时由 guide.js 写 --guide-fit 等比收窄，保证整组一屏可见；
   视频框内尺寸按视频列宽（cqw）取，导航 / 翻页器按整个视频区宽度取，收窄时同比缩放。 */
.guide-body {
  width: calc(var(--guide-width) * var(--guide-fit, 1));
  margin-top: round(nearest, 1.6vw, 1px);
  container-type: inline-size;
}
.creator-guide[data-layout='desktop'] .guide-body {
  display: grid;
  grid-template-columns: minmax(0, 50fr) minmax(0, 18.46fr);
  grid-template-areas: 'video list';
  column-gap: 2.2%;
}
.creator-guide[data-layout='desktop'] .guide-viewport { grid-area: video; }
.creator-guide[data-layout='desktop'] .guide-tabs { grid-area: list; }
.creator-guide[data-layout='desktop'] .guide-controls { display: none; }
.guide-viewport { width: 100%; overflow: hidden; outline: none; container-type: inline-size; }
.guide-viewport:focus-visible { outline: 3px solid #915000; outline-offset: 2px; }
.guide-slide { padding-bottom: round(nearest, .8cqw, 1px); } /* 给描边下方的投影留位 */
.guide-caption { display: none; }
.guide-frame,
.guide-viewport::before {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: round(nearest, .72cqw, 1px) solid #f8aa1f;
  border-radius: round(nearest, 2.4cqw, 1px);
  background: #22170a;
  box-shadow: 0 round(nearest, .72cqw, 1px) 0 #df910b;
  isolation: isolate;
}
/* 切集是框内交叉淡入淡出：每页自带同款描边框，视频区底层再垫一个固定的同款框，
   新旧两页半透明交替时透出的仍是同一个框，描边不闪、四角也不会被视窗切掉 */
.guide-viewport::before { content: ''; position: absolute; top: 0; left: 0; z-index: 0; width: 100%; }
/* 封面（未配封面时为暖棕底 + 集数） */
.guide-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: round(nearest, 2.2cqw, 1px);
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background:
    radial-gradient(60% 75% at 50% 42%, rgba(255, 196, 70, .28) 0%, rgba(255, 196, 70, 0) 70%),
    linear-gradient(160deg, #4d3512 0%, #2b1d0a 55%, #1d1307 100%);
  color: #fff;
  font: inherit;
  cursor: pointer;
  /* 换集时画面在固定框内从微放大回落到原大，配合淡入 */
  transform: scale(1.04);
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.swiper-slide-active .guide-poster { transform: none; }
.guide-poster[aria-disabled='true'] { cursor: default; }
.guide-poster:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.guide-cover {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-poster-label {
  font: 800 max(12px, round(nearest, 2.08cqw, 1px))/1.2 var(--body-font), 'SourceHanSansVF', sans-serif;
  letter-spacing: .16em;
  color: #ffd877;
}
.has-cover .guide-poster { background: none; }
.has-cover .guide-poster-label { display: none; }
.guide-play {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: round(nearest, 8cqw, 1px);
  height: round(nearest, 8cqw, 1px);
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  transition: transform .2s ease, background-color .2s ease;
}
/* 通用播放器的标准播放钮：半透明深色圆底 + 白色实心三角（三角自带视觉居中） */
.guide-play svg { width: 56%; height: 56%; }
@media (hover: hover) {
  .guide-poster:not([aria-disabled='true']):hover .guide-play { transform: scale(1.08); background: rgba(0, 0, 0, .72); }
}
.guide-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
.guide-slide.is-playing .guide-poster { visibility: hidden; }

/* 视频框左上角的十字星装饰（PC / 移动端同一份素材）：大星压在圆角描边上，中 / 小星和圆点沿上边、左边排开围住圆角。
   不放进视口（视口会裁掉框外内容），不随翻页变化、不挡点击；
   素材画布 130 单位里框角在 (30, 30)，平移 30 / 130 自身宽把框角对齐。
   PC 叠在视频区网格格子上，宽取视频列的 13%（小屏保底 84px）；移动端绝对定位到框角，宽 130 / 750 设计宽。 */
.guide-stars {
  display: none;
  position: relative;
  z-index: 2;
  aspect-ratio: 1;
  translate: -23.08% -23.08%;
  background: url('../img/common/guide/guide-stars.svg') center / contain no-repeat;
  pointer-events: none;
}
.creator-guide[data-layout='desktop'] .guide-stars {
  display: block;
  grid-area: video;
  align-self: start;
  justify-self: start;
  width: max(84px, 13%);
}

/* ---- PC 右侧集数导航：竖排 5 项与视频框等高，当前集黄底 + 右下网点 + 指向视频的小三角 ---- */
.guide-tabs {
  display: flex;
  flex-direction: column;
  gap: round(nearest, 1cqw, 1px);
  padding-bottom: round(nearest, .57cqw, 1px); /* 与左侧视频框下方的投影留位对齐 */
}
.guide-tab {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: round(nearest, .5cqw, 1px);
  min-height: 0;
  padding: round(nearest, .9cqw, 1px) round(nearest, 1.4cqw, 1px);
  border: max(2px, round(nearest, .2cqw, 1px)) solid #f3c35a;
  border-radius: round(nearest, 1.2cqw, 1px);
  background: #fff8e1;
  box-shadow: 0 max(2px, round(nearest, .26cqw, 1px)) 0 #f0d394;
  color: #252424;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.guide-tab > * { position: relative; z-index: 1; }
/* 选中集右下角的亮色半调网点（网点向右下角渐大），只在当前集显示 */
.guide-tab::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 48%;
  height: 72%;
  border-bottom-right-radius: calc(round(nearest, 1.2cqw, 1px) - max(2px, round(nearest, .2cqw, 1px)));
  background: url('../img/common/guide/tab-halftone.svg') right bottom / cover no-repeat;
  /* 卡片宽高比各屏不同，网点图会被裁；再叠一层朝右下角收拢的渐隐，保证上 / 左边缘自然淡出 */
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 100%, #000 25%, transparent 88%);
  mask-image: radial-gradient(ellipse 100% 100% at 100% 100%, #000 25%, transparent 88%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.guide-tab[aria-current='true']::after { opacity: 1; }
/* 两级文字：集数是小号宽字距眉标（同板块眉标 / 封面集数的字距体系），小标题加大加粗、略收字距，主次一眼分开 */
.guide-tab-label {
  font: 700 max(10px, round(nearest, .9cqw, 1px))/1 var(--body-font), 'SourceHanSansVF', sans-serif;
  letter-spacing: .14em;
  color: #b86e00; /* 品牌橙压深一档，小字在奶油底上更易读 */
}
.guide-tab-title {
  font: 800 max(13px, round(nearest, 1.45cqw, 1px))/1.2 var(--body-font), 'SourceHanSansVF', sans-serif;
  letter-spacing: -.01em;
  color: #252424;
  text-wrap: pretty;
}
.guide-tab[aria-current='true'] { background: #ffd877; border-color: #f8aa1f; box-shadow: 0 max(2px, round(nearest, .26cqw, 1px)) 0 #df910b; }
.guide-tab[aria-current='true'] .guide-tab-label { color: #915000; }
.guide-tab[aria-current='true']::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(100% + max(2px, round(nearest, .2cqw, 1px)));
  width: round(nearest, .9cqw, 1px);
  height: round(nearest, 1.8cqw, 1px);
  translate: 0 -50%;
  background: #f8aa1f;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
.guide-tab:focus-visible { outline: 3px solid #915000; outline-offset: 2px; }
@media (hover: hover) {
  .guide-tab:not([aria-current='true']):hover { background: #fff0bf; border-color: #f8aa1f; transform: translateX(-3px); }
}

/* ---- 翻页器（仅移动端）：与画廊同款，照 components.css 画廊最终值，整组按 375 基准 zoom ---- */
.guide-controls { display: flex; align-items: center; justify-content: center; }
html[data-locale] body .creator-guide[data-layout='mobile'] .guide-controls { zoom: var(--mobile-scale); gap: 16px; margin-top: 12px; }
html[data-locale] body .creator-guide[data-layout='mobile'] .gallery-arrow { width: 44px; height: 44px; }
html[data-locale] body .creator-guide[data-layout='mobile'] .gallery-dot { width: 32px; height: 40px; }
html[data-locale] body .creator-guide[data-layout='mobile'] .gallery-dot::after { width: 13px; height: 13px; }
html[data-locale] body .creator-guide[data-layout='mobile'] .gallery-dot[aria-current='true']::after { width: 28px; height: 28px; }
html[data-locale] body .creator-guide .gallery-dot::after { background-image: url('../img/common/gallery/gallery-dot.svg?v=20260911-24'); }
html[data-locale] body .creator-guide .gallery-dot[aria-current='true']::after { transform: none; background-image: url('../img/common/gallery/gallery-star.svg'); }
html[data-locale] body .creator-guide .gallery-dots { gap: 0; }

/* =============================================
   移动端（750 设计宽，vw 流式）；PC 页窄窗口同用
============================================= */
.creator-guide[data-layout='mobile'] {
  --guide-width: 100%;
  margin-top: round(nearest, -6.67vw, 1px);
  padding: 0 round(nearest, 6vw, 1px) round(nearest, 2.67vw, 1px);
  scroll-margin-top: calc(round(nearest, 11.73vw, 1px) + 14px);
}
.creator-guide[data-layout='mobile'] .guide-eyebrow { gap: round(nearest, 2.4vw, 1px); font-size: round(nearest, 3.2vw, 1px); }
.creator-guide[data-layout='mobile'] .guide-eyebrow::before,
.creator-guide[data-layout='mobile'] .guide-eyebrow::after { width: round(nearest, 10.67vw, 1px); height: 2px; }
.creator-guide[data-layout='mobile'] .guide-title { max-width: 88vw; margin-top: round(nearest, 1.6vw, 1px); font-size: round(nearest, 6.13vw, 1px); line-height: 1.2; }
.creator-guide[data-layout='mobile'] .guide-body { position: relative; margin-top: round(nearest, 7.47vw, 1px); } /* 给框角上方的星星 / 小标题标签留位 */
.creator-guide[data-layout='mobile'] .guide-slide { padding-bottom: round(nearest, 1.07vw, 1px); }
.creator-guide[data-layout='mobile'] .guide-stars {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: round(nearest, 17.33vw, 1px);
}
/* 本集小标题：做成细长标签贴在视频框右上角，骑在上描边上（一半在框外，与左上角星星呼应、少挡画面）；
   左边橙底小签写集数、右边写小标题，一行排下（超长译文才折行）；黄底橙边同 PC 当前集导航，外圈奶油描边同星星素材；
   左侧给星星留位；播放中隐藏，不挡画面 */
.creator-guide[data-layout='mobile'] .guide-caption {
  position: absolute;
  top: round(nearest, .53vw, 1px);
  right: round(nearest, 2.13vw, 1px);
  translate: 0 -50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: round(nearest, 1.33vw, 1px);
  max-width: calc(100% - round(nearest, 16vw, 1px)); /* 左边让出星星（右缘约在框内 13.3vw）再空一点 */
  padding: round(nearest, .8vw, 1px) round(nearest, 2.13vw, 1px) round(nearest, .8vw, 1px) round(nearest, .8vw, 1px);
  border: 2px solid #f8aa1f;
  border-radius: round(nearest, 3.2vw, 1px);
  background: #ffd877;
  box-shadow: 0 0 0 2px #fff8e1, 0 round(nearest, .53vw, 1px) 0 2px #df910b;
  pointer-events: none;
  transition: opacity .25s ease;
}
.creator-guide[data-layout='mobile'] .guide-body:has(.swiper-slide-active.is-playing) .guide-caption { opacity: 0; }
.creator-guide[data-layout='mobile'] .guide-caption-label {
  flex: 0 0 auto;
  padding: round(nearest, .8vw, 1px) round(nearest, 1.33vw, 1px);
  border-radius: round(nearest, 2.13vw, 1px);
  background: #f8aa1f;
  font: 800 round(nearest, 2.53vw, 1px)/1 var(--body-font), 'SourceHanSansVF', sans-serif;
  letter-spacing: .06em;
  color: #fff;
}
.creator-guide[data-layout='mobile'] .guide-caption-title {
  min-width: 0;
  font: 800 round(nearest, 2.93vw, 1px)/1.2 var(--body-font), 'SourceHanSansVF', sans-serif;
  color: #252424;
}
.guide-caption.is-entering { animation: guide-caption-in .4s ease-out; }
@keyframes guide-caption-in { from { opacity: 0; } }
.creator-guide[data-layout='mobile'] .guide-frame,
.creator-guide[data-layout='mobile'] .guide-viewport::before {
  border-width: round(nearest, 1.07vw, 1px);
  border-radius: round(nearest, 3.2vw, 1px);
  box-shadow: 0 round(nearest, 1.07vw, 1px) 0 #df910b;
}
.creator-guide[data-layout='mobile'] .guide-poster-label { display: none; } /* 集数已在右上角标签里，封面中间只留播放钮 */
.creator-guide[data-layout='mobile'] .guide-poster .guide-play { width: round(nearest, 14.4vw, 1px); height: round(nearest, 14.4vw, 1px); }
.creator-guide[data-layout='mobile'] .guide-tabs { display: none; }

@media (prefers-reduced-motion: reduce) {
  .guide-play, .guide-poster, .guide-caption, .guide-tab, .guide-tab::after { transition: none; }
  .guide-caption.is-entering { animation: none; }
}
