/* ============================================================

   EMBER GOLD — global-theme5-emberGold.css

   Design: Ultra-dark warm bg / Amber-gold accent / Editorial luxury

   ============================================================ */



/* ── 1. CSS VARIABLES ───────────────────────────────────────── */

:root {

  /* Backgrounds — warm near-black */

  --bg-base:      #0b0900;

  --bg-surface:   #141008;

  --bg-elevated:  #1e1a0c;

  --bg-overlay:   rgba(11,9,0,0.84);

  --bg-card:      #1a1508;



  /* Accent — Amber Gold */

  --accent:       #f59e0b;

  --accent-dark:  #d97706;

  --accent-deep:  #b45309;

  --accent-light: #fcd34d;

  --accent-pale:  #1c1500;

  --accent-glow:  rgba(245,158,11,0.18);

  --accent-bg:    rgba(245,158,11,0.08);



  /* Text */

  --text-primary:   #ffffff;

  --text-secondary: #ffffff;

  --text-muted:     #b8a890;

  --text-light:     #5a5040;

  --text-faint:     #5a5040;



  /* Borders — warm dark */

  --border:       #2a2010;

  --border-md:    #3a3018;

  --border-dark:  #4a4020;



  /* Danger / Warning */

  --color-danger:  #ef4444;

  --color-warning: #f59e0b;



  /* Radius */

  --radius-sm: 4px;

  --radius-md: 8px;

  --radius-lg: 14px;



  /* Shadows */

  --shadow-xs:     0 1px 3px  rgba(0,0,0,0.55);

  --shadow-sm:     0 2px 8px  rgba(0,0,0,0.65);

  --shadow-md:     0 4px 20px rgba(0,0,0,0.55);

  --shadow-accent: 0 6px 24px var(--accent-glow);



  /* Transitions */

  --transition-fast: 0.15s ease;

  --transition-base: 0.25s ease;

  --touch-target: 44px;

}



/* ── 2. RESET ───────────────────────────────────────────────── */

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

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



.container {

  width: 100%;

  max-width: 1200px;

  margin: 0 auto;

}



body {

  background: var(--bg-base);

  color: var(--text-primary);

  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",

               "Noto Sans SC", "Microsoft YaHei", sans-serif;

  font-size: 16px; line-height: 1.6;

  overflow-x: hidden;

}

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

img { display: block; width: 100%; }

ul, ol { list-style: none; }



/* ── 3. HEADER ──────────────────────────────────────────────── */

.site-header {

  background: var(--bg-surface);

  border-bottom: 1px solid var(--border);

  /* subtle gold shimmer on top edge */

  box-shadow: 0 1px 0 var(--border-md), inset 0 1px 0 rgba(245,158,11,0.08);

}

.header-row1 {

  display: flex; align-items: center;

  justify-content: space-between;

  padding: 0 14px; height: 44px;

}

.site-logo {

  font-size: 1.15rem; font-weight: 900;

  color: var(--accent); letter-spacing: 0.05em;

  text-decoration: none;

  /* gold text glow */

  text-shadow: 0 0 18px rgba(245,158,11,0.45);

}

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {

  height: 30px; padding: 0 12px;

  border-radius: var(--radius-sm);

  background: var(--bg-elevated);

  border: 1px solid var(--border-md);

  display: inline-flex; align-items: center; justify-content: center;

  font-size: 0.78rem; font-weight: 700;

  cursor: pointer; color: var(--text-secondary);

  transition: all var(--transition-fast);

  letter-spacing: 0.04em;

}

.icon-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }



/* PC 搜索框 */

.search-box-pc {

  display: none;

  align-items: center;

  background: var(--bg-elevated);

  border: 1px solid var(--border-md);

  border-radius: 20px;

  overflow: hidden; height: 34px;

  transition: border-color var(--transition-fast);

}

.search-box-pc:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.search-box-pc input {

  flex: 1; background: transparent; border: none; outline: none;

  color: var(--text-primary); font-size: 0.82rem; padding: 0 12px;

}

.search-box-pc input::placeholder { color: var(--text-muted); }

.search-box-pc button {

  background: var(--accent); border: none; color: #0b0900;

  padding: 0 14px; height: 34px; font-size: 0.82rem; font-weight: 700;

  cursor: pointer; flex-shrink: 0;

  transition: background var(--transition-fast);

}

.search-box-pc button:hover { background: var(--accent-light); }



/* ── 4. NAV ─────────────────────────────────────────────────── */

.site-nav {

  background: var(--bg-surface);

  border-bottom: 1px solid var(--border);

  padding: 8px 10px 10px;

}

.nav-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));

  gap: 5px;

}

.nav-grid a {

  display: flex; align-items: center; justify-content: center;

  min-height: var(--touch-target);

  padding: 4px;

  border-radius: var(--radius-sm);

  font-size: 0.86rem; font-weight: 600;

  text-align: center; line-height: 1.3; word-break: break-all;

  color: var(--text-secondary);

  background: var(--bg-elevated); border: 1px solid #d8a34d;

  transition: all var(--transition-fast);

}

.nav-grid a:hover, .nav-grid a.active {

  background: var(--accent); border-color: var(--accent); color: #0b0900;

}

.nav-grid a.hot { border-color: var(--color-danger); color: var(--color-danger); }

.nav-grid a.hot:hover { background: var(--color-danger); border-color: var(--color-danger); color: #fff; }



/* ── 5. AD BANNER ───────────────────────────────────────────── */

.ad-banner {

  width: 100%; min-height: 50px;

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);

}



/* ── 6. SEARCH TAGS ─────────────────────────────────────────── */

.search-tags {

  padding: 12px 12px 14px;

  background: var(--bg-surface);

  border-bottom: 1px solid var(--border);

}

.search-tags-title {

  display: flex; align-items: center; gap: 8px;

  font-size: 0.92rem; font-weight: 800;

  color: var(--text-primary);

  margin-bottom: 10px;

}

.search-tags-title::before {

  content: "";

  display: inline-block;

  width: 4px; height: 16px;

  background: var(--accent);

  border-radius: 2px; flex-shrink: 0;

}

.search-tags-list {

  display: flex; flex-wrap: wrap; gap: 5px;

}

.search-tags-list a {

  display: inline-flex; align-items: center; justify-content: center;

  min-width: 60px; max-width: 160px;

  height: 28px; padding: 0 10px;

  background: var(--bg-elevated);

  border: 1px solid #d8a34d;

  border-radius: 14px;

  font-size: 0.8rem; color: var(--text-secondary);

  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;

  transition: all var(--transition-fast);

}

.search-tags-list a:hover {

  background: var(--accent); border-color: var(--accent); color: #0b0900; font-weight: 700;

}

.search-tags-list a.hot {

  border-color: var(--color-danger); color: var(--color-danger);

}

.search-tags-list a.hot:hover {

  background: var(--color-danger); border-color: var(--color-danger); color: #fff;

}



/* ── 7. SEARCH BOX ──────────────────────────────────────────── */

.global-search-wrap {

  padding: 10px 12px 12px;

  background: var(--bg-surface);

  border-bottom: 1px solid var(--border);

}

.search-box {

  display: flex; align-items: center;

  background: var(--bg-elevated);

  border: 1px solid var(--border-md);

  border-radius: 22px;

  overflow: hidden; height: 38px;

  transition: border-color var(--transition-fast),

              box-shadow var(--transition-fast);

}

.search-box:focus-within {

  border-color: var(--accent);

  box-shadow: 0 0 0 3px var(--accent-glow);

}

.search-box input {

  flex: 1; background: transparent; border: none; outline: none;

  color: var(--text-primary); font-size: 0.875rem;

  padding: 0 14px; min-width: 0;

  text-align: center;

}

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

.search-box input:focus { text-align: left; }

.search-box button {

  background: var(--accent); border: none; color: #0b0900;

  width: 44px; height: 38px; flex-shrink: 0;

  display: flex; align-items: center; justify-content: center;

  font-size: 1rem; font-weight: 700; cursor: pointer;

  transition: background var(--transition-fast);

  border-radius: 0 22px 22px 0;

}

.search-box select {

  display: block;

  background: var(--bg-elevated);

  border: none;

  border-left: 1px solid var(--border);

  color: var(--text-secondary);

  font-size: 0.8rem;

  height: 38px;

  padding: 0 8px;

  flex-shrink: 0;

  cursor: pointer;

  outline: none;

  -webkit-appearance: none;

  appearance: none;

}

.search-box select:focus { color: var(--text-primary); }

.search-box button:hover { background: var(--accent-light); }



/* ── 8. GENERAL COMPONENTS ──────────────────────────────────── */

/* 面包屑 */

.breadcrumb {

  display: flex; align-items: center; flex-wrap: wrap;

  gap: 4px; font-size: 0.73rem; color: var(--text-muted);

  padding: 10px 12px 4px;

}

.breadcrumb a { color: var(--text-secondary); }

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

.breadcrumb .sep { color: var(--text-muted); }

.breadcrumb .current { color: var(--text-primary); }



/* 分区标题 */

.section-title {

  display: flex; align-items: center; gap: 8px;

  padding: 10px 12px 8px;

  font-size: 0.95rem; font-weight: 800; color: var(--text-primary);

}

.section-title::before {

  content: ""; width: 3px; height: 16px;

  background: var(--accent); border-radius: 2px; flex-shrink: 0;

}



/* 分隔线 */

.divider {

  height: 8px; background: var(--bg-base);

  border-top: 1px solid var(--border);

  border-bottom: 1px solid var(--border);

  margin: 14px 0;

}



/* ── 9. CARD LIST ────────────────────────────────────────────── */

.sort-bar {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 6px; padding: 0 12px 10px;

}

.sort-bar a {

  display: flex; align-items: center; justify-content: center;

  text-align: center; white-space: nowrap;

  padding: 5px 8px; border-radius: 20px;

  font-size: 0.76rem; font-weight: 600;

  border: 1px solid var(--border);

  color: var(--text-secondary); background: var(--bg-surface);

  min-height: 32px;

  transition: all var(--transition-fast);

}

.sort-bar a.active { background: var(--accent); border-color: var(--accent); color: #0b0900; font-weight: 800; }



.card-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 8px; padding: 0 8px;

}

.card {

  border-radius: var(--radius-md); overflow: hidden;

  background: var(--bg-surface); border: 1px solid var(--border);

  box-shadow: var(--shadow-sm);

  transition: transform var(--transition-base),

              box-shadow var(--transition-base),

              border-color var(--transition-base);

}

.card:hover {

  transform: translateY(-3px);

  box-shadow: var(--shadow-md), var(--shadow-accent);

  border-color: var(--accent);

}

.card .cover {

  position: relative; aspect-ratio: 16/9;

  overflow: hidden; background: var(--bg-elevated);

}

.card .cover img {

  width: 100%; height: 100%; object-fit: cover;

  transition: transform var(--transition-base), filter var(--transition-base);

}

.card:hover .cover img { transform: scale(1.05); filter: brightness(0.6); }

.card .cover::after {

  content: ""; position: absolute; inset: 0;

  background: var(--bg-overlay);

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23f59e0b'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");

  background-repeat: no-repeat; background-position: center;

  background-size: 34px; opacity: 0;

  transition: opacity var(--transition-base);

}

.card:hover .cover::after { opacity: 1; }

.card .cover .meta {

  position: absolute; bottom: 0; left: 0; right: 0;

  padding: 3px 6px; display: flex;

  justify-content: space-between; align-items: center;

  background: linear-gradient(transparent, rgba(0,0,0,0.78));

  font-size: 0.62rem;

}

.card .cover .meta .cat { color: var(--accent); font-weight: 700; }

.card .cover .meta .date { color: var(--text-secondary); }

.card .cover .badge {

  position: absolute; top: 5px; left: 5px;

  background: var(--accent); color: #0b0900;

  font-size: 0.58rem; font-weight: 800;

  padding: 2px 5px; border-radius: 3px;

}

.card .card-title {

  padding: 6px 8px 0; margin: 0 0 8px; font-size: 0.86rem;

  color: var(--text-secondary);

  display: -webkit-box; -webkit-line-clamp: 2;

  -webkit-box-orient: vertical; overflow: hidden;

  line-height: 1.45;

  transition: color var(--transition-fast);

}

.card:hover .card-title { color: var(--accent); }



/* 分页 */

.pagination {

  display: flex; justify-content: center;

  flex-wrap: wrap; gap: 5px; padding: 18px 12px 10px;

}

.pagination a, .pagination span {

  display: inline-flex; align-items: center; justify-content: center;

  min-width: 32px; height: 32px; padding: 0 8px;

  border-radius: var(--radius-sm); font-size: 0.8rem;

  border: 1px solid var(--border);

  color: var(--text-secondary); background: var(--bg-surface);

  transition: all var(--transition-fast);

}

.pagination a:hover { border-color: var(--accent); color: var(--accent); }

.pagination .current {

  background: var(--accent); border-color: var(--accent);

  color: #0b0900; font-weight: 700;

}



/* ── 10. CAT SECTION (index 分类板块) ────────────────────────── */

.cat-section {

  background: var(--bg-surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-md);

  margin-bottom: 14px;

  overflow: hidden;

}

.cat-section-title {

  display: flex; align-items: center; gap: 10px;

  padding: 10px 16px;

  background: linear-gradient(90deg, rgba(245,158,11,.1) 0%, transparent 100%);

  border-bottom: 1px solid var(--border);

}

.cat-section-title::before {

  content: '';

  display: block;

  width: 4px; height: 18px;

  border-radius: 2px;

  background: var(--accent);

  flex-shrink: 0;

}

.cat-section-title h2 {

  font-size: 0.95rem; font-weight: 700;

  color: var(--text-primary); margin: 0; padding: 0;

}

.tag-group {

  display: flex; flex-wrap: wrap; gap: 8px;

  padding: 12px 16px;

}

.tag-group a {

  display: inline-block;

  padding: 5px 14px;

  border-radius: 20px;

  font-size: 0.875rem; font-weight: 500;

  color: var(--text-secondary);

  background: var(--bg-elevated);

  border: 1px solid var(--border);

  transition: background .2s, color .2s, border-color .2s, transform .15s;

  white-space: nowrap;

}

.tag-group a:hover {

  background: rgba(245,158,11,.15);

  color: var(--accent);

  border-color: var(--accent);

  transform: translateY(-1px);

}

.tag-group h3 { display: contents; margin: 0; padding: 0; }

.cat-section-more {

  margin-left: auto;

  font-size: 0.78rem; font-weight: 600;

  color: var(--accent);

  border: 1px solid var(--accent);

  border-radius: 12px; padding: 2px 10px;

  white-space: nowrap; transition: background .2s, color .2s;

}

.cat-section-more:hover { background: var(--accent); color: #0b0900; }



/* ── 11. VIEW 页：播放页 ─────────────────────────────────────── */

.player-wrap {

  position: relative; width: 100%;

  aspect-ratio: 16 / 9;

  background: #000; overflow: hidden;

}

.player-wrap img {

  width: 100%; height: 100%; object-fit: cover;

  filter: brightness(0.55);

}

.player-overlay {

  position: absolute; inset: 0;

  display: flex; flex-direction: column;

  align-items: center; justify-content: center; gap: 10px;

}

.player-play-btn {

  width: 64px; height: 64px; border-radius: 50%;

  background: var(--accent); border: 3px solid rgba(255,255,255,0.25);

  display: flex; align-items: center; justify-content: center;

  box-shadow: var(--shadow-accent), 0 0 40px var(--accent-glow);

  cursor: pointer;

  transition: transform var(--transition-fast);

}

.player-play-btn:hover { transform: scale(1.1); }

.player-play-btn svg { fill: #0b0900; width: 26px; height: 26px; margin-left: 4px; }

.player-title-overlay {

  position: absolute; bottom: 0; left: 0; right: 0;

  padding: 20px 12px 10px;

  background: linear-gradient(transparent, rgba(0,0,0,0.88));

  font-size: 0.82rem; font-weight: 700; color: #fff; line-height: 1.4;

}

.player-lines {

  display: flex; gap: 6px; padding: 10px 12px;

  overflow-x: auto; scrollbar-width: none;

  background: var(--bg-surface);

  border-bottom: 1px solid var(--border);

}

.player-lines::-webkit-scrollbar { display: none; }

.line-btn {

  flex-shrink: 0; height: 32px; padding: 0 14px;

  border-radius: var(--radius-sm);

  background: var(--bg-elevated); border: 1px solid var(--border);

  color: var(--text-secondary); font-size: 0.76rem; font-weight: 600;

  cursor: pointer; display: flex; align-items: center; gap: 5px;

  transition: all var(--transition-fast); white-space: nowrap;

}

.line-btn.active { background: var(--accent); border-color: var(--accent); color: #0b0900; }

.line-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

.line-dot {

  width: 6px; height: 6px; border-radius: 50%;

  background: currentColor; flex-shrink: 0;

}

.video-title {

  font-size: 0.98rem; font-weight: 800;

  color: var(--text-primary); line-height: 1.55;

  padding: 10px 12px 6px;

}

.video-stats {

  display: flex; align-items: center; gap: 16px;

  padding: 0 12px 10px;

  font-size: 0.75rem; color: var(--text-muted);

  border-bottom: 1px solid var(--border);

}

.video-stats .stat { display: flex; align-items: center; gap: 4px; }

.video-stats .stat-num { color: var(--text-secondary); font-weight: 600; }

.stat-icon { font-size: 0.85rem; }

.action-bar {

  display: flex; gap: 8px; padding: 10px 12px;

  border-bottom: 1px solid var(--border);

}

.action-btn {

  flex: 1; height: 38px; border-radius: var(--radius-md);

  font-size: 0.8rem; font-weight: 700;

  display: flex; align-items: center; justify-content: center; gap: 5px;

  cursor: pointer; border: 1px solid var(--border);

  background: var(--bg-elevated); color: var(--text-secondary);

  transition: all var(--transition-fast);

}

.action-btn.like:hover  { border-color: #ff6b9d; color: #ff6b9d; }

.action-btn.collect:hover { border-color: var(--accent); color: var(--accent); }

.action-btn.share:hover { border-color: var(--accent-light); color: var(--accent-light); }



/* ── 12. META CARD ───────────────────────────────────────────── */

.meta-card {

  margin: 0 12px 12px;

  background: var(--bg-surface);

  border: 1px solid var(--border);

  border-radius: var(--radius-md);

  overflow: hidden;

}

.meta-card summary {

  display: flex; align-items: center; justify-content: space-between;

  padding: 10px 14px; cursor: pointer;

  font-size: 0.82rem; font-weight: 700; color: var(--text-primary);

  list-style: none;

}

.meta-card summary::-webkit-details-marker { display: none; }

.meta-card summary .chevron {

  font-size: 0.7rem; color: var(--text-muted);

  transition: transform var(--transition-fast);

}

.meta-card[open] summary .chevron { transform: rotate(180deg); }

.meta-card[open] summary { border-bottom: 1px solid var(--border); }

.meta-row {

  display: flex; align-items: flex-start;

  padding: 8px 14px; gap: 10px;

  border-bottom: 1px solid var(--border);

  font-size: 0.8rem;

}

.meta-row:last-child { border-bottom: none; }

.meta-label { color: var(--text-muted); flex-shrink: 0; width: 52px; }

.meta-value { color: var(--text-secondary); }

.meta-value a { color: var(--accent); }

.meta-value a:hover { text-decoration: underline; }

.meta-value .score { color: var(--color-warning); font-weight: 700; }



/* ── 13. TAG SECTION ─────────────────────────────────────────── */

.tag-section { padding: 0 12px 14px; }

.tag-section h3 {

  font-size: 0.88rem; font-weight: 800;

  color: var(--text-primary); margin-bottom: 10px;

  display: flex; align-items: center; gap: 8px;

}

.tag-section h3::before {

  content: ""; width: 3px; height: 15px;

  background: var(--accent); border-radius: 2px; flex-shrink: 0;

}

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-list a {

  max-width: 200px; padding: 6px 10px;

  background: var(--bg-elevated); border: 1px solid var(--border);

  border-radius: var(--radius-sm); font-size: 0.78rem; color: var(--text-secondary);

  min-height: 30px; display: flex; align-items: flex-start; gap: 2px;

  transition: all var(--transition-fast); line-height: 1.4;

}

.tag-list .tag-text {

  display: -webkit-box; -webkit-line-clamp: 2;

  -webkit-box-orient: vertical; overflow: hidden; word-break: break-all;

}

.tag-list a:hover { background: var(--accent); border-color: var(--accent); color: #0b0900; }

.tag-list .hash { color: var(--accent); font-weight: 700; flex-shrink: 0; line-height: 1.4; }

.tag-list a:hover .hash { color: #0b0900; }



.related-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 8px; padding: 0 8px 8px;

}



/* ── 14. INFO 页 ─────────────────────────────────────────────── */

.detail-cover {

  position: relative; width: 100%;

  aspect-ratio: 16 / 9; background: #000;

  border-radius: var(--radius-md); overflow: hidden;

}

.detail-cover img {

  width: 100%; height: 100%; object-fit: cover;

  filter: brightness(0.65);

  transition: filter var(--transition-base);

}

.detail-cover:hover img { filter: brightness(0.5); }

.detail-play-btn {

  position: absolute; inset: 0;

  display: flex; align-items: center; justify-content: center;

}

.detail-play-btn svg {

  width: 56px; height: 56px;

  background: var(--accent); border-radius: 50%; padding: 14px;

  box-shadow: var(--shadow-accent);

  transition: transform var(--transition-fast);

}

.detail-cover:hover .detail-play-btn svg { transform: scale(1.1); }



.play-btns { padding: 0 12px 14px; }

.play-addr-btn {

  display: inline-flex; align-items: center;

  padding: 0 16px; height: 36px;

  border-radius: var(--radius-sm);

  font-size: 0.78rem; font-weight: 700;

  background: var(--bg-elevated); border: 1px solid var(--border);

  color: var(--text-secondary);

  transition: all var(--transition-fast); white-space: nowrap;

}

.play-addr-btn.active { background: var(--accent); border-color: var(--accent); color: #0b0900; }

.play-addr-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }



/* ── 15. CATS 页 ─────────────────────────────────────────────── */

.cats-section {

  padding: 8px 12px 16px;

  display: flex; flex-direction: column; gap: 20px;

}

.cats-group-title {

  font-size: 0.82rem; font-weight: 800; color: var(--text-muted);

  text-transform: uppercase; letter-spacing: 0.08em;

  margin-bottom: 10px; padding-bottom: 6px;

  border-bottom: 1px solid var(--border);

}

.cats-link-list { display: flex; flex-wrap: wrap; gap: 8px; }

.cats-link-list li a {

  display: inline-flex; align-items: center;

  padding: 8px 16px;

  background: var(--bg-elevated); border: 1px solid var(--border);

  border-radius: var(--radius-sm);

  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);

  min-height: var(--touch-target);

  transition: all var(--transition-fast);

}

.cats-link-list li a:hover { background: var(--accent); border-color: var(--accent); color: #0b0900; }



/* ── 16. ACTOR / STUDIO 页 ──────────────────────────────────── */

.person-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px; padding: 8px 10px 16px;

}

.person-card {

  display: flex; flex-direction: column;

  align-items: center; gap: 6px;

  padding: 12px 6px;

  background: var(--bg-surface); border: 1px solid transparent;

  border-radius: var(--radius-md); text-align: center;

  transition: all var(--transition-fast);

}

.person-card:hover {

  border-color: var(--accent); background: var(--bg-elevated);

  transform: translateY(-2px); box-shadow: var(--shadow-md);

}

.person-avatar {

  width: 72px; height: 72px; border-radius: 50%;

  overflow: hidden; border: 2px solid var(--border); flex-shrink: 0;

  transition: border-color var(--transition-fast);

}

.person-card:hover .person-avatar { border-color: var(--accent); }

.studio-avatar { border-radius: var(--radius-md); }

.person-avatar img { width: 100%; height: 100%; object-fit: cover; }

.person-name {

  font-size: 0.8rem; font-weight: 700;

  color: var(--text-primary); line-height: 1.3; word-break: break-all;

}

.person-sub { font-size: 0.68rem; color: var(--text-muted); }

.person-card:hover .person-name { color: var(--accent); }



/* ── 17. 友情链接 ────────────────────────────────────────────── */

.friendlinks {

  padding: 10px 12px;

  background: var(--bg-surface);

  border-bottom: 1px solid var(--border);

}

.friendlinks-title {

  display: flex; align-items: center; gap: 8px;

  font-size: 0.92rem; font-weight: 800; color: var(--text-primary);

  margin-bottom: 10px;

}

.friendlinks-title::before {

  content: ""; display: inline-block;

  width: 4px; height: 16px;

  background: var(--accent); border-radius: 2px; flex-shrink: 0;

}

.friendlinks-list {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 6px;

}

.friendlinks-list a {

  display: flex; align-items: center; justify-content: center;

  padding: 6px 4px; border: none; border-radius: var(--radius-sm);

  font-size: 0.8rem; font-weight: 700; color: #fff;

  min-height: 32px; text-align: center;

  transition: all var(--transition-fast);

  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;

  opacity: 0.9;

}

.friendlinks-list a::before {

  content: "★"; font-size: 0.58rem; margin-right: 3px; flex-shrink: 0;

}

/* 20色循环 — 暖金调 */

.friendlinks-list li:nth-child(20n+1)  a { background: linear-gradient(135deg,#92400e,#f59e0b); }

.friendlinks-list li:nth-child(20n+2)  a { background: linear-gradient(135deg,#7c2d12,#ea580c); }

.friendlinks-list li:nth-child(20n+3)  a { background: linear-gradient(135deg,#78350f,#d97706); }

.friendlinks-list li:nth-child(20n+4)  a { background: linear-gradient(135deg,#b45309,#fcd34d); }

.friendlinks-list li:nth-child(20n+5)  a { background: linear-gradient(135deg,#9a3412,#fb923c); }

.friendlinks-list li:nth-child(20n+6)  a { background: linear-gradient(135deg,#7c3aed,#f59e0b); }

.friendlinks-list li:nth-child(20n+7)  a { background: linear-gradient(135deg,#dc2626,#f59e0b); }

.friendlinks-list li:nth-child(20n+8)  a { background: linear-gradient(135deg,#92400e,#34d399); }

.friendlinks-list li:nth-child(20n+9)  a { background: linear-gradient(135deg,#a16207,#fde68a); }

.friendlinks-list li:nth-child(20n+10) a { background: linear-gradient(135deg,#78350f,#f43f5e); }

.friendlinks-list li:nth-child(20n+11) a { background: linear-gradient(135deg,#b45309,#06b6d4); }

.friendlinks-list li:nth-child(20n+12) a { background: linear-gradient(135deg,#92400e,#84cc16); }

.friendlinks-list li:nth-child(20n+13) a { background: linear-gradient(135deg,#c2410c,#fbbf24); }

.friendlinks-list li:nth-child(20n+14) a { background: linear-gradient(135deg,#6d28d9,#f59e0b); }

.friendlinks-list li:nth-child(20n+15) a { background: linear-gradient(135deg,#0369a1,#f59e0b); }

.friendlinks-list li:nth-child(20n+16) a { background: linear-gradient(135deg,#be123c,#fbbf24); }

.friendlinks-list li:nth-child(20n+17) a { background: linear-gradient(135deg,#0f766e,#f59e0b); }

.friendlinks-list li:nth-child(20n+18) a { background: linear-gradient(135deg,#1d4ed8,#fcd34d); }

.friendlinks-list li:nth-child(20n+19) a { background: linear-gradient(135deg,#166534,#f59e0b); }

.friendlinks-list li:nth-child(20n+20) a { background: linear-gradient(135deg,#831843,#fb923c); }

.friendlinks-list a:hover {

  opacity: 1; transform: translateY(-2px);

  box-shadow: 0 4px 14px rgba(245,158,11,0.35);

}

.friendlinks.bottom {

  background: var(--bg-surface);

  border-top: 1px solid var(--border); border-bottom: none;

  padding: 14px 12px;

}

.friendlinks.bottom .friendlinks-list a { font-size: 0.8rem; min-height: 34px; }



/* ── 18. FOOTER ──────────────────────────────────────────────── */

.site-footer {

  background: var(--bg-surface);

  border-top: 1px solid var(--border);

  padding: 18px 12px;

  text-align: center; font-size: 0.73rem; color: var(--text-muted);

}

.site-footer a { color: var(--text-secondary); margin: 0 5px; }

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

.footer-links { margin-top: 6px; }

.footer-sep {

  border: none;

  border-top: 1px solid var(--border);

  margin: 12px 0;

}

.footer-disclaimer {

  font-size: 0.75rem; color: var(--text-muted);

  text-align: center; line-height: 1.6;

}



/* ── 19. MISC ─────────────────────────────────────────────────── */

.des {

  display: flex; flex-wrap: wrap; align-items: center;

  gap: 4px 6px; font-size: 0.85rem;

  padding: 6px 0; color: var(--text-muted);

}

.des a { color: var(--text-muted); text-decoration: none; }

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

.des .sep { color: var(--border); }

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



.column-head {

  padding: 10px 0 6px;

  border-bottom: 1px solid var(--border);

  margin-bottom: 10px;

}

.flex-between {

  display: flex; align-items: center;

  justify-content: space-between;

  flex-wrap: wrap; gap: 6px;

}

.column-head .text {

  font-size: 0.95rem; font-weight: 800;

  color: var(--text-primary);

}

.column-head .more {

  font-size: 0.75rem; color: var(--accent);

  border: 1px solid var(--accent);

  border-radius: 10px; padding: 1px 8px;

}

.column-head .more:hover { background: var(--accent); color: #0b0900; }



.search-tips { font-size: 0.8rem; color: var(--text-muted); margin: 4px 0 0; }

.search-notice { font-size: 0.8rem; color: var(--text-muted); padding: 6px 0; }

.search-type {

  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0;

}

.search-type a {

  padding: 4px 12px; border-radius: 20px;

  background: var(--bg-elevated); color: var(--text-muted);

  font-size: 0.82rem; border: 1px solid var(--border);

}

.search-type a:hover, .search-type a.active {

  background: var(--accent); color: #0b0900; border-color: var(--accent); font-weight: 700;

}



/* ── 20. BACK TO TOP ─────────────────────────────────────────── */

.go-top {

  position: fixed; right: 16px; bottom: 20px;

  width: 38px; height: 38px; border-radius: 50%;

  background: var(--accent); color: #0b0900;

  font-size: 1.1rem; font-weight: 700;

  border: none; cursor: pointer;

  display: flex; align-items: center; justify-content: center;

  z-index: 999;

  opacity: 0; pointer-events: none;

  box-shadow: 0 4px 16px rgba(245,158,11,0.45);

  transition: opacity var(--transition-base);

}



/* ── 21. PC RESPONSIVE (≥768px) ─────────────────────────────── */

@media (min-width: 768px) {

  .header-row1 { height: 52px; }

  .search-box-pc { display: flex; }

  .global-search-wrap { max-width: 680px; margin: 0 auto; }



  .nav-grid { display: flex; flex-wrap: wrap; gap: 4px; }

  .nav-grid a {

    min-height: 30px; padding: 0 13px;

    font-size: 0.84rem; white-space: nowrap; word-break: normal;

    flex-shrink: 0;

  }



  .sort-bar { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }



  .card-grid {

    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));

    padding: 0 16px; gap: 14px;

  }



  .player-wrap { max-height: 480px; aspect-ratio: unset; height: 480px; }



  .related-grid {

    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));

    padding: 0 16px 16px; gap: 12px;

  }



  .view-layout { padding: 0 16px; }

  .detail-cover { max-width: 560px; }

  .cats-link-list li a { font-size: 0.9rem; padding: 8px 20px; }



  .person-grid {

    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));

    padding: 8px 16px 16px; gap: 14px;

  }



  .search-tags-list a { font-size: 0.75rem; height: 30px; }

  .friendlinks-list { grid-template-columns: repeat(8, 1fr); }

  .tag-list a { max-width: 200px; }

}



@media (max-width: 767px) {

  .tag-list a { max-width: calc(50% - 3px); }

}

