﻿/* 统一设计风格 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --ink: #2b2722;          /* 墨 */
  --paper: #faf6ee;        /* 米纸 */
  --card: #ffffff;
  --clay: #f0821c;         /* 暖橙 */
  --clay-dark: #d96f0f;
  --orange: #f0821c;
  --orange-soft: #fff3e6;
  --moss: #5c6b3f;         /* 墨绿 */
  --line: #e9e2d4;
  --muted: #9a9183;
  --ok: #2ba471;
  --danger: #d64545;
  --radius-card: 14px;     /* 统一卡片圆角 */
  --radius-btn: 12px;      /* 统一按钮圆角 */
  --space-page: 16px;      /* 统一页面间距 */

  /* ===== V6.12 统一弹窗层级令牌（P2-03）=====
   * 原实现把 z-index 散写在 style.css / v4.js 注入样式 / index.html 内联三处，
   * 静态 .modal 与动态 .v4-modal-mask 同为 500，谁在上完全由 DOM 顺序决定。
   * 这里定义唯一标尺，所有弹窗一律引用变量；dynamic 层比静态基础层高 50，
   * 保证 V4 动态弹窗（发布/评论/话题详情）永远压得住静态弹窗。 */
  --z-nav: 30;
  --z-drawer-scrim: 90;
  --z-drawer: 91;
  --z-fullscreen: 100060;  /* 头像选择 / 裁剪等全屏接管层，恒在普通弹窗之上 */
  --z-fullscreen-top: 100070;
  --z-modal: 500;          /* L3 静态基础弹窗 */
  --z-modal-v4: 550;       /* L3+ V4 动态遮罩 */
  --z-modal-2: 600;        /* L4 二级弹窗 */
  --z-modal-confirm: 650;
  --z-modal-copy: 660;
  --z-detail: 700;
  --z-detail-2: 720;
  --z-detail-3: 740;
  --z-form: 760;
  --z-date: 780;
  --z-edit: 1000;
  --z-preview: 1050;
  --z-paywall: 1100;
  --z-pay: 1200;
  --z-confirm: 1300;
  --z-toast: 1400;
}
html, body { height: 100%; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: var(--paper); color: var(--ink); max-width: 520px; margin: 0 auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- 登录 ---------- */
.auth-view { min-height: 100vh; background: linear-gradient(165deg, #f0821c 0%, #f6a63a 100%); display: flex; flex-direction: column; align-items: center; padding: 50px 24px 30px; }
.auth-hero { text-align: center; color: #fff; margin-bottom: 30px; }
.auth-hero h1 { font-size: 46px; letter-spacing: 8px; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.auth-hero p { margin-top: 10px; font-size: 14px; opacity: .9; }
.auth-card { width: 100%; background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.tab-row { display: flex; margin-bottom: 18px; background: #f3efe6; border-radius: 10px; padding: 4px; }
.tab { flex: 1; padding: 8px; border: none; background: transparent; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--muted); }
.tab.active { background: #fff; color: var(--clay); font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.field { margin-bottom: 12px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fdfbf6; outline: none; font-family: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--clay); background: #fff; }
.auth-msg, .write-msg { color: var(--danger); font-size: 13px; min-height: 20px; }
.auth-tip { text-align: center; color: var(--muted); font-size: 12px; margin-top: 10px; }

/* ---------- 主界面 ---------- */
.main-view { min-height: 100vh; display: flex; flex-direction: column; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.app-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 14px 18px; 
  background: rgba(255,255,255,.85); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240,224,200,.5); 
  position: sticky; 
  top: 0; 
  z-index: 10; 
}
.app-title { 
  font-size: 20px; 
  font-weight: 800; 
  letter-spacing: 3px; 
  background: var(--grad-main, linear-gradient(135deg,#f7a83b 0%,#f0821c 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-left: 28px;
}
.app-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg,#8B6F47 0%,#6B5B47 100%);
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(107,91,71,.3);
}
.app-title::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-55%);
  width: 12px;
  height: 10px;
  background: #fff;
  clip-path: polygon(50% 0%, 0% 50%, 0% 100%, 100% 100%, 100% 50%);
  opacity: .9;
}
.net-state { font-size: 12px; padding: 4px 12px; border-radius: 20px; background: #fdeaea; color: var(--danger); }
.net-state.online { background: #e8f7f0; color: var(--ok); }
.tab-panel { display: none; padding: 16px; }
.tab-panel.active { display: block; }

/* 记录列表 */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rec-count { color: var(--muted); font-size: 13px; }
.record-list { display: flex; flex-direction: column; gap: 12px; }
.rec-card { background: var(--card); border-radius: 14px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(60,40,10,.06); border-left: 4px solid var(--clay); }
.rec-card.private { border-left-color: var(--moss); }
.rec-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.rec-content { font-size: 14px; color: #5a544a; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rec-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.rec-tag { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.rec-tag.pub { background: #fdf3e3; color: var(--clay); }
.rec-tag.pri { background: #eef2e4; color: var(--moss); }
.rec-del { margin-left: auto; color: var(--muted); font-size: 12px; background: none; border: none; cursor: pointer; }
.empty-tip { text-align: center; padding: 70px 0; color: var(--muted); }
.empty-ico { font-size: 44px; margin-bottom: 12px; }

/* 写记录 */
.write-card { background: var(--card); border-radius: 16px; padding: 18px; }
.field-row { display: flex; gap: 10px; }
.field-row input { flex: 1; }
.field-row select { width: 110px; }
.privacy-toggle { display: flex; align-items: center; gap: 12px; background: #f8f4ea; border-radius: 10px; padding: 12px; margin: 4px 0 10px; }
.privacy-title { font-size: 14px; font-weight: 600; }
.privacy-sub { font-size: 12px; color: var(--muted); }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { display: none; }
.slider { position: absolute; inset: 0; background: #d8d2c4; border-radius: 26px; transition: .2s; }
.slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--moss); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* 我的 */
.mine-card { background: linear-gradient(135deg, #5c6b3f, #7a8a52); color: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; align-items: center; margin-bottom: 14px; }
.mine-avatar { min-width: 84px; height: 34px; border-radius: 17px; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; letter-spacing: 2px; padding: 0 14px; margin-bottom: 12px; }
.mine-name { font-size: 18px; font-weight: 700; }
.mine-status { font-size: 12px; opacity: .85; margin-top: 4px; }
.panel-soft { background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
#tab-plan .panel-soft { width: 90%; max-width: 390px; margin: 0 auto; box-sizing: border-box; }
.panel-soft h4 { font-size: 15px; margin-bottom: 6px; }
.perm-box { margin-top: 10px; }
.perm-row { display: flex; align-items: center; justify-content: space-between; background: #f8f4ea; border-radius: 12px; padding: 14px; }
.perm-price { font-size: 22px; font-weight: 700; color: var(--clay); }
.sub-box { display: flex; gap: 10px; margin-top: 10px; }
.sub-box .btn { flex: 1; }
.mine-menu { margin: 8px 0 14px; }
.acc-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; padding: 2px 0; }
.acc-arrow { color: var(--muted); font-size: 13px; transition: transform .2s; }
/* V2.7.3 陪伴记录折叠菜单 */
.acc-item { border: 1px solid var(--bd, #e0ddd6); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.acc-head { padding: 4px 0; gap: 8px; }
.acc-ico { font-size: 16px; }
.acc-txt { flex: 1; font-weight: 600; font-size: 14.5px; text-align: left; }
.range-row { display: flex; align-items: center; gap: 6px; }
.range-row input[type=date] { flex: 1; }
.range-sep { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.home-rec-top { background: #f3efe6; }
.note-card img, .note-card video { background: #eee; }
.menu-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }

/* 底部导航 */
.bottom-nav { 
  position: fixed; 
  bottom: 8px; 
  left: 50%; 
  transform: translateX(-50%);
  width: calc(100% - 24px); 
  max-width: 468px;
  background: rgba(255,255,255,.96); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(240,224,200,.6); 
  border-radius: 20px; 
  box-shadow: 0 8px 32px rgba(60,40,10,.12), 0 2px 8px rgba(60,40,10,.06);
  display: flex; 
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); 
  z-index: 20; 
}
.nav-btn { 
  flex: 1; 
  border: none; 
  background: none; 
  padding: 8px 4px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 3px; 
  font-size: 12px; 
  color: var(--text-3, #8a8377); 
  cursor: pointer; 
  border-radius: 14px;
  transition: all .25s ease;
  position: relative;
}
.nav-btn:hover { background: rgba(247,168,59,.08); }
.nav-btn:active { transform: scale(.95); }
.nav-btn.active { 
  color: var(--text-1, #2b2722); 
  font-weight: 700; 
  background: linear-gradient(135deg, rgba(247,168,59,.15), rgba(240,130,28,.1));
}
.nav-btn.active::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--grad-main, linear-gradient(135deg,#f7a83b,#f0821c));
  border-radius: 2px;
}
.nav-ico { display: flex; align-items: center; justify-content: center; }
.nav-ico svg { width: 22px; height: 22px; }
.nav-btn.active .nav-ico svg { stroke: var(--clay); }

/* 按钮 */
.btn { padding: 12px 18px; border: none; border-radius: 10px; font-size: 15px; cursor: pointer; font-family: inherit; }
.btn-main { background: var(--clay); color: #fff; }
.btn-main:active { background: var(--clay-dark); }
.btn-soft { background: #f0ebdf; color: var(--ink); }
.btn-warn { background: #d98a1f; color: #fff; }
.btn-warn:active { background: #c07a16; }
.btn-danger { background: #d64545; color: #fff; }
.btn-danger:active { background: #b93434; }
.btn-danger-ghost { background: #fdeaea; color: var(--danger); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* 弹层 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: var(--z-modal); }
#noteDetailModal { z-index: var(--z-detail); }
#noteDetailModal .modal-card { max-height: 80vh; overflow-y: auto; }
/* V3.0.2 缺陷修复：照片/视频预览弹窗置于最顶层（高于笔记详情弹窗） */
#viewModal { z-index: var(--z-preview); background: rgba(0,0,0,.85); }
#noteEditModal { z-index: var(--z-edit); }
/* V3.0.2 美好.回忆多级弹窗层级：计划详情弹窗 < 相册列表弹窗 < 预览弹窗 */
#planDetailModal { z-index: var(--z-detail-2); }
#albumListModal { z-index: var(--z-detail-3); }
/* 文件夹卡片悬停效果 */
.folder-card:hover { background: #f0ebe0 !important; border-color: #d4c8b0 !important; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.folder-card:active { transform: translateY(0); }
#viewModal .view-card { 
  background: #000; 
  border-radius: 12px; 
  padding: 0; 
  width: 92vw; 
  max-width: 420px; 
  max-height: 88vh; 
  overflow: hidden; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
}
#viewModal img { 
  max-width: 100%; 
  max-height: 78vh; 
  width: auto; 
  height: auto; 
  display: block; 
  border-radius: 8px; 
  object-fit: contain;
}
#viewModal video { 
  max-width: 100%; 
  max-height: 78vh; 
  width: 100%; 
  height: auto; 
  display: block; 
  border-radius: 8px; 
  object-fit: contain;
  background: #000;
}
#viewModal .modal-actions { 
  width: 100%; 
  padding: 12px 16px; 
  margin-top: 0; 
  background: rgba(0,0,0,.6);
  border-top: 1px solid rgba(255,255,255,.1);
}
#viewModal .modal-actions .btn { 
  background: rgba(255,255,255,.15); 
  color: #fff; 
  border: 1px solid rgba(255,255,255,.2);
}
#viewModal .modal-actions .btn:hover { 
  background: rgba(255,255,255,.25); 
}
#viewModal .modal-x { 
  background: rgba(255,255,255,.2); 
  color: #fff; 
}
#viewModal .modal-x:hover { 
  background: rgba(255,255,255,.35); 
  color: #fff; 
}
.modal-card { background: #fff; width: 90%; max-width: 420px; max-height: 85vh; border-radius: 16px; padding: 22px; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; }
.modal-body { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.modal-card h3 { font-size: 17px; margin-bottom: 8px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f0ede6; }
.modal-head b { font-size: 16px; font-weight: 700; color: #2c2c2c; }
.modal-x { width: 30px; height: 30px; border-radius: 50%; border: none; background: #f5f2ec; color: #8a8a8a; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0; }
.modal-x:hover { background: #ece7dd; color: #555; }
.modal-x:active { transform: scale(.92); }
.menu-row.clickable { cursor: pointer; }
#serviceFab { position: fixed; right: 16px; bottom: 92px; width: 52px; height: 52px; border-radius: 50%; background: var(--clay); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.22); z-index: 40; cursor: grab; touch-action: none; user-select: none; }
#serviceFab:active { cursor: grabbing; }
#serviceFab .svc-ico { font-size: 24px; line-height: 1; }
#serviceFab .svc-dot { position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; background: #EA6668; border: 2px solid #fff; border-radius: 50%; }
.intro-card { padding-top: 18px; }
.intro-item { display: flex; gap: 10px; margin: 11px 0; align-items: flex-start; }
.intro-ico { font-size: 22px; line-height: 1.15; }
.intro-item b { font-size: 14px; }
.intro-item p { font-size: 12px; color: #8a857e; margin: 3px 0 0; line-height: 1.5; }

/* ---------- 支付墙会员方案 ---------- */
.pw-plan { margin: 10px 0 2px; }
.pw-plan-name { font-size: 13px; color: #555; margin-bottom: 8px; }
/* ---------- 陪伴相册 ---------- */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.al-item { position: relative; border-radius: 10px; overflow: hidden; background: #f0eadd; aspect-ratio: 1; cursor: pointer; }
.al-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-video img { filter: brightness(.82); }
.al-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.al-del { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 12px; line-height: 1; cursor: pointer; }
.al-shot { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; padding: 1px 5px; border-radius: 6px; }
.album-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.home-album-group { flex: 0 0 auto; min-width: 92%; }
.home-album-date { font-size: 12px; color: #8a857e; margin-bottom: 6px; }
.home-album-imgs { display: flex; gap: 8px; overflow-x: auto; }
.home-album-imgs .al-item { flex: 0 0 auto; width: 90px; height: 90px; }
.ha-thumb { flex: 0 0 auto; width: 90px; height: 90px; object-fit: cover; border-radius: 10px; cursor: pointer; }
.album-strip .al-item { flex: 0 0 84px; }
.view-card { background: #111; width: 88%; max-width: 468px; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.view-card img, .view-card video { width: 100%; border-radius: 10px; max-height: 70vh; object-fit: contain; background: #000; }
.empty-ico { font-size: 40px; margin-bottom: 10px; }

/* 同步提示 */
.sync-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.78); color: #fff; padding: 10px 20px; border-radius: 24px; font-size: 13px; z-index: 60; animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; transform: translateX(-50%) translateY(8px);} to { opacity: 1; } }

/* ========== 回家倒计时 ========== */
.countdown-card { background: linear-gradient(135deg, #f0821c, #f6a63a); color: #fff; border-radius: 18px; padding: 24px; text-align: center; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(240,130,28,.25); }
.countdown-card.today { background: linear-gradient(135deg, #5c6b3f, #8a9a5e); }
.cd-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 8px; }
.cd-label { font-size: 14px; opacity: .92; margin-top: 10px; }
.cd-edit { background: rgba(255,255,255,.18); border: none; color: #fff; padding: 6px 12px; border-radius: 14px; font-size: 12px; cursor: pointer; flex-shrink: 0; }
.cd-big { font-size: 52px; font-weight: 800; letter-spacing: 2px; margin: 6px 0; }
.cd-sub { font-size: 13px; opacity: .85; }
/* V2.7.7 问候语区（参考稿顶部问候 + 会员标签） */
.cd-greet-wrap { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; min-width: 0; }
.cd-greet { font-size: 20px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.cd-slogan { font-size: 12px; opacity: .88; }
.cd-tag { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.cd-tag.vip { background: linear-gradient(135deg, #ffd76a, #ffb347); color: #7a4a00; border-color: rgba(255,255,255,.4); }
.cd-tag.basic { background: #fff; color: #f0821c; border-color: #fff; }
.cd-tag.off { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.55); }

/* V2.7.7 模块右侧标签（仅存本机 / 陪伴汇总） */
.panel-tag { font-size: 12px; color: #b06d1f; background: #fdf0e0; border: 1px solid #f3d8ae; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }

/* 首页醒目提醒横幅（V2.4：生日≤3天 / 回家计划≤3天） */
.urgent-banner { background: linear-gradient(135deg, #fdf0e0, #fbe3c9); border: 1px solid #eebd8f; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.urgent-item { font-size: 14px; color: #8a4a1f; font-weight: 600; line-height: 1.5; }
.urgent-item b { color: #c25e2a; }

/* 今日提醒 */
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel-head h4 { margin: 0; }
.reminder-today { display: flex; flex-direction: column; gap: 8px; }
.rem-item { display: flex; gap: 8px; align-items: center; background: #f8f4ea; border-radius: 10px; padding: 10px 12px; font-size: 13px; }

/* 快捷陪伴 */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qa { background: #f8f4ea; border: none; border-radius: 12px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); cursor: pointer; }
.qa:active { background: #efe7d6; }
.qa-ico { font-size: 24px; }
.qa-done { font-size: 12px; line-height: 1; }
.qa-done.ok { color: var(--ok); }
.qa-done.no { color: #b9b1a2; }
.qa-count { font-size: 12px; line-height: 1; color: #8a857e; }

/* 陪伴足迹 */
.company-list { display: flex; flex-direction: column; gap: 10px; }
.company-item { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 2px 6px rgba(60,40,10,.05); }
.ci-ico { font-size: 26px; }
.ci-title { font-size: 15px; font-weight: 600; }
.cs-count { color: var(--accent); margin-left: 4px; }

/* ---------- 陪伴记录页重新设计排版（V2.7.6） ---------- */
.companion-hero { background: linear-gradient(135deg, #f0821c, #f6a63a); border-radius: 18px; padding: 18px 16px; color: #fff; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(240,130,28,.22); }
.ch-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ch-emoji { font-size: 30px; line-height: 1; }
.ch-title { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.ch-sub { font-size: 12px; opacity: .88; margin-top: 2px; }
.ch-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.ch-stat { background: rgba(255,255,255,.14); border-radius: 10px; padding: 9px 2px; }
.ch-stat b { display: block; font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.ch-stat span { font-size: 10.5px; opacity: .86; }

/* 四类陪伴统计 2×2 卡片 */
.comp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.comp-card { background: #fff; border: 1px solid var(--line, #e9e2d4); border-radius: 14px; padding: 12px; box-shadow: 0 2px 6px rgba(60,40,10,.04); }
.comp-card .cc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.comp-card .cc-ico { font-size: 24px; line-height: 1; }
.comp-card .cc-name { font-size: 14px; font-weight: 700; flex: 1; color: var(--ink); }
.comp-card .cc-count { font-size: 24px; font-weight: 800; color: var(--clay); line-height: 1; }
.comp-card .cc-meta { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.comp-card .cc-meta b { color: #c25e4a; }
.comp-card .cc-bar { height: 5px; background: #F1EFE9; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.comp-card .cc-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #EAA7B2, #c25e4a); }

/* 计划 */
.f-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.plan-preview { display: flex; flex-direction: column; gap: 8px; }
.pp-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.pp-todo { margin: 4px 0 0 20px; font-size: 14px; line-height: 1.8; }

/* 提醒中心 */
.rem-box { border-top: 1px dashed var(--line); padding: 12px 0; }
.rem-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rem-title { font-size: 14px; font-weight: 600; }
.rem-time { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.rem-time select { padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fdfbf6; }
.rem-lead { padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fdfbf6; }
.bd-row { display: flex; align-items: center; justify-content: space-between; background: #f8f4ea; border-radius: 8px; padding: 8px 12px; margin-top: 8px; font-size: 13px; }
.bd-del { background: none; border: none; color: var(--muted); font-size: 14px; cursor: pointer; }
.birthday-add { display: flex; gap: 8px; margin-top: 10px; }
.birthday-add input { flex: 1; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fdfbf6; }
.birthday-add button { flex-shrink: 0; }

/* ================= 7 天试用付费墙 ================= */
.paywall{position:fixed;inset:0;background:rgba(244,243,238,.96);z-index:var(--z-paywall);display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
.pw-card{max-width:360px;width:100%;background:#fff;border-radius:16px;padding:24px;text-align:center;box-shadow:0 8px 30px rgba(0,0,0,.08);box-sizing:border-box}
.pw-logo{width:52px;height:52px;border-radius:14px;background:linear-gradient(135deg,#9EACEA,#8BC8EA);color:#fff;font-size:26px;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 12px}
.pw-card h2{margin:0 0 6px;font-size:18px;color:#1A1B1C}
.pw-sub{margin:0 0 16px;font-size:13px;color:#6B7280;line-height:1.6}
.pw-trial{background:rgba(255,193,7,.12);border-radius:8px;padding:8px 10px;font-size:13px;color:#8a6d00;margin-bottom:14px}
.pw-divider{margin:14px 0 10px;font-size:12px;color:#9aa0a6;display:flex;align-items:center;gap:10px}
.pw-divider::before,.pw-divider::after{content:'';flex:1;height:1px;background:var(--bd,#e4e3dd)}
.pw-subs{display:flex;gap:10px}
.pw-tip{margin:10px 0 14px}
.trial-tip{background:rgba(255,193,7,.14);border-radius:10px;padding:8px 10px;font-size:13px;color:#8a6d00;margin-bottom:10px;text-align:center}

/* ================= 分享邀请返利 ================= */
.invite-box{background:rgba(255,193,7,.06);border:1px dashed rgba(255,193,7,.5);border-radius:12px;padding:12px;box-sizing:border-box}
.invite-code-row{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.invite-code-row span{font-size:13px;color:#6B7280}
.invite-code-row b{font-size:18px;letter-spacing:2px;color:#1A1B1C;flex:1;text-align:center}
.invite-stats{display:flex;gap:12px;margin:12px 0 8px}
.invite-stats>div{flex:1;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:10px;padding:10px;text-align:center}
.invite-stats b{display:block;font-size:18px;color:#E6A23C}
.invite-stats span{font-size:12px;color:#6B7280}
.invite-records{font-size:12px;color:#6B7280;margin-top:6px;line-height:1.8}
.invite-records>div{border-top:1px dashed rgba(0,0,0,.06);padding-top:4px}

/* ===== 账号体系：记住密码 / 找回密码 ===== */
.rem-row{display:flex;align-items:center;gap:14px;margin:4px 0 10px;font-size:12.5px;color:var(--txt);}
.chk{display:flex;align-items:center;gap:4px;cursor:pointer;user-select:none;}
.chk input{width:15px;height:15px;accent-color:var(--main);}
.link-btn{background:none;border:none;color:var(--main);font-size:12.5px;padding:2px 0;cursor:pointer;text-decoration:none;}
.link-btn:hover{opacity:.8;}
.forgot-title{font-size:14px;font-weight:600;margin:2px 0 12px;text-align:center;}
.code-row{display:flex;gap:8px;}
.code-row input{flex:1;min-width:0;}
.code-row .btn{flex-shrink:0;white-space:nowrap;font-size:12.5px;}
.auth-tip .link-btn{font-size:12.5px;}

/* ===== 账号自助管理 / 协议 ===== */
.agree-row{margin:2px 0 10px;font-size:12px;line-height:1.5;}
.agree-row .link-btn{font-size:12px;}
.acc-body{margin-top:4px;}
.acc-body .field{margin-bottom:8px;}
.terms-card{max-width:92vw;}
.terms-body{max-height:46vh;overflow-y:auto;white-space:pre-wrap;font-size:12.5px;line-height:1.7;color:var(--txt);margin-top:6px;padding-right:4px;}

/* V2.6.3 多方式登录 / 支付渠道 / 提现表单 */
.other-login{margin-top:14px;border-top:1px dashed #e0ddd6;padding-top:12px}
.other-divider{font-size:12px;color:#8a857c;text-align:center;margin-bottom:8px}
.other-row{display:flex;gap:8px;justify-content:center}
.other-row .btn{flex:1;min-width:0}
.pay-channel{margin-top:10px;padding-top:10px;border-top:1px dashed #e0ddd6}
.pay-channel-title{font-size:13px;font-weight:600;margin-bottom:6px;color:#1a1b1c}
.pay-channel-opts{display:flex;flex-direction:column;gap:6px;font-size:13.5px}
.pay-channel-opts .chk{display:flex;align-items:center;gap:6px}
.wd-form{background:#faf8f4;border:1px solid #e0ddd6;border-radius:10px;padding:10px}

/* ================= V2.6.7 互助模块 ================= */
.help-loc-bar{background:#FBF3E7;border:1px solid #EFE0C8;border-radius:12px;padding:10px 12px;margin-top:10px;font-size:13px;line-height:1.5}
.help-loc-bar b{color:#c25e4a}
.help-loc-bar .loc-ok{color:#2e7d32}
.help-tabs{display:flex;gap:8px;margin:12px 0 4px}
.help-tab{flex:1;padding:8px 0;border:1px solid #E4E3DD;background:#fff;border-radius:10px;font-size:13px;color:#6B7280;cursor:pointer}
.help-tab.active{background:#c25e4a;color:#fff;border-color:#c25e4a;font-weight:600}
.help-list{display:flex;flex-direction:column;gap:10px}
.hp-group{margin:2px 0 4px}
.hp-label{font-size:13px;font-weight:600;color:#1A1B1C;margin-bottom:8px;display:block}
.hp-types{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.hp-chip{flex:1 1 calc(33.33% - 8px);min-width:86px;padding:9px 4px;border:1px solid #E4E3DD;background:#fff;border-radius:10px;font-size:13px;color:#3C4043;cursor:pointer;text-align:center;transition:all .15s}
.hp-chip.active{background:#c25e4a;color:#fff;border-color:#c25e4a;font-weight:600}
.help-card{background:#fff;border:1px solid #EFEFE9;border-radius:12px;padding:12px;box-shadow:0 1px 2px rgba(0,0,0,0.03)}
.help-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.help-card-title{font-size:15px;font-weight:600;line-height:1.4}
.help-tag{display:inline-block;background:#F7F1E3;color:#9a6a2f;font-size: 12px;padding:2px 8px;border-radius:20px;margin-left:6px;vertical-align:1px;white-space:nowrap}
.help-badge{display:inline-block;font-size: 12px;padding:2px 8px;border-radius:20px;white-space:nowrap}
.help-badge.open{background:#E8F5E9;color:#2e7d32}
.help-badge.matched{background:#FFF3E0;color:#b26a00}
.help-badge.closed,.help-badge.cancelled{background:#F1F1F1;color:#888}
.help-card-meta{font-size:12px;color:#9AA0A6;margin:6px 0}
/* V4 排版：发布者信息拆两行（发布者+验证 / 帮办统计+信用），避免一行挤 5 项 */
.help-card-meta.pub-line{display:flex;align-items:center;gap:6px;margin:8px 0 2px;color:#3C4043;font-size:13px}
.help-card-meta.pub-line .pub-name{display:inline-flex;align-items:center;color:#3C4043;font-weight:500}
.help-card-meta.pub-line .veri{display:inline-flex;align-items:center;color:#2E7D32;background:#E8F5E9;border-radius:999px;padding:1px 7px;font-size:11px}
.help-card-meta.pub-stats{font-size:12px;color:#9AA0A6;margin:2px 0 8px}
.help-card-meta.pub-stats b{color:#b26a00;font-weight:600}
.help-card-meta.pub-stats .credit-val{color:#b26a00}
.help-card-content{font-size:13px;color:#3C4043;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:8px}
.help-card-actions{display:flex;gap:8px;margin-top:6px}
.help-card-actions .btn{flex:1}
.region-row{display:flex;gap:6px}
.region-row select{flex:1;min-width:0}
.form-msg{font-size:12px;color:#c25e4a;margin-top:8px;min-height:16px}
.help-contact-box{background:#F2F8F2;border:1px dashed #9CCC9C;border-radius:10px;padding:10px 12px;margin:10px 0}
.help-contact-box .k{font-size:12px;color:#5a7d5a}
.help-contact-box .v{font-size:16px;font-weight:700;color:#2e7d32;margin-top:2px;word-break:break-all}
.help-app{background:#FAFAF7;border:1px solid #EFEFE9;border-radius:10px;padding:10px 12px;margin-top:8px}
.help-app .ap{font-size:13px;color:#3C4043}
.help-app .am{font-size:12px;color:#9AA0A6;margin-top:2px}
.help-app-actions{display:flex;gap:8px;margin-top:8px}
.help-note{font-size:12px;color:#9AA0A6;line-height:1.6;margin-top:8px}

/* ================= 全面响应式设计（V3.0.7 各种手机屏幕适配） ================= */

/* 针对大多数现代手机（≤480px） */
@media (max-width: 480px) {
  /* 全局调整 */
  body { max-width: 100%; }
  
  /* 弹窗自适应 */
  .modal-card { 
    width: 92%; 
    max-width: 100%; 
    padding: 18px 16px; 
    max-height: 88vh;
    border-radius: 14px;
  }
  .modal-card h3 { font-size: 16px; }
  .modal-head { margin-bottom: 12px; padding-bottom: 10px; }
  .modal-head b { font-size: 15px; }
  .modal-actions { margin-top: 14px; gap: 8px; }
  .modal-body { font-size: 13px; }
  
  /* 图片/视频预览弹窗 */
  .view-card { width: 94%; max-width: 100%; padding: 8px; }
  .view-card img, .view-card video { max-height: 65vh; }
  
  /* 登录页面 */
  .auth-view { padding: 40px 20px 28px; }
  .auth-card { padding: 20px 18px; }
  .auth-hero h1 { font-size: 36px; letter-spacing: 6px; }
  .auth-hero p { font-size: 14px; }
  
  /* 首页模块 */
  .tab-panel { padding: 14px 12px; }
  .app-header { padding: 14px 16px; }
  .app-title { font-size: 17px; }
  
  /* 回家计划卡片 */
  .plan-card { padding: 12px 12px 8px; }
  .pc-title { font-size: 14px; }
  .pc-meta { font-size: 12px; }
  .pc-line { font-size: 12px; }
  
  /* 打卡按钮 */
  .quick-actions { gap: 8px; }
  .qa { padding: 12px 6px; font-size: 12px; }
  .qa-ico { font-size: 22px; }
  
  /* 相册网格 */
  .album-grid { gap: 6px; }
  .home-album-imgs .al-item { width: 80px; height: 80px; }
  .ha-thumb { width: 80px; height: 80px; }
  
  /* 底部导航 */
  .bottom-nav { padding: 8px 0 12px; }
  .bn-item { font-size: 12px; }
  .bn-ico { font-size: 20px; }
  
  /* 表单元素 */
  input, select, textarea { font-size: 14px; }
  .btn { font-size: 14px; padding: 10px 16px; }
  
  /* 会员页面 */
  .pw-card { padding: 20px; }
  .pw-plan-name { font-size: 12px; }
  
  /* 互助模块 */
  .hp-chip { flex: 1 1 calc(50% - 6px); min-width: 0; font-size: 12px; padding: 8px 4px; }
  .region-row select { font-size: 13px; }
  
  /* 笔记模块 */
  .note-card { padding: 12px; }
  .note-title { font-size: 14px; }
  .note-content { font-size: 13px; }
  
  /* 统计卡片 */
  .comp-card { padding: 12px; }
  .comp-card .cc-ico { font-size: 22px; }
  .comp-card .cc-count { font-size: 22px; }
  .comp-card .cc-meta { font-size: 12px; }
  
  /* 陪伴Hero */
  .companion-hero { padding: 16px 14px; }
  .ch-title { font-size: 15px; }
  .ch-sub { font-size: 12px; }
  .ch-stat b { font-size: 18px; }
  .ch-stat span { font-size: 12px; }
}

/* 针对较小的手机（≤400px） */
@media (max-width: 400px) {
  /* 弹窗进一步压缩 */
  .modal-card { 
    width: 94%; 
    padding: 16px 14px; 
    max-height: 90vh;
    border-radius: 12px;
  }
  .modal-card h3 { font-size: 15px; }
  .modal-head b { font-size: 14px; }
  .modal-actions { margin-top: 12px; gap: 6px; }
  .modal-body { font-size: 12.5px; }
  
  /* 登录页面进一步压缩 */
  .auth-view { padding: 36px 16px 24px; }
  .auth-card { padding: 18px 14px; }
  .auth-hero h1 { font-size: 32px; letter-spacing: 5px; }
  .auth-hero p { font-size: 13px; }
  
  /* 首页模块进一步压缩 */
  .tab-panel { padding: 12px 10px; }
  .app-header { padding: 12px 14px; }
  .app-title { font-size: 16px; }
  
  /* 回家计划卡片进一步压缩 */
  .plan-card { padding: 10px 10px 8px; }
  .pc-title { font-size: 13.5px; }
  .pc-meta { font-size: 11.5px; }
  .pc-line { font-size: 11.5px; }
  
  /* 打卡按钮进一步压缩 */
  .quick-actions { gap: 6px; }
  .qa { padding: 10px 4px; font-size: 12px; }
  .qa-ico { font-size: 20px; }
  
  /* 相册网格进一步压缩 */
  .album-grid { gap: 5px; }
  .home-album-imgs .al-item { width: 72px; height: 72px; }
  .ha-thumb { width: 72px; height: 72px; }
  
  /* 底部导航进一步压缩 */
  .bottom-nav { padding: 6px 0 10px; }
  .bn-item { font-size: 12px; }
  .bn-ico { font-size: 18px; }
  
  /* 表单元素进一步压缩 */
  input, select, textarea { font-size: 13px; }
  .btn { font-size: 13px; padding: 9px 14px; }
  
  /* 会员页面进一步压缩 */
  .pw-card { padding: 18px; }
  
  /* 互助模块进一步压缩 */
  .hp-chip { font-size: 12px; padding: 7px 3px; }
  .region-row select { font-size: 12px; }
  
  /* 笔记模块进一步压缩 */
  .note-card { padding: 10px; }
  .note-title { font-size: 13px; }
  .note-content { font-size: 12px; }
  
  /* 统计卡片进一步压缩 */
  .comp-card { padding: 10px; }
  .comp-card .cc-ico { font-size: 20px; }
  .comp-card .cc-count { font-size: 20px; }
  .comp-card .cc-meta { font-size: 12px; }
  
  /* 陪伴Hero进一步压缩 */
  .companion-hero { padding: 14px 12px; }
  .ch-title { font-size: 14px; }
  .ch-sub { font-size: 12px; }
  .ch-stat b { font-size: 16px; }
  .ch-stat span { font-size: 9.5px; }
}

/* ================= 窄屏适配（V2.7.7 首页小屏优化） ================= */
@media (max-width: 360px) {
  /* 登录页 hero：缩小标题字号与字距，避免换行溢出 */
  .auth-hero h1 { font-size: 32px; letter-spacing: 5px; }
  .auth-hero p { font-size: 13px; }
  .auth-view { padding: 44px 18px 32px; }
  .auth-card { padding: 18px 16px; }

  /* 陪伴页 Hero 卡：压缩内边距与字号 */
  .companion-hero { padding: 14px 12px; border-radius: 14px; }
  .ch-emoji { font-size: 24px; }
  .ch-title { font-size: 14.5px; }
  .ch-sub { font-size: 12px; }
  .ch-stat { padding: 7px 1px; }
  .ch-stat b { font-size: 16px; }
  .ch-stat span { font-size: 9.5px; }

  /* 四类陪伴 2×2 统计卡：收窄留白 */
  .comp-card { padding: 10px; }
  .comp-card .cc-ico { font-size: 20px; }
  .comp-card .cc-count { font-size: 20px; }
  .comp-card .cc-meta { font-size: 10.5px; }

  /* 首页快捷四按钮：保留 4 列但压缩间距与字号，不溢出 */
  .quick-actions { gap: 6px; }
  .qa { padding: 10px 4px; font-size: 12px; border-radius: 10px; }
  .qa-ico { font-size: 20px; }

  /* 面板与通用容器：减小左右留白，扩大可用宽度 */
  .tab-panel { padding: 12px 10px; }
  .app-header { padding: 12px 14px; }
  .app-title { font-size: 16px; }

  /* 相册 / 列表网格 */
  .album-grid { gap: 6px; }
  .rec-card { padding: 12px; }
  .ci-ico { font-size: 22px; }
}

/* V2.7.7 回家计划卡片（参考稿：标题+状态标签+待办/礼物+复制重建/删除） */
.plan-card { background: var(--card); border: 1px solid #f0e4cf; border-radius: 14px; padding: 14px 14px 10px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(90,60,20,.06); }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pc-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.pc-tag { font-size: 12px; padding: 3px 10px; border-radius: 20px; white-space: nowrap; background: #f2eee4; color: #8a8377; }
.pc-tag.go { background: linear-gradient(135deg, #f0821c, #f6a63a); color: #fff; font-weight: 600; }
.pc-meta { font-size: 13px; color: #6f675c; margin-bottom: 4px; }
.pc-line { font-size: 13px; color: #5c554a; margin-top: 4px; line-height: 1.5; }
.pc-k { display: inline-block; font-size: 12px; background: #fdf0e0; color: #b06d1f; padding: 1px 7px; border-radius: 10px; margin-right: 6px; }
.pc-ops { display: flex; gap: 8px; margin-top: 10px; border-top: 1px dashed #efe6d4; padding-top: 8px; }
.pc-btn { flex: 1; border: 1px solid #f0d5a8; background: #fffaf0; color: #b06d1f; border-radius: 8px; padding: 7px 0; font-size: 12px; cursor: pointer; }
.pc-btn:active { background: #fdf0e0; }
.pc-btn.danger { border-color: #f2c9c9; background: #fff5f5; color: #d64545; }

/* V2.7.8 计划卡片：已完成只读态 */
.plan-card.pc-done { background: #fbfaf6; border-color: #eee6d8; opacity: .92; }
.pc-tag.done { background: #e8f4ed; color: #2ba471; }
.pc-note { font-size: 12px; color: #9a9183; margin-top: 8px; border-top: 1px dashed #efe6d4; padding-top: 8px; }

/* V2.7.9 回家记录详情弹窗 */
.pr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pr-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.pr-meta { font-size: 13px; color: #6f675c; margin-bottom: 4px; }
.pr-line { font-size: 13px; color: #5c554a; margin-top: 4px; line-height: 1.5; }
.pr-k { display: inline-block; font-size: 12px; background: #fdf0e0; color: #b06d1f; padding: 1px 7px; border-radius: 10px; margin-right: 6px; }
.pr-sec { margin-top: 14px; border-top: 1px dashed #efe6d4; padding-top: 12px; }
.pr-sec-t { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.pr-sec-sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.pr-album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pr-album img, .pr-album video { width: 100%; height: 92px; object-fit: cover; border-radius: 8px; background: #f2efe9; }
.pr-album-empty { font-size: 12px; color: var(--muted); }
.pr-note-card { background: #fdf9f0; border: 1px solid #f3e7d0; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.pr-note-text { font-size: 13.5px; color: #4a4339; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.pr-note-media { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pr-note-media img, .pr-note-media video { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; }
.pr-empty { font-size: 12px; color: var(--muted); }

/* V2.7.9 已完成计划卡片可点击查看详情 */
.plan-card.clickable { cursor: pointer; }

/* V2.7.10 陪伴记录卡片可点击 */
.comp-card { cursor: pointer; transition: transform .08s ease, box-shadow .08s ease; }
.comp-card:active { transform: scale(.97); }
.comp-card .cc-tip { font-size: 12px; color: var(--clay); margin-top: 6px; font-weight: 600; }

/* V2.7.11 首页回家计划卡片 + 滚动条 */
.rem-plan-card { background: #fff; border: 1px solid #f0e6d4; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.rp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.rp-head b { font-size: 14px; color: var(--ink); }
.rp-line { font-size: 12.5px; color: #6f675c; margin-top: 3px; line-height: 1.5; }
.btn-block { width: 100%; margin-top: 6px; }
.plans-scroll { max-height: 220px; overflow-y: auto; margin: 4px 0 6px; padding-right: 4px; }
.plans-scroll::-webkit-scrollbar { width: 6px; }
.plans-scroll::-webkit-scrollbar-thumb { background: #e0d5bf; border-radius: 3px; }
.plans-scroll::-webkit-scrollbar-track { background: #f7f3ea; }
.ps-sec-title { font-size: 14px; font-weight: 700; margin: 14px 0 8px; padding-top: 12px; border-top: 1px dashed #efe6d4; color: var(--ink); }

/* V2.7.12 首页计划卡片：提醒时间醒目化 + 操作按钮 */
.rp-time { font-size: 17px; font-weight: 800; color: var(--clay); background: rgba(240,130,28,.14); padding: 4px 12px; border-radius: 16px; white-space: nowrap; flex-shrink: 0; }
.rp-time.go { color: #d64541; background: rgba(214,69,65,.13); }
.rp-time.plan { color: #c46a12; }
.rp-ops { display: flex; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #efe6d4; }
.rp-ops .pc-btn { flex: 1; }

/* V2.7.18 足迹记录弹窗列表 */
.clm-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #f7f7f8; border-radius: 10px; margin-bottom: 6px; }
.clm-date { font-size: 14px; color: #333; font-weight: 600; }
.clm-meta { font-size: 12px; color: #999; }

/* V2.7.19 陪伴相册 相片/录像 分区标题 */
.album-sec-head { display: flex; align-items: center; gap: 6px; margin: 12px 0 8px; font-size: 14px; font-weight: 600; color: #333; }
.album-sec-head .as-ico { width: 18px; height: 18px; color: #ff7a45; flex: none; }
#albumPhotoGrid, #albumVideoGrid { margin-bottom: 4px; }

/* V2.7.25 相片/录像下级菜单入口 */
.sub-entry{display:flex;align-items:center;gap:8px;width:100%;padding:11px 10px;margin:6px 0;background:var(--bg,#faf9f6);border:1px solid var(--bd,#e0ddd6);border-radius:10px;cursor:pointer;text-align:left;font-size:14px;color:var(--text,#1a1b1c);}
.sub-entry:active{background:#f0eee8;}
.sub-ico{display:flex;align-items:center;color:var(--accent,#e8743c);}
.sub-txt{flex:1;font-weight:600;}
.sub-count{color:var(--muted,#999);font-size:12.5px;}
.sub-arrow{color:var(--muted,#999);font-size:15px;}
/* V2.7.25 相片/录像下级菜单全屏子视图 */
.view-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#fff;z-index:var(--z-preview);display:flex;flex-direction:column;padding:14px;overflow-y:auto;}
.view-top{display:flex;align-items:center;gap:10px;margin-bottom:12px;position:sticky;top:0;background:#fff;padding:6px 0;z-index:2;}
.view-top .btn{flex:0 0 auto;}
.view-title{flex:1;font-weight:700;font-size:16px;text-align:center;color:var(--text,#1a1b1c);}

/* V2.7.26 最近回家相册卡片 */
.rp-card{display:flex;align-items:center;gap:10px;width:100%;padding:10px;margin:6px 0;background:var(--bg,#faf9f6);border:1px solid var(--bd,#e0ddd6);border-radius:12px;cursor:pointer;text-align:left;}
.rp-card:active{background:#f0eee8;}
.rp-thumbs{display:flex;gap:4px;flex:0 0 auto;}
.rp-thumbs img,.rp-thumbs video,.rp-no{width:44px;height:44px;object-fit:cover;border-radius:8px;}
.rp-no{display:inline-flex;align-items:center;justify-content:center;background:#eee;color:#999;font-size:10.5px;border-radius:8px;}
.rp-info{flex:1;display:flex;align-items:center;gap:6px;min-width:0;}
.rp-name{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:58%;}
.rp-meta{font-size:11.5px;color:var(--muted,#999);white-space:nowrap;}
.rp-arrow{color:var(--muted,#999);font-size:16px;}

/* V2.7.29 互助广场列表：超出界面自动滚动条 */
#helpList{max-height:62vh;overflow-y:auto;padding-right:4px;-webkit-overflow-scrolling:touch;}
#helpList::-webkit-scrollbar{width:5px;}
#helpList::-webkit-scrollbar-thumb{background:#d8d4ca;border-radius:3px;}

/* V2.7.33 全站图标统一：线性 SVG（风格与底部导航一致） */
.zi{width:16px;height:16px;vertical-align:-2.5px;display:inline-block;flex:none;}
.zi.zi-lg{width:20px;height:20px;}
button .zi, .acc-head .zi, .nav-btn .zi{pointer-events:none;}


/* ================================================================
   V2.8 设计系统升级：统一设计令牌 / 字阶 / 间距 / 卡片 / 组件
   （在既有暖色乡愁调性基础上，对齐主流亲情陪伴类 App 的设计语言）
   ================================================================ */
:root{
  --radius-sm:10px; --radius:14px; --radius-lg:18px; --radius-xl:22px;
  --shadow-sm:0 1px 2px rgba(60,40,10,.05);
  --shadow:0 4px 16px rgba(60,40,10,.08);
  --shadow-lg:0 12px 32px rgba(240,130,28,.16);
  --grad-main:linear-gradient(135deg,#f7a83b 0%,#f0821c 100%);
  --grad-deep:linear-gradient(135deg,#f0821c 0%,#e06f12 100%);
  --grad-hero:linear-gradient(135deg,#f6a63a 0%,#f0821c 58%,#ec7a1a 100%);
  --text-1:#2b2722; --text-2:#5a544a; --text-3:#8a8377; --text-4:#b6aea0;
  --surface:#ffffff; --surface-soft:#f8f4ea; --surface-tint:#fdf6ec;
  --line-soft:#f0e9dc; --line-strong:#e7dfcf;
  --ok:#2ba471; --warn:#e6a23c; --danger:#d64545;
  --fs-hero:21px; --fs-title:18px; --fs-card:15px; --fs-body:14px; --fs-sub:12px; --fs-tiny:11px;
}
body{
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  letter-spacing:.2px; line-height:1.6; color:var(--text-1);
}
.app-header{ background:transparent; }
.app-title{ font-size:20px; font-weight:800; letter-spacing:3px; color:#8B6F47; }

/* ---------- 通用面板卡片（统一视觉） ---------- */
.panel-soft, .write-card, .rec-card, .company-item, .help-card, .rem-plan-card,
.plan-card, .comp-card, .rpc-card{
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
}
.panel-soft{ padding:16px; }
.panel-head{ margin-bottom:10px; }
.panel-head h4{ font-size:var(--fs-card); font-weight:800; letter-spacing:.5px; }
.panel-tag{ font-weight:600; }

/* ---------- 首页问候卡（回家状态 Hero） ---------- */
.countdown-card{
  border-radius:var(--radius-xl);
  background:var(--grad-hero);
  box-shadow:var(--shadow-lg);
  padding:22px 20px;
  overflow:hidden; position:relative;
}
.countdown-card::after{
  content:''; position:absolute; right:-40px; top:-40px; width:150px; height:150px;
  background:radial-gradient(circle,rgba(255,255,255,.18),transparent 70%); pointer-events:none;
}
.countdown-card.today{ background:linear-gradient(135deg,#5c6b3f 0%,#7a8a52 100%); }
.cd-greet{ font-size:18px; font-weight:800; letter-spacing:1px; white-space:nowrap; }
.cd-slogan{ font-size:12.5px; opacity:.9; }
.cd-big{ font-size:54px; font-weight:900; letter-spacing:2px; text-shadow:0 2px 14px rgba(0,0,0,.14); }
.cd-sub{ font-size:13px; opacity:.9; }
.cd-edit{ border-radius:16px; padding:7px 14px; font-weight:600; }

/* ---------- 首页模块标题（统一图标+标题+标签布局） ---------- */
.home-sec-title{
  display:flex; align-items:center; gap:8px; margin:20px 0 12px;
}
.home-sec-title .hst-ico{
  width:30px; height:30px; border-radius:9px; background:var(--surface-tint);
  display:inline-flex; align-items:center; justify-content:center; color:var(--clay,#f0821c); flex:none;
}
.home-sec-title .hst-ico svg{ width:17px; height:17px; }
.home-sec-title .hst-txt{ font-size:16px; font-weight:800; letter-spacing:.5px; flex:1; }
.home-sec-title .hst-tag{ font-size: 12px; color:#b06d1f; background:#fdf0e0; border:1px solid #f3d8ae; padding:2px 9px; border-radius:20px; white-space:nowrap; font-weight:600; }

/* ---------- V3.6.14 通用区块标题（替代各页临时 div，统一设计令牌） ---------- */
.sec-h{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:16px; letter-spacing:.5px; color:var(--text-1); margin:18px 0 12px; }
.sec-h .si{ width:30px; height:30px; border-radius:9px; background:var(--surface-tint); display:inline-flex; align-items:center; justify-content:center; color:var(--clay,#f0821c); flex:none; }
.sec-h .si svg{ width:17px; height:17px; }
.sec-h .st{ flex:1; }
.panel-soft .sec-h{ margin:0 0 10px; }

/* ---------- V3.6.14 陪伴足迹：最近陪伴 / 回家计划 列表 ---------- */
.cf-list{ display:flex; flex-direction:column; gap:2px; }
.cf-item{ display:flex; align-items:center; gap:10px; padding:9px 2px; border-bottom:1px solid var(--line-soft); }
.cf-item:last-child{ border-bottom:none; }
.cf-ico{ width:28px; height:28px; border-radius:8px; background:var(--surface-tint); color:var(--clay); display:inline-flex; align-items:center; justify-content:center; flex:none; }
.cf-ico svg{ width:16px; height:16px; }
.cf-name{ flex:1; font-size:14px; color:var(--text-1); }
.cf-date{ font-size:12.5px; color:var(--text-2); }

/* ---------- V3.6.14 小字可读性与互助卡片间距打磨 ---------- */
.muted.small{ font-size:12.5px; line-height:1.55; }
#helpList .help-card{ margin-bottom:12px; }
#helpList .help-card:last-child{ margin-bottom:0; }

/* ---------- 回家计划卡 ---------- */
.plan-card{ border-radius:var(--radius-lg); padding:15px 15px 12px; border-color:var(--line-soft); box-shadow:var(--shadow-sm); }
.pc-title{ font-size:15px; font-weight:800; }
.pc-tag{ font-weight:700; }
.pc-btn{ border-radius:10px; padding:8px 0; font-size:12.5px; font-weight:600; transition:all .15s; }
.rem-plan-card{ border-radius:var(--radius); padding:12px 14px; border-color:var(--line-soft); }
.rp-head b{ font-size:14.5px; font-weight:700; }
.rp-time{ font-weight:800; }
.plans-scroll{ border-radius:12px; }

/* ---------- 异地牵挂（快捷打卡） ---------- */
.quick-actions{ grid-template-columns:repeat(3,1fr); gap:12px; }
.qa{
  border-radius:var(--radius-lg); background:var(--surface); padding:16px 6px 14px;
  box-shadow:var(--shadow-sm); border:1px solid var(--line-soft); transition:transform .1s ease;
}
.qa:active{ transform:scale(.96); background:var(--surface-soft); }
.qa-ico{ width:46px; height:46px; border-radius:14px; background:var(--surface-tint);
  display:flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:6px;
  transition:all .15s; }
.qa:active .qa-ico{ transform:scale(.94); }
.qa-name{ font-size:13px; font-weight:700; color:var(--text-1); }
.qa-done, .qa-count{ font-weight:600; }

/* ---------- 备忘录 / 笔记 ---------- */
.memo-input-row{ display:flex; gap:8px; }
.memo-list-item{
  display:flex; align-items:flex-start; gap:8px; padding:9px 0;
  border-bottom:1px dashed var(--line-soft);
}
.memo-list-item .memo-dot{ width:6px; height:6px; border-radius:50%; background:var(--clay); margin-top:7px; flex:none; }

/* ---------- 我的页 ---------- */
.mine-card{ border-radius:var(--radius-xl); padding:20px 18px; box-shadow:var(--shadow); }
.mine-avatar{ border-radius:20px; }
.mine-name{ font-size:19px; font-weight:800; }
.mine-status{ opacity:.9; }
.mine-menu{ gap:10px; }
.acc-item{ border-radius:var(--radius); padding:12px 14px; border-color:var(--line-soft); box-shadow:var(--shadow-sm); }
.acc-ico{ width:30px; height:30px; border-radius:9px; background:var(--surface-tint);
  display:inline-flex; align-items:center; justify-content:center; color:var(--clay); flex:none; }
.acc-ico svg{ width:16px; height:16px; }
.acc-txt{ font-size:15px; font-weight:700; }
.acc-arrow{ font-weight:700; }
.menu-row{ padding:12px 0; }
.btn-logout{
  width:100%; padding:14px; border-radius:var(--radius-lg); background:#fff; color:var(--danger);
  border:1px solid #f3cfcf; font-size:15px; font-weight:700; margin-top:6px; cursor:pointer;
}

/* ---------- 足迹页 ---------- */
.companion-hero{ border-radius:var(--radius-xl); background:var(--grad-hero); box-shadow:var(--shadow-lg); padding:20px 16px; }
.ch-title{ font-size:17px; font-weight:800; }
.ch-stat{ background:rgba(255,255,255,.16); border-radius:12px; }
.ch-stat b{ font-size:20px; font-weight:900; }
.comp-grid{ gap:12px; }
.comp-card{ border-radius:var(--radius-lg); padding:14px; border-color:var(--line-soft); box-shadow:var(--shadow-sm); }
.comp-card .cc-ico{ width:38px; height:38px; border-radius:12px; background:var(--surface-tint);
  display:inline-flex; align-items:center; justify-content:center; }
.comp-card .cc-ico svg{ width:20px; height:20px; }
.comp-card .cc-name{ font-size:15px; font-weight:800; }
.comp-card .cc-count{ font-size:26px; font-weight:900; }
.comp-card .cc-meta{ font-size:11.5px; }
.comp-card .cc-tip{ font-size:11.5px; font-weight:700; }
.comp-card .cc-bar{ height:6px; border-radius:3px; }

/* 足迹四行卡 */
.ft-row{
  display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--line-soft);
  border-radius:var(--radius-lg); padding:12px 14px; margin-bottom:10px; box-shadow:var(--shadow-sm);
}
.ft-row .ft-ico{ width:40px; height:40px; border-radius:12px; background:var(--surface-tint);
  display:inline-flex; align-items:center; justify-content:center; color:var(--clay); flex:none; }
.ft-row .ft-ico svg{ width:20px; height:20px; }
.ft-row .ft-main{ flex:1; min-width:0; }
.ft-row .ft-name{ font-size:15px; font-weight:800; display:flex; align-items:center; gap:6px; }
.ft-row .ft-count{ font-size:20px; font-weight:900; color:var(--clay); }
.ft-row .ft-meta{ font-size:11.5px; color:var(--text-3); margin-top:3px; line-height:1.5; }
.ft-row .ft-reward{ font-size: 12px; color:var(--warn); margin-top:3px; font-weight:600; }
.ft-row .ft-link{ font-size:12px; color:var(--clay); font-weight:700; }

/* 记忆板块 */
.rp-card{ border-radius:var(--radius); padding:12px; box-shadow:var(--shadow-sm); border-color:var(--line-soft); }
.rp-thumbs img, .rp-thumbs video, .rp-no{ border-radius:10px; }

/* ---------- 互助页 ---------- */
.help-loc-bar{ border-radius:var(--radius); padding:11px 14px; }
.help-tabs{ gap:10px; margin:14px 0 6px; }
.help-tab{ border-radius:12px; padding:9px 0; font-size:13.5px; font-weight:600; box-shadow:var(--shadow-sm); }
.help-card{ border-radius:var(--radius-lg); padding:14px; border-color:var(--line-soft); box-shadow:var(--shadow-sm); }
.help-card-title{ font-size:15.5px; font-weight:800; }
.help-tag{ font-weight:700; }
.hp-chip{ border-radius:12px; padding:10px 4px; font-weight:600; }

/* ---------- 登录页 ---------- */
.auth-view{ background:var(--grad-hero); }
.auth-hero h1{ font-size:48px; letter-spacing:10px; font-weight:900; }
.auth-card{ border-radius:var(--radius-xl); padding:26px 24px; box-shadow:0 18px 50px rgba(0,0,0,.18); }
.tab-row{ border-radius:12px; padding:5px; }
.tab{ border-radius:10px; font-size:14.5px; font-weight:700; }
.tab.active{ box-shadow:0 3px 10px rgba(0,0,0,.06); }
.field input, .field textarea, .field select{ border-radius:12px; font-size:14.5px; background:#fdfbf6; }

/* ---------- 弹窗 ---------- */
.modal-card{ border-radius:var(--radius-xl); padding:24px 22px; box-shadow:0 20px 60px rgba(0,0,0,.2); }
.modal-card h3{ font-size:18px; font-weight:800; }
.modal-actions{ margin-top:20px; }
.modal-actions .btn{ border-radius:12px; padding:13px 0; font-weight:700; }

/* ---------- 按钮统一 ---------- */
.btn{ border-radius:12px; font-weight:600; transition:all .15s ease; }
.btn:active{ transform:scale(.97); }
.btn-main{ background:var(--grad-main); box-shadow:0 6px 16px rgba(240,130,28,.25); }
.btn-soft{ background:var(--surface-soft); }
.btn-sm{ border-radius:10px; }

/* ---------- 输入统一 ---------- */
input, select, textarea{ border-radius:12px !important; }
input:focus, textarea:focus, select:focus{ box-shadow:0 0 0 3px rgba(240,130,28,.12); }

/* ---------- 空状态 ---------- */
.empty-tip{ padding:60px 0; }
.empty-tip .empty-ico{ width:56px; height:56px; border-radius:18px; background:var(--surface-tint);
  display:inline-flex; align-items:center; justify-content:center; color:#d9a05a; margin-bottom:12px; }
.empty-tip .empty-ico svg{ width:28px; height:28px; }

/* ---------- Toast ---------- */
.sync-toast{ border-radius:14px; font-weight:600; }

/* ===== V2.9.2 标题图标统一（线性 SVG，参考导航栏风格） ===== */
.acc-head h4{ display:flex; align-items:center; gap:8px; }
.tt-ico{ display:inline-flex; align-items:center; margin-right:6px; vertical-align:-3px; color:var(--accent,#e8873a); }
.tt-ico svg{ width:16px; height:16px; }
.rt-ico{ display:inline-flex; align-items:center; margin-right:6px; vertical-align:-3px; color:#c97a2d; flex-shrink:0; }
.rt-ico svg{ width:15px; height:15px; }
/* V2.9.8 互帮互助告知确认弹窗 */
.help-confirm-body { max-height: 300px; overflow-y: auto; padding-right: 6px; font-size: 13px; line-height: 1.7; color: var(--ink); }
.help-confirm-body h4 { margin: 10px 0 4px; font-size: 14px; color: #c1664f; }
.help-confirm-body p { margin: 0 0 8px; }
.help-confirm-check { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 4px; font-size: 13px; color: var(--ink); cursor: pointer; }
.help-confirm-check input { margin-top: 2px; width: 18px; height: 18px; accent-color: #c1664f; }
/* V2.9.8 缺陷修复：互帮互助告知确认弹窗置于最上层（高于普通 modal z-index:50） */
#helpConfirmModal.modal { z-index: var(--z-modal-confirm); }

/* V3.0.6 复制重建弹窗层级调整（高于新建计划弹窗，从新建计划弹窗中打开） */
#copyPlanModal.modal { z-index: var(--z-modal-copy); }


.panel-tag.tag-cloud { background: #eef7ee; color: #2e7d32; border: 1px solid #cde6cd; }

/* V2.9.8 记忆/笔记 按日期快速检索条 */
.f-bar{display:flex;flex-wrap:wrap;gap:6px}
.f-chip{padding:5px 11px;border:1px solid #E4E3DD;background:#fff;border-radius:999px;font-size:12px;color:#3C4043;cursor:pointer}
.f-chip.on{background:#D9802B;border-color:#D9802B;color:#fff;font-weight:600}

/* V2.9.8 记忆/笔记 标题行右侧按日期检索 */
.acc-head-row{display:flex;align-items:center;gap:10px}
.acc-head-row .acc-head{flex:1 1 auto;min-width:0}
.acc-date-input{width:140px;flex-shrink:0;padding:5px 6px;border:1px solid #E4E3DD;border-radius:8px;font-size:12px;color:#3C4043;background:#fff}
@media (max-width: 340px) { .acc-date-input { width: 116px; padding: 5px 4px; } }

/* V2.9.8 笔记记录-日期列表项（点击弹窗查看完整内容） */
.nr-item{display:flex;align-items:center;gap:8px;padding:11px 12px;border:1px solid var(--bd,#e0ddd6);border-radius:10px;background:#fff;margin-bottom:8px;cursor:pointer}
.nr-item .zi{color:#D9802B;flex-shrink:0}
.nr-date{font-weight:600;font-size:13.5px;flex:1 1 auto;text-align:left}
.nr-meta{font-size:12px;color:var(--muted,#999);flex-shrink:0}
.nr-arrow{color:var(--muted);font-size:14px;flex-shrink:0}

/* V2.9.8 首页模块说明按钮（点击弹窗） */
.hst-info{margin-left:2px;flex:none;width:24px;height:24px;border-radius:50%;border:1px solid #f3d8ae;background:#fdf0e0;color:#b06d1f;font-size:12px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}

/* V2.9.9 足迹页折叠标题：去黑色线条框 + 标题框按字长短自适应 */
#overviewPanel .acc-item, #albumPanel .acc-item, #noteRecordPanel .acc-item { border-color: transparent; }
#overviewPanel .acc-head, #albumPanel .acc-head, #noteRecordPanel .acc-head, .acc-head-row .acc-head {
  gap: 2px !important; border: none !important; background: var(--surface-tint, #fdf6ec) !important; box-shadow: none !important; justify-content: flex-start !important;
  padding: 5px 9px !important; border-radius: 999px !important;
  flex: none !important;
  margin-left: 0 !important;
}
/* 所有内容区域左面缩进一致 */
#overviewPanel .acc-body, #albumPanel .acc-body, #noteRecordPanel .acc-body, #noteModuleBody {
  padding-left: 0 !important;
  margin-left: 0 !important;
}
/* 所有标题left统一为54px */
#overviewPanel .acc-item, #albumPanel .acc-item {
  padding-left: 33px !important;
}
#overviewPanel .acc-head-row, #albumPanel .acc-head-row {
  padding-left: 0 !important;
}
/* 笔记模块panel-soft padding统一 */
#tab-company .panel-soft:has(#noteModuleHead) {
  padding-left: 18px !important;
  padding-right: 14px !important;
}
/* 笔记模块acc-head-row padding统一 */
#tab-company .panel-soft:has(#noteModuleHead) .acc-head-row {
  padding-left: 16px !important;
}
#overviewPanel .acc-ico, #albumPanel .acc-ico, #noteRecordPanel .acc-ico { color: var(--accent, #e8873a); }
#overviewPanel .acc-txt, #albumPanel .acc-txt, #noteRecordPanel .acc-txt, .acc-head-row .acc-txt {
  flex: none !important; display: inline-block !important; width: auto !important; min-width: 0 !important;
  font-size: 15px !important; font-weight: 700 !important; color: #7a4a26 !important;
  text-align: left !important;
}


/* V2.9.9 自定义日期选择器样式 */
.custom-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd, #e0ddd6);
  background: var(--surface-tint, #fdf6ec);
  border-radius: 12px 12px 0 0;
}
.cal-nav-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: #7a4a26;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cal-nav-btn:hover {
  background: rgba(122, 74, 38, 0.1);
}
.cal-month-title {
  font-size: 15px;
  font-weight: 700;
  color: #7a4a26;
}
.custom-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px 12px 4px;
  text-align: center;
}
.custom-cal-weekdays span {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  padding: 4px 0;
}
.custom-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 12px 12px;
  gap: 2px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  position: relative;
}
.cal-day:hover {
  background: rgba(122, 74, 38, 0.1);
}
.cal-day.other-month {
  color: #ccc;
}
.cal-day.today {
  font-weight: 700;
  color: #e8873a;
}
.cal-day.has-record {
  background: rgba(232, 135, 58, 0.15);
  color: #7a4a26;
  font-weight: 600;
  box-shadow: inset 0 0 0 2px #e8873a;
}
.cal-day.has-record:hover {
  background: rgba(232, 135, 58, 0.25);
}
.cal-day.selected {
  background: #e8873a;
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}
.cal-day.selected:hover {
  background: #d4762f;
}
.cal-day.disabled {
  color: #ccc;
  cursor: not-allowed;
  background: transparent;
  opacity: 0.5;
}
.cal-day.disabled:hover {
  background: transparent;
}
.custom-cal-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--bd, #e0ddd6);
  gap: 8px;
}
.custom-cal-footer .btn {
  flex: 1;
}


/* ===== 统一弹窗层级体系 (V5.8) =====
   抽屉(.v4-drawer) z=91；所有可从「系统设置」抽屉内打开的弹窗必须 ≥ 500，否则会被抽屉遮挡无法操作。
   层级（数值越大越靠上）：
     L1 顶部栏/导航 ................ 20-30
     L2 抽屉遮罩 / 抽屉 ............ 90 / 91
     L3 基础弹窗层 ................. 500   (.modal / .v4-modal-mask：账号/昵称/协议/服务/引导/发布/评论等)
     L4 二级弹窗（弹窗之上）........ 600-680 (绑定手机 / 互助 / 复制计划 / 确认)
     L5 详情/列表/表单 ............. 700-780 (笔记详情/计划详情/相册列表/计划表单/日期选择)
     L6 编辑层 ..................... 1000 (笔记编辑)
     L7 全屏/预览层 ................ 1050-1100 (陪伴相册查看/图片视频预览/付费墙)
     L8 支付/强提醒 ................ 1200-1300 (支付弹窗/强确认)
     L9 轻提示 toast ............... 1400 (恒最上层) */
/* 底部提醒条低于所有弹窗，避免遮挡 */
#alertBar { z-index: 45 !important; }
/* 互助模块二级弹窗（从互助广场/我的需求打开）；须高于基础弹窗层 500 */
#helpPostModal, #helpDetailModal, #helpLocModal, #helpMineModal, #helpAppliedModal { z-index: var(--z-modal-2); }
/* 回家计划表单：从计划详情打开修改，须覆盖详情 */
#planFormModal { z-index: var(--z-form); }
/* 自定义日期选择器：可能从计划表单/记录弹窗打开 */
#customDatePickerModal { z-index: var(--z-date); }
/* 强提醒确认弹窗：高于预览与付费墙 */
#customConfirmModal { z-index: var(--z-confirm); }
/* 付费墙高于图片/视频预览 */
.paywall { z-index: var(--z-paywall); }
/* 轻提示 toast 恒在最上层 */
.sync-toast { z-index: var(--z-toast); }
/* 支付弹窗：从付费墙打开，须覆盖付费墙 */
#payModal { z-index: var(--z-pay); }
/* 绑定/换绑手机弹窗：从「系统设置」抽屉内的账号与安全打开，须高于抽屉与基础弹窗层 */
#bindPhoneModal { z-index: var(--z-modal-2); }

/* ===== 原版基础上精调优化 ===== */
/* 头图：倒计时数字加半透明白底 */
.cd-big {
  background: rgba(255,255,255,.15) !important;
  display: inline-block !important;
  padding: 12px 24px !important;
  border-radius: 20px !important;
  margin: 12px 0 !important;
}
/* 打卡按钮圆形图标 */
.qa-ico {
  border-radius: 50% !important;
}
/* 卡片圆角加大 */
.panel-soft, .acc {
  border-radius: 18px !important;
}
/* 底部导航悬浮 */
.tabbar {
  box-shadow: 0 -2px 12px rgba(0,0,0,.06) !important;
}

/* 所有折叠面板子内容统一左对齐，不缩进 */
.acc-body, .acc-content, .mine-menu, .rem-box {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
}
/* 我的页：个人卡片缩小 */
#tab-mine .mine-card {
  padding: 18px 16px !important;
  margin-bottom: 12px !important;
}
/* 我的页：卡片间距缩小，更紧凑 */
#tab-mine .panel-soft {
  margin-bottom: 10px !important;
  padding: 14px 16px !important;
}
/* 我的页子菜单：浅灰背景，层级清晰 */
#tab-mine .acc-body .panel-soft, #tab-mine .sub-entry, #tab-mine .mine-menu-item {
  background: #faf8f5 !important;
  box-shadow: none !important;
  border: none !important;
  padding-left: 16px !important;
  margin-left: 0 !important;
}

/* ===== 我的页重新排版 ===== */
/* 个人卡片：紧凑 */
#tab-mine .mine-card {
  padding: 16px !important;
  border-radius: 16px !important;
}
/* 菜单卡片：合并成组，相邻卡片无边距 */
#tab-mine .panel-soft + .panel-soft {
  margin-top: -8px !important;
  border-radius: 0 0 12px 12px !important;
}
#tab-mine .panel-soft:first-of-type {
  border-radius: 12px 12px 0 0 !important;
}
/* 退出登录：红色按钮更突出 */
#tab-mine .btn-danger, #tab-mine button[onclick*="logout"], #tab-mine .logout-btn {
  margin-top: 16px !important;
  border-radius: 12px !important;
}

/* ===== 首页美化 ===== */
/* 头图加装饰 */
#tab-home .countdown-card::before {
  content: ''; position: absolute; left:-30px; bottom:-30px; width:100px; height:100px;
  background: radial-gradient(circle,rgba(255,255,255,.12),transparent 70%); border-radius:50%;
}
/* 打卡按钮图标更大 */
#tab-home .qa-ico {
  width: 56px !important; height: 56px !important;
}
/* 卡片圆角统一 */
#tab-home .panel-soft, #tab-home .qa {
  border-radius: 16px !important;
}

/* ===== 足迹页美化 ===== */
/* 陪伴总览卡片 */
#tab-company .companion-hero {
  border-radius: 18px !important;
  padding: 24px 18px !important;
}
/* 相册和笔记折叠面板 */
#tab-company .acc {
  border-radius: 14px !important;
  margin-bottom: 10px !important;
}

/* ===== 我的页：彻底重排，整齐美观 ===== */
/* 所有菜单卡片合并成组 */
#tab-mine .panel-soft {
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid #f0ede6 !important;
  padding: 0 !important;
  background: #fff !important;
}
#tab-mine .panel-soft:first-of-type {
  border-radius: 16px 16px 0 0 !important;
}
#tab-mine .panel-soft:last-of-type {
  border-radius: 0 0 16px 16px !important;
  border-bottom: none !important;
}
/* 菜单项统一行高和padding */
#tab-mine .off-entry, #tab-mine .acc-head {
  padding: 16px !important;
  font-size: 15px !important;
}
/* 图标统一大小 */
#tab-mine .off-entry svg, #tab-mine .acc-head .acc-ico svg {
  width: 20px !important;
  height: 20px !important;
}
/* 子菜单展开后缩进 */
#tab-mine .mine-menu, #tab-mine .rem-box {
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-bottom: 12px !important;
  background: #faf8f5 !important;
}
/* 子项之间分隔线 */
#tab-mine .rem-row {
  padding: 10px 0 !important;
  border-bottom: 1px solid #f0ede6 !important;
}
#tab-mine .rem-row:last-child {
  border-bottom: none !important;
}
/* 退出登录单独卡片 */
#tab-mine .logout-section {
  margin-top: 12px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* ===== 嵌套折叠面板统一样式 ===== */
/* 系统更新、数据备份等嵌套在"系统"里的子项 */
#tab-mine .mine-menu .panel-soft {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #f0ede6 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#tab-mine .mine-menu .panel-soft:last-child {
  border-bottom: none !important;
}
#tab-mine .mine-menu .panel-soft .acc-head {
  padding: 14px 16px !important;
  font-size: 14px !important;
}
/* 嵌套子菜单再缩进 */
#tab-mine .mine-menu .mine-menu {
  padding-left: 24px !important;
}

/* ===== 全站统一折叠面板 ===== */
/* 所有折叠面板标题统一样式 */
.acc-head {
  padding: 14px 16px !important;
  font-size: 15px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.acc-head h4 {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  font-size: 15px !important;
}
/* 所有折叠面板展开内容统一缩进 */
.acc-body, .mine-menu {
  padding: 0 16px 12px 16px !important;
  background: #faf8f5 !important;
}
/* 首页和足迹页的折叠面板也统一 */
#tab-home .acc, #tab-company .acc {
  background: #fff !important;
  border-radius: 14px !important;
  margin-bottom: 10px !important;
  overflow: hidden !important;
}
/* 子项之间统一分割线 */
.rem-row, .plan-item, .company-item, .help-card {
  border-bottom: 1px solid #f0ede6 !important;
}
.rem-row:last-child, .plan-item:last-child, .company-item:last-child, .help-card:last-child {
  border-bottom: none !important;
}

/* ===== 彻底去掉嵌套缩进，全部左对齐 ===== */
/* 所有折叠面板展开内容不缩进 */
.acc-body, .mine-menu {
  padding: 0 !important;
  background: transparent !important;
}
/* 所有子菜单项和父菜单项一样 */
#tab-mine .mine-menu .panel-soft, #tab-mine .mine-menu .acc {
  margin: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #f0ede6 !important;
  background: #fff !important;
}
#tab-mine .mine-menu .panel-soft .acc-head,
#tab-mine .mine-menu .mine-menu .panel-soft .acc-head {
  padding-left: 16px !important;
}
/* 去掉所有多层缩进 */
#tab-mine .mine-menu .mine-menu {
  padding-left: 0 !important;
  background: transparent !important;
}

/* ===== 我的页：每个模块独立卡片，去掉菜单项背景框 ===== */
#tab-mine .panel-soft {
  margin: 0 0 16px 0 !important;
  border-radius: 16px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#tab-mine .panel-soft:first-of-type {
  border-radius: 16px !important;
}
#tab-mine .panel-soft:last-of-type {
  border-radius: 16px !important;
}

/* 标题和内容之间的颜色过渡 */
#tab-mine .acc-head {
  margin-bottom: 0 !important;
  padding: 14px 16px !important;
  border-bottom: none !important;
  background: #fff !important;
}
#tab-mine .acc-body {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-left: 20px !important;
  border-left: 2px solid #f0821c !important;
  margin-left: 16px !important;
  background: transparent !important;
}

/* 去掉子菜单项的背景框 */
#tab-mine .mine-menu .panel-soft {
  margin: 0 !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
#tab-mine .mine-menu .panel-soft .acc-head {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  background: transparent !important;
}

/* 子菜单项不要有自己的白色卡片 */
#tab-mine .mine-menu .acc {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
/* 所有折叠面板（外层+嵌套）完全统一 */
#tab-mine .acc-head {
  padding: 14px 16px !important;
  margin: 0 !important;
}
#tab-mine .acc-head h4 {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #333 !important;
}
#tab-mine .acc-ico {
  margin-right: 10px !important;
}
#tab-mine .acc-arrow {
  margin-left: auto !important;
}
/* 所有折叠内容完全统一，去掉嵌套缩进和背景 */
#tab-mine .mine-menu {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
#tab-mine .mine-menu .panel-soft {
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
#tab-mine .mine-menu .panel-soft .acc-head {
  padding-left: 16px !important;
}
/* 所有rem-box（折叠内容）统一边距 */
#tab-mine .rem-box {
  padding: 12px 16px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* ===== 首页+足迹页：所有卡片统一对齐 ===== */
#tab-home .panel-soft, #tab-company .panel-soft {
  margin: 0 0 12px 0 !important;
  border-radius: 16px !important;
  border: none !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}
#tab-home .home-sec-title, #tab-company .home-sec-title {
  padding: 14px 16px !important;
  margin: 0 !important;
}
#tab-home .home-sec-title .hst-txt, #tab-company .home-sec-title .hst-txt {
  font-size: 15px !important;
  font-weight: 600 !important;
  margin: 0 !important;
}
#tab-home .home-sec-title .hst-ico, #tab-company .home-sec-title .hst-ico {
  margin-right: 10px !important;
}
/* 所有卡片内容统一padding */
#tab-home .panel-soft > *, #tab-company .panel-soft > * {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* ===== 手机端 375px 精调 ===== */
@media screen and (max-width: 480px) {
  /* 全局边距 */
  body { padding: 8px !important; }
  .container, .app-container { padding: 8px !important; }
  /* 卡片间距 */
  .panel-soft { margin-bottom: 10px !important; padding: 14px !important; }
  /* 字号 */
  .home-sec-title .hst-txt { font-size: 16px !important; }
  .acc-head { font-size: 15px !important; }
  /* 图标大小 */
  .acc-ico, .off-entry svg { width: 20px !important; height: 20px !important; }
  /* 打卡按钮 */
  .qa { padding: 14px 4px 12px !important; }
  .qa-ico { width: 48px !important; height: 48px !important; }
  /* 头图 */
  .countdown-card { padding: 20px 16px !important; }
  .cd-big { font-size: 44px !important; }
  /* 底部导航 */
  .tabbar { height: 56px !important; }
}

/* ===== 登录页优化 ===== */
#loginView, .login-view {
  background: linear-gradient(180deg, #fff5e8 0%, #fff 40%) !important;
  min-height: 100vh !important;
  padding: 40px 24px !important;
}
#loginView .login-logo, .login-view .login-logo {
  width: 72px !important; height: 72px !important;
  border-radius: 20px !important;
  margin-bottom: 16px !important;
}
#loginView h2, .login-view h2 {
  font-size: 24px !important;
  font-weight: 800 !important;
  margin-bottom: 6px !important;
}
#loginView .login-slogan, .login-view .login-slogan {
  font-size: 14px !important;
  color: #999 !important;
  margin-bottom: 32px !important;
}
#loginView .field, .login-view .field {
  border-radius: 14px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.04) !important;
}
#loginView .btn-main, .login-view .btn-main {
  border-radius: 14px !important;
  height: 48px !important;
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 20px !important;
  box-shadow: 0 4px 12px rgba(240,130,28,.25) !important;
}

/* 彻底去掉子菜单白色背景 */
#tab-mine .mine-menu .panel-soft,
#tab-mine #mine_me .panel-soft,
#tab-mine #mine_points .panel-soft,
#tab-mine #mine_sub .panel-soft,
#tab-mine #mine_invite .panel-soft {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
#tab-mine .mine-menu .panel-soft .acc-head,
#tab-mine #mine_me .panel-soft .acc-head,
#tab-mine #mine_points .panel-soft .acc-head,
#tab-mine #mine_sub .panel-soft .acc-head,
#tab-mine #mine_invite .panel-soft .acc-head {
  padding-left: 16px !important;
  border-bottom: 1px solid #f0ede6 !important;
}
/* 所有卡片统一左padding，图标对齐 */
#tab-mine .panel-soft, #tab-mine .off-entry, #tab-mine .acc-head {
  padding-left: 34px !important;
}
#tab-mine .panel-soft:first-child {
  padding-top: 16px !important;
}
/* 所有页面菜单项统一左对齐 */
.acc-head, .off-entry, .sub-entry, .rem-row, .rp-head, .pc-head {
  padding-left: 0 !important;
  padding-right: 16px !important;
}
/* 我的菜单padding统一 */
#tab-mine .mine-menu {
  padding-left: 0 !important;
}
.acc-head .acc-ico, .off-entry svg, .sub-entry .sub-ico, .rem-title .rt-ico {
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

/* ===== 舒适度优化 ===== */
/* 首页：所有打卡按钮统一背景色，无边框 */
.quick-actions .qa {
  background: linear-gradient(135deg, #fff5ee, #ffe8d6) !important;
  border: none !important;
}
/* 卡片间距更大 */
.panel-soft {
  margin-bottom: 18px !important;
  padding: 18px !important;
}
/* 标题和内容间距 */
.home-sec-title {
  margin: 24px 0 14px !important;
}
/* 按钮高度 */
.btn-main, .btn-primary, .btn-soft, .btn-danger, .btn-danger-ghost, .btn-warn {
  height: 44px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
/* 所有按钮统一垂直居中 */
.btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
/* 输入框 */
input, textarea, select {
  padding: 12px 14px !important;
  font-size: 15px !important;
}
/* 全局字体微调 */
body { font-size: 14.5px !important; }

/* 我的页菜单对齐：所有菜单项左对齐 */
#tab-mine .acc-head, #tab-mine .off-entry, #tab-mine .mine-menu .sub-entry, #tab-mine .mine-menu .acc-head {
  padding-left: 34px !important;
  padding-right: 16px !important;
}
#tab-mine .acc-head .acc-ico, #tab-mine .off-entry svg {
  margin-right: 8px !important;
}
/* 折叠面板内容区域左右对齐 */
#tab-mine .acc-body, #tab-mine .mine-menu {
  padding-left: 0 !important;
  padding-right: 16px !important;
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
/* 通知公告按钮内联样式覆盖 */
#tab-mine .off-entry {
  padding: 16px 16px 16px 34px !important;
}
/* 一级菜单项padding统一 */
#tab-mine .acc-head {
  padding-left: 34px !important;
  padding-right: 16px !important;
}

/* ===== 彻底修复"我的"页面菜单项左对齐问题 ===== */

/* 所有一级菜单容器paddingLeft统一为0 */
#tab-mine .panel-soft {
  padding-left: 0 !important;
}

/* 所有菜单项paddingLeft统一为16px */
#tab-mine .off-entry,
#tab-mine .acc-head,
#tab-mine .mine-menu .sub-entry {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* 折叠面板内容区域paddingLeft统一为0 */
#tab-mine .acc-body,
#tab-mine .mine-menu {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 退出登录按钮不超出父元素宽度 */
#tab-mine #btnLogout {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ===== 统一三个页面的模块卡片样式 ===== */

/* ===== 我的页：所有标题样式完全统一 ===== */
#tab-mine .acc-head {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 16px !important;
  margin-bottom: 20px !important;
  border-bottom: 1px solid #f0ede6 !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* 一级标题和二级标题完全一样 */
#tab-mine .mine-menu .acc-head,
#tab-mine .mine-menu .panel-soft .acc-head {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 16px !important;
  margin-bottom: 20px !important;
  border-bottom: 1px solid #f0ede6 !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* 子菜单里的panel-soft不要有自己的padding */
#tab-mine .mine-menu .panel-soft {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* 所有菜单项paddingLeft统一为16px */
#tab-mine .off-entry,
#tab-mine .acc-head {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* 子标题比父标题左缩进一点，看起来有层级关系 */
#tab-mine .mine-menu .sub-entry,
#tab-mine .mine-menu .acc-head,
#tab-mine .mine-menu .panel-soft .acc-head {
  padding-left: 32px !important;
  padding-right: 16px !important;
}

/* 我的页面大卡片去掉背景 */
#tab-mine .panel-soft {
  background: transparent !important;
  box-shadow: none !important;
}

/* 所有展开后的内容区域统一对齐，参考账号安全页面 */
#tab-mine .mine-menu,
#tab-mine .rem-box,
#tab-mine .acc-body {
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-top: 0 !important;
  padding-bottom: 20px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* 展开后的内容区域不要有自己的背景框 */
#tab-mine .rem-box {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* 邀请好友模块的内容区域也去掉背景框 */
#tab-mine #mine_invite .mine-menu,
#tab-mine #mine_invite .rem-box {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}



/* V3.6.9-PLANTAG：计划徽章状态补齐（旧代码引用了 warn/plan/done 但部分没有样式） */
.rp-time.warn { color: #b8860b; background: rgba(240, 180, 28, .16); }
.rp-time.done { color: #2ba471; background: #e8f4ed; }
.pc-tag.warn { background: #fdf3e0; color: #b8860b; }
.pc-tag.plan { background: #f2eee4; color: #c46a12; }

/* ==================== V4.2 美化：系统设置·用户横幅 ==================== */
.mine-card { background: radial-gradient(130% 110% at 85% -15%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 50%), linear-gradient(140deg, #5f7040 0%, #4c5c33 55%, #3e4d29 100%); box-shadow: 0 10px 24px rgba(76,92,51,.28); position: relative; overflow: hidden; }
.mine-card::after { content: ""; position: absolute; right: -34px; bottom: -52px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.mine-avatar { background: rgba(255,255,255,.24); border: 1px solid rgba(255,255,255,.32); padding: 0 18px; min-width: 92px; height: 36px; font-size: 17px; box-shadow: 0 4px 12px rgba(30,40,15,.22); }
.mine-name { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.mine-status { font-size: 12.5px; opacity: .92; margin-top: 5px; }

/* ==================== V4.2 桌面端宽屏适配（≥768px） ==================== */
@media (min-width: 768px) {
  /* 暖色渐变桌面背景，替代大片纯白 */
  html {
    background-color: #f3ecdf;
    background-image:
      radial-gradient(900px 520px at 12% -8%, rgba(240,130,28,.10), transparent 60%),
      radial-gradient(820px 560px at 88% 108%, rgba(92,107,63,.12), transparent 60%),
      linear-gradient(180deg, #f6efe2 0%, #efe7d7 100%);
    background-attachment: fixed;
  }
  /* V6.7：桌面布局统一由 v4.js 的 V6.7 权威块管理。
     所有页面与底部导航条跟主页一样，共用 --hj-col=520px 居中应用列；
     原 V4.2「520px 圆角应用卡片 / 悬浮球按 520px 定位 / 底栏 bottom:16px」的外部
     卡片化外壳会造成顶部 20px 漏缝，已移除；此处仅保留暖色桌面背景。 */
}

/* ==================== V4.3 抖音式重设计：去底色 · 白面黑字 · 扁平化 ==================== */
:root{
  --paper:#ffffff;
  --surface-soft:#ffffff;
  --surface-tint:#f7f8fa;
  --line:#ececee;
  --line-soft:#f2f2f4;
  --line-strong:#e6e6e9;
  --grad-main:linear-gradient(135deg,#f0821c 0%,#f0821c 100%);
  --grad-deep:linear-gradient(135deg,#e06f12 0%,#e06f12 100%);
  --grad-hero:linear-gradient(135deg,#ffffff 0%,#ffffff 100%);
  --shadow-lg:0 2px 10px rgba(0,0,0,.05);
  --shadow:0 1px 6px rgba(0,0,0,.05);
  --shadow-sm:0 1px 2px rgba(0,0,0,.04);
}
html{background:#f2f3f5 !important;background-image:none !important;}
body{background:#ffffff !important;border:1px solid #ececee !important;box-shadow:0 4px 32px rgba(0,0,0,.07) !important;}
.app-title{color:#161823 !important;}
/* 首页 Hero 卡：白底卡片 */
.countdown-card{background:#fff !important;color:#161823 !important;border:1px solid #f0f0f2;box-shadow:none !important;}
.countdown-card::after{display:none !important;}
.countdown-card.today{background:#fff !important;}
.cd-greet{color:#161823 !important;text-shadow:none !important;}
.cd-big{color:#161823 !important;text-shadow:none !important;}
.cd-slogan,.cd-sub{color:#71717a !important;}
.cd-edit{background:#f0821c !important;color:#fff !important;border:none !important;box-shadow:none !important;}
/* 我的页：绿色横幅 → 白卡 */
.mine-card{background:#fff !important;box-shadow:none !important;border:1px solid #f0f0f2;color:#161823 !important;}
.mine-card::after{display:none !important;}
.mine-avatar{background:#f2f2f4 !important;border:1px solid #e8e8ea !important;color:#161823 !important;box-shadow:none !important;}
.mine-name{color:#161823 !important;}
.mine-status{color:#8a8a8e !important;}
/* 通用面板：白底细边框 */
.panel-soft,.write-card,.rec-card,.company-item,.help-card,.rem-plan-card,.plan-card,.comp-card,.rpc-card{background:#fff !important;border:1px solid #f0f0f2 !important;}
/* 互助页 tabs：抖音式黑底选中 */
.help-tab{background:#f7f8fa !important;border:1px solid #ececee !important;color:#5a5a5e !important;}
.help-tab.active{background:#f0821c !important;color:#fff !important;border-color:#f0821c !important;}
/* 底部导航：纯白 */
.bottom-nav{background:#fff !important;border:1px solid #f0f0f2 !important;}
/* 二级页头仅留返回按钮：收紧间距 */
#tab-help .sec-h,#tab-note .sec-h{margin:14px 0 10px;}

/* ===== V4.3.2 底部导航抖音化：通栏平贴 · 黑白状态 · 去胶囊浮层 ===== */
.bottom-nav{
  bottom:0 !important;
  left:0 !important;
  transform:none !important;
  width:100% !important;
  max-width:none !important;
  background:#fff !important;
  border:none !important;
  border-top:1px solid #f0f0f2 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  padding:6px 0 calc(8px + env(safe-area-inset-bottom)) !important;
}
.nav-btn{border-radius:0 !important;color:#9a9aa0 !important;gap:2px !important;padding:5px 4px !important;font-size:11px !important;}
.nav-btn:hover{background:none !important;}
.nav-btn:active{transform:none !important;}
.nav-btn.active{background:none !important;color:#161823 !important;font-weight:600 !important;}
.nav-btn.active::before{display:none !important;}
.nav-btn.active .nav-ico svg{stroke:#161823 !important;}
.nav-ico svg{width:24px !important;height:24px !important;}
/* V6.7：原 V4.3.2 的 768px「468px 居中胶囊导航」宽度与 520px 应用列不一致，
   已移除；导航条宽度由 v4.js V6.7 权威块的 --hj-col 统一定义。 */
/* 全屏媒体卡正文沉底时避开底部导航 */
.v4-card:not(.v4-txonly) .c-body{padding-bottom:78px !important;}

/* ===================== V4.9 消息页（平台客服 / 好友 / 陌生人互动） ===================== */
.msg-group { margin: 6px 12px 14px; }
.msg-group-t { font-size: 13px; font-weight: 700; color: var(--text-2, #5d574c); margin: 10px 2px 8px; letter-spacing: .02em; }
.msg-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--bd, #efe9df); border-radius: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(60,40,10,.04); }
.msg-ava { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-main, linear-gradient(135deg,#f7a83b,#f0821c)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; }
.msg-main { flex: 1 1 auto; min-width: 0; }
.msg-name { font-size: 15px; font-weight: 600; color: var(--text-1, #2b2722); margin-bottom: 2px; }
.msg-sub { font-size: 12.5px; color: var(--text-3, #8a8377); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-time { flex: 0 0 auto; font-size: 11px; color: var(--text-3, #8a8377); align-self: flex-start; padding-top: 2px; }
.m4-empty { padding: 18px; text-align: center; font-size: 13px; color: var(--text-3, #8a8377); background: rgba(247,168,59,.06); border: 1px dashed var(--bd, #e7dccb); border-radius: 12px; }

/* ===================== V5.2 信息架构清理 ===================== */
/* 官方消息卡迁入消息页后靠 [hidden] 折叠，防止其它 display 规则覆盖导致面板常驻展开 */
#offPanel[hidden] { display: none !important; }
#msgOfficial button#btnOfficialMsgs:active { background: #faf6ee; }

/* ==================== V5.3 全站统一设计令牌 ====================
   基准：页面底 #faf6ee（米纸）/ 卡片 #fff / 分隔线 #efe7d8（暖灰）/ 品牌橙 #f0821c
   具体组件级覆盖写在 v4.js injectStyle 数组末尾（其 <style> 优先级最高）。 */
:root{
  --paper:#faf6ee;
  --surface:#ffffff; --surface-soft:#faf6ee; --surface-tint:#fff8ee;
  --line:#efe7d8; --line-soft:#f4eee2; --line-strong:#e7ddc9;
  --ink:#2b2722; --text-1:#2b2722; --text-2:#5a544a; --text-3:#8a8377; --text-4:#b6aea0;
  --muted:#8a8377; --bd:#efe7d8; --bg:#faf6ee;
  --clay:#f0821c; --orange:#f0821c; --orange-soft:#fff3e6;
}
html{ background:#f2ecdf !important; background-image:none !important; }
body{ background:#faf6ee !important; border-color:#eee6d6 !important; box-shadow:0 4px 32px rgba(90,70,40,.10) !important; }
.tab-panel{ background:#faf6ee !important; }

/* ==================== 第六十三轮 · 登录页品牌化重设计（V4.0.17 / 2026-11-10） ====================
   背景：历史 V4.3「去底色」把 --grad-hero 覆盖为纯白，而 .auth-hero 仍是白字，
   造成线上「白底白字」标题几乎不可见。本块置于样式表末尾，重建整页视觉。
   设计基准：官网 V2 米纸 #faf6ee / 品牌橙 #f0821c / 陶土 #a9583a / 墨绿 #25413e。
   图标规约：登录页属于 APP，仅使用「家」字篆刻印章 icon-512.png；
             官网「房子+一家人」印章 brand-mark.png 不得在此出现。
   全部登录 DOM ID 与事件绑定保持不变，仅替换视觉层。 */
.auth-view{
  position:relative;
  min-height:100dvh;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  justify-items:center;
  align-content:center;
  gap:24px;
  padding:clamp(32px,7vh,64px) 18px 30px;
  overflow:hidden;
  background:
    radial-gradient(880px 520px at 6% 8%, rgba(240,130,28,.13), transparent 62%),
    radial-gradient(760px 520px at 96% 92%, rgba(37,65,62,.12), transparent 64%),
    linear-gradient(158deg,#fbf7ef 0%,#f6efe3 54%,#f2e8d7 100%) !important;
}
.auth-view::before{
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(120,96,60,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,96,60,.035) 1px, transparent 1px);
  background-size:30px 30px;
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.75),transparent 88%);
  mask-image:linear-gradient(180deg,rgba(0,0,0,.75),transparent 88%);
}
.auth-view > *{ position:relative; z-index:1; }

/* ---------- 左/上：品牌叙事区 ---------- */
.auth-brand{ width:100%; max-width:460px; color:#2b2722; }
.auth-brand-top{ display:flex; align-items:center; gap:18px; margin-bottom:22px; }
.auth-seal{
  width:88px; height:88px; flex:0 0 auto; object-fit:contain;
  padding:5px; border-radius:20px; background:#fff;
  box-shadow:0 12px 34px rgba(37,65,62,.16), 0 0 0 1px rgba(37,65,62,.08);
}
.auth-brand h1{
  font-size:clamp(38px,5.2vw,58px) !important;
  line-height:1.1 !important;
  letter-spacing:.12em !important;
  font-weight:800 !important;
  color:#25413e !important;
  text-shadow:none !important;
}
.auth-brand-en{
  margin-top:9px; font-size:11px; letter-spacing:.26em;
  color:#a9583a; font-weight:600; text-transform:uppercase;
}
.auth-brand-tag{
  font-size:clamp(17px,2.1vw,23px) !important;
  font-weight:600; color:#5a544a; letter-spacing:.06em; line-height:1.6;
}
.auth-brand-rule{ width:54px; height:3px; border-radius:2px; background:#f0821c; margin:22px 0; }
.auth-brand-feats{ list-style:none; display:grid; gap:13px; }
.auth-brand-feats li{ display:flex; align-items:center; gap:12px; font-size:14px; color:#5a544a; line-height:1.6; }
.auth-feat-dot{
  width:7px; height:7px; border-radius:50%; flex:0 0 auto;
  background:#f0821c; box-shadow:0 0 0 4px rgba(240,130,28,.13);
}
.auth-brand-quote{
  margin-top:30px; font-size:15px; color:#a9583a; letter-spacing:.14em; font-weight:600;
}
.auth-brand-quote::before{ content:"「"; }
.auth-brand-quote::after{ content:"」"; }

/* ---------- 右/下：登录卡 + 页脚 ---------- */
.auth-stage{ width:100%; max-width:460px; }
/* 卡片纵向节奏：压缩留白，保证桌面首屏可见页脚 */
.auth-view .auth-card{
  width:100% !important; max-width:460px !important; box-sizing:border-box !important;
  background:rgba(255,255,255,.97) !important;
  border:1px solid rgba(233,224,208,.95) !important;
  border-radius:24px !important;
  padding:26px 26px 18px !important;
  box-shadow:0 26px 66px rgba(74,54,30,.14), 0 3px 10px rgba(74,54,30,.05) !important;
}
.auth-head{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.auth-head-seal{
  width:42px; height:42px; flex:0 0 auto; object-fit:contain;
  border-radius:12px; background:#f7f2e8; padding:3px;
  box-shadow:0 0 0 1px rgba(233,224,208,.9);
}
.auth-head-txt h2{ font-size:19px; font-weight:800; color:#2b2722; letter-spacing:.03em; line-height:1.3; }
.auth-head-txt p{ font-size:12.5px; color:#8a8377; margin-top:3px; line-height:1.4; }

/* 分段控件：display 不加 !important，保留 showSelfReg/hideSelfReg 的 inline 显隐 */
.auth-view .auth-tabs{
  display:flex;
  gap:4px;
  margin:0 0 16px;
  padding:5px;
  border:1px solid #eee5d5 !important;
  border-bottom:1px solid #eee5d5 !important;
  border-radius:14px !important;
  background:#f6f1e8 !important;
}
.auth-view .auth-tabs .seg-btn{
  flex:1; min-width:0;
  height:38px !important;
  padding:0 8px !important;
  border:none !important;
  border-radius:10px !important;
  background:transparent !important;
  color:#8a8377 !important;
  font-size:14px !important;
  font-weight:600 !important;
  line-height:1 !important;
  letter-spacing:.02em;
  cursor:pointer;
  font-family:inherit;
  transition:background .18s ease, color .18s ease, box-shadow .18s ease;
}
.auth-view .auth-tabs .seg-btn.active{
  background:#fff !important;
  color:#d96f0f !important;
  box-shadow:0 2px 8px rgba(74,54,30,.10) !important;
  font-weight:700 !important;
}
/* 首次登录过后仅保留「密码登录」：收敛成一行标题，不再是半截橙线 */
.auth-view .auth-tabs.single-tab{
  background:transparent !important; border-color:transparent !important;
  padding:0 !important; margin-bottom:14px !important; justify-content:center;
}
.auth-view .auth-tabs.single-tab .seg-btn,
.auth-view .auth-tabs.single-tab .seg-btn.active{
  flex:0 0 auto !important; height:auto !important; padding:0 4px !important;
  background:transparent !important; box-shadow:none !important;
  color:#2b2722 !important; font-size:16px !important; font-weight:700 !important;
  letter-spacing:.08em;
}

/* 表单：米纸输入框 + 暖橙聚焦 + 更高触控高度 */
.auth-view .field{ margin-bottom:10px; }
.auth-view .field input,
.auth-view .field textarea,
.auth-view .field select{
  width:100% !important; height:46px !important;
  padding:0 14px !important;
  border:1px solid #eee5d5 !important;
  border-radius:12px !important;
  background:#fbf8f2 !important;
  color:#2b2722 !important;
  font-size:14.5px !important;
  outline:none !important;
  box-shadow:none !important;
  font-family:inherit;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.auth-view .field input::placeholder{ color:#b0a898; }
.auth-view .field input:focus,
.auth-view .field textarea:focus,
.auth-view .field select:focus{
  border-color:#f0821c !important;
  background:#fff !important;
  box-shadow:0 0 0 3px rgba(240,130,28,.13) !important;
}
.auth-view .code-row{ display:flex; gap:8px; align-items:stretch; }
/* 密码登录表单里的「（昵称）/（密码）」裸标签与 placeholder 重复，收敛为纯输入框 */
.auth-view #pwdLoginForm .field > span{ display:none !important; }
.auth-view .code-row input{ flex:1 1 auto; min-width:0; }
.auth-view .code-row .btn{
  flex:0 0 auto; height:46px !important; padding:0 14px !important;
  border:1px solid #f6ddbd !important; border-radius:12px !important;
  background:#fff3e6 !important; color:#c2650c !important;
  font-size:13px !important; font-weight:700 !important;
  box-shadow:none !important; white-space:nowrap;
}
.auth-view .code-row .btn:active{ background:#ffe8cc !important; }
.auth-view .auth-msg{ min-height:18px; font-size:12.5px; color:#d64545; }

/* 主按钮 */
.auth-view .btn-main{
  height:50px !important; padding:0 18px !important;
  border:none !important; border-radius:13px !important;
  background:linear-gradient(135deg,#f79a2b 0%,#f0821c 52%,#e06f12 100%) !important;
  color:#fff !important; font-size:15.5px !important; font-weight:700 !important;
  letter-spacing:.08em;
  box-shadow:0 10px 24px rgba(224,111,18,.26) !important;
  transition:transform .15s ease, box-shadow .15s ease;
}
.auth-view .btn-main:hover{ box-shadow:0 12px 28px rgba(224,111,18,.32) !important; }
.auth-view .btn-main:active{ transform:scale(.985); }
.auth-view .btn-block{ width:100% !important; }

/* 辅助文案与链接（HTML 内有 inline color，需 !important 覆盖） */
.auth-view .auth-tip{ font-size:11.5px !important; color:#8a8377 !important; line-height:1.6 !important; margin-top:6px !important; text-align:center; }
.auth-view .auth-tip a{
  color:#a9583a !important; text-decoration:none !important;
  font-weight:600; white-space:nowrap;
}
.auth-view .auth-tip a:hover{ color:#d96f0f !important; text-decoration:underline !important; }
.auth-view .remember-login{ color:#5a544a !important; font-size:12.5px !important; margin:8px 0 10px !important; }
.auth-view .remember-login label{ color:#5a544a !important; }
.auth-view input[type="checkbox"]{
  width:17px !important; height:17px !important;
  border-radius:5px !important; accent-color:#f0821c !important;
  box-shadow:none !important; flex:0 0 auto;
}
/* 微信登录为预留占位（inline display:none 被全局 .btn-soft{display:flex!important} 顶出），
   整体隐藏该区块，避免出现无法使用的「微信登录」按钮 */
.auth-view .other-login{ display:none !important; }
.auth-view .other-divider{ font-size:11.5px !important; color:#a89e8d !important; }
.auth-view #pwdResetForm{
  background:#fbf8f2 !important; border:1px solid #eee5d5 !important;
  border-radius:14px !important; padding:14px !important; margin-top:12px !important;
}

/* 卡片底部信任条 */
.auth-trust{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:9px;
  margin-top:14px; padding-top:12px; border-top:1px solid #f1eadc;
  font-size:11.5px; color:#8a8377; letter-spacing:.02em;
}
.auth-trust-sep{ width:3px; height:3px; border-radius:50%; background:#d8ccb8; display:inline-block; }
.auth-ver{
  padding:2px 9px; border-radius:20px;
  background:#f2ece0; color:#a9583a; font-weight:700; font-size:11px; letter-spacing:.04em;
}

/* 页面页脚 */
.auth-foot{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px;
  margin-top:16px; font-size:11.5px; color:#a0957f;
}
.auth-foot a{ color:#8a7f6c; text-decoration:none; border-bottom:1px solid transparent; }
.auth-foot a:hover{ color:#a9583a; border-bottom-color:#a9583a; }
.auth-foot-sep{ color:#c8bda8; }

/* ---------- 响应式 ---------- */
@media (min-width:900px){
  .auth-view{
    grid-template-columns:minmax(0,1fr) minmax(0,460px);
    align-items:center; align-content:center; gap:clamp(40px,6vw,88px);
    max-width:1080px; margin:0 auto;
    min-height:calc(100dvh - 72px);
    padding:56px clamp(24px,4vw,48px) 44px;
  }
  .auth-brand{ max-width:none; }
  .auth-stage{ justify-self:end; }
  .auth-foot{ justify-content:flex-start; }
}
@media (max-width:599px){
  .auth-view{ gap:20px; padding:clamp(26px,6vh,48px) 16px 24px; }
  .auth-brand{ text-align:center; }
  .auth-brand-top{ justify-content:center; gap:13px; margin-bottom:12px; }
  .auth-seal{ width:62px; height:62px; border-radius:16px; }
  .auth-brand h1{ font-size:34px !important; letter-spacing:.1em !important; }
  .auth-brand-en{ font-size:10px; letter-spacing:.18em; margin-top:5px; }
  .auth-brand-tag{ font-size:15px !important; }
  .auth-brand-rule{ display:none; }
  .auth-brand-feats, .auth-brand-quote{ display:none; }
  .auth-view .auth-card{ padding:24px 20px 18px !important; border-radius:20px !important; }
  .auth-head-seal{ width:38px; height:38px; }
  .auth-head-txt h2{ font-size:18px; }
}
@media (max-width:374px){
  .auth-view{ padding:22px 12px 20px; }
  .auth-view .auth-card{ padding:20px 15px 16px !important; }
  .auth-view .auth-tabs .seg-btn{ font-size:13px !important; }
  .auth-view .code-row .btn{ padding:0 9px !important; font-size:12px !important; }
  .auth-trust{ gap:6px; font-size:10.5px; }
}
/* ==================== 第六十三轮登录页样式结束 ==================== */

/* ===== V6.12 验收修复：二级页面返回条 / 话题榜持平标记 / 空态引导 ===== */
.xj-subpage-back{
  display:inline-flex;align-items:center;gap:2px;margin:10px 14px 2px;padding:5px 12px;
  font-size:13px;color:#57493c;background:#fffdf6;border:1px solid #eadfc8;
  border-radius:999px;cursor:pointer;line-height:1.4;box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.xj-subpage-back:active{background:#f5eedc;}
html.v5-dark .xj-subpage-back{background:#26232c;color:#e8e4dc;border-color:#3a3542;}
.v5-hb-flat{font-style:normal;font-size:10px;margin-left:4px;color:#9a9183;}
html.v5-dark .v5-hb-flat{color:#a89f90;}
.v4-empty-cta{
  display:inline-block;margin:10px 0 4px;padding:8px 18px;border:none;border-radius:999px;
  background:#f0821c;color:#fff;font-size:13px;cursor:pointer;
}
.v4-empty-cta:active{background:#d96f0f;}
.v4-empty-ico{display:block;font-size:30px;line-height:1.3;margin-bottom:6px;opacity:.55;}
/* ===== V6.12 样式结束 ===== */
