/* =========================================================
   嗯行论坛 动态版 - 全站补充样式
   基于复刻站 theme.css 的 CSS 变量，自动适配亮/暗主题
   ========================================================= */
a { color: var(--yh-link); text-decoration: none; }
body { background: var(--yh-bg); color: var(--yh-text); }

/* ---------- 头部 / 提示条 ---------- */
.yh-back { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; margin-right:6px; color:var(--yh-text-2); font-size:20px; flex:0 0 auto; }
.yh-header-sub { margin-left:8px; font-size:13px; color:var(--yh-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.yh-mini-link { font-size:13px; color:var(--yh-text-2); white-space:nowrap; padding:4px 2px; }
.yh-mini-link:hover { color:var(--yh-primary); }
.yh-mini-user { display:inline-flex; align-items:center; gap:4px; font-size:13px; color:var(--yh-primary); max-width:100px; overflow:hidden; white-space:nowrap; }
.yh-mini-user span { overflow:hidden; text-overflow:ellipsis; }
.yh-notice { margin:8px 12px 0; padding:9px 12px; border-radius:9px; background:var(--yh-primary-soft); color:var(--yh-primary); font-size:12.5px; display:flex; gap:7px; align-items:flex-start; }
.yh-notice span { flex:1; line-height:1.5; }
.yh-flash { margin:10px 12px 0; padding:10px 13px; border-radius:9px; font-size:13px; display:flex; gap:7px; align-items:center; }
.yh-flash-ok { background:rgba(46,158,107,.12); color:#2e9e6b; }
.yh-flash-err { background:rgba(229,72,77,.12); color:var(--yh-danger); }
.yh-footer { margin:26px 12px 18px; text-align:center; font-size:11px; color:var(--yh-muted-2); line-height:1.9; display:flex; flex-direction:column; gap:2px; }

/* ---------- 通用卡片 / 标题 ---------- */
.yh-card { background:var(--yh-card); border:1px solid var(--yh-border); border-radius:12px; padding:16px; box-shadow:var(--yh-shadow); }
.yh-section-title { display:flex; align-items:center; justify-content:space-between; font-size:17px; font-weight:700; margin:20px 2px 12px; color:var(--yh-text); }
.yh-section-title .more { font-size:12px; font-weight:400; color:var(--yh-muted); }
.yh-empty { text-align:center; padding:38px 16px; color:var(--yh-muted); font-size:13px; background:var(--yh-card); border-radius:12px; border:1px dashed var(--yh-border-2); }
.yh-empty i { font-size:28px; display:block; margin-bottom:8px; opacity:.6; }

/* ---------- 首页：统计 / 板块 ---------- */
.yh-stats { display:flex; gap:10px; margin-bottom:4px; }
.yh-stat { flex:1; background:var(--yh-card); border:1px solid var(--yh-border); border-radius:11px; padding:12px 6px; text-align:center; }
.yh-stat b { display:block; font-size:19px; color:var(--yh-primary); line-height:1.3; }
.yh-stat span { font-size:11px; color:var(--yh-muted); }
.board-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.board-card { display:flex; align-items:center; gap:11px; background:var(--yh-card); border:1px solid var(--yh-border); border-radius:11px; padding:12px; transition:transform .15s,box-shadow .15s; min-width:0; }
.board-card:hover { transform:translateY(-2px); box-shadow:0 4px 14px rgba(0,0,0,.09); }
.board-ico { flex:0 0 auto; width:40px; height:40px; border-radius:50%; background:var(--yh-primary-soft); display:flex; align-items:center; justify-content:center; font-size:20px; }
.board-txt { min-width:0; }
.board-txt strong { display:block; font-size:14px; font-weight:600; color:var(--yh-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.board-txt small { display:block; font-size:11px; color:var(--yh-muted); margin-top:3px; }
@media (max-width:380px) { .board-grid { grid-template-columns:1fr; } }

/* ---------- 帖子列表 ---------- */
.topic-list { background:var(--yh-card); border:1px solid var(--yh-border); border-radius:12px; overflow:hidden; }
.topic-item { display:flex; gap:11px; padding:13px 14px; border-bottom:1px solid var(--yh-border); }
.topic-item:last-child { border-bottom:0; }
.topic-item:hover { background:var(--yh-card-2); }
.topic-main { flex:1; min-width:0; }
.topic-title { font-size:14.5px; line-height:1.5; margin-bottom:6px; word-break:break-word; }
.topic-title a { color:var(--yh-text); font-weight:600; }
.topic-title a:hover { color:var(--yh-primary); }
.topic-meta { display:flex; flex-wrap:wrap; gap:6px 10px; font-size:11.5px; color:var(--yh-muted); align-items:center; }
.topic-meta a { color:var(--yh-text-2); }
.topic-excerpt { font-size:12px; color:var(--yh-muted); margin:5px 0 0; line-height:1.5; }
.yh-badge { display:inline-block; font-size:10.5px; line-height:1.5; padding:0 6px; border-radius:4px; font-weight:400; white-space:nowrap; }
.yh-badge.top { background:rgba(229,72,77,.13); color:#e5484d; }
.yh-badge.essence { background:rgba(217,148,60,.16); color:#c9822c; }
.yh-badge.board { background:var(--yh-primary-soft); color:var(--yh-primary); }
.yh-badge.locked { background:rgba(120,130,140,.15); color:var(--yh-muted); }

/* ---------- 表单 ---------- */
.yh-form { max-width:640px; margin:0 auto; }
.yh-field { margin-bottom:16px; }
.yh-label { display:block; font-size:13px; font-weight:600; margin-bottom:6px; color:var(--yh-text-2); }
.yh-input, .yh-select, .yh-textarea { width:100%; padding:10px 12px; border:1px solid var(--yh-border-2); border-radius:9px; font-size:14px; outline:none; background:var(--yh-card-2); color:var(--yh-text); font-family:inherit; box-sizing:border-box; }
.yh-input:focus, .yh-select:focus, .yh-textarea:focus { border-color:var(--yh-primary); box-shadow:0 0 0 3px var(--yh-primary-soft); }
.yh-textarea { min-height:150px; resize:vertical; line-height:1.7; }
.yh-tip { font-size:11.5px; color:var(--yh-muted); margin-top:5px; line-height:1.6; }
.yh-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 20px; border:0; border-radius:9px; font-size:14px; cursor:pointer; font-family:inherit; background:var(--yh-primary); color:#fff; }
.yh-btn:hover { background:var(--yh-primary-hover); }
.yh-btn.ghost { background:var(--yh-primary-soft); color:var(--yh-primary); }
.yh-btn.gray { background:var(--yh-card-3); color:var(--yh-text-2); }
.yh-btn.danger { background:var(--yh-danger); }
.yh-btn.small { padding:6px 12px; font-size:12px; border-radius:7px; }
.yh-btn-block { width:100%; }
.yh-auth-links { text-align:center; margin-top:18px; font-size:13px; color:var(--yh-muted); }
.yh-auth-links a { color:var(--yh-primary); }
.yh-err { background:rgba(229,72,77,.1); color:var(--yh-danger); border:1px solid rgba(229,72,77,.25); padding:10px 13px; border-radius:9px; font-size:13px; margin-bottom:14px; }
.yh-required { color:var(--yh-danger); }

/* ---------- 分页 ---------- */
.yh-pager { display:flex; flex-wrap:wrap; gap:6px; align-items:center; justify-content:center; margin:18px 0 6px; }
.yh-pager a, .yh-pager .cur { display:inline-flex; align-items:center; justify-content:center; min-width:32px; height:32px; padding:0 9px; border-radius:8px; font-size:13px; background:var(--yh-card); border:1px solid var(--yh-border); color:var(--yh-text-2); }
.yh-pager a:hover { border-color:var(--yh-primary); color:var(--yh-primary); }
.yh-pager .cur { background:var(--yh-primary); color:#fff; border-color:var(--yh-primary); }
.yh-pager-info { font-size:11.5px; color:var(--yh-muted); margin-left:6px; }

/* ---------- 头像 / 用户 ---------- */
.yh-avatar { border-radius:50%; object-fit:cover; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.yh-avatar-txt { color:#fff; font-size:15px; font-weight:600; }
.yh-profile { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.yh-profile .info { min-width:0; }
.yh-profile .info h3 { margin:0 0 5px; font-size:18px; color:var(--yh-text); }
.yh-profile .info p { margin:0; font-size:12px; color:var(--yh-muted); line-height:1.7; }
.yh-stat-row { display:flex; gap:8px; margin-top:12px; }
.yh-stat-row div { flex:1; text-align:center; background:var(--yh-card-2); border-radius:9px; padding:10px 4px; }
.yh-stat-row b { display:block; color:var(--yh-primary); font-size:16px; }
.yh-stat-row span { font-size:11px; color:var(--yh-muted); }

/* ---------- UBB 渲染内容 ---------- */
.ubb-body { font-size:14.5px; line-height:1.85; color:var(--yh-text); word-break:break-word; overflow-wrap:anywhere; }
.ubb-body a { color:var(--yh-link); text-decoration:underline; }
.ubb-body img.ubb-img { max-width:100%; height:auto; border-radius:8px; display:block; margin:8px 0; }
.ubb-body .ubb-quote { margin:8px 0; padding:9px 12px; background:var(--yh-card-3); border-left:3px solid var(--yh-primary); border-radius:0 8px 8px 0; color:var(--yh-text-2); font-size:13.5px; }
.ubb-body .ubb-quote-by { display:block; font-size:12px; color:var(--yh-primary); margin-bottom:4px; }
.ubb-body .ubb-code { margin:8px 0; padding:11px 13px; background:var(--yh-card-3); border:1px solid var(--yh-border); border-radius:8px; overflow-x:auto; font:12.5px/1.6 Consolas,Monaco,monospace; color:var(--yh-text-2); white-space:pre-wrap; }
.ubb-body .ubb-list { margin:6px 0; padding-left:22px; }
.ubb-body .ubb-audio, .ubb-body .ubb-video { width:100%; max-width:100%; margin:8px 0; border-radius:8px; }
.ubb-body .ubb-size-1 { font-size:12px; } .ubb-body .ubb-size-2 { font-size:13.5px; }
.ubb-body .ubb-size-3 { font-size:16px; } .ubb-body .ubb-size-4 { font-size:19px; } .ubb-body .ubb-size-5 { font-size:23px; }
.ubb-body .ubb-invalid { color:var(--yh-danger); font-size:12px; }
.ubb-emoji { vertical-align:middle; }

/* ---------- 编辑器（复用 post.css 的 .ubb-* 结构） ---------- */
.post-view { background:transparent; }
.post-view .ubb-editor { margin:0; }
.post-view .ubb-toolbar { gap:1px; padding:6px 5px; overflow-x:auto; -webkit-overflow-scrolling:touch; flex-wrap:nowrap; }
.post-view .ubb-toolbar::-webkit-scrollbar { height:0; }
.post-view .ubb-toolbar button { width:30px; height:30px; flex:0 0 30px; }
.post-view .ubb-sep { margin:0 3px; }
.post-view .ubb-popover, .post-view .ubb-dialog { top:46px; }
.post-view .ubb-popover { left:6px; }
.post-view .ubb-dialog { left:6px; right:6px; }
.post-view .emoji-cell svg { width:100%; height:100%; }
.post-view .retextarea { min-height:130px; }
.post-view .ubb-editor textarea { box-sizing:border-box; }
.post-view .kuaisuhuifu .reply-submit-btn { background:var(--yh-primary); color:#fff; border:0; padding:9px 24px; border-radius:9px; font-size:14px; cursor:pointer; font-family:inherit; }
.post-view .kuaisuhuifu .reply-submit-btn:hover { background:var(--yh-primary-hover); }
.post-view #replyActions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 2px 2px; }
.post-view .ubb-editor-upload { display:none; }
.post-view #popEmotion { max-height:230px; overflow-y:auto; }
.post-view .kuaisuhuifu { display:inline-block; flex:0 0 auto; }
.post-view .ubb-editor .centered-container { margin:8px 0 0; }
.ubb-tip { font-size:11.5px; color:var(--yh-muted); margin:6px 2px 0; }

/* ---------- 帖子详情 ---------- */
.yh-post-head { padding:16px; border-bottom:1px solid var(--yh-border); }
.yh-post-head h1 { margin:0 0 10px; font-size:19px; line-height:1.5; color:var(--yh-text); word-break:break-word; }
.yh-post-head .meta { display:flex; align-items:center; flex-wrap:wrap; gap:10px; font-size:12px; color:var(--yh-muted); }
.yh-author { display:flex; align-items:center; gap:10px; padding:14px 16px; }
.yh-author .n { font-size:14px; font-weight:600; color:var(--yh-text); }
.yh-author .s { font-size:11.5px; color:var(--yh-muted); margin-top:3px; }
.yh-floor { padding:14px 16px; border-bottom:1px solid var(--yh-border); }
.yh-floor:last-child { border-bottom:0; }
.yh-floor-head { display:flex; align-items:center; gap:9px; margin-bottom:9px; }
.yh-floor-head .nm { font-size:13.5px; font-weight:600; color:var(--yh-primary); }
.yh-floor-head .fl { margin-left:auto; font-size:11.5px; color:var(--yh-muted); }
.yh-floor .ubb-body { padding-left:2px; }
.yh-floor-actions { margin-top:9px; display:flex; gap:14px; font-size:12px; }
.yh-floor-actions a { color:var(--yh-muted); }
.yh-floor-actions a:hover { color:var(--yh-primary); }
.yh-quote-box { background:var(--yh-card-3); border-left:3px solid var(--yh-primary); padding:7px 10px; font-size:12px; color:var(--yh-text-2); border-radius:0 6px 6px 0; margin-bottom:8px; }
.yh-post-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:14px 0; }
.yh-post-bar .yh-badge { font-size:12px; padding:2px 9px; }
.reward-dialog { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:200; display:none; align-items:center; justify-content:center; padding:20px; }
.reward-dialog.show { display:flex; }
.reward-box { background:var(--yh-card); border-radius:14px; padding:20px; width:100%; max-width:340px; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.reward-box h3 { margin:0 0 12px; font-size:16px; }
.reward-opts { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.reward-opts label { flex:1; min-width:60px; text-align:center; border:1px solid var(--yh-border-2); border-radius:8px; padding:8px 4px; cursor:pointer; font-size:13px; }
.reward-opts input { display:none; }
.reward-opts input:checked + span { color:var(--yh-primary); font-weight:700; }
.reward-opts label:has(input:checked) { border-color:var(--yh-primary); background:var(--yh-primary-soft); }
.reward-actions { display:flex; gap:8px; }
.reward-actions .yh-btn { flex:1; }

/* 帖子顶部快捷导航：打赏 / 新帖 / 管理 / 设置 */
.yh-post-quicknav { display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:10px 16px; border-bottom:1px solid var(--yh-border); font-size:14px; }
.yh-post-quicknav a, .yh-post-quicknav button { color:var(--yh-primary); text-decoration:none; cursor:pointer; background:none; border:0; padding:0; font-size:14px; font-family:inherit; }
.yh-post-quicknav a:hover, .yh-post-quicknav button:hover { text-decoration:underline; }

/* 论坛设置弹窗 */
.fs-dialog { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:300; display:none; align-items:center; justify-content:center; padding:20px; }
.fs-dialog.show { display:flex; }
.fs-box { background:var(--yh-card); border-radius:14px; width:100%; max-width:360px; box-shadow:0 20px 60px rgba(0,0,0,.32); overflow:hidden; }
.fs-head { position:relative; text-align:center; padding:14px; font-size:16px; font-weight:700; color:var(--yh-text); background:var(--yh-card-2); border-bottom:1px solid var(--yh-border); }
.fs-close { position:absolute; right:12px; top:12px; width:24px; height:24px; border:0; background:var(--yh-card-3); color:var(--yh-text-2); border-radius:6px; cursor:pointer; font-size:16px; line-height:24px; }
.fs-body { padding:6px 16px; }
.fs-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 0; border-bottom:1px solid var(--yh-border); font-size:14px; color:var(--yh-text); }
.fs-row:last-child { border-bottom:0; }
.fs-switch { position:relative; width:46px; height:26px; flex:0 0 46px; }
.fs-switch input { position:absolute; opacity:0; width:0; height:0; }
.fs-slider { position:absolute; inset:0; background:var(--yh-card-3); border-radius:26px; cursor:pointer; transition:background .2s; }
.fs-slider:before { content:""; position:absolute; width:20px; height:20px; left:3px; top:3px; background:#fff; border-radius:50%; transition:transform .2s; box-shadow:0 1px 3px rgba(0,0,0,.2); }
.fs-switch input:checked + .fs-slider { background:var(--yh-primary); }
.fs-switch input:checked + .fs-slider:before { transform:translateX(20px); }
.fs-seg { display:flex; border:1px solid var(--yh-border-2); border-radius:8px; overflow:hidden; }
.fs-seg button { border:0; background:var(--yh-card-2); color:var(--yh-text-2); padding:6px 11px; font-size:13px; cursor:pointer; font-family:inherit; }
.fs-seg button + button { border-left:1px solid var(--yh-border-2); }
.fs-seg button.on { background:var(--yh-primary-soft); color:var(--yh-primary); font-weight:700; }
.fs-save { display:block; width:100%; margin:14px 0 18px; padding:12px; border:0; border-radius:9px; background:var(--yh-primary); color:#fff; font-size:15px; font-weight:700; cursor:pointer; font-family:inherit; }
.fs-save:hover { background:var(--yh-primary-hover); }
/* 右下角浮动齿轮设置入口 */
#fsFab { position:fixed; right:14px; bottom:86px; z-index:150; width:44px; height:44px; border-radius:50%; border:1px solid var(--yh-border-2); background:var(--yh-card); color:var(--yh-primary); box-shadow:0 2px 10px rgba(0,0,0,.18); display:flex; align-items:center; justify-content:center; cursor:pointer; opacity:.92; }
#fsFab:hover { opacity:1; }
html.yh-theme-dark #fsFab { background:#2c2c2c; color:#8fd4d4; border-color:#454545; }

/* 勋章显示：全部模式下展开 */
.yh-medals { display:flex; gap:3px; flex-wrap:wrap; margin-top:3px; }
.yh-medals .m { font-size:15px; line-height:1; }
.yh-medals .m.extra { display:none; }
.show-all-medals .yh-medals .m.extra { display:inline; }

/* 隐藏吃肉：隐藏被标记的楼层内容 */
.hide-meat .yh-meat { display:none; }
/* 回帖引用关闭：隐藏楼层引用/定位操作条 */
.no-quote .yh-floor-actions { display:none; }
/* 新版回帖关闭：回复框更紧凑 */
.classic-reply .post-view .retextarea { min-height:80px; }

/* ===== 动态表情：内联 SVG span + CSS 动画（离线自包含） ===== */
.ubb-emoji { display:inline-flex; align-items:center; justify-content:center; width:1.35em; height:1.35em; min-width:18px; min-height:18px; vertical-align:middle; }
.ubb-emoji svg { width:100%; height:100%; display:block; }
.emoji-cell .ubb-emoji { width:100%; height:100%; min-width:0; min-height:0; }
/* 面板分类 tab */
.emoji-tabs { display:flex; gap:4px; flex-wrap:nowrap; padding:10px 8px 4px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.emoji-tabs::-webkit-scrollbar { height:0; }
.emoji-tab { flex:1 0 auto; white-space:nowrap; border:1px solid var(--yh-border-2); background:var(--yh-card-2); color:var(--yh-text-2); border-radius:16px; padding:5px 9px; font-size:12px; cursor:pointer; font-family:inherit; line-height:1.4; }
.emoji-tab.active { background:var(--yh-primary); color:#fff; border-color:var(--yh-primary); }
.emoji-tab:hover:not(.active) { border-color:var(--yh-primary); color:var(--yh-primary); }
/* 动画 */
@keyframes yhEmoShake { 0%,100%{transform:rotate(0)} 20%{transform:rotate(-10deg)} 40%{transform:rotate(9deg)} 60%{transform:rotate(-6deg)} 80%{transform:rotate(4deg)} }
@keyframes yhEmoWiggle { 0%,100%{transform:translateX(0) rotate(0)} 25%{transform:translateX(-3px) rotate(-6deg)} 75%{transform:translateX(3px) rotate(6deg)} }
@keyframes yhEmoBounce { 0%,100%{transform:translateY(0) scale(1)} 30%{transform:translateY(-5px) scale(1.06)} 55%{transform:translateY(0) scale(.96)} 75%{transform:translateY(-2px) scale(1.02)} }
@keyframes yhEmoRot { 0%,100%{transform:rotate(0)} 50%{transform:rotate(360deg)} }
@keyframes yhEmoNod { 0%,100%{transform:rotate(0)} 30%{transform:rotate(-12deg)} 70%{transform:rotate(12deg)} }
@keyframes yhEmoBlink { 0%,92%,100%{transform:scaleY(1)} 96%{transform:scaleY(.12)} }
.emo-anim-shake svg  { animation:yhEmoShake 1.2s ease-in-out infinite; transform-origin:50% 65%; }
.emo-anim-wiggle svg { animation:yhEmoWiggle .9s ease-in-out infinite; transform-origin:50% 65%; }
.emo-anim-bounce svg { animation:yhEmoBounce 1.1s ease-in-out infinite; }
.emo-anim-rot svg    { animation:yhEmoRot 3.5s linear infinite; }
.emo-anim-nod svg    { animation:yhEmoNod 1s ease-in-out infinite; transform-origin:50% 70%; }
.emo-anim-blink svg  { animation:yhEmoBlink 3s ease-in-out infinite; transform-origin:50% 50%; }
@media (prefers-reduced-motion: reduce) { .ubb-emoji svg { animation:none!important; } }

/* ===== 论坛勋章墙 ===== */
.medal-hero { position:relative; overflow:hidden; display:flex; align-items:center; gap:14px; }
.medal-hero-icon { width:54px; height:54px; flex:0 0 54px; border-radius:14px; background:linear-gradient(135deg,#ffd95e,#e8a72c); color:#fff; display:flex; align-items:center; justify-content:center; font-size:28px; box-shadow:0 4px 12px rgba(232,167,44,.3); }
.medal-hero .info h3 { margin:0 0 4px; font-size:17px; color:var(--yh-text); }
.medal-hero .info p { margin:0; font-size:12.5px; color:var(--yh-muted); }
.medal-hero .info b { color:var(--yh-primary); font-size:15px; }
.medal-hero-progress { position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--yh-card-3); }
.medal-hero-progress span { display:block; height:100%; background:linear-gradient(90deg,#e8a72c,#ffd95e); transition:width .4s; }
.medal-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
@media (min-width:560px){ .medal-grid { grid-template-columns:repeat(4,1fr); } }
.medal-card { background:var(--yh-card); border:1px solid var(--yh-border); border-radius:12px; padding:16px 10px 12px; text-align:center; box-shadow:var(--yh-shadow); }
.medal-card.locked { filter:grayscale(.4); opacity:.72; }
.medal-icon { display:flex; align-items:center; justify-content:center; height:52px; margin-bottom:8px; }
.medal-name { font-size:14px; font-weight:700; color:var(--yh-text); margin-bottom:4px; }
.medal-desc { font-size:11.5px; color:var(--yh-muted); line-height:1.5; min-height:34px; }
.medal-cond { margin-top:8px; font-size:11px; }
.medal-card.got .medal-cond { color:var(--yh-primary); }
.medal-card.locked .medal-cond { color:var(--yh-muted-2); }
.medal-tip { margin-top:16px; }

/* 我的地盘快捷导航（勋章入口） */
.yh-quicknav { display:flex; gap:16px; flex-wrap:wrap; padding:12px 14px; margin-bottom:12px; background:var(--yh-card); border:1px solid var(--yh-border); border-radius:12px; }
.yh-quicknav a { color:var(--yh-muted); font-size:13.5px; text-decoration:none; white-space:nowrap; display:inline-flex; align-items:center; gap:4px; }
.yh-quicknav a i { font-size:15px; }
.yh-quicknav a:hover, .yh-quicknav a.on { color:var(--yh-primary); }

/* 用户勋章徽标（帖子页/个人主页，统一缩小 SVG） */
.yh-user-medals .m, .yh-user-medals > span { display:inline-flex; }
.yh-user-medals svg { width:22px; height:24px; }

/* ===== 每日签到 ===== */
.checkin-hero { text-align:center; padding:22px 16px; }
.checkin-hero-top { display:flex; align-items:center; justify-content:center; gap:12px; text-align:left; }
.checkin-calendar-icon { width:48px; height:48px; border-radius:14px; background:linear-gradient(135deg,#378D8D,#2aa9a0); color:#fff; display:flex; align-items:center; justify-content:center; font-size:26px; flex:0 0 48px; }
.checkin-hero-top h3 { margin:0 0 3px; font-size:18px; color:var(--yh-text); }
.checkin-hero-top p { margin:0; font-size:12.5px; color:var(--yh-muted); }
.checkin-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin:20px 0 18px; }
.checkin-stats > div { display:flex; flex-direction:column; gap:3px; }
.checkin-stats b { font-size:19px; color:var(--yh-primary); }
.checkin-stats span { font-size:11.5px; color:var(--yh-muted); }
.checkin-btn { width:100%; max-width:280px; margin:0 auto; font-size:15px; padding:12px; }
.checkin-btn.signed { opacity:.65; }
.checkin-rules { padding:4px 14px; }
.checkin-rule { display:flex; align-items:center; gap:10px; padding:12px 0; font-size:13.5px; border-bottom:1px solid var(--yh-border); }
.checkin-rule:last-child { border-bottom:0; }
.checkin-rule i { color:var(--yh-primary); font-size:18px; }
.checkin-rule span { flex:1; color:var(--yh-text); }
.checkin-rule b { color:var(--yh-primary); font-size:13px; }
.checkin-cal { padding:14px; }
.cal-week, .cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.cal-week span { text-align:center; font-size:12px; color:var(--yh-muted); padding-bottom:6px; }
.cal-cell { position:relative; aspect-ratio:1; display:flex; align-items:center; justify-content:center; font-size:12.5px; color:var(--yh-text); border-radius:8px; background:var(--yh-card-2); }
.cal-cell.blank { background:transparent; }
.cal-cell.signed { background:var(--yh-primary); color:#fff; font-weight:600; }
.cal-cell.signed i { position:absolute; right:2px; bottom:1px; font-size:10px; }
.cal-cell.today { outline:2px solid var(--yh-primary); outline-offset:-2px; }
.cal-cell.signed.today { outline-color:var(--yh-text); }
.cal-legend { display:flex; gap:16px; margin-top:12px; font-size:11.5px; color:var(--yh-muted); }
.cal-legend span { display:inline-flex; align-items:center; gap:5px; }
.dot { width:10px; height:10px; border-radius:3px; display:inline-block; }
.dot.signed { background:var(--yh-primary); }
.dot.today { background:transparent; border:2px solid var(--yh-primary); }
.checkin-records { padding:4px 14px; }
.checkin-record { display:flex; align-items:center; gap:10px; padding:11px 0; font-size:13px; border-bottom:1px solid var(--yh-border); }
.checkin-record:last-child { border-bottom:0; }
.checkin-record span:first-child { color:var(--yh-text); flex:1; }
.checkin-record span:nth-child(2) { color:var(--yh-muted); font-size:12px; }
.checkin-record b { color:var(--yh-primary); }
