/* =====================================================
   浪浪的个人空间 · 毛玻璃风格样式
   ===================================================== */
:root {
  --primary: #f472b6;
  --primary-2: #c084fc;
  --primary-3: #818cf8;
  --text: #2d2a3a;
  --text-muted: #8a86a0;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.65);
  --shadow: 0 8px 32px rgba(120, 80, 160, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  background: linear-gradient(135deg, #fdf2f8 0%, #ede9fe 30%, #e0e7ff 60%, #fce7f3 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ---- 背景层（上传的背景图 + 渐变 + 动效） ---- */
#bg-layer {
  position: fixed; inset: 0; z-index: -3;
  background: linear-gradient(135deg, #fdf2f8 0%, #ede9fe 30%, #e0e7ff 60%, #fce7f3 100%);
  background-attachment: fixed;
}
#bg-img {
  position: fixed; inset: 0; z-index: -2;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: opacity .8s;
}
#bg-blur {
  position: fixed; inset: 0; z-index: -1;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.bg-bubbles {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-bubbles i {
  position: absolute; bottom: -80px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), rgba(255,255,255,.05));
  animation: floatUp linear infinite; opacity: .5;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: .55; }
  100% { transform: translateY(-110vh) translateX(30px) scale(1.15); opacity: 0; }
}

a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ---- 玻璃卡片 ---- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =====================================================
   顶部导航（一行毛玻璃，包住界面信息）
   ===================================================== */
.navbar {
  position: sticky; top: 10px; z-index: 100;
  margin: 12px 4vw 0;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 18px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
/* 左：logo + 标题 */
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: none; }
.logo {
  width: 44px; height: 44px; flex: none; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 18px rgba(244, 114, 182, .45);
  overflow: hidden; white-space: nowrap;
}
.brand-text h1 { font-size: 19px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.brand-text p { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

/* 中：子菜单 */
.nav-menu { display: flex; gap: 4px; flex: 1; justify-content: center; min-width: 0; }
.nav-menu a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  color: var(--text); font-size: 14px; font-weight: 600;
  transition: all .25s; white-space: nowrap;
}
.nav-menu a:hover { background: rgba(255,255,255,.65); color: var(--primary); transform: translateY(-2px); }
.nav-menu a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; box-shadow: 0 6px 16px rgba(244,114,182,.4);
}

/* 右：头像昵称 */
.user-box { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex: none; }
.user-box .u-avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid #fff; box-shadow: 0 4px 14px rgba(120,80,160,.35);
}
.user-box .u-name { text-align: right; }
.user-box .u-name b { font-size: 14px; display: block; }
.user-box .u-name span { font-size: 11px; color: var(--text-muted); }

/* =====================================================
   主体布局
   ===================================================== */
.layout {
  max-width: 1440px; margin: 22px auto 0; padding: 0 4vw 40px;
  display: grid; grid-template-columns: 260px minmax(0,1fr) 280px;
  gap: 18px; align-items: start;
}
.card { padding: 20px; }
.card-title {
  font-size: 15px; font-weight: 800; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.card-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(244,114,182,.4), transparent); }

/* ---- 左侧：休闲区 ---- */
.music-player audio { width: 100%; margin-bottom: 12px; border-radius: 999px; }
.music-list { list-style: none; max-height: 340px; overflow-y: auto; }
.music-list li {
  padding: 9px 12px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; gap: 10px; font-size: 13.5px;
  transition: background .2s;
}
.music-list li:hover { background: rgba(255,255,255,.6); }
.music-list li.playing { background: rgba(244,114,182,.16); color: var(--primary); font-weight: 700; }
.music-list .m-ic { font-size: 16px; }
.music-list .m-artist { color: var(--text-muted); font-size: 12px; margin-left: auto; }
.music-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 10px; text-align: center; }

.quote-box { margin-top: 14px; text-align: center; cursor: pointer; }
.quote-box .q-text { font-size: 13px; min-height: 44px; color: var(--text); }
.quote-box .q-from { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

/* ---- 中间：个人信息区 ---- */
.profile { text-align: center; padding: 34px 20px 28px; }
.profile .p-avatar {
  width: 116px; height: 116px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: 0 10px 30px rgba(244,114,182,.4);
  margin-bottom: 16px;
}
.profile .p-name { font-size: 24px; font-weight: 800; letter-spacing: 2px; }
.profile .p-age {
  display: inline-block; margin-top: 8px; padding: 4px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(244,114,182,.18), rgba(192,132,252,.18));
  color: var(--primary); font-size: 13px; font-weight: 700;
}
.profile .p-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.profile .p-tags span {
  padding: 5px 14px; border-radius: 999px; font-size: 12.5px;
  background: rgba(255,255,255,.65); border: 1px solid var(--glass-border);
  box-shadow: 0 2px 8px rgba(120,80,160,.12);
}
.profile .p-subtitle { margin-top: 16px; font-size: 13.5px; color: var(--text-muted); }
.profile .p-notice {
  margin-top: 14px; font-size: 12.5px; color: #b45309;
  background: rgba(255,237,213,.6); border-radius: 10px; padding: 8px 12px;
}

.stats-row { display: flex; gap: 12px; margin-top: 20px; }
.stats-row .stat {
  flex: 1; padding: 14px 8px; border-radius: 14px; text-align: center;
  background: rgba(255,255,255,.5); border: 1px solid var(--glass-border);
}
.stats-row .stat b { display: block; font-size: 22px; color: var(--primary); }
.stats-row .stat span { font-size: 12px; color: var(--text-muted); }

/* ---- 右侧：信息区 ---- */
.info-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(138,134,160,.25); font-size: 13.5px; }
.info-item:last-child { border-bottom: none; }
.info-item .i-ic { font-size: 20px; }
.info-item .i-k { color: var(--text-muted); font-size: 12px; display: block; }
.info-item .i-v { font-weight: 600; word-break: break-all; }
.info-item .i-v.empty { color: var(--text-muted); font-weight: 400; }

/* =====================================================
   底部
   ===================================================== */
footer {
  max-width: 1440px; margin: 0 4vw 24px; padding: 18px 20px;
  border-radius: var(--radius); text-align: center; font-size: 12.5px; color: var(--text-muted);
}
footer a { color: var(--text-muted); }
footer .f-line { margin: 4px 0; }

/* =====================================================
   跳转提示
   ===================================================== */
#jump-mask {
  position: fixed; inset: 0; z-index: 9999; display: none;
  align-items: center; justify-content: center;
  background: rgba(30, 20, 50, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
#jump-mask.show { display: flex; }
.jump-card {
  background: rgba(255,255,255,.85); backdrop-filter: blur(24px);
  border-radius: 22px; padding: 36px 52px; text-align: center;
  box-shadow: 0 20px 60px rgba(60,40,120,.35); border: 1px solid rgba(255,255,255,.8);
  animation: popIn .35s ease;
}
.jump-card .j-ic { font-size: 44px; animation: bounce 1s ease infinite; }
.jump-card .j-t { margin-top: 12px; font-size: 17px; font-weight: 700; }
.jump-card .j-s { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
@keyframes popIn { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* =====================================================
   子页面通用
   ===================================================== */
.page-hero {
  display: flex; justify-content: center;
  margin-bottom: 20px;
}
.page-hero .ph-card {
  width: 100%; max-width: 700px;
  text-align: center; padding: 20px 30px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--shadow);
}
.page-hero .ph-card h2 { font-size: 22px; font-weight: 800; }
.page-hero .ph-card p { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

.page-main { max-width: 1080px; margin: 26px auto 30px; padding: 0 4vw 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border: none; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 16px rgba(244,114,182,.35);
  transition: all .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(244,114,182,.45); }
.btn.ghost { background: rgba(255,255,255,.7); color: var(--text); box-shadow: none; border: 1px solid var(--glass-border); }
.btn.danger { background: linear-gradient(135deg, #f87171, #f43f5e); box-shadow: 0 6px 16px rgba(244,63,94,.3); }
.btn.small { padding: 7px 14px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs .tab {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.55); font-size: 14px; font-weight: 600; color: var(--text);
  transition: all .2s;
}
.tabs .tab.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(244,114,182,.35); }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.form-row input[type=text], .form-row input[type=password], .form-row input[type=date],
.form-row input[type=number], .form-row textarea, .form-row select {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.75);
  font-size: 14px; outline: none; transition: all .2s; color: var(--text);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(244,114,182,.18);
}
.form-row textarea { resize: vertical; min-height: 90px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 999px; margin: 4px;
  background: rgba(255,255,255,.65); border: 1.5px solid var(--glass-border);
  font-size: 13.5px; cursor: pointer; transition: all .2s; user-select: none;
}
.chip:hover { border-color: var(--primary); }
.chip.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(244,114,182,.35); }

/* toast */
#toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: rgba(40, 30, 60, .85); color: #fff; padding: 12px 24px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .35s; z-index: 9998;
  backdrop-filter: blur(10px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* modal */
.modal-mask {
  position: fixed; inset: 0; z-index: 9000; display: none;
  align-items: center; justify-content: center;
  background: rgba(30,20,50,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal-box {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: rgba(255,255,255,.9); backdrop-filter: blur(24px);
  border-radius: 20px; padding: 26px; box-shadow: 0 20px 60px rgba(60,40,120,.35);
  border: 1px solid rgba(255,255,255,.8); animation: popIn .3s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head b { font-size: 17px; }
.modal-close { border: none; background: rgba(0,0,0,.06); width: 32px; height: 32px; border-radius: 50%; font-size: 15px; }
.modal-close:hover { background: rgba(244,114,182,.2); }

/* =====================================================
   打卡页
   ===================================================== */
.mood-pick { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mood-pick .mood {
  width: 74px; padding: 12px 4px; text-align: center; border-radius: 16px;
  background: rgba(255,255,255,.6); border: 1.5px solid var(--glass-border);
  cursor: pointer; transition: all .2s; font-size: 12.5px;
}
.mood-pick .mood:hover { transform: translateY(-3px); border-color: var(--primary); }
.mood-pick .mood.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(244,114,182,.4); }
.mood-pick .mood .m-ic { display: block; font-size: 28px; margin-bottom: 4px; }

.checkin-status { text-align: center; padding: 18px; border-radius: 14px; margin-bottom: 16px; background: rgba(255,255,255,.45); }
.checkin-status .cs-big { font-size: 30px; }
.checkin-status .cs-text { font-size: 14.5px; margin-top: 6px; font-weight: 600; }

.history-list { list-style: none; }
.history-list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  border-bottom: 1px dashed rgba(138,134,160,.25); font-size: 13.5px;
}
.history-list li:last-child { border-bottom: none; }
.history-list .h-date { color: var(--text-muted); font-size: 12.5px; min-width: 96px; }

/* 沐浴打卡 */
.bath-lock {
  text-align: center; padding: 50px 20px;
}
.bath-lock input { max-width: 300px; margin: 16px auto; display: block; text-align: center; letter-spacing: 2px; }
.part-chips { display: flex; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.part-chips .chip.region-chip { padding: 10px 26px; font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.part-chips .chip.region-chip.active { background: linear-gradient(135deg, #fb7185, #f43f5e); box-shadow: 0 6px 18px rgba(244,63,94,.32); }
.part-group { width: 100%; margin: 6px 0 10px; }
.part-group .pg-title { font-size: 12.5px; color: var(--text-muted); text-align: center; margin: 6px 0 2px; letter-spacing: .5px; }
.part-group .pg-chips { display: flex; flex-wrap: wrap; justify-content: center; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.media-grid .m-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: rgba(0,0,0,.08); cursor: pointer; }
.media-grid .m-item img, .media-grid .m-item video { width: 100%; height: 100%; object-fit: cover; filter: blur(10px); transition: filter .3s; }
.media-grid .m-item.show img, .media-grid .m-item.show video { filter: blur(0); }
.media-grid .m-item .m-tag { position: absolute; left: 6px; bottom: 6px; font-size: 11px; background: rgba(0,0,0,.55); color: #fff; padding: 2px 8px; border-radius: 999px; }
.media-grid .m-item .m-del { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(244,63,94,.85); color: #fff; font-size: 12px; line-height: 1; }

/* 日历（沐浴打卡） */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.cal-grid .cal-cell { text-align: center; padding: 8px 0; border-radius: 10px; font-size: 13px; background: rgba(255,255,255,.45); }
.cal-grid .cal-cell.dim { opacity: .35; }
.cal-grid .cal-cell.done { background: linear-gradient(135deg, #34d399, #10b981); color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(16,185,129,.35); }
.cal-grid .cal-cell.today { outline: 2px solid var(--primary); outline-offset: 1px; }
.cal-grid .cal-cell.today.done { outline-color: #fff; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cal-head button { border: none; background: rgba(255,255,255,.7); width: 30px; height: 30px; border-radius: 8px; font-size: 16px; }

/* =====================================================
   日记页
   ===================================================== */
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-item { padding: 18px 22px; transition: transform .2s, box-shadow .2s; }
.post-item:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(120,80,160,.22); }
.post-item h3 { font-size: 16.5px; }
.post-item .p-meta { font-size: 12px; color: var(--text-muted); margin: 6px 0 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.post-item .p-excerpt { font-size: 13.5px; color: #555; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-content { font-size: 15px; line-height: 1.95; word-break: break-word; }
.post-content img { max-width: 100%; border-radius: 12px; }
.post-content pre { background: rgba(0,0,0,.06); padding: 14px; border-radius: 12px; overflow-x: auto; }
.post-content blockquote { border-left: 4px solid var(--primary); padding-left: 14px; color: var(--text-muted); margin: 10px 0; }
.post-content h1, .post-content h2, .post-content h3 { margin: 18px 0 8px; }

.editor-toolbar-extra { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }

/* wangEditor 毛玻璃适配 */
.w-e-text-container { background: rgba(255,255,255,.75) !important; }
.w-e-toolbar { background: rgba(255,255,255,.6) !important; border-radius: 12px 12px 0 0 !important; }
.w-e-text-container { border-radius: 0 0 12px 12px !important; }
.w-e-bar, .w-e-bar-divider { border-color: var(--glass-border) !important; }

/* =====================================================
   你问我答
   ===================================================== */
.qa-item { padding: 18px 22px; margin-bottom: 14px; }
.qa-item .q-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.qa-item .q-content { font-size: 15px; font-weight: 600; }
.qa-item .q-reply { margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: linear-gradient(135deg, rgba(244,114,182,.1), rgba(192,132,252,.12)); border: 1px dashed rgba(244,114,182,.4); font-size: 14px; }
.qa-item .q-reply .qr-tag { font-weight: 800; color: var(--primary); margin-right: 6px; }
.qa-item .q-wait { margin-top: 10px; font-size: 12.5px; color: var(--text-muted); }

/* =====================================================
   后台登录页
   ===================================================== */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 400px; padding: 40px 36px; text-align: center; }
.login-card .l-ic { font-size: 46px; }
.login-card h2 { margin: 10px 0 4px; font-size: 22px; }
.login-card .l-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.login-card .form-row { text-align: left; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.login-error { color: #f43f5e; font-size: 13px; margin-top: 10px; min-height: 18px; }

/* =====================================================
   响应式
   ===================================================== */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .side-left, .side-right { order: 2; }
  .navbar { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px; }
  .nav-menu { order: 3; flex-basis: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .navbar { margin-top: 8px; }
  .brand-text p { display: none; }
  .page-main { margin-top: 20px; }
  .stats-row { flex-wrap: wrap; }
  .user-box .u-name span { display: none; }
}

/* =====================================================
   沐浴打卡 v2(仪表盘 / 记一笔 / 热力图 / 时间线)
   ===================================================== */
.bd-card {
  padding: 18px 18px 14px; border-radius: 18px; margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.78), rgba(255,255,255,.5));
  border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.bd-today { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bd-ring {
  width: 74px; height: 74px; flex: 0 0 74px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(#f472b6 calc(var(--p, 0) * 1%), rgba(244,114,182,.16) 0);
  transition: background .5s ease;
}
.bd-ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: rgba(255,255,255,.92); }
.bd-ring b, .bd-ring i { position: relative; z-index: 1; line-height: 1; }
.bd-ring b { font-size: 22px; color: #db2777; }
.bd-ring i { font-size: 10px; color: var(--text-muted); position: absolute; bottom: 16px; }
.bd-today-info { flex: 1 1 240px; min-width: 200px; display: flex; flex-direction: column; gap: 4px; }
.bd-today-info b { font-size: 16px; }
.bd-today-info span { font-size: 12.5px; color: var(--text-muted); }
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bd-chips .bd-chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: rgba(244,114,182,.12); color: #be185d; border: 1px solid rgba(244,114,182,.25);
}
.bd-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px;
}
.bd-stat {
  text-align: center; padding: 10px 4px; border-radius: 12px;
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.75);
}
.bd-stat b { display: block; font-size: 17px; color: #7c3aed; }
.bd-stat i { font-size: 11px; color: var(--text-muted); font-style: normal; }
.bd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bd-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px;
  padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.55);
  border: 1px dashed rgba(168,85,247,.4); color: var(--text-muted);
}
.bd-badge.on { border-style: solid; background: linear-gradient(135deg,#fde68a,#fbcfe8); color: #92400e; font-weight: 700; }

.bath-cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.bath-form-card {
  padding: 18px; border-radius: 18px; background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.bfc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.bfc-head h3 { font-size: 16px; }
.bfc-quick { display: flex; gap: 6px; }
.bfc-step { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; margin: 16px 0 4px; }
.bfc-step span {
  width: 19px; height: 19px; border-radius: 50%; flex: 0 0 19px;
  display: grid; place-items: center; font-size: 11px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.bfc-step em { font-weight: 400; color: var(--text-muted); font-style: normal; font-size: 11.5px; }
.bfc-inline { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.bfc-inline input[type=number] {
  width: 120px; padding: 8px 12px; border-radius: 10px; font-size: 13px;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.8); color: var(--text); outline: none;
}
.bfc-hint { font-size: 11.5px; color: var(--text-muted); }
.bath-textarea {
  width: 100%; min-height: 84px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.8); color: var(--text);
  resize: vertical; outline: none; font-family: inherit;
}
.bath-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(244,114,182,.18); }
.bfc-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.bath-submit { background: linear-gradient(135deg,#f472b6,#c084fc); color: #fff; box-shadow: 0 8px 20px rgba(192,132,252,.4); }
.bath-submit:disabled { opacity: .6; cursor: wait; }
.bath-file-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bath-file-row .bf-chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 8px; background: rgba(255,255,255,.75);
  border: 1px solid var(--glass-border); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bath-msg { margin-top: 8px; font-size: 12.5px; min-height: 18px; color: var(--text-muted); }
.bath-msg.bad { color: #e11d48; }

.bath-block { margin-top: 18px; }
.bd-count { color: var(--primary); }

/* 日历加强 */
.cal-grid { grid-template-columns: repeat(7, 1fr); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px; font-size: 11px; color: var(--text-muted); text-align: center; }
.cal-grid .cal-cell { position: relative; cursor: pointer; transition: transform .15s, box-shadow .15s; min-height: 36px; }
.cal-grid .cal-cell:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(168,85,247,.25); }
.cal-grid .cal-cell .cc-n { font-weight: 700; }
.cal-grid .cal-cell .cc-min { display: block; font-size: 9px; opacity: .85; line-height: 1; }
.cal-grid .cal-cell.lv1 { background: linear-gradient(135deg,#a7f3d0,#6ee7b7); color: #065f46; }
.cal-grid .cal-cell.lv2 { background: linear-gradient(135deg,#6ee7b7,#34d399); color: #064e3b; }
.cal-grid .cal-cell.lv3 { background: linear-gradient(135deg,#34d399,#059669); color: #fff; }
.cal-grid .cal-cell.done { box-shadow: 0 3px 10px rgba(16,185,129,.28); }
.cal-legend { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text-muted); margin-top: 10px; flex-wrap: wrap; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-legend .lv0 { background: rgba(0,0,0,.06); }
.cal-legend .lv1 { background: #a7f3d0; }
.cal-legend .lv2 { background: #34d399; }
.cal-legend .lv3 { background: #059669; }
.cal-summary { margin-top: 10px; font-size: 12.5px; color: var(--text-muted); }
.cal-summary b { color: #7c3aed; }
.cal-info { margin-top: 6px; font-size: 12px; color: var(--text-muted); min-height: 18px; }

/* 12 周热力图 */
.heat-wrap { display: flex; gap: 6px; margin-top: 10px; }
.heat-days { display: flex; flex-direction: column; justify-content: space-between; font-size: 9px; color: var(--text-muted); padding: 1px 0; }
.heat-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); grid-auto-columns: 1fr; gap: 3px; flex: 1 1 auto; min-width: 0; }
.heat-grid i {
  width: 100%; height: 100%; min-height: 8px; border-radius: 3px; background: rgba(0,0,0,.06); display: block;
}
.heat-grid i.l1 { background: #fbcfe8; }
.heat-grid i.l2 { background: #f9a8d4; }
.heat-grid i.l3 { background: #ec4899; }
.heat-grid i.l4 { background: #be185d; }
.heat-grid i.today { outline: 1.5px solid #7c3aed; outline-offset: 1px; }
.heat-foot { margin-top: 8px; font-size: 11.5px; color: var(--text-muted); }

/* 部位排行 */
.rank-list { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.rank-row { display: grid; grid-template-columns: 64px 1fr 32px; align-items: center; gap: 8px; font-size: 12px; }
.rank-row .rk-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.rank-row .rk-bar { height: 8px; border-radius: 999px; background: rgba(0,0,0,.06); overflow: hidden; }
.rank-row .rk-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#f9a8d4,#c084fc); }
.rank-row .rk-num { text-align: right; color: var(--text-muted); font-size: 11px; }
.rank-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rank-chips span { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(192,132,252,.14); color: #6b21a8; }
.rank-empty { font-size: 12.5px; color: var(--text-muted); padding: 6px 0; }

/* 时间线 */
.bath-timeline { margin-top: 10px; display: flex; flex-direction: column; gap: 14px; }
.tl-day { display: grid; grid-template-columns: 66px 1fr; gap: 12px; }
.tl-date { text-align: right; padding-top: 4px; }
.tl-date b { display: block; font-size: 13px; color: #7c3aed; }
.tl-date i { font-size: 10.5px; color: var(--text-muted); font-style: normal; }
.tl-items { display: flex; flex-direction: column; gap: 8px; border-left: 2px dashed rgba(192,132,252,.35); padding-left: 12px; }
.tl-item {
  position: relative; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.8);
}
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.tl-head b { font-size: 12.5px; color: var(--text); }
.tl-meta { font-size: 11px; color: var(--text-muted); }
.tl-meta em { font-style: normal; color: #db2777; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tl-tags span { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(244,114,182,.13); color: #9d174d; }
.tl-note { margin-top: 6px; font-size: 12.5px; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.tl-media { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tl-media .tm {
  width: 62px; height: 62px; border-radius: 9px; overflow: hidden; cursor: pointer; position: relative;
  background: rgba(0,0,0,.06);
}
.tl-media .tm img, .tl-media .tm video { width: 100%; height: 100%; object-fit: cover; filter: blur(7px); transition: filter .25s; }
.tl-media .tm.show img, .tl-media .tm.show video { filter: blur(0); }
.tl-acts { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.tl-acts button {
  border: none; width: 24px; height: 24px; border-radius: 8px; font-size: 11px; line-height: 1;
  background: rgba(255,255,255,.85); color: var(--text-muted); cursor: pointer;
}
.tl-acts button:hover { background: #fff; color: #db2777; }

/* 编辑弹层 */
.bath-edit-mask {
  position: fixed; inset: 0; z-index: 9500; display: none; align-items: center; justify-content: center;
  background: rgba(30,20,50,.42); backdrop-filter: blur(6px); padding: 20px;
}
.bath-edit-mask.show { display: flex; }
.bath-edit-box {
  width: 100%; max-width: 460px; border-radius: 18px; padding: 20px;
  background: rgba(255,255,255,.96); box-shadow: 0 20px 60px rgba(60,40,120,.35);
}
.bath-edit-box h4 { font-size: 15px; margin-bottom: 12px; }
.bath-edit-box label { display: block; font-size: 12.5px; font-weight: 700; margin: 10px 0 4px; }
.bath-edit-box input, .bath-edit-box select, .bath-edit-box textarea {
  width: 100%; padding: 9px 12px; border-radius: 10px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--glass-border); background: #fff; color: var(--text); outline: none;
}
.bath-edit-box .be-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

@media (max-width: 900px) {
  .bath-cols { grid-template-columns: 1fr; }
  .bd-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .bd-stats { grid-template-columns: repeat(2, 1fr); }
  .tl-day { grid-template-columns: 52px 1fr; gap: 8px; }
  .tl-media .tm { width: 54px; height: 54px; }
}
.heat-grid i.future { background: transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
/* hidden 属性要能压过 .btn 的 display */
.btn[hidden] { display: none !important; }
