/* ═══════════════ 桌面卡片网格 ═══════════════ */

/* ─── 每一页（禁止滚动，由父级 swiper 控制） ─── */
.desktop-page {
  overflow-y: hidden !important;
  overflow-x: hidden !important;
}

/* ─── 网格容器 ─── */
.desktop-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 75px);
  grid-auto-rows: 75px;
  gap: 12px;
  justify-content: center;
  align-content: start;
  padding: 10px 0;
  width: calc(100% - 38px);
  margin: 0 auto;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.desktop-card-grid::-webkit-scrollbar { display: none; }

/* ─── 基础卡片 ─── */
.desktop-card {
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  min-height: 0;
}

.desktop-card:active {
  transform: scale(0.94);
}

/* ─── 材质：磨砂玻璃（App 快捷） ─── */
.desktop-card.card-frosted {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* ─── 材质：微透（时钟/鲸鱼/天气/便签） ─── */
.desktop-card.card-light {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

/* ─── 材质：自有（照片/拍立得等，不透） ─── */
.desktop-card.card-solid {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

/* ─── 编辑模式标记 ─── */
.desktop-card .card-edit-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

/* ─── 空槽位 ─── */
.desktop-card.empty-slot {
  background: transparent;
  border: 1.5px dashed rgba(143, 175, 191, 0.4);
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.desktop-card.empty-slot:active {
  background: rgba(143, 175, 191, 0.1);
  transform: scale(0.96);
}

.empty-slot-plus {
  font-size: 18px;
  color: rgba(143, 175, 191, 0.45);
  font-weight: 300;
  line-height: 1;
}

/* ═══════════════ App 快捷卡片 v2（图标 + 细线 + 浅色文字） ═══════════════ */

.desktop-card.card-frosted:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card-app-v2 {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  padding: 6px;
}

.app2-icon {
  display: flex; align-items: center; justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}

.desktop-card:active .app2-icon {
  opacity: 1;
  transform: scale(0.92);
}

.app2-line {
  width: 18px; height: 1px;
  background: rgba(143, 175, 191, 0.35);
  border-radius: 1px;
  flex-shrink: 0;
}

.app2-label {
  font-size: 9px;
  font-weight: 400;
  color: rgba(143, 175, 191, 0.7);
  letter-spacing: 0.4px;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.dark-mode .app2-line {
  background: rgba(255,255,255,0.12);
}

html.dark-mode .app2-label {
  color: rgba(255,255,255,0.35);
}

/* ═══════════════ CD 图标卡片 ═══════════════ */

.card-cd-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.card-cd-disc.spinning {
  animation: cdSpin 4s linear infinite;
}

@keyframes cdSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ═══════════════ 数字时钟卡片 ═══════════════ */

.card-clock-time {
  font-size: 18px;
  font-weight: 500;
  color: var(--desktop-text-main);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Roboto Mono', 'Menlo', monospace;
}

/* ═══════════════ 天气极简卡片 ═══════════════ */

.card-weather-icon {
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  color: var(--desktop-text-main);
}

.card-weather-temp {
  font-size: 15px;
  font-weight: 500;
  color: var(--desktop-text-main);
}

/* ═══════════════ 小鲸鱼迷你卡片 ═══════════════ */

.card-whale-body {
  animation: whaleFloat 3s ease-in-out infinite;
  position: relative;
}

@keyframes whaleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* 水波涟漪 */
.whale-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--monet-deepwater, #5A8494);
  animation: rippleOut 0.8s ease-out forwards;
  pointer-events: none;
  z-index: 5;
}

@keyframes rippleOut {
  0%   { width: 0; height: 0; opacity: 0.6; }
  100% { width: 80px; height: 80px; opacity: 0; margin-left: -40px; margin-top: -40px; }
}

/* ═══════════════ 纯图照片卡片 ═══════════════ */

.card-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.card-photo-placeholder {
  opacity: 0.25;
}

/* ═══════════════ 编辑按钮 ═══════════════ */

.desktop-edit-btn {
  position: absolute;
  right: 18px;
  bottom: calc(102px + var(--sab));
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
  color: var(--desktop-text-aux);
  user-select: none;
  -webkit-user-select: none;
}

.desktop-edit-btn.active {
  background: var(--monet-blue, #5A8494);
  color: #fff;
  border-color: transparent;
  font-size: 13px;
  font-weight: 500;
  width: auto;
  padding: 0 12px;
  border-radius: 17px;
}

.desktop-edit-btn:active {
  transform: scale(0.92);
}

/* ═══════════════ 添加卡片面板 ═══════════════ */

.add-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 4px 0;
}

.add-card-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border-radius: 14px;
  background: rgba(143, 175, 191, 0.08);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  border: 1px solid transparent;
}

.add-card-option:active {
  transform: scale(0.94);
  background: rgba(143, 175, 191, 0.18);
  border-color: rgba(143, 175, 191, 0.25);
}

.add-card-option-icon {
  font-size: 24px;
  line-height: 1;
}

.add-card-option-name {
  font-size: 11px;
  color: var(--desktop-text-main);
  font-weight: 400;
  text-align: center;
}

/* ═══════════════ 暗色模式适配 ═══════════════ */

html.dark-mode .desktop-card.card-frosted {
  background: rgba(30, 33, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .desktop-card.card-light {
  background: rgba(30, 33, 42, 0.35);
  border-color: rgba(255, 255, 255, 0.06);
}

html.dark-mode .desktop-card.card-solid {
  background: rgba(30, 33, 42, 0.1);
  border-color: rgba(255, 255, 255, 0.05);
}

html.dark-mode .card-app-icon {
  background: rgba(255, 255, 255, 0.08);
}

html.dark-mode .card-app-label,
html.dark-mode .card-clock-time,
html.dark-mode .card-weather-temp {
  color: #e4e6ea;
}

html.dark-mode .desktop-card.empty-slot {
  border-color: rgba(255, 255, 255, 0.15);
}

html.dark-mode .desktop-edit-btn {
  background: rgba(30, 33, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ccc;
}

html.dark-mode .desktop-edit-btn.active {
  background: var(--monet-blue, #5A8494);
  color: #fff;
}

html.dark-mode .add-card-option {
  background: rgba(255, 255, 255, 0.05);
}

html.dark-mode .add-card-option:active {
  background: rgba(255, 255, 255, 0.1);
}

html.dark-mode .add-card-option-name {
  color: #e4e6ea;
}

/* 暗色模式 — 亚克力 CD 盒微调 */
html.dark-mode .jc-insert-frame {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.06);
}

html.dark-mode .jc-bar {
  background: rgba(255,255,255,0.08);
}

html.dark-mode .jc-placeholder {
  stroke: rgba(255,255,255,0.2);
}

html.dark-mode .jc-clip {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

/* 暗色模式 — 唱片机 */
html.dark-mode .crp2-disc-area {
  background: rgba(0,0,0,0.15);
}

html.dark-mode .crp2-bar {
  background: rgba(30,33,42,0.45);
  border-top-color: rgba(255,255,255,0.06);
}

/* 暗色模式 — 个人主页 v4 */
html.dark-mode .cpf4-cover {
  background: linear-gradient(135deg, #2a3040 0%, #242a38 50%, #2a3040 100%);
}

html.dark-mode .cpf4-cover-hint {
  color: rgba(255,255,255,0.15);
}

html.dark-mode .cpf4-avatar {
  background: rgba(30,33,42,0.55);
  border-color: rgba(255,255,255,0.12);
}

/* ═══════════════ 添加面板尺寸标签 ═══════════════ */

.add-card-option-size {
  font-size: 9px;
  color: var(--desktop-text-aux);
  opacity: 0.5;
  letter-spacing: 0.3px;
}

/* ═══════════════ 唱片机 2×2 v2 — 可换封面黑胶 + 磨砂底条 ═══════════════ */

.card-record-player-v2 {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

/* ── 唱片 + 唱臂区域 ── */
.crp2-disc-area {
  flex: 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12);
}

/* 黑胶唱片 */
.crp2-disc {
  width: 76px; height: 76px;
  border-radius: 50%;
  position: absolute;
  left: 28%;
  top: 50%;
  margin-top: -38px;
  background: #1a1a1a;
  box-shadow: 0 3px 14px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.crp2-disc.spinning {
  animation: crp2Spin 3s linear infinite;
}
@keyframes crp2Spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 默认黑胶纹理（无封面时） */
.crp-disc-grooves {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #333 0%, #1a1a1a 8%, #2a2a2a 9%, #111 16%,
    #2a2a2a 17%, #111 24%, #2a2a2a 25%, #111 32%,
    #2a2a2a 33%, #111 40%, #2a2a2a 41%, #111 48%,
    #2a2a2a 49%, #111 56%, #2a2a2a 57%, #111 64%,
    #222 65%, #1a1a1a 100%
  );
}

/* 默认中心标签 */
.crp-disc-label {
  position: absolute; z-index: 2;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #c0392b;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
}

/* 封面图 */
.crp-cover-img {
  position: absolute; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* 中心孔 */
.crp2-hole {
  position: absolute; z-index: 3;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #888, #333);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
  pointer-events: none;
}

/* 唱臂 */
.crp2-arm {
  position: absolute;
  top: 6px; right: 16px;
  width: 2.5px; height: 55%;
  background: linear-gradient(180deg, #999 0%, #bbb 50%, #aaa 100%);
  border-radius: 2px;
  transform-origin: top center;
  transform: rotate(22deg);
  box-shadow: -1px 0 3px rgba(0,0,0,0.2);
}
/* 唱臂小圆头 */
.crp2-arm::after {
  content: '';
  position: absolute;
  bottom: -2px; left: -3px;
  width: 8px; height: 6px;
  border-radius: 3px;
  background: #bbb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ── 底部磨砂信息条 ── */
.crp2-bar {
  height: 26px;
  display: flex; align-items: center;
  padding: 0 8px;
  gap: 3px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.crp2-title {
  font-size: 10px; font-weight: 300; font-style: italic;
  color: var(--desktop-text-main);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 80px;
}

.crp2-sep {
  font-size: 8px; color: var(--desktop-text-aux); opacity: 0.45; flex-shrink: 0;
}

.crp2-artist {
  font-size: 9px; font-weight: 300; font-style: italic;
  color: var(--desktop-text-aux);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 60px;
}

/* ═══════════════ 时钟 2×2 / 3×2 v2 — 横版 ═══════════════ */

.card-clock-v2 {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  padding: 8px 12px;
}

.clock2-time {
  font-size: 40px; font-weight: 600;
  color: var(--desktop-text-main);
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Roboto Mono', 'Menlo', monospace;
  line-height: 1.1;
  white-space: nowrap;
}

.clock2-sec {
  font-size: 16px; font-weight: 400;
  color: var(--desktop-text-aux);
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Roboto Mono', 'Menlo', monospace;
  letter-spacing: 0.5px;
  margin-left: 2px;
}

.clock2-date {
  font-size: 12px; font-weight: 400;
  color: var(--desktop-text-aux);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ═══════════════ 完整鲸鱼 2×2 ═══════════════ */

.card-whale-bubble {
  font-size: 11px;
  color: var(--desktop-text-aux);
  background: rgba(255,255,255,0.4);
  padding: 3px 8px;
  border-radius: 8px;
  margin-top: 2px;
  max-width: 90%;
  text-align: center;
  transition: opacity 0.3s;
}

/* ═══════════════ 便签 2×2 ═══════════════ */

.card-note-wrap {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 14px;
}

.card-note-upper {
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-family, system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif);
  color: var(--desktop-text-main, #1a1a1a);
  text-align: left;
  align-self: flex-start;
  margin-bottom: 8px;
}

.card-note-lower {
  font-size: 13px;
  font-family: var(--font-family, system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif);
  color: var(--desktop-text-aux, #999);
  text-align: right;
  align-self: flex-end;
}

.card-note-double {
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-family, system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif);
  color: var(--desktop-text-main, #1a1a1a);
  text-align: center;
}

/* ═══════════════ 天气详情 3×4 v2 ═══════════════ */

.card-weather-detail-v2 {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 10px 12px;
  gap: 2px;
}

/* 顶部时间 */
.cwd2-time {
  font-size: 26px; font-weight: 600; text-align: center;
  color: var(--desktop-text-main); letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Roboto Mono', 'Menlo', monospace;
  line-height: 1.1;
}

.cwd2-date {
  font-size: 11px; text-align: center;
  color: var(--desktop-text-aux); letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* 天气主体：图标 + 信息 */
.cwd2-main {
  display: flex; align-items: center;
  gap: 10px; padding: 0 4px;
  flex: 1;
}

.cwd2-icon {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--desktop-text-main);
}

.cwd2-info {
  display: flex; flex-direction: column;
  gap: 1px;
}

.cwd2-city {
  font-size: 13px; font-weight: 500;
  color: var(--desktop-text-main);
}

.cwd2-temp {
  font-size: 34px; font-weight: 600;
  color: var(--desktop-text-main);
  line-height: 1.1;
  letter-spacing: -1px;
}

.cwd2-desc {
  font-size: 12px;
  color: var(--desktop-text-aux);
}

/* 底部四天预报 */
.cwd2-forecast {
  display: flex; justify-content: space-around;
  padding-top: 6px;
  border-top: 1px solid rgba(143,175,191,0.12);
  flex-shrink: 0;
}

.cwd2-fc-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  font-size: 10px;
  color: var(--desktop-text-aux);
  line-height: 1.5;
}

/* ═══════════════ 相册胶囊 4×3 竖版 ═══════════════ */

.card-album-wrap-v {
  width: 100%; height: 100%;
  border-radius: 18px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}

.calb-header-v {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 4px;
  flex-shrink: 0;
}

.calb-date-v {
  font-size: 12px; font-weight: 500; color: var(--desktop-text-main);
  line-height: 1.3;
}

.calb-title-v {
  font-size: 13px; font-weight: 500; color: var(--desktop-text-main);
  letter-spacing: 0.5px;
}

.calb-title-sub {
  font-size: 12px; color: var(--desktop-text-aux);
  margin-left: 6px;
  font-weight: 400;
}

.calb-capsules-v {
  flex: 1; display: flex;
  gap: 10px; overflow: hidden;
  align-items: stretch;
}

.calb-capsule-v {
  flex: 1;
  border-radius: 999px;
  border: 1.5px dashed rgba(143,175,191,0.3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  cursor: pointer;
  min-width: 36px;
  transition: border-color 0.2s, transform 0.2s;
}

.calb-capsule-v.calb-high {
  align-self: flex-start;
  height: 100%;
}

.calb-capsule-v.calb-low {
  align-self: flex-end;
  height: 72%;
}

.calb-capsule-v:active {
  border-color: rgba(143,175,191,0.6);
  transform: scale(0.95);
}

.calb-capsule-img-v {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.calb-capsule-plus-v {
  font-size: 18px; color: rgba(143,175,191,0.35);
  font-weight: 300;
}

/* ═══════════════ 拍立得 3×5 ═══════════════ */

.card-polaroid-wrap {
  width: 100%; height: 100%;
  background: #FDFAF7;
  border-radius: 4px;
  padding: 8px 8px 28px 8px;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}

.cpld-frame {
  flex: 1;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #FDFAF7;
  border-radius: 1px;
}

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

.cpld-caption {
  height: 28px;
  display: flex; align-items: flex-end; justify-content: center;
  font-size: 12px;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  color: #2c2c2c;
  letter-spacing: 0.6px;
  padding-bottom: 4px;
}

/* ═══════════════ CD 盒子 4×2 — 亚克力 Jewel Case ═══════════════ */

.jewelcase-inner {
  width: 100%; height: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

/* ── 左：插页卡片 ── */
.jc-left {
  flex: 0 0 50%;
  position: relative;
  cursor: pointer;
  border-right: 1px solid rgba(0,0,0,0.05);
}

.jc-insert-frame {
  position: absolute;
  inset: 3px;
  border: 1.5px solid rgba(0,0,0,0.07);
  border-radius: 1px;
  overflow: hidden;
  background: rgba(255,255,255,0.3);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

.jc-insert-art {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.jc-insert-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.jc-placeholder {
  stroke: rgba(72,102,116,0.2);
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 插页四角透明卡扣 */
.jc-clip {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 1px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
  z-index: 3;
  pointer-events: none;
}
.jc-clip-tl { top: 4px; left: 4px; border-right: none; border-bottom: none; }
.jc-clip-tr { top: 4px; right: 4px; border-left: none; border-bottom: none; }
.jc-clip-bl { bottom: 4px; left: 4px; border-right: none; border-top: none; }
.jc-clip-br { bottom: 4px; right: 4px; border-left: none; border-top: none; }

/* ── 中轴铰链 ── */
.jc-spine {
  flex: 0 0 4px;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.05),
    rgba(0,0,0,0.08) 20%,
    rgba(255,255,255,0.18) 40%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.18) 60%,
    rgba(0,0,0,0.08) 80%,
    rgba(0,0,0,0.05)
  );
  box-shadow: -1px 0 1px rgba(0,0,0,0.04), 1px 0 1px rgba(255,255,255,0.25);
}

/* ── 右：CD 托盘 ── */
.jc-right {
  flex: 0 0 calc(50% - 4px);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.jc-tray-frame {
  position: absolute;
  inset: 3px;
  border-radius: 1px;
  background: #2a2d32;
  border: 2px solid rgba(0,0,0,0.12);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), inset 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.jc-tray-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

.jc-tray-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* 托盘中心凸起 */
.jc-tray-hub {
  position: absolute;
  width: 14%; aspect-ratio: 1;
  border-radius: 50%;
  top: 50%; left: 50%;
  margin-left: -7%; margin-top: -7%;
  z-index: 1;
  background: radial-gradient(circle, #3a3e44 0%, #2a2d32 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 0 0 2px rgba(0,0,0,0.15);
  pointer-events: none;
}

/* ── CD 碟片 ── */
.jc-disc {
  position: absolute;
  width: 72%; aspect-ratio: 1;
  border-radius: 50%;
  top: 50%; left: 50%;
  margin-left: -36%; margin-top: -36%;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3), 0 0 0 2px rgba(255,255,255,0.04);
  transition: transform 0.15s;
}
.jc-disc:active { transform: scale(0.97); }
.jc-disc.spinning {
  animation: jcSpin 4s linear infinite;
}
@keyframes jcSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* CD 碟面金属底 */
.jc-disc-surface {
  position: absolute; inset: 0;
  border-radius: 50%;
  z-index: 0;
  background: radial-gradient(
    circle,
    #f2f2f2 0%, #e0e0e0 12%, #ececec 13%,
    #d4d4d4 28%, #e2e2e2 29%, #ececec 46%,
    #d8d8d8 70%, #c8c8c8 88%, #b8b8b8 100%
  );
}

/* CD 标签（封面） */
.jc-disc-art {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  background: #e8e8e8;
}

.jc-disc-art-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* CD 中心孔 */
.jc-disc-hole {
  position: absolute;
  width: 10%; aspect-ratio: 1;
  border-radius: 50%;
  top: 50%; left: 50%;
  margin-left: -5%; margin-top: -5%;
  z-index: 3;
  background: radial-gradient(circle at 40% 35%, #555, #222);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,0.5);
}

/* CD 表面光泽 */
.jc-disc-shine {
  position: absolute; inset: 0;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 28% 22%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

/* ── 底部信息条 ── */
.jc-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 20px;
  display: flex; align-items: center;
  padding: 0 6px;
  background: rgba(255,255,255,0.18);
  gap: 3px;
}

.jc-bar-info {
  display: flex; align-items: baseline;
  gap: 3px; min-width: 0; overflow: hidden;
}

.jc-bar-title {
  font-size: 10px; font-weight: 300; font-style: italic;
  color: var(--desktop-text-main);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 90px;
}

.jc-bar-sep {
  font-size: 8px; color: var(--desktop-text-aux); opacity: 0.45; flex-shrink: 0;
}

.jc-bar-artist {
  font-size: 9px; font-weight: 300; font-style: italic;
  color: var(--desktop-text-aux);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 70px;
}

/* ═══════════════ 个人主页 4×4 v4 — 封面+大头像+点赞 ═══════════════ */

.card-profile-wrap-v4 {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
}

/* ── 上半部：封面背景 ── */
.cpf4-cover {
  height: 50%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e0e8f0 0%, #d0dce8 50%, #dce4f0 100%);
  flex-shrink: 0;
}

.cpf4-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.cpf4-bg-empty {
  width: 100%; height: 100%;
}

.cpf4-cover-hint {
  position: absolute;
  font-size: 11px; color: rgba(72,102,116,0.25);
  pointer-events: none;
}

/* ── 下半部 ── */
.cpf4-bottom {
  height: 50%;
  display: flex; align-items: center;
  padding: 0 10px;
  position: relative;
  flex-shrink: 0;
}

/* 大头像（左下，大半压住分割线） */
.cpf4-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2.5px solid rgba(255,255,255,0.6);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  margin-top: -38px; /* 大半压入上半部，靠近中线 */
  z-index: 2;
}

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

.cpf4-avatar-emoji {
  display: flex; align-items: center; justify-content: center;
}

/* 信息（右移） */
.cpf4-meta {
  display: flex; flex-direction: column;
  gap: 1px;
  margin-left: 12px;
  min-width: 0;
  flex: 1;
}

.cpf4-name {
  font-size: 15px; font-weight: 600;
  color: var(--desktop-text-main);
  line-height: 1.3;
}

.cpf4-id {
  font-size: 10px; color: var(--desktop-text-aux);
  opacity: 0.65;
  font-family: 'SF Mono', 'Roboto Mono', 'Menlo', monospace;
  letter-spacing: 0.3px;
}

.cpf4-bio {
  font-size: 11px; color: var(--desktop-text-aux);
  opacity: 0.7;
  line-height: 1.3;
}

.cpf4-loc {
  font-size: 10px; color: var(--desktop-text-aux);
  opacity: 0.55;
}

/* 点赞按钮（最右） */
.cpf4-like {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--desktop-text-aux);
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.15s;
  user-select: none;
  -webkit-user-select: none;
}

.cpf4-like:active {
  transform: scale(1.15);
  opacity: 1;
}

.cpf4-like-count {
  font-size: 10px; font-weight: 500;
  color: var(--desktop-text-aux);
}

.cpf4-like-count.liked {
  animation: likePop 0.3s ease;
}

@keyframes likePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); color: #e74c3c; }
  100% { transform: scale(1); }
}
