:root{
  --paper:#faf7f2; --ink:#2b2a28; --ink2:#5a5750; --ink3:#8d887d;
  --line:#e6dfd3; --card:#fffdf9; --accent:#b5523b; --accent-soft:#f7ece6;
  --green:#5c6f5e; --green-soft:#eaefe7; --warn:#a4552b;
  --shadow:0 1px 3px rgba(90,80,60,.06);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html,body{margin:0;padding:0;height:100%;overflow:hidden;}
body{
  background:#efe9df; color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:15px; line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
.shell{
  max-width:480px; margin:0 auto; height:100%; height:100dvh; background:var(--paper);
  position:relative; display:flex; flex-direction:column; overflow:hidden;
}
/* 各版块作为独立内部滚动容器：body 不滚动，fixed 底栏不再被 WebKit 降级跟随 */
.view-scroll{
  flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding-bottom:calc(86px + env(safe-area-inset-bottom));
}

/* 启动过渡屏：会话判定期间居中显示品牌，不出现登录/注册入口 */
.splash{ display:flex; align-items:center; justify-content:center; padding-bottom:0; }
.splash-inner{ display:flex; flex-direction:column; align-items:center; gap:10px; }
.splash-logo{ width:150px; aspect-ratio:1307/791; background:url('/assets/logo.png?v=20261129a') center/contain no-repeat; }
.splash-slogan{ font-size:12.5px; color:var(--ink3); letter-spacing:.05em; margin-top:10px; }
.splash-dots{ display:flex; gap:7px; margin-top:18px; }
.splash-dots span{ width:7px; height:7px; border-radius:50%; background:var(--accent); opacity:.35; animation:splash-dot 1.2s infinite ease-in-out; }
.splash-dots span:nth-child(2){ animation-delay:.2s; }
.splash-dots span:nth-child(3){ animation-delay:.4s; }
@keyframes splash-dot{ 0%,80%,100%{ opacity:.35; transform:scale(.85);} 40%{ opacity:1; transform:scale(1);} }
@media (min-width:560px){ .shell{ margin:16px auto; height:calc(100vh - 32px); border-radius:14px; box-shadow:var(--shadow); overflow:hidden; } }

/* 顶栏 */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px 10px; position:sticky; top:0; z-index:10;
  background:linear-gradient(var(--paper) 78%, rgba(250,247,242,.86));
  backdrop-filter:blur(6px);
}
.topbar .brand{ font-family:Georgia,"Songti SC",serif; font-size:19px; font-weight:600; letter-spacing:.04em;}
.topbar .brand small{ display:block; font-family:inherit; font-size:11px; font-weight:400; color:var(--ink3); letter-spacing:.06em; margin-top:1px;}
.topbar .brand-logo{ display:block; height:30px; width:50px; aspect-ratio:1307/791; background:url('/assets/logo.png?v=20261129a') center/contain no-repeat; -webkit-touch-callout:none; -webkit-user-select:none; user-select:none;}
.topbar .right{ font-size:12px; color:var(--ink3);}
.topbar .dot{ display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--accent); margin-right:5px; vertical-align:1px;}

/* 期头 */
.issue-head{ padding:2px 18px 14px; }
.issue-title{ display:flex; align-items:baseline; gap:9px; }
.issue-title .no{ font-family:Georgia,serif; font-size:21px; font-weight:600; color:var(--ink);}
.issue-title .date{ font-size:12px; color:var(--ink3); letter-spacing:.06em;}
.issue-sub{ font-size:12.5px; color:var(--ink3); margin-top:5px;}

/* 倒计时 */
.cd{
  margin:12px 18px 0; padding:12px 15px; border-radius:10px;
  background:var(--accent-soft); border:1px solid #eed9cf;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.cd .l{ font-size:12.5px; color:var(--accent);}
.cd .l b{ display:block; font-size:14px; margin-bottom:1px;}
.cd .r{ text-align:right; font-size:12px; color:var(--ink2);}
.cd .r .big{ display:block; font-size:12.5px; color:var(--accent); font-weight:400;}
.cd.zero .big{ font-size:12.5px; }

/* 卡片列表 */
.list{ padding:14px 18px 0; }
.pcard{
  background:var(--card); border:1px solid var(--line); border-radius:12px;
  padding:14px 15px 11px; margin-bottom:11px; box-shadow:var(--shadow);
  cursor:pointer; transition:transform .12s ease;
}
.pcard:active{ transform:scale(.985); }
.pcard.mine{ border-color:#d98a76; background:#fbeee9; border-left:3px solid var(--accent); }
.tag-row{ display:flex; align-items:center; gap:6px; margin-bottom:8px; }
.tag-row .tag{ margin-bottom:0; }
.recipient-line{ font-size:12px; color:var(--ink3); margin:-2px 0 6px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.mine-badge{ font-size:10px; letter-spacing:.05em; color:#fff; border:1px solid var(--accent); background:var(--accent); border-radius:4px; padding:1px 6px; }
.tag{
  display:inline-block; font-size:10.5px; letter-spacing:.08em; color:var(--accent);
  border:1px solid #eccfc4; background:#fbf1ec; border-radius:4px; padding:1px 7px; margin-bottom:8px;
}
.tag.old{ color:var(--green); border-color:#cfdcc9; background:var(--green-soft);}
.tag.plain{ color:var(--ink3); border-color:var(--line); background:#f6f2ea;}
.body{
  font-size:14.5px; line-height:1.9; color:#403d37; white-space:pre-wrap; word-break:break-word;
}
.meta{
  display:flex; gap:10px; align-items:center; font-size:11.5px; color:var(--ink3); margin-top:9px; white-space:nowrap;
}
.meta > span{ flex:0 0 auto; white-space:nowrap; }
.meta > span:first-child{ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.meta .sp{ margin-left:auto; }
.meta .ic{ font-size:11px; }
.meta-who{ display:flex; gap:12px; align-items:center; }
.card-actions{ margin-left:auto; display:flex; align-items:center; gap:2px; }
.ca-btn{
  display:flex; align-items:center; gap:3px; border:none; background:transparent;
  padding:4px 6px; color:var(--ink3); cursor:pointer; font-family:inherit;
}
.ca-btn svg{ width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.ca-btn i{ font-style:normal; font-size:11.5px; }
.ca-btn.on{ color:var(--accent); }
.ca-btn:active{ opacity:.7; }

/* 点赞：墙卡上是一颗轻量爱心，详情里是 ghost 按钮 */
.like-btn{
  flex:none; border:none; background:transparent; cursor:pointer; font-size:12.5px;
  color:var(--ink3); padding:2px 4px; font-family:inherit; line-height:1;
}
.like-btn.on{ color:var(--accent); font-weight:600; }
.btn.ghost.like-btn.on{ color:var(--accent); border-color:var(--accent); }

/* 点赞前排头像叠放：先点赞的在最左，头像相互压边 */
.like-cluster{ display:flex; align-items:center; gap:6px; flex:none; }
.like-faces{ display:flex; align-items:center; }
.like-face{
  width:20px; height:20px; border-radius:50%; object-fit:cover;
  border:1.5px solid var(--card); background:#f6f2ea; margin-left:-5px;
}
.like-face:first-child{ margin-left:0; }
.like-faces.lg .like-face{ width:26px; height:26px; margin-left:-7px; }


/* 详情页：点赞昵称条弱化处理，只作一行轻量副信息，不做卡片框 */
.detail-likebar{
  display:flex; align-items:center; gap:6px; margin:10px 2px 4px;
  white-space:nowrap;
}
.detail-likebar.hide{ display:none; }
.detail-ops{ display:flex; gap:8px; margin-top:22px; }
.detail-ops .btn{ flex:1; width:auto; }

/* 空态 */
.empty{ text-align:center; padding:48px 24px; color:var(--ink3); font-size:13.5px; line-height:2;}

/* 底部三栏导航 */
.tabbar{
  position:fixed; left:0; right:0; bottom:0; z-index:20;
  max-width:480px; margin:0 auto; display:flex;
  background:var(--card); border-top:1px solid var(--line);
  padding:6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tab{
  flex:1; position:relative; display:flex; flex-direction:column; align-items:center; gap:2px;
  padding:6px 0 4px; color:var(--ink3); cursor:pointer; user-select:none;
}
.tab-ic{ display:flex; align-items:center; justify-content:center; width:24px; height:24px; }
.tab-ic svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.tab-tx{ font-size:11px; letter-spacing:.04em; }
.tab.on{ color:var(--accent); }
.tab.on .tab-ic{ filter:none; }
.tab-badge{
  position:absolute; top:2px; left:calc(50% + 8px); min-width:15px; height:15px; padding:0 4px;
  border-radius:8px; background:var(--accent); color:#fff; font-size:10px; font-weight:600;
  display:flex; align-items:center; justify-content:center; line-height:1;
}
.tab-badge.hide{ display:none; }

/* 底部按钮条 */
.actionbar{
  position:fixed; left:0; right:0; bottom:0; z-index:20;
  max-width:480px; margin:0 auto; padding:10px 18px calc(10px + env(safe-area-inset-bottom));
  background:linear-gradient(rgba(250,247,242,0), var(--paper) 26%);
}
.btn{
  display:block; width:100%; text-align:center; padding:13px; border-radius:11px;
  background:var(--accent); color:#fff; font-size:15px; font-weight:600; border:none;
  font-family:inherit; cursor:pointer; transition:opacity .15s;
}
.btn:active{ opacity:.82; }
.btn:disabled{ background:#cdbfb7; }
.btn.ghost{ background:transparent; color:var(--ink2); border:1px solid var(--line); font-weight:400; }
.btn.small{ padding:9px; font-size:13px; }
/* 投稿提交钮：透明底 + 描边纸飞机 + 文字，横向居中，风格与底栏栏目图标一致 */
.btn.ghost.btn-submit{
  margin-top:16px; display:flex; align-items:center; justify-content:center; gap:7px;
  color:var(--accent); border-color:#e6cfc6; font-weight:600;
}
.btn-submit svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; color:var(--accent); }
.btn-submit:disabled{ background:transparent; opacity:.5; color:var(--accent); }

/* 通用页面内容 */
.pad{ padding:16px 18px; }
.h2{ font-family:Georgia,"Songti SC",serif; font-size:19px; font-weight:600; margin:0 0 4px;}
.sub{ font-size:12.5px; color:var(--ink3); margin:0 0 16px;}
.field{
  width:100%; border:1px solid var(--line); border-radius:10px; padding:11px 13px;
  font-size:16px; font-family:inherit; color:var(--ink); background:#fff; outline:none;
}
.field:focus{ border-color:#d9c3b8; }
.field::placeholder{ font-size:14px; color:var(--ink3); }
textarea.field{ min-height:120px; resize:vertical; line-height:1.85; }
/* 出生日期三列轮盘（年 / 月 / 日）：三列并排、各自纵向滚动，中间高亮行 */
.dwl{ position:relative; display:flex; gap:4px; background:#26231f; border-radius:12px; padding:10px 6px; }
.dwl-col{ flex:1; height:180px; overflow-y:auto; scroll-snap-type:y mandatory; -webkit-overflow-scrolling:touch; text-align:center; padding:72px 0; }
.dwl-col::-webkit-scrollbar{ display:none; }
.dwl-row{ height:36px; line-height:36px; font-size:15px; color:#b9b1a3; scroll-snap-align:center; white-space:nowrap; }
.dwl-row.on{ color:#fff; font-weight:600; }
.dwl-mask{ position:absolute; left:10px; right:10px; top:50%; height:36px; transform:translateY(-50%); border-top:1px solid #5a544c; border-bottom:1px solid #5a544c; pointer-events:none; }
.field-hint{ font-size:11.5px; margin-top:5px; min-height:15px; line-height:1.5; color:var(--ink3); }
.field-hint:empty{ display:none; }
.field-hint.ok{ color:var(--green); }
.field-hint.bad{ color:var(--warn); }
.pills{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px;}
.pill{
  font-size:12.5px; border:1px solid var(--line); border-radius:16px; padding:6px 13px;
  color:var(--ink2); background:#fff; cursor:pointer; user-select:none;
}
.pill.on{ border-color:var(--accent); color:var(--accent); background:#fbf1ec;}
.label{ font-size:12px; color:var(--ink3); margin:14px 0 7px; letter-spacing:.03em; display:flex; justify-content:space-between; align-items:baseline;}
.media-count{ font-size:11px; color:var(--ink3); }
.req{ color:var(--accent); margin-left:3px; }
.counter{ font-size:11px; color:var(--ink3); text-align:right; margin-top:5px;}

.note{
  background:#fff; border:1px solid var(--line); border-left:3px solid var(--accent);
  border-radius:6px; padding:11px 13px; font-size:12.5px; color:var(--ink2); line-height:1.8; margin-top:14px;
}
.note.green{ border-left-color:var(--green); }
.note b{ color:var(--accent); }

/* 欢迎首页：三段式，品牌在上、按钮组中下部、提示框贴底，避免内容整体偏上 */
#view-auth-home{
  display:flex; flex-direction:column; height:100%;
  padding:0 18px calc(22px + env(safe-area-inset-bottom));
}
.auth-brand{ padding-top:15vh; text-align:center; }
.auth-brand .h2{ font-size:28px; letter-spacing:.08em; margin:0; }
.auth-brand .sub{ margin-top:10px; }
.auth-actions{ margin-top:auto; display:flex; flex-direction:column; gap:12px; }
.auth-note{ margin-top:auto; }

/* 账号页：登录 / 注册 / 找回之间的跳转链接 */
.auth-links{ display:flex; justify-content:space-between; gap:12px; margin-top:14px; font-size:12.5px; }
.auth-links span{ color:var(--accent); cursor:pointer; }
.auth-links span:only-child{ margin-left:auto; }

/* 我的投稿 */
.mrow{
  background:var(--card); border:1px solid var(--line); border-radius:10px;
  padding:12px 13px; margin-bottom:10px;
}
.mrow .st{ font-size:12px; margin-bottom:6px; font-weight:600;}
.st.approved{ color:var(--accent);} .st.published{ color:var(--green);}
.st.rejected{ color:var(--warn);} .st.pending,.st.flagged{ color:var(--ink3);}
.mrow .bd{ font-size:13.5px; color:#403d37; line-height:1.8; }
.mrow .rs{ font-size:11.5px; color:var(--warn); margin-top:7px; line-height:1.7;}
.mrow .ft{ font-size:11px; color:var(--ink3); margin-top:8px; display:flex; gap:10px;}

/* 回音 */
/* 回音：评论流式布局（头像左置，右侧昵称/时间一行、正文一行） */
.reply{
  display:flex; gap:10px; margin-bottom:14px;
  font-size:13.5px; color:#4a463f; line-height:1.7;
}
.reply-avatar{
  flex:0 0 32px; width:32px; height:32px; border-radius:50%;
  object-fit:cover; background:#f1e7db;
}
.reply-main{ flex:1; min-width:0; }
.reply-head{ display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; }
.reply .who{ font-size:12.5px; font-weight:600; color:var(--accent); min-width:0; }
.reply .rn{ font-size:11px; color:var(--ink3); opacity:.85; }
.reply .rb{ word-break:break-word; margin-top:2px; font-size:14px; color:var(--ink); }
.reply .reply-to{ color:var(--ink2); }
.reply-actions{ display:flex; align-items:center; gap:16px; margin-top:5px; }
.ra-btn{ border:none; background:transparent; padding:3px 5px; font-size:11.5px; cursor:pointer; font-family:inherit; border-radius:6px; }
.ra-btn[data-reply]{ color:var(--accent); font-weight:600; }
.ra-btn[data-rep-r]{ color:var(--ink2); font-weight:600; }
.ra-btn[data-del]{ color:var(--ink3); }
.ra-btn:active{ background:var(--accent-soft); }
.rlike-btn{
  margin-left:auto;
  border:none; background:transparent; padding:0; display:inline-flex; align-items:center; gap:4px;
  font-size:11.5px; color:var(--ink3); cursor:pointer; font-family:inherit;
}
.rlike-btn svg{ width:15px; height:15px; fill:currentColor; }
.rlike-btn i{ font-style:normal; }
.rlike-btn.on{ color:var(--accent); }
/* 两级平铺：后代回复昵称对齐父级昵称下方，不再逐层累加右移；子级整体缩小一级 */
.reply-sub-list{ margin-top:2px; }
.reply-sub{ margin-left:24px; margin-top:10px; gap:8px; }
.reply-sub .reply-avatar{ flex:0 0 24px; width:24px; height:24px; }
.reply-sub .who{ font-size:11.5px; }
.reply-sub .rn{ font-size:10.5px; }
.reply-sub .rb{ font-size:13px; color:var(--ink); }
.reply-sub .reply-sub{ margin-left:0; }
/* 底部悬浮输入条：主回音 / 楼中楼回复共用，跟随键盘显隐 */
.reply-dock{
  position:fixed; left:0; right:0; z-index:125;
  max-width:480px; margin:0 auto;
  background:var(--card); border-top:1px solid var(--line);
  padding:10px 13px calc(10px + env(safe-area-inset-bottom));
  opacity:0; transition:opacity .18s ease;
  pointer-events:none;
}
.reply-dock.show{ opacity:1; pointer-events:auto; }
.reply-row{ display:flex; gap:8px; align-items:center; }
.reply-row .field-wrap{ flex:1; }
.reply-row .field{ min-height:38px; }
.reply-row textarea.field{ min-height:42px; height:auto; max-height:120px; resize:none; line-height:1.5; overflow-y:auto; word-break:break-word; padding:9px 44px 9px 13px; }
.reply-row .btn{ flex:0 0 auto; width:auto; padding:9px 15px; }
.reply-toggle{
  display:block; width:100%; margin:2px 0 10px; padding:9px 0;
  border:1px dashed var(--line); border-radius:8px; background:transparent;
  color:var(--accent); font-size:12.5px; font-family:inherit; cursor:pointer;
}
.reply-toggle:active{ background:var(--accent-soft); }
.reply-extra.hide{ display:none; }
.reply-sub-extra.hide{ display:none; }
.reply-sub-toggle{ margin-left:24px; width:auto; padding-left:0; padding-right:0; }

/* 详情页新回音提示条（轮询发现更新、且正在打字时挂出） */
.poll-notice{
  display:block; width:100%; margin:4px 0 10px; padding:10px 12px;
  border:1px solid #eed9cf; border-radius:10px; background:var(--accent-soft);
  color:var(--accent); font-size:12.5px; font-family:inherit; cursor:pointer; text-align:center;
}
.poll-notice:active{ background:#f3ddd4; }
.poll-notice.hide{ display:none; }

/* 详情点赞区：昵称可省略，右侧总数固定不收缩 */
.like-names{ flex:1 1 auto; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:11.5px; color:var(--ink3); margin-left:2px; line-height:1.5; }
.like-count{ flex:0 0 auto; font-size:11.5px; color:var(--ink3); line-height:1.5; }

/* 输入框包裹 + 表情按钮 */
.field-wrap{ position:relative; }
.field-wrap textarea.field, .field-wrap input.field{ width:100%; }
.emoji-btn{
  position:absolute; right:10px; bottom:10px; border:none; background:transparent;
  font-size:18px; cursor:pointer; padding:4px; line-height:1; opacity:.75;
}
.emoji-btn:active{ opacity:1; }
.emoji-btn.inline{ position:static; flex:0 0 auto; align-self:center; padding:4px 7px; font-size:20px; }
.field-count{
  position:absolute; right:11px; bottom:8px; font-size:11px; line-height:1;
  color:var(--ink3); pointer-events:none; user-select:none;
}

/* 全局 emoji 面板：与输入法互斥，打开时收起键盘，贴合输入条上方 */
.emoji-panel{
  position:fixed; left:12px; right:12px; bottom:12px; z-index:120;
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  box-shadow:0 6px 24px rgba(90,80,60,.18); padding:8px 12px 10px;
  display:flex; flex-direction:column; gap:6px;
  max-height:42vh;
}
.emoji-panel.dock-mode{ bottom:calc(58px + env(safe-area-inset-bottom)); }
.emoji-head{ display:flex; align-items:center; justify-content:space-between; padding:2px 2px 0; }
.emoji-title{ font-size:11.5px; color:var(--ink3); }
.emoji-close{ border:1px solid #e8c9bd; background:var(--accent-soft); color:var(--accent); font-size:12px; font-weight:600; cursor:pointer; padding:6px 12px; line-height:1; border-radius:8px; display:inline-flex; align-items:center; gap:3px; }
.emoji-close:active{ background:#f3ddd3; }
.emoji-grid{ display:grid; grid-template-columns:repeat(8,1fr); gap:4px; overflow-y:auto; -webkit-overflow-scrolling:touch; min-height:0; }
.emoji-item{
  border:none; background:transparent; font-size:22px; padding:6px 0; cursor:pointer;
  border-radius:8px; line-height:1;
}
.emoji-item:active{ background:var(--accent-soft); }

/* 通知 */
.nrow{ padding:11px 0; border-bottom:1px solid #f1ece2; font-size:13px;}
.nrow:last-child{ border-bottom:none;}
.nrow .t{ font-weight:600; margin-bottom:2px;}
.nrow .b{ color:var(--ink3); font-size:12px;}
.nrow .nt{ margin-top:3px; font-size:10.5px; color:var(--ink3); opacity:.8;}
.nrow.link{ cursor:pointer; border-radius:8px; }
.nrow.link:active{ background:var(--accent-soft); }
.nrow.unread{ background:#fdf6f2; border-radius:8px; padding-left:8px; padding-right:8px; }
.nrow.unread .t::before{ content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--accent); margin-right:6px; vertical-align:1px; }

/* 已读合集（折叠） */
.read-archive{ margin-top:14px; }
.read-archive-head{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--ink2); padding:9px 2px; border-top:1px solid var(--line); }
.read-list .nrow{ opacity:.82; }
.read-more{ text-align:center; font-size:12px; color:var(--accent); padding:10px 2px 4px; cursor:pointer; }
.read-more:active{ opacity:.7; }
.read-extra .nrow{ opacity:.82; }

/* 折叠/隐藏 */
.hide{ display:none !important; }

.media-wrap{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px;}
.img-add{
  width:76px; height:76px; border:1px dashed var(--line); border-radius:8px;
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--ink3); background:#fff; cursor:pointer;
}
.img-add-plus{ font-size:30px; line-height:1; font-weight:300; }
.img-add:active{ background:var(--accent-soft); }
.thumb-wrap{ position:relative; display:inline-block; }
.thumb{ width:76px; height:76px; border-radius:8px; object-fit:cover; border:1px solid var(--line);}
.thumb-del{
  position:absolute; top:-7px; right:-7px; width:20px; height:20px; border-radius:50%;
  border:1px solid var(--line); background:#fff; color:var(--accent);
  font-size:14px; line-height:18px; cursor:pointer; padding:0;
}
.voice{ margin-top:10px; width:100%; }
/* 我的禧喜日 · 统计格 */
.mstat{ display:flex; gap:8px; margin:0 0 14px; }
.mstat .cell{ flex:1; text-align:center; background:var(--card); border:1px solid var(--line); border-radius:9px; padding:9px 4px; cursor:pointer; }
.mstat .cell.on{ border-color:var(--accent); background:#fbf1ec; }
.mstat .v{ font-family:Georgia,serif; font-size:17px; font-weight:600; color:var(--accent); line-height:1.3; }
.mstat .k{ font-size:10.5px; color:var(--ink3); letter-spacing:.04em; margin-top:1px; }

/* 我的投稿卡片：墙上的坐标 */
.mrow .pos{ font-size:11px; color:var(--accent); letter-spacing:.03em; margin-bottom:6px; }
.mrow .ft .sp{ margin-left:auto; }
.mrow .ops{ display:flex; gap:8px; margin-top:9px; }
.mrow .ops > *{ font-size:11.5px; padding:5px 11px; border:1px solid var(--line); border-radius:14px; color:var(--ink2); background:#fff; cursor:pointer; }
.mrow .ops > *.pri{ border-color:var(--accent); color:var(--accent); background:#fbf1ec; }
.hint{ font-size:11px; color:var(--ink3); text-align:center; margin-top:7px; line-height:1.7; }

/* 备案号公示（合规要求，首页/我的页底部） */
.beian{ text-align:center; padding:20px 18px 12px; font-size:11px; color:var(--ink3); line-height:1.8; }
.beian a{ color:var(--ink3); text-decoration:none; }
.beian a:hover{ color:var(--accent); }
/* 我的页已在 .pad 内有 18px 左右边距，不再二次缩进 */
.pad .beian{ padding-left:0; padding-right:0; }
.logout-row{ margin-top:26px; }
.logout-row .btn{ color:var(--accent); }

/* 我的禧喜日 · 身份行（昵称 + 改昵称入口） */
.idrow{ display:flex; align-items:center; gap:10px; margin:0 0 12px; }
.idrow-who{ flex:1 1 auto; min-width:0; overflow:hidden; }
.idrow-name{
  font-size:16px; font-weight:600; color:var(--ink);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.idrow-sub{ font-size:11px; color:var(--ink3); margin-top:1px; }
.idrow .mini-btn{
  flex:0 0 auto; white-space:nowrap;
  font-family:inherit; font-size:11.5px; padding:4px 12px; cursor:pointer;
  border:1px solid var(--line); background:#fff; border-radius:14px; color:var(--accent);
}

/* 我的主页：圆形头像 + 资料行 */
.me-avatar{
  flex:0 0 auto; width:52px; height:52px; border-radius:50%;
  background:#fff; border:1px solid var(--line); overflow:hidden;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.me-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.idrow-meta{ font-size:11.5px; color:var(--ink2); margin-top:2px; }
.idrow-acts{ flex:0 0 auto; display:flex; flex-direction:column; gap:6px; align-items:flex-end; }

/* 头像选择网格（注册页 / 更换头像弹层共用） */
.avatar-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.avatar-cell{
  aspect-ratio:1/1; border-radius:50%; overflow:hidden; background:#fff;
  border:1.5px solid var(--line); cursor:pointer; position:relative;
}
.avatar-cell img{ width:100%; height:100%; object-fit:cover; display:block; }
.avatar-cell.on{ border-color:var(--accent); box-shadow:0 0 0 2px var(--accent-soft); }
.ov-picker{ max-height:52vh; overflow:auto; -webkit-overflow-scrolling:touch; padding:2px; }

/* 换学校入口（我的禧喜日页头下面那一条） */
/* 换学校弹层里的学校列表 */
.ov-school{ width:100%; max-height:52vh; overflow:auto; }
.ov-school .srow{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16); border-radius:10px;
  padding:11px 13px; margin-bottom:8px; cursor:pointer; color:#f1ece3;
}
.ov-school .srow .n{ font-size:14px; }
.ov-school .srow .m{ font-size:11px; color:#b7ae9f; margin-top:3px; }
.ov-school .srow.on{ border-color:var(--accent); }
.ov-school .srow.off{ opacity:.45; }

/* 我的禧喜日 · 按学校分段（转学的人会有两段） */
.mgroup{ margin-bottom:18px; }.mgh{ display:flex; align-items:baseline; gap:8px; margin:0 0 9px; padding-bottom:7px; border-bottom:1px solid var(--line); }
.mgh .n{ font-family:Georgia,"Songti SC",serif; font-size:14px; color:var(--ink); letter-spacing:.03em; }
.mgh .past{ font-size:10.5px; color:var(--ink3); border:1px solid var(--line); background:#faf7f2; border-radius:10px; padding:1px 7px; }
.mgh .c{ margin-left:auto; font-size:10.5px; color:var(--ink3); }
/* 旧校那段：整段降一档亮度，让人一眼看出「这里回不去了」 */
.mrow.readonly{ background:#fbf8f2; border-style:dashed; }
.mrow .bd.gone{ color:#a8a29a; text-decoration:line-through; text-decoration-color:#d8d1c6; }
.mrow .rs.sg{ color:#3d6b4a; }
.st.removed{ color:var(--ink3); }

/* 图片预览遮罩（分享图 / 导出长图） */
.ov{ position:fixed; inset:0; z-index:80; background:rgba(30,28,26,.96); display:flex; align-items:center; justify-content:center; padding:18px; }
.ov-in{ width:100%; max-width:420px; max-height:100%; display:flex; flex-direction:column; }
.ov-tip{ color:#e8e1d4; font-size:12px; text-align:center; margin-bottom:10px; line-height:1.7; }
.ov-imgwrap{ flex:1; min-height:0; overflow:auto; -webkit-overflow-scrolling:touch; border-radius:10px; text-align:center; }
.ov-imgwrap img{ width:100%; display:block; border-radius:10px; }
.ov-acts{ display:flex; gap:8px; margin-top:12px; }
.ov-acts .btn{ background:var(--accent); }
.ov-acts .btn.ghost{ background:transparent; color:#ddd5c8; border-color:#5a544c; }
#ovLightbox{ cursor:zoom-out; }
.lb-layer{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); max-width:92vw; max-height:92vh; object-fit:contain; border-radius:10px; opacity:0; pointer-events:none; will-change:transform; transition:opacity .28s ease-out, transform .28s cubic-bezier(.22,.61,.36,1); }
.lb-layer.lb-on{ opacity:1; pointer-events:auto; }
.lb-layer.lb-drag{ transition:none !important; }
#lbCount{ position:absolute; bottom:26px; left:50%; transform:translateX(-50%); color:#e8e1d4; font-size:13px; letter-spacing:.08em; }
.thumb-lb{ cursor:zoom-in; }

/* ============ 通用确认 / 输入弹窗 ============ */
.dlg-mask{
  position:fixed; inset:0; z-index:130; background:rgba(43,42,40,.48);
  display:flex; align-items:center; justify-content:center; padding:24px;
}
.dlg{
  width:100%; max-width:320px; background:var(--card); border-radius:16px;
  padding:22px 20px 18px; box-shadow:0 12px 34px rgba(43,42,40,.24);
  animation:dlg-in .18s ease;
}
@keyframes dlg-in{ from{ transform:scale(.94); opacity:0; } to{ transform:scale(1); opacity:1; } }
.dlg-title{ font-size:16px; font-weight:600; color:var(--ink); text-align:center; }
.dlg-msg{ font-size:13.5px; color:var(--ink2); line-height:1.7; text-align:center; margin-top:9px; }
.dlg-input-wrap{ margin-top:15px; }
.dlg-input{
  width:100%; box-sizing:border-box; border:1px solid var(--line); border-radius:10px;
  padding:11px 13px; font-size:15px; font-family:inherit; color:var(--ink); background:#fff; outline:none;
}
.dlg-input:focus{ border-color:var(--accent); }
.dlg-actions{ display:flex; gap:10px; margin-top:19px; }
.dlg-actions .btn{ flex:1; width:auto; padding:11px; }
.dlg-actions .btn.danger{ background:var(--accent); }

.toast{
  position:fixed; left:50%; bottom:96px; transform:translateX(-50%);
  background:rgba(43,42,40,.92); color:#fff; font-size:13px; padding:9px 16px; border-radius:20px;
  z-index:99; opacity:0; transition:opacity .26s; pointer-events:none;
}
.toast.show{ opacity:1;}

/* ============ 轻量过渡动效（短促 200–260ms，不拖节奏） ============ */
@keyframes view-in {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes ov-fade {
  from { opacity:0; }
  to   { opacity:1; }
}
@keyframes ov-pop {
  from { opacity:0; transform:translateY(6px) scale(.96); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
/* 主视图进入：淡入 + 轻微上移 */
[id^="view-"]:not(.hide){ animation:view-in .24s cubic-bezier(.22,.61,.36,1); }

/* 弹层：遮罩淡入，内容轻微上浮缩放 */
.ov:not(.hide){ animation:ov-fade .24s ease-out; }
.ov:not(.hide) .ov-in{ animation:ov-pop .24s cubic-bezier(.22,.61,.36,1); }
