/* ============================================================
   huihui.css — 辉辉修炼日志 · 全局样式文件
   风格：古风宣纸，温润雅致
   最后更新：2026-05-16
   
   色彩体系：
     背景色   #f2ebe0  宣纸米黄
     主文字   #3d2b1a  深棕
     主题色   #7a3e1a  砖红（标题、强调）
     边框色   rgba(160,100,60,0.18~0.32)
     强调色   #b5722a  金棕（XP、评分、高亮）
   
   字体体系：
     标题     Noto Sans SC Bold/Black
     正文     Noto Sans SC Regular
     装饰标题  Noto Serif SC
============================================================ */

/* ---------- 谷歌字体引入 ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ---------- 全局重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* 移动端点击不显示蓝色高亮 */
}

/* ---------- 页面基础 ---------- */
body {
  background: #f2ebe0;       /* 宣纸米黄底色 */
  color: #3d2b1a;            /* 深棕主文字色 */
  font-family: 'Noto Sans SC', sans-serif;
  min-height: 100vh;
  font-size: 15px;
}

/* ---------- 最外层容器：手机优先，最宽430px ---------- */
.app {
  max-width: 430px;
  margin: 0 auto;
  padding: 14px;
}

/* ============================================================
   顶部标题栏
============================================================ */
.header {
  padding: 12px 0 10px;
  border-bottom: 1.5px solid rgba(160, 100, 60, 0.25);
  margin-bottom: 11px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header h1 {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #7a3e1a;
  letter-spacing: 4px;
  margin-bottom: 2px;
}
.header p {
  font-size: 11px;
  color: rgba(120, 70, 30, 0.45);
  letter-spacing: 2px;
}

/* 右上角设置按钮 */
.hbtn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(160, 100, 60, 0.3);
  border-radius: 4px;
  padding: 7px 12px;
  color: rgba(120, 70, 30, 0.5);
  font-size: 13px;
  cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 500;
}
.hbtn:hover {
  border-color: rgba(160, 100, 60, 0.6);
  color: #7a3e1a;
}

/* ============================================================
   个人信息栏（头像 + 名字 + 签名）
============================================================ */
.profile-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  background: rgba(255, 248, 235, 0.92);
  border: 1px solid rgba(160, 100, 60, 0.2);
  border-radius: 6px;
  margin-bottom: 9px;
}
.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(160, 100, 60, 0.3);
  flex-shrink: 0;
  background: rgba(180, 130, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-name {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #7a3e1a;
}
.profile-sub {
  font-size: 12px;
  color: rgba(120, 70, 30, 0.45);
  margin-top: 3px;
}

/* ============================================================
   境界卡（当前修炼境界 + XP进度条）
============================================================ */
.realm-card {
  background: rgba(255, 248, 235, 0.92);
  border: 1.5px solid rgba(160, 100, 60, 0.32);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 9px;
  text-align: center;
  position: relative;
}
/* 内层装饰边框 */
.realm-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 0.5px solid rgba(160, 100, 60, 0.12);
  border-radius: 3px;
  pointer-events: none;
}
.realm-name {
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: #7a3e1a;
  letter-spacing: 4px;
  margin-bottom: 4px;
}
.xp-display {
  font-size: 13px;
  color: rgba(120, 70, 30, 0.55);
  margin-bottom: 8px;
}
/* XP进度条外层轨道 */
.xp-bar-wrap {
  background: rgba(160, 100, 60, 0.12);
  border-radius: 3px;
  height: 6px;
  margin-bottom: 5px;
  overflow: hidden;
}
/* XP进度条填充（宽度由JS动态设置） */
.xp-bar {
  height: 100%;
  background: linear-gradient(90deg, #b5722a, #d4943a);
  border-radius: 3px;
  transition: width 0.5s;
}
.xp-next {
  font-size: 12px;
  color: rgba(120, 70, 30, 0.38);
}

/* ============================================================
   顶部3格统计数字（修炼天数 / 今日睡眠 / 精神状态）
============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 9px;
}
.stat-box {
  background: rgba(255, 248, 235, 0.92);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 5px;
  padding: 9px 5px;
  text-align: center;
}
.stat-box .val {
  font-size: 20px;
  font-weight: 700;
  color: #7a3e1a;
}
.stat-box .lbl {
  font-size: 11px;
  color: rgba(120, 70, 30, 0.45);
  margin-top: 2px;
}

/* ============================================================
   Tab导航栏（3个一排，共两排，共6个Tab）
============================================================ */
.tab-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 11px;
}
.tab {
  padding: 13px 4px;
  background: rgba(255, 248, 235, 0.75);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 5px;
  color: rgba(120, 70, 30, 0.45);
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 500;
  transition: all 0.15s;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tab.active {
  border-color: rgba(160, 100, 60, 0.55);
  color: #7a3e1a;
  background: rgba(180, 130, 60, 0.12);
  font-weight: 700;
}

/* ============================================================
   页面切换（每个Tab对应一个page div）
============================================================ */
.page { display: none; }
.page.active { display: block; }

/* ---------- 小节标题（如"— 今日打卡 —"） ---------- */
.st {
  font-size: 12px;
  color: rgba(120, 70, 30, 0.42);
  letter-spacing: 3px;
  margin-bottom: 8px;
  text-align: center;
  font-family: 'Noto Sans SC', sans-serif;
}

/* ============================================================
   通用卡片容器
============================================================ */
.card {
  background: rgba(255, 248, 235, 0.92);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 5px;
  padding: 13px;
  margin-bottom: 10px;
}

/* ---------- 表单行（标签 + 输入框） ---------- */
.irow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 9px;
}
.irow:last-child { margin-bottom: 0; }
.ilbl {
  font-size: 13px;
  color: rgba(120, 70, 30, 0.5);
  width: 56px;
  flex-shrink: 0;
  padding-top: 5px;
  font-weight: 500;
}

/* 单行输入框 */
.ni {
  width: 100%;
  background: rgba(255, 248, 235, 0.6);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 4px;
  padding: 9px;
  color: #3d2b1a;
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
  resize: none;
  height: 52px;
}
/* 多行输入框（日记正文） */
.di {
  width: 100%;
  background: rgba(255, 248, 235, 0.6);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 4px;
  padding: 9px;
  color: #3d2b1a;
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
  resize: none;
  height: 88px;
  margin-bottom: 9px;
}
/* 单行文本输入（任务标题等） */
.ti {
  width: 100%;
  background: rgba(255, 248, 235, 0.6);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 4px;
  padding: 9px;
  color: #3d2b1a;
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
  resize: none;
}
.ni:focus, .di:focus, .ti:focus { border-color: rgba(160, 100, 60, 0.45); }
.ni::placeholder, .di::placeholder, .ti::placeholder { color: rgba(120, 70, 30, 0.22); }

/* ============================================================
   评分按钮组（1~10分，5个一排共两排）
============================================================ */
.sbtns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  width: 100%;
}
.sbtn {
  height: 40px;
  background: rgba(255, 248, 235, 0.92);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 5px;
  color: rgba(120, 70, 30, 0.45);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  font-weight: 500;
}
.sbtn:hover { border-color: rgba(160, 100, 60, 0.45); color: #7a3e1a; }
.sbtn.active {
  background: rgba(180, 130, 60, 0.2);
  border-color: #b5722a;
  color: #7a3e1a;
  font-weight: 700;
}

/* ============================================================
   主提交按钮
============================================================ */
.sub-btn {
  width: 100%;
  background: rgba(180, 130, 60, 0.1);
  border: 1.5px solid rgba(160, 100, 60, 0.32);
  border-radius: 5px;
  padding: 13px;
  color: #7a3e1a;
  font-size: 15px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 5px;
  min-height: 48px;
}
.sub-btn:hover { background: rgba(180, 130, 60, 0.2); }
.sub-btn:active { transform: scale(0.98); }

/* ============================================================
   打卡按钮网格（2列，每格有图标+名称+XP提示）
============================================================ */
.ck-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 10px;
}
.ck-btn {
  background: rgba(255, 248, 235, 0.92);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 5px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  color: #3d2b1a;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* 今日已打卡状态 */
.ck-btn.done {
  border-color: rgba(180, 130, 60, 0.55);
  background: rgba(180, 130, 60, 0.08);
  color: #7a3e1a;
}
.ck-btn .ico { font-size: 20px; margin-bottom: 4px; }
.ck-btn .nm { font-size: 13px; font-weight: 500; }
.ck-btn .xt { font-size: 11px; color: rgba(120, 70, 30, 0.35); margin-top: 3px; }

/* ---------- 分隔线 ---------- */
.divider { border: none; border-top: 1px solid rgba(160, 100, 60, 0.12); margin: 9px 0; }

/* ============================================================
   走势图卡片（睡眠/精神状态）
============================================================ */
.chart-card {
  background: rgba(255, 248, 235, 0.92);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 10px;
}
.chart-wrap { position: relative; height: 170px; }

/* ============================================================
   历史记录列表项（打卡流水、睡眠、精神状态通用）
============================================================ */
.log-item {
  background: rgba(255, 248, 235, 0.92);
  border: 1px solid rgba(160, 100, 60, 0.12);
  border-radius: 5px;
  padding: 10px 12px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.lc { flex: 1; }
.lt { font-size: 14px; color: #3d2b1a; margin-bottom: 2px; font-weight: 500; }
.ln { font-size: 12px; color: rgba(120, 70, 30, 0.45); }
.ltime { font-size: 11px; color: rgba(120, 70, 30, 0.3); margin-top: 3px; }
.lxp { font-size: 14px; color: #7a3e1a; font-weight: 700; flex-shrink: 0; margin-left: 6px; }

/* 评分徽章（圆形，颜色根据分值变化） */
.dbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 5px;
}

/* 删除按钮（仅删本地，Notion不同步） */
.del-btn {
  background: none;
  border: 1px solid rgba(160, 100, 60, 0.2);
  border-radius: 4px;
  color: rgba(160, 100, 60, 0.4);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 9px;
  margin-left: 5px;
  min-height: 30px;
}
.del-btn:hover { border-color: rgba(180, 60, 60, 0.4); color: rgba(180, 60, 60, 0.6); }

/* ============================================================
   分页控件
============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.pg-btn {
  min-width: 34px;
  height: 34px;
  background: rgba(255, 248, 235, 0.92);
  border: 1px solid rgba(160, 100, 60, 0.2);
  border-radius: 4px;
  color: rgba(120, 70, 30, 0.5);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-weight: 500;
}
.pg-btn:hover { border-color: rgba(160, 100, 60, 0.45); color: #7a3e1a; }
.pg-btn.act { border-color: #b5722a; background: rgba(180, 130, 60, 0.15); color: #7a3e1a; font-weight: 700; }
.pg-btn:disabled { opacity: 0.28; cursor: default; }

/* 空状态提示 */
.empty { text-align: center; color: rgba(120, 70, 30, 0.28); font-size: 13px; padding: 18px 0; }

/* ============================================================
   任务页 — 分类筛选胶囊按钮
============================================================ */
.filt { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.fb {
  padding: 8px 14px;
  background: rgba(255, 248, 235, 0.75);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 18px;
  color: rgba(120, 70, 30, 0.45);
  font-size: 13px;
  cursor: pointer;
  min-height: 36px;
  display: flex;
  align-items: center;
  font-weight: 500;
}
.fb.act { border-color: rgba(160, 100, 60, 0.52); color: #7a3e1a; background: rgba(180, 130, 60, 0.1); font-weight: 700; }

/* 任务输入行 */
.add-row { display: flex; gap: 5px; margin-bottom: 9px; flex-wrap: wrap; }
.ati {
  flex: 1;
  min-width: 80px;
  background: rgba(255, 248, 235, 0.6);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 4px;
  padding: 10px;
  color: #3d2b1a;
  font-size: 14px;
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
  min-height: 44px;
}
.ati::placeholder { color: rgba(120, 70, 30, 0.22); }
/* 分类下拉框 */
.sel {
  background: rgba(255, 248, 235, 0.6);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 4px;
  padding: 10px 6px;
  color: #3d2b1a;
  font-size: 13px;
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
  cursor: pointer;
  max-width: 78px;
  min-height: 44px;
}
.add-btn {
  background: rgba(180, 130, 60, 0.1);
  border: 1px solid rgba(160, 100, 60, 0.32);
  border-radius: 4px;
  padding: 10px 14px;
  color: #7a3e1a;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
  min-height: 44px;
  white-space: nowrap;
}

/* 任务列表项 */
.task-item {
  background: rgba(255, 248, 235, 0.92);
  border: 1px solid rgba(160, 100, 60, 0.12);
  border-radius: 5px;
  padding: 11px 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
}
/* 复选框 */
.tchk {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(160, 100, 60, 0.35);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: #7a3e1a;
}
.tchk.chk { background: rgba(180, 130, 60, 0.18); border-color: #b5722a; }
.ttxt { flex: 1; font-size: 14px; color: #3d2b1a; line-height: 1.4; font-weight: 500; }
.ttxt.done { color: rgba(120, 70, 30, 0.3); text-decoration: line-through; }
.tcat { font-size: 11px; color: rgba(120, 70, 30, 0.38); background: rgba(160, 100, 60, 0.08); border-radius: 10px; padding: 3px 8px; flex-shrink: 0; }

/* 小型输入框（如特别打卡项的说明） */
.mi {
  background: rgba(255, 248, 235, 0.6);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 4px;
  padding: 8px;
  color: #3d2b1a;
  font-size: 13px;
  font-family: 'Noto Sans SC', sans-serif;
  outline: none;
}

/* ============================================================
   日记列表项
============================================================ */
.diary-item {
  background: rgba(255, 248, 235, 0.92);
  border: 1px solid rgba(160, 100, 60, 0.12);
  border-radius: 5px;
  padding: 11px 13px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.diary-item:hover { border-color: rgba(160, 100, 60, 0.38); }
.di-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.di-title { font-size: 14px; color: #7a3e1a; font-weight: 700; }
.di-mood { font-size: 13px; color: #b5722a; flex-shrink: 0; }
.di-time { font-size: 11px; color: rgba(120, 70, 30, 0.32); margin-bottom: 4px; }
.di-body { font-size: 13px; color: rgba(120, 70, 30, 0.5); line-height: 1.7; }
.di-more { font-size: 11px; color: rgba(160, 100, 60, 0.45); margin-top: 4px; }

/* ============================================================
   全屏叠加层（日记详情、设置页等）
============================================================ */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #f2ebe0;
  z-index: 100;
  overflow-y: auto;
  padding: 14px;
}
.overlay.open { display: block; }
.ov-inner { max-width: 430px; margin: 0 auto; }
.ov-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 11px;
  border-bottom: 1.5px solid rgba(160, 100, 60, 0.2);
}
.back-btn {
  background: none;
  border: 1px solid rgba(160, 100, 60, 0.32);
  border-radius: 4px;
  padding: 8px 14px;
  color: rgba(120, 70, 30, 0.5);
  font-size: 13px;
  cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 500;
  min-height: 38px;
}
.ov-title { font-family: 'Noto Sans SC', sans-serif; font-weight: 700; font-size: 17px; color: #7a3e1a; flex: 1; }

/* 日记详情 */
.detail-meta { display: flex; gap: 9px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.detail-mood { font-size: 14px; color: #b5722a; background: rgba(180, 130, 60, 0.1); border: 1px solid rgba(160, 100, 60, 0.22); border-radius: 12px; padding: 5px 12px; font-weight: 500; }
.detail-time { font-size: 12px; color: rgba(120, 70, 30, 0.42); }
.detail-body { font-size: 15px; color: #3d2b1a; line-height: 2; white-space: pre-wrap; background: rgba(255, 248, 235, 0.92); border: 1px solid rgba(160, 100, 60, 0.18); border-radius: 5px; padding: 16px; }

/* ============================================================
   设置页
============================================================ */
.sett-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 248, 235, 0.92);
  border: 1px solid rgba(160, 100, 60, 0.18);
  border-radius: 5px;
  padding: 16px 14px;
  margin-bottom: 9px;
  cursor: pointer;
  min-height: 60px;
}
.sett-nav-item:hover { border-color: rgba(160, 100, 60, 0.42); }
.sett-nav-label { font-family: 'Noto Sans SC', sans-serif; font-weight: 700; font-size: 15px; color: #7a3e1a; }
.sett-nav-sub { font-size: 12px; color: rgba(120, 70, 30, 0.42); margin-top: 3px; }
.sett-nav-arr { font-size: 18px; color: rgba(160, 100, 60, 0.45); }

/* 危险操作按钮（清空数据） */
.reset-btn {
  width: 100%;
  background: rgba(180, 60, 40, 0.07);
  border: 1.5px solid rgba(180, 60, 40, 0.32);
  border-radius: 5px;
  padding: 15px;
  color: rgba(160, 50, 30, 0.75);
  font-size: 15px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 700;
  cursor: pointer;
  margin-top: 18px;
  min-height: 52px;
}

/* 设置项（分类/打卡项管理列表） */
.sett-item { background: rgba(255, 248, 235, 0.92); border: 1px solid rgba(160, 100, 60, 0.14); border-radius: 5px; padding: 0; margin-bottom: 7px; overflow: hidden; }
.sett-item-view { display: flex; align-items: center; gap: 9px; padding: 12px 13px; }
.sett-item-name { flex: 1; font-size: 14px; color: #3d2b1a; font-weight: 500; }
/* 编辑展开行（默认隐藏，点修改后展开） */
.sett-edit-row { display: none; padding: 10px 13px 12px; border-top: 1px solid rgba(160, 100, 60, 0.1); gap: 7px; flex-direction: column; }
.sett-edit-row.open { display: flex; }
.sett-edit-inp { flex: 1; background: rgba(255, 248, 235, 0.65); border: 1px solid rgba(160, 100, 60, 0.22); border-radius: 4px; padding: 8px 10px; color: #3d2b1a; font-size: 14px; font-family: 'Noto Sans SC', sans-serif; outline: none; }
.sett-btns { display: flex; gap: 6px; }
.sett-act-btn { background: rgba(180, 130, 60, 0.1); border: 1px solid rgba(160, 100, 60, 0.32); border-radius: 4px; padding: 7px 13px; color: #7a3e1a; font-size: 13px; cursor: pointer; font-weight: 500; min-height: 34px; }
.sett-del-btn { background: none; border: 1px solid rgba(160, 100, 60, 0.2); border-radius: 4px; color: rgba(160, 100, 60, 0.45); font-size: 13px; cursor: pointer; padding: 7px 13px; min-height: 34px; }

/* 新增输入行 */
.sett-add { display: flex; gap: 5px; margin-top: 10px; }
.sett-inp { flex: 1; background: rgba(255, 248, 235, 0.6); border: 1px solid rgba(160, 100, 60, 0.18); border-radius: 4px; padding: 10px; color: #3d2b1a; font-size: 14px; font-family: 'Noto Sans SC', sans-serif; outline: none; min-height: 42px; }
.sett-inp::placeholder { color: rgba(120, 70, 30, 0.22); }
.sett-add-btn { background: rgba(180, 130, 60, 0.1); border: 1px solid rgba(160, 100, 60, 0.32); border-radius: 4px; padding: 10px 14px; color: #7a3e1a; font-size: 14px; cursor: pointer; font-family: 'Noto Sans SC', sans-serif; font-weight: 700; white-space: nowrap; min-height: 42px; }

/* ============================================================
   个人信息页（头像上传 + 名字 + 签名编辑）
============================================================ */
.avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; background: rgba(255, 248, 235, 0.92); border: 1px solid rgba(160, 100, 60, 0.18); border-radius: 5px; margin-bottom: 12px; }
.avatar-preview { width: 80px; height: 80px; border-radius: 50%; border: 2px solid rgba(160, 100, 60, 0.32); background: rgba(180, 130, 60, 0.1); display: flex; align-items: center; justify-content: center; font-size: 36px; overflow: hidden; cursor: pointer; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-hint { font-size: 12px; color: rgba(120, 70, 30, 0.45); }
.profile-inp { width: 100%; background: rgba(255, 248, 235, 0.6); border: 1px solid rgba(160, 100, 60, 0.18); border-radius: 4px; padding: 11px; color: #3d2b1a; font-size: 15px; font-family: 'Noto Sans SC', sans-serif; outline: none; margin-bottom: 11px; min-height: 46px; }
.profile-inp::placeholder { color: rgba(120, 70, 30, 0.22); }

/* ============================================================
   确认弹窗（清空数据前二次确认）
============================================================ */
.confirm-mask { display: none; position: fixed; inset: 0; background: rgba(61, 43, 26, 0.52); z-index: 300; align-items: center; justify-content: center; }
.confirm-mask.open { display: flex; }
.confirm-box { background: #f2ebe0; border: 1.5px solid rgba(160, 100, 60, 0.32); border-radius: 7px; padding: 24px; max-width: 290px; width: 90%; text-align: center; }
.confirm-title { font-family: 'Noto Sans SC', sans-serif; font-weight: 700; font-size: 17px; color: #7a3e1a; margin-bottom: 10px; }
.confirm-sub { font-size: 13px; color: rgba(120, 70, 30, 0.55); margin-bottom: 18px; line-height: 1.7; }
.confirm-btns { display: flex; gap: 9px; }
.confirm-cancel { flex: 1; background: rgba(255, 248, 235, 0.92); border: 1px solid rgba(160, 100, 60, 0.22); border-radius: 4px; padding: 11px; color: rgba(120, 70, 30, 0.55); font-size: 14px; cursor: pointer; font-weight: 500; min-height: 44px; }
.confirm-ok { flex: 1; background: rgba(180, 60, 40, 0.1); border: 1px solid rgba(180, 60, 40, 0.32); border-radius: 4px; padding: 11px; color: rgba(160, 50, 30, 0.85); font-size: 14px; cursor: pointer; font-weight: 700; min-height: 44px; }

/* ============================================================
   全局Loading遮罩（启动时读取Notion数据时显示）
============================================================ */
.loading { position: fixed; inset: 0; background: rgba(242, 235, 224, 0.85); z-index: 500; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; }
.loading-txt { font-family: 'Noto Serif SC', serif; font-size: 16px; color: #7a3e1a; letter-spacing: 2px; }

/* ============================================================
   Notion同步提示（右下角小徽章，操作后短暂显示）
============================================================ */
.sync-badge { position: fixed; bottom: 20px; right: 16px; background: rgba(122, 62, 26, 0.85); color: #f2ebe0; padding: 6px 14px; border-radius: 14px; font-size: 11px; opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 200; }
.sync-badge.show { opacity: 1; }

/* ============================================================
   顶部Toast提示（操作反馈，如"得10灵气"）
============================================================ */
.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: rgba(122, 62, 26, 0.88); color: #f2ebe0; padding: 8px 18px; border-radius: 18px; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 999; white-space: nowrap; }
.toast.show { opacity: 1; }
