/* 仅供屏幕阅读器使用的隐藏文字（不影响视觉呈现） */
.gy-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CSS Variables & Reset：token 实测自目标站（2026-10-20，见 docs/STYLE_CLONE_SOP.md 附录） */
:root {
  /* 主色鹅黄；hover 换辅色青（目标站做法）；active 目标站没有，由主色推导 */
  --accent: #fef08a;
  --accent-light: rgba(254, 240, 138, 0.18);
  --accent-hover: #99f6e4;
  --accent-active: #fde047;
  /* 主色底上的文字色：亮黄底必须用深色字，禁止白字 */
  --on-accent: #103d3b;
  /* 辅色青色：标签字 */
  --tag-bg: rgba(153, 246, 228, 0.1);
  --tag-text: #99f6e4;
  /* 元件专用色：目标站这几处同为主色 */
  --accent-login: #fef08a;
  --accent-tab: #fef08a;
  --grad-play: linear-gradient(to right, #fef08a, #fef08a);
  --shadow-play: 0 6px 20px rgba(254, 240, 138, 0.18);
  /* 警示红：目标站 --danger；原辅色粉（集数徽章等）改走此组，逐处复查 */
  --accent-red: #ef4444;
  --text: #f8fafc;
  --text-muted: rgba(226, 232, 240, 0.82);
  --text-light: rgba(226, 232, 240, 0.82);
  --text-weak: rgba(226, 232, 240, 0.6);
  /* --bg 页面底；--bg-white 是「面板/卡片」层；--bg-elev 是面板里的填充层（目标站 bg3） */
  --bg: #103d3b;
  --bg-white: #15302b;
  --bg-light: #14312c;
  --bg-elev: #1c3f33;
  --bg-modal: #15302b;
  --border: rgba(255, 255, 255, 0.14);
  --border-mid: rgba(255, 255, 255, 0.28);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 12px 24px rgba(0, 0, 0, 0.35);
  --score-green: #10b981;
  --art-blue: #fef08a;
  --topbar-h: 58px;
  --page-pad: 20px;
  --gap-panel: 24px;
  --gap-section: 24px;
  --max-w: 1340px;
}

/* 目标站实测：内容容器固定 max-width 1340（含左右 20px 内距），≤768 内距收为 12px */
@media (max-width: 767px) {
  :root {
    --page-pad: 12px;
    --topbar-h: 0px;
  }
}

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

.mac-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  /* 挡首页头图 100vw 破格带出的水平滚动；放 body 而非 .gy-page-shell，避免 sticky header 失效 */
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

/* 页面底纹：目标站同款 42px 网格线叠 135° 渐层（固定、不拦截点击） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #103d3b 0%, #14312c 45%, #4c5128 100%);
  background-size: 42px 42px, 42px 42px, 100% 100%;
}

/* 只留入口、暂无功能的链接（如忘记密码）：不显示手型与 hover 效果 */
a[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: url(../img/load.gif) no-repeat center/cover, var(--bg-elev);
}

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

.gy-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* 让出固定的顶栏；首页/频道页头图用负外距叠回顶栏之下（见 .gy-hero） */
  padding: var(--topbar-h) 0 0;
}

/* 排除 sr-only（否则会盖掉它的 1px 宽、撑出水平滚动条）；:where 让权重维持一个 class，不压过顶栏自己的宽度 */
.gy-page-shell > :where(:not(.gy-sr-only)) {
  width: 100%;
  min-width: 0;
}

/* ===== HEADER：顶部横向导览（比照目标站：页面顶端透明，滚动后白底） ===== */
.gy-site-header {
  --hdr-fg: var(--text);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1002;
  height: var(--topbar-h);
  color: var(--hdr-fg);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* 叠在头图上的页面（首页、分类频道页）：未滚动时文字改白色；header.js 滚动后加 .is-scrolled 变白底 */
.gy-site-header.gy-header--hero {
  --hdr-fg: #fff;
}

/* 非头图页与滚动后：目标站内页顶栏＝卡片底色＋底边框＋阴影 */
.gy-site-header.is-scrolled,
.gy-site-header:not(.gy-header--hero) {
  --hdr-fg: var(--text);
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
  box-shadow: var(--shadow);
  text-shadow: none;
}

/* 顶栏内容区（照目标站）：最大宽度与全站内容区一致、居中，内距 10px×20px，58px 高；
   左 logo → 导览（撑满剩余宽度）→ 搜索 → 功能钮 */
.gy-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 10px var(--page-pad);
}

.gy-topbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 112px;
  height: 100%;
}

.gy-brand-block.gy-logo {
  display: block;
  width: 100%;
  height: 32px;
  overflow: hidden;
}

.gy-topnav {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.gy-topnav::-webkit-scrollbar {
  display: none;
}

.gy-topnav-list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 导览项：14px/600 圆角 8 的块，hover／现役项＝主色字＋淡主色底（目标站，不再用底线） */
.gy-topnav-link {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.gy-topnav-link:hover,
.gy-topnav-link.gy-active {
  background: var(--accent-light);
  color: var(--accent);
}

/* 首页／频道页顶端（透明叠在头图上）：导览字白色 85%，hover／现役保留淡底 */
.gy-site-header:not(.is-scrolled).gy-header--hero .gy-topnav-link {
  color: rgba(255, 255, 255, 0.85);
}

.gy-site-header:not(.is-scrolled).gy-header--hero .gy-topnav-link:hover,
.gy-site-header:not(.is-scrolled).gy-header--hero .gy-topnav-link.gy-active {
  background: var(--accent-light);
  color: #fff;
}

/* ── 搜索：输入框与主色「搜索」钮相连（目标站：输入 160 宽、左圆角 8，按钮右圆角 8） ── */
.gy-search-box {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  color: var(--text);
  text-shadow: none;
}

.gy-search-box input {
  width: 280px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.gy-search-box input:focus {
  border-color: var(--accent);
}

.gy-search-box input::placeholder {
  color: var(--text-weak);
}

.gy-search-submit-btn {
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.gy-search-submit-btn:hover {
  background: var(--accent-hover);
}

/* 首页／频道页顶端：输入框半透明白底，对齐目标站首页顶栏 */
.gy-site-header:not(.is-scrolled).gy-header--hero .gy-search-box input {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.gy-site-header:not(.is-scrolled).gy-header--hero .gy-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ── 功能钮：38px 描边方钮（目标站右侧主题／广告钮写法）；登入是主色实底 ── */
.gy-header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gy-header-actions .gy-ha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.gy-header-actions .gy-ha-btn .mac-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.gy-header-actions .gy-ha-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.gy-site-header:not(.is-scrolled).gy-header--hero .gy-ha-btn {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.gy-site-header:not(.is-scrolled).gy-header--hero .gy-ha-btn:hover {
  border-color: var(--accent);
  color: var(--on-accent);
}

.gy-header-actions .gy-ha-btn--pill {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.gy-header-actions .gy-ha-btn--pill .mac-icon {
  display: none;
}

.gy-header-actions .gy-ha-btn--pill:hover,
.gy-site-header:not(.is-scrolled).gy-header--hero .gy-ha-btn--pill,
.gy-site-header:not(.is-scrolled).gy-header--hero .gy-ha-btn--pill:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.gy-header-actions .gy-ha-btn--pill:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* 搜索图示钮只在手机出现 */
.gy-ha-search-li {
  display: none;
}

/* 窄桌机（1025–1280）：搜索框取中等宽度，免得把导览挤到被截 */
@media (min-width: 1025px) and (max-width: 1280px) {
  .gy-search-box input {
    width: 200px;
  }
}

/* 平板：搜索框收窄、观看记录只留图示 */
@media (min-width: 768px) and (max-width: 1024px) {
  .gy-topbar {
    gap: 10px;
  }

  .gy-topbar-brand {
    width: 92px;
  }

  .gy-topnav-link {
    padding: 0 12px;
  }

  .gy-search-box input {
    width: 170px;
  }

  .gy-header-actions .gy-ha-btn--text {
    width: 38px;
    padding: 0;
  }

  .gy-header-actions .gy-ha-btn--text span {
    display: none;
  }
}

/* 手机（照目标站：单列 logo｜可横向滑动的导览｜功能钮；顶栏不透明、不叠头图）。
   目标站手机版没有搜索框，但规范强制18.2 要求各装置都要有搜索，所以搜索收在图示钮后面，点开才露出一列 */
@media (max-width: 767px) {
  .gy-page-shell {
    padding-top: 0;
  }

  .gy-site-header,
  .gy-site-header.gy-header--hero {
    --hdr-fg: var(--text);
    position: sticky;
    top: 0;
    z-index: 1002;
    height: auto;
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
    box-shadow: var(--shadow);
    text-shadow: none;
  }

  .gy-topbar {
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    padding: 8px 10px;
  }

  .gy-topbar-brand {
    width: 64px;
    height: 34px;
  }

  .gy-topnav-link,
  .gy-site-header:not(.is-scrolled).gy-header--hero .gy-topnav-link {
    height: 34px;
    padding: 0 8px;
    color: var(--text-muted);
    font-size: 12px;
  }

  .gy-site-header:not(.is-scrolled).gy-header--hero .gy-topnav-link:hover,
  .gy-site-header:not(.is-scrolled).gy-header--hero .gy-topnav-link.gy-active {
    color: var(--accent);
  }

  .gy-header-actions {
    gap: 6px;
  }

  .gy-header-actions .gy-ha-btn,
  .gy-site-header:not(.is-scrolled).gy-header--hero .gy-ha-btn {
    height: 34px;
    padding: 0 10px;
    border-color: var(--border);
    color: var(--text);
    font-size: 12px;
  }

  .gy-header-actions .gy-ha-btn--text,
  .gy-header-actions .gy-ha-btn--icon {
    width: 34px;
    padding: 0;
  }

  .gy-header-actions .gy-ha-btn--text span {
    display: none;
  }

  .gy-header-actions .gy-ha-btn--pill,
  .gy-site-header:not(.is-scrolled).gy-header--hero .gy-ha-btn--pill {
    border-color: var(--accent);
    color: var(--on-accent);
  }

  /* 登录钮手机只留图示 */
  .gy-header-actions .gy-ha-btn--pill {
    width: 34px;
    padding: 0;
  }

  .gy-header-actions .gy-ha-btn--pill .mac-icon {
    display: block;
  }

  .gy-header-actions .gy-ha-btn--pill span {
    display: none;
  }

  .gy-ha-search-li {
    display: block;
  }

  /* 搜索列：默认收起，点搜索图示钮（header.js 加 .is-search-open）后露出，独占一列 */
  .gy-search-box {
    display: none;
    order: 5;
    flex: 0 0 100%;
  }

  .gy-site-header.is-search-open .gy-search-box {
    display: flex;
  }

  .gy-search-box input,
  .gy-site-header:not(.is-scrolled).gy-header--hero .gy-search-box input {
    flex: 1;
    width: auto;
    min-width: 0;
    border-color: var(--border);
    background: var(--bg-elev);
    color: var(--text);
  }

  .gy-search-box input::placeholder,
  .gy-site-header:not(.is-scrolled).gy-header--hero .gy-search-box input::placeholder {
    color: var(--text-weak);
  }

  .gy-search-panel {
    left: 0;
    right: 0;
    width: auto;
  }
}

/* ===== 搜索下拉面板：历史搜索（localStorage）+ 热门搜索 ===== */
.gy-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 12px 14px;
  z-index: 20;
}
.gy-search-panel[hidden] { display: none; }

.gy-sp-block + .gy-sp-block { margin-top: 12px; }

.gy-sp-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.gy-sp-clear {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.gy-sp-clear:hover { color: var(--accent); }

/* 序列式列表：一行一条，左侧序号（见 skill 强制18.2，不做横排胶囊/标签云） */
.gy-sp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gy-sp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: none;
  border-radius: var(--radius);
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.gy-sp-item:hover { background: var(--bg-elev); }
.gy-sp-num {
  min-width: 14px;
  font-size: 11px;
  color: var(--text-muted);
}

/* 热门搜索前三名比照榜单名次配色（黄／银／铜）；
   历史搜索是使用者自己的搜寻纪录（按时间新到旧排序，非热度排名），不套用此配色 */
[data-hot-list] li:nth-child(1) .gy-sp-num { color: var(--accent); }
[data-hot-list] li:nth-child(2) .gy-sp-num { color: #cbd5e1; }
[data-hot-list] li:nth-child(3) .gy-sp-num { color: #d6a36b; }
.gy-sp-word {
  font-size: 13px;
  color: var(--text-light);
  transition: color 0.15s;
}
.gy-sp-item:hover .gy-sp-word { color: var(--accent); }

/* 页面内容区：左右留白用 --page-pad；带头图的页面（首页、分类频道页）加 --hero 修饰，头图全幅、其余内容放进 .gy-home-body */
.gy-home-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px var(--page-pad) 20px;
}

.gy-home-content--hero {
  max-width: none;
  padding: 0;
}

.gy-home-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad) 20px;
}

/* ===== 热播推荐：面板内横向滚动列（目标站「精选推荐」面板） ===== */
.gy-hot-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
}

.gy-hscroll {
  position: relative;
}

/* 桌机／平板 6 栏（§11 平板同桌机），手机 3 栏 */
.gy-vod-grid.gy-hot-track {
  display: flex;
  gap: 16px;
  padding: 6px 0 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gy-hot-track::-webkit-scrollbar {
  display: none;
}

.gy-hot-track > .gy-vod-card {
  flex: 0 0 calc((100% - 80px) / 6);
  scroll-snap-align: start;
}

/* 滚动列会裁掉 hover 浮层（强制11.8），本区块不用浮层 */
.gy-hot-track .hover-popout {
  display: none !important;
}

.gy-hscroll-btn {
  position: absolute;
  top: 40%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 16px;
  opacity: 0.85;
  transition: color 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
}

.gy-hscroll-btn[hidden] {
  display: none;
}

.gy-hscroll-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  opacity: 1;
}

.gy-hscroll-btn--prev {
  left: -14px;
}

.gy-hscroll-btn--next {
  right: -14px;
}

@media (max-width: 767px) {
  .gy-hot-panel {
    padding: 14px 12px;
  }

  .gy-vod-grid.gy-hot-track {
    gap: 10px;
  }

  .gy-hot-track > .gy-vod-card {
    flex-basis: calc((100% - 20px) / 3);
  }

  .gy-hscroll-btn {
    display: none;
  }

  .gy-hot-track .gy-vod-sub {
    display: none;
  }
}

/* ===== 分类区块日排行（index.md 强制2.3）：桌面态快捷导览，移动端隐藏 ===== */
.sh-dayrank {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 20px;
  padding: 0 0 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.sh-dayrank::-webkit-scrollbar {
  display: none;
}

.sh-dayrank li {
  flex-shrink: 0;
  white-space: nowrap;
}

.sh-dayrank a {
  font-size: 12px;
  color: var(--text-muted);
}

.sh-dayrank a:hover {
  color: var(--accent);
}

@media (max-width: 767px) {
  .sh-dayrank {
    display: none;
  }
}

/* ===== 榜单（排行榜页、资讯侧栏、日排行条共用；名次用 CSS 计数器，模板内不分支） ===== */
.gy-rank-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow);
}

.gy-rank-card-hd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.gy-rank-card-title {
  position: relative;
  margin: 0;
  padding-left: 12px;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.gy-rank-card-title::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.gy-rank-card-sub {
  color: var(--text-weak);
  font-size: 12px;
}

.gy-rank-card-more {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  color: var(--text-weak);
  font-size: 12px;
  transition: color 0.2s;
}

.gy-rank-card-more:hover {
  color: var(--accent);
}

.gy-rank-empty {
  margin: 0;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* ===== 榜单行 ===== */
.gy-rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rk;
}

.gy-rank-item {
  position: relative;
  counter-increment: rk;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gy-rank-item:last-child {
  border-bottom: none;
}

.gy-rank-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  transition: background 0.15s;
}

.gy-rank-link:hover {
  background: var(--bg-elev);
}

/* 名次徽章：圆形，计数器写数字；1 黄色实心、2 银色描边、3 铜色描边、4 起灰色数字 */
.gy-rank-link::before,
.sh-dayrank a::before {
  content: counter(rk);
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--text-weak);
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
}

.gy-rank-item:nth-child(1) .gy-rank-link::before,
.sh-dayrank li:nth-child(1) a::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  color: var(--on-accent);
}

.gy-rank-item:nth-child(2) .gy-rank-link::before,
.sh-dayrank li:nth-child(2) a::before {
  box-shadow: inset 0 0 0 1.5px #cbd5e1;
  color: #cbd5e1;
}

.gy-rank-item:nth-child(3) .gy-rank-link::before,
.sh-dayrank li:nth-child(3) a::before {
  box-shadow: inset 0 0 0 1.5px #d6a36b;
  color: #d6a36b;
}

.gy-rank-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.gy-rank-name {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.gy-rank-link:hover .gy-rank-name {
  color: var(--accent);
}

.gy-rank-hot {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

/* 榜首行：淡黄渐层底、海报缩图、名字加粗放大 */
.gy-rank-item:nth-child(1) .gy-rank-link {
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  background: linear-gradient(90deg, rgba(254, 240, 138, 0.12), rgba(254, 240, 138, 0));
}

.gy-rank-item:nth-child(1) .gy-rank-name {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.gy-rank-thumb {
  flex-shrink: 0;
  width: 46px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-elev);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.gy-rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 资讯侧栏的榜卡标题行与「推荐阅读」对齐 */
.gy-art-side-rank .gy-rank-card-hd {
  padding: 14px 18px;
}

/* 日排行条：名次徽章与榜单行同一套（共用上面的 ::before 与前三名配色），只缩小尺寸、横排 */
.sh-dayrank {
  counter-reset: rk;
}

.sh-dayrank li {
  counter-increment: rk;
}

.sh-dayrank a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sh-dayrank a::before {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.sh-dayrank li:nth-child(1) a {
  color: var(--accent);
  font-weight: 700;
}

/* ===== 选集列表（widget/playlist，详情/播放页共用）：照目标站「播放源」面板——顶部来源页签（文件夹式），下方 6 栏选集按钮 ===== */
.gy-playlist .gy-module-hd {
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 0;
  padding: 14px 16px 0;
}

/* 提高一级权重：面板里通用的 .gy-vd-panel .gy-module-hd 会补 margin-bottom，这里要保持 0（需求方 2026-10-21） */
.gy-playlist .gy-module-hd.gy-playlist-hd {
  min-height: 0;
  margin-bottom: 0;
}

.gy-playlist .gy-module-title {
  align-self: center;
  margin-right: auto;
  font-size: 18px;
}

.gy-playlist-sort {
  display: inline-flex;
  order: 2;
  align-items: center;
  gap: 4px;
  align-self: center;
  margin-left: auto;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.gy-playlist-sort:hover,
.gy-playlist-sort[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.gy-playlist-sources {
  display: flex;
  order: 1;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.gy-playlist-sources::-webkit-scrollbar {
  display: none;
}

.gy-playlist-sources > li {
  flex-shrink: 0;
}

.gy-source-tab,
.gy-down-src-tab {
  position: relative;
  flex-shrink: 0;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s;
}

.gy-source-tab:hover,
.gy-down-src-tab:hover {
  color: var(--text);
}

.gy-source-tab.gy-active,
.gy-down-src-tab.gy-active {
  border-bottom: 2px solid var(--accent);
  background: var(--bg-white);
  color: var(--accent);
}

.gy-source-count {
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
}

.gy-playlist-empty {
  margin: 12px 16px 16px;
  padding: 24px 0;
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.gy-playlist-panel {
  display: none;
  padding: 12px 16px 16px;
}

.gy-playlist-panel.gy-active {
  display: block;
}

/* 超过 380px 在框内滚动（不用展开按钮） */
.gy-playlist-episodes-wrap {
  max-height: 380px;
  padding-right: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--border-mid) transparent;
  scrollbar-width: thin;
}

.gy-playlist-episodes-wrap::-webkit-scrollbar {
  width: 5px;
}

.gy-playlist-episodes-wrap::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: var(--border-mid);
}

.gy-playlist-episodes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

/* li 只做列表语义，让集数按钮撑满格子 */
.gy-playlist-episodes > li {
  display: grid;
  min-width: 0;
}

/* 长集名换行，不用省略号吞掉（强制8.2） */
.gy-episode {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  transition: color 0.2s, border-color 0.2s;
}

.gy-episode:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gy-episode.gy-active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-light);
  color: var(--on-accent);
  font-weight: 700;
}

.gy-playlist-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 15px;
  padding: 8px 0;
  border: none;
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}

.gy-playlist-more:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent);
}

.gy-playlist-more[hidden] {
  display: none;
}

.gy-playlist-more[aria-expanded="true"] .mac-icon {
  transform: rotate(180deg);
}

@media (max-width: 1024px) {
  .gy-playlist-episodes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 手机：来源页签换到下一行、可横向滑动（强制8.3） */
@media (max-width: 767px) {
  .gy-playlist .gy-module-hd {
    padding: 10px 12px 0;
  }

  .gy-playlist-sources {
    order: 3;
    width: 100%;
    margin-top: 10px;
  }

  .gy-source-tab,
  .gy-down-src-tab {
    padding: 6px 12px;
    font-size: 12px;
  }

  .gy-playlist-panel {
    padding: 10px 12px 12px;
  }

  .gy-playlist-episodes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gy-episode {
    padding: 8px 6px;
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  .gy-playlist-episodes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== 热点资讯 ===== */
.gy-news-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.gy-news-card {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  border-top: 2px solid var(--accent);
}

.gy-news-card a {
  display: block;
}

.gy-news-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  margin: 0;
  background: var(--bg-light) url('../img/load.gif') no-repeat center center;
  background-size: cover;
}

.gy-news-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gy-news-title-wrap {
  box-sizing: border-box;
  padding: 8px 10px 10px;
  /* max-height 用 border-box 计算（含 padding），精确等于 padding(8+10=18px) + 内容2行高度(12px*1.5*2=36px)，
     不依赖 -webkit-line-clamp 单独计算行数，避免不同浏览器对多行截断支援度不一致时内容溢出 */
  max-height: 54px;
  overflow: hidden;
}

.gy-news-card h3 {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
}

/* ===== 影片卡片通用 ===== */

.gy-vod-card {
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* 目标站卡片：带边框的整卡（封面＋资讯区），hover 上浮、边框转主色；圆角裁切放在链接上，浮层是链接的兄弟节点不受影响 */
.gy-vod-card > a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.22, 0.1, 0.22, 1), border-color 0.25s, box-shadow 0.25s;
}

/* hover 详情由 widget/vod_card_popout 浮层呈现（skill 强制15） */
@media (hover: hover) and (pointer: fine) {
  .gy-vod-card:hover {
    z-index: 50;
  }
}

/* 封面 2:3（目标站实测） */
.gy-vod-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  margin: 0;
  background: var(--bg-elev) url('../img/load.gif') no-repeat center center;
  background-size: cover;
}

.gy-vod-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

/* 平板／手机每排 6／3 张，卡片很窄，2:3 的海报会显得瘦长；改 3:4 让整排更协调（封面 object-fit: cover，只是少裁一点上下） */
@media (max-width: 1024px) {
  .gy-vod-thumb {
    aspect-ratio: 3 / 4;
  }
}

.gy-vod-remarks {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  max-width: calc(100% - 12px);
  padding: 3px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gy-vod-info {
  display: block;
  min-width: 0;
  padding: 10px 12px 12px;
}

/* 平板／手机卡片窄，资讯区内距缩小（写在基础规则之后才不会被盖掉） */
@media (max-width: 1024px) {
  .gy-vod-info {
    padding: 8px 8px 9px;
  }
}

.gy-vod-name {
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.gy-vod-sub {
  margin-top: 4px;
  overflow: hidden;
  color: var(--text-weak);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ===== 影片卡片 hover 详情浮层（skill 强制15，样板 tp17/tp13）===== */
/* 边缘翻转 pop-left/pop-right 由 vod_card.js 在 mouseenter 时判定 */
.hover-popout {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 60;
  /* 至少比卡片大一圈：直版大卡时固定 300px 会比卡片还小 */
  width: max(300px, calc(100% + 40px));
  min-height: calc(100% + 30px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  /* 浮层会盖住卡片本身的黄框，所以只用柔和黄色光晕延续，不画框线 */
  box-shadow: 0 0 24px var(--accent-light), 0 10px 40px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%) scale(0.6667);
  transform-origin: center center;
}

.hover-popout.pop-left {
  left: 0;
  transform: translate(0, -50%) scale(0.6667);
  transform-origin: left center;
}

.hover-popout.pop-right {
  left: auto;
  right: 0;
  transform: translate(0, -50%) scale(0.6667);
  transform-origin: right center;
}

@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .gy-vod-card:hover .hover-popout {
    display: flex;
    flex-direction: column;
    visibility: visible;
    pointer-events: auto;
    animation: popoutIn 0.25s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.15s;
  }

  .gy-vod-card:hover .hover-popout.pop-left {
    animation-name: popoutInLeft;
  }

  .gy-vod-card:hover .hover-popout.pop-right {
    animation-name: popoutInRight;
  }
}

@keyframes popoutIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.6667); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes popoutInLeft {
  from { opacity: 0; transform: translate(0, -50%) scale(0.6667); }
  to { opacity: 1; transform: translate(0, -50%) scale(1); }
}

@keyframes popoutInRight {
  from { opacity: 0; transform: translate(0, -50%) scale(0.6667); }
  to { opacity: 1; transform: translate(0, -50%) scale(1); }
}

.popout-inner {
  position: relative;
  flex: 1;
  padding-bottom: 14px;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
}

.hover-popout .popout-cover {
  position: relative;
  display: block;
  flex-grow: 1;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elev);
}

.popout-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popout-cover-shadow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  background: linear-gradient(rgba(0, 0, 0, 0), var(--bg-white));
}

.popout-title-wrap {
  position: relative;
  margin-top: -30px;
  padding: 0 14px;
}

.popout-title {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.popout-mix {
  padding: 10px 14px 0;
}

.popout-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: hidden;
}

.popout-tag {
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius);
  font-size: 11px;
  line-height: 20px;
  white-space: nowrap;
}

.popout-tag--year {
  flex-shrink: 0;
  color: var(--on-accent);
  background: var(--accent);
  font-weight: 700;
}

.popout-tag--main {
  color: var(--accent);
  background: var(--accent-light);
}

.popout-tag--grey {
  color: var(--text-light);
  background: var(--bg-elev);
}

.popout-tag--plain {
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
}

.popout-label {
  color: var(--text-muted);
}

.popout-actor {
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.popout-desc {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.popout-score {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px 0;
  color: var(--text);
  font-size: 12px;
}

.popout-score .mac-icon,
.popout-score .score-num {
  color: #ffb200;
}

.popout-score .score-num {
  font-weight: 700;
}

/* ===== 首页（比照目标站：轮播 → 正在热映 → 分类区块 → 排行榜） ===== */

/* 头图轮播：widget/home_hero（首页与分类频道页共用），home_hero.js 选取 data-hero-*；
   全幅叠在顶栏之下，缩图列即分页（目标站写法） */
.gy-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 400px;
  margin: calc(-1 * var(--topbar-h)) 0 var(--gap-section);
  overflow: hidden;
  /* 允许浏览器处理上下滚动，横向手势交给 home_hero.js 的滑动切换 */
  touch-action: pan-y;
}

/* 切换用淡入淡出（目标站做法）：各张叠在一起，当前张 opacity 1；隐藏的张延迟到淡出结束才 visibility:hidden */
.gy-hero-track {
  position: relative;
  height: 100%;
}

.gy-hero-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

/* JS 尚未接手前（或没有 JS）先显示第一张，避免头图空白 */
.gy-hero-track:not(.is-ready) .gy-hero-slide:first-child {
  z-index: 1;
  visibility: visible;
  opacity: 1;
}

.gy-hero-slide.gy-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

/* 上方压暗保证白色顶栏文字可读；右下压暗保证简介文字可读 */
.gy-hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 140px),
    radial-gradient(ellipse at 85% 70%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}

/* 图片与压暗层一起向底部淡出，透出页面底纹，不再用纯色遮罩接底 */
.gy-hero-bg,
.gy-hero-slide::before {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 140px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 140px), transparent);
}

.gy-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.gy-hero-info {
  position: absolute;
  /* 56px 让出右箭头，再往内收 6% 屏宽，不贴着右缘 */
  right: calc(var(--page-pad) + 56px + 6%);
  top: calc(50% + var(--topbar-h) / 2);
  z-index: 2;
  width: min(460px, 42%);
  transform: translateY(-50%);
  color: #fff;
  text-align: right;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.gy-hero-title {
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gy-hero-title a {
  color: #fff;
}

.gy-hero-remarks,
.gy-hero-blurb {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.gy-hero-remarks {
  margin-bottom: 4px;
}

.gy-hero-blurb {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.gy-hero-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  margin-top: 14px;
  padding: 0 22px 0 16px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 500;
  text-shadow: none;
  transition: background 0.2s;
}

.gy-hero-play:hover {
  background: var(--accent-hover);
}

/* 分页点＋左右箭头（目标站轮播写法）：由 home_hero.js 生成，只有一张时不显示 */
.gy-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gy-hero-dot {
  display: block;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.3s, background 0.3s, box-shadow 0.3s;
}

.gy-hero-dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.gy-hero-dot.gy-active {
  width: 24px;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-light);
}

.gy-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(21, 48, 43, 0.7);
  color: var(--text);
  font-size: 20px;
  opacity: 0.7;
  transform: translateY(-50%);
  transition: opacity 0.2s, color 0.2s, background 0.2s, border-color 0.2s;
}

.gy-hero-arrow:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  opacity: 1;
}

.gy-hero-arrow--prev {
  left: var(--page-pad);
}

.gy-hero-arrow--next {
  right: var(--page-pad);
}

@media (max-width: 767px) {
  .gy-hero-arrow {
    display: none;
  }

  .gy-hero-dots {
    bottom: 12px;
  }
}

@media (max-width: 1024px) {
  .gy-hero {
    height: clamp(420px, 56vw, 560px);
    margin-bottom: var(--gap-section);
  }

  .gy-hero-title {
    font-size: 30px;
  }

  /* 平板屏窄，不再额外内收，回到只让出右箭头的位置 */
  .gy-hero-info {
    right: calc(var(--page-pad) + 56px);
    width: min(380px, 56%);
  }
}

/* 手机：顶栏不叠在头图上（见 HEADER 手机段），头图回到顶栏下方 */
@media (max-width: 767px) {
  .gy-hero {
    height: 56vw;
    min-height: 240px;
    margin-top: 0;
    margin-bottom: 24px;
  }

  .gy-hero-slide::before {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
  }

  .gy-hero-info {
    right: calc(var(--page-pad) + 8%);
    top: 50%;
    bottom: auto;
    width: min(240px, 62%);
  }

  .gy-hero-title {
    margin-bottom: 0;
    font-size: 18px;
  }

  .gy-hero-remarks {
    display: none;
  }

  .gy-hero-blurb {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
  }

  .gy-hero-play {
    height: 30px;
    margin-top: 6px;
    padding: 0 14px 0 10px;
    font-size: 13px;
  }
}

/* 区块（module）：标题 + 右侧 tab 或「查看全部」 */
.gy-module {
  margin-bottom: var(--gap-section);
}

.gy-module-hd {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 16px;
}

.gy-module-title {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
}

/* 标题左侧主色竖条（目标站实测 5×24） */
.gy-module-title::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 24px;
  border-radius: 2px;
  background: var(--accent);
}

.gy-module-title a {
  position: relative;
  z-index: 1;
  color: inherit;
}

.gy-module-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  color: var(--text-weak);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.gy-module-more:hover {
  color: var(--accent);
}

/* 影片卡网格：桌机/平板 6 栏、手机 3 栏（§12.1） */
.gy-vod-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gy-vod-grid[hidden] {
  display: none;
}

/* 筛选页标题：照目标站分类标题（22px／800），不加装饰 */
.gy-show-title {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

/* 分类页子分类晶片（目标站分类页的「分类：」一排）：全部＋各子分类，当前页为主色实底 */
.gy-type-chips {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.gy-type-chips-label {
  flex-shrink: 0;
  padding-top: 5px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.gy-type-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gy-type-chips-list a {
  display: block;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
}

.gy-type-chips-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gy-type-chips-list a.gy-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

@media (max-width: 767px) {
  .gy-type-chips {
    gap: 10px;
  }

  /* 手机：晶片单排横向滑动，不换行成多排 */
  .gy-type-chips-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .gy-type-chips-list::-webkit-scrollbar {
    display: none;
  }

  .gy-type-chips-list li {
    flex-shrink: 0;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .gy-module-title {
    font-size: 24px;
  }

  /* 平板卡片间距与手机版相同（需求方指定，不比照目标站的 18px 15px） */
  .gy-vod-grid {
    gap: 15px 10px;
  }
}

@media (max-width: 767px) {




  .gy-module {
    margin-bottom: var(--gap-section);
  }

  .gy-module-hd {
    margin-bottom: 15px;
  }

  .gy-module-title {
    font-size: 20px;
  }

  .gy-vod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .gy-vod-remarks {
    font-size: 10px;
  }
}

/* ===== 资讯分类导览（art/type、art/detail 共用）：卡片面板——左侧主色竖条＋大标题＋统计，右侧底线式子分类页签 ===== */
.gy-art-tabs {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 0 var(--gap-panel);
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

/* 右侧斜向光带装饰（需求方选定方案 2）：几条倾斜的半透明黄／青色带，压在内容之下，不含文字 */
.gy-art-tabs::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 45%;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100' preserveAspectRatio='none'><polygon points='300,0 300,100 190,100 250,0' fill='%23fef08a' fill-opacity='.07'/><polygon points='300,0 300,100 235,100 285,0' fill='%23fef08a' fill-opacity='.1'/><polygon points='300,0 300,100 270,100 300,0' fill='%2399f6e4' fill-opacity='.1'/><polygon points='160,100 190,100 250,0 220,0' fill='%2399f6e4' fill-opacity='.05'/></svg>") no-repeat right bottom / 100% 100%;
  pointer-events: none;
}

.gy-art-tabs-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-left: 17px;
}

/* 竖条覆盖整个标题块的高度 */
.gy-art-tabs-head::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 5px;
  border-radius: 2px;
  background: var(--accent);
}

.gy-art-tabs-kicker {
  color: var(--text-weak);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* 在子分类时，小字是可点回的一级分类 */
.gy-art-tabs-kicker--link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.gy-art-tabs-kicker--link:hover {
  color: var(--accent);
}

.gy-art-tabs-title {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.gy-art-tabs-stat {
  color: var(--text-weak);
  font-size: 13px;
}

.gy-art-tabs-list {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.gy-art-tabs-list::-webkit-scrollbar {
  display: none;
}

/* 子分类页签：底线式，选中是主色字＋主色底线 */
.gy-art-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.gy-art-tab:hover {
  color: var(--accent);
}

.gy-art-tab.gy-active {
  border-bottom-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 767px) {
  .gy-art-tabs {
    align-items: stretch;
    padding: 14px 16px;
  }

  .gy-art-tabs-head {
    padding-left: 14px;
  }

  .gy-art-tabs-title {
    font-size: 20px;
  }

  .gy-art-tabs-list {
    width: 100%;
  }
}

.gy-art-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: var(--gap-panel);
}

.gy-art-content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-panel);
  min-width: 0;
}

.gy-art-side {
  display: flex;
  flex-direction: column;
  gap: var(--gap-panel);
  min-width: 0;
}

.gy-art-side-block {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow);
}

.gy-art-side-title {
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 30px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.gy-art-side-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--art-blue);
  transform: translateY(-50%);
}

/* 侧栏 <1200px 改接在内容下方 */
@media (max-width: 1199px) {
  .gy-art-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.gy-art-sb-read-list {
  margin: 0;
  padding: 6px 0;
}

.gy-art-sb-read-item {
  border-bottom: 1px solid var(--border);
}

.gy-art-sb-read-item:last-child {
  border-bottom: none;
}

.gy-art-sb-read-item a {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  align-items: flex-start;
  transition: background 0.15s;
}

.gy-art-sb-read-item a:hover {
  background: var(--bg-elev);
}

.gy-art-sb-read-thumb {
  width: 72px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
}

.gy-art-sb-read-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gy-art-sb-read-info {
  flex: 1;
  min-width: 0;
}

.gy-art-sb-read-title {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 4px;
}

.gy-art-sb-read-item:hover .gy-art-sb-read-title {
  color: var(--accent);
}

.gy-art-sb-read-cat {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ===== 专题卡（widget/topic_card，首页与专题列表页共用）：16:9 封面，片名与简介叠在底部渐层上 ===== */
.gy-topic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gy-topic-card {
  min-width: 0;
}

.gy-topic-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.gy-topic-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gy-topic-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

.gy-topic-count {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
}

.gy-topic-content {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  color: #fff;
}

.gy-topic-name {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.gy-topic-blurb {
  margin: 2px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 平板降为 3 栏 */
@media (max-width: 1024px) {
  .gy-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px 10px;
  }
}

/* 手机 2 栏 */
@media (max-width: 767px) {
  .gy-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gy-topic-blurb {
    display: none;
  }
}

/* ===== 友情链接（首页底部，目标站：顶部 2px 分隔线、标题压在线上） ===== */
.gy-friend-links {
  position: relative;
  margin-top: 20px;
  padding: 25px 0 15px;
  border-top: 2px solid var(--border);
}

.gy-friend-links-title {
  position: absolute;
  left: 0;
  top: -13px;
  margin: 0;
  padding-right: 15px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.gy-friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gy-friend-links-list a {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 14px;
}

.gy-friend-links-list a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.gy-site-footer {
  margin-top: auto;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
}

.gy-site-footer p,
.gy-site-footer address {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 2;
  font-style: normal;
}

.gy-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.gy-footer-links a {
  font-size: 12px;
  color: var(--text-muted);
}

.gy-footer-links a:hover {
  color: var(--accent);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ===== Hover 渐暗效果 ===== */
.gy-news-card,
.gy-vod-card {
  cursor: pointer;
}

@keyframes catMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 通用分页（widget/pagination 全站共用） ===== */
.gy-pagination {
  padding: 15px 0;
}

.gy-pagination-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gy-page-btn,
.gy-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 14px;
  transition: color 0.15s, background 0.15s;
}

.gy-page-btn {
  padding: 0 18px;
}

.gy-page-btn:hover,
.gy-page-num:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent-tab);
}

.gy-page-num.gy-active {
  background: var(--accent-tab);
  color: var(--on-accent);
  font-weight: 700;
}

.gy-page-num.gy-active:hover {
  box-shadow: none;
  color: var(--on-accent);
}

/* ===== RWD ===== */

/* ── 平板 768px ~ 1024px ── */
@media (max-width: 1024px) {
  .gy-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── 手机 < 768px ── */
/* ── 小手机 < 480px ── */
@media (max-width: 479px) {
  .gy-vod-name {
    font-size: 14px;
  }
}

/* ===== 共用评论元件 ===== */
.gy-comment-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.gy-cmt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.gy-cmt-title { font-size: 14px; font-weight: 600; color: var(--text); }
.gy-cmt-count { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.gy-cmt-count em { color: var(--accent); font-style: normal; font-weight: 600; }

.gy-cmt-ajax-wrap { min-height: 60px; }
/* 覆写全站共用 home.css 里 .mac_comment 的写死白底/浅蓝边框（class 为 JS 挂钩须保留） */
.gy-comment-section .mac_comment {
  background: transparent;
  border-color: var(--border);
}
.gy-cmt-loading {
  font-size: 13px;
  color: var(--text-muted);
  padding: 24px 0;
  text-align: center;
}
.gy-cmt-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* 评论列表 */
.gy-cmt-list { margin: 0 0 12px; padding: 0; }
.gy-cmt-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.gy-cmt-item:last-child { border-bottom: none; }
.gy-cmt-item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.gy-cmt-item-user { font-size: 13px; font-weight: 600; color: var(--text); }
.gy-cmt-item-time { font-size: 11px; color: var(--text-muted); }
.gy-cmt-item-content { font-size: 13px; color: var(--text-light); line-height: 1.7; }
.gy-cmt-item-reply-list {
  display: block;
  /* 缩排：让回复视觉上从属于上方留言，不跟留言本身等宽对齐 */
  margin: 0 0 0 16px;
  padding: 0;
  box-sizing: border-box;
}

.gy-cmt-item-reply {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  background: var(--bg-light);
  border-left: 3px solid var(--accent);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  border-radius: 0 4px 4px 0;
}
.gy-cmt-reply-label { font-weight: 600; color: var(--accent); }
.gy-cmt-item-actions { display: flex; gap: 12px; margin-top: 6px; }
.gy-cmt-action-link {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.gy-cmt-action-link:hover { color: var(--accent); }
.gy-cmt-action-link.disabled { opacity: 0.5; pointer-events: none; }

.gy-cmt-paging {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 0 0;
  list-style: none;
}
.gy-cmt-page-btn {
  padding: 4px 10px;
  background: none;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.gy-cmt-page-btn:hover { border-color: var(--accent); color: var(--accent); }
.gy-cmt-page-btn.gy-is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.gy-cmt-page-btn:disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* 输入表单 */
.gy-cmt-textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  border: 1px solid var(--border-mid);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  resize: none;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  background: var(--bg-light);
  transition: border-color 0.15s, background 0.15s;
}
.gy-cmt-textarea:focus { border-color: var(--accent); background: var(--bg-elev); }
.gy-cmt-textarea:focus + .gy-cmt-form-bar {
  border-color: var(--accent);
  border-top-color: var(--border);
}
.gy-cmt-form-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border-mid);
  border-top: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
  padding: 10px 14px;
  transition: border-color 0.15s;
}
.gy-cmt-chars { font-size: 12px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.gy-cmt-chars em { font-style: normal; color: var(--accent); font-weight: 600; }
.gy-cmt-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.gy-cmt-verify-input {
  width: 88px;
  height: 34px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 0 8px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.gy-cmt-verify-input:focus { border-color: var(--accent); }
.gy-cmt-captcha {
  height: 34px;
  width: auto;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border-mid);
  display: block;
}
.gy-cmt-submit {
  height: 34px;
  padding: 0 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.gy-cmt-submit:hover { background: var(--accent-active); }

@media (max-width: 767px) {
  .gy-comment-section {
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    border-bottom: 8px solid var(--bg-light);
    padding: 14px;
  }
  .gy-cmt-form-bar { flex-wrap: wrap; }
  .gy-cmt-chars { order: 2; }
  .gy-cmt-actions { order: 1; width: 100%; justify-content: flex-end; }
  .gy-cmt-verify-input { width: 80px; }
}

/* ── Login Modal ── */
.gy-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.gy-modal-overlay.gy-is-open { display: flex; }

.gy-modal-box {
  background: var(--bg-modal);
  border-radius: 14px;
  padding: 36px 32px 28px;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.gy-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px;
}
.gy-modal-close:hover { color: var(--text); }

.gy-modal-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 28px;
}

.gy-modal-field { margin-bottom: 20px; }

.gy-modal-label {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.gy-modal-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-mid);
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
}
.gy-modal-input:focus { border-bottom-color: var(--accent); }
.gy-modal-input::placeholder { color: var(--text-muted); }
.gy-modal-verify { display: flex; align-items: center; gap: 10px; }
.gy-modal-verify .gy-modal-input { flex: 1; min-width: 0; }
.gy-modal-captcha { flex-shrink: 0; width: 100px; height: 36px; border-radius: 4px; cursor: pointer; object-fit: contain; }

.gy-modal-submit {
  width: 100%;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}
.gy-modal-submit:hover { background: var(--accent-active); }

@media (max-width: 767px) {
  .gy-modal-submit {
    padding: 10px;
    font-size: 14px;
  }
}

.gy-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.gy-modal-link { color: var(--text-muted); }
.gy-modal-link--accent { color: var(--accent); font-weight: 500; }
.gy-modal-link--accent:hover { text-decoration: underline; }

/* ── 系统弹窗（MAC.Pop，home.js 动态注入，样式写死为白底）覆写为深色风格 ── */
/* 播放器 iframe 自带 z-index:99998，弹窗要盖过它 */
.mac_pop_bg,
.mac_pop_msg_bg {
  z-index: 100000 !important;
  background: rgba(0, 0, 0, 0.55);
}

.mac_pop,
.mac_pop_msg {
  z-index: 100001 !important;
  background-color: var(--bg-modal);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.mac_pop .pop_top {
  border-bottom-color: var(--border);
}

.mac_pop .pop_top h2 {
  color: var(--text);
  font-family: inherit;
}

.mac_pop span.pop_close {
  background: none;
  text-indent: 0;
  font-size: 20px;
  line-height: 23px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.15s;
}
.mac_pop span.pop_close:hover { color: var(--accent); }

.mac_pop .pop-foot {
  border-top-color: var(--border);
}

.mac_pop .pop-ok {
  background-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.mac_pop .pop-cancel {
  background-color: transparent;
  border-color: var(--border-mid);
  color: var(--text);
}

.mac_pop .pop-msg,
.mac_pop_msg .pop-msg {
  color: var(--text);
}

.mac_pop {
  top: 50% !important;
  left: 50% !important;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 32px) !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
}

.mac_pop .pop_content {
  flex: 1 1 auto;
  overflow-y: auto;
}

.mac_pop_msg {
  top: 50% !important;
  left: 50% !important;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, -50%);
  width: auto !important;
  height: auto !important;
  min-width: 120px;
  max-width: min(80vw, 360px);
  padding: 18px 24px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ── MacCMS 内建 history dropdown（文字列表）隐藏，改用自订带图 modal ── */
.mac_history_box { display: none !important; }

/* ── 历史记录 Modal ── */
.gy-hm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gy-hm-overlay.gy-is-open { display: flex; }

.gy-hm-box {
  background: var(--bg-modal);
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.gy-hm-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.gy-hm-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.gy-hm-clear {
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}
.gy-hm-clear:hover { color: var(--accent); }
.gy-hm-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.gy-hm-close:hover { background: var(--border); color: var(--text); }

.gy-hm-body {
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
}
.gy-hm-body::-webkit-scrollbar { width: 4px; }
.gy-hm-body::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }

.gy-hm-card {
  /* 6 per row */
  flex: 0 0 calc((100% - 50px) / 6);
  min-width: 0;
  display: block;
  text-decoration: none;
  color: var(--text);
  align-self: flex-start;
}
.gy-hm-thumb {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg);
  /* 让 img absolute 定位有基准，防止图片撑开 grid row */
  contain: strict;
}
.gy-hm-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gy-hm-name {
  font-size: 11px;
  margin-top: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-light);
  transition: color 0.15s;
}
.gy-hm-empty {
  width: 100%;
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 767px) {
  .gy-hm-box { border-radius: 16px; max-height: 85vh; align-self: center; }
  .gy-hm-overlay { padding: 0 12px; align-items: flex-end; }
  /* 3 per row */
  .gy-hm-card { flex: 0 0 calc((100% - 20px) / 3); }
}

/* ===== 剧情介绍展开/收合（widget/desc_expand）：两段之间留间距（强制7.3），超过 3 行才显示「展开全部」 ===== */
.gy-desc-body {
  position: relative;
  max-height: calc(14px * 1.8 * 3 + 10px);
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.gy-desc-body * {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: inherit !important;
  font-family: inherit !important;
}

.gy-desc-body p {
  margin: 0 0 10px;
}

.gy-desc-body p:last-child {
  margin-bottom: 0;
}

.gy-desc-body.gy-desc-expanded {
  max-height: none;
}

.gy-desc-body.gy-desc-collapsed.gy-desc-has-more::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px;
  background: linear-gradient(rgba(21, 48, 43, 0), var(--bg-white));
  pointer-events: none;
}

.gy-desc-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent-tab);
  font-size: 13px;
  cursor: pointer;
}

/* ===== 漂浮功能按钮 (Floating Action Buttons) ===== */
.gy-fab-group {
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: auto;
}
.gy-fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(254, 240, 138, 0.4), 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  cursor: pointer;
  border: none;
}
.gy-fab-btn:hover {
  background: var(--accent-active);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 28px rgba(254, 240, 138, 0.5), 0 2px 10px rgba(0,0,0,0.16);
}
.gy-fab-btn--top { opacity: 0; pointer-events: none; }
.gy-fab-btn--top.gy-is-visible { opacity: 1; pointer-events: auto; }
.gy-fab-qr-popup {
  position: fixed;
  bottom: 160px;
  right: 24px;
  z-index: 400;
  display: none;
  width: auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  text-align: center;
}
.gy-fab-qr-popup.gy-is-open { display: block; }
.gy-fab-qr-popup p { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.gy-fab-qr-popup img { width: 130px; height: 130px; border-radius: 4px; background: #fff; display: block; }

@media (max-width: 767px) {
  .gy-fab-group { bottom: 76px; right: 14px; }
  .gy-fab-qr-popup { bottom: 146px; right: 14px; }
}
@media (max-width: 1024px) {
  .gy-fab-btn--qr { display: none; }
}

/* ===== 通用 Toast 提示（全站共用：分享复制链接、评分成功等短暂提示）===== */
.gy-rate-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 24px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
}
.gy-rate-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 内页白面板（详情页、播放页共用）：浅灰底上放白面板 ===== */
/* 详情页底色浅灰，内容放白色面板（目标站：#F1F2F3 底、白面板、圆角 4px、极淡阴影） */
.gy-bg-gray {
  background: var(--bg);
}

.gy-vd-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow);
}

.gy-vd-panel .gy-module-hd {
  margin-bottom: 16px;
}

/* 选集面板自带内距（页签贴着面板上缘），外层面板不再加 */
.gy-vd-panel--main {
  padding: 0;
  overflow: hidden;
}

/* 面板内的区块（选集等）自带的底部外距要清掉，否则集数少时面板下方会留一大块空白 */
.gy-vd-panel > .gy-module {
  margin-bottom: 0;
}

/* ===== 详情页基础信息（widget/detail_hero，详情/下载页共用）：照目标站——左海报、右侧标题＋状态徽标、资料行、剧情简介、操作按钮 ===== */
.gy-vd-top {
  margin: 0 0 var(--gap-panel);
}

.gy-vd-hero {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 4px 0 20px;
}

/* 面包屑与顶栏之间留白（目标站内容区上内距 20px） */
.gy-vd-top > .gy-vd-breadcrumb {
  padding-top: 14px;
}

/* 目标站播放源面板没有标题，页签直接贴顶；h2 保留给读屏与结构（强制2） */
.gy-detail-main .gy-playlist .gy-module-title,
.gy-play-main .gy-playlist .gy-module-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.gy-vd-poster {
  flex-shrink: 0;
  width: 200px;
  margin: 0;
}

.gy-vd-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background-color: var(--bg-elev);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.gy-vd-body {
  position: relative;
  flex: 1;
  min-width: 0;
}

.gy-vd-titlebar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.gy-vd-title {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.gy-vd-title-sub {
  margin-left: 10px;
  color: var(--text-weak);
  font-size: 16px;
  font-weight: 600;
}

.gy-vd-remarks {
  padding: 2px 10px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
}

.gy-vd-meta {
  margin: 0;
}

.gy-vd-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.gy-vd-meta-row:empty {
  display: none;
}

.gy-vd-m {
  display: flex;
  min-width: 0;
}

.gy-vd-m dt {
  flex-shrink: 0;
}

.gy-vd-m dt::after {
  content: "：";
}

/* 同一行相邻字段之间的竖分隔线：每个字段左侧画线并左移 1px，行容器整体左移 14px 且裁切；
   换行后行首字段的线落在容器外被裁掉，不会孤立。DOM 第一个字段补回 14px 对齐 */
.gy-vd-meta-row {
  margin-left: -14px;
  overflow: hidden;
}

.gy-vd-m {
  margin-left: -1px;
  padding: 0 14px 0 14px;
  border-left: 1px solid var(--border-mid);
}

.gy-vd-meta-row > .gy-vd-m:first-child {
  margin-left: 14px;
  padding-left: 0;
  border-left: 0;
}

/* 竖线两侧各 14px：左侧靠前一个字段的右内距，右侧靠本字段的左内距 */

.gy-vd-m dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 主演只显示一行，超出以省略号表示（需求方 2026-10-21 要求）；各尺寸共用 */
.gy-vd-m--clamp {
  max-width: 100%;
  min-width: 0;
}

.gy-vd-m--clamp dd {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gy-vd-m a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.gy-vd-m a:hover {
  color: var(--accent);
}

.gy-vd-sep {
  margin: 0 2px;
  color: var(--text-weak);
}

/* 同一字段的多个链接之间用斜线分隔 */
.gy-vd-m dd a + a::before {
  content: "\00a0/\00a0";
  color: var(--text-weak);
}

.gy-vd-desc {
  margin-top: 16px;
}

.gy-vd-desc-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.gy-vd-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.gy-vd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 32px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.gy-vd-btn--play {
  background: var(--accent);
  box-shadow: var(--shadow-play);
  color: var(--on-accent);
}

.gy-vd-btn--play:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* 次按钮（下载／分享）：目标站没有，沿用同形状的描边版 */
.gy-vd-btn--sub {
  padding: 12px 24px;
  border-color: var(--border-mid);
  background: none;
  color: var(--text);
}

.gy-vd-btn--sub:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 评分：目标站没有；桌机／平板放在资料区右上角（上下两行：豆瓣分、我要评分＋星星），标题区让出右侧空间 */
.gy-vd-rating {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--text-weak);
  font-size: 13px;
}

.gy-vd-body > .gy-vd-titlebar {
  padding-right: 200px;
}

.gy-vd-rate {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gy-vd-score {
  color: #ffa726;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.gy-vd-score small {
  margin-left: 4px;
  color: var(--text-weak);
  font-size: 12px;
  font-weight: 400;
}

.gy-vd-score--empty {
  color: var(--text-weak);
  font-size: 13px;
  font-weight: 400;
}

.gy-rate-stars {
  display: inline-flex;
}

.gy-rs {
  padding: 0 1px;
  color: var(--border-mid);
  font-size: 18px;
  line-height: 1;
  transition: color 0.15s;
}

.gy-rs:hover,
.gy-rs.gy-rs-on {
  color: #ffb400;
}

@media (max-width: 767px) {
  .gy-vd-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 0 0 16px;
  }

  /* 主体限制在容器宽度内，主演一行省略才不会把整块撑宽 */
  .gy-vd-body {
    min-width: 0;
    max-width: 100%;
  }

  .gy-vd-poster {
    width: 140px;
    margin: 0 auto;
  }

  .gy-vd-titlebar,
  .gy-vd-body > .gy-vd-titlebar {
    justify-content: center;
    padding-right: 0;
  }

  .gy-vd-title {
    font-size: 20px;
    text-align: center;
  }

  .gy-vd-meta-row {
    justify-content: center;
    font-size: 12px;
  }

  .gy-desc-body {
    font-size: 13px;
  }

  /* 手机按钮列（需求方 2026-10-21）：
     ① 没有播放来源：分享／下载各自撑满一行；两颗都有就左右各半并排（带文字）；
     ② 有播放来源：播放钮吃剩余宽度，下载／分享缩成只有图示的 48px 方形钮，全部同一行（文字隐藏，靠 aria-label） */
  .gy-vd-actions {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .gy-vd-actions > .gy-vd-btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .gy-vd-actions--play > .gy-vd-btn--play {
    flex: 1 1 auto;
  }

  .gy-vd-actions--play > .gy-vd-btn--sub {
    flex: 0 0 48px;
    width: 48px;
    padding: 12px 0;
    font-size: 0;
    gap: 0;
  }

  .gy-vd-actions--play > .gy-vd-btn--sub .mac-icon {
    font-size: 20px;
  }

}

/* 平板：标题区让出右上角评分的位置；资料区维持与桌机相同的「同行串连加竖线」排法（需求方 2026-10-21 要求，不要一行一个字段） */
@media (max-width: 1024px) {
  .gy-vd-body > .gy-vd-titlebar {
    padding-right: 170px;
  }
}

/* 手机资料区（需求方 2026-10-21 选定）：第一行（分类、地区、年份、语言、类型）变成小标签晶片；
   其余字段（导演、编剧、主演、标签、又名、时长、上映、更新）一行一条——欄位名在左、内容靠右，不画行间分隔线 */
@media (max-width: 767px) {
  /* 手机不用桌机的竖线分隔技术（那套靠行容器左移＋裁切），全部复位 */
  .gy-vd-meta .gy-vd-meta-row {
    overflow: visible;
  }

  .gy-vd-meta .gy-vd-meta-row > .gy-vd-m,
  .gy-vd-meta .gy-vd-meta-row > .gy-vd-m:first-child {
    margin-left: 0;
    border-left: 0;
  }

  .gy-vd-meta {
    display: block;
  }

  .gy-vd-meta .gy-vd-meta-row {
    display: block;
    margin: 0;
  }

  .gy-vd-meta .gy-vd-meta-row:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
  }

  /* 晶片：欄位名只留给读屏，内容做成小标签 */
  .gy-vd-meta .gy-vd-meta-row:first-child .gy-vd-m {
    display: block;
    padding: 0;
    border: none;
  }

  .gy-vd-meta .gy-vd-meta-row:first-child .gy-vd-m dt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .gy-vd-meta .gy-vd-meta-row:first-child .gy-vd-m dd {
    display: block;
    padding: 2px 10px;
    border-radius: 4px;
    background: var(--tag-bg);
    color: var(--tag-text);
    font-size: 12px;
    line-height: 1.6;
  }

  .gy-vd-meta .gy-vd-meta-row:first-child .gy-vd-m a {
    color: inherit;
  }

  /* 其余字段：左欄位名、右内容 */
  .gy-vd-meta .gy-vd-meta-row:not(:first-child) .gy-vd-m {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
    font-size: 13px;
  }

  .gy-vd-meta .gy-vd-meta-row:not(:first-child) .gy-vd-m dt {
    flex-shrink: 0;
    color: var(--text-weak);
  }

  .gy-vd-meta .gy-vd-meta-row:not(:first-child) .gy-vd-m dd {
    color: var(--text);
    text-align: right;
  }

  .gy-vd-meta .gy-vd-meta-row:not(:first-child) .gy-vd-m a {
    color: var(--text);
  }

  .gy-vd-m + .gy-vd-m::before,
  .gy-vd-m dt::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .gy-vd-meta .gy-vd-meta-row:first-child {
    justify-content: center;
  }

  /* 手机顺序：标题 → 标签晶片＋资料行 → 评分横栏 → 简介 → 按钮（评分在 DOM 里紧跟标题，用 order 挪到资料之后，让标题与标签紧挨） */
  .gy-vd-body {
    display: flex;
    flex-direction: column;
  }

  .gy-vd-body > .gy-vd-titlebar { order: 1; }
  .gy-vd-body > .gy-vd-meta { order: 2; }
  .gy-vd-body > .gy-vd-rating { order: 3; margin: 14px 0 0; }
  .gy-vd-body > .gy-vd-desc { order: 4; }
  .gy-vd-body > .gy-vd-actions { order: 5; }
}

/* 手机：评分是标题下面的一条横栏（左豆瓣分、右我要评分＋星星），不再绝对定位到右上角 */
@media (max-width: 767px) {
  .gy-vd-rating {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elev);
  }

  .gy-vd-body > .gy-vd-titlebar {
    padding-right: 0;
  }
}

/* 没有评分块（下载页）时标题区不用让出右侧空间 */
.gy-vd-body:not(:has(.gy-vd-rating)) > .gy-vd-titlebar {
  padding-right: 0;
}

/* ===== 当前位置 / 面包屑（共用 widget/breadcrumb，详情页 + 播放页共用） ===== */
.gy-vd-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.gy-vd-breadcrumb .mac-icon {
  font-size: 11px;
  color: var(--text-muted);
}
.gy-vd-breadcrumb a {
  color: var(--text-light);
}
.gy-vd-breadcrumb a:hover {
  color: var(--accent);
}
.gy-vd-bc-current {
  color: var(--text-muted);
}
.gy-vd-bc-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gy-vd-bc-list li {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 479px) {
  .gy-vd-breadcrumb { margin-bottom: 14px; gap: 7px; }
  .gy-vd-bc-list, .gy-vd-bc-list li { gap: 7px; }
}
@media (min-width: 480px) and (max-width: 767px) {
  .gy-vd-breadcrumb { margin-bottom: 16px; gap: 7px; }
  .gy-vd-bc-list, .gy-vd-bc-list li { gap: 7px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .gy-vd-breadcrumb { margin-bottom: 20px; gap: 7px; }
  .gy-vd-bc-list, .gy-vd-bc-list li { gap: 7px; }
}

/* ===== 简单面包屑（专题列表/专题详情/留言板/排行榜等纯文字层级页面共用，见 decisions.md 全局-面包屑） ===== */
.gy-simple-breadcrumb {
  margin-bottom: 16px;
}
.gy-simple-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.gy-simple-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gy-simple-breadcrumb li:not(:last-child)::after {
  content: '›';
}
.gy-simple-breadcrumb a {
  color: var(--text-light);
}
.gy-simple-breadcrumb a:hover {
  color: var(--accent);
}
.gy-simple-breadcrumb li[aria-current="page"] {
  color: var(--text-muted);
}
@media (min-width: 1025px) {
  .gy-vd-breadcrumb { margin-bottom: 24px; gap: 7px; }
  .gy-vd-bc-list, .gy-vd-bc-list li { gap: 7px; }
}
@media (max-width: 767px) {
  .gy-vd-breadcrumb { font-size: 12px; }
}
