/* ============================================================
   tp19_white_yellow — 全站基础样式
   版型参考 dushe3.app：左侧图示导览列（桌机）＋ 顶部搜寻/分类栏 ＋
   轮播 Hero ＋ 分区卡片墙（section-box / module-box）。
   资料回圈与 MacCMS 标签承袭 tp15_dark_pink，视觉与 HTML 结构重新设计。
   class 前缀 wy-（white-yellow）为本主题独立命名空间。
   ============================================================ */

.wy-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;
}

/* ============================================================
   1. Design Tokens
   主色取自 dushe3.app 实测 --fs-primary-color:#ffd000（见 docs/STYLE_CLONE_SOP.md）。
   --accent 用于文字/按钮底色时加深至 #a8720a，确保白字对比度可读；
   --accent-vivid 保留原始鲜黄，只用于徽章/圆点等不需承载文字对比的重点强调。
   ============================================================ */
:root {
  --accent: #a8720a;
  --accent-vivid: #ffd000;
  --accent-light: #fff8e0;
  --accent-soft: #fff3c4;
  --accent-border: #ffe285;
  --accent-dark: #8a5c06;

  --text: #1f2328;
  --text-second: #3a3f44;
  --text-muted: #767b82;
  --text-faint: #9aa0a6;
  --text-invert: #ffffff;

  --bg: #f4f5f7;
  --bg-white: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-sidebar: #ffffff;
  --bg-chip: #f1f2f4;
  --bg-dark: #1c1d21;

  --border: #ebedf0;
  --border-mid: #e2e4e8;
  --border-strong: #d7dae0;

  /* 比照 dushe3.app 排行榜实测：1/2/3 名为红橙渐层，其余同一般文字色 */
  --rank-1: #ff3300;
  --rank-2: #ff6600;
  --rank-3: #ff9900;
  --rank-other: #393e41;

  /* 比照 dushe3.app 实测：深色次要按钮（收藏/线路未选中） */
  --dark-btn: #1d1c1e;
  --dark-btn-2: #393a43;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 4px rgba(20, 20, 20, 0.06);
  --shadow: 0 4px 16px rgba(20, 20, 20, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 20, 20, 0.14);

  --sidebar-w: 176px;
  --sidebar-w-collapsed: 76px;
  --topbar-h: 64px;
  --gap: 16px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft YaHei",
    "Heiti TC", "WenQuanYi Micro Hei", sans-serif;
}

/* ============================================================
   2. Reset & 基础
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; }
figure { margin: 0; }

.wy-mac-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
}

/* 本地 SVG sprite（public/icons.html <use href="#ph-xxx">）用的图标 class，
   width/height:1em 吃外层 font-size 换算尺寸，fill 吃外层 color */
.mac-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

.wy-text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wy-hide-mobile { display: inline; }
.wy-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   3. 页面骨架：左侧图示导览列（桌机固定）＋ 右侧内容列
   参考 dushe3.app .t-p / .t-p-side / .t-p-main 结构，重新命名与调整比例
   ============================================================ */
.wy-page-shell {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  background: var(--bg);
}

.wy-side-col {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: none; /* 桌机（≥1025px）才显示，见 RWD 区块 */
}

.wy-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   4. Header — 侧栏导览（桌机）
   ============================================================ */
.wy-sidebar {
  display: none; /* 桌机（≥1025px）才显示，见 RWD 区块 */
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  flex-direction: column;
  z-index: 60;
  overflow-y: auto;
}

.wy-sidebar-logo {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  flex-shrink: 0;
}

.wy-sidebar-logo img { height: 30px; width: auto; }
.wy-sidebar-logo .wy-logo-fallback {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.wy-sidebar-logo .wy-logo-fallback em {
  font-style: normal;
  color: var(--accent);
}

.wy-sidebar-nav { padding: 4px 12px 20px; flex: 1; }

.wy-sidebar-group + .wy-sidebar-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

.wy-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--text-second);
  font-size: 15px;
  position: relative;
  transition: background 0.15s, color 0.15s;
}
.wy-sidebar-item .wy-si-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.wy-sidebar-item .wy-si-label { flex: 1; }
.wy-sidebar-item:hover { background: var(--accent-light); color: var(--text); }
.wy-sidebar-item.wy-active {
  background: var(--accent-vivid);
  color: #1a1200;
  font-weight: 700;
}
.wy-sidebar-item.wy-active:hover { background: var(--accent-vivid); }

/* ============================================================
   5. Header — 顶部栏（搜寻拉满剩余宽度 + 使用者功能；
   比照 dushe3.app 实测：侧栏已含完整分类导览，顶部不重复一份，
   搜寻框直接吃下所有剩余空间，宽度远比一般站大）
   ============================================================ */
.wy-topbar {
  height: var(--topbar-h);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.wy-topbar-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.wy-topbar-hamburger:hover { background: var(--bg-chip); }

.wy-topbar-logo-mobile { display: none; align-items: center; flex-shrink: 0; }
.wy-topbar-logo-mobile img { height: 24px; }

.wy-search {
  position: relative;
  flex: 1;
  min-width: 0;
}
.wy-search-bar {
  display: flex;
  align-items: center;
  height: 40px;
  background: var(--bg-chip);
  border-radius: var(--radius);
  padding: 0 4px 0 16px;
  transition: background 0.15s;
}
.wy-search-bar:hover, .wy-search-bar:focus-within { background: #e9ebee; }
.wy-search-input {
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 13.5px;
  min-width: 0;
}
.wy-search-input::placeholder { color: var(--text-faint); }
.wy-search-submit {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.wy-search-submit:hover { color: var(--accent); }

/* 搜寻热词下拉面板：点击搜寻框弹出，比照 dushe3.app 实测「大家都在搜」浮层 */
.wy-search-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-width: 480px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px 18px;
  z-index: 55;
}
.wy-search.wy-is-open .wy-search-panel { display: block; }
.wy-sp-title { font-size: 13px; font-weight: 700; color: var(--text-second); margin-bottom: 10px; }
.wy-sp-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
}
.wy-sp-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.wy-sp-tag .mac-icon { color: var(--accent); font-size: 14px; flex-shrink: 0; }
.wy-sp-tag:hover { background: var(--accent-vivid); color: #1a1200; }
.wy-sp-tag:hover .mac-icon { color: #1a1200; }

.wy-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wy-topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-second);
  position: relative;
}
.wy-topbar-btn:hover { background: var(--bg-chip); color: var(--accent); }
.wy-topbar-btn.wy-active { color: var(--accent); background: var(--accent-light); }

/* ============================================================
   6. 手机端 off-canvas 侧边抽屉（复用桌机 sidebar 的资料结构）
   ============================================================ */
.wy-drawer-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
}
.wy-drawer-mask.wy-is-open { display: block; }

.wy-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 78%;
  max-width: 300px;
  background: var(--bg-white);
  z-index: 91;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.wy-drawer.wy-is-open { transform: translateX(0); }
.wy-drawer-head {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.wy-drawer-head img { height: 26px; }
.wy-drawer-close { font-size: 20px; color: var(--text-muted); width: 32px; height: 32px; }
.wy-drawer-nav { padding: 10px 12px 24px; }

/* ============================================================
   7. Modal 共用（登入 / 历史记录）
   ============================================================ */
.wy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}
.wy-modal-overlay.wy-is-open { opacity: 1; visibility: visible; }
.wy-modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 380px;
  padding: 28px 24px 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.wy-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 14px;
}
.wy-modal-close:hover { background: var(--bg-chip); }
.wy-modal-title { font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 20px; }
.wy-modal-form { display: flex; flex-direction: column; gap: 14px; }
.wy-modal-field { display: flex; flex-direction: column; gap: 6px; }
.wy-modal-label { font-size: 12.5px; color: var(--text-muted); }
.wy-modal-input {
  height: 42px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s;
}
.wy-modal-input:focus { border-color: var(--accent-vivid); }
.wy-modal-submit {
  height: 44px;
  background: var(--accent-vivid);
  color: #1a1200;
  font-weight: 800;
  font-size: 14.5px;
  border-radius: var(--radius);
  margin-top: 4px;
}
.wy-modal-submit:hover { background: #ffc700; }
.wy-modal-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 16px;
}
.wy-modal-link:hover { color: var(--accent); }
.wy-modal-link--accent { color: var(--accent); font-weight: 700; }

.wy-hm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}
.wy-hm-overlay.wy-is-open { opacity: 1; visibility: visible; }
.wy-hm-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 480px;
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.wy-hm-header {
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.wy-hm-title { font-size: 15px; font-weight: 800; }
.wy-hm-clear { font-size: 12.5px; color: var(--text-muted); }
.wy-hm-clear:hover { color: var(--accent); }
.wy-hm-close { font-size: 15px; color: var(--text-muted); width: 28px; height: 28px; border-radius: 50%; }
.wy-hm-close:hover { background: var(--bg-chip); }
.wy-hm-body {
  overflow-y: auto;
  padding: 12px 16px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.wy-hm-card { display: block; }
.wy-hm-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-chip);
  aspect-ratio: 3/4;
}
.wy-hm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wy-hm-name {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-second);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.wy-hm-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-faint);
  padding: 30px 0;
  font-size: 13px;
}

/* ============================================================
   8. Footer
   ============================================================ */
.wy-friend-links {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 0;
  width: 100%;
}
.wy-friend-links h4 { font-size: 12.5px; color: var(--text-faint); font-weight: 600; margin-bottom: 10px; }
.wy-friend-links-list { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.wy-friend-links-list a { font-size: 12.5px; color: var(--text-muted); }
.wy-friend-links-list a:hover { color: var(--accent); }

.wy-site-footer {
  flex-shrink: 0;
  margin-top: 24px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 24px 24px 40px;
  text-align: center;
}
.wy-site-footer p { font-size: 12px; color: var(--text-faint); max-width: 760px; margin: 0 auto 8px; line-height: 1.8; }
.wy-site-footer address { font-style: normal; font-size: 12px; color: var(--text-faint); }
.wy-footer-links { margin-top: 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.wy-footer-links a { font-size: 12px; color: var(--text-muted); }
.wy-footer-links a:hover { color: var(--accent); }

@media (min-width: 1025px) {
  .wy-site-footer { padding-bottom: 40px; }
}

/* ============================================================
   9. 浮動功能按鈕 (FAB)
   ============================================================ */
.wy-fab-group {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wy-fab-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-second);
  border: 1px solid var(--border);
  opacity: 0.92;
}
.wy-fab-btn:hover { color: var(--accent); border-color: var(--accent-vivid); }
.wy-fab-btn--top { opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.2s; }
.wy-fab-btn--top.wy-is-visible { opacity: 0.92; visibility: visible; transform: none; }

.wy-fab-qr-popup {
  position: fixed;
  right: 70px;
  bottom: 130px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  text-align: center;
  z-index: 81;
  display: none;
}
.wy-fab-qr-popup.wy-is-open { display: block; }
.wy-fab-qr-popup p { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.wy-fab-qr-popup img { width: 130px; height: 130px; }

.wy-rate-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 10px);
  background: rgba(28, 29, 33, 0.92);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  opacity: 0;
  z-index: 300;
  transition: all 0.25s;
  pointer-events: none;
}
.wy-rate-toast--show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1025px) {
  .wy-fab-group { bottom: 32px; }
  .wy-fab-qr-popup { bottom: 80px; }
}

/* ============================================================
   10. 首页头图轮播（Hero Carousel）— 参考 dushe3.app .carousel-box
   ============================================================ */
.wy-home-hero {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-chip);
  margin-bottom: 28px; /* 轮播非 .wy-section-box，吃不到 .wy-section-box + .wy-section-box 的间距，需自行补上，
                          避免其后第一个 section 标题贴着轮播 */
}
.wy-home-hero-track {
  display: flex;
  transition: transform 0.5s ease;
}
.wy-home-hero-slide {
  flex: 0 0 100%;
  position: relative;
  /* 比照 dushe3.app 实测 carousel-item：padding-bottom: min(max(32.1%,180px),520px)，
     即寬:高 ≈ 3.11:1，上限 520px（本站改用 aspect-ratio + max-height 等效实现） */
  aspect-ratio: 3.115 / 1;
  min-height: 180px;
  max-height: 520px;
}
.wy-home-hero-slide a {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.wy-home-hero-slide a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.15) 42%, rgba(0, 0, 0, 0) 65%);
}
.wy-hh-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 22px 22px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 640px;
}
.wy-hh-tag {
  align-self: flex-start;
  background: var(--accent-vivid);
  color: #1a1200;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.wy-hh-name {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.wy-hh-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.wy-home-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  z-index: 2;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.wy-home-hero-arrow--prev { left: 14px; }
.wy-home-hero-arrow--next { right: 14px; }
.wy-home-hero-arrow:hover { background: var(--accent-vivid); color: #1a1200; transform: translateY(-50%) scale(1.08); }
.wy-home-hero-dots {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.wy-hhd {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}
.wy-hhd.wy-active { width: 18px; background: var(--accent-vivid); }

/* ============================================================
   11. Section-box / Module-box — 首页与列表页共用的分区卡片墙
   参考 dushe3.app .section-box + .module-box .v-item
   ============================================================ */
/* 比照 dushe3.app 实测：主内容区不设 max-width，直接吃满侧栏以外的剩余宽度 */
/* flex: 1 撑满 .wy-main-col 剩余高度，避免内容过少时 footer 被顶起、脱离视口底部 */
.wy-content-main { padding: 10px; width: 100%; flex: 1 0 auto; }

.wy-section-box + .wy-section-box { margin-top: 28px; }

.wy-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.wy-section-hd-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wy-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wy-section-title .wy-mac-icon { color: var(--accent-vivid); font-size: 22px; }
.wy-section-hd-sub {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.wy-section-hd-sub::-webkit-scrollbar { display: none; }
.wy-section-hd-sub a { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.wy-section-hd-sub a:hover { color: var(--accent); }
.wy-section-more {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.wy-section-more:hover { color: var(--accent); }

.wy-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wy-card-grid--overflow-x {
  display: flex;
  overflow-x: auto;
  gap: var(--gap);
  scrollbar-width: none;
  padding-bottom: 2px;
}
.wy-card-grid--overflow-x::-webkit-scrollbar { display: none; }
.wy-card-grid--overflow-x > li { flex: 0 0 30%; min-width: 128px; }

.wy-hcard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

/* ============================================================
   12. 影片卡片 v-item（vod_card widget）
   ============================================================ */
/* min-width: 0 修正 grid item 预设 min-width:auto 的问题——
   演员名单过长（mac_url_create 会串接多个 <a> 并以 &nbsp; 相连，不可断行）时，
   若不归零会撑大所在的 grid 列，导致整排卡片宽高比例跑版 */
.wy-vod-card { display: block; min-width: 0; }
.wy-vc-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-chip); box-shadow: var(--shadow-sm); }
.wy-vc-cover { position: relative; aspect-ratio: 182 / 262; overflow: hidden; } /* 比照 dushe3.app v-item-cover 实测比例 */
.wy-vc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.wy-vod-card:hover .wy-vc-cover img { transform: scale(1.06); }
.wy-vod-card:hover .wy-vc-main { box-shadow: 0 6px 18px rgba(20, 20, 20, 0.18); }

.wy-vc-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 11px;
  z-index: 1;
}
.wy-vc-score {
  background: #41ac52;
  color: #fff;
  padding: 2px 7px;
  border-bottom-right-radius: var(--radius-sm);
  font-weight: 700;
  flex-shrink: 0;
}
.wy-vc-remarks {
  background: var(--accent-vivid);
  color: #6b5a1f;
  padding: 2px 7px;
  border-bottom-left-radius: var(--radius-sm);
  font-weight: 700;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wy-vc-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 8px 5px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 11px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wy-vc-title {
  margin-top: 7px;
  font-size: 13px;
  color: var(--text);
  text-align: center;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.wy-vc-sub {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-faint);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 文字清单（补充卡片墙下的纯文字条目） */
.wy-vlt-item, .wy-vlt-link { display: block; }
.wy-vlt-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 4px;
  font-size: 13px;
  border-bottom: 1px dashed var(--border);
}
.wy-vlt-link:hover .wy-vlt-name { color: var(--accent); }
.wy-vlt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-second); }
.wy-vlt-tag { flex-shrink: 0; font-size: 11px; color: var(--text-faint); }

/* ============================================================
   12b. 专题卡片 h-item（topic_card widget）／ 资讯卡片（news_card widget）
   ============================================================ */
.wy-topic-card { display: block; min-width: 0; }
.wy-tc-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-chip); box-shadow: var(--shadow-sm); }
.wy-tc-cover { aspect-ratio: 16 / 9; overflow: hidden; }
.wy-tc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.wy-topic-card:hover .wy-tc-cover img { transform: scale(1.06); }
.wy-tc-hot {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent-vivid);
  color: #1a1200;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-bottom-left-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 3px;
}
.wy-tc-title { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text-second); }
.wy-topic-card:hover .wy-tc-title { color: var(--accent); }

.wy-news-card { display: block; min-width: 0; }
.wy-news-card a { display: block; }
.wy-news-thumb { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-chip); }
.wy-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.wy-news-card:hover .wy-news-thumb img { transform: scale(1.06); }
.wy-news-card h4 {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-second);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}
.wy-news-card:hover h4 { color: var(--accent); }

/* 资讯卡（图上标题下）栏数——比照 wy-card-grid 卡片墙渐进增栏 */
.wy-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

/* ============================================================
   13. 排行文字清单（编号徽章）— vodlist_rank / rank_col / rank sidebar 共用
   ============================================================ */
.wy-vlt-rank-list { display: flex; flex-direction: column; }
.wy-vlt-rank-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--border);
}
.wy-vlt-rank-item:last-child .wy-vlt-rank-link { border-bottom: none; }
.wy-vlt-rank-badge {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-chip);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wy-vlt-rank-badge--1 { background: var(--rank-1); color: #fff; }
.wy-vlt-rank-badge--2 { background: var(--rank-2); color: #fff; }
.wy-vlt-rank-badge--3 { background: var(--rank-3); color: #1a1200; }
.wy-vlt-rank-link .wy-vlt-name { color: var(--text-second); font-size: 13px; }
.wy-vlt-rank-link:hover .wy-vlt-name { color: var(--accent); }

/* ============================================================
   13b. 排行榜 Top1 大卡（widget/rank_top）＋ 分类榜单列
   （widget/rank_col、rank_col_home、rank_list_item 共用；label/rank.html、
   vod/down.html、plot/detail.html 侧栏皆会用到）
   ============================================================ */
.wy-rank-top1 { display: block; margin-bottom: 10px; }
.wy-rank-top1 a { display: flex; gap: 12px; }
.wy-rank-top1-thumb { position: relative; flex-shrink: 0; width: 88px; aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden; background: var(--bg-chip); }
.wy-rank-top1-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wy-rank-top1-n {
  position: absolute; top: 0; left: 0;
  background: var(--rank-1); color: #fff;
  font-size: 13px; font-weight: 800;
  width: 22px; height: 20px; display: flex; align-items: center; justify-content: center;
  border-bottom-right-radius: var(--radius-sm);
}
.wy-rank-top1-info { flex: 1; min-width: 0; padding-top: 2px; }
.wy-rank-top1-arrow { display: none; }
.wy-rank-top1-info h4 { font-size: 14px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wy-rank-top1-info p { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wy-rank-status { color: var(--text-muted) !important; }
.wy-rank-views { display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; font-size: 11.5px; color: var(--accent); font-weight: 700; }

.wy-rank-list, .wy-rkc-list { display: flex; flex-direction: column; }
.wy-rank-list li, .wy-rkc-list li { border-bottom: 1px solid var(--border); }
.wy-rank-list li:last-child, .wy-rkc-list li:last-child { border-bottom: none; }
.wy-rank-list a, .wy-rkc-list a {
  display: flex; align-items: center; gap: 10px; padding: 8px 2px;
}
.wy-rank-num, .wy-rn {
  flex-shrink: 0; width: 18px; text-align: center;
  font-size: 12px; font-weight: 800; color: var(--text-faint); font-style: normal;
}
.wy-rank-num--2, .wy-rn--2 { color: var(--rank-2); }
.wy-rank-num--3, .wy-rn--3 { color: var(--rank-3); }
.wy-rank-name, .wy-rn-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text-second); }
.wy-rank-list a:hover .wy-rank-name, .wy-rkc-list a:hover .wy-rn-name { color: var(--accent); }
.wy-rank-count, .wy-rn-views { flex-shrink: 0; font-size: 11px; color: var(--text-faint); display: flex; align-items: center; gap: 3px; }

.wy-rank-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wy-rank-col-header h3 { font-size: 15px; font-weight: 800; }
.wy-rank-more { font-size: 12px; color: var(--text-faint); }
.wy-rank-more:hover { color: var(--accent); }
.wy-rank-col-title { font-size: 14.5px; font-weight: 800; margin-bottom: 10px; }

/* ============================================================
   14. Panel Box（面板容器：选集列表 / 猜你喜欢 / 分集剧情 / 评论...）
   ============================================================ */
.wy-pannel-box { margin-top: 22px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.wy-pannel-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.wy-pannel-hd-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.wy-pannel-hd-title .wy-mac-icon { color: var(--accent-vivid); font-size: 17px; }
.wy-pannel-hd-title a:hover { color: var(--accent); }

/* Tab 面板内容（vod/detail.html 剧情介绍/角色信息/我要评分；actor/detail.html 个人资料/相关作品共用） */
.wy-detail-tab-content, .wy-actor-tab-content { padding-top: 2px; }

/* ============================================================
   15. 选集列表（widget/playlist）
   ============================================================ */
/* 播放來源切換，比照設計稿「切换线路」宮格：
   深色底方塊（未選中）／金黃底（選中），兩行文字（線路名+備注）＋右上角集數角標。
   線路數量預期 1~5 個，桌面固定較寬格寬，避免像票根一樣擠成一長條 */
.wy-playlist-sources {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.wy-source-tab {
  position: relative;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--dark-btn-2);
  color: #ebebeb;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.wy-source-tab:hover { background: #46485a; color: #fff; }
.wy-source-tab.wy-active { background: var(--accent-vivid); color: #1a1200; }
.wy-source-name { display: block; font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wy-source-note { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 500; opacity: 0.72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wy-source-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--radius-sm);
  background: var(--accent-vivid); color: #1a1200;
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.wy-source-tab.wy-active .wy-source-count { background: var(--dark-btn); color: #fff; }

.wy-playlist-panel { display: none; margin-top: 16px; }
.wy-playlist-panel.wy-active { display: block; }
.wy-playlist-episodes-wrap { max-height: 260px; overflow-y: auto; }
.wy-playlist-episodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }

/* 断点响应式栏数必须写在基础规则（上一行）之后，否则会被基础规则覆盖回 4 栏 */
@media (min-width: 640px) {
  .wy-playlist-sources { grid-template-columns: repeat(3, 1fr); }
  .wy-playlist-episodes { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1025px) {
  .wy-playlist-sources { grid-template-columns: repeat(5, 1fr); }
  .wy-playlist-episodes { grid-template-columns: repeat(8, 1fr); }
}
@media (min-width: 1440px) {
  .wy-playlist-episodes { grid-template-columns: repeat(10, 1fr); }
}
.wy-episode {
  display: block;
  text-align: center;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  background: var(--bg-chip);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-second);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.wy-episode:hover { background: var(--accent-light); color: var(--accent); }
.wy-episode.wy-active { background: var(--accent-vivid); color: #1a1200; font-weight: 700; }
.wy-playlist-empty { color: var(--text-faint); font-size: 13px; padding: 10px 0; }

/* ============================================================
   16. 剧情介绍展开/收合
   ============================================================ */
.wy-desc-body { position: relative; font-size: 13.5px; color: var(--text-second); line-height: 1.85; }
.wy-desc-body.wy-desc-collapsed { max-height: 5.6em; overflow: hidden; }
.wy-desc-body.wy-desc-collapsed.desc-has-more::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.4em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg-white));
}
.wy-desc-body.wy-desc-expanded { max-height: none; overflow: visible; }
.wy-desc-expand-btn {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ============================================================
   17. 评论区共用元件
   ============================================================ */
.wy-comment-section { margin-top: 22px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.wy-cmt-header { margin-bottom: 14px; }
.wy-cmt-title { font-size: 16px; font-weight: 800; }
.wy-cmt-count { font-size: 12.5px; color: var(--text-faint); font-weight: 400; margin-left: 6px; }
.wy-cmt-ajax-wrap { min-height: 20px; }
.wy-cmt-loading { color: var(--text-faint); font-size: 13px; }
.wy-cmt-form { background: var(--bg-soft); border-radius: var(--radius); padding: 12px; }
.wy-cmt-textarea {
  width: 100%;
  min-height: 74px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  resize: vertical;
  outline: none;
  background: var(--bg-white);
}
.wy-cmt-textarea:focus { border-color: var(--accent-vivid); }
.wy-cmt-form-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; flex-wrap: wrap; gap: 8px; }
.wy-cmt-chars { font-size: 11.5px; color: var(--text-faint); }
.wy-cmt-actions { display: flex; align-items: center; gap: 8px; }
.wy-cmt-verify-input { height: 32px; width: 90px; border: 1px solid var(--border-mid); border-radius: var(--radius-sm); padding: 0 8px; font-size: 12.5px; outline: none; }
.wy-cmt-captcha { height: 32px; border-radius: var(--radius-sm); cursor: pointer; }
.wy-cmt-submit { height: 32px; padding: 0 18px; background: var(--accent-vivid); color: #1a1200; font-weight: 700; font-size: 12.5px; border-radius: var(--radius-pill); }
.wy-cmt-submit:hover { background: #ffc700; }

.wy-cmt-list { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.wy-cmt-item { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.wy-cmt-item:last-child { border-bottom: none; padding-bottom: 0; }
.wy-cmt-item-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wy-cmt-item-user { font-size: 13px; font-weight: 700; color: var(--text-second); }
.wy-cmt-item-time { font-size: 11.5px; color: var(--text-faint); }
.wy-cmt-item-content { font-size: 13.5px; color: var(--text); line-height: 1.7; }
.wy-cmt-item-reply-list { margin-top: 8px; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.wy-cmt-item-reply { font-size: 12.5px; color: var(--text-second); line-height: 1.6; }
.wy-cmt-reply-label { color: var(--accent); font-weight: 700; }
.wy-cmt-item-actions { margin-top: 6px; display: flex; gap: 14px; }
.wy-cmt-action-link { font-size: 12px; color: var(--text-faint); }
.wy-cmt-action-link:hover { color: var(--accent); }
.wy-cmt-empty { text-align: center; color: var(--text-faint); font-size: 13px; padding: 20px 0; }
.wy-cmt-paging { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.wy-cmt-page-btn { padding: 5px 12px; border-radius: var(--radius-sm); background: var(--bg-chip); font-size: 12px; color: var(--text-second); }
.wy-cmt-page-btn.wy-is-active { background: var(--accent-vivid); color: #1a1200; font-weight: 700; }
.wy-cmt-page-btn.wy-is-disabled { opacity: 0.4; pointer-events: none; }

/* ============================================================
   18. 分页
   ============================================================ */
.wy-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.wy-page-btn, .wy-page-num {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: var(--text-second);
}
.wy-page-btn:hover, .wy-page-num:hover { border-color: var(--accent-vivid); color: var(--accent); }
.wy-page-num.wy-active { background: var(--accent-vivid); border-color: var(--accent-vivid); color: #1a1200; font-weight: 700; }

/* ============================================================
   19. 当前位置 / 面包屑
   ============================================================ */
.wy-vd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.wy-vd-breadcrumb a:hover { color: var(--accent); }
.wy-vd-bc-label { color: var(--text-faint); }
.wy-vd-bc-current { color: var(--text-second); }

/* ============================================================
   20. 友情连结之外的通用侧栏区块（各页 aside 共用容器）
   ============================================================ */
.wy-aside-block { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.wy-aside-block + .wy-aside-block { margin-top: var(--gap); }

/* ============================================================
   21. RWD — 断点：768 / 1025 / 1280 / 1440
   ============================================================ */
@media (min-width: 480px) {
  .wy-card-grid { grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
  .wy-hcard-grid { grid-template-columns: repeat(3, 1fr); }
  .wy-news-grid { grid-template-columns: repeat(2, 1fr); }
  .wy-content-main { padding: var(--gap); }
  .wy-pannel-box { padding: 18px; }
}

@media (min-width: 768px) {
  .wy-card-grid { grid-template-columns: repeat(5, 1fr); }
  .wy-hcard-grid { grid-template-columns: repeat(4, 1fr); }
  .wy-news-grid { grid-template-columns: repeat(4, 1fr); }
  .wy-hm-body { grid-template-columns: repeat(4, 1fr); }
  .wy-content-main { padding: 20px 24px; }
}

@media (max-width: 1024px) {
  .wy-topbar-hamburger { display: flex; }
  .wy-topbar-logo-mobile { display: flex; }
}

@media (min-width: 1025px) {
  .wy-side-col { display: block; }
  .wy-sidebar { display: flex; }
  .wy-topbar { padding: 0 28px; }
  .wy-card-grid { grid-template-columns: repeat(6, 1fr); }
  .wy-hcard-grid { grid-template-columns: repeat(5, 1fr); }
  .wy-news-grid { grid-template-columns: repeat(5, 1fr); }
  .wy-content-main { padding: 24px 28px 40px; }
}

@media (min-width: 1280px) {
  .wy-hh-name { font-size: 26px; }
  .wy-card-grid { grid-template-columns: repeat(7, 1fr); }
  .wy-hcard-grid { grid-template-columns: repeat(6, 1fr); }
}

/* 超宽屏幕（≥1600px）：卡片墙最多撑到 8 栏，栏宽随屏宽自适应，不再无限变宽 */
@media (min-width: 1600px) {
  .wy-card-grid { grid-template-columns: repeat(8, 1fr); }
  .wy-hcard-grid { grid-template-columns: repeat(7, 1fr); }
}

/* ============================================================
   22. Section Lazy Reveal（沿用 IntersectionObserver 淡入效果 hook）
   ============================================================ */
.wy-content-block, .wy-section-box {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.wy-content-block.wy-will-observe.wy-is-visible,
.wy-section-box.wy-will-observe.wy-is-visible,
.wy-content-block:not(.wy-will-observe),
.wy-section-box:not(.wy-will-observe) {
  opacity: 1;
  transform: none;
}
