/* ============================================================
   iOS 26 Liquid Glass — 完整样式
   文件：styles.css
   ============================================================ */

/* ── 1. CSS 变量 ──────────────────────────────────────────── */
:root {
  --animate-duration: 300ms;

  --glass-bg:        rgba(255, 255, 255, 0.45);
  --glass-bg-strong: rgba(255, 255, 255, 0.65);
  --glass-border:    rgba(255, 255, 255, 0.70);
  --glass-shadow:
    0 8px 32px rgba(120, 94, 164, 0.18),
    0 1.5px 0 rgba(255,255,255,0.55) inset,
    0 -1px 0 rgba(120,94,164,0.08) inset;
  --glass-blur: blur(24px) saturate(180%);

  --accent:         #9b6dff;
  --accent-soft:    rgba(155, 109, 255, 0.15);
  --accent-hover:   #ff6b9a;
  --text-primary:   #2d1f4e;
  --text-secondary: #7b60bb;
  --text-muted:     #a195ad;

  --page-bg: linear-gradient(135deg,
    #f0e8ff 0%, #e8f0ff 25%, #ffe8f5 50%, #e8fff5 75%, #fff0e8 100%);

  --skeleton-base:     rgba(200, 185, 240, 0.4);
  --skeleton-shine:    rgba(255, 255, 255, 0.75);
  --skeleton-duration: 1.8s;

  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;

  --scrollbar-thumb:       rgba(155, 109, 255, 0.25);
  --scrollbar-thumb-hover: rgba(155, 109, 255, 0.45);
  --scrollbar-track:       rgba(240, 232, 255, 0.30);
}

[data-theme="dark"] {
  --glass-bg:        rgba(30, 20, 55, 0.55);
  --glass-bg-strong: rgba(40, 28, 70, 0.72);
  --glass-border:    rgba(255, 255, 255, 0.12);
  --glass-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 1.5px 0 rgba(255,255,255,0.08) inset,
    0 -1px 0 rgba(0,0,0,0.25) inset;

  --accent:         #b48fff;
  --accent-soft:    rgba(180, 143, 255, 0.18);
  --accent-hover:   #ff85ad;
  --text-primary:   #ede0ff;
  --text-secondary: #c4a8ff;
  --text-muted:     #8878aa;

  --page-bg: linear-gradient(135deg,
    #1a0f2e 0%, #0f1a2e 25%, #2e0f1a 50%, #0f2e1a 75%, #2e1a0f 100%);

  --scrollbar-thumb:       rgba(180, 143, 255, 0.35);
  --scrollbar-thumb-hover: rgba(180, 143, 255, 0.60);
  --scrollbar-track:       rgba(20, 12, 40, 0.60);
}

/* ── 2. 全局重置 ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: var(--page-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  transition: background 0.4s ease, color 0.4s ease;
}

/* ── 3. 背景光晕 ──────────────────────────────────────────── */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

body::before {
  width: 600px; height: 600px;
  top: -150px; left: -150px;
  background: radial-gradient(circle, #c4a0ff, #80b0ff);
}

body::after {
  width: 500px; height: 500px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, #ffb0d0, #ffd0a0);
  animation-delay: -6s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ── 4. 滚动条 ────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
::-webkit-scrollbar-corner      { background: transparent; }

/* ── 5. 液态玻璃基类 ──────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ── 6. 容器 ──────────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: var(--top-bar-height, 150px);
  padding-bottom: 60px;
}

/* ── 7. 顶栏 ──────────────────────────────────────────────── */
.top-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 12px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 4px 24px rgba(120, 94, 164, 0.12),
    0 1px 0 rgba(255,255,255,0.8) inset;
}

[data-theme="dark"] .top-bar {
  background: rgba(20, 12, 40, 0.52);
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.4),
    0 1px 0 rgba(255,255,255,0.06) inset;
}

.top-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

/* ── 8. 日期选择器 ────────────────────────────────────────── */
.date-picker {
  height: 42px;
  width: 175px;
  flex-shrink: 0;
  padding: 0 32px 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239b6dff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  box-shadow:
    0 2px 12px rgba(120,94,164,0.10),
    0 1px 0 rgba(255,255,255,0.7) inset;
  transition: all 0.25s ease;
}

.date-picker:hover {
  border-color: rgba(155,109,255,0.4);
  box-shadow:
    0 4px 18px rgba(120,94,164,0.18),
    0 1px 0 rgba(255,255,255,0.8) inset;
}

.date-picker:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(155,109,255,0.18),
    0 4px 18px rgba(120,94,164,0.18),
    0 1px 0 rgba(255,255,255,0.8) inset;
}

/* ── 9. 搜索框 ────────────────────────────────────────────── */
.input-box {
  flex: 1;
  height: 42px;
  padding: 0 18px 0 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239b6dff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  box-shadow:
    0 2px 12px rgba(120,94,164,0.10),
    0 1px 0 rgba(255,255,255,0.7) inset;
  transition: all 0.25s ease;
}

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

.input-box:hover {
  border-color: rgba(155,109,255,0.35);
  box-shadow:
    0 4px 18px rgba(120,94,164,0.15),
    0 1px 0 rgba(255,255,255,0.8) inset;
}

.input-box:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(155,109,255,0.18),
    0 4px 18px rgba(120,94,164,0.18),
    0 1px 0 rgba(255,255,255,0.8) inset;
}

/* ── 10. 工具栏按钮组 ─────────────────────────────────────── */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  padding: 5px 10px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.38);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.60);
  box-shadow:
    0 2px 12px rgba(120,94,164,0.10),
    0 1px 0 rgba(255,255,255,0.75) inset;
}

[data-theme="dark"] .view-toggle {
  background: rgba(40,28,70,0.55);
  border-color: rgba(255,255,255,0.10);
}

.icon-btn {
  width: auto;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: rgba(255,255,255,0.55);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow:
    0 2px 8px rgba(120,94,164,0.10),
    0 1px 0 rgba(255,255,255,0.9) inset;
}

.icon-btn:hover {
  background: rgba(255,255,255,0.80);
  color: var(--accent-hover);
  transform: translateY(-2px) scale(1.06);
  box-shadow:
    0 6px 18px rgba(120,94,164,0.18),
    0 1px 0 rgba(255,255,255,1) inset;
}

.icon-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    0 1px 4px rgba(120,94,164,0.12),
    0 1px 0 rgba(255,255,255,0.7) inset;
}

.icon-btn.active {
  background: linear-gradient(135deg,
    rgba(155,109,255,0.22),
    rgba(255,107,154,0.18));
  color: var(--accent-hover);
  box-shadow:
    0 3px 12px rgba(155,109,255,0.22),
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 0 0 1.5px rgba(155,109,255,0.30);
}

[data-theme="dark"] .icon-btn {
  background: rgba(60,40,100,0.55);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.25),
    0 1px 0 rgba(255,255,255,0.08) inset;
}

[data-theme="dark"] .icon-btn:hover  { background: rgba(80,55,130,0.75); }

[data-theme="dark"] .icon-btn.active {
  background: linear-gradient(135deg,
    rgba(155,109,255,0.35),
    rgba(255,107,154,0.28));
}

.separator {
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom,
    transparent, rgba(155,109,255,0.25), transparent);
  margin: 0 2px;
  flex-shrink: 0;
}

/* ── 11. 最近点击栏 ───────────────────────────────────────── */
.last-click-wrapper-row {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.date-title {
  flex-shrink: 0;
}

.last-click-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(253, 231, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow:
    0 3px 16px rgba(155,109,255,0.12),
    0 1px 0 rgba(255,255,255,0.8) inset;
  transition: all 0.3s ease;
  min-width: 0;
  overflow: hidden;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}



[data-theme="dark"] .last-click-wrapper {
  background: rgba(60,30,80,0.50);
  border-color: rgba(255,255,255,0.10);
}

.last-click-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.last-click-text,
.last-click-text:link,
.last-click-text:visited,
.last-click-text:hover,
.last-click-text:active {
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 700px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.40);
  display: inline-block;
  transition: all 0.25s ease;
}

.last-click-text:hover {
  color: var(--accent-hover);
  background: rgba(255,107,154,0.10);
}

.last-click-text.flash-highlight {
  animation: flash-glow 1s ease-out;
}

@keyframes flash-glow {
  0%   { background: rgba(255,107,154,0.45); color: #ff4488; }
  60%  { background: rgba(255,107,154,0.20); }
  100% { background: rgba(255,255,255,0.40); color: var(--text-primary); }
}

/* ── 12. 二级排序控制 ─────────────────────────────────────── */
.sort-controls-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  padding-top: 4px;
}

.sort-controls-wrapper.hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.sort-controls-wrapper.visible {
  max-height: 60px;
  opacity: 1;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.38);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.60);
  box-shadow:
    0 2px 12px rgba(120,94,164,0.10),
    0 1px 0 rgba(255,255,255,0.75) inset;
}

[data-theme="dark"] .sort-controls {
  background: rgba(40,28,70,0.55);
  border-color: rgba(255,255,255,0.10);
}

/* ── 13. 日期分组 ─────────────────────────────────────────── */
.day-group {
  width: 100%;
  margin-bottom: 8px;
}

.date-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 30px 20px 0;
  margin-bottom: 0;
  cursor: default;
}

.date-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.70);
  box-shadow:
    0 2px 12px rgba(120,94,164,0.10),
    0 1px 0 rgba(255,255,255,0.85) inset;
  transition: all 0.3s ease;
}

[data-theme="dark"] .date-title {
  background: rgba(50,35,85,0.55);
  border-color: rgba(255,255,255,0.10);
}
/* ── 14. 链接列表 ─────────────────────────────────────────── */
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px 24px;
  width: 100%;
}

.link-list:not(.list-mode) {
  justify-content: center;
}

.link-list.list-mode {
  gap: 12px;
  padding: 36px 5px 0;
}

/* ── 15. 链接卡片 ─────────────────────────────────────────── */
.link-card {
  position: relative;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.3s ease;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 4px 20px rgba(120,94,164,0.10),
    0 1px 0 rgba(255,255,255,0.75) inset,
    0 -1px 0 rgba(120,94,164,0.06) inset;
}

/* 顶部高光条 */
.link-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(255,255,255,0.90), transparent);
  border-radius: 1px;
  pointer-events: none;
  z-index: 2;
}

/* 内部光晕 */
.link-card::after {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 60%; height: 60%;
  background: radial-gradient(circle,
    rgba(255,255,255,0.18), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.link-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow:
    0 16px 40px rgba(120,94,164,0.20),
    0 4px 12px rgba(155,109,255,0.12),
    0 1px 0 rgba(255,255,255,0.90) inset;
  color: var(--accent-hover);
}

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

[data-theme="dark"] .link-card {
  background: rgba(35,22,65,0.55);
  border-color: rgba(255,255,255,0.09);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.30),
    0 1px 0 rgba(255,255,255,0.06) inset;
}

[data-theme="dark"] .link-card:hover {
  box-shadow:
    0 16px 40px rgba(0,0,0,0.45),
    0 4px 12px rgba(155,109,255,0.20),
    0 1px 0 rgba(255,255,255,0.08) inset;
}

/* ── 16. 卡片尺寸 ─────────────────────────────────────────── */
.normal-card   { flex: 0 0 calc(33.333% - 11px); }
.wide-card     { flex: 0 0 calc(50% - 8px); }
.two-left-card { flex: 0 0 calc(33.333% - 11px); }

/* 列表模式普通卡片 */
.list-mode .link-card {
  flex: 0 0 calc(50% - 6px);
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 12px 16px !important;
  min-height: 68px;
}

.list-mode .link-card .link-card-title {
  flex: 1;
  min-width: 0;
  padding: 0 !important;
  font-size: 14px;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

/* ── 17. 落单卡片（网格模式：左图右文） ───────────────────── */
.last-odd-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  flex: 0 0 calc(66.666% - 8px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  overflow: hidden;
}

.last-odd-card .image-wrapper {
  flex: 0 0 50% !important;
  width: 50% !important;
  max-width: 50% !important;
  aspect-ratio: unset !important;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  align-self: stretch;
}

.last-odd-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.last-odd-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  position: relative;
}

.last-odd-info .link-card-title {
  font-size: 15px;
  font-weight: 600;
  padding: 0;
  align-self: flex-start;
}

.last-odd-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.last-odd-bottom .copy-button {
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  transform: none !important;
}

/* 落单卡片（列表模式：占满一行，与普通列表卡片一致） */
.link-list.list-mode .last-odd-card {
  flex: 0 0 100% !important;
  max-width: 100%;
  flex-direction: row !important;
  align-items: center !important;
  padding: 12px 16px !important;
  min-height: 68px;
}

.link-list.list-mode .last-odd-card .image-wrapper {
  display: none;
}

.link-list.list-mode .last-odd-card .last-odd-info {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  width: 100%;
}

.link-list.list-mode .last-odd-card .last-odd-bottom {
  flex-shrink: 0;
  margin-left: 12px;
}

/* ── 18. 图片区域 ─────────────────────────────────────────── */
.image-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg,
    rgba(200,185,240,0.35), rgba(185,210,255,0.35));
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.link-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.link-card:hover .link-card-image { transform: scale(1.04); }

/* ── 19. 卡片标题 ─────────────────────────────────────────── */
.link-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px 12px;
  line-height: 1.45;
  word-break: break-word;
  transition: color 0.25s ease;
  position: relative;
  z-index: 2;
}

/* ── 20. 卡片内容区（网格模式） ───────────────────────────── */
.normal-card .card-body,
.wide-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
}

.normal-card .card-body .link-card-title,
.wide-card .card-body .link-card-title {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.two-left-card .card-footer {
  padding: 0 12px 12px 0;
}

.card-body .copy-button {
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  transform: none !important;
  flex-shrink: 0;
}

/* ── 21. 标签 ─────────────────────────────────────────────── */
.click-count-badge,
.title-click-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,107,154,0.75);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 2px 8px rgba(255,107,154,0.30);
}

.date-badge,
.title-date-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(155,109,255,0.70);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow: 0 2px 8px rgba(155,109,255,0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(155,109,255,0.70);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow: 0 2px 8px rgba(155,109,255,0.25);
}

/* list-right 容器 */
.list-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: 12px;
}

.list-right .copy-button {
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  transform: none !important;
}

/* ── 22. 复制按钮 ─────────────────────────────────────────── */
.copy-button {
  position: absolute;
  bottom: 8px;
  right: 8px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  z-index: 10;
  background: rgba(155,109,255,0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(155,109,255,0.28);
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
}

.copy-button:hover {
  background: rgba(255,107,154,0.80);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 16px rgba(255,107,154,0.35);
}

.copy-button:active {
  transform: scale(0.97);
}

/* ── 23. 导航按钮（顶栏内联） ─────────────────────────────── */
.fixed-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.glass-btn {
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  user-select: none;
  transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow:
    0 4px 20px rgba(120,94,164,0.14),
    0 1px 0 rgba(255,255,255,0.90) inset,
    0 -1px 0 rgba(120,94,164,0.06) inset;
}

.glass-btn:hover {
  color: var(--accent-hover);
  background: rgba(255,255,255,0.72);
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 10px 32px rgba(120,94,164,0.22),
    0 2px 0 rgba(255,255,255,1) inset;
}

.glass-btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow:
    0 3px 12px rgba(120,94,164,0.14),
    0 1px 0 rgba(255,255,255,0.8) inset;
}

.glass-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px) scale(0.95);
}

[data-theme="dark"] .glass-btn {
  background: rgba(40,25,75,0.62);
  border-color: rgba(255,255,255,0.12);
  color: var(--text-secondary);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.35),
    0 1px 0 rgba(255,255,255,0.08) inset;
}

[data-theme="dark"] .glass-btn:hover {
  background: rgba(60,38,110,0.78);
  color: var(--accent-hover);
}

/* ── 24. 回到顶部按钮 ─────────────────────────────────────── */
.circular-btn {
  position: fixed;
  right: 3px;
  bottom: 50px;
  width: 30px;     
  height: 30px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  z-index: 300;
  cursor: pointer;
  user-select: none;
  transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
  background: linear-gradient(135deg,
    rgba(155,109,255,0.80),
    rgba(255,107,154,0.75));
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow:
    0 6px 24px rgba(155,109,255,0.35),
    0 2px 0 rgba(255,255,255,0.50) inset,
    0 -1px 0 rgba(155,109,255,0.20) inset;
  opacity: 0;
  transform: translateY(12px) scale(0.85);
}

.circular-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.circular-btn:hover {
  transform: translateY(-4px) scale(1.10);
  background: linear-gradient(135deg,
    rgba(155,109,255,0.95),
    rgba(255,107,154,0.90));
  box-shadow:
    0 12px 32px rgba(155,109,255,0.45),
    0 2px 0 rgba(255,255,255,0.65) inset;
  color: #fff
}

.circular-btn:active {
  transform: translateY(-1px) scale(0.97);
}

[data-theme="dark"] .circular-btn {
  background: linear-gradient(135deg,
    rgba(130,80,255,0.85),
    rgba(255,90,140,0.80));
  box-shadow:
    0 6px 24px rgba(0,0,0,0.40),
    0 2px 0 rgba(255,255,255,0.15) inset;
}

/* ── 25. 空状态 ───────────────────────────────────────────── */
.no-data-text {
  width: 100%;
  text-align: center;
  padding: 60px 20px;
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── 26. 骨架屏 ───────────────────────────────────────────── */
.skeleton-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: none !important;
  overflow: hidden;
}

.skeleton-line,
.skeleton-image-block {
  background: linear-gradient(90deg,
    var(--skeleton-base) 25%,
    var(--skeleton-shine) 50%,
    var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: shimmer var(--skeleton-duration) infinite linear;
}

.skeleton-line {
  border-radius: var(--radius-full);
}

.skeleton-image-block {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

/* ── 27. 淡入动画 ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.35s ease both;
}

/* ── 字母索引 ─────────────────────────────────────────────── */
.alpha-index {
  position: fixed;
  right: 6px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: stretch;   /* 改成 stretch，让条目撑满宽度 */
  gap: 2px;
  padding: 8px 4px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  max-height: calc(100vh - 180px);
  min-width: 28px;        /* 字母模式最小宽度 */
  overflow-y: auto;
  scrollbar-width: none;
}


.alpha-index::-webkit-scrollbar { display: none; }

.alpha-index-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.alpha-index-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: scale(1.15);
}

/* ── 字母分组标题 ─────────────────────────────────────────── */
.alpha-group {
  width: 100%;
  scroll-margin-top: 150px;
}

.alpha-group-header {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  padding: 40px 20px 6px;
  letter-spacing: 0.02em; 
}

/* ── 内容区右侧留空给字母索引 ─────────────────────────────── */
.content {
  padding-right: 36px;  /* 字母模式默认值，演员模式由 JS 动态设置 */
}

/* 给选中字母索引加高亮 */
.alpha-index-item.active {
  background: var(--accent);
  color: #fff;
  transform: scale(1.15);
}
.alpha-group:last-child {
  padding-bottom: calc(100vh - 150px);
}

/* 演员索引条目：显示完整演员名 */
.actor-index-item {
  width: auto;
  height: auto;
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  justify-content: flex-start;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.actor-index-item.active {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}




