:root {
  --bg: #f7f8fc;
  --panel: #ffffff;
  --panel-soft: #fff8fb;
  --text: #202332;
  --muted: #6d7285;
  --line: #e9ebf2;
  --brand: #ff6699;
  --brand-strong: #ff4e87;
  --brand-soft: #ffe8f0;
  --shadow: 0 12px 30px rgba(24, 39, 75, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  /* 全局背景图：bj1.png（顶部轻微渐变遮罩，保证可读性） */
  background:
    radial-gradient(circle at top right, rgba(255, 102, 153, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 248, 252, 0.96) 160px, rgba(247, 248, 252, 1) 100%),
    url("/assets/custom/bj1.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text);
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(233, 235, 242, 0.85);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: transparent;
  font-size: 0;
  background: linear-gradient(135deg, var(--brand), #ff9d74);
  background-image: url("/assets/custom/SiFangACG.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 10px 20px rgba(255, 102, 153, 0.25);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: inherit;
}

/* 站点 LOGO 使用整张图，不再显示旁边文字 */
.brand {
  min-width: 0;
}

.brand-mark {
  width: 170px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-text {
  display: none !important;
}

.footer-brand .brand-mark {
  width: 190px;
  height: 46px;
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 20px;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.search-box {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 0;
  background: #f5f6fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.search-box input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  padding: 14px 18px;
}

.search-box button {
  border: 0;
  cursor: pointer;
  color: #fff;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.quick-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quick-actions a,
.quick-actions button {
  color: var(--muted);
  font-size: 13px;
}

.quick-actions button {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.quick-actions a:hover,
.quick-actions button:hover,
.main-nav a:hover,
.panel-head a:hover {
  color: var(--brand-strong);
}

.auth-trigger.is-logged-in {
  position: relative;
}

.auth-user-menu {
  position: absolute;
  z-index: 320;
  display: none;
  min-width: 124px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.auth-user-menu.is-open {
  display: block;
}

.auth-user-menu-item {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.auth-user-menu-item:hover {
  background: #f7f7f8;
}

.main-nav-wrap {
  background: transparent;
}

.main-nav {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.main-nav a {
  position: relative;
  color: #373b4e;
  font-size: 15px;
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #ffb56b);
}

.page-main {
  padding: 20px 0 36px;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}

.hero-copy,
.hero-side > .hot-search-card,
.section-block,
.api-tip-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 26px 28px;
  background:
    linear-gradient(120deg, rgba(255, 102, 153, 0.08), rgba(126, 140, 255, 0.06)),
    var(--panel);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
}

.hero-desc {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 700px;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.swap-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.ghost-btn,
.swap-btn,
.more-link {
  border: 1px solid var(--line);
  background: #fff;
}

.ghost-btn:hover,
.swap-btn:hover,
.more-link:hover {
  color: var(--brand-strong);
  border-color: #ffc7d8;
  background: var(--brand-soft);
}

.hot-search-card {
  padding: 18px;
}

.panel-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head h2,
.section-head h2 {
  margin: 0;
  font-size: 20px;
}

.panel-head a {
  color: var(--muted);
  font-size: 14px;
}

.headline-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.headline-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.headline-list b {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-size: 12px;
}

.headline-list a {
  color: #31364a;
  font-size: 14px;
  line-height: 1.5;
}

.chip-row {
  margin: 18px 0 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.chip-row > span {
  color: var(--muted);
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
}

.api-tip-box {
  margin-top: 18px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.api-tip-box strong {
  display: block;
  margin-bottom: 8px;
}

.api-tip-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

#section-container {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.section-block {
  padding: 20px;
}

.section-actions {
  display: flex;
  gap: 10px;
}

.section-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: #ffd4e1;
  box-shadow: 0 18px 30px rgba(32, 35, 50, 0.1);
}

.card-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.3)),
    linear-gradient(135deg, #ff6d98, #7d8cff);
}

.card-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.card-tag {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
}

.cover-label {
  width: 100%;
  font-size: 14px;
  font-weight: 700;
}

.card-body {
  padding: 12px;
}

.card-title {
  min-height: 42px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  margin-top: 24px;
  padding: 0 0 42px;
  background: #fff;
  border-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-grid h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.footer-grid p,
.footer-note p,
.history-box {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.history-box {
  display: flex;
  gap: 10px;
}

.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

@media (max-width: 1080px) {
  .hero-panel,
  .api-tip-box {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .topbar-inner {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .search-box {
    order: 3;
    width: 100%;
  }

  .quick-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .main-nav {
    gap: 16px;
  }

  .page-main {
    padding-top: 16px;
  }

  .hero-copy,
  .hot-search-card,
  .section-block {
    padding: 16px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-actions {
    width: 100%;
  }

  .swap-btn,
  .more-link {
    flex: 1;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

body[data-page-mode="static"] {
  background:
    radial-gradient(circle at top right, rgba(255, 102, 153, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 248, 252, 0.96) 160px, rgba(247, 248, 252, 1) 100%),
    url("/assets/custom/bj1.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

body[data-page-mode="static"] .fixed-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

body[data-page-mode="static"] .topbar {
  position: relative;
  backdrop-filter: none;
  background: #fff;
  border-bottom: 0;
}

body[data-page-mode="static"] .topbar-inner {
  min-height: 106px;
}

body[data-page-mode="static"] .main-nav {
  margin-top: 18px;
  padding: 18px 26px;
  box-shadow: none;
  border-radius: 28px;
}

body[data-page-mode="static"] .main-nav a {
  font-size: 18px;
  font-weight: 600;
}

body[data-page-mode="static"] .page-main {
  padding-top: 18px;
}

.site-intro {
  margin-bottom: 16px;
}

.site-intro h1 {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.25;
}

.headline-bullets,
body[data-page-mode="static"] .headline-list {
  margin: 0;
  padding-left: 22px;
  color: #333;
  display: grid;
  gap: 12px;
}

.headline-bullets li,
body[data-page-mode="static"] .headline-list li {
  display: list-item;
}

.headline-bullets a,
body[data-page-mode="static"] .headline-list a {
  font-size: 18px;
  line-height: 1.5;
}

body[data-page-mode="static"] .headline-list b {
  display: none;
}

.chip-row.compact {
  box-shadow: none;
  border-radius: 18px;
}

body[data-page-mode="static"] .section-block {
  box-shadow: none;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #f2f2f2;
  padding: 18px 0 24px;
}

body[data-page-mode="static"] .section-head {
  margin-bottom: 12px;
}

body[data-page-mode="static"] .section-head h2 {
  font-size: 32px;
  font-weight: 700;
}

body[data-page-mode="static"] .section-subtitle {
  display: none;
}

body[data-page-mode="static"] .section-actions {
  flex-shrink: 0;
}

body[data-page-mode="static"] .swap-btn,
body[data-page-mode="static"] .more-link {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #666;
}

body[data-page-mode="static"] .entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
}

.entry-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0;
  color: #222;
}

.entry-link:hover .entry-title {
  color: var(--brand-strong);
}

.entry-no {
  flex: 0 0 28px;
  color: #b8b8b8;
  font-size: 14px;
  line-height: 1.7;
}

.entry-title {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
  color: #2a2a2a;
}

.entry-side {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.entry-tag {
  font-style: normal;
  color: #ff6699;
  font-size: 13px;
  white-space: nowrap;
}

.entry-meta {
  font-style: normal;
  color: #999;
  font-size: 13px;
  white-space: nowrap;
}

.footer-links,
.footer-declare,
.footer-history {
  padding-top: 16px;
  padding-bottom: 4px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.footer-item h3,
.footer-declare h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.footer-item p,
.footer-declare p,
.footer-history {
  color: #666;
}

.footer-history {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-ad-section {
  margin-top: 12px;
  padding: 18px 0 26px;
}

.footer-ad-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-ad-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #2f2f2f;
}

.footer-ad-icon {
  width: 34px;
  height: 42px;
  border-radius: 10px 10px 8px 8px;
  background: linear-gradient(180deg, #ff8b4c, #ff3d4d);
  position: relative;
}

.footer-ad-icon::before {
  content: "";
  position: absolute;
  left: 9px;
  top: -10px;
  width: 16px;
  height: 20px;
  background: linear-gradient(180deg, #ffdb66, #ff7a00);
  border-radius: 50% 50% 50% 10%;
  transform: rotate(8deg);
}

.footer-ad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-ad-card {
  position: relative;
  display: block;
  min-height: 220px;
  border-radius: 10px;
  overflow: hidden;
}

.footer-ad-card .footer-ad-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-ad-card span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.footer-panel {
  margin-top: 18px;
  padding: 34px 0 26px;
  background: #f2f2f2;
}

.footer-links {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1.3fr;
  gap: 48px;
  padding-top: 0;
  padding-bottom: 0;
}

.footer-item h3,
.footer-declare h3 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 500;
  color: #666;
}

.footer-link-list,
.footer-address-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.footer-link-list a {
  color: #b7791f;
  font-size: 14px;
}

.footer-contact,
.footer-address-list a {
  color: #4d96d4;
  font-size: 14px;
  line-height: 1.9;
}

.footer-address-list {
  flex-direction: column;
  gap: 10px;
}

.footer-brand-block {
  padding: 30px 0 12px;
  display: flex;
  justify-content: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
}

.footer-brand .brand-text strong {
  font-size: 30px;
  font-weight: 900;
  color: #111;
}

.footer-brand .brand-text small {
  display: none;
}

.footer-declare {
  padding-top: 0;
  text-align: center;
}

.footer-declare p {
  margin: 0 0 10px;
  color: #666;
  font-size: 14px;
  line-height: 1.9;
}

.detail-page {
  padding: 24px 0 48px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
}

.detail-main,
.detail-side-card,
.detail-info-card,
.detail-comments {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 18px;
}

.detail-main-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.detail-main {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

/* ----- 视频详情顶图轮播（对齐 redbook .image-carousel） ----- */
.detail-image-carousel {
  position: relative;
  width: 100%;
  height: min(52vh, 400px);
  min-height: 260px;
  margin-bottom: 16px;
  background: #0a0a0f;
  border-radius: 18px 18px 0 0;
}

.detail-carousel-prompt {
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a1d28 0%, #2a2f3e 100%);
  padding: 24px 16px;
}

.detail-carousel-prompt-inner {
  text-align: center;
  max-width: 320px;
  color: #fff;
}

.detail-carousel-prompt-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.detail-carousel-prompt-msg {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.detail-carousel-prompt-price {
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.detail-carousel-prompt-price strong {
  color: var(--brand, #ff6699);
  font-size: 17px;
}

.detail-carousel-prompt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-strong, #ff4e87), var(--brand, #ff6699));
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 78, 135, 0.35);
}

.detail-carousel-prompt-btn.primary:hover {
  opacity: 0.94;
}

.detail-carousel-viewport {
  overflow: hidden;
  width: 100%;
  height: 100%;
  /* 允许横向滑动切图，避免 pan-y 抢手势 */
  touch-action: pan-x pinch-zoom;
}

.detail-carousel-track {
  display: flex;
  flex-direction: row;
  height: 100%;
  transition: transform 0.38s ease;
  will-change: transform;
}

.detail-carousel-slide {
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
  pointer-events: none;
  user-select: none;
}

.detail-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.detail-carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.62);
}

.detail-carousel-arrow--prev {
  left: 10px;
}

.detail-carousel-arrow--next {
  right: 10px;
}

.detail-carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.detail-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.detail-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.detail-carousel-dot.is-active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.15);
}

.detail-img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  cursor: zoom-out;
}

.detail-img-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
  border-radius: 4px;
}

.detail-img-lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.detail-img-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.detail-img-lightbox-nav--prev {
  left: 12px;
}

.detail-img-lightbox-nav--next {
  right: 12px;
}

.detail-img-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .detail-img-lightbox {
    padding: 44px 12px;
  }

  .detail-img-lightbox-nav {
    width: 36px;
    height: 44px;
    font-size: 22px;
  }

  .detail-img-lightbox-nav--prev {
    left: 6px;
  }

  .detail-img-lightbox-nav--next {
    right: 6px;
  }
}

.detail-player-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* 播放器与 .detail-main 主栏同宽（16:9 区域铺满） */
.note-detail-player {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  background: #000;
  border-radius: 0;
}

/* hls.js / Safari 原生：<video> 占满一行（避免默认 ~300px 宽） */
.note-detail-player > video {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  vertical-align: top;
}

/* Video.js：容器与内部 tech 拉满 */
.note-detail-player .video-js {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

.note-detail-player .video-js .vjs-tech {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.detail-player {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1d1f29, #4c5676);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.detail-login-trigger {
  margin-top: 6px;
  min-width: 96px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 78, 135, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.detail-login-trigger:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 26px rgba(255, 78, 135, 0.32);
}

.detail-login-trigger:active {
  transform: translateY(0);
}

.detail-back-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  appearance: none;
}

.detail-player-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.detail-player-actions {
  display: flex;
  gap: 14px;
}

.detail-content {
  padding: 22px;
}

.detail-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
}

.detail-tag-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-tag-row a {
  color: #222;
  font-size: 16px;
}

.detail-sub-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: #8a8a8a;
  font-size: 14px;
}

.detail-meta-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  color: #8a8a8a;
  font-size: 14px;
}

.detail-meta-row-text {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  min-width: 0;
}

.detail-download-mp4-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 102, 153, 0.45);
  background: linear-gradient(135deg, #fff8fb, #ffe8f0);
  color: var(--brand-strong, #ff4e87);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(255, 78, 135, 0.12);
}

.detail-download-mp4-btn:hover {
  opacity: 0.92;
  box-shadow: 0 6px 16px rgba(255, 78, 135, 0.18);
}

.detail-ad-slot {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2d3a, #4c5676);
  text-decoration: none;
  color: inherit;
}

.detail-ad-slot--banner {
  margin-top: 18px;
  min-height: 140px;
}

.detail-ad-slot--side {
  min-height: 170px;
}

.detail-ad-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  color: #eee;
}

.detail-ad-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.detail-ad-placeholder {
  min-height: 140px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.detail-ad-slot--side .detail-ad-placeholder {
  min-height: 170px;
}

.detail-ad-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-ad-stack .detail-ad-slot--banner {
  margin-top: 0;
}

.detail-ad-strip {
  margin: 10px 14px 2px;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.detail-ad-strip::-webkit-scrollbar {
  display: none;
}

.detail-ad-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #444;
  flex: 0 0 66px;
}

.detail-ad-strip-img {
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: #f3f3f3;
}

.detail-ad-strip-title {
  width: 66px;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #555;
}

.detail-comments-loading,
.detail-comments-empty {
  color: #888;
  font-size: 15px;
  margin: 12px 0;
}

.detail-action-row {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-action-item,
.detail-action-group a {
  color: #222;
  font-size: 15px;
}

.detail-action-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.detail-follow-btn {
  min-width: 94px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #f2c56e;
  background: #fffdf6;
  color: #d39a2c;
  cursor: pointer;
}

.detail-tag-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5ff;
  border: 1px solid #dbe6ff;
  color: #4e5f8a;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(54, 84, 180, 0.08);
}

.detail-tag-chip:hover {
  color: #ff8b2b;
  border-color: #ffd6b0;
  background: #fff4e8;
  box-shadow: 0 4px 10px rgba(255, 139, 43, 0.16);
}

.detail-banner-ad-card {
  min-height: 140px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.detail-comments {
  padding: 18px;
}

.detail-comments-head {
  padding-bottom: 10px;
  border-bottom: 3px solid #ff9440;
  width: fit-content;
}

.detail-comments-head h2 {
  margin: 0;
  font-size: 20px;
}

.detail-comment-list {
  margin-top: 18px;
  display: grid;
  gap: 20px;
}

.detail-comment-editor {
  margin-top: 14px;
  position: relative;
  background: #fff;
  border: 1px solid #f0f0f0;
  min-height: 128px;
  padding: 14px 14px 56px;
}

.detail-comment-editor--top {
  margin-top: 12px;
  margin-bottom: 4px;
}

/* 回复模式：左上角标签 + 右上角关闭叉，点击即取消回复（与 redbook 逻辑一致） */
.detail-comment-reply-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 8px 6px 8px 12px;
  background: #f3f3f3;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  font-size: 14px;
  color: #666;
}

.detail-comment-reply-tag__text {
  min-width: 0;
}

.detail-comment-reply-tag__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -2px -2px -2px 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #888;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.detail-comment-reply-tag__close:hover {
  background: #e0e0e0;
  color: #333;
}

.detail-comment-submit-btn {
  position: absolute;
  right: 16px;
  bottom: 14px;
  min-width: 96px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #dedede;
  color: #555;
  font-size: 16px;
  cursor: pointer;
}

.detail-comment-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.detail-comment-submit-btn:not(:disabled):hover {
  background: #cfcfcf;
}

.detail-comments-guest-hint .detail-comment-submit {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.detail-comments-guest-hint .detail-comment-submit:hover {
  border-color: #ff557d;
  color: #ff557d;
}

.detail-comments-guest-hint {
  margin-top: 12px;
  padding: 12px;
  background: #fafafa;
  border-radius: 12px;
  font-size: 14px;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.detail-comment-replies {
  margin: 14px 0 0;
  padding: 0 0 0 8px;
  list-style: none;
  border-left: 2px solid #f0f0f0;
  display: grid;
  gap: 16px;
}

.detail-comment-reply-btn {
  border: 0;
  padding: 0;
  background: none;
  color: #999;
  font-size: 14px;
  cursor: pointer;
}

.detail-comment-reply-btn:hover {
  color: #ff557d;
}

.detail-comment-avatar-mark {
  font-size: 12px;
  font-weight: 800;
}

.detail-comment-editor textarea {
  width: 100%;
  min-height: 54px;
  resize: vertical;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 15px;
  color: #444;
}

.detail-comment-editor textarea::placeholder {
  color: #b9b9b9;
}

/* 勿使用 .detail-comment-editor button：会把「取消」和「发送」叠在同一角导致字体重叠；仅 .detail-comment-submit-btn 绝对定位 */

.detail-comment-promos {
  margin-top: 20px;
  display: grid;
  gap: 18px;
}

.detail-comment-promo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-comment-promo-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: block;
  flex: 0 0 54px;
  overflow: hidden;
}

.detail-comment-promo-title {
  color: #efb743;
  font-size: 18px;
  line-height: 1.2;
}

.detail-comment-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.detail-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff8fa9, #8bb6ff);
  color: #fff;
  font-weight: 700;
}

.detail-comment-body {
  min-width: 0;
}

.detail-comment-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.detail-comment-item p {
  margin: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
}

.detail-comment-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #666;
  font-size: 14px;
}

.detail-comment-meta a {
  color: #222;
}

.detail-side-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.detail-side-ad {
  min-height: 170px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

.detail-side-card,
.detail-info-card {
  padding: 18px;
}

.detail-tail-recommend {
  width: 1200px;
  max-width: 100%;
  margin: 2px auto 0;
}

.detail-tail-recommend-card {
  border-radius: 18px;
  width: 100%;
}

.detail-tail-recommend-card .detail-recommend-list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.detail-tail-recommend-card .detail-recommend-item,
.detail-tail-recommend-card a.detail-recommend-link {
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}

.detail-tail-recommend-card .detail-recommend-thumb-wrap,
.detail-tail-recommend-card .detail-recommend-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.detail-tail-recommend-card .detail-recommend-thumb-img {
  object-fit: cover;
}

.detail-tail-recommend-card .detail-recommend-title {
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 4px;
  -webkit-line-clamp: 2;
}

.detail-tail-recommend-card .detail-recommend-views {
  font-size: 12px;
  gap: 4px;
}

.detail-tail-recommend-card .detail-recommend-play-icon {
  font-size: 9px;
}

@media (max-width: 1400px) {
  .detail-tail-recommend-card .detail-recommend-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .detail-tail-recommend-card .detail-recommend-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .detail-tail-recommend-card .detail-recommend-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.detail-side-card h3,
.detail-info-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list a {
  color: #333;
  line-height: 1.6;
}

.detail-list a:hover {
  color: var(--brand-strong);
}

.detail-recommend-list {
  display: grid;
  gap: 16px;
  max-height: 760px;
  overflow: auto;
  padding-right: 6px;
}

/* 右侧站长推荐：不固定高度，不出现内部滚动条（接口默认 6 条） */
.detail-side-card--recommend .detail-recommend-list {
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0;
}

.detail-side-card--recommend {
  overflow: visible !important;
  max-height: none !important;
}

.detail-recommend-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: start;
}

.detail-recommend-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
}

.detail-recommend-thumb.theme-lilac,
.detail-recommend-thumb.theme-rose,
.detail-recommend-thumb.theme-sky,
.detail-recommend-thumb.theme-night,
.detail-recommend-thumb.theme-gold,
.detail-recommend-thumb.theme-peach {
  min-height: 100%;
}

.detail-recommend-item h4 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
}

.detail-recommend-item p {
  margin: 0;
  color: #8a8a8a;
  font-size: 14px;
}

a.detail-recommend-link {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: start;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: opacity 0.15s ease;
}

a.detail-recommend-link:hover {
  opacity: 0.92;
}

.detail-recommend-link .detail-recommend-text {
  min-width: 0;
}

.detail-recommend-thumb-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f3f3f3;
}

.detail-recommend-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3f3f3;
  display: block;
}

.detail-recommend-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-recommend-views {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8a8a8a;
  font-size: 14px;
}

.detail-recommend-play-icon {
  display: inline-flex;
  font-size: 10px;
  line-height: 1;
  color: #c8c8c8;
  transform: scale(0.95);
}

.detail-recommend-empty {
  margin: 8px 0 0;
  font-size: 14px;
  color: #999;
}

.detail-recommend-item--skeleton .detail-recommend-text {
  min-width: 0;
  width: 100%;
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
}

.auth-modal.is-open {
  display: block;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.auth-modal-dialog {
  position: relative;
  width: min(680px, calc(100% - 32px));
  margin: 72px auto 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #555;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-body {
  padding: 36px 32px 28px;
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
}

.auth-modal-head {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
  padding: 5px;
  border-radius: 999px;
  background: #f4f5f7;
}

.auth-modal-tab {
  border: 0;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.auth-modal-tab.is-active {
  background: #fff;
  color: #333;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.auth-modal-status {
  min-height: 18px;
  margin: 0 0 8px;
  color: #7b7b7b;
  font-size: 13px;
  line-height: 1.5;
}

.auth-modal-status.is-error {
  color: #d64045;
}

.auth-modal-status.is-success {
  color: #1c8a43;
}

.auth-modal-label {
  display: block;
  margin: 0 0 8px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.auth-modal-title {
  margin: 0 0 12px;
  color: #333;
  font-size: 18px;
  font-weight: 700;
}

.auth-modal-input {
  width: 100%;
  height: 46px;
  margin-bottom: 14px;
  padding: 0 16px;
  border: 1px solid #ececec;
  border-radius: 999px;
  background: #fafafa;
  color: #444;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-modal-input:focus {
  border-color: rgba(231, 164, 59, 0.55);
  box-shadow: 0 0 0 4px rgba(231, 164, 59, 0.12);
  background: #fff;
}

.auth-modal-input::placeholder {
  color: #b6b6b6;
}

.auth-register-only {
  display: none;
}

.auth-modal.is-register-mode .auth-register-only {
  display: block;
}

.auth-modal-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 10px;
  align-items: stretch;
}

.auth-modal-input-captcha {
  margin-bottom: 0;
}

.auth-modal-captcha {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ececec;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  padding: 0 10px;
}

.auth-modal-captcha:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.auth-modal-captcha-image {
  display: block;
  width: 96px;
  height: 32px;
  object-fit: contain;
}

.auth-modal-captcha-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid #e7e7e7;
  border-top-color: #d3a53a;
  border-radius: 50%;
  animation: auth-modal-spin 0.7s linear infinite;
}

.auth-modal-captcha.is-loading .auth-modal-captcha-spinner {
  display: block;
}

.auth-modal-captcha.is-loading .auth-modal-captcha-image {
  display: none;
}

@keyframes auth-modal-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.auth-modal-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.auth-modal-action {
  height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff05a;
  color: #333;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.12s ease;
}

.auth-modal-action:active {
  transform: translateY(1px);
}

.auth-modal-action-login {
  background: #ffe57a;
}

.auth-modal-action-register {
  background: #fff05a;
}

.auth-modal-action:disabled,
.auth-modal-tab:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.auth-modal-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  color: #666;
  font-size: 13px;
}

.auth-modal-switch button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #c98d1f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-modal-tips {
  margin-top: 18px;
  color: #444;
  font-size: 13px;
  line-height: 1.8;
}

.auth-modal-tips p {
  margin: 0;
}

@media (max-width: 560px) {
  .auth-modal-dialog {
    width: min(560px, calc(100% - 20px));
    margin: 52px auto 0;
    border-radius: 14px;
  }

  .auth-modal-body {
    padding: 28px 16px 20px;
  }

  .auth-modal-captcha-row {
    grid-template-columns: 1fr;
  }

  .auth-modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body[data-page-mode="static"] .entry-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body[data-page-mode="static"] .main-nav a,
  .headline-bullets a,
  body[data-page-mode="static"] .headline-list a,
  .entry-title {
    font-size: 16px;
  }

  body[data-page-mode="static"] .section-head h2,
  .site-intro h1,
  .detail-title {
    font-size: 24px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

body[data-page-mode="static"] .container {
  width: min(1200px, calc(100% - 24px));
}

body[data-page-mode="static"] .topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
}

body[data-page-mode="static"] .brand {
  min-width: 210px;
  gap: 10px;
}

body[data-page-mode="static"] .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff557d, #ffc657);
  box-shadow: 0 8px 20px rgba(255, 170, 80, 0.3);
}

body[data-page-mode="static"] .brand-text strong {
  font-size: 24px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
}

body[data-page-mode="static"] .brand-text small {
  display: none;
}

body[data-page-mode="static"] .search-box {
  flex: 1;
  max-width: none;
  min-height: 44px;
  background: #f7f7f7;
  border: 1px solid #f3f3f3;
  box-shadow: none;
  border-radius: 999px;
}

body[data-page-mode="static"] .search-box input {
  padding: 0 20px 0 32px;
  font-size: 16px;
  color: #666;
}

body[data-page-mode="static"] .search-box button {
  min-width: 70px;
  width: 70px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  font-size: 0;
  white-space: nowrap;
  flex: 0 0 70px;
}

body[data-page-mode="static"] .search-box button::before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7a43b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
}

body[data-page-mode="static"] .quick-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

body[data-page-mode="static"] .quick-actions a,
body[data-page-mode="static"] .quick-actions button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #e6a53d;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.quick-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.quick-icon-phone::before {
  content: "";
  position: absolute;
  inset: 1px 5px;
  border: 2px solid #e6a53d;
  border-radius: 5px;
}

.quick-icon-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 6px;
  height: 2px;
  background: #e6a53d;
  transform: translateX(-50%);
  border-radius: 2px;
}

.quick-icon-star::before {
  content: "☆";
  position: absolute;
  inset: 0;
  color: #e6a53d;
  font-size: 28px;
  line-height: 24px;
  text-align: center;
}

/* 与侧栏 tool-icon-clock 同构，配色与顶栏金棕一致 */
.quick-icon.quick-icon-history {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin: 2px auto;
  border: 2px solid #e6a53d;
  border-radius: 50%;
}

.quick-icon-history::before,
.quick-icon-history::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #e6a53d;
  border-radius: 999px;
  transform-origin: top center;
}

.quick-icon-history::before {
  width: 2px;
  height: 5px;
  transform: translate(-50%, -100%);
}

.quick-icon-history::after {
  width: 2px;
  height: 4px;
  transform: translate(-50%, -100%) rotate(75deg);
}

.quick-icon-user::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid #e6a53d;
  border-radius: 50%;
  transform: translateX(-50%);
}

.quick-icon-user::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 10px;
  border: 2px solid #e6a53d;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  transform: translateX(-50%);
}

body[data-page-mode="static"] .main-nav-wrap {
  border-bottom: 1px solid #f0f0f0;
  border-top: 0;
  margin-top: 0;
}

body[data-page-mode="static"] .main-nav {
  margin-top: 0;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 28px;
}

body[data-page-mode="static"] .main-nav a {
  padding-bottom: 11px;
  font-size: 17px;
  font-weight: 600;
}

body[data-page-mode="static"] .main-nav a.is-active::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #ffb14a;
}

body[data-page-mode="static"] .page-main {
  padding-top: 150px;
}

body[data-page-mode="detail"] {
  background:
    radial-gradient(circle at top right, rgba(255, 102, 153, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 248, 252, 0.96) 160px, rgba(247, 248, 252, 1) 100%),
    url("/assets/custom/bj1.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

body[data-page-mode="detail"] .fixed-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

body[data-page-mode="detail"] .topbar {
  position: relative;
  backdrop-filter: none;
  background: #fff;
  border-bottom: 0;
}

body[data-page-mode="detail"] .container {
  width: min(1200px, calc(100% - 24px));
}

body[data-page-mode="detail"] .topbar-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 18px;
}

body[data-page-mode="detail"] .brand {
  min-width: 235px;
  gap: 14px;
}

body[data-page-mode="detail"] .brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff557d, #ffc657);
  box-shadow: 0 8px 20px rgba(255, 170, 80, 0.3);
}

body[data-page-mode="detail"] .brand-text strong {
  font-size: 27px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
}

body[data-page-mode="detail"] .brand-text small {
  display: none;
}

body[data-page-mode="detail"] .search-box {
  flex: 1;
  max-width: none;
  min-height: 48px;
  background: #f7f7f7;
  border: 1px solid #f3f3f3;
  box-shadow: none;
  border-radius: 999px;
}

body[data-page-mode="detail"] .search-box input {
  padding: 0 26px 0 38px;
  font-size: 16px;
  color: #666;
}

body[data-page-mode="detail"] .search-box button {
  min-width: 70px;
  width: 70px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  font-size: 0;
  white-space: nowrap;
  flex: 0 0 70px;
}

body[data-page-mode="detail"] .search-box button::before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7a43b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
}

body[data-page-mode="detail"] .quick-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

body[data-page-mode="detail"] .quick-actions a,
body[data-page-mode="detail"] .quick-actions button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #e6a53d;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

body[data-page-mode="detail"] .main-nav-wrap {
  border-bottom: 1px solid #f0f0f0;
  border-top: 0;
  margin-top: 0;
}

body[data-page-mode="detail"] .main-nav {
  margin-top: 0;
  padding: 12px 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 40px;
}

body[data-page-mode="detail"] .main-nav a {
  padding-bottom: 15px;
  font-size: 17px;
  font-weight: 600;
}

body[data-page-mode="detail"] .main-nav a.is-active::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #ffb14a;
}

body[data-page-mode="detail"] .page-main {
  padding-top: 194px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 1.58fr;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-main-card,
.hero-small-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #1f2230;
}

.hero-main-card {
  min-height: 270px;
}

.hero-main-card::before,
.hero-small-card::before,
.visual-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.22));
}

.hero-main-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 20px 16px;
  color: #fff;
}

.hero-main-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 14px;
}

.hero-main-title {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.hero-dots span,
.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot {
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.hero-side-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.hero-small-card {
  min-height: 128px;
  background: #1f2230;
}

.hero-small-media {
  position: absolute;
  inset: 0;
  background-color: #1f2230;
  background-image: url("/assets/custom/bj1.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
}

.hero-small-media-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* 外层：只负责底部留白，不要把 line-clamp 和 padding 写在同一层 */
.hero-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px 12px;
  box-sizing: border-box;
  pointer-events: none;
}

/* 内层：单独两行截断（padding 在外层，避免 WebKit 行盒算错） */
.hero-card-title-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  max-height: calc(1.45em * 2);
}

/* ========== 加载态：柔和 shimmer + 三点律动（首页 / 列表共用） ========== */
.loading-shimmer {
  position: relative;
  overflow: hidden;
  background-color: #f2f1f8;
  background-image:
    linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.42) 24%,
      rgba(255, 255, 255, 0.62) 50%,
      rgba(255, 255, 255, 0.42) 76%,
      rgba(255, 255, 255, 0.18) 100%
    ),
  url("/assets/custom/bj1.png");
  background-size: 240% 100%, min(65%, 180px) auto;
  background-position: 130% 0, center;
  background-repeat: no-repeat, no-repeat;
  animation: loading-shimmer-wave 2.6s ease-in-out infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

@keyframes loading-shimmer-wave {
  0% {
    background-position: 130% 0, center;
  }
  100% {
    background-position: -130% 0, center;
  }
}

.loading-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 28px auto 12px;
  padding: 0 20px;
}

.loading-status--home {
  margin-top: 20px;
}

/* 分类列表：加载提示贴在「排序」下方、进度条与骨架网格上方 */
.loading-status--list-top {
  margin: 2px 0 0;
  padding: 10px 0 12px;
  gap: 10px;
}

.loading-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 22px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand-strong), var(--brand));
  box-shadow: 0 2px 8px rgba(255, 78, 135, 0.35);
  animation: loading-dot-pulse 1.35s ease-in-out infinite both;
}

.loading-dot:nth-child(1) {
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes loading-dot-pulse {
  0%,
  70%,
  100% {
    transform: scale(0.55);
    opacity: 0.35;
  }
  35% {
    transform: scale(1);
    opacity: 1;
  }
}

.loading-caption {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #8b92a8;
}

/* ========== 首页骨架屏（与 hero-grid + visual 区块一致，非分类列表页） ========== */
.home-page-skeleton {
  pointer-events: none;
}

.home-sk-hero-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-sk-hero-banner {
  min-height: 270px;
  border-radius: 10px;
  width: 100%;
}

.home-sk-hero-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.home-sk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
}

.home-sk-hero-small {
  min-height: 128px;
  border-radius: 10px;
  width: 100%;
}

.home-sk-title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.home-sk-title-line {
  display: block;
  height: 22px;
  max-width: 260px;
  border-radius: 8px;
}

.home-sk-title-sub {
  display: block;
  height: 14px;
  max-width: 170px;
  border-radius: 6px;
  opacity: 0.9;
}

.home-sk-more-pill {
  width: 72px;
  height: 36px;
  border-radius: 999px;
  flex-shrink: 0;
}

.home-sk-visual-card {
  min-width: 0;
}

.home-sk-thumb {
  aspect-ratio: 295 / 195;
  border-radius: 10px;
  width: 100%;
}

.home-sk-line {
  display: block;
  height: 13px;
  margin-top: 10px;
  border-radius: 6px;
  width: 92%;
}

.home-sk-line.short {
  width: 58%;
  margin-top: 6px;
}

.visual-section-container {
  display: grid;
  gap: 22px;
}

.visual-section {
  padding-bottom: 8px;
}

.visual-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.visual-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.visual-title-wrap h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  color: #303030;
}

.visual-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: 0 0 32px;
}

.icon-a {
  background: linear-gradient(135deg, #8aa7ff, #ffc89a);
}

.icon-b {
  background: linear-gradient(135deg, #f89ab8, #ffd86e);
}

.icon-c {
  background: linear-gradient(135deg, #ffa76b, #ff69a1);
}

.icon-d {
  background: linear-gradient(135deg, #88d1ff, #8d85ff);
}

.icon-e {
  background: linear-gradient(135deg, #b6d873, #6ecec4);
}

.visual-swap {
  border: 0;
  background: transparent;
  color: #9a9a9a;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.visual-swap:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.visual-card-grid--loading {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.visual-swap-icon {
  display: inline-flex;
  font-size: 15px;
  line-height: 1;
}

.visual-swap-icon.is-spinning {
  animation: visual-swap-spin 0.9s linear infinite;
}

@keyframes visual-swap-spin {
  to {
    transform: rotate(360deg);
  }
}

.visual-more {
  min-width: 88px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffe9cc;
  color: #d89a36;
  font-size: 14px;
  font-weight: 500;
}

.visual-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 14px;
}

/* 分类 layoutType=1：竖版封面，一行多列（参考里番/漫画条漫） */
.visual-card-grid.visual-card-grid--vertical {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 12px;
}

.visual-card {
  display: block;
  min-width: 0;
  border-radius: 12px;
  transition: transform 0.18s ease, filter 0.18s ease;
  will-change: transform;
}

.visual-card:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 12px 24px rgba(24, 39, 75, 0.14));
}

.visual-thumb {
  position: relative;
  aspect-ratio: 295 / 195;
  border-radius: 10px;
  overflow: hidden;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #eef1f7;
  background-image: url("/assets/custom/bj1.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* 首页内容块：横版封面降低高度，避免卡片显得过高 */
.visual-section .visual-thumb:not(.visual-thumb--vertical) {
  aspect-ratio: 295 / 170;
}

.visual-thumb-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background-color: transparent;
  transition: opacity 0.18s ease;
}

.visual-thumb-hover-img {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.visual-corner-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.visual-corner-badge--vip {
  background: linear-gradient(135deg, #7c6bff 0%, #a27bff 100%);
}

.visual-corner-badge--price {
  background: linear-gradient(135deg, #ff8a2a 0%, #ff5f2f 100%);
}

.visual-thumb.visual-thumb--vertical {
  aspect-ratio: 3 / 4;
}

.visual-card:hover .visual-thumb-hover-img,
.visual-thumb:hover .visual-thumb-hover-img {
  opacity: 1;
}

.visual-card:hover .visual-thumb {
  transform: scale(1.025);
  box-shadow: 0 14px 28px rgba(24, 39, 75, 0.14);
}

/* 标题最多 2 行，超出省略号（grid 子项需 min-width:0 才能截断） */
.visual-card-title {
  margin: 8px 0 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #2f2f2f;
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.hero-main-card,
.hero-small-card,
.footer-ad-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  will-change: transform;
}

.hero-main-card:hover,
.hero-small-card:hover,
.footer-ad-card:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 12px 24px rgba(24, 39, 75, 0.14));
}

@media (prefers-reduced-motion: reduce) {
  .visual-card,
  .visual-thumb,
  .hero-main-card,
  .hero-small-card,
  .footer-ad-card {
    transition: none !important;
  }
}

.side-tools {
  position: fixed;
  right: 68px;
  top: 54%;
  z-index: 90;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
}

.side-tool {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #9fd8ff;
  box-shadow: 0 4px 12px rgba(85, 150, 205, 0.22);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.side-tool.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.tool-icon {
  position: relative;
  display: block;
}

.tool-icon-clock {
  width: 22px;
  height: 22px;
  border: 2px solid #2296df;
  border-radius: 50%;
}

.tool-icon-clock::before,
.tool-icon-clock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #2296df;
  border-radius: 999px;
  transform-origin: top center;
}

.tool-icon-clock::before {
  width: 2px;
  height: 7px;
  transform: translate(-50%, -100%);
}

.tool-icon-clock::after {
  width: 2px;
  height: 6px;
  transform: translate(-50%, -100%) rotate(90deg);
}

.tool-icon-up {
  width: 22px;
  height: 22px;
}

.tool-icon-up::before,
.tool-icon-up::after {
  content: "";
  position: absolute;
  left: 50%;
  background: #2296df;
  border-radius: 999px;
}

.tool-icon-up::before {
  width: 3px;
  height: 18px;
  top: 2px;
  transform: translateX(-50%);
}

.tool-icon-up::after {
  width: 10px;
  height: 10px;
  top: 1px;
  border-top: 3px solid #2296df;
  border-left: 3px solid #2296df;
  background: transparent;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 1px;
}

.theme-peach {
  background:
    linear-gradient(135deg, rgba(255, 195, 166, 0.95), rgba(195, 166, 255, 0.82)),
    linear-gradient(180deg, #ffd9c8, #d6ccff);
}

.theme-lilac {
  background:
    linear-gradient(135deg, rgba(160, 202, 255, 0.9), rgba(218, 178, 255, 0.86)),
    linear-gradient(180deg, #cbe4ff, #e7d2ff);
}

.theme-rose {
  background:
    linear-gradient(135deg, rgba(255, 182, 195, 0.92), rgba(255, 220, 170, 0.84)),
    linear-gradient(180deg, #ffd6df, #ffe5bd);
}

.theme-sky {
  background:
    linear-gradient(135deg, rgba(154, 214, 255, 0.94), rgba(152, 176, 255, 0.9)),
    linear-gradient(180deg, #d6f0ff, #dbe0ff);
}

.theme-gold {
  background:
    linear-gradient(135deg, rgba(255, 217, 145, 0.94), rgba(255, 179, 142, 0.88)),
    linear-gradient(180deg, #ffe9b7, #ffd2b5);
}

.theme-night {
  background:
    linear-gradient(135deg, rgba(55, 60, 92, 0.95), rgba(137, 80, 115, 0.88)),
    linear-gradient(180deg, #485079, #9f6f88);
}

@media (max-width: 1280px) {
  body[data-page-mode="static"] .container {
    width: min(100% - 20px, 1200px);
  }

  body[data-page-mode="detail"] .container {
    width: min(100% - 20px, 1200px);
  }

  .visual-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body[data-page-mode="static"] .page-main {
    padding-top: 212px;
  }

  body[data-page-mode="detail"] .page-main {
    padding-top: 212px;
  }

  body[data-page-mode="static"] .quick-actions {
    gap: 12px;
  }

  body[data-page-mode="detail"] .quick-actions {
    gap: 12px;
  }

  .hero-grid,
  .hero-side-grid {
    grid-template-columns: 1fr;
  }

  .visual-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-ad-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body[data-page-mode="static"] .fixed-head {
    position: static;
    box-shadow: none;
  }

  body[data-page-mode="detail"] .fixed-head {
    position: static;
    box-shadow: none;
  }

  body[data-page-mode="static"] .page-main {
    padding-top: 24px;
  }

  body[data-page-mode="detail"] .page-main {
    padding-top: 24px;
  }

  body[data-page-mode="static"] .topbar-inner {
    gap: 12px;
  }

  body[data-page-mode="detail"] .topbar-inner {
    gap: 12px;
  }

  body[data-page-mode="static"] .brand {
    min-width: 0;
  }

  body[data-page-mode="detail"] .brand {
    min-width: 0;
  }

  body[data-page-mode="static"] .quick-actions a,
  body[data-page-mode="static"] .quick-actions button {
    font-size: 12px;
  }

  body[data-page-mode="detail"] .quick-actions a,
  body[data-page-mode="detail"] .quick-actions button {
    font-size: 12px;
  }

  .visual-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .visual-title-wrap {
    flex-wrap: wrap;
  }

  .visual-more {
    min-width: 72px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

  .visual-card-title {
    font-size: 11px;
    line-height: 1.35;
  }

  .side-tools {
    right: 18px;
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .side-tool {
    width: 48px;
    height: 48px;
  }

  .footer-ad-head h2 {
    font-size: 22px;
  }

  .footer-link-list {
    gap: 12px 18px;
  }

  .footer-brand .brand-text strong {
    font-size: 26px;
  }
}

/* 主导航下主内容槽：路由切换时在中间层叠 loading，顶栏保持不动 */
.site-main-slot {
  position: relative;
  min-height: 120px;
}

.site-main-pending-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 250, 252, 0.9) 42%,
    rgba(247, 249, 255, 0.93) 100%
  );
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  animation: site-main-fade-in 0.22s ease-out;
}

.site-main-pending-inner {
  pointer-events: none;
}

@keyframes site-main-fade-in {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

.content-route-loading {
  padding-bottom: 8px;
}

/* ========== 分类列表页 /video/?parentId=（中间内容区，顶底沿用 SiteShell） ========== */
.category-list-page {
  padding-bottom: 32px;
}

/* 覆盖 body .page-main 的顶栏留白（含各断点），分类列表主内容顶距固定 135px */
body[data-page-mode="static"] .page-main.category-list-page,
body[data-page-mode="detail"] .page-main.category-list-page {
  padding-top: 135px;
}

.category-list-section {
  padding-top: 8px;
}

.category-list-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.category-list-toolbar--sort {
  margin-top: 2px;
  margin-bottom: 10px;
}

.category-list-toolbar--subs {
  margin-bottom: 4px;
}

.category-list-toolbar-label {
  font-size: 15px;
  font-weight: 600;
  color: #303030;
}

.category-list-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-sort-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  background: #f0f0f0;
  color: #444;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.category-sort-pill:hover {
  background: #e4e4e4;
}

.category-sort-pill.is-active {
  background: #fff3cd;
  color: #b8860b;
  font-weight: 600;
}

.category-list-meta {
  font-size: 13px;
  color: #888;
  margin: 0 0 16px;
}

.collection-list-head .category-list-meta {
  margin-bottom: 10px;
}

.collection-list-intro {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7f8fc;
  border: 1px solid var(--line, #e9ebf2);
}

.collection-list-intro-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #202332);
}

.collection-list-intro-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted, #6d7285);
  white-space: pre-wrap;
  word-break: break-word;
}

.collection-api-field-names {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1e1e2e;
  border: 1px solid #3d3d52;
}

.collection-api-field-names-title {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #c8c8d4;
}

.collection-api-field-names-title code {
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #2a2a3c;
  color: #ffb86c;
}

.collection-api-field-names-pre {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #e8e8f0;
  overflow: auto;
  max-height: 280px;
  white-space: pre-wrap;
  word-break: break-word;
}

.category-list-meta--skeleton {
  min-height: 20px;
  margin-bottom: 14px;
}

.category-list-meta-line {
  display: inline-block;
  width: 180px;
  height: 14px;
  border-radius: 6px;
}

.category-pagination--skeleton {
  justify-content: center;
  margin-top: 20px;
  gap: 8px;
}

.category-page-num-skel {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-block;
}

.category-list-body-skeleton {
  min-height: 200px;
}

/* 切换分类/排序/分页后、新数据就绪前：整块内容区占位，避免高度塌缩 */
.category-list-body-pending {
  min-height: 280px;
}

.category-list-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.visual-card-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: #999;
  line-height: 1.35;
}

.category-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.category-page-btn,
.category-page-num {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  background: #f5f5f5;
  color: #444;
  text-decoration: none;
}

.category-page-btn:hover,
.category-page-num:hover {
  background: #ebebeb;
}

.category-page-num.is-active {
  background: #ffb74d;
  color: #fff;
  font-weight: 600;
}

.category-page-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.category-page-ellipsis {
  padding: 0 4px;
  color: #999;
}

.category-list-empty {
  padding: 48px 0;
  text-align: center;
  color: #666;
}

.category-list-empty a {
  color: #d89a36;
  font-weight: 600;
}

/* 分类列表加载中（Suspense fallback） */
.category-list-section--loading {
  min-height: 320px;
}

.category-list-toolbar--skeleton {
  opacity: 0.85;
}

.category-sort-pill--skeleton {
  width: 72px;
  height: 32px;
  padding: 0;
  border: 0;
}

.category-list-loading-bar {
  position: relative;
  height: 3px;
  border-radius: 999px;
  margin-bottom: 18px;
  max-width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 102, 153, 0.06), rgba(255, 102, 153, 0.14), rgba(255, 102, 153, 0.06));
}

.category-list-loading-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 102, 153, 0.95), transparent);
  box-shadow: 0 0 12px rgba(255, 102, 153, 0.45);
  animation: category-loading-bar-glide 1.85s ease-in-out infinite;
}

@keyframes category-loading-bar-glide {
  0% {
    transform: translateX(0);
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(420%);
    opacity: 0.65;
  }
}

.category-list-skeleton-grid {
  gap: 16px;
}

.category-skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-skeleton-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
}

.category-skeleton-line {
  height: 12px;
  border-radius: 6px;
  width: 88%;
}

.category-skeleton-line.short {
  width: 52%;
}

@media (max-width: 1280px) {
  .category-list-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .category-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .category-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========== 永久地址页 /permanent ========== */
body[data-page-mode="static"] .page-main.permanent-page {
  padding-top: 135px;
  padding-bottom: 48px;
}

.permanent-page-header {
  margin-bottom: 20px;
}

.permanent-page-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.permanent-page-desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.permanent-page-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.permanent-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.permanent-card--warn {
  border-color: rgba(255, 120, 140, 0.35);
  background: linear-gradient(165deg, #fff 0%, #fff8fb 100%);
}

.permanent-card--email {
  border-color: rgba(80, 140, 255, 0.25);
  background: linear-gradient(165deg, #fff 0%, #f7f9ff 100%);
}

.permanent-warn-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  color: #c62828;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}

.permanent-warn-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffebee;
  color: #c62828;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}

.permanent-h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.permanent-camera {
  margin-right: 6px;
}

.permanent-sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.permanent-block + .permanent-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(233, 235, 242, 0.95);
}

.permanent-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.permanent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.permanent-row-main {
  flex: 1 1 220px;
  min-width: 0;
  word-break: break-all;
}

.permanent-row-main a {
  color: #1565c0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.permanent-row-main a:hover {
  color: #0d47a1;
}

.permanent-copy-btn {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

.permanent-copy-btn:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.permanent-copy-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.permanent-copy-hint {
  font-size: 12px;
  color: #2e7d32;
}

.permanent-muted {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.permanent-email {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1565c0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.permanent-extra {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.permanent-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}

.permanent-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  word-break: break-all;
}

@media (max-width: 600px) {
  .permanent-page-title {
    font-size: 22px;
  }

  .permanent-card {
    padding: 16px 14px;
  }
}

/* ========== 顶栏搜索弹层（对齐 redbook Search + hashtag / recommend） ========== */
.search-box.search-box--trigger {
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.search-box--trigger .search-box-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 20px 0 32px;
  font-size: 16px;
  color: #999;
  min-height: 44px;
}

.search-box-trigger-icon {
  flex: 0 0 70px;
  width: 70px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.search-box-trigger-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7a43b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
}

body[data-page-mode="detail"] .search-box--trigger .search-box-placeholder,
body[data-page-mode="static"] .search-box--trigger .search-box-placeholder {
  padding: 0 20px 0 32px;
}

.search-panel-sr-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.search-panel-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
  box-sizing: border-box;
}

.search-panel-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(20, 24, 36, 0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.search-panel-sheet {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(24, 39, 75, 0.18);
}

.search-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.search-panel-form {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f6fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
}

.search-panel-input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 15px;
  min-width: 0;
}

.search-panel-submit {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.search-panel-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f0f2f8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.search-panel-body {
  overflow: auto;
  padding: 16px 18px 20px;
  min-height: 200px;
}

.search-panel-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  gap: 18px;
  padding: 24px 16px 32px;
  box-sizing: border-box;
}

.search-panel-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 102, 153, 0.22);
  border-top-color: var(--brand-strong);
  border-radius: 50%;
  animation: search-panel-spin 0.75s linear infinite;
}

@keyframes search-panel-spin {
  to {
    transform: rotate(360deg);
  }
}

.search-panel-loading-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.search-panel-section {
  margin-bottom: 22px;
}

.search-panel-section:last-child {
  margin-bottom: 0;
}

.search-panel-h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.search-panel-muted {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.search-hot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.search-hot-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: #f7f8fc;
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}

.search-hot-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  color: #fff;
}

.search-hot-badge--hot {
  background: linear-gradient(135deg, #ff8a4a, #ff6b35);
}

.search-hot-badge--new {
  background: linear-gradient(135deg, #ff6699, #ff4e87);
}

.search-tags-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.search-tags-head .search-panel-h3 {
  margin: 0;
}

.search-tags-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}

.search-tags-more:hover {
  color: var(--brand-strong);
}

.search-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.search-tag-link {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  color: #1565c0;
  text-decoration: none;
}

.search-tag-link:hover {
  text-decoration: underline;
}

.search-rec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 12px;
}

.search-rec-card {
  display: block;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button.search-rec-card {
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.search-rec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 39, 75, 0.1);
}

.search-rec-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eceef5;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.search-rec-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eceef5;
  display: block;
}

.search-rec-thumb--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8ebf4, #f3f0ff);
}

.search-rec-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
}

.search-rec-meta {
  padding: 8px 2px 0;
}

.search-rec-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-rec-sub {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.search-rec-date {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .search-rec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel-root {
    padding-top: 56px;
  }
}

body[data-page-mode="static"] .page-main.search-result-page {
  padding-top: 135px;
  padding-bottom: 48px;
}

.search-result-h1 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 800;
}

.search-result-empty {
  color: var(--muted);
  font-size: 15px;
}

.search-rec-grid--page {
  margin-top: 8px;
}

/* 搜索页：先出骨架 + 居中 loading，再替换为结果 */
.search-result-loading-block {
  margin-top: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.search-result-loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 16px 28px;
  width: 100%;
  min-height: 180px;
  box-sizing: border-box;
}

.search-result-loading-text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.search-result-skeleton-grid {
  pointer-events: none;
}

.search-result-skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-skeleton-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  width: 100%;
}

.search-result-skeleton-line {
  height: 14px;
  border-radius: 7px;
  width: 92%;
}

.search-result-skeleton-line.short {
  width: 55%;
}

/* ========== 顶栏「手机版」双二维码下载 ========== */
.quick-action-dropdown {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quick-action-dropdown-trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: inherit;
  white-space: nowrap;
}

.mobile-download-popover {
  position: absolute;
  z-index: 340;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 24px));
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(233, 235, 242, 0.95);
  box-shadow: 0 18px 48px rgba(24, 39, 75, 0.16);
  text-align: center;
}

.mobile-download-popover-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.mobile-download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: start;
}

.mobile-download-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-download-qr-wrap {
  padding: 8px;
  border-radius: 12px;
  background: #fafbfe;
  border: 1px solid var(--line);
}

.mobile-download-qr {
  display: block;
  width: 180px;
  height: 180px;
  max-width: min(180px, 100%);
  object-fit: contain;
}

.mobile-download-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.mobile-download-link {
  font-size: 12px;
  color: #1565c0;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.mobile-download-link:hover {
  color: #0d47a1;
}

@media (max-width: 480px) {
  .mobile-download-grid {
    grid-template-columns: 1fr;
  }

  .mobile-download-popover {
    right: 50%;
    transform: translateX(50%);
  }
}

/* ========== 我的收藏 / 浏览记录：列表区与 `/video` 分类列表共用 visual-card-grid；仅「加载更多」独立样式 ========== */

.profile-history-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.profile-history-more-btn {
  min-width: 120px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line, #e8eaf0);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.profile-history-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-history-no-more {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted, #888);
}

.side-tools .side-tool {
  text-decoration: none;
  color: inherit;
}

/* 首页黑料区块（HomePageContent） */
.black-section {
  margin-bottom: 10px;
}

.black-fire-icon {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.black-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
}

.black-loading-wrap {
  grid-column: 1 / -1;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.black-loading-spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(255, 164, 69, 0.28);
  border-top-color: #ff8b2b;
  animation: black-loading-spin 0.85s linear infinite;
}

.black-loading-text {
  margin: 0;
  font-size: 13px;
  color: #8e8e8e;
  text-align: center;
}

.black-card {
  position: relative;
  min-height: 140px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: #1f1f1f;
}

.black-card-bg {
  position: absolute;
  inset: 0;
}

.black-card-media-grid {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 1px;
  opacity: 0.95;
}

.black-card-media {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

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

.black-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}

.black-card-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.24) 65%);
}

.black-card-content {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
}

.black-card-title {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.black-card-meta {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

@media (max-width: 980px) {
  .black-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .black-card-list {
    grid-template-columns: 1fr;
  }
}

@keyframes black-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 图片 contain 留白时：分类卡片底图统一使用站点 logo（覆盖 theme 渐变底） */
.visual-thumb.theme-lilac,
.visual-thumb.theme-rose,
.visual-thumb.theme-sky,
.visual-thumb.theme-gold,
.visual-thumb.theme-night,
.visual-thumb.theme-peach {
  background-image: url("/assets/custom/bj1.png") !important;
  background-color: #eef1f7 !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 100% auto !important;
}

/* 品牌区统一使用整图 logo */
.brand {
  min-width: 0;
}

.brand-mark {
  width: 170px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 0;
}

.brand-text {
  display: none !important;
}

.footer-brand .brand-mark {
  width: 190px;
  height: 46px;
}

body[data-page-mode="static"] .brand-mark,
body[data-page-mode="detail"] .brand-mark {
  width: 170px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page-mode="static"] .footer-brand .brand-mark,
body[data-page-mode="detail"] .footer-brand .brand-mark {
  width: 190px;
  height: 46px;
}

body[data-page-mode="static"] .brand-text,
body[data-page-mode="detail"] .brand-text {
  display: none !important;
}

/* ===== 全站年龄确认（高于登录弹层） ===== */
body.age-gate-open {
  overflow: hidden;
}

.age-gate-root {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.age-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 20, 32, 0.72);
  backdrop-filter: blur(10px);
}

.age-gate-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  border-radius: var(--radius-md, 16px);
  background: var(--panel, #fff);
  box-shadow: var(--shadow, 0 12px 30px rgba(24, 39, 75, 0.12));
  border: 1px solid var(--line, #e9ebf2);
  text-align: center;
}

.age-gate-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}

.age-gate-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text, #202332);
}

.age-gate-text {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text, #202332);
}

.age-gate-hint {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted, #6d7285);
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.age-gate-btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.age-gate-btn:active {
  transform: scale(0.99);
}

.age-gate-btn--primary {
  background: linear-gradient(135deg, var(--brand-strong, #ff4e87), var(--brand, #ff6699));
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 78, 135, 0.35);
}

.age-gate-btn--primary:hover {
  opacity: 0.95;
}

.age-gate-btn--ghost {
  background: var(--brand-soft, #ffe8f0);
  color: var(--brand-strong, #ff4e87);
}

.age-gate-btn--ghost:hover {
  opacity: 0.92;
}
