/* ============================================================
   Profile · 个人面板样式（8大分页）
   半透明粉色气泡悬浮面板
   ============================================================ */

/* ---------- 面板外壳 ---------- */
.profile .day-card,
.profile .pf-card {
  width: min(520px, 96vw);
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 248, 252, 0.96);
  border: 1.5px solid #ffdcea;
  border-radius: 24px;
  box-shadow: 0 12px 48px rgba(180, 90, 140, 0.22);
  padding: 0;
}

/* ---------- 头部 ---------- */
.pf-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #ffe8f0;
  background: linear-gradient(180deg, #fff5f9, #fff0f6);
}
.pf-avatar-mini {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd9ee, #ffc2e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.pf-info { flex: 1; min-width: 0; }
.pf-name {
  font-size: 16px;
  font-weight: 800;
  color: #a24672;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pf-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: #ffe6f1;
  color: #d6648a;
}
.pf-id {
  font-size: 11px;
  color: #b295a0;
  margin-top: 2px;
}
.pf-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #ffe8f0;
  color: #a24672;
  font-size: 16px;
  cursor: pointer;
  transition: 0.15s;
}
.pf-close:hover { background: #ffd6e0; }

/* ---------- 标签栏 ---------- */
.pf-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #ffe8f0;
}
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tab {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: transparent;
  color: #a08088;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pf-tab:hover { background: #fff0f6; }
.pf-tab.active {
  background: linear-gradient(135deg, #ff85a2, #ff5fa2);
  color: #fff;
  border-color: #ff5fa2;
}

/* ---------- 内容区 ---------- */
.pf-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 18px;
  scrollbar-width: thin;
}
.pf-body::-webkit-scrollbar { width: 4px; }
.pf-body::-webkit-scrollbar-thumb { background: #ffd0e0; border-radius: 4px; }

.pf-section { animation: pfFadeIn 0.25s ease; }
@keyframes pfFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 环形进度 ---------- */
.pf-rings {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 14px;
}
.pf-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--v) * 3.6deg), #ffe8f0 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pf-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fff8fb;
}
.pf-ring-in {
  position: relative;
  text-align: center;
}
.pf-ring-in b {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--c);
}
.pf-ring-in span {
  font-size: 11px;
  color: #a08088;
}

/* ---------- 统计格子 ---------- */
.pf-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.pf-stat-cell {
  background: linear-gradient(180deg, #fff7fb, #ffeef6);
  border: 1.5px solid #ffdcea;
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
}
.pf-stat-cell .pf-si { font-size: 22px; display: block; margin-bottom: 2px; }
.pf-stat-cell b { display: block; font-size: 18px; font-weight: 900; color: #e85d75; }
.pf-stat-cell span { font-size: 11px; color: #a08088; }

/* ---------- 小标题 ---------- */
.pf-subtitle {
  font-size: 13px;
  font-weight: 800;
  color: #a24672;
  margin: 14px 0 8px;
  padding-left: 4px;
  border-left: 3px solid #ff85a2;
}

/* ---------- 错词列表 ---------- */
.pf-wrong-list { display: flex; flex-direction: column; gap: 6px; }
.pf-wrong-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff7fb;
  border: 1px solid #ffdcea;
  font-size: 13px;
}
.pf-wrong-item b { color: #e85d75; min-width: 70px; }
.pf-wrong-item span { color: #7a4a66; }
.pf-wrong-item .pf-ws { margin-left: auto; font-size: 11px; color: #b295a0; white-space: nowrap; }

/* ---------- 大数字展示 ---------- */
.pf-big {
  text-align: center;
  font-size: 38px;
  font-weight: 900;
  color: #e85d75;
  padding: 10px 0;
}
.pf-big span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #a08088;
}

/* ---------- 积分流水 ---------- */
.pf-logs { display: flex; flex-direction: column; gap: 5px; }
.pf-log-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 10px;
  background: #fff7fb;
  font-size: 13px;
  color: #7a4a66;
}
.pf-log-row b { color: #e85d75; }

/* ---------- Buff 标签 ---------- */
.pf-buffs { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-buff-tag {
  padding: 4px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffe6f1, #ffd9ee);
  border: 1px solid #ffd0e0;
  font-size: 12px;
  font-weight: 700;
  color: #d6648a;
}

/* ---------- 角色预览 ---------- */
.pf-avatar-preview {
  text-align: center;
  font-size: 72px;
  padding: 10px 0;
}
.pf-avatar-preview span {
  display: block;
  font-size: 13px;
  color: #a08088;
}
.pf-avatar-info { margin-bottom: 12px; }
.pf-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed #ffdcea;
  font-size: 13px;
  color: #7a4a66;
}
.pf-row label { font-weight: 700; color: #a24672; }

/* ---------- 精灵 ---------- */
.pf-pet-show {
  text-align: center;
  font-size: 60px;
  padding: 10px 0;
}
.pf-pet-show span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #a24672;
}

/* ---------- 房间列表 ---------- */
.pf-room-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.pf-room-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff7fb;
  border: 1px solid #ffdcea;
  font-size: 13px;
  color: #7a4a66;
}
.pf-room-item.locked { opacity: 0.55; }

/* ---------- 勋章 ---------- */
.pf-medal-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pf-medal-tag {
  padding: 4px 10px;
  border-radius: 10px;
  background: #fff7fb;
  border: 1px solid #ffdcea;
  font-size: 12px;
  color: #a24672;
}

/* ---------- 小游戏卡片 ---------- */
.pf-game-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-game-card {
  background: linear-gradient(180deg, #fff7fb, #ffeef6);
  border: 1.5px solid #ffdcea;
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
}
.pf-game-card:hover { transform: translateY(-2px); border-color: #ff9ecf; box-shadow: 0 4px 12px rgba(255, 140, 185, 0.18); }
.pf-gc-icon { font-size: 32px; margin-bottom: 4px; }
.pf-gc-name { font-size: 12px; font-weight: 800; color: #a24672; }
.pf-gc-meta { font-size: 11px; color: #b295a0; margin-top: 2px; }

/* ---------- 设置项 ---------- */
.pf-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #ffdcea;
  font-size: 13px;
  color: #7a4a66;
}
.pf-setting-row label { font-weight: 700; color: #a24672; }
.pf-slider { width: 120px; accent-color: #ff85a2; }
.pf-val { font-size: 12px; color: #b295a0; min-width: 36px; text-align: right; }
.pf-num { width: 60px; padding: 4px 8px; border-radius: 8px; border: 1.5px solid #ffdcea; background: #fff; color: #a24672; font-size: 13px; text-align: center; }

/* Toggle switch */
.pf-toggle { position: relative; display: inline-block; width: 42px; height: 22px; }
.pf-toggle input { opacity: 0; width: 0; height: 0; }
.pf-toggle span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #e0d0d8;
  border-radius: 22px;
  transition: 0.2s;
}
.pf-toggle span::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.pf-toggle input:checked + span { background: linear-gradient(135deg, #ff85a2, #ff5fa2); }
.pf-toggle input:checked + span::before { transform: translateX(20px); }

/* 操作按钮组 */
.pf-action-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

/* 空状态 */
.pf-empty { text-align: center; color: #b295a0; font-size: 13px; padding: 12px 0; }

@media (max-width: 480px) {
  .pf-game-cards { grid-template-columns: repeat(2, 1fr); }
  .pf-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
