@charset "utf-8";
/* ==========================================================================
   瑞曜·墨影  ryrm  ·  Discuz! X3.5 电脑端模板
   设计层样式 —— 在 Discuz 基础样式之后加载，覆盖全局观感
   ========================================================================== */

:root{
  --ink:#141417;
  --ink-2:#3c3b41;
  --muted:#85828b;
  --line:#e8e2da;
  --line-2:#f1ede7;
  --paper:#f5f2ed;
  --card:#ffffff;
  --accent:#cf3a52;
  --accent-dk:#a62a3e;
  --gold:#b78a52;
  --radius:14px;
  --shadow:0 2px 10px rgba(20,18,16,.05);
  --shadow-h:0 18px 40px -18px rgba(20,18,16,.38);
  --wrap:1240px;
  --font-sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Source Han Sans SC","Noto Sans SC",sans-serif;
  --font-serif:"Songti SC","Source Han Serif SC","Noto Serif SC","STSong","SimSun",serif;
}

/* ---------- 基础重置 ---------- */
html{-webkit-text-size-adjust:100%;}
body.ryrm-body{
  margin:0;padding:0;
  background:var(--paper);
  color:var(--ink);
  font:14px/1.75 var(--font-sans);
  letter-spacing:.1px;
  -webkit-font-smoothing:antialiased;
}
.ryrm-body *{box-sizing:border-box;}
.ryrm-body img{max-width:100%;vertical-align:middle;border:0;}
.ryrm-body a{color:var(--ink-2);text-decoration:none;transition:color .18s;}
.ryrm-body a:hover{color:var(--accent);}
.ryrm-body ul,.ryrm-body ol,.ryrm-body li{margin:0;padding:0;list-style:none;}
.ryrm-body h1,.ryrm-body h2,.ryrm-body h3,.ryrm-body h4{margin:0;font-weight:600;}
.ryrm-body p{margin:0;}
.ryrm-body input,.ryrm-body button,.ryrm-body textarea,.ryrm-body select{font-family:inherit;font-size:14px;outline:none;}
.ryrm-body table{border-collapse:collapse;border-spacing:0;}

/* 容器：兼容 Discuz 默认模板的 .wp / #wp */
.ryrm-body .wp{width:min(var(--wrap),94vw);margin:0 auto;}
.ryrm-body #wp{width:min(var(--wrap),94vw);margin:0 auto;padding:0;}
.ryrm-body .cl::after{content:"";display:table;clear:both;}

/* 隐藏默认模板里不想要的旧结构（若存在） */
.ryrm-body #hd,.ryrm-body #nv{display:none;}

/* ==========================================================================
   1. 顶条
   ========================================================================== */
.ryrm-top{
  background:#191a1e;color:#a9a6ad;font-size:12.5px;
  height:38px;line-height:38px;overflow:hidden;
}
.ryrm-top .wp{display:flex;align-items:center;justify-content:space-between;}
.ryrm-top a{color:#a9a6ad;}
.ryrm-top a:hover{color:#fff;}
.ryrm-top b{color:#fff;font-weight:600;}
.ryrm-top .rt-l{display:flex;gap:18px;white-space:nowrap;}
.ryrm-top .rt-l em{font-style:normal;color:#6f6c76;margin-right:4px;}
.ryrm-top .rt-r{display:flex;gap:16px;align-items:center;}
.ryrm-top .rt-r .pill{
  padding:0 12px;height:22px;line-height:22px;border-radius:11px;
  background:var(--accent);color:#fff;font-size:12px;
}
.ryrm-top .rt-r .pill:hover{background:var(--accent-dk);color:#fff;}

/* ==========================================================================
   2. 主头部
   ========================================================================== */
.ryrm-head{
  position:sticky;top:0;z-index:900;
  background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .25s,background .25s;
}
.ryrm-head.is-stuck{box-shadow:0 8px 26px -14px rgba(20,18,16,.35);}
.ryrm-head .wp{height:74px;display:flex;align-items:center;gap:26px;}

/* logo */
.ryrm-logo{display:flex;align-items:center;gap:10px;flex:none;}
.ryrm-logo .mark{
  width:38px;height:38px;border-radius:11px;flex:none;
  background:linear-gradient(140deg,var(--accent),#8e2136);
  color:#fff;font:600 17px/38px var(--font-serif);text-align:center;
  box-shadow:0 6px 16px -6px rgba(207,58,82,.7);
}
.ryrm-logo .txt{display:flex;flex-direction:column;line-height:1.15;}
.ryrm-logo .txt b{font:600 19px/1.2 var(--font-serif);letter-spacing:2px;color:var(--ink);}
.ryrm-logo .txt s{text-decoration:none;font-size:10.5px;letter-spacing:2.4px;color:var(--muted);text-transform:uppercase;}

/* 主导航 */
.ryrm-nav{display:flex;align-items:center;gap:2px;flex:1;min-width:0;}
.ryrm-nav>li{position:relative;}
.ryrm-nav>li>a{
  display:block;padding:0 14px;height:74px;line-height:74px;
  font-size:15px;color:var(--ink-2);white-space:nowrap;
}
.ryrm-nav>li>a::after{
  content:"";position:absolute;left:50%;bottom:20px;width:0;height:2px;
  background:var(--accent);transition:width .22s,left .22s;
}
.ryrm-nav>li:hover>a,.ryrm-nav>li.cur>a{color:var(--accent);}
.ryrm-nav>li:hover>a::after,.ryrm-nav>li.cur>a::after{width:18px;left:calc(50% - 9px);}

/* 版块下拉 */
.ryrm-nav .drop{
  position:absolute;top:74px;left:0;min-width:520px;
  background:#fff;border:1px solid var(--line);border-radius:12px;
  box-shadow:0 24px 48px -24px rgba(20,18,16,.45);
  padding:16px 6px 6px;display:none;
  grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 8px;
}
.ryrm-nav li.has-drop:hover .drop{display:grid;animation:fadeUp .18s ease;}
@keyframes fadeUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.ryrm-nav .drop a{display:flex;justify-content:space-between;gap:10px;padding:7px 12px;border-radius:8px;font-size:13.5px;}
.ryrm-nav .drop a:hover{background:var(--line-2);color:var(--accent);}
.ryrm-nav .drop a span{color:var(--muted);font-size:12px;}

/* 搜索 */
.ryrm-search{display:flex;align-items:center;gap:10px;flex:none;}
.ryrm-search form{
  display:flex;align-items:center;height:40px;width:238px;
  background:var(--line-2);border-radius:20px;padding:0 6px 0 15px;
  transition:background .2s,box-shadow .2s;
}
.ryrm-search form:focus-within{background:#fff;box-shadow:0 0 0 2px rgba(207,58,82,.18);}
.ryrm-search input[type=text]{
  flex:1;min-width:0;border:0;background:none;height:38px;color:var(--ink);
}
.ryrm-search input[type=text]::placeholder{color:var(--muted);}
.ryrm-search button{
  width:30px;height:30px;border:0;border-radius:50%;cursor:pointer;
  background:none;color:var(--muted);font-size:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%2385828b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;
  transition:background-color .2s;
}
.ryrm-search button:hover{background-color:rgba(207,58,82,.1);}

/* 用户区 */
.ryrm-user{display:flex;align-items:center;gap:12px;flex:none;font-size:13px;}
.ryrm-user .av{width:36px;height:36px;border-radius:50%;object-fit:cover;border:1px solid var(--line);}
.ryrm-user .nm{display:flex;flex-direction:column;line-height:1.25;}
.ryrm-user .nm b{font-size:13px;color:var(--ink);font-weight:600;}
.ryrm-user .nm i{font-style:normal;font-size:11px;color:var(--muted);}
.ryrm-user .lnk{padding:0 4px;color:var(--ink-2);}
.ryrm-user .btn-login{
  height:36px;line-height:34px;padding:0 20px;border-radius:18px;
  border:1px solid var(--accent);color:var(--accent);font-size:13.5px;
}
.ryrm-user .btn-login:hover{background:var(--accent);color:#fff;}
.ryrm-user .btn-reg{
  height:36px;line-height:36px;padding:0 20px;border-radius:18px;
  background:var(--accent);color:#fff;font-size:13.5px;
}
.ryrm-user .btn-reg:hover{background:var(--accent-dk);color:#fff;}

/* ==========================================================================
   3. 通用区块
   ========================================================================== */
.ryrm-main{padding:34px 0 10px;}

.r-sec{margin-bottom:46px;}
.r-sec-hd{display:flex;align-items:center;gap:14px;margin-bottom:22px;}
.r-sec-hd .num{
  font:600 13px/1 var(--font-sans);color:var(--accent);
  padding:5px 9px;border-radius:6px;background:rgba(207,58,82,.08);
  letter-spacing:1px;
}
.r-sec-hd h2{
  font:600 24px/1.2 var(--font-serif);letter-spacing:3px;color:var(--ink);
  position:relative;white-space:nowrap;
}
.r-sec-hd h2 small{
  font:400 11px/1 var(--font-sans);letter-spacing:2.4px;color:var(--muted);
  text-transform:uppercase;margin-left:10px;vertical-align:2px;
}
.r-sec-hd .wave{
  flex:1;height:10px;opacity:.85;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10'%3E%3Cpath d='M0 5Q15 0 30 5T60 5T90 5T120 5' fill='none' stroke='%23d8cec2' stroke-width='1.3'/%3E%3C/svg%3E")
             repeat-x left center/120px 10px;
}
.r-sec-hd .more{
  flex:none;font-size:12.5px;color:var(--muted);letter-spacing:.5px;
  display:inline-flex;align-items:center;gap:5px;
}
.r-sec-hd .more:hover{color:var(--accent);}
.r-sec-hd .more::after{content:"›";font-size:17px;line-height:1;transform:translateY(-1px);}

/* 卡片通用 */
.r-card{
  display:block;background:var(--card);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow);
  transition:transform .3s cubic-bezier(.2,.7,.3,1),box-shadow .3s;
}
.r-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-h);}
.r-card .thumb{position:relative;display:block;overflow:hidden;background:var(--line-2);}
.r-card .thumb img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .5s cubic-bezier(.2,.7,.3,1);
}
.r-card:hover .thumb img{transform:scale(1.055);}
.r-card .thumb .ph{
  display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;color:#fff;font:600 15px/1.4 var(--font-serif);
  letter-spacing:3px;text-align:center;padding:0 14px;
  background:linear-gradient(140deg,#b8aca0,#8d8074);
}
.r-card .cat{
  position:absolute;left:12px;top:12px;
  padding:3px 10px;border-radius:20px;font-size:11.5px;
  background:rgba(20,18,16,.62);color:#fff;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  letter-spacing:.5px;
}
.r-card .body{padding:15px 16px 17px;}
.r-card .meta{
  display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--muted);
  margin-bottom:9px;
}
.r-card .meta img{width:22px;height:22px;border-radius:50%;object-fit:cover;}
.r-card .meta .nm{color:var(--ink-2);}
.r-card .meta .dot{width:3px;height:3px;border-radius:50%;background:#c9c4bc;}
.r-card h3{
  font:600 15.5px/1.55 var(--font-sans);color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:48px;
}
.r-card:hover h3{color:var(--accent);}
.r-card .desc{
  margin-top:8px;font-size:12.5px;line-height:1.7;color:var(--muted);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.r-card .foot{
  margin-top:11px;padding-top:10px;border-top:1px dashed var(--line);
  display:flex;align-items:center;gap:14px;font-size:11.5px;color:var(--muted);
}
.r-card .foot em{font-style:normal;}
.r-card .foot b{color:var(--ink-2);font-weight:600;}

/* 入场动效 */
.rv{opacity:1;transform:none;}
.js-anim .rv{opacity:0;transform:translateY(18px);}
.js-anim .rv.in{opacity:1;transform:none;transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.3,1);}

/* ==========================================================================
   4. 首屏瀑布
   ========================================================================== */
.r-hero{
  display:block;position:relative;margin-bottom:44px;
  background:#fff;border-radius:22px;overflow:hidden;
  box-shadow:0 30px 60px -40px rgba(20,18,16,.5);
  border:1px solid var(--line);
}
.r-hero .hero-inner{padding:30px 30px 34px;}
.r-hero .hero-top{
  display:flex;align-items:flex-end;justify-content:space-between;gap:20px;
  margin-bottom:22px;flex-wrap:wrap;
}
.r-hero .hero-top h1{
  font:600 27px/1.35 var(--font-serif);letter-spacing:2px;color:var(--ink);
}
.r-hero .hero-top h1 span{color:var(--accent);}
.r-hero .hero-top p{font-size:12.5px;color:var(--muted);margin-top:7px;letter-spacing:.4px;}
.r-hero .hero-tabs{display:flex;gap:8px;}
.r-hero .hero-tabs a{
  padding:6px 15px;border-radius:16px;font-size:12.5px;
  border:1px solid var(--line);color:var(--ink-2);background:#fff;
}
.r-hero .hero-tabs a:hover{border-color:var(--accent);color:var(--accent);}

/* 瀑布流：CSS 多列，天然等高错落 */
.r-flow{column-count:3;column-gap:22px;}
.r-flow>.r-card{break-inside:avoid;margin:0 0 22px;display:inline-block;width:100%;}
.r-flow .thumb{height:190px;}
.r-flow .r-card:nth-child(3n+2) .thumb{height:236px;}
.r-flow .r-card:nth-child(3n+3) .thumb{height:206px;}

/* ==========================================================================
   5. 图文分栏（最新文章 / 精彩回顾）
   ========================================================================== */
.r-split{display:grid;grid-template-columns:1.05fr .95fr;gap:26px;align-items:start;}
.r-split.rev{grid-template-columns:.95fr 1.05fr;}
.r-split.rev .sp-main{order:2;}
.r-split.rev .sp-side{order:1;}

/* 主卡（大图） */
.r-feature{
  display:block;background:#fff;border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow);transition:transform .3s,box-shadow .3s;
}
.r-feature:hover{transform:translateY(-4px);box-shadow:var(--shadow-h);}
.r-feature .thumb{height:342px;overflow:hidden;position:relative;}
.r-feature .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .6s;}
.r-feature:hover .thumb img{transform:scale(1.05);}
.r-feature .body{padding:20px 22px 22px;}
.r-feature h3{font:600 20px/1.5 var(--font-serif);letter-spacing:1px;}
.r-feature:hover h3{color:var(--accent);}
.r-feature .desc{
  margin-top:9px;font-size:13px;line-height:1.8;color:var(--muted);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.r-feature .meta{
  margin-top:14px;padding-top:12px;border-top:1px dashed var(--line);
  display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);
}
.r-feature .meta img{width:26px;height:26px;border-radius:50%;}

/* 侧栏列表 */
.r-list{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:6px 0;}
.r-list>li+li{border-top:1px solid var(--line-2);}
.r-list>li>a{
  display:flex;gap:14px;padding:14px 18px;align-items:center;
}
.r-list>li>a:hover{background:#fcfaf7;}
.r-list .th{width:96px;height:70px;flex:none;border-radius:9px;overflow:hidden;background:var(--line-2);}
.r-list .th img{width:100%;height:100%;object-fit:cover;transition:transform .5s;}
.r-list>li>a:hover .th img{transform:scale(1.08);}
.r-list .tx{flex:1;min-width:0;}
.r-list .tx h4{
  font:600 14px/1.6 var(--font-sans);color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.r-list>li>a:hover .tx h4{color:var(--accent);}
.r-list .tx p{margin-top:6px;font-size:11.5px;color:var(--muted);display:flex;gap:10px;}
.r-list .tx p i{font-style:normal;color:var(--accent);}

/* ==========================================================================
   6. 三栏推荐（站长推荐）
   ========================================================================== */
.r-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
.r-grid3 .thumb{height:168px;}

/* 分页点 */
.r-dots{display:flex;justify-content:center;gap:8px;margin-top:24px;}
.r-dots button{
  width:24px;height:5px;border:0;border-radius:3px;cursor:pointer;
  background:#d5cec5;padding:0;transition:background .2s,width .2s;
}
.r-dots button.on{background:var(--accent);width:34px;}

/* ==========================================================================
   7. 排行榜（精华文章）
   ========================================================================== */
.r-rank{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:8px 0;}
.r-rank>li{display:flex;gap:16px;padding:15px 22px;align-items:center;}
.r-rank>li+li{border-top:1px solid var(--line-2);}
.r-rank .no{
  font:600 26px/1 var(--font-serif);color:#e2dbd2;width:38px;flex:none;
  text-align:center;font-style:italic;
}
.r-rank>li:nth-child(1) .no{color:var(--accent);}
.r-rank>li:nth-child(2) .no{color:#d99a4e;}
.r-rank>li:nth-child(3) .no{color:var(--gold);}
.r-rank .tx{flex:1;min-width:0;}
.r-rank .tx a{font:600 14.5px/1.6 var(--font-sans);color:var(--ink);display:block;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.r-rank .tx a:hover{color:var(--accent);}
.r-rank .tx p{margin-top:5px;font-size:11.5px;color:var(--muted);display:flex;align-items:center;gap:8px;}
.r-rank .tx p img{width:20px;height:20px;border-radius:50%;}
.r-rank .hot{flex:none;font-size:11.5px;color:var(--muted);text-align:right;}
.r-rank .hot b{display:block;color:var(--accent);font:600 14px/1.4 var(--font-sans);}

/* ==========================================================================
   8. 版块卡片（推荐栏目 / 论坛首页）
   ========================================================================== */
.r-cats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;}
.r-cat{
  display:block;background:#fff;border-radius:12px;padding:18px;
  border:1px solid var(--line);transition:border-color .2s,transform .2s,box-shadow .2s;
}
.r-cat:hover{border-color:rgba(207,58,82,.45);transform:translateY(-3px);box-shadow:var(--shadow-h);}
.r-cat .ic{
  width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  font:600 17px/1 var(--font-serif);color:#fff;margin-bottom:12px;
  background:linear-gradient(140deg,#c9beb2,#9c9083);
}
.r-cat:nth-child(4n+1) .ic{background:linear-gradient(140deg,#e0748a,#b6374f);}
.r-cat:nth-child(4n+2) .ic{background:linear-gradient(140deg,#d3a86a,#a07a3c);}
.r-cat:nth-child(4n+3) .ic{background:linear-gradient(140deg,#7d9aa8,#4a6c7c);}
.r-cat:nth-child(4n+4) .ic{background:linear-gradient(140deg,#a89a86,#6f6455);}
.r-cat h4{font:600 15px/1.4 var(--font-sans);color:var(--ink);}
.r-cat p{margin-top:6px;font-size:11.5px;color:var(--muted);line-height:1.7;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px;}
.r-cat .st{margin-top:10px;padding-top:9px;border-top:1px dashed var(--line);
  display:flex;gap:14px;font-size:11.5px;color:var(--muted);}
.r-cat .st b{color:var(--ink-2);font-weight:600;}

/* ==========================================================================
   9. 标签云
   ========================================================================== */
.r-tags{display:flex;flex-wrap:wrap;gap:10px;}
.r-tags a{
  padding:6px 15px;border-radius:18px;background:#fff;border:1px solid var(--line);
  font-size:12.5px;color:var(--ink-2);transition:.2s;
}
.r-tags a:hover{background:var(--accent);border-color:var(--accent);color:#fff;}
.r-tags a em{font-style:normal;color:var(--muted);margin-left:5px;font-size:11px;}
.r-tags a:hover em{color:rgba(255,255,255,.75);}

/* ==========================================================================
   10. 友情链接
   ========================================================================== */
.r-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.r-links a{
  display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);
  border-radius:12px;padding:13px 15px;transition:.2s;
}
.r-links a:hover{border-color:rgba(207,58,82,.4);background:#fffdfc;}
.r-links img{width:34px;height:34px;border-radius:8px;object-fit:contain;flex:none;}
.r-links .nx{min-width:0;}
.r-links .nx b{display:block;font:600 13px/1.4 var(--font-sans);color:var(--ink);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.r-links .nx s{text-decoration:none;font-size:11px;color:var(--muted);
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* 纯文字链接兜底 */
.r-links-text{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:12.5px;color:var(--muted);}
.r-links-text a{color:var(--muted);}
.r-links-text a:hover{color:var(--accent);}

/* ==========================================================================
   11. 页脚
   ========================================================================== */
.ryrm-foot{background:#17181c;color:#8f8c95;margin-top:50px;font-size:12.5px;}
.ryrm-foot .f-top{padding:44px 0 34px;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:34px;}
.ryrm-foot h5{margin:0 0 14px;font:600 13px/1.4 var(--font-sans);color:#e6e3e8;letter-spacing:1.4px;}
.ryrm-foot .f-brand .mark{
  width:44px;height:44px;border-radius:13px;margin-bottom:14px;
  background:linear-gradient(140deg,var(--accent),#8e2136);
  color:#fff;font:600 19px/44px var(--font-serif);text-align:center;
}
.ryrm-foot .f-brand p{line-height:1.9;max-width:330px;}
.ryrm-foot .f-col a{display:block;padding:4px 0;color:#8f8c95;}
.ryrm-foot .f-col a:hover{color:#fff;}
.ryrm-foot .f-bar{
  border-top:1px solid rgba(255,255,255,.08);padding:18px 0;
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#6f6c76;
}
.ryrm-foot .f-bar a{color:#6f6c76;}
.ryrm-foot .f-bar a:hover{color:#fff;}
.ryrm-foot .f-bar .cnt{display:flex;gap:14px;flex-wrap:wrap;}

/* 返回顶部 */
.ryrm-topbtn{
  position:fixed;right:26px;bottom:34px;z-index:800;
  width:46px;height:46px;border-radius:50%;border:0;cursor:pointer;
  background:#fff;color:var(--ink);box-shadow:0 12px 30px -10px rgba(20,18,16,.45);
  font-size:0;opacity:0;visibility:hidden;transform:translateY(10px);
  transition:.28s;
}
.ryrm-topbtn::before{
  content:"";position:absolute;inset:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23141417' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") no-repeat center;
}
.ryrm-topbtn.show{opacity:1;visibility:visible;transform:none;}
.ryrm-topbtn:hover{background:var(--accent);}
.ryrm-topbtn:hover::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E");
}

/* ==========================================================================
   12. 兼容 Discuz 默认模板内页（版块页 / 帖子页 / 列表页）
   ========================================================================== */
.ryrm-body #ct{padding:24px 0;}
.ryrm-body .bm{border:1px solid var(--line);background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;}
.ryrm-body .bm_h{background:#fff;border-bottom:1px solid var(--line);padding:13px 18px;line-height:1.6;}
.ryrm-body .bm_h h2,.ryrm-body .bm_h h1{font:600 16px/1.5 var(--font-sans);display:inline;}
.ryrm-body .bm_c{padding:18px;}
.ryrm-body .bm_h .xs2,.ryrm-body .bm_h a{font-size:12.5px;color:var(--muted);}

/* 版块列表表格 */
.ryrm-body .fl_tb{width:100%;}
.ryrm-body .fl_tb td{border-bottom:1px solid var(--line-2);padding:14px 16px;vertical-align:middle;}
.ryrm-body .fl_tb tr:last-child td{border-bottom:0;}
.ryrm-body .fl_tb .fl_icn img{border-radius:10px;max-width:60px;}
.ryrm-body .fl_tb h2{font-size:15px;font-weight:600;}
.ryrm-body .fl_tb h2 a{color:var(--ink);}
.ryrm-body .fl_tb h2 a:hover{color:var(--accent);}
.ryrm-body .fl_tb .fl_i{text-align:center;font-size:12.5px;color:var(--muted);white-space:nowrap;}
.ryrm-body .fl_tb .fl_by{font-size:12.5px;color:var(--muted);}
.ryrm-body .fl_tb .fl_by a{color:var(--ink-2);}
.ryrm-body .fl_tb .fl_by a:hover{color:var(--accent);}
.ryrm-body .fl_tb .fl_by cite{font-style:normal;display:block;font-size:11.5px;color:var(--muted);margin-top:4px;}

/* 按钮 / 分页 */
.ryrm-body .pg{border:0;padding:22px 0;text-align:center;}
.ryrm-body .pg a,.ryrm-body .pg strong,.ryrm-body .pg label{
  display:inline-block;min-width:34px;height:34px;line-height:34px;padding:0 10px;margin:0 3px;
  border-radius:9px;background:#fff;border:1px solid var(--line);font-size:13px;color:var(--ink-2);
}
.ryrm-body .pg strong{background:var(--accent);border-color:var(--accent);color:#fff;}
.ryrm-body .pg a:hover{border-color:var(--accent);color:var(--accent);}

.ryrm-body .btn,.ryrm-body .pn,.ryrm-body .pnv{border-radius:9px;}
.ryrm-body .pn:not(.colorwd){height:34px;line-height:32px;padding:0 16px;border:1px solid var(--line);
  background:#fff;color:var(--ink-2);display:inline-block;font-size:13px;}
.ryrm-body .pn:hover{border-color:var(--accent);color:var(--accent);}
.ryrm-body .pn.v{background:var(--accent);border-color:var(--accent);color:#fff;}

/* 帖子页 */
.ryrm-body .t_f{font:400 15px/1.95 var(--font-sans);color:var(--ink-2);}
.ryrm-body .t_f img{border-radius:10px;margin:8px 0;}
.ryrm-body .pl{border-bottom:1px solid var(--line-2);}
.ryrm-body .pi{font-size:12.5px;color:var(--muted);padding:10px 0;}
.ryrm-body .authi{font-size:12px;color:var(--muted);}
.ryrm-body .authi a{color:var(--ink-2);}
.ryrm-body .avt img{border-radius:50%;}
.ryrm-body .tbmu{background:#fbf9f6;border-radius:10px;}

/* 提醒 / 提示框 */
.ryrm-body .alert_error,.ryrm-body .alert_info,.ryrm-body .alert_right{
  border-radius:10px;padding:12px 16px;font-size:13px;border:1px solid var(--line);
  background:#fff9f9;
}
.ryrm-body .alert_info{background:#f7f7fa;}
.ryrm-body .alert_right{background:#f4faf5;}

/* 表单 */
.ryrm-body input[type=text],.ryrm-body input[type=password],.ryrm-body input[type=email],
.ryrm-body textarea,.ryrm-body select{
  border:1px solid var(--line);border-radius:9px;padding:8px 12px;background:#fff;color:var(--ink);
  transition:border-color .2s,box-shadow .2s;
}
.ryrm-body input[type=text]:focus,.ryrm-body input[type=password]:focus,
.ryrm-body textarea:focus,.ryrm-body select:focus{
  border-color:var(--accent);box-shadow:0 0 0 3px rgba(207,58,82,.12);
}
.ryrm-body button,.ryrm-body input[type=submit],.ryrm-body input[type=button]{
  cursor:pointer;
}

/* 面包屑 */
.ryrm-body #pt{font-size:12.5px;color:var(--muted);padding:0 0 14px;}
.ryrm-body #pt a{color:var(--muted);}
.ryrm-body #pt a:hover{color:var(--accent);}
.ryrm-body #pt em{font-style:normal;margin:0 7px;color:#c9c3bb;}

/* ==========================================================================
   13. 响应式（PC 为主，兼顾窄屏）
   ========================================================================== */
@media (max-width:1180px){
  .r-flow{column-count:2;}
  .r-grid3{grid-template-columns:repeat(2,minmax(0,1fr));}
  .r-cats{grid-template-columns:repeat(3,minmax(0,1fr));}
  .r-links{grid-template-columns:repeat(3,minmax(0,1fr));}
  .ryrm-search form{width:180px;}
}
@media (max-width:980px){
  .r-split,.r-split.rev{grid-template-columns:1fr;}
  .r-split.rev .sp-main,.r-split.rev .sp-side{order:0;}
  .ryrm-head .wp{height:auto;flex-wrap:wrap;padding:10px 0;gap:12px;}
  .ryrm-nav{order:3;width:100%;overflow-x:auto;}
  .ryrm-nav>li>a{height:44px;line-height:44px;padding:0 12px;}
  .ryrm-nav>li>a::after{bottom:4px;}
  .ryrm-nav .drop{top:44px;}
  .ryrm-foot .f-top{grid-template-columns:1fr 1fr;}
  .r-cats,.r-links{grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* ==========================================================================
   14. 版块清单 / 侧栏卡片（论坛首页）
   ========================================================================== */
.r-flist{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;}
.r-flist>li{display:flex;align-items:center;gap:16px;padding:16px 20px;transition:background .2s;}
.r-flist>li+li{border-top:1px solid var(--line-2);}
.r-flist>li:hover{background:#fcfaf7;}
.r-flist .fic{
  width:48px;height:48px;border-radius:13px;flex:none;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  font:600 18px/1 var(--font-serif);color:#fff;
  background:linear-gradient(140deg,#c9beb2,#9c9083);
}
.r-flist img.fic{object-fit:cover;}
.r-flist .fmain{flex:1;min-width:0;}
.r-flist .fmain h3{font-size:15.5px;font-weight:600;}
.r-flist .fmain h3 a{color:var(--ink);}
.r-flist .fmain h3 a:hover{color:var(--accent);}
.r-flist .fmain p{
  margin-top:4px;font-size:12px;color:var(--muted);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.r-flist .fnum{flex:none;width:92px;text-align:right;font-size:11.5px;color:var(--muted);
  font-variant-numeric:tabular-nums;}
.r-flist .fnum b{display:block;font:600 15px/1.45 var(--font-sans);color:var(--ink);}
.r-flist .flast{flex:none;width:246px;font-size:12px;color:var(--muted);overflow:hidden;}
.r-flist .flast a{
  color:var(--ink-2);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.r-flist .flast a:hover{color:var(--accent);}
.r-flist .flast cite{font-style:normal;font-size:11.5px;color:var(--muted);}

/* 分区标题 */
.r-group-hd{
  display:flex;align-items:center;gap:12px;margin:26px 0 14px;
}
.r-group-hd:first-child{margin-top:0;}
.r-group-hd b{
  font:600 17px/1.3 var(--font-serif);letter-spacing:2px;color:var(--ink);
}
.r-group-hd i{flex:1;height:1px;background:var(--line);}
.r-group-hd span{font-size:11.5px;color:var(--muted);}

/* 侧栏卡片 */
.r-box{
  background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);
  padding:18px 20px;margin-bottom:20px;
}
.r-box h4{
  font:600 15px/1.4 var(--font-serif);letter-spacing:1.6px;margin-bottom:12px;
  padding-bottom:10px;border-bottom:1px solid var(--line-2);color:var(--ink);
}
.r-box .kv{display:flex;flex-wrap:wrap;}
.r-box .kv>div{width:50%;font-size:11.5px;color:var(--muted);margin-bottom:10px;}
.r-box .kv b{display:block;font:600 18px/1.5 var(--font-sans);color:var(--ink);}

/* 侧栏热帖 */
.r-hot>li{display:flex;gap:9px;padding:8px 0;font-size:13px;align-items:baseline;}
.r-hot>li+li{border-top:1px solid var(--line-2);}
.r-hot>li i{
  font-style:normal;color:#d8d1c7;font:600 13px/1 var(--font-serif);
  width:16px;flex:none;text-align:center;
}
.r-hot>li:nth-child(1) i,.r-hot>li:nth-child(2) i,.r-hot>li:nth-child(3) i{color:var(--accent);}
.r-hot>li a{
  flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-2);
}
.r-hot>li a:hover{color:var(--accent);}
.r-hot>li em{font-style:normal;font-size:11px;color:var(--muted);flex:none;}

/* 通告条 */
.r-notice{
  background:#fff;color:var(--ink-2);
  border-radius:12px;border:1px solid var(--line);border-left:3px solid var(--accent);
  padding:12px 18px;font-size:12.5px;line-height:1.7;
  display:flex;align-items:center;gap:12px;margin-bottom:22px;
}
.r-notice b{
  flex:none;color:var(--accent);font:600 12px/1 var(--font-sans);letter-spacing:1px;
  padding:4px 8px;border-radius:6px;background:rgba(207,58,82,.09);
}
.r-notice a{color:var(--accent);}

/* 通配小圆点 */
.ryrm-body .dot{
  width:3px;height:3px;border-radius:50%;background:#c9c4bc;
  display:inline-block;flex:none;vertical-align:middle;
}

/* 带侧栏的两栏 */
.r-split.side{grid-template-columns:minmax(0,1fr) 336px;align-items:start;}
@media (max-width:980px){
  .r-split.side{grid-template-columns:1fr;}
}

/* 侧栏说明文字 / 按钮 / 空状态 / 小号标签 */
.r-box .r-tip{
  margin-top:12px;padding-top:10px;border-top:1px dashed var(--line);
  font-size:11.5px;line-height:1.75;color:var(--muted);
}
.r-box .r-tip b{color:var(--accent);font-weight:600;}
.r-box .r-tip+.r-btn{margin-top:12px;}
.r-btn{
  display:inline-block;width:100%;text-align:center;
  padding:9px 0;border-radius:9px;font-size:12.5px;font-weight:600;letter-spacing:.5px;
  background:var(--accent);color:#fff;box-shadow:0 6px 16px rgba(207,58,82,.22);
  transition:transform .2s,box-shadow .2s;
}
.r-btn:hover{color:#fff;transform:translateY(-1px);box-shadow:0 9px 22px rgba(207,58,82,.3);}
.r-tags.sm{gap:8px;}
.r-tags.sm a{padding:4px 10px;font-size:11.5px;border-radius:7px;}
.r-empty{
  padding:56px 20px;text-align:center;font-size:13.5px;color:var(--muted);
  background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);
}
.r-empty a{color:var(--accent);}
.r-box:first-child{margin-top:0;}

@media (max-width:640px){
  .r-flow{column-count:1;}
  .r-grid3{grid-template-columns:1fr;}
  .ryrm-top .rt-l{display:none;}
  .r-flist .flast,.r-flist .fnum{display:none;}
}

/* ==========================================================================
   13. 内页深度皮肤（版块页 / 帖子页 / 导读 / 会员页 / 搜索）
   —— Discuz 默认模板结构较老，这里逐块重排为卡片式观感
   ========================================================================== */

/* ---------- 13.1 通用容器 ---------- */
.ryrm-body #ct{padding:20px 0 44px;}
.ryrm-body .mn,.ryrm-body .sd{}
.ryrm-body .sd .bm{border:1px solid var(--line);background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;margin-bottom:16px;}
.ryrm-body .sd .bm_h{padding:12px 16px;border-bottom:1px solid var(--line-2);}
.ryrm-body .sd .bm_c{padding:14px 16px;}
.ryrm-body .bm{margin-bottom:16px;}
.ryrm-body .bm_h{display:flow-root;min-height:0;padding:14px 20px;border-bottom:1px solid var(--line-2);}
.ryrm-body .bm_h h1,.ryrm-body .bm_h h2{font:600 16px/1.4 var(--font-sans);color:var(--ink);display:inline;margin:0;}
.ryrm-body .bm_h .xs2,.ryrm-body .bm_h .xs1{font-size:12.5px;color:var(--muted);}
.ryrm-body .bm_h .pipe{color:var(--line);margin:0 6px;}
.ryrm-body .bm_h a{color:var(--muted);}
.ryrm-body .bm_h a:hover{color:var(--accent);}
.ryrm-body .bm_c{background:#fff;}

/* ---------- 13.2 顶部工具栏（发新帖 / 分页） ---------- */
.ryrm-body #pgt.bm{border:0;background:transparent;box-shadow:none;border-radius:0;overflow:visible;}
.ryrm-body #pgt{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 0 14px;margin:0;}
.ryrm-body #pgt .pg{border:0;background:transparent;padding:0;margin:0;text-align:left;float:none;display:flex;align-items:center;flex-wrap:wrap;gap:6px;}
.ryrm-body #pgt .pg a,.ryrm-body #pgt .pg strong,.ryrm-body #pgt .pg label{
  display:inline-block;min-width:34px;height:34px;line-height:32px;padding:0 10px;margin:0;
  border-radius:9px;background:#fff;border:1px solid var(--line);font-size:13px;color:var(--ink-2);text-align:center;
}
.ryrm-body #pgt .pg strong{background:var(--accent);border-color:var(--accent);color:#fff;}
.ryrm-body #pgt .pg a:hover{border-color:var(--accent);color:var(--accent);}
.ryrm-body #pgt .pg label{line-height:34px;padding:0 8px;color:var(--muted);font-size:12px;background:transparent;border:0;min-width:0;}
.ryrm-body #pgt .pg .px{width:44px;height:32px;padding:0 6px;text-align:center;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:13px;}
.ryrm-body #pgt .pg .nxt{padding:0 14px;}
.ryrm-body .pgsbtn{
  display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 20px;margin:0;
  background:var(--accent);color:#fff!important;border:0;border-radius:10px;font-size:13.5px;font-weight:600;
  box-shadow:0 8px 18px -10px rgba(207,58,82,.85);text-decoration:none;
}
.ryrm-body .pgsbtn:hover{background:var(--accent-dk);color:#fff!important;}
.ryrm-body .pgb.y{
  display:inline-flex;align-items:center;height:36px;padding:0 16px;border:1px solid var(--line);
  border-radius:10px;background:#fff;font-size:13px;color:var(--ink-2);text-decoration:none;
}
.ryrm-body .pgb.y:hover{border-color:var(--accent);color:var(--accent);}
.ryrm-body .pgt{display:none;}

/* ---------- 13.3 版块页：列表工具条 ---------- */
.ryrm-body #threadlist .th{display:flow-root;padding:0 20px;border-bottom:1px solid var(--line-2);background:#fcfaf7;}
.ryrm-body #threadlist .th .tf{float:left;line-height:46px;}
.ryrm-body #threadlist .th .tf>a,.ryrm-body #threadlist .th .tf>span>.pipe{color:var(--muted);font-size:13px;margin-right:14px;}
.ryrm-body #threadlist .th .tf>a:hover{color:var(--accent);}
.ryrm-body #threadlist .th td.by,.ryrm-body #threadlist .th td.num{
  display:inline-block;float:right;line-height:46px;font-size:12px;color:var(--muted);padding:0;margin-left:18px;
}
.ryrm-body #threadlist .th td.num{margin-left:0;}
.ryrm-body #threadlist .bm_c{padding:0;}
.ryrm-body #threadlist table#threadlisttableid{width:100%;border-collapse:collapse;}
.ryrm-body #threadlisttableid th,.ryrm-body #threadlisttableid td{
  padding:13px 12px;border-bottom:1px solid var(--line-2);vertical-align:middle;text-align:left;
}
.ryrm-body #threadlisttableid th{font-weight:400;}
.ryrm-body #threadlisttableid tbody:last-child>tr:last-child>th,
.ryrm-body #threadlisttableid tbody:last-child>tr:last-child>td{border-bottom:0;}
.ryrm-body #threadlisttableid tbody>tr:hover>th,
.ryrm-body #threadlisttableid tbody>tr:hover>td{background:#fdfbf8;}
.ryrm-body #threadlisttableid td.icn{width:34px;padding-left:20px;padding-right:0;}
.ryrm-body #threadlisttableid td.icn img,
.ryrm-body #threadlisttableid td.icn i{display:none;}
.ryrm-body #threadlisttableid td.icn::before{
  content:"";display:block;width:7px;height:7px;border-radius:50%;background:#d9d3ca;margin:0 auto;
}
.ryrm-body #threadlisttableid tbody[id^="stickthread"] td.icn::before{background:var(--accent);}
.ryrm-body #threadlisttableid th{font-size:14.5px;line-height:1.5;}
.ryrm-body #threadlisttableid th a.xst,.ryrm-body #threadlisttableid th a.s.xst{color:var(--ink);font-size:15px;font-weight:600;}
.ryrm-body #threadlisttableid th a.xst:hover{color:var(--accent);}
.ryrm-body #threadlisttableid th em{
  display:inline-block;font-style:normal;font-size:11px;line-height:18px;padding:0 7px;margin-right:6px;
  border-radius:5px;background:rgba(207,58,82,.09);color:var(--accent);vertical-align:1px;
}
.ryrm-body #threadlisttableid th cite{display:block;margin-top:5px;font-size:12px;color:var(--muted);}
.ryrm-body #threadlisttableid th cite a{color:var(--muted);}
.ryrm-body #threadlisttableid th .tps{color:var(--gold);font-size:11.5px;margin-left:6px;}
.ryrm-body #threadlisttableid th img.prefix{max-height:18px;vertical-align:-3px;margin-right:6px;}
.ryrm-body #threadlisttableid td.by{width:118px;font-size:12.5px;color:var(--muted);line-height:1.5;}
.ryrm-body #threadlisttableid td.by a{color:var(--ink-2);font-size:12.5px;}
.ryrm-body #threadlisttableid td.by a:hover{color:var(--accent);}
.ryrm-body #threadlisttableid td.by cite,.ryrm-body #threadlisttableid td.by em{display:block;font-style:normal;font-size:11.5px;color:var(--muted);margin-top:2px;}
.ryrm-body #threadlisttableid td.num{
  width:86px;text-align:right;font-size:12.5px;color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.ryrm-body #threadlisttableid td.num a{color:var(--muted);}
.ryrm-body #threadlisttableid td.num a:hover{color:var(--accent);}
.ryrm-body #threadlisttableid td.num em{color:var(--accent);font-style:normal;font-weight:600;}
.ryrm-body #threadlisttableid td.num strong{color:var(--ink-2);font-weight:600;}
.ryrm-body #separatorline td{
  background:#fbf8f4;font-size:12px;color:var(--muted);padding:9px 20px;letter-spacing:.4px;
  border-bottom:1px solid var(--line-2);
}
.ryrm-body #separatorline a{color:var(--muted);}

/* ---------- 13.4 快速回复 ---------- */
.ryrm-body #f_pst{margin-top:16px;}
.ryrm-body #f_pst .bm_h{padding:12px 20px;}
.ryrm-body #f_pst .bm_c{padding:18px 20px;}
.ryrm-body .pbt{padding-bottom:10px;}
.ryrm-body .pbt input#subject{width:100%;max-width:520px;height:38px;}
.ryrm-body .tedt{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;}
.ryrm-body .tedt .bar{background:#fbf8f4;border-bottom:1px solid var(--line-2);padding:4px 8px;}
.ryrm-body .tedt .area{background:#fff;padding:6px 10px;}
.ryrm-body .pnpost{padding-top:14px;}
.ryrm-body .pn.pnc,.ryrm-body .pn.pnc:hover{
  background:var(--accent);border:1px solid var(--accent);color:#fff;font-weight:600;
  height:38px;line-height:36px;padding:0 22px;border-radius:10px;
}
/* ---------- 13.5 修正：工具条列序 / 杂物 ---------- */
/* 表头是「一个 table」包在 .th 里：必须保持 table-cell，且与数据表的列宽严格对齐
   实测数据表列宽 icn 34 / 标题 882 / 作者 118 / 回复 86 / 最后发表 118（表格 1238） */
.ryrm-body #threadlist .th{display:block;padding:0;line-height:1;border-bottom:1px solid var(--line-2);background:#fcfaf7;}
.ryrm-body #threadlist .th>table{width:100%!important;border-collapse:collapse;}
.ryrm-body #threadlist .th .tf{float:none;display:table-cell;vertical-align:middle;line-height:46px;padding:0 0 0 20px;}
.ryrm-body #threadlist .th td.by,.ryrm-body #threadlist .th td.num,
.ryrm-body #threadlist .th th{
  display:table-cell;float:none;margin:0;line-height:46px;font-size:12px;color:var(--muted);
  padding:0;white-space:nowrap;vertical-align:middle;text-align:left;font-weight:400;
}
.ryrm-body #threadlist .th th{padding-left:34px;}
.ryrm-body #threadlist .th td.by{width:118px;}
.ryrm-body #threadlist .th td.num{width:86px;text-align:right;}
.ryrm-body #threadlist .th #atarget{display:none;}
.ryrm-body #separatorline img{display:none;}
/* ---------- 13.6 帖子页（viewthread） ---------- */
.ryrm-body #postlist{
  border:1px solid var(--line);border-radius:var(--radius);background:#fff;
  box-shadow:var(--shadow);overflow:hidden;margin:0 0 16px;
}
.ryrm-body #postlist>table,.ryrm-body #postlist .plhin{table-layout:auto!important;width:100%!important;}
.ryrm-body #postlist td.pls{
  width:196px!important;background:#fcfaf7;border-right:1px solid var(--line-2);
  vertical-align:top!important;padding:18px 16px!important;
}
.ryrm-body #postlist td.plc{
  width:auto!important;padding:0 26px!important;vertical-align:top!important;
  border-bottom:1px solid var(--line-2);
}
.ryrm-body #postlist tr:last-child td.plc{border-bottom:0;}
.ryrm-body #postlist td.vwthd,.ryrm-body #postlist td.ptn{
  background:#fff;border-bottom:1px solid var(--line-2);border-right:0;
  padding:14px 20px!important;vertical-align:middle!important;
}
.ryrm-body #postlist td.ptn{width:196px!important;background:#fcfaf7;border-right:1px solid var(--line-2);font-size:12px;color:var(--muted);line-height:1.6;}
.ryrm-body #postlist h1.ts{font:600 20px/1.45 var(--font-serif);margin:0;color:var(--ink);}
.ryrm-body #postlist h1.ts a,#ryrm-body #postlist h1.ts{color:var(--ink);}
.ryrm-body #postlist .vwthd .xg1{font-size:12px;color:var(--muted);margin-left:10px;}
.ryrm-body #postlist .vwthd .y i,#ryrm-body #postlist .vwthd .y a{color:var(--muted);font-size:12px;}

/* 左侧作者区 */
.ryrm-body .favatar{text-align:center;margin:0!important;padding:0!important;}
.ryrm-body .favatar .pi{margin:0 0 12px;padding:0;line-height:1.5;font-size:12px;color:var(--muted);border:0;background:transparent;}
.ryrm-body .favatar .pi .authi{font-size:12px;color:var(--muted);}
.ryrm-body .favatar .pi .authi a{color:var(--ink);font-weight:600;font-size:13.5px;}
.ryrm-body .favatar .avatar{margin:0 0 10px;}
.ryrm-body .favatar .avatar a{display:inline-block;}
.ryrm-body .favatar .avatar img{
  width:108px;height:108px;border-radius:20px;object-fit:cover;
  border:1px solid var(--line);background:#fff;
}
.ryrm-body .favatar .tns{font-size:11.5px;color:var(--muted);line-height:1.7;margin:0 0 8px;}
.ryrm-body .favatar .tns a{color:var(--muted);}
.ryrm-body .favatar .tns a:hover{color:var(--accent);}
.ryrm-body .favatar .pbg2{display:block;width:108px;height:7px;margin:6px auto 4px;border-radius:99px;background:var(--line-2);overflow:hidden;}
.ryrm-body .favatar .pbr2{display:block;height:7px;border-radius:99px;background:linear-gradient(90deg,var(--accent),#e0707f);}
.ryrm-body .favatar dl.pil{font-size:11.5px;color:var(--muted);margin:4px 0;line-height:1.7;}
.ryrm-body .favatar dl.pil a{color:var(--ink-2);}
.ryrm-body .favatar ul.xl{display:flex;gap:6px;justify-content:center;margin:10px 0 0;flex-wrap:wrap;}
.ryrm-body .favatar ul.xl li{flex:none;}
.ryrm-body .favatar ul.xl li a{
  display:inline-flex;align-items:center;height:26px;padding:0 10px;border:1px solid var(--line);
  border-radius:99px;background:#fff;font-size:11.5px;color:var(--muted);
}
.ryrm-body .favatar ul.xl li a:hover{border-color:var(--accent);color:var(--accent);}
.ryrm-body .favatar ul.xl li a i{display:none;}

/* 右侧正文 */
.ryrm-body .plhin .pi{
  padding:12px 0 10px;border-bottom:1px solid var(--line-2);margin:0;
  display:flow-root;font-size:12px;color:var(--muted);line-height:1.6;
}
.ryrm-body .plhin .pi .authi{float:left;font-size:12px;color:var(--muted);}
.ryrm-body .plhin .pi .authi a{color:var(--ink-2);}
.ryrm-body .plhin .pi .pi{display:none;}
.ryrm-body .plhin .pi #fj{font-size:11.5px;color:var(--muted);}
.ryrm-body .plhin .pi #postnum a{
  display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:22px;
  border-radius:6px;background:#f4f0ea;color:var(--muted);font-size:11.5px;padding:0 7px;
}
.ryrm-body .pct{padding:18px 0 10px!important;margin:0!important;}
.ryrm-body .pcb{margin:0!important;}
.ryrm-body .t_fsz{min-height:0!important;}
.ryrm-body .t_f,.ryrm-body .t_f td{
  font:400 15px/1.95 var(--font-sans)!important;color:var(--ink-2)!important;
  word-break:break-word;
}
.ryrm-body .t_f a{color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(207,58,82,.35);}
.ryrm-body .t_f img{border-radius:12px;max-width:100%;height:auto;}
.ryrm-body .t_f table.t_table{
  width:100%!important;background:#f8f6f2;border-radius:12px;border-collapse:separate;
  border-spacing:0;margin:12px 0;
}
.ryrm-body .t_f table.t_table td{padding:14px 16px;}
.ryrm-body .t_f blockquote,.ryrm-body .pl .quote{border-left:3px solid var(--accent);background:#fbf8f4;border-radius:0 12px 12px 0;padding:10px 16px;margin:12px 0;}
.ryrm-body .t_f h2,.ryrm-body .t_f h3{font-weight:600;color:var(--ink);margin:14px 0 8px;}

/* 楼层操作条 */
.ryrm-body #p_btn{display:flex!important;gap:10px;flex-wrap:wrap;padding:14px 0 18px!important;margin:0!important;border-top:1px solid var(--line-2);}
.ryrm-body #p_btn a{
  display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 14px;
  border:1px solid var(--line);border-radius:99px;background:#fff;
  font-size:12.5px;color:var(--muted);line-height:1;text-decoration:none;
}
.ryrm-body #p_btn a em{display:none;}
.ryrm-body #p_btn a:hover{border-color:var(--accent);color:var(--accent);background:#fdf6f7;}
.ryrm-body #p_btn a span{color:var(--accent);font-weight:600;}

/* 引用/回复 快捷条 */
.ryrm-body .po{border-top:1px solid var(--line-2);padding:8px 0 14px!important;margin:0!important;}
.ryrm-body .pob a,.ryrm-body .fastre{
  display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:99px;
  border:1px solid var(--line);background:#fff;font-size:12px;color:var(--muted);margin-right:8px;
}
.ryrm-body .pob a:hover,.ryrm-body .fastre:hover{border-color:var(--accent);color:var(--accent);}

/* 楼层间分隔 */
.ryrm-body table.ad{display:none;}
.ryrm-body #postlistreply{padding:0;}
/* ---------- 13.7 帖子页修正（覆盖默认 .pi 定高裁剪） ---------- */
.ryrm-body .plhin td.pls .pi,.ryrm-body .favatar .pi{
  height:auto!important;overflow:visible!important;padding:0 0 10px!important;
  border:0!important;background:transparent!important;margin:0!important;
}
.ryrm-body .plhin td.plc>.pi,.ryrm-body .plhin td.plc .pti{
  height:auto!important;overflow:visible!important;
  padding:12px 0 10px!important;border-bottom:1px solid var(--line-2);margin:0!important;
}
.ryrm-body .plhin td.plc>.pi:after{content:"";display:block;clear:both;}
.ryrm-body .favatar{width:auto!important;}
/* 只隐藏站点自带的小图标 gif，头像（uc_server/avatar.php）必须保留 */
.ryrm-body .favatar img[src*="static/image/common/"],
.ryrm-body .favatar .tns img[src*="static/image/common/"],
.ryrm-body .favatar dl.pil img[src*="static/image/common/"]{display:none!important;}
.ryrm-body .plhin td.plc>.pi .authi{float:none;display:inline;font-size:12px;color:var(--muted);}
.ryrm-body .plhin td.plc>.pi .authi a{color:var(--ink-2);}
.ryrm-body #fj.y{float:right;font-size:11.5px;color:var(--muted);margin-left:12px;}
.ryrm-body #fj.y label{color:var(--muted);font-size:11.5px;}
.ryrm-body a#postnum{float:right;margin-left:10px;}
/* ---------- 13.8 导读 / 登录 / 提示 / 搜索等内页 ---------- */
/* 作者信息居中（默认 .pi 是左对齐，头像在正中会显得错位） */
.ryrm-body .favatar .pi,.ryrm-body #postlist td.pls .pi{text-align:center!important;}
.ryrm-body .favatar .pi .authi{justify-content:center;}
.ryrm-body #postlist td.pls .pi a{display:inline-block;}
.ryrm-body .plhin td.plc>.pi img[src*="static/image/common/"],
.ryrm-body .plhin td.plc .pti img[src*="static/image/common/"]{display:none!important;}
.ryrm-body .favatar ul.xl li a i,.ryrm-body .favatar ul.xl li a em{display:none;}

/* 导读页：tab 条原本被 .bm{overflow:hidden} 裁掉 */
.ryrm-body ul#thread_types,.ryrm-body .ttp.bm{
  height:auto!important;overflow:visible!important;padding:12px 20px!important;
  margin:0 0 16px!important;border:1px solid var(--line)!important;border-radius:var(--radius);
  background:#fff;box-shadow:var(--shadow);
}
.ryrm-body .ttp li{display:inline-block;margin:0 8px 0 0;line-height:30px;}
.ryrm-body .ttp li a,.ryrm-body .ttp a{
  display:inline-block;height:30px;line-height:29px;padding:0 14px;border-radius:99px;
  font-size:13px;color:var(--ink-2);border:1px solid transparent;
}
.ryrm-body .ttp li a:hover,.ryrm-body .ttp a:hover{background:var(--accent-soft);color:var(--accent);}
.ryrm-body .ttp li.a a,.ryrm-body .ttp a.a{background:var(--accent);color:#fff!important;border-color:var(--accent);font-weight:600;}

/* 登录 / 注册 / 提示信息：表单页卡片化 */
.ryrm-body #main_message .bm,.ryrm-body #main_succeed .f_c.altw{margin-bottom:16px;}
.ryrm-body [id^="layer_login_"],.ryrm-body [id^="layer_lostpw_"]{padding:26px 28px 28px!important;}
.ryrm-body [id^="layer_login_"] table,.ryrm-body [id^="layer_lostpw_"] table{width:100%;border-collapse:collapse;}
.ryrm-body [id^="layer_login_"] th,.ryrm-body [id^="layer_lostpw_"] th{
  width:92px;text-align:right;vertical-align:middle;font-weight:400;font-size:13px;color:var(--muted);
  padding:10px 14px 10px 0;white-space:nowrap;
}
.ryrm-body [id^="layer_login_"] td,.ryrm-body [id^="layer_lostpw_"] td{padding:10px 0;vertical-align:middle;}
.ryrm-body [id^="layer_login_"] .px,.ryrm-body [id^="layer_lostpw_"] .px{
  width:min(320px,100%);height:42px;line-height:42px;padding:0 14px;border-radius:10px;
  border:1px solid var(--line);background:#fff;font-size:14px;
}
.ryrm-body [id^="layer_login_"] .px:focus,.ryrm-body [id^="layer_lostpw_"] .px:focus{border-color:var(--accent);outline:none;}
.ryrm-body [id^="layer_login_"] select,.ryrm-body [id^="layer_lostpw_"] select{height:42px;border-radius:10px;border:1px solid var(--line);padding:0 10px;}
.ryrm-body [id^="layer_login_"] .pn,.ryrm-body [id^="layer_lostpw_"] .pn{
  height:42px;line-height:40px;padding:0 34px;border-radius:10px;font-size:14px;
  background:var(--accent);border:1px solid var(--accent);color:#fff;font-weight:600;cursor:pointer;
}
.ryrm-body [id^="layer_login_"] .pn:hover,.ryrm-body [id^="layer_lostpw_"] .pn:hover{filter:brightness(.94);}
.ryrm-body .bm_h.bbs h3{font-size:15px;font-weight:600;color:var(--ink);margin:0;}
.ryrm-body .bm_h.bbs .y a{font-size:12.5px;color:var(--muted);}
.ryrm-body .bm_h.bbs .y a:hover{color:var(--accent);}

/* 提示信息页（权限不足 / 需要登录） */
.ryrm-body #messagetext{font-size:14px;line-height:1.7;}
.ryrm-body #messagetext.alert_info,.ryrm-body #messagetext.alert_error,.ryrm-body #messagetext.alert_right{
  background:#fff;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:12px;
  padding:18px 22px;margin:0 0 14px;color:var(--ink-2);
}
.ryrm-body #messagelogin{font-size:13px;color:var(--muted);padding:0;margin:0 0 16px;}
.ryrm-body #messagelogin a{color:var(--accent);font-weight:600;}
.ryrm-body #messagelogin .loadicon{display:none;}

/* 独立搜索页（search.php 落地页，不带主题头尾） */
.ryrm-body #toptb,body#nv_search #toptb{background:var(--ink);border:0;}
.ryrm-body #toptb a,body#nv_search #toptb a{color:rgba(255,255,255,.72);font-size:12.5px;line-height:38px;}
.ryrm-body #toptb a:hover,body#nv_search #toptb a:hover{color:#fff;}
body#nv_search{background:var(--paper);font-family:var(--font);}
body#nv_search #hd{background:#fff;border-bottom:1px solid var(--line);}
body#nv_search #hd .hdc{padding:18px 0;}
body#nv_search #hd h1 a,body#nv_search #hd h2{font-family:var(--font-serif);font-size:20px;color:var(--ink);}
body#nv_search #ct.cl.w{width:min(var(--wrap),94vw);margin:0 auto;padding:28px 0 60px;}
body#nv_search .searchform{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:26px 28px;}
body#nv_search .hm.mtw.ptw.pbw{border:0;padding:0;margin:0 0 6px;}
body#nv_search .hm h1{font-family:var(--font-serif);font-size:24px;font-weight:600;color:var(--ink);margin:0;line-height:1.5;}
body#nv_search table#scform{margin:0;}
body#nv_search table#scform td{font-size:13px;color:var(--muted);}
body#nv_search #scform_form .px{height:42px;border-radius:10px;border:1px solid var(--line);padding:0 14px;font-size:14px;}
body#nv_search #scform_form .pn{height:42px;line-height:40px;padding:0 26px;border-radius:10px;background:var(--accent);border:1px solid var(--accent);color:#fff;font-weight:600;}
body#nv_search #ft{background:transparent;border-top:1px solid var(--line);color:var(--muted);font-size:12px;padding:20px 0;}
body#nv_search #ft a{color:var(--muted);}

/* ---------- 13.9 列宽严格对齐 + 破图兜底 ---------- */
.ryrm-body #threadlist .th>table{table-layout:fixed!important;}
.ryrm-body #threadlisttableid,.ryrm-body #threadlist .bm_c>table{table-layout:fixed!important;width:100%!important;}
.ryrm-body #threadlisttableid td.icn,.ryrm-body #threadlist .bm_c>table td.icn{width:34px;}
.ryrm-body #threadlisttableid td.by,.ryrm-body #threadlist .bm_c>table td.by{width:118px;}
.ryrm-body #threadlisttableid td.num,.ryrm-body #threadlist .bm_c>table td.num{width:86px;}
.ryrm-body #threadlisttableid th.new,.ryrm-body #threadlist .bm_c>table th.new{
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ryrm-body #threadlisttableid tbody{background:#fff;}
.ryrm-body #threadlisttableid tbody:hover{background:#fcfaf7;}
.ryrm-body #threadlisttableid td.th,.ryrm-body #threadlisttableid th{vertical-align:middle;}
/* 加载失败的图标一律不占位（站点 static/image/common 下部分图标缺失） */
.ryrm-body img.imgfail{display:none!important;}
.ryrm-body .ts img,.ryrm-body #separatorline img{display:none!important;}
.ryrm-body .bm_h .y img,.ryrm-body .bm_h.cl .y img{display:none;}

/* ---------- 13.10 搜索页 / 提示页 收尾 ---------- */
/* 搜索页现在套主题头尾（template/ryrm/search/header.htm、footer.htm），
   pubsearch 里那张 Discuz 默认 logo 图隐藏，改由主题头承担品牌 */
.ryrm-body.pg_search #ct,.ryrm-body #ct.w{padding:24px 0 56px;}
body#nv_search .hm.mtw.ptw.pbw{display:block;padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid var(--line-2);text-align:left;}
body#nv_search .hm h1 img{display:none!important;}
body#nv_search .hm h1:after{content:"站内搜索";font-family:var(--font-serif);font-size:26px;font-weight:600;color:var(--ink);letter-spacing:.01em;}
body#nv_search .searchform{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px 26px 26px;}
body#nv_search #scform{margin:0!important;}
body#nv_search #scform_tb{font-size:13px;color:var(--muted);line-height:26px;}
body#nv_search #scform_tb a{display:inline-block;padding:0 12px;height:28px;line-height:27px;border-radius:99px;color:var(--ink-2);font-size:13px;margin-right:6px;}
body#nv_search #scform_tb a.a,body#nv_search #scform_tb a:hover{background:var(--accent-soft);color:var(--accent);}
body#nv_search #scform_form{margin-top:10px;width:100%;}
body#nv_search #scform_form td{padding:0;}
body#nv_search #scform_srchtxt{width:100%;height:44px;line-height:44px;border-radius:12px;border:1px solid var(--line);padding:0 16px;font-size:15px;background:#fdfcfb;}
body#nv_search #scform_srchtxt:focus{border-color:var(--accent);background:#fff;outline:none;}
body#nv_search .td_srchbtn{width:120px;padding-left:10px!important;}
body#nv_search #scform_submit,body#nv_search .schbtn{width:110px;height:44px;border-radius:12px;background:var(--accent);border:1px solid var(--accent);color:#fff;font-size:14px;font-weight:600;cursor:pointer;}
body#nv_search #scform_submit:hover{filter:brightness(.94);}

/* 提示信息页：卡片居中收窄 */
.ryrm-body:not(.pg_logging):not(.pg_register) #ct.wp > #main_message{float:none!important;width:100%!important;margin:0 auto!important;max-width:720px;}
.ryrm-body #ct.wp > #main_succeed{float:none!important;width:100%!important;max-width:720px;margin:0 auto!important;}
.ryrm-body #main_message .f_c.altw,.ryrm-body #main_succeed .f_c.altw{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:24px 26px!important;width:auto!important;
}
.ryrm-body #messagetext{border-left:0!important;border-radius:0!important;padding:0 0 12px!important;background:transparent!important;}
.ryrm-body #messagetext.alert_info,.ryrm-body #messagetext.alert_error{border-left:0;padding-left:0;}

/* 登录页标题与说明文字加深 */
.ryrm-body .bm_h.bbs h3.xs2,.ryrm-body .bm_h.bbs h3{font-size:15px;font-weight:600;color:var(--ink)!important;}
.ryrm-body .bm_h.bbs .y,.ryrm-body .bm_h.bbs .y a{color:var(--muted)!important;}
.ryrm-body .bm_h.bbs .y a:hover{color:var(--accent)!important;}
.ryrm-body [id^="layer_login_"]{max-width:660px;}

/* 表头「回复/查看」不再右贴「最后发表」 */
.ryrm-body #threadlist .th td.num{text-align:left;padding-left:4px;}

/* ---------- 13.11 登录卡片宽度与标题色修正 ---------- */
.ryrm-body:not(.pg_logging):not(.pg_register) #ct.wp > #main_message{max-width:none!important;}
.ryrm-body [id^="layer_login_"]{max-width:none!important;}
.ryrm-body [id^="layer_login_"] table{width:100%;}
.ryrm-body [id^="layer_login_"] td:first-child,.ryrm-body [id^="layer_login_"] th:first-child{padding-left:120px;}
.ryrm-body .bm_h h1,.ryrm-body .bm_h h2,.ryrm-body .bm_h h3,
.ryrm-body .bm_h .xs2,.ryrm-body .bm_h_bbs h3{color:var(--ink)!important;font-weight:600!important;}
.ryrm-body .bm_h .y,.ryrm-body .bm_h .y a,.ryrm-body .bm_h .y span{color:var(--muted)!important;font-size:12.5px;}
.ryrm-body .bm_h .y a:hover{color:var(--accent)!important;}
.ryrm-body #messagetext>*:first-child{margin-top:0;}
.ryrm-body #messagetext{border:0!important;background:transparent!important;box-shadow:none!important;}

/* ---------- 13.12 个人空间（home.php?mod=space） ---------- */
.ryrm-body #pt{margin:0 0 14px;}
.ryrm-body #pt .z,.ryrm-body #pt a{font-size:12.5px;color:var(--muted);}
.ryrm-body #pt .z em{color:var(--line);font-style:normal;margin:0 6px;}
.ryrm-body #pt a:hover{color:var(--accent);}
.ryrm-body #pt a.nvhm{display:none;}

.ryrm-body #uhd{
  position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:26px 28px 0;margin:0 0 16px;
}
.ryrm-body #uhd:before{
  content:"";position:absolute;left:0;right:0;top:0;height:96px;border-radius:var(--radius) var(--radius) 0 0;
  background:linear-gradient(120deg,#f7ecee,#f0e9f4 52%,#e7eef3);
}
.ryrm-body #uhd .h{position:relative;display:flex;align-items:flex-end;gap:18px;padding-top:50px;}
.ryrm-body #uhd .avt{
  width:104px;height:104px;border-radius:22px;overflow:hidden;flex:none;background:#fff;
  border:4px solid #fff;box-shadow:0 8px 22px rgba(20,20,23,.12);
}
.ryrm-body #uhd .avt a{display:block;width:100%;height:100%;}
.ryrm-body #uhd .avt img{width:100%;height:100%;object-fit:cover;display:block;}
.ryrm-body #uhd h2.mt{font-family:var(--font-serif);font-size:24px;font-weight:600;color:var(--ink);margin:0 0 8px;line-height:1.2;}
.ryrm-body #uhd .h p{font-size:12.5px;color:var(--muted);margin:0 0 14px;line-height:1.6;}
.ryrm-body #uhd .h p a{color:var(--muted);}
.ryrm-body #uhd .mn{position:absolute;right:28px;top:22px;}
.ryrm-body #uhd .mn ul{display:flex;gap:8px;}
.ryrm-body #uhd .mn li a{
  display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:99px;
  border:1px solid var(--line);background:#fff;font-size:12.5px;color:var(--ink-2);
}
.ryrm-body #uhd .mn li a:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft);}
.ryrm-body #uhd ul.tb{display:flex;gap:4px;flex-wrap:wrap;margin:22px 0 0;padding:0;border-top:1px solid var(--line-2);}
.ryrm-body #uhd ul.tb li a{
  display:inline-block;padding:13px 14px 11px;font-size:13.5px;color:var(--muted);
  border-bottom:2px solid transparent;
}
.ryrm-body #uhd ul.tb li.a a,.ryrm-body #uhd ul.tb li a:hover{color:var(--accent);border-bottom-color:var(--accent);font-weight:600;}

/* 空间内容区 */
.ryrm-body .pg_space #ct{padding-top:0;}
.ryrm-body .ct1 .mn,.ryrm-body .ct2 .mn,.ryrm-body .ct3_a .mn{background:transparent;}
.ryrm-body .tbn{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:4px 18px;margin:0 0 16px;}
.ryrm-body .tbn h2{font-size:14px;font-weight:600;color:var(--ink);padding:14px 0 10px;margin:0;}
.ryrm-body .tbn ul{display:flex;gap:6px;flex-wrap:wrap;padding:0 0 12px;}
.ryrm-body .tbn ul li a{display:inline-block;height:28px;line-height:27px;padding:0 13px;border-radius:99px;font-size:12.5px;color:var(--muted);}
.ryrm-body .tbn ul li.a a,.ryrm-body .tbn ul li a:hover{background:var(--accent-soft);color:var(--accent);}
.ryrm-body .pg_space .bm.bw0{border:0;box-shadow:none;background:transparent;}
.ryrm-body .pg_space .bm.bw0>.bm_c{padding:0;}
.ryrm-body .pg_space .xld{border:0;}
.ryrm-body .pg_space .xld li,.ryrm-body .pg_space .xld dl{
  background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);
  padding:14px 16px;margin:0 0 12px;
}
.ryrm-body .pg_space .xld dt a{font-size:14.5px;color:var(--ink);font-weight:500;}
.ryrm-body .pg_space .xld dt a:hover{color:var(--accent);}
.ryrm-body .pg_space .xld dd{font-size:13px;color:var(--ink-2);line-height:1.75;margin:6px 0 0;}
.ryrm-body .pg_space .xld .xg1,.ryrm-body .pg_space .xld .xs1{font-size:12px;color:var(--muted);}
.ryrm-body .pg_space .sd .bm,.ryrm-body .pg_space .sd .tbn{border:1px solid var(--line);}

/* ---------- 13.13 帖子页底部操作 ---------- */
.ryrm-body #p_btn{padding:0 0 6px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.ryrm-body #p_btn a{
  display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 14px;border-radius:99px;
  border:1px solid var(--line);background:#fff;font-size:12.5px;color:var(--ink-2);line-height:1;
}
.ryrm-body #p_btn a:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft);}
.ryrm-body #p_btn a i{font-style:normal;display:inline-flex;align-items:center;}
.ryrm-body #p_btn em.fico-star:before,.ryrm-body #p_btn em.fico-launch:before{content:"";}
.ryrm-body .po{border-top:1px solid var(--line-2);}
.ryrm-body .po a,.ryrm-body .po .pob a{color:var(--muted);font-size:12.5px;}
.ryrm-body .po a:hover{color:var(--accent);}
.ryrm-body #f_pst td.pls{width:132px;background:#fcfaf7;}
.ryrm-body #f_pst td.plc{padding:18px 22px!important;}
.ryrm-body #f_pst .tedt{border-radius:12px;}

/* ---------- 13.14 空间页细节修正 ---------- */
.ryrm-body #pt a.nvhm{
  display:inline-block;width:auto;height:auto;background:none!important;text-indent:0!important;
  font-size:12.5px;color:var(--muted);line-height:1.6;
}
.ryrm-body #uhd ul.tb li,.ryrm-body #uhd ul.tb li a{background:transparent!important;border:0;border-radius:0;}
.ryrm-body #uhd ul.tb li a{border-bottom:2px solid transparent;padding:13px 14px 11px;}
.ryrm-body #uhd ul.tb li.a a,.ryrm-body #uhd ul.tb li a:hover{background:transparent!important;border-bottom-color:var(--accent);}
.ryrm-body .tbn ul li,.ryrm-body .tbn ul li a{background:transparent;border:0;}
.ryrm-body .tbn ul li.a a,.ryrm-body .tbn ul li a:hover{background:var(--accent-soft)!important;color:var(--accent)!important;}
.ryrm-body .pg_space .bbda{border-bottom:0!important;}
.ryrm-body .pg_space .xld dl.xld,.ryrm-body .pg_space dl.xld{border:1px solid var(--line)!important;background:#fff;}
.ryrm-body .pg_space .xld dt,.ryrm-body .pg_space .xld dd{border:0;}

/* ---------- 13.15 空间两栏（默认 .ct2 是 730/220 定宽，在 1240 网格里要改成弹性） ---------- */
.ryrm-body .ct1,.ryrm-body .ct2{
  display:flex;align-items:flex-start;gap:20px;border:0!important;background:transparent;
}
.ryrm-body .ct1>.mn,.ryrm-body .ct2>.mn{
  float:none!important;width:auto!important;flex:1 1 auto;min-width:0;
  margin:0!important;padding-top:0!important;display:block!important;
}
.ryrm-body .ct1>.sd,.ryrm-body .ct2>.sd{
  float:none!important;width:320px!important;flex:0 0 320px;overflow:visible!important;
}
.ryrm-body .ct2_a .mn{width:auto!important;float:none!important;margin:0!important;padding-top:0!important;}
.ryrm-body .ct2_a{display:flex;gap:20px;align-items:flex-start;border:0!important;}
.ryrm-body .ct2_a>.appl{flex:0 0 200px;}
@media (max-width:980px){
  .ryrm-body .ct1,.ryrm-body .ct2,.ryrm-body .ct2_a{display:block;}
  .ryrm-body .ct1>.sd,.ryrm-body .ct2>.sd{width:auto!important;flex:none;margin-top:16px;}
}

/* ---------- 13.16 快速回复空列 + 楼层底部操作可读性 ---------- */
.ryrm-body #f_pst td.pls.is-empty{width:0!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;}
.ryrm-body #f_pst td.pls.is-empty+td.plc{padding-left:24px!important;}
.ryrm-body #postlist .po a,.ryrm-body #postlist .po .pob a{color:var(--ink-2);font-size:12.5px;}
.ryrm-body #postlist .po a:hover{color:var(--accent);}
.ryrm-body #postlist .po img{display:none!important;}
.ryrm-body #postlist td.plc.plm{padding-top:0!important;}

/* ---------- 13.17 楼层底部「回复 / 举报」对比度 ---------- */
.ryrm-body #postlist .po a,.ryrm-body #postlist .po .xg1,
.ryrm-body #postlist .po .xs1,.ryrm-body #postlist .po span{color:var(--ink-2)!important;font-size:12.5px;}
.ryrm-body #postlist .po a:hover{color:var(--accent)!important;}
.ryrm-body #postlist .po .y a{color:var(--muted)!important;}
.ryrm-body #postlist .po .y a:hover{color:var(--accent)!important;}

/* ---------- 13.18 会员中心两栏（.ct2_a：内容 .mn + 右侧图标菜单 .appl） ---------- */
.ryrm-body .ct2_a>.mn{flex:1 1 auto;min-width:0;width:auto!important;float:none!important;margin:0!important;padding:0!important;}
.ryrm-body .ct2_a>.appl{flex:0 0 200px;}
.ryrm-body .ct2_a .tb{border:0;margin-bottom:14px;}
.ryrm-body .ct2_a .bm{border-radius:14px;}
.ryrm-body .ct2_a .bm_c{padding:18px 20px;}
@media (max-width:980px){
  .ryrm-body .ct2_a{display:block;}
  .ryrm-body .ct2_a>.appl{width:auto!important;margin-top:16px;}
}

/* ---------- 13.19 搜索结果列表卡片化 ---------- */
.ryrm-body.pg_search #ct>.mw{width:100%!important;max-width:100%!important;}
.ryrm-body .tl{background:transparent!important;border:0!important;}
.ryrm-body .tl>li,.ryrm-body .tl>dd{
  background:#fff;border:1px solid var(--line);border-radius:14px;
  padding:16px 20px 14px;margin:0 0 12px;list-style:none;
  transition:box-shadow .25s ease,border-color .25s ease;
}
.ryrm-body .tl>li:hover,.ryrm-body .tl>dd:hover{border-color:#e0d5cc;box-shadow:0 8px 24px rgba(20,20,23,.06);}
.ryrm-body .tl>li h3,.ryrm-body .tl>dd h3{font:600 16px/1.55 var(--font-serif);margin:0 0 7px;}
.ryrm-body .tl>li h3 a,.ryrm-body .tl>dd h3 a{color:var(--ink);}
.ryrm-body .tl>li h3 a:hover{color:var(--accent);}
.ryrm-body .tl>li p,.ryrm-body .tl>dd p{margin:0 0 5px;font-size:12.5px;line-height:1.75;color:var(--muted);}
.ryrm-body .tl>li p.xg1{color:var(--accent);}
.ryrm-body .tl>li p span a{color:var(--ink-2);}
.ryrm-body .tl>li h3 strong font{color:var(--accent)!important;}

/* ---------- 13.20 搜索页 Discuz logo 隐藏 + 站名替换 ---------- */
.ryrm-body.pg_search .searchform img,.ryrm-body.pg_search .hm a img,
.ryrm-body #scform img,#scform_top img{display:none!important;}
.ryrm-body.pg_search .hm h1:after{content:"站内搜索";font:600 22px/1.4 var(--font-serif);color:var(--ink);}
.ryrm-body.pg_search .hm h1 a{display:none;}

/* ---------- 13.21 搜索结果列表（默认模板 markup：.tl > .sttl + .slst > ul > li.pbw） ---------- */
.ryrm-body .tl>.sttl{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 20px;margin-bottom:12px;}
.ryrm-body .tl>.sttl h2{font:600 15px/1.6 var(--font-serif);color:var(--ink);margin:0;}
.ryrm-body .slst{width:auto!important;max-width:100%!important;}
.ryrm-body .slst>ul{list-style:none;margin:0;padding:0;display:grid;gap:12px;}
.ryrm-body .slst>ul>li.pbw,.ryrm-body .slst>ul>li{
  background:#fff;border:1px solid var(--line);border-radius:14px;
  padding:16px 20px 13px;transition:border-color .25s ease,box-shadow .25s ease;
}
.ryrm-body .slst>ul>li:hover{border-color:#e2d6cc;box-shadow:0 10px 26px rgba(20,20,23,.07);}
.ryrm-body .slst>ul>li h3,.ryrm-body .slst>ul>li h3.xs3{font:600 16px/1.55 var(--font-serif);margin:0 0 8px;color:var(--ink);}
.ryrm-body .slst>ul>li h3 a{color:var(--ink);}
.ryrm-body .slst>ul>li h3 a:hover{color:var(--accent);}
.ryrm-body .slst>ul>li p{margin:0 0 5px;font-size:12.5px;line-height:1.75;color:var(--muted);}
.ryrm-body .slst>ul>li p.xg1{color:var(--accent);}
.ryrm-body .slst>ul>li p span a{color:var(--ink-2);}
.ryrm-body .slst>ul>li p span a:hover{color:var(--accent);}
.ryrm-body .slst>ul>li font,.ryrm-body .slst>ul>li strong font{color:var(--accent)!important;}
.ryrm-body .emp{background:#fff;border:1px dashed var(--line);border-radius:14px;padding:28px;text-align:center;color:var(--muted);}

/* ---------- 13.22 字体别名 + 搜索按钮 + 资料表单列宽 ---------- */
:root{ --font:var(--font-sans); }
.ryrm-body #scform_submit,.ryrm-body #scform_submit strong{
  font-family:var(--font-sans)!important;color:#fff!important;
  font-size:14px!important;letter-spacing:.06em;
}
.ryrm-body #scform_submit img,.ryrm-body .schbtn img{display:none!important;}
.ryrm-body #scform_submit{background:var(--accent)!important;border:0!important;border-radius:0 12px 12px 0!important;}
.ryrm-body #scform_submit:hover{background:var(--accent-dk)!important;}
.ryrm-body .tfm{width:auto!important;max-width:840px;}
.ryrm-body .tfm th,.ryrm-body .tfm td{padding:7px 12px 7px 0;vertical-align:middle;}
.ryrm-body .tfm th{font-weight:400;color:var(--ink-2);font-size:13px;text-align:left;white-space:nowrap;}
.ryrm-body .tfm select{min-width:96px;}
.ryrm-body .tfm input.txt,.ryrm-body .tfm input[type="text"]{width:220px;max-width:100%;}

/* ---------- 13.23 搜索按钮改由 CSS 出字（默认模板里该按钮的字形在本站渲染成方框） ---------- */
.ryrm-body #scform_submit{font-size:0!important;line-height:0!important;}
.ryrm-body #scform_submit strong{display:none!important;}
.ryrm-body #scform_submit:after{
  content:"搜索";display:inline-block;font:600 14px/36px var(--font-sans);
  color:#fff;letter-spacing:.08em;
}

/* ---------- 13.24 列表页「回复 / 查看」数字更清楚 ---------- */
.ryrm-body #threadlisttableid td.num{
  width:96px!important;text-align:right!important;padding-right:16px!important;
  font-variant-numeric:tabular-nums;
}
.ryrm-body #threadlisttableid td.num a{
  display:block;color:var(--accent);font-weight:600;font-size:13px;line-height:1.5;
}
.ryrm-body #threadlisttableid td.num em{
  display:block;font-style:normal;font-size:11.5px;line-height:1.5;color:var(--muted);
}
.ryrm-body #threadlisttableid td.num em:before{content:"查看 ";}
.ryrm-body #threadlisttableid td.num a:before{content:"回复 ";}
.ryrm-body #threadlist .th td.num{text-align:right!important;}

/* ---------- 13.25 撤销 13.23 的自造文字，恢复按钮原生文字 ---------- */
.ryrm-body #scform_submit{font-size:14px!important;line-height:36px!important;}
.ryrm-body #scform_submit strong{display:inline!important;}
.ryrm-body #scform_submit:after{content:none!important;}

/* ---------- 13.26 帖子背景图（postbg）压掉 ---------- */
.ryrm-body #postlist .plhin,.ryrm-body #postlist .plhin>tbody>tr>td.plc,
.ryrm-body #postlist .pct,.ryrm-body #postlist .pcb,.ryrm-body #postlist .t_f,
.ryrm-body #postlist .t_f td,.ryrm-body #postlist .t_fsz{
  background-image:none!important;
}
.ryrm-body #postlist .plhin>tbody>tr>td.plc{background-color:#fff!important;}

/* ---------- 13.27 主题管理条（删除主题 / 升降 / 置顶 …） ---------- */
.ryrm-body #modmenu,.ryrm-body #ct>div.xi2.pbm{
  display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;
  padding:12px 0!important;margin:0!important;font-size:12.5px;line-height:1;
}
.ryrm-body #modmenu>span,.ryrm-body #ct>div.xi2.pbm>span{display:none!important;}
.ryrm-body #modmenu>a,.ryrm-body #ct>div.xi2.pbm>a{
  padding:5px 11px;border:1px solid var(--line);border-radius:999px;
  background:#fff;color:var(--ink-2);text-decoration:none;transition:.18s;
}
.ryrm-body #modmenu>a:hover,.ryrm-body #ct>div.xi2.pbm>a:hover{
  border-color:#f0c6cf;background:var(--accent-soft);color:var(--accent);
}

/* ---------- 13.28 帖子页顶部工具条：返回列表在左，发新帖/回复靠右 ---------- */
.ryrm-body #pgt{justify-content:flex-start!important;align-items:center;gap:10px;flex-wrap:nowrap;}
.ryrm-body #pgt>.pgt{display:none!important;}
.ryrm-body #pgt>.pgsbtn:first-of-type{margin-left:auto;}
.ryrm-body #pgt>.pg{display:flex;gap:6px;flex:none;}
.ryrm-body a#newspecial.pgsbtn,.ryrm-body #pgt a.pgsbtn{
  height:36px;line-height:34px;padding:0 20px;border-radius:10px;
  background:var(--accent);color:#fff!important;font-weight:600;border:1px solid var(--accent);
}
.ryrm-body #pgt a.pgsbtn:hover{background:#b8324a;border-color:#b8324a;}
.ryrm-body #pgt>.pgb.y{
  height:36px;line-height:34px;padding:0 16px;border-radius:10px;
  border:1px solid var(--line);background:#fff;color:var(--ink-2)!important;font-weight:400;
}

/* ---------- 13.29 图片放大浮层：不受统一 img 规则约束 ---------- */
.ryrm-body #imagelightbox img,.ryrm-body #append_parent .fwin img,
.ryrm-body #append_parent .zoompreview img,.ryrm-body .imgzoom,
.ryrm-body .zoom_show img,.ryrm-body #append_parent td.t_f img{
  max-width:none!important;height:auto!important;border-radius:0!important;
}
.ryrm-body .t_f img.zoom,.ryrm-body .t_f .zoom img{cursor:zoom-in;}

/* ---------- 13.30 弹窗（showWindow）皮肤：不依赖基础 CSS ---------- */
.ryrm-body #append_parent .fwin,.ryrm-body #fwinmask~.fwin{
  background:#fff;border:1px solid var(--line);border-radius:16px;
  box-shadow:0 28px 64px -18px rgba(20,20,23,.35);overflow:hidden;
}
.ryrm-body #append_parent .fwin .flb,.ryrm-body #append_parent .fwin h3.flb{
  margin:0;padding:14px 20px;height:auto;line-height:1.5;
  background:#fcfaf7;border-bottom:1px solid var(--line-2);
}
.ryrm-body #append_parent .fwin .flb em{
  font:600 15px/1.5 var(--font-serif);color:var(--ink);font-style:normal;
}
.ryrm-body #append_parent .fwin .flb span a{color:var(--muted);font-size:12.5px;}
.ryrm-body #append_parent .fwin .flbc{
  width:26px;height:26px;background:none!important;text-indent:0!important;
  font-size:0;border-radius:50%;position:relative;
}
.ryrm-body #append_parent .fwin .flbc:after{
  content:"\00d7";font:400 20px/26px -apple-system,"Microsoft YaHei",sans-serif;
  color:var(--muted);display:block;text-align:center;
}
.ryrm-body #append_parent .fwin .flbc:hover{background:var(--accent-soft)!important;}
.ryrm-body #append_parent .fwin .c,.ryrm-body #append_parent .fwin .f_c{padding:18px 20px;font-size:13px;}
.ryrm-body #append_parent .fwin .c p{margin:0 0 12px;}
.ryrm-body #append_parent .fwin .c .pn:not(.colorwd),.ryrm-body #append_parent .fwin .c button.pn:not(.colorwd),
.ryrm-body #append_parent .fwin .f_c .pn:not(.colorwd){
  height:34px;line-height:32px;padding:0 18px;border-radius:9px;
  background:var(--accent);color:#fff!important;border:1px solid var(--accent);font-weight:600;
}
.ryrm-body #append_parent .fwin .c .pn:hover{background:#b8324a;}
.ryrm-body #append_parent .fwin input:not([type=checkbox]):not([type=radio]),
.ryrm-body #append_parent .fwin textarea{
  border:1px solid var(--line);border-radius:9px;padding:8px 12px;background:#fff;
}
.ryrm-body #append_parent .p_pop,.ryrm-body #append_parent .sllt{
  background:#fff!important;border:1px solid var(--line)!important;border-radius:12px;
  box-shadow:0 18px 40px -16px rgba(20,20,23,.28);padding:6px!important;
}
.ryrm-body #append_parent .p_pop a{border-radius:8px;color:var(--ink-2);}
.ryrm-body #append_parent .p_pop a:hover{background:var(--accent-soft);color:var(--accent);}
.ryrm-body #fwinmask,.ryrm-body .fwinmask{
  background:rgba(20,20,23,.38)!important;
}

/* ---------- 13.31 图片放大浮层：固定视口居中、等比缩放 ---------- */
.ryrm-body #imagelightbox{
  position:fixed!important;inset:0;z-index:9999;
  display:flex;align-items:center;justify-content:center;
  padding:4vh 4vw;background:rgba(12,12,14,.92);
  cursor:zoom-out;
}
.ryrm-body #imagelightbox img{
  max-width:92vw!important;max-height:92vh!important;
  width:auto!important;height:auto!important;
  object-fit:contain;border-radius:6px;box-shadow:0 30px 80px -20px rgba(0,0,0,.6);
}
.ryrm-body .t_f img.zoom,.ryrm-body .t_f a.zoom img{cursor:zoom-in;}
.ryrm-body .zoompreview{max-width:92vw;max-height:92vh;}
.ryrm-body .zoompreview img{max-width:92vw!important;max-height:92vh!important;width:auto!important;height:auto!important;}

/* ---------- 13.32 会员信息浮层（点头像/用户名弹出的卡片） ---------- */
.ryrm-body .bui,.ryrm-body .p_pop.blk,.ryrm-body .userinfo{
  background:#fff!important;border:1px solid var(--line)!important;border-radius:14px!important;
  box-shadow:0 22px 50px -18px rgba(20,20,23,.3)!important;padding:14px!important;
  font-size:12.5px;color:var(--ink-2);min-width:210px;
}
.ryrm-body .bui .imicn,.ryrm-body .userinfo .imicn,.ryrm-body .bui img{
  border-radius:10px;
}
.ryrm-body .bui dt,.ryrm-body .bui dd,.ryrm-body .userinfo dt,.ryrm-body .userinfo dd{
  padding:3px 0;margin:0;line-height:1.7;
}
.ryrm-body .bui dt,.ryrm-body .userinfo dt{color:var(--muted);}
.ryrm-body .bui dd,.ryrm-body .userinfo dd{color:var(--ink);}
.ryrm-body .bui .xg1,.ryrm-body .userinfo .xg1{color:var(--muted)!important;}
.ryrm-body .bui a,.ryrm-body .userinfo a{color:var(--accent);}

/* ---------- 13.33 dzicon 图标字体兜底（站点没有 @font-face，图标会显示成方框） ---------- */
@font-face{
  font-family:"dzicon";
  src:url("/static/image/common/dzicon.woff2") format("woff2"),
      url("/static/image/common/dzicon.woff") format("woff");
  font-weight:normal;font-style:normal;font-display:swap;
}
.ryrm-body .fico,.ryrm-body i[class^="fico-"],.ryrm-body i[class*=" fico-"],
.ryrm-body .fico-common:before,.ryrm-body .fico-collection:before,
.ryrm-body .fico-favorite:before,.ryrm-body .fico-home:before,
.ryrm-body .fico-hot:before,.ryrm-body .fico-reply:before,
.ryrm-body .fico-share:before,.ryrm-body .fico-star:before{
  font-family:"dzicon",var(--font-sans)!important;
}

/* ---------- 13.34 帖子作者栏：把散落的会员操作收成一行小字 ---------- */
.ryrm-body #postlist td.pls dl.pil,.ryrm-body #postlist td.pls .pil{
  margin:8px 0 0!important;font-size:11.5px;color:var(--muted);line-height:1.9;
}
.ryrm-body #postlist td.pls dl.pil a,.ryrm-body #postlist td.pls .pil a{
  color:var(--muted);text-decoration:none;padding:0 3px;
}
.ryrm-body #postlist td.pls dl.pil a:hover,.ryrm-body #postlist td.pls .pil a:hover{color:var(--accent);}
.ryrm-body #postlist td.pls .tns,.ryrm-body #postlist td.pls .pbg2{display:none!important;}
.ryrm-body #postlist .po .xg1,.ryrm-body #postlist .po .xs1{color:var(--ink-2)!important;}

/* ---------- 13.35 帖子作者栏里的管理操作（IP 编辑 禁止 帖子 清理） ---------- */
.ryrm-body #postlist td.pls>a{
  display:inline-block;margin:2px 6px 0 0;padding:1px 7px;
  font-size:11px;line-height:18px;color:var(--muted)!important;
  border:1px solid var(--line-2);border-radius:6px;background:#fff;text-decoration:none;
}
.ryrm-body #postlist td.pls>a:hover{color:var(--accent)!important;border-color:#f0c6cf;background:var(--accent-soft);}

/* ---------- 13.36 发帖 / 回复编辑页（post.php） ---------- */
/* 容器：默认 .ct2_a 把 #editorbox 当弹性项，宽度收缩成 732px */
.ryrm-body .ct2_a{flex-wrap:nowrap;}
.ryrm-body .ct2_a>#editorbox,.ryrm-body .ct2_a>#postform,
.ryrm-body .ct2_a>.mn,.ryrm-body #editorbox{flex:1 1 auto!important;min-width:0;width:auto!important;}
.ryrm-body #editorbox{width:100%!important;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;background:#fff;}

/* 顶部 发表帖子 / 发起投票 tab */
.ryrm-body #editorbox ul.tb{display:flex!important;gap:6px;align-items:center;height:auto!important;min-height:52px;padding:10px 16px!important;margin:0!important;background:#fcfaf7;border-bottom:1px solid var(--line);}
.ryrm-body #editorbox ul.tb li{float:none!important;margin:0!important;}
.ryrm-body #editorbox ul.tb li a{
  display:inline-block;height:32px;line-height:30px;padding:0 16px;border-radius:99px;
  font-size:13px;color:var(--ink-2);border:1px solid transparent;
}
.ryrm-body #editorbox ul.tb li.a a,.ryrm-body #editorbox ul.tb li a:hover{
  background:var(--accent-soft);border-color:#f3ccd5;color:var(--accent);font-weight:600;
}

/* 标题行 */
.ryrm-body #postbox{padding:0!important;}
.ryrm-body #postbox .pbt.cl{
  display:flex!important;align-items:center;gap:14px;
  padding:16px 20px!important;margin:0!important;border-bottom:1px solid var(--line-2);
  background:#fff;height:auto!important;
}
.ryrm-body #postbox .pbt.cl:before{
  content:"标题";flex:none;font:600 13px/1 var(--font-sans);color:var(--muted);letter-spacing:.04em;
}
.ryrm-body #postbox .pbt .z{float:none!important;flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:12px;}
.ryrm-body #postbox .pbt .z>span{display:block;flex:1 1 auto;min-width:0;}
.ryrm-body #postbox #subject,.ryrm-body #postbox input#subject{
  width:100%!important;height:44px!important;line-height:42px!important;padding:0 14px!important;
  font-size:15px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:#fcfcfa!important;
}
.ryrm-body #postbox #subject:focus{border-color:#f0bcc7!important;background:#fff!important;box-shadow:0 0 0 3px rgba(207,58,82,.08)!important;}
.ryrm-body #postbox #subjectchk,.ryrm-body #postbox .pbt .y{float:none!important;order:2;flex:none;font-size:12px;color:var(--light);white-space:nowrap;}

/* 编辑器：工具条 + 输入区 */
.ryrm-body #e_body.edt{border:0!important;}
.ryrm-body #e_controls.bar,.ryrm-body #e_controls.bar.cl{
  display:flex!important;align-items:flex-start;gap:10px;flex-wrap:wrap;
  height:auto!important;min-height:44px;padding:8px 12px!important;margin:0!important;
  background:#fcfaf7;border-bottom:1px solid var(--line-2);
}
.ryrm-body #e_controls .btn{display:flex!important;flex-wrap:wrap;align-items:center;gap:2px;float:none!important;}
.ryrm-body #e_controls .y{float:none!important;order:2;margin-left:auto!important;display:flex;gap:4px;align-items:center;}
.ryrm-body #e_controls a{display:inline-flex!important;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 6px;border-radius:6px;color:var(--ink-2);text-decoration:none;}
.ryrm-body #e_controls a:hover{background:var(--accent-soft);color:var(--accent);}
.ryrm-body #e_controls .b2r,.ryrm-body #e_controls .b2r p{float:none!important;display:inline;}
.ryrm-body #e_controls select{height:26px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:12px;}
.ryrm-body #e_controls .chked,.ryrm-body #e_controls a.a{background:var(--accent-soft)!important;color:var(--accent)!important;}
.ryrm-body #e_body .area,.ryrm-body #e_body .area textarea,.ryrm-body #e_textarea{
  min-height:420px!important;padding:18px 20px!important;border:0!important;
  font:400 15px/1.9 var(--font-sans)!important;color:var(--ink)!important;background:#fff!important;
}
.ryrm-body #e_body .area{background:#fff!important;}
.ryrm-body .edt .pt,.ryrm-body #postbox .pt{color:var(--muted);}

/* 编辑器底部小工具条（自动保存 / 恢复数据 / 清除内容 …） */
.ryrm-body #postbox .pnpost+.bm,.ryrm-body #e_body+.pt{color:var(--muted);}
.ryrm-body #postbox>.cl.po,.ryrm-body #postbox .po{color:var(--muted);font-size:12px;}

/* 附加选项 / 阅读权限 / 抢楼 / 售价 / 标签 */
.ryrm-body #post_extra{padding:4px 20px 0!important;margin:0!important;}
.ryrm-body #post_extra_tb{display:flex!important;flex-wrap:wrap;gap:8px;align-items:center;padding:14px 0 12px!important;border-top:1px solid var(--line-2);}
.ryrm-body #post_extra_tb label{
  display:inline-flex;align-items:center;gap:4px;margin:0!important;
  height:30px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:#fff;
  font-size:12.5px;color:var(--ink-2);cursor:pointer;
}
.ryrm-body #post_extra_tb label:hover{border-color:#f0c6cf;color:var(--accent);background:var(--accent-soft);}
.ryrm-body #post_extra_tb label span{color:inherit!important;font-size:inherit!important;}

/* 验证码 + 提交行 */
.ryrm-body #seccheck,.ryrm-body #seccodeimage,.ryrm-body .seccodecl{display:inline-flex;align-items:center;gap:10px;}
.ryrm-body #seccodeverify,.ryrm-body input[name="seccodeverify"]{
  width:120px!important;height:32px!important;padding:0 10px!important;border:1px solid var(--line)!important;border-radius:8px!important;
}
.ryrm-body .pnpost,.ryrm-body p.ptm.pnpost{
  display:flex!important;align-items:center;gap:14px;flex-wrap:wrap;
  margin:0!important;padding:14px 20px 18px!important;border-top:1px solid var(--line-2);background:#fff;
}
.ryrm-body .pnpost button,.ryrm-body .pnpost .pn,.ryrm-body .pnpost .pn.pnc{
  height:38px!important;line-height:36px!important;padding:0 22px!important;border-radius:10px!important;
  background:var(--accent)!important;color:#fff!important;border:1px solid var(--accent)!important;font-weight:600!important;
}
.ryrm-body .pnpost button:hover{background:#b8324a!important;}
.ryrm-body .pnpost .pn.pnpost2,.ryrm-body .pnpost .xg1{color:var(--muted)!important;font-size:12.5px;}
.ryrm-body .pnpost label,.ryrm-body .pnpost select{font-size:12.5px;color:var(--ink-2);}
.ryrm-body .pnpost select{height:32px;border:1px solid var(--line);border-radius:8px;background:#fff;}

/* ---------- 13.37 编辑器工具条图标（站点缺 static/image/common/editor.gif） ---------- */
/* 背景图已随主题放在 template/ryrm/images/editor.gif，各按钮的 background-position 仍用默认 CSS 的 */
.ryrm-body .edt .btn a,.ryrm-body .edt .btn a:hover,.ryrm-body #e_controls .btn a{
  background-image:url("/template/ryrm/images/editor.gif")!important;
  background-repeat:no-repeat;
}
.ryrm-body .edt .btn a{width:24px;height:24px;display:inline-block;vertical-align:middle;}
.ryrm-body .edt .btn a.bold,.ryrm-body .edt .btn a.italic{width:auto;}
.ryrm-body .edt .btn .b2l,.ryrm-body .edt .btn .b2r{float:none!important;display:inline-flex;align-items:center;}
.ryrm-body .edt .btn p,.ryrm-body .edt .btn div{float:none!important;display:inline-flex;align-items:center;margin:0;}
.ryrm-body .edt .btn select{margin:0 4px;}

/* ---------- 13.38 编辑器工具条：分组排布（覆盖 13.37 的粗略写法） ---------- */
.ryrm-body #e_controls .btn{
  display:flex!important;flex-wrap:wrap;align-items:center;gap:2px 0;float:none!important;
  width:auto!important;height:auto!important;
}
.ryrm-body #e_controls .btn>div{
  display:flex!important;flex-wrap:wrap;align-items:center;gap:2px;
  float:none!important;height:auto!important;padding:0 9px;
}
.ryrm-body #e_controls .btn>div+div{border-left:1px solid var(--line-2);}
.ryrm-body #e_controls .btn p{
  display:flex!important;flex-wrap:wrap;align-items:center;gap:2px;
  float:none!important;margin:0!important;height:auto!important;line-height:1!important;
}
.ryrm-body #e_controls .btn a{
  height:26px!important;padding:0!important;
  border-radius:6px;
  background-image:url("/template/ryrm/images/editor.gif")!important;
  background-repeat:no-repeat;
}
.ryrm-body #e_controls .btn a.dp{background-image:none!important;}
.ryrm-body #e_controls .btn a.dp{
  width:auto!important;min-width:0;padding:0 6px!important;height:26px!important;
  display:inline-flex!important;align-items:center;gap:4px;
  border:1px solid var(--line);border-radius:6px;font-size:12px;color:var(--ink-2);
}
.ryrm-body #e_controls .btn a.dp span{font-size:12px!important;line-height:1!important;color:inherit!important;}
.ryrm-body #e_controls .btn br{display:none!important;}
.ryrm-body #e_controls .btn span{display:inline-flex;align-items:center;}
.ryrm-body #e_controls .btn .esb,.ryrm-body #e_controls .btn .b1r{float:none!important;}

/* ---------- 13.39 编辑器右上角按钮（全屏 / 常用 / 纯文本） ---------- */
.ryrm-body #e_controls .y{display:flex!important;align-items:center;gap:6px;flex-wrap:wrap;}
.ryrm-body #e_controls .y p{display:inline-flex!important;margin:0!important;float:none!important;}
.ryrm-body #e_controls .y a{
  width:auto!important;min-width:0!important;height:26px!important;padding:0 10px!important;
  background-image:none!important;border:1px solid var(--line);border-radius:6px;
  font-size:12px;line-height:24px;color:var(--ink-2);display:inline-flex!important;align-items:center;
}
.ryrm-body #e_controls .y a:hover{background:var(--accent-soft)!important;border-color:#f0c6cf;color:var(--accent);}
.ryrm-body #e_controls .y label{font-size:12px;color:var(--ink-2);display:inline-flex;align-items:center;gap:4px;}

/* ---------- 13.41 编辑器按钮放大到 30px（图标由 ryrm.js 按 1.4 倍重排雪碧图） ---------- */
.ryrm-body #e_controls .btn a{
  height:26px!important;border-radius:6px;
}
.ryrm-body #e_controls .btn>div{padding:0 10px;gap:3px;}
.ryrm-body #e_controls .btn a.dp{height:30px!important;padding:0 8px!important;font-size:12.5px;}
.ryrm-body #e_controls .bar{min-height:56px;padding:10px 14px;}

/* ---------- 13.42 发起投票表单（.exfm / .sinf.sppoll / .sadd） ---------- */
.ryrm-body #postform .exfm.cl:not([id^='extra_']){
  display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start;
  padding:18px 20px 6px;border:0!important;border-top:1px solid var(--line-2)!important;height:auto!important;
}
.ryrm-body .sinf.sppoll{flex:1 1 520px;width:auto!important;float:none!important;}
.ryrm-body .sadd{flex:0 0 300px;width:auto!important;float:none!important;background:#fcfaf7;border:1px solid var(--line-2);border-radius:12px;padding:14px 16px;}
.ryrm-body .sinf h4.z,.ryrm-body .sadd h4{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 14px!important;
  font:600 13.5px/1.4 var(--font-sans)!important;color:var(--ink)!important;float:none!important;height:auto!important;
}
.ryrm-body .sinf h4 em{font-style:normal;color:var(--muted);font-weight:400;}
.ryrm-body .sinf h4 .xw0{font-size:12px;color:var(--ink-2);display:inline-flex;align-items:center;gap:4px;}
.ryrm-body #pollm_c_1,#pollm_c_2{margin:0!important;}
.ryrm-body #pollm_c_1 p,.ryrm-body #pollm_c_2 p{
  display:flex;align-items:center;gap:8px;height:auto!important;margin:0 0 9px!important;padding:0!important;
}
.ryrm-body #pollm_c_1 p input.px,.ryrm-body #pollm_c_2 p input.px{
  flex:1 1 auto;width:auto!important;height:38px;padding:0 12px;font-size:14px;
  border:1px solid var(--line);border-radius:9px;background:#fff;
}
.ryrm-body #pollm_c_1 p input.px:focus{border-color:#eaa9b6;box-shadow:0 0 0 3px rgba(207,58,82,.09);}
.ryrm-body #pollm_c_1 p a.d{
  order:3;flex:0 0 30px;width:30px!important;height:30px;line-height:30px;text-align:center;
  font-size:0!important;color:var(--muted);background:#f4f1ec;border-radius:8px;text-decoration:none;
}
.ryrm-body #pollm_c_1 p a.d:after{content:"\00d7";font-size:16px;line-height:30px;}
.ryrm-body #pollm_c_1 p a.d:hover{background:var(--accent-soft);color:var(--accent);}
.ryrm-body #pollm_c_1 p .webuploader-container,.ryrm-body #pollm_c_2 p .webuploader-container{
  order:2;flex:0 0 auto;width:auto!important;height:30px!important;background-image:none!important;
  border:1px solid var(--line);border-radius:8px;overflow:hidden;display:inline-flex!important;
}
.ryrm-body #pollm_c_1 p .webuploader-pick,.ryrm-body #pollm_c_2 p .webuploader-pick{
  position:static!important;padding:0 10px!important;height:30px!important;line-height:29px!important;
  font-size:12px;color:var(--ink-2);background:none!important;
}
.ryrm-body #pollm_c_1 p a[onclick*="addpolloption"]{
  display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:9px;
  border:1px dashed #d9d3cb;color:var(--ink-2);font-size:12.5px;text-decoration:none;background:#fff;
}
.ryrm-body #pollm_c_1 p a[onclick*="addpolloption"]:hover{border-color:var(--accent);color:var(--accent);}
.ryrm-body #polloption_hidden{display:none!important;}
.ryrm-body .sadd p{display:flex;align-items:center;gap:8px;margin:0 0 11px!important;height:auto!important;font-size:12.5px;color:var(--ink-2);}
.ryrm-body .sadd p label{font-size:12.5px;color:var(--ink-2);margin:0;}
.ryrm-body .sadd p input.pxs{width:62px!important;height:32px;padding:0 8px;text-align:center;border:1px solid var(--line);border-radius:8px;font-size:13px;}
.ryrm-body .sadd p input.pc{margin:0;}
.ryrm-body .sadd p.mbn label[for="visibilitypoll"],.ryrm-body .sadd p.mbn label[for="overt"]{color:var(--ink-2);}

/* ---------- 13.43 顶部三件事：翻页条成卡片、面包屑一条线、版块头不折行 ---------- */
/* 1) 顶部翻页条：原来裸在米色背景上，现在做成一条浅卡片 */
.ryrm-body #pgt.pgs.mbm.cl,
.ryrm-body #pgt{
  display:flex!important;align-items:center!important;flex-wrap:wrap;gap:10px;
  background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:10px 16px!important;margin:0 0 14px!important;
  min-height:56px;box-shadow:0 1px 2px rgba(20,20,23,.03);
}
.ryrm-body #pgt .pg{display:flex;align-items:center;gap:6px;border:0;padding:0;margin:0;}
.ryrm-body #pgt .pg>*{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;border-radius:9px;}
.ryrm-body #pgt .pg a,.ryrm-body #pgt .pg strong{
  border:1px solid var(--line);background:#fff;color:var(--ink-2)!important;
  font-size:13px;line-height:1;padding:0 9px;
}
.ryrm-body #pgt .pg strong{background:var(--accent);border-color:var(--accent);color:#fff!important;font-weight:600;}
.ryrm-body #pgt .pg a:hover{border-color:#eaa9b6;color:var(--accent)!important;}
.ryrm-body #pgt .pg label,.ryrm-body #pgt .pg input{height:32px;}
.ryrm-body #pgt .pg input.px{width:44px;border:1px solid var(--line);border-radius:9px;text-align:center;font-size:13px;}
.ryrm-body #pgt .pg .px_p{display:inline-flex;align-items:center;gap:4px;color:var(--muted);font-size:12.5px;border:0;background:none;}
.ryrm-body #pgt .pgt{display:none!important;}
.ryrm-body #pgt>.pgb.y{
  display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:9px;
  border:1px solid var(--line);background:#fff;color:var(--ink-2)!important;font-size:13px;text-decoration:none;
}
.ryrm-body #pgt>.pgb.y:hover{border-color:#eaa9b6;color:var(--accent)!important;}
.ryrm-body #pgt>.pgsbtn{
  display:inline-flex;align-items:center;height:36px;padding:0 20px;border-radius:10px;
  background:var(--accent);color:#fff!important;font-size:13.5px;font-weight:600;text-decoration:none;
  border:1px solid var(--accent);
}
.ryrm-body #pgt>.pgsbtn:first-of-type{margin-left:auto;}
.ryrm-body #pgt>.pgsbtn:hover{filter:brightness(1.06);color:#fff!important;}

/* 2) 面包屑：所有节点严格一条中线 */
.ryrm-body #pt,
.ryrm-body #pt .z{display:flex!important;align-items:center;flex-wrap:wrap;gap:7px;line-height:1!important;}
.ryrm-body #pt{padding:2px 0 12px!important;}
.ryrm-body #pt a,.ryrm-body #pt em,.ryrm-body #pt span{
  font-size:12.5px!important;line-height:1.4!important;display:inline-flex!important;align-items:center!important;
  height:18px;margin:0!important;padding:0!important;
}
.ryrm-body #pt em{font-style:normal;color:#c4bfb7;font-size:12px!important;}
.ryrm-body #pt a{color:var(--muted);text-decoration:none;}
.ryrm-body #pt a:hover{color:var(--accent);}
.ryrm-body #pt a.nvhm{background:none!important;text-indent:0!important;width:auto!important;overflow:visible!important;}

/* 3) 版块头：标题与右侧操作同一行，不折行不裁切 */
.ryrm-body #ct .bm_h{
  display:flex!important;align-items:center;justify-content:space-between;gap:18px;
  flex-wrap:nowrap;padding:14px 20px!important;min-height:58px;height:auto!important;overflow:visible!important;
}
.ryrm-body #ct .bm_h h1,.ryrm-body #ct .bm_h h2,.ryrm-body #ct .bm_h h3,
.ryrm-body #ct .bm_h .xs2{
  display:flex!important;align-items:center;gap:12px;flex-wrap:wrap;
  margin:0!important;padding:0!important;height:auto!important;line-height:1.35!important;
}
.ryrm-body #ct .bm_h .xs1{font-size:12.5px;color:var(--muted);font-weight:400;line-height:1.35!important;}
.ryrm-body #ct .bm_h .y{
  display:flex!important;align-items:center;gap:12px;float:none!important;
  margin:0!important;font-size:12.5px;white-space:nowrap;
}
.ryrm-body #ct .bm_h .y .pipe{display:none!important;}
.ryrm-body #ct .bm_h .y a{color:var(--muted);text-decoration:none;display:inline-flex;align-items:center;gap:4px;}
.ryrm-body #ct .bm_h .y a:hover{color:var(--accent);}

/* 4) 投票页 / 发帖页的 tab 条：容器是 #postform 时同样生效 */
.ryrm-body #postform ul.tb,
.ryrm-body #editorbox ul.tb{
  display:flex!important;align-items:center;gap:6px;flex-wrap:wrap;
  min-height:52px;padding:10px 16px!important;margin:0!important;
  background:#fcfaf7;border-bottom:1px solid var(--line-2);border-radius:0;
}
.ryrm-body #postform ul.tb li,.ryrm-body #editorbox ul.tb li{float:none!important;margin:0!important;padding:0!important;}
.ryrm-body #postform ul.tb li a,.ryrm-body #editorbox ul.tb li a{
  display:inline-flex;align-items:center;height:34px;padding:0 16px;border-radius:9px;
  font-size:13.5px;color:var(--ink-2);text-decoration:none;background:#fff;border:1px solid var(--line);
}
.ryrm-body #postform ul.tb li a.a,.ryrm-body #editorbox ul.tb li a.a,
.ryrm-body #postform ul.tb li.a a,.ryrm-body #editorbox ul.tb li.a a{
  background:var(--accent);border-color:var(--accent);color:#fff!important;font-weight:600;
}

/* ---------- 13.44 hide the "board topics" separator row ---------- */
.ryrm-body #separatorline,
.ryrm-body #threadlisttableid #separatorline,
.ryrm-body tbody#separatorline{display:none!important;}

/* ---------- 19. 底部翻页条 / 返回按钮（模块 CSS 在 ryrm.css 之后加载，这里必须 !important） ---------- */
/* 19.1 翻页容器：flex 一行，号码格子统一 */
.pg{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;border:0!important;background:none!important;}
.pg>a,.pg>strong,.pg>label,.pg span{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:34px!important;height:34px!important;padding:0 10px!important;margin:0!important;
  border:1px solid var(--line)!important;border-radius:9px!important;background:#fff!important;
  color:var(--ink-2)!important;font-size:13px!important;line-height:1!important;box-shadow:none!important;
}
.pg>strong{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;font-weight:600!important;}
.pg>a:hover{border-color:#eaa9b6!important;color:var(--accent)!important;}
.pg>label{border:0!important;background:none!important;color:var(--muted)!important;min-width:auto!important;padding:0 4px!important;}
.pg>label input{height:28px;border:1px solid var(--line);border-radius:6px;width:38px;text-align:center;}

/* 19.2 底部那条工具条（返回列表 / 发新帖 / 回复）做成卡片 */
.pgs.cl,.pgs.mtm.mbm.cl,.bm.bw0.pgs.cl{
  border:1px solid var(--line)!important;border-radius:12px!important;background:#fff!important;
  padding:10px 16px!important;margin:0 0 16px!important;box-shadow:var(--shadow)!important;
  display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;min-height:0!important;
}
.pgs.cl .pgsbtn,.pgs.cl .pgb.y{margin:0!important;}

/* 19.3 返回列表 / 返回 按钮（外层 span.pgb.y + 内层 a，两层的默认样式都要清掉） */
.pgb.y,.pgb{
  display:inline-flex!important;align-items:center!important;height:34px!important;padding:0!important;
  border:1px solid var(--line)!important;border-radius:9px!important;background:#fff!important;
  color:var(--ink-2)!important;font-size:13px!important;line-height:1!important;overflow:hidden!important;
}
.pgb.y>a,.pgb>a,.pgb.y a,.pgb a{
  display:inline-flex!important;align-items:center!important;height:100%!important;padding:0 14px!important;
  margin:0!important;border:0!important;border-radius:0!important;background:none!important;
  color:var(--ink-2)!important;font-size:13px!important;line-height:1!important;text-decoration:none!important;
}
.pgb.y>a:hover,.pgb>a:hover,.pgb.y a:hover,.pgb a:hover{color:var(--accent)!important;background:var(--accent-soft)!important;}

/* 19.4 帖子页「返回列表」在左、发新帖/回复靠右（顶部与底部一致） */
.pgs.cl>.pgsbtn:first-of-type{margin-left:auto!important;}
/* ---------- 20. 底部翻页条收尾 ---------- */
/* 20.1 列表底部的「下一页 »」（ajax 自动加载控件）与翻页条重复，隐藏 */
#autopbn{display:none!important;}

/* 20.2 跳页输入框：不要撑高整条 */
.pg>label{display:inline-flex!important;align-items:center!important;gap:4px!important;height:34px!important;border:0!important;background:none!important;padding:0 2px!important;color:var(--muted)!important;font-size:12.5px!important;}
.pg>label input,.pg>label .px{
  width:40px!important;height:30px!important;line-height:28px!important;padding:0!important;
  border:1px solid var(--line)!important;border-radius:7px!important;background:#fff!important;
  text-align:center!important;font-size:12.5px!important;color:var(--ink)!important;
}
.pg>label input:focus{border-color:#eaa9b6!important;outline:none!important;}

/* 20.3 翻页条里的「下一页 / 上一页」文字按钮 */
.pg>a.next,.pg>a.prev,.pg>label~a{white-space:nowrap!important;}

/* 20.4 底部条与上方列表的间距（避免贴在一起） */
.pgs.cl{margin-top:14px!important;}
/* ---------- 21. 收尾：底部「下一页」条与 .pg 内边距 ---------- */
/* 21.1 列表底部那个 a#autopbn 带了 .bm_h 类，被我们做成整条白卡，这里整条不要 */
a#autopbn,#autopbn{display:none!important;visibility:hidden!important;height:0!important;border:0!important;padding:0!important;margin:0!important;}
/* 21.2 翻页容器不要自带内边距（默认模板给它上下 padding，撑成 78px 高） */
.pg{padding:0!important;margin:0!important;min-height:0!important;height:auto!important;}
.pg>a,.pg>strong,.pg>label{flex:0 0 auto!important;}
/* ---------- 22. 底部「下一页」条彻底隐藏（模块 CSS 里有更高优先级的 #autopbn 规则） ---------- */
html body a#autopbn,html body a#autopbn.bm_h,body.ryrm-body a#autopbn.bm_h{
  display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;
  padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;
}
/* ==========================================================================
   23. 图片灯箱 / 顶部翻页 / 导读页列表 / 头像兜底
   ========================================================================== */

/* 23.1 顶栏 z-index 降到灯箱之下（原来 900 会盖住灯箱顶部） */
.ryrm-head{z-index:300!important;}
.ryrm-topbar{z-index:310!important;}

/* 23.2 灯箱：容器提到顶栏之上，遮罩铺满视口 */
#imgzoom{z-index:9000!important;position:fixed!important;}
#imgzoom_cover{
  position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;
  z-index:8990!important;background:rgba(10,10,12,.92)!important;
}
/* 灯箱里的图片不要被全局 img{max-width} 钳制，否则滚轮缩放会横向拉长 */
html body #imgzoom img,html body #imgzoom_waiting{
  max-width:none!important;max-height:none!important;object-fit:contain!important;
}
/* 打开灯箱时隐藏返回顶部按钮，避免它压在图上 */
.ryrm-body:has(#imgzoom) .ryrm-topbtn{opacity:0!important;pointer-events:none!important;}
.ryrm-topbtn{z-index:200!important;}

/* 23.3 顶部工具条：一律不要翻页，只留「返回列表 / 发新帖 / 回复」 */
#pgt .pg,#pgt .pgt,#pgt label{display:none!important;}
#pgt{display:flex!important;align-items:center!important;gap:10px!important;}
#pgt>.pgb.y{margin-left:0!important;}
#pgt>.pgsbtn:first-of-type{margin-left:auto!important;}

/* 23.4 导读页（forum.php?mod=guide&view=new）列表：导读页的表没有 id，
   统一按 .tl 容器 + tbody[id^=normalthread] 的通用结构写 */
.tl>.bm_c>table,.tl table{width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;}
.tl tbody[id^="normalthread"]>tr>td,.tl tbody[id^="normalthread"]>tr>th{
  padding:14px 12px!important;border-bottom:1px solid var(--line-2)!important;vertical-align:middle!important;
}
.tl tbody[id^="normalthread"] td.icn{width:44px!important;text-align:center!important;}
.tl tbody[id^="normalthread"] td.icn i.fico-thread{
  width:28px!important;height:28px!important;line-height:28px!important;border-radius:8px!important;
  background:var(--accent-soft)!important;color:var(--accent)!important;font-size:14px!important;
}
.tl tbody[id^="normalthread"] th{text-align:left!important;}
.tl tbody[id^="normalthread"] th>a.xst{
  display:inline!important;font-size:15px!important;font-weight:600!important;color:var(--ink)!important;
  font-family:var(--font-sans)!important;text-decoration:none!important;
}
.tl tbody[id^="normalthread"] th>a.xst:hover{color:var(--accent)!important;}
.tl tbody[id^="normalthread"] td.by{width:132px!important;font-size:12.5px!important;color:var(--muted)!important;white-space:nowrap!important;overflow:hidden!important;}
.tl tbody[id^="normalthread"] td.by a{color:var(--muted)!important;}
.tl tbody[id^="normalthread"] td.by a:hover{color:var(--accent)!important;}
.tl tbody[id^="normalthread"] td.num{width:74px!important;text-align:right!important;font-variant-numeric:tabular-nums!important;}
.tl tbody[id^="normalthread"] td.num a{color:var(--accent)!important;font-weight:600!important;font-size:13px!important;}
.tl tbody[id^="normalthread"]:hover{background:#fcfaf7!important;}
.tl tbody[id^="stickthread"]>tr>td,.tl tbody[id^="stickthread"]>tr>th{border-bottom:1px solid var(--line-2)!important;}

/* 23.5 头像永远别被 .imgfail 隐藏（滚动回滚时懒加载会短暂报错） */
.ryrm-body #postlist .favatar img,.ryrm-body #postlist .avatar img,
.ryrm-body .favatar img,.ryrm-body .avatar img,
.ryrm-body img[src*="avatar.php"],.ryrm-body img[src*="uc_server"]{
  display:inline-block!important;visibility:visible!important;
}
.ryrm-body .favatar img.imgfail,.ryrm-body .avatar img.imgfail{display:inline-block!important;}
/* 23.6 顶部工具条不再做成整条卡片（翻页已隐藏，只剩按钮），靠右对齐更干净 */
#pgt.bm,#pgt.pgs.cl{
  background:transparent!important;border:0!important;box-shadow:none!important;
  padding:0!important;margin:0 0 12px!important;min-height:0!important;height:auto!important;
  display:flex!important;align-items:center!important;gap:10px!important;justify-content:flex-end!important;
}
#pgt>.pgb.y{margin-right:auto!important;}
#pgt>.pgsbtn{margin-left:0!important;}
/* 23.7 灯箱图片：只解除全局 img 的尺寸钳制，不强制宽高（否则和缩放脚本打架） */
html body #imgzoom img{
  max-width:none!important;max-height:none!important;
  object-fit:contain!important;transition:none!important;
}
html body #imgzoom_cover{background-color:rgba(10,10,12,.92)!important;}
/* ==========================================================================
   24. 灯箱关闭 / 下拉菜单 / 会员卡 / 悬停态
   ========================================================================== */

/* 24.1 灯箱遮罩：只给底色，绝不碰 display/opacity（否则关不掉） */
html body #imgzoom_cover{background-color:rgba(10,10,12,.92)!important;}

/* 24.2 通用弹出菜单（发新帖下拉 newspecial_menu 等，均是 .p_pop） */
.ryrm-body .p_pop:not(.bui):not(div[id^="userinfo"]){
  background:#fff!important;border:1px solid var(--line)!important;border-radius:12px!important;
  box-shadow:0 18px 40px -14px rgba(20,20,23,.28),0 2px 6px rgba(20,20,23,.06)!important;
  padding:6px!important;min-width:150px!important;z-index:9500!important;
}
.ryrm-body .p_pop:not(.bui) a,.ryrm-body .p_pop:not(.bui) li{
  display:block!important;padding:8px 12px!important;border-radius:8px!important;
  color:var(--ink-2)!important;font-size:13px!important;line-height:1.5!important;text-decoration:none!important;
  white-space:nowrap!important;background:none!important;border:0!important;
}
.ryrm-body .p_pop:not(.bui) a:hover,.ryrm-body .p_pop:not(.bui) li:hover>a{background:var(--accent-soft)!important;color:var(--accent)!important;}
.ryrm-body .p_pop:not(.bui) hr,border-color:var(--line-2)!important;}

/* 24.3 会员信息卡（悬停头像 / 用户名弹出） */
.ryrm-body .bui,.ryrm-body .userinfo,.ryrm-body div[id^="userinfo"]{
  background:#fff!important;border:1px solid var(--line)!important;border-radius:14px!important;
  box-shadow:0 22px 50px -18px rgba(20,20,23,.3)!important;padding:14px!important;
  z-index:9600!important;min-width:220px!important;
}
.ryrm-body .bui .imicn img,.ryrm-body .userinfo img{display:inline-block!important;}

/* 24.4 悬停态：按钮 / 分页 / 标签页 / 管理条 / 面包屑 */
.ryrm-body .pn:hover,.ryrm-body .pnc:hover,.ryrm-body .pgsbtn:hover{
  background:var(--accent-300,#d4556a)!important;border-color:transparent!important;color:#fff!important;
}
.ryrm-body .pg a:hover{background:var(--accent-soft)!important;border-color:#eaa9b6!important;color:var(--accent)!important;}
.ryrm-body ul.tb li a:hover{background:#f7f4ef!important;color:var(--accent)!important;}
.ryrm-body #modmenu a:hover{background:var(--accent)!important;color:#fff!important;border-color:transparent!important;}
.ryrm-body #pt a:hover{color:var(--accent)!important;}
.ryrm-body .xst:hover,.ryrm-body a.xs2:hover{color:var(--accent)!important;}
.ryrm-body .pgt a:hover,.ryrm-body a.showmenu:hover{background:var(--accent-soft)!important;color:var(--accent)!important;}
.ryrm-body .pgb.y:hover,.ryrm-body .pgb.y>a:hover{background:var(--accent-soft)!important;color:var(--accent)!important;border-color:#eaa9b6!important;}

/* 24.5 编辑器工具条与按钮的悬停 */
.ryrm-body #e_controls .btn a:hover,.ryrm-body #e_controls a:hover{
  background-color:var(--accent-soft)!important;border-radius:6px!important;
}
.ryrm-body #post_extra_tb label:hover,.ryrm-body #post_extra_tb span:hover{background:var(--accent-soft)!important;color:var(--accent)!important;}
.ryrm-body .edt .bar a:hover{background-color:var(--accent-soft)!important;}

/* 24.6 帖子页楼层按钮 / 工具栏按钮的悬停 */
.ryrm-body #p_btn a:hover{background:var(--accent-soft)!important;border-color:#eaa9b6!important;color:var(--accent)!important;}
.ryrm-body .pi a:hover{color:var(--accent)!important;}
.ryrm-body .po a:hover{color:var(--accent)!important;}

/* 24.7 「发新帖」下拉按钮本体 */
.ryrm-body a#newspecial.pgsbtn{position:relative!important;}
/* 25. 弹出层里的图标不要被「缺图兜底」的全局规则隐藏（会员卡/下拉菜单/浮窗） */
.ryrm-body #append_parent img,
.ryrm-body .p_pop img,
.ryrm-body .bui img,
.ryrm-body div[id^="userinfo"] img,
.ryrm-body .fwin img{
  display:inline-block!important;visibility:visible!important;
}
/* 26. 会员卡（.bui 本身也带 .p_pop 类，不能套用菜单规则） */
.ryrm-body .bui,.ryrm-body div[id^="userinfo"]{
  display:block;padding:14px 16px!important;line-height:1.7!important;
}
.ryrm-body .bui a,.ryrm-body div[id^="userinfo"] a{
  display:inline!important;padding:0!important;border-radius:0!important;color:var(--accent)!important;
  background:none!important;font-size:13px!important;white-space:normal!important;
}
.ryrm-body .bui a:hover,.ryrm-body div[id^="userinfo"] a:hover{text-decoration:underline!important;background:none!important;}
.ryrm-body .bui .mbn,.ryrm-body div[id^="userinfo"] .mbn{font-size:13px!important;color:var(--ink-2)!important;}
/* ==========================================================================
   27. 楼层头像不再被脚本改成绝对定位 / 灯箱加载图标不残留
   ========================================================================== */

/* 27.1 Discuz 会把楼层头像列改成 position:absolute（长帖「头像跟随」），
   导致头像列塌陷、下拉返回后头像消失；这里用 !important 压掉行内样式 */
.ryrm-body #postlist td.pls,
.ryrm-body #postlist td.pls.ptn,
.ryrm-body #postlist tbody>tr>td.pls{
  position:static!important;
}
.ryrm-body #postlist td.pls>div.favatar,
.ryrm-body #postlist div[id^="favatar"]{
  position:static!important;bottom:auto!important;top:auto!important;left:auto!important;right:auto!important;
}
.ryrm-body #postlist td.pls .favatar{min-height:0!important;}

/* 27.2 灯箱的 loading 图（img#imgzoom_waiting）留在页面中间不消失：
   它也是 #append_parent 里的 img，被 25 节的兜底规则强制显示了 */
html body #imgzoom_waiting{display:none!important;visibility:hidden!important;}
/* 27.3 提高优先级：#append_parent img 的兜底规则比 html body #imgzoom_waiting 更"重"，
   这里用双 id 选择器确保 loading 图一定隐藏 */
html body #append_parent img#imgzoom_waiting,
html body img#imgzoom_waiting{
  display:none!important;visibility:hidden!important;width:0!important;height:0!important;opacity:0!important;
}
/* ==========================================================================
   28. 群组首页 group.php
   ========================================================================== */

/* 28.1 「群组焦点」条：标题左对齐，右侧「我的群组」做胶囊 */
.ryrm-body .bm.bmw>.bm_h,.ryrm-body #g_commend>.bm_h{text-align:left!important;}
.ryrm-body .bm.bmw>.bm_h>h2{text-align:left!important;flex:1 1 auto!important;}
.ryrm-body .bm.bmw>.bm_h>.y,.ryrm-body .bm.bmw>.bm_h>.y>a{
  font-size:12.5px!important;color:var(--muted)!important;font-weight:400!important;
}
.ryrm-body .bm.bmw>.bm_h>.y>a:hover{color:var(--accent)!important;}

/* 28.2 推荐群组：横向卡片 */
.ryrm-body #g_commend .bm_c{padding:16px 20px!important;}
.ryrm-body #g_commend .xld{
  display:flex!important;flex-wrap:wrap!important;gap:14px!important;align-items:center!important;
  border:1px solid var(--line)!important;border-radius:var(--r-md)!important;padding:14px!important;margin:0!important;
}
.ryrm-body #g_commend .xld:hover{border-color:#eaa9b6!important;box-shadow:0 10px 24px -14px rgba(20,20,23,.22)!important;}
.ryrm-body #g_commend .xld .m{margin:0!important;}
.ryrm-body #g_commend .xld .m img{
  width:56px!important;height:56px!important;border-radius:14px!important;display:block!important;
}
.ryrm-body #g_commend .xld dt{font-size:15px!important;font-weight:600!important;margin:0!important;}
.ryrm-body #g_commend .xld dt a{color:var(--ink)!important;}
.ryrm-body #g_commend .xld dt a:hover{color:var(--accent)!important;}
.ryrm-body #g_commend .xld dd.xg1{font-size:12.5px!important;color:var(--muted)!important;margin:2px 0 0!important;}

/* 28.3 群组分类：每行「分类名 + 数量 + 子分类链接」 */
.ryrm-body #ct .mn .bm_c>dl.mbm{
  display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:6px 14px!important;
  padding:15px 4px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--line-2)!important;
}
.ryrm-body #ct .mn .bm_c>dl.mbm:last-child{border-bottom:0!important;}
.ryrm-body #ct .mn .bm_c>dl.mbm>dt{
  display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:6px 10px!important;
  width:100%!important;padding:0!important;float:none!important;
}
.ryrm-body #ct .mn .bm_c>dl.mbm>dt>strong{order:1!important;font-size:14.5px!important;font-weight:600!important;}
.ryrm-body #ct .mn .bm_c>dl.mbm>dt>strong>a{color:var(--ink)!important;}
.ryrm-body #ct .mn .bm_c>dl.mbm>dt>strong>a:hover{color:var(--accent)!important;}
.ryrm-body #ct .mn .bm_c>dl.mbm>dt>span.xg1{
  order:2!important;font-size:11.5px!important;color:var(--accent)!important;background:var(--accent-soft)!important;
  padding:1px 7px!important;border-radius:99px!important;
}
.ryrm-body #ct .mn .bm_c>dl.mbm>dt>span.y{order:3!important;margin-left:auto!important;float:none!important;font-size:12.5px!important;}
.ryrm-body #ct .mn .bm_c>dl.mbm>dt>span.y>a{
  display:inline-block!important;margin-left:6px!important;padding:2px 9px!important;border-radius:99px!important;
  background:#f7f4ef!important;color:var(--ink-2)!important;font-size:12.5px!important;
}
.ryrm-body #ct .mn .bm_c>dl.mbm>dt>span.y>a:hover{background:var(--accent-soft)!important;color:var(--accent)!important;}
.ryrm-body #ct .mn .bm_c>dl.mbm>dd{
  width:100%!important;margin:4px 0 0!important;font-size:13px!important;color:var(--ink-2)!important;
}
.ryrm-body #ct .mn .bm_c>dl.mbm>dd>a{
  display:inline-block!important;padding:3px 10px!important;margin:2px 6px 2px 0!important;
  border:1px solid var(--line)!important;border-radius:8px!important;color:var(--ink-2)!important;font-size:12.5px!important;
}
.ryrm-body #ct .mn .bm_c>dl.mbm>dd>a:hover{border-color:#eaa9b6!important;color:var(--accent)!important;background:var(--accent-soft)!important;}

/* 28.4 侧栏：创建群组步骤（编号 + 虚线去掉） */
.ryrm-body #g_guide{margin:0 0 14px!important;padding:0!important;list-style:none!important;counter-reset:gstep!important;}
.ryrm-body #g_guide li{
  counter-increment:gstep;position:relative!important;padding:10px 0 10px 34px!important;
  border-bottom:1px dashed var(--line-2)!important;background:none!important;
}
.ryrm-body #g_guide li:last-child{border-bottom:0!important;}
.ryrm-body #g_guide li:before{
  content:counter(gstep);position:absolute!important;left:0!important;top:11px!important;
  width:22px!important;height:22px!important;line-height:22px!important;text-align:center!important;
  border-radius:50%!important;background:var(--accent-soft)!important;color:var(--accent)!important;font-size:12px!important;font-weight:600!important;
}
.ryrm-body #g_guide li label{display:block!important;cursor:default!important;}
.ryrm-body #g_guide li strong{display:block!important;font-size:13.5px!important;color:var(--ink)!important;font-weight:600!important;}
.ryrm-body #g_guide li span{display:block!important;font-size:12px!important;color:var(--muted)!important;margin-top:2px!important;}
.ryrm-body #create_group_btn{
  display:block!important;width:100%!important;box-sizing:border-box!important;text-align:center!important;
  height:38px!important;line-height:36px!important;border-radius:10px!important;
  background:var(--accent)!important;color:#fff!important;font-size:13.5px!important;font-weight:600!important;border:0!important;
}
.ryrm-body #create_group_btn:hover{background:#d4556a!important;}

/* 28.5 群组积分排行 */
.ryrm-body #g_top ol.xl{list-style:none!important;margin:0!important;padding:0!important;counter-reset:grank!important;}
.ryrm-body #g_top ol.xl li{
  counter-increment:grank;display:flex!important;align-items:center!important;gap:8px!important;
  padding:8px 0!important;border-bottom:1px solid var(--line-2)!important;font-size:13px!important;
}
.ryrm-body #g_top ol.xl li:last-child{border-bottom:0!important;}
.ryrm-body #g_top ol.xl li:before{
  content:counter(grank);flex:0 0 18px!important;width:18px!important;height:18px!important;line-height:18px!important;
  text-align:center!important;border-radius:5px!important;background:#f2efe9!important;color:var(--muted)!important;font-size:11px!important;
}
.ryrm-body #g_top ol.xl li:nth-child(1):before{background:var(--accent)!important;color:#fff!important;}
.ryrm-body #g_top ol.xl li:nth-child(2):before{background:#e8b04b!important;color:#fff!important;}
.ryrm-body #g_top ol.xl li:nth-child(3):before{background:#b9a08a!important;color:#fff!important;}
.ryrm-body #g_top ol.xl li>a{flex:1 1 auto!important;color:var(--ink)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.ryrm-body #g_top ol.xl li>a:hover{color:var(--accent)!important;}
.ryrm-body #g_top ol.xl li>span{flex:0 0 auto!important;font-size:12px!important;color:var(--muted)!important;}
/* 29. 群组页收尾 */
.ryrm-body #g_commend .xld{width:100%!important;box-sizing:border-box!important;}
.ryrm-body #g_guide li label{background:none!important;padding-left:0!important;}
.ryrm-body #g_top ol.xl li>a{order:1!important;}
.ryrm-body #g_top ol.xl li>span{order:2!important;}
.ryrm-body #g_top ol.xl li:before{order:0!important;}
/* 29.1 步骤列表里的雪碧图标与编号圆点重复，隐藏图标 */
.ryrm-body #g_guide li>i,.ryrm-body #g_guide li>img,.ryrm-body #g_guide li>em{display:none!important;}
/* ==========================================================================
   30. 导读页顶部那条「订阅 / 最新回复」空白卡
   ========================================================================== */
.ryrm-body .bm.bml.pbn>.bm_h{
  text-align:left!important;align-items:center!important;
  min-height:56px!important;padding:0 20px!important;
}
.ryrm-body .bm.bml.pbn>.bm_h>h1,
.ryrm-body .bm.bml.pbn>.bm_h>h2{
  text-align:left!important;margin:0!important;font-size:16px!important;font-weight:600!important;color:var(--ink)!important;
}
/* 订阅（RSS）做成小胶囊 */
.ryrm-body .bm.bml.pbn>.bm_h>.y{float:none!important;margin-left:auto!important;}
.ryrm-body .bm.bml.pbn>.bm_h>.y>a.fa_rss{
  display:inline-flex!important;align-items:center!important;gap:5px!important;
  height:28px!important;padding:0 12px!important;border-radius:99px!important;
  background:#f7f4ef!important;color:var(--muted)!important;font-size:12.5px!important;
  background-image:none!important;
}
.ryrm-body .bm.bml.pbn>.bm_h>.y>a.fa_rss:before{content:"◎";font-size:13px;color:var(--accent);}
.ryrm-body .bm.bml.pbn>.bm_h>.y>a.fa_rss:hover{background:var(--accent-soft)!important;color:var(--accent)!important;}
/* 版规为空时整块收掉 */
.ryrm-body div[id^="forum_rules_"]{padding:0!important;margin:0!important;min-height:0!important;}
.ryrm-body .bm_c.is-empty{display:none!important;}
/* 30.1 纯 CSS 兜底：版规块只有一个空的 .ptn 时，整个 .bm_c 收掉 */
.ryrm-body .bm_c:has(> div[id^="forum_rules_"] > .ptn:empty){display:none!important;}
/* 30.2 头部条改 flex：标题在左、订阅在右 */
.ryrm-body .bm.bml.pbn>.bm_h{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
}
.ryrm-body .bm.bml.pbn>.bm_h>h1,
.ryrm-body .bm.bml.pbn>.bm_h>h2{
  order:1!important;flex:1 1 auto!important;text-align:left!important;
}
.ryrm-body .bm.bml.pbn>.bm_h>.y{order:2!important;flex:0 0 auto!important;margin-left:12px!important;}
/* ==========================================================================
   31. 帖子页左侧作者栏重排（头像下：用户组 / 积分 / 收听 / 管理链接）
   ========================================================================== */
.ryrm-body #postlist td.pls{text-align:center!important;}
.ryrm-body #postlist .favatar{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  gap:0!important;width:100%!important;height:auto!important;
}
/* 用户名 */
.ryrm-body #postlist .favatar>.pi{margin-bottom:8px!important;}
/* 用户组（中级会员）做成小胶囊 */
.ryrm-body #postlist .favatar>p{margin:8px 0 0!important;line-height:1!important;}
.ryrm-body #postlist .favatar>p>em>a{
  display:inline-block!important;height:22px!important;line-height:22px!important;
  padding:0 10px!important;border-radius:99px!important;
  background:var(--accent-soft)!important;color:var(--accent)!important;
  font-size:11.5px!important;font-weight:600!important;font-style:normal!important;
}
/* 积分行：label 与数值同基线居中 */
.ryrm-body #postlist .favatar>dl.pil{
  display:flex!important;align-items:baseline!important;justify-content:center!important;
  gap:8px!important;width:100%!important;height:auto!important;
  margin:6px 0 0!important;padding:0!important;border:0!important;background:none!important;
}
.ryrm-body #postlist .favatar>dl.pil>dt{width:auto!important;color:var(--muted)!important;font-size:11.5px!important;font-weight:400!important;}
.ryrm-body #postlist .favatar>dl.pil>dd{width:auto!important;margin:0!important;}
.ryrm-body #postlist .favatar>dl.pil>dd a{color:var(--ink)!important;font-size:12.5px!important;font-weight:600!important;}
.ryrm-body #postlist .favatar>dl.pil:empty{display:none!important;}
/* 收听TA / 发消息：竖排等宽胶囊 */
.ryrm-body #postlist .favatar>ul.xl{
  display:flex!important;flex-direction:column!important;gap:6px!important;
  width:100%!important;height:auto!important;margin:12px 0 0!important;padding:0!important;
  list-style:none!important;
}
.ryrm-body #postlist .favatar>ul.xl>li{
  float:none!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;
}
.ryrm-body #postlist .favatar>ul.xl>li>a{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  width:100%!important;height:26px!important;line-height:24px!important;
  border:1px solid var(--line)!important;border-radius:99px!important;background:#fff!important;
  color:var(--ink-2)!important;font-size:12px!important;
}
.ryrm-body #postlist .favatar>ul.xl>li>a:hover{border-color:#eaa9b6!important;color:var(--accent)!important;background:var(--accent-soft)!important;}
.ryrm-body #postlist .favatar>ul.xl>li>a i{font-size:12px!important;color:var(--accent)!important;}
/* IP 编辑 禁止 帖子 清理：一行小灰字，中间用点分隔 */
.ryrm-body #postlist .favatar>p.cp_pls{
  display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;
  gap:6px!important;width:100%!important;margin:10px 0 0!important;padding-top:8px!important;
  border-top:1px dashed var(--line-2)!important;
}
.ryrm-body #postlist .favatar>p.cp_pls>a{
  color:var(--lighttext)!important;font-size:11px!important;line-height:1.2!important;
}
.ryrm-body #postlist .favatar>p.cp_pls>a:hover{color:var(--accent)!important;}
/* 31.1 收听/发消息前面那个脱离胶囊的图标藏掉（图标在 li 内、胶囊是 a） */
.ryrm-body #postlist .favatar>ul.xl>li>i,
.ryrm-body #postlist .favatar>ul.xl>li>em,
.ryrm-body #postlist .favatar>ul.xl>li>span{display:none!important;}
/* 31.2 收听/发消息胶囊：去掉背景雪碧图，图标改用字符，文字真正居中 */
.ryrm-body #postlist .favatar>ul.xl>li>a{
  background-image:none!important;padding:0 10px!important;text-indent:0!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
}
.ryrm-body #postlist .favatar>ul.xl>li.addflw>a:before{content:"＋";font-size:12px;color:var(--accent);}
.ryrm-body #postlist .favatar>ul.xl>li.pm2>a:before{content:"✉";font-size:11px;color:var(--accent);}
/* 31.3 li 上的雪碧图标（蓝色小人/信封）藏在胶囊外面，去掉 */
.ryrm-body #postlist .favatar>ul.xl>li.addflw,
.ryrm-body #postlist .favatar>ul.xl>li.pm2{background-image:none!important;padding-left:0!important;}

/* ==========================================================================
   32. 右上角「发帖」：悬停选版块
   ========================================================================== */
.ryrm-body .ryrm-user .post-drop{position:relative;display:inline-block;}
.ryrm-body .ryrm-user .post-drop>.drop{
  position:absolute!important;right:0!important;top:calc(100% + 10px)!important;left:auto!important;
  display:none;min-width:200px;max-height:380px;overflow:auto;
  background:#fff;border:1px solid var(--line);border-radius:14px;
  box-shadow:0 18px 40px -18px rgba(20,20,23,.28);padding:8px;z-index:1200;
}
.ryrm-body .ryrm-user .post-drop:hover>.drop{display:block;}
.ryrm-body .ryrm-user .post-drop>.drop:before{
  content:"选择版块发帖";display:block;padding:6px 10px 8px;
  font-size:11.5px;color:var(--lighttext);border-bottom:1px solid var(--line-2);margin-bottom:6px;
}
.ryrm-body .ryrm-user .post-drop>.drop>a{
  display:block;padding:8px 10px;border-radius:9px;
  font-size:13px;color:var(--ink-2);white-space:nowrap;
}
.ryrm-body .ryrm-user .post-drop>.drop>a:hover{background:var(--accent-soft);color:var(--accent);}
/* ==========================================================================
   33. 编辑器「上传图片 / 附件」浮层面板（table.fwin）
   ========================================================================== */
.ryrm-body table.fwin{
  background:#fff!important;border:1px solid var(--line)!important;border-radius:14px!important;
  box-shadow:0 22px 50px -22px rgba(20,20,23,.42)!important;overflow:hidden!important;
  border-collapse:separate!important;border-spacing:0!important;
}
.ryrm-body table.fwin td,.ryrm-body table.fwin th{background:#fff!important;border:0!important;}
.ryrm-body table.fwin tr:first-child td{background:#fcfaf7!important;border-bottom:1px solid var(--line-2)!important;}
.ryrm-body table.fwin a,.ryrm-body table.fwin span.btn,.ryrm-body table.fwin .btn{
  border-radius:8px!important;font-size:12.5px!important;
}
.ryrm-body table.fwin a[href*="upload"],.ryrm-body table.fwin .btn{
  background:var(--accent)!important;color:#fff!important;border-color:var(--accent)!important;
  padding:6px 14px!important;display:inline-block!important;
}
.ryrm-body table.fwin .tab,.ryrm-body table.fwin a.tab{
  background:transparent!important;color:var(--ink-2)!important;
}
.ryrm-body table.fwin input[type="file"]{border:0!important;background:none!important;}
.ryrm-body .upfl,.ryrm-body .upfilelist{background:#fff!important;border:0!important;}
/* 33.1 修：确定按钮被 overflow 裁掉；webuploader 按钮跟主题一致 */
.ryrm-body table.fwin{overflow:visible!important;}
.ryrm-body table.fwin td:first-child{border-bottom-left-radius:14px!important;}
.ryrm-body table.fwin td:last-child{border-bottom-right-radius:14px!important;}
.ryrm-body .webuploader-pick,
.ryrm-body span.webuploader-pick{
  background:var(--accent)!important;color:#fff!important;border-radius:8px!important;
  padding:7px 14px!important;font-size:12.5px!important;line-height:1!important;display:inline-block!important;
  box-shadow:none!important;
}
.ryrm-body .webuploader-container{background:none!important;}
/* 33.2 webuploader 容器是 26×26 的内联尺寸，放开它按钮才不被压成方块 */
.ryrm-body .webuploader-container{
  width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;
  background:none!important;border:0!important;overflow:visible!important;
}
.ryrm-body .webuploader-pick{width:auto!important;height:auto!important;}
   40. 空间页 / 会员中心 / 门户管理 / 管理条 / 上传弹窗 / 悬停桥接
   ========================================================================== */

/* 40.1 悬停不断档：按钮与面板之间补一条透明桥，鼠标走过去不会掉 */
.ryrm-body .ryrm-user .post-drop:after{
  content:"";position:absolute;left:-6px;right:-6px;top:100%;height:14px;
}
.ryrm-body .ryrm-user .post-drop>.drop{top:100%!important;margin-top:6px!important;}
.ryrm-body .ryrm-nav li.has-drop:after{
  content:"";position:absolute;left:0;right:0;top:100%;height:10px;
}
.ryrm-body .ryrm-user .post-drop>.btn-reg{min-width:66px!important;text-align:center!important;}

/* 40.2 空间页头（template/ryrm/home/space_header.htm） */
.ryrm-body #hd.ryrm-space-hd{
  display:block!important;width:min(var(--wrap),94vw)!important;margin:18px auto 0!important;
  padding:20px 24px 0!important;background:#fff;border:1px solid var(--line);border-radius:16px;
  box-shadow:var(--shadow-sm);
}
.ryrm-body #hd.ryrm-space-hd h2#spaceinfoshow{float:none!important;display:block!important;margin:0!important;padding:0!important;}
.ryrm-body #hd.ryrm-space-hd #spacename{font:600 24px/1.3 var(--font-serif)!important;color:var(--ink)!important;}
.ryrm-body #hd.ryrm-space-hd #spacedescription{display:block;margin-top:6px!important;color:var(--ink-2)!important;font-size:13px!important;}
.ryrm-body #hd.ryrm-space-hd .xs0{display:block;margin-top:8px!important;color:var(--muted)!important;font-size:12px!important;}
.ryrm-body #hd.ryrm-space-hd .xs0 a{color:var(--muted)!important;}
.ryrm-body #hd.ryrm-space-hd .xs0 a:hover{color:var(--accent)!important;}
/* 空间导航 tab */
.ryrm-body #hd.ryrm-space-hd ul.tb{display:flex!important;flex-wrap:wrap!important;gap:4px!important;margin:14px 0 0!important;padding:0!important;border:0!important;background:none!important;}
.ryrm-body #hd.ryrm-space-hd ul.tb>li{float:none!important;display:block!important;margin:0!important;padding:0!important;border:0!important;background:none!important;}
.ryrm-body #hd.ryrm-space-hd ul.tb>li>a{
  display:block!important;height:36px!important;line-height:36px!important;padding:0 14px!important;
  border-radius:9px!important;font-size:13.5px!important;color:var(--ink-2)!important;background:none!important;border:0!important;
}
.ryrm-body #hd.ryrm-space-hd ul.tb>li>a:hover{background:var(--accent-soft)!important;color:var(--accent)!important;}
.ryrm-body #hd.ryrm-space-hd ul.tb>li.a>a,
.ryrm-body #hd.ryrm-space-hd ul.tb>li.cur>a{background:var(--accent-soft)!important;color:var(--accent)!important;font-weight:600!important;}

/* 40.3 会员中心 / 门户管理：两栏不再留白 */
.ryrm-body.ryrm-body .ct2_a,.ryrm-body .ct2_a_r{display:flex!important;gap:20px!important;align-items:flex-start!important;border:0!important;background:none!important;width:min(var(--wrap),94vw)!important;margin:0 auto!important;}
.ryrm-body .ct2_a>.mn,.ryrm-body .ct2_a_r>.mn{flex:1 1 auto!important;min-width:0!important;width:auto!important;float:none!important;padding:0!important;background:none!important;}
.ryrm-body .ct2_a>.appl,.ryrm-body .ct2_a_r>.appl{flex:0 0 200px!important;width:200px!important;float:none!important;padding:0!important;}
.ryrm-body .ct2_a>.appl .bm,.ryrm-body .ct2_a_r>.appl .bm{border-radius:12px;}
.ryrm-body .ct2_a .mn>.bm,.ryrm-body .ct2_a .mn>#editorbox,.ryrm-body .ct2_a .mn>form>.bm{
  background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-sm);
}
@media (max-width:980px){ .ryrm-body .ct2_a,.ryrm-body .ct2_a_r{flex-direction:column!important;} .ryrm-body .ct2_a>.appl,.ryrm-body .ct2_a_r>.appl{flex:0 0 auto!important;width:100%!important;} }

/* 40.4 表单（会员中心/门户管理里的 table.tfm 与 px 输入框） */
.ryrm-body table.tfm{width:100%!important;max-width:none!important;}
.ryrm-body table.tfm th,.ryrm-body table.tfm td{padding:10px 8px!important;font-size:13px!important;vertical-align:middle!important;}
.ryrm-body table.tfm th{width:150px!important;text-align:right!important;color:var(--ink-2)!important;font-weight:400!important;}
.ryrm-body .px,.ryrm-body .pt,.ryrm-body textarea{padding:7px 10px!important;border:1px solid var(--line)!important;border-radius:9px!important;font-size:13px!important;}
.ryrm-body .px:focus,.ryrm-body .pt:focus,.ryrm-body textarea:focus{border-color:#eaa9b6!important;outline:none!important;box-shadow:0 0 0 3px rgba(207,58,82,.08)!important;}
.ryrm-body select,.ryrm-body select.ps{height:34px!important;padding:0 8px!important;border:1px solid var(--line)!important;border-radius:9px!important;background:#fff!important;font-size:13px!important;}
/* tab 条（会员中心顶部） */
.ryrm-body .tb.cl,.ryrm-body ul.tb{background:none!important;border:0!important;}
.ryrm-body ul.tb>li>a{display:inline-block!important;height:34px!important;line-height:34px!important;padding:0 14px!important;border-radius:9px!important;font-size:13px!important;color:var(--ink-2)!important;}
.ryrm-body ul.tb>li.a>a,.ryrm-body ul.tb>li.cur>a{background:var(--accent-soft)!important;color:var(--accent)!important;font-weight:600!important;}

/* 40.5 帖子审核管理条（删除主题/升降/置顶/高亮…）：24px 挤成一排 → 30px 胶囊 */
.ryrm-body #modmenu,.ryrm-body #ct>div.xi2.pbm{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;
  padding:12px 0!important;border:0!important;
}
.ryrm-body #modmenu>a,.ryrm-body #ct>div.xi2.pbm>a{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  height:30px!important;padding:0 13px!important;border:1px solid var(--line)!important;border-radius:8px!important;
  background:#fff!important;color:var(--ink-2)!important;font-size:12.5px!important;line-height:1!important;
  box-shadow:none!important;transition:.15s;
}
.ryrm-body #modmenu>a:hover,.ryrm-body #ct>div.xi2.pbm>a:hover{
  background:var(--accent-soft)!important;border-color:#eec3cb!important;color:var(--accent)!important;
}
.ryrm-body #modmenu>span,.ryrm-body #ct>div.xi2.pbm>span{display:none!important;}

/* 40.6 编辑器上传弹窗：选择文件上传 / 标签页 / 底部按钮 */
.ryrm-body #append_parent .webuploader-container,
.ryrm-body #append_parent .webuploader-container div{width:auto!important;height:auto!important;background:none!important;border:0!important;overflow:visible!important;}
.ryrm-body #append_parent .webuploader-pick{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;height:auto!important;min-height:32px!important;padding:0 16px!important;
  background:var(--accent)!important;color:#fff!important;border-radius:9px!important;
  font-size:12.5px!important;line-height:1.2!important;box-shadow:none!important;
}
.ryrm-body #append_parent .fwin .tb,.ryrm-body #append_parent .fwin .tb.cl{display:flex!important;gap:6px!important;padding:10px 14px!important;border-bottom:1px solid var(--line-2)!important;background:#fcfaf7!important;}
.ryrm-body #append_parent .fwin .tb a{
  display:inline-flex!important;align-items:center!important;height:30px!important;padding:0 14px!important;
  border-radius:8px!important;font-size:12.5px!important;color:var(--ink-2)!important;
}
.ryrm-body #append_parent .fwin .tb a:hover{background:#fff!important;color:var(--accent)!important;}
.ryrm-body #append_parent .fwin .pn:not(.colorwd),.ryrm-body #append_parent .fwin .pnc:not(.colorwd){
  height:34px!important;line-height:32px!important;padding:0 18px!important;border-radius:9px!important;
  background:var(--accent)!important;border:0!important;color:#fff!important;font-size:13px!important;
}

/* ==========================================================================
   41. 浮层收尾（会员卡 / 发帖下拉高度）
   ========================================================================== */
.ryrm-body .bui, .ryrm-body div[id^="userinfo"]{
  width:auto!important;max-width:320px!important;min-width:210px!important;
  padding:12px 14px!important;line-height:1.6!important;
}
.ryrm-body .bui img, .ryrm-body div[id^="userinfo"] img{max-width:100%!important;}
.ryrm-body .bui table, .ryrm-body div[id^="userinfo"] table{width:100%!important;}
.ryrm-body .bui td, .ryrm-body div[id^="userinfo"] td{padding:2px 4px!important;font-size:12.5px!important;}
.ryrm-body .post-drop>.drop{max-height:min(70vh,520px)!important;overflow:auto!important;}
/* ---------- 42. 悬停不断档（正式做法：面板贴着按钮） ---------- */
.ryrm-body .post-drop>.drop{
  top:100%!important;margin-top:0!important;padding-top:12px!important;
  border-top-left-radius:0!important;border-top-right-radius:0!important;
}
.ryrm-body .post-drop:after{
  content:"";position:absolute;left:-8px;right:-8px;top:100%;height:16px;
}
.ryrm-body .ryrm-nav li.has-drop{position:relative;}
.ryrm-body .ryrm-nav li.has-drop:after{
  content:"";position:absolute;left:0;right:0;top:100%;height:12px;
}

/* ---------- 43. 编辑器上传按钮：实心胶囊 + 中文标签（覆盖原生 upload 文字） ---------- */
.ryrm-body .webuploader-container,
.ryrm-body #imgSpanButtonPlaceholder{
  position:relative!important;display:inline-block!important;
  width:118px!important;height:32px!important;min-width:0!important;min-height:0!important;
  background:var(--accent)!important;background-image:none!important;
  border:0!important;border-radius:9px!important;overflow:hidden!important;
}
.ryrm-body .webuploader-container>.webuploader-pick,
.ryrm-body #imgSpanButtonPlaceholder>.webuploader-pick{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  opacity:0!important;font-size:0!important;padding:0!important;margin:0!important;background:none!important;
}
.ryrm-body .webuploader-container:after,
.ryrm-body #imgSpanButtonPlaceholder:after{
  content:"选择文件上传";position:absolute;inset:0;
  display:flex!important;align-items:center!important;justify-content:center!important;
  color:#fff;font-size:12.5px;font-weight:600;letter-spacing:.3px;pointer-events:none;
}
/* ---------- 44. 版主操作弹层（高亮/置顶/精华）：颜色样本不能被主题按钮样式吃掉 ---------- */
.ryrm-body #append_parent a.pn.colorwd,
.ryrm-body .fwin a.pn.colorwd,
.ryrm-body #colorbox a{
  background-image:none!important;
  width:20px!important;height:20px!important;min-width:0!important;padding:0!important;margin:0 4px 4px 0!important;
  border:1px solid rgba(20,20,23,.12)!important;border-radius:5px!important;
  display:inline-block!important;line-height:0!important;text-indent:-9999px!important;overflow:hidden!important;
  box-shadow:none!important;color:transparent!important;
}
.ryrm-body #append_parent a.pn.colorwd:hover,.ryrm-body #colorbox a:hover{transform:scale(1.12);border-color:var(--accent)!important;}
/* 弹层里的表格别再压扁 */
.ryrm-body #append_parent .fwin .tm_c, .ryrm-body #append_parent .fwin .c{padding:14px 16px!important;}
.ryrm-body #append_parent .fwin tr>td, .ryrm-body #append_parent .fwin tr>th{padding:5px 6px!important;font-size:12.5px!important;}
.ryrm-body #append_parent .fwin select{height:30px!important;border:1px solid var(--line)!important;border-radius:7px!important;font-size:12.5px!important;}
.ryrm-body #append_parent .fwin input.px{height:30px!important;border:1px solid var(--line)!important;border-radius:7px!important;font-size:12.5px!important;padding:0 8px!important;}
.ryrm-body #append_parent .fwin textarea{border:1px solid var(--line)!important;border-radius:9px!important;padding:8px 10px!important;font-size:12.5px!important;}
.ryrm-body #append_parent .fwin .flb{background:#fcfaf7!important;border-bottom:1px solid var(--line-2)!important;}
.ryrm-body #append_parent .fwin .tm_c .tm{color:var(--lighttext)!important;}

/* ---------- 45. 门户文章编辑器（portalcp）表单控件 ---------- */
.ryrm-body #ct input.px,.ryrm-body #ct input.pt,.ryrm-body #ct textarea,.ryrm-body .fwin input.px{
  height:34px!important;line-height:32px!important;padding:0 10px!important;
  border:1px solid var(--line)!important;border-radius:9px!important;background:#fff!important;
  font-size:13px!important;color:var(--ink)!important;box-sizing:border-box!important;
}
.ryrm-body #ct textarea.px,.ryrm-body #ct textarea{height:auto!important;line-height:1.7!important;padding:8px 10px!important;}
.ryrm-body #ct input.px:focus,.ryrm-body #ct textarea:focus{border-color:#eaa9b6!important;box-shadow:0 0 0 3px rgba(207,58,82,.08)!important;outline:none!important;}
.ryrm-body #ct select{height:34px!important;border:1px solid var(--line)!important;border-radius:9px!important;padding:0 8px!important;font-size:13px!important;background:#fff!important;}
/* 44.3 高亮弹层的颜色样本：不要主题色，让脚本设置的颜色生效 */
.ryrm-body #append_parent a.pn.colorwd{
  background-color:transparent;background-image:linear-gradient(45deg,#eee 25%,#fff 25%,#fff 50%,#eee 50%,#eee 75%,#fff 75%)!important;
  background-size:8px 8px!important;
}
/* ==========================================================================
   46. 帖子页顶栏去重 / 快速回复工具条 hover / 弹窗内上传按钮不越界
   ========================================================================== */

/* 46.1 顶部「发新帖 / 回复」与底部快速回复重复，按「顶部不放重复按钮」原则收掉，只留返回列表 */
.ryrm-body #pgt>a.pgsbtn{display:none!important;}
.ryrm-body #pgt{justify-content:flex-start!important;}
.ryrm-body #pgt>.pgb.y{margin-right:0!important;}

/* 46.2 快速回复编辑器工具条：图标按钮补 hover / active 底色（原来透明，点了没反馈） */
.ryrm-body #f_pst .edt .btn a,
.ryrm-body #f_pst .edt .bar a,
.ryrm-body #f_pst .edt .btn a.dp{
  border-radius:6px!important;transition:background-color .15s!important;
}
.ryrm-body #f_pst .edt .btn a:hover,
.ryrm-body #f_pst .edt .bar a:hover,
.ryrm-body #f_pst .edt .btn a:focus{
  background-color:var(--accent-soft)!important;
}
.ryrm-body #f_pst .edt .btn a:active{background-color:rgba(207,58,82,.18)!important;}
.ryrm-body #f_pst .edt .bar .y a,
.ryrm-body #f_pst .edt .bar .y a:hover{
  background-color:transparent!important;color:var(--ink-2)!important;
}
.ryrm-body #f_pst .edt .bar .y a:hover{color:var(--accent)!important;}
/* 快速回复的编辑器容器本身 */
.ryrm-body #f_pst .edt,.ryrm-body #f_pst .tedt{
  border:1px solid var(--line)!important;border-radius:12px!important;overflow:hidden!important;background:#fff!important;
}
.ryrm-body #f_pst .edt .bar,.ryrm-body #f_pst .tedt .bar{
  background:#fcfaf7!important;border-bottom:1px solid var(--line-2)!important;padding:6px 8px!important;
}

/* 46.3 编辑器弹窗里的上传按钮：绝对定位会压到标题栏，回到文档流 */
.ryrm-body #append_parent .fwin .webuploader-container,
.ryrm-body #append_parent .fwin #imgSpanButtonPlaceholder{
  position:static!important;display:inline-block!important;vertical-align:middle!important;
  margin:0 0 0 6px!important;
}
/* 弹窗本体：边框更轻、标题条统一 */
.ryrm-body #append_parent .fwin{
  border-radius:14px!important;border:1px solid var(--line)!important;
  box-shadow:0 24px 60px -24px rgba(20,20,23,.4)!important;background:#fff!important;
}
.ryrm-body #append_parent .fwin .flb{
  background:#fcfaf7!important;border-bottom:1px solid var(--line-2)!important;
  padding:12px 16px!important;border-radius:14px 14px 0 0!important;
}
.ryrm-body #append_parent .fwin .flb em{font-style:normal!important;font-size:14px!important;font-weight:600!important;color:var(--ink)!important;}
.ryrm-body #append_parent .fwin .flb .flbc{color:var(--muted)!important;font-size:12.5px!important;}
/* 46.4 快速回复工具条（真实结构：#fastposteditor > .tedt > .bar > div > a.fbld 等） */
.ryrm-body #fastposteditor .bar>div>a{
  border-radius:6px!important;transition:background-color .15s!important;
  width:22px!important;height:22px!important;display:inline-block!important;
}
.ryrm-body #fastposteditor .bar>div>a:hover{background-color:var(--accent-soft)!important;}
.ryrm-body #fastposteditor .bar>div>a:active{background-color:rgba(207,58,82,.18)!important;}
.ryrm-body #fastposteditor .bar>div>a.fbld,
.ryrm-body #fastposteditor .bar>div>a.fbld:hover{background-color:var(--accent-soft)!important;}
.ryrm-body #fastposteditor .bar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:2px!important;}
.ryrm-body #fastposteditor .bar>div{display:inline-flex!important;align-items:center!important;}
.ryrm-body #fastposteditor .bar .y a{background:none!important;}
.ryrm-body #fastposteditor .bar .y a:hover{color:var(--accent)!important;}
/* 47. 帖子页管理条去重：顶部 #modmenu 与帖子内容下方的 .xi2.mbm.pbm.bbs 重复，去掉上面那条 */
.ryrm-body #ct>#modmenu{display:none!important;}
.ryrm-body #ct>div.xi2.pbm{display:none!important;}
.ryrm-body #ct>div.xi2.mbm.pbm.bbs{display:flex!important;}
/* ==========================================================================
   48. 「返回列表」的上级版块菜单不被裁 + 头部「发帖」按钮恢复正常尺寸
   ========================================================================== */

/* 48.1 #visitedforums 上有 overflow:hidden（为了圆角），把悬停菜单切掉了 */
.ryrm-body #visitedforums{overflow:visible!important;display:inline-flex!important;align-items:center!important;}
.ryrm-body #visitedforums>a{display:inline-flex!important;align-items:center!important;height:100%!important;}
.ryrm-body #visitedforums .p_pop,
.ryrm-body #visitedforums ul,
.ryrm-body #visitedforums_menu{
  min-width:180px!important;width:auto!important;white-space:nowrap!important;
  background:#fff!important;border:1px solid var(--line)!important;border-radius:12px!important;
  box-shadow:0 18px 40px -18px rgba(20,20,23,.28)!important;padding:8px!important;z-index:9600!important;
  overflow:visible!important;max-height:none!important;
}
.ryrm-body #visitedforums .p_pop li,
.ryrm-body #visitedforums ul li{white-space:nowrap!important;padding:0!important;margin:0!important;}
.ryrm-body #visitedforums .p_pop a,
.ryrm-body #visitedforums ul a{
  display:block!important;padding:7px 10px!important;border-radius:8px!important;
  font-size:13px!important;color:var(--ink-2)!important;white-space:nowrap!important;
}
.ryrm-body #visitedforums .p_pop a:hover,
.ryrm-body #visitedforums ul a:hover{background:var(--accent-soft)!important;color:var(--accent)!important;}

/* 48.2 发帖按钮：之前被压成 67×18，现在固定 38 高、内边距统一 */
.ryrm-body .ryrm-user .post-drop>.btn-reg,
.ryrm-body .ryrm-user a.btn-reg{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  height:38px!important;line-height:38px!important;min-width:78px!important;
  padding:0 22px!important;font-size:14px!important;font-weight:600!important;
  border-radius:19px!important;box-sizing:border-box!important;
}
/* ==========================================================================
   49. 「浏览过的版块」浮动菜单（td#v_forums）：高度、内边距、分隔线
   ========================================================================== */
.ryrm-body #visitedforums .p_pop,
.ryrm-body .p_pop:has(> #v_forums),
.ryrm-body .p_pop:has(td#v_forums){padding:0!important;overflow:visible!important;}
.ryrm-body #v_forums{
  display:block!important;padding:10px 6px 8px!important;min-width:190px!important;
  background:#fff!important;border-radius:12px!important;
}
.ryrm-body #v_forums>h3{
  margin:0 0 6px!important;padding:0 10px 8px!important;
  font-size:11.5px!important;font-weight:400!important;color:var(--lighttext)!important;
  border-bottom:1px solid var(--line-2)!important;line-height:1.4!important;
  height:auto!important;
}
.ryrm-body #v_forums>ul.xl{display:block!important;margin:0!important;padding:0!important;list-style:none!important;}
.ryrm-body #v_forums>ul.xl>li{
  display:block!important;margin:0!important;padding:0!important;float:none!important;
  border:0!important;min-height:0!important;height:auto!important;line-height:1.4!important;
}
.ryrm-body #v_forums>ul.xl>li>a{
  display:block!important;padding:7px 10px!important;border-radius:8px!important;
  font-size:13px!important;color:var(--ink-2)!important;white-space:nowrap!important;
  text-decoration:none!important;
}
.ryrm-body #v_forums>ul.xl>li>a:hover{background:var(--accent-soft)!important;color:var(--accent)!important;}
/* 49.1 Discuz 给浮动菜单的 td/table 写了固定高度，全部放开 */
.ryrm-body td#v_forums,
.ryrm-body #v_forums{height:auto!important;max-height:none!important;min-height:0!important;line-height:1.45!important;}
.ryrm-body .p_pop>table,
.ryrm-body .p_pop table{height:auto!important;max-height:none!important;}
.ryrm-body .p_pop>table>tbody>tr>td{padding:0!important;height:auto!important;}
.ryrm-body #v_forums>ul.xl1{display:block!important;}
.ryrm-body #v_forums>ul.xl1>li{display:block!important;float:none!important;width:auto!important;}
.ryrm-body #v_forums>h3.bbda{border-bottom:1px solid var(--line-2)!important;}
/* ==========================================================================
   50. 登录 / 注册页（member.php?mod=logging / mod=rt）—— 参考站卡片式版式
   ========================================================================== */

/* 50.1 页面容器：整块居中，暖底 + 柔光，卡片浮起来 */
.ryrm-body.pg_logging,
.ryrm-body.pg_register{
  background:
    radial-gradient(1100px 420px at 50% -10%, #fff8f4 0%, rgba(255,248,244,0) 70%),
    linear-gradient(180deg, #f7f4ef 0%, #f1ece5 100%) !important;
}
.ryrm-body.pg_logging #ct,
.ryrm-body.pg_register #ct{
  display:flex!important;align-items:flex-start!important;justify-content:center!important;
  min-height:calc(100vh - 420px)!important;padding:56px 0 72px!important;
}
.ryrm-body.pg_logging #main_message,
.ryrm-body.pg_register #main_message{
  width:min(460px,92vw)!important;max-width:min(460px,92vw)!important; flex:0 0 auto!important;
  margin:0 auto!important;float:none!important;display:block!important;
}
.ryrm-body.pg_logging #main_message>.bm,
.ryrm-body.pg_register #main_message>.bm{
  background:#fff!important;border:0!important;border-radius:20px!important;
  box-shadow:0 18px 60px -20px rgba(20,20,23,.28),0 0 0 1px rgba(20,20,23,.04)!important;
  padding:40px 48px 30px!important;overflow:visible!important;
}

/* 50.2 卡片头：品牌标记 + 标题 + 右上「立即注册」 */
.ryrm-body.pg_logging .bm_h.bbs,
.ryrm-body.pg_register .bm_h.bbs{
  display:block!important;padding:0!important;border:0!important;text-align:center!important;position:relative!important;
}
.ryrm-body.pg_logging .bm_h.bbs>h3,
.ryrm-body.pg_register .bm_h.bbs>h3{
  font:600 20px/1.3 var(--font-sans)!important;color:var(--ink)!important;
  margin:14px 0 6px!important;letter-spacing:.5px!important;
}
.ryrm-body.pg_logging .bm_h.bbs:before,
.ryrm-body.pg_register .bm_h.bbs:before{
  content:"真";display:block!important;
  width:46px;height:46px;line-height:46px;margin:0 auto;
  border-radius:14px;background:var(--accent);color:#fff;
  font:600 20px/46px var(--font-sans);text-align:center;
  box-shadow:0 8px 18px -8px rgba(207,58,82,.8);
}
.ryrm-body.pg_logging .bm_h.bbs>span.y,
.ryrm-body.pg_register .bm_h.bbs>span.y{
  position:absolute!important;right:0!important;top:2px!important;float:none!important;
  font-size:12px!important;line-height:1.4!important;
}
.ryrm-body.pg_logging .bm_h.bbs>span.y a,
.ryrm-body.pg_register .bm_h.bbs>span.y a{
  color:var(--muted)!important;text-decoration:none!important;
}
.ryrm-body.pg_logging .bm_h.bbs>span.y a:hover,
.ryrm-body.pg_register .bm_h.bbs>span.y a:hover{color:var(--accent)!important;}

/* 50.3 表单：标签在上、控件整宽、行间距统一 */
.ryrm-body.pg_logging #layer_login_,
.ryrm-body.pg_register #layer_register_{}
.ryrm-body.pg_logging form[name="login"]>.c,
.ryrm-body.pg_register form>.c{padding:22px 0 0!important;}
.ryrm-body.pg_logging .rfm,
.ryrm-body.pg_register .rfm{margin:0 0 16px!important;padding:0!important;border:0!important;}
.ryrm-body.pg_logging .rfm>table,
.ryrm-body.pg_register .rfm>table{display:block!important;width:100%!important;border:0!important;}
.ryrm-body.pg_logging .rfm>table>tbody,
.ryrm-body.pg_logging .rfm>table>tbody>tr,
.ryrm-body.pg_register .rfm>table>tbody,
.ryrm-body.pg_register .rfm>table>tbody>tr{display:block!important;width:100%!important;}
.ryrm-body.pg_logging .rfm th,
.ryrm-body.pg_register .rfm th{
  display:block!important;width:auto!important;padding:0 0 6px!important;
  text-align:left!important;font:400 12.5px/1.4 var(--font-sans)!important;
  color:var(--lighttext)!important;white-space:normal!important;
}
.ryrm-body.pg_logging .rfm td,
.ryrm-body.pg_register .rfm td{display:block!important;width:auto!important;padding:0!important;border:0!important;}
.ryrm-body.pg_logging .rfm td.tipcol,
.ryrm-body.pg_register .rfm td.tipcol{
  display:block!important;text-align:right!important;padding:6px 0 0!important;font-size:12px!important;
}
.ryrm-body.pg_logging .rfm td.tipcol a,
.ryrm-body.pg_register .rfm td.tipcol a{color:var(--muted)!important;text-decoration:none!important;}
.ryrm-body.pg_logging .rfm td.tipcol a:hover,
.ryrm-body.pg_register .rfm td.tipcol a:hover{color:var(--accent)!important;}

/* 50.4 输入控件：46px 高、12px 圆角、内发光聚焦 */
.ryrm-body.pg_logging .rfm input.px,
.ryrm-body.pg_logging .rfm input.p_fre,
.ryrm-body.pg_logging .rfm select,
.ryrm-body.pg_register .rfm input.px,
.ryrm-body.pg_register .rfm input.p_fre,
.ryrm-body.pg_register .rfm select{
  display:block!important;width:100%!important;max-width:none!important;
  height:46px!important;min-height:46px!important;line-height:44px!important;
  padding:0 14px!important;margin:0!important;
  border:1px solid var(--line)!important;border-radius:12px!important;
  background:#fbf9f6!important;color:var(--ink)!important;
  font:400 14px var(--font-sans)!important;box-sizing:border-box!important;
  box-shadow:none!important;transition:border-color .15s,box-shadow .15s,background .15s;
}
.ryrm-body.pg_logging .rfm select,
.ryrm-body.pg_register .rfm select{line-height:1.4!important;padding-right:34px!important;cursor:pointer!important;}
.ryrm-body.pg_logging .rfm input.px:focus,
.ryrm-body.pg_logging .rfm select:focus,
.ryrm-body.pg_register .rfm input.px:focus,
.ryrm-body.pg_register .rfm select:focus{
  border-color:#eaa9b6!important;background:#fff!important;outline:none!important;
  box-shadow:0 0 0 3px rgba(207,58,82,.12)!important;
}

/* 50.5 自动登录 / 协议勾选 */
.ryrm-body.pg_logging .rfm label,
.ryrm-body.pg_register .rfm label{
  display:inline-flex!important;align-items:center!important;gap:6px!important;
  font-size:13px!important;color:var(--ink-2)!important;cursor:pointer!important;
}
.ryrm-body.pg_logging .rfm input.pc,
.ryrm-body.pg_register .rfm input.pc{width:15px!important;height:15px!important;accent-color:var(--accent)!important;}

/* 50.6 主按钮：整宽 46px 玫瑰红 */
.ryrm-body.pg_logging .rfm.mbw>table,
.ryrm-body.pg_register .rfm.mbw>table{display:block!important;width:100%!important;}
.ryrm-body.pg_logging .rfm.mbw th,
.ryrm-body.pg_register .rfm.mbw th{display:none!important;}
.ryrm-body.pg_logging .rfm.mbw td,
.ryrm-body.pg_register .rfm.mbw td{display:block!important;width:100%!important;}
.ryrm-body.pg_logging .rfm button.pn,
.ryrm-body.pg_logging .rfm .pn.pnc,
.ryrm-body.pg_register .rfm button.pn,
.ryrm-body.pg_register .rfm .pn.pnc{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:46px!important;margin:4px 0 0!important;
  border:0!important;border-radius:12px!important;
  background:var(--accent)!important;color:#fff!important;
  font:600 15px var(--font-sans)!important;letter-spacing:1px!important;
  box-shadow:0 10px 20px -12px rgba(207,58,82,.9)!important;cursor:pointer!important;
}
.ryrm-body.pg_logging .rfm button.pn:hover,
.ryrm-body.pg_register .rfm button.pn:hover{filter:brightness(1.04)!important;}
.ryrm-body.pg_logging .rfm button.pn strong,
.ryrm-body.pg_register .rfm button.pn strong{color:#fff!important;font-weight:600!important;}

/* 50.7 弹层里的「登录/注册」小浮层（首页点登录时）也统一 */
.ryrm-body [id^="layer_login_"],
.ryrm-body [id^="layer_register_"]{background:#fff!important;}
.ryrm-body .flb>em{font-style:normal!important;}

/* 50.8 验证码行（注册页） */
.ryrm-body.pg_register .rfm td img,
.ryrm-body.pg_logging .rfm td img{vertical-align:middle!important;border-radius:8px!important;}
.ryrm-body.pg_register .rfm td>span,
.ryrm-body.pg_logging .rfm td>span{font-size:12px!important;color:var(--lighttext)!important;}
/* ==========================================================================
   51. 登录页（template/ryrm/member/login.htm 专用，全部挂在 .ryrm-auth 下）
   ========================================================================== */
.ryrm-body:has(.ryrm-auth){
  background:radial-gradient(1100px 460px at 50% -12%, #fff8f4 0%, rgba(255,248,244,0) 72%), linear-gradient(180deg,#f7f4ef,#f1ece5)!important;
}
.ryrm-auth{
  display:flex!important;justify-content:center!important;align-items:flex-start!important;
  width:100%!important;max-width:none!important;padding:64px 0 84px!important;
}
.ryrm-auth-card{
  width:min(440px,94vw)!important;max-width:min(440px,94vw)!important;
  background:#fff!important;border:1px solid rgba(20,20,23,.05)!important;border-radius:20px!important;
  box-shadow:0 24px 64px -28px rgba(20,20,23,.32)!important;
  padding:36px 42px 26px!important;margin:0!important;
}
.ryrm-auth-brand{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;margin-bottom:22px!important;}
.ryrm-auth-brand .mark{
  width:38px!important;height:38px!important;line-height:38px!important;
  border-radius:12px!important;background:var(--accent)!important;color:#fff!important;
  font:600 17px/38px var(--font-sans)!important;text-align:center!important;font-style:normal!important;
  box-shadow:0 8px 16px -8px rgba(207,58,82,.85)!important;
}
.ryrm-auth-brand strong{font:600 16px var(--font-sans)!important;color:var(--ink)!important;}
.ryrm-auth-brand span{font:400 10px var(--font-sans)!important;color:var(--lighttext)!important;letter-spacing:1.5px!important;}
.ryrm-auth-hd{text-align:center!important;margin-bottom:22px!important;}
.ryrm-auth-hd h1{font:600 21px/1.3 var(--font-sans)!important;color:var(--ink)!important;margin:0 0 6px!important;letter-spacing:.5px!important;}
.ryrm-auth-hd p{font:400 12.5px/1.5 var(--font-sans)!important;color:var(--lighttext)!important;margin:0!important;}

.ryrm-auth-form{display:block!important;}
.ryrm-field{margin:0 0 14px!important;}
.ryrm-field>label{display:block!important;font:400 12.5px/1.4 var(--font-sans)!important;color:var(--lighttext)!important;margin:0 0 6px!important;}
.ryrm-field>label .rq{color:var(--accent)!important;margin-right:2px!important;}
.ryrm-input{display:flex!important;align-items:center!important;gap:8px!important;}
.ryrm-input>input.px,.ryrm-field>input.px,.ryrm-input>input.p_fre{
  flex:1 1 auto!important;width:100%!important;max-width:none!important;
  height:46px!important;min-height:46px!important;line-height:44px!important;
  padding:0 14px!important;margin:0!important;box-sizing:border-box!important;
  border:1px solid var(--line)!important;border-radius:12px!important;
  background:#fbf9f6!important;color:var(--ink)!important;
  font:400 14px var(--font-sans)!important;box-shadow:none!important;outline:none!important;
  transition:border-color .15s,box-shadow .15s,background .15s;
}
.ryrm-input>input.px::placeholder{color:#b9b5bb!important;}
.ryrm-input>input.px:focus{
  border-color:#eaa9b6!important;background:#fff!important;
  box-shadow:0 0 0 3px rgba(207,58,82,.12)!important;
}
.ryrm-select-box{flex:0 0 auto!important;}
.ryrm-select-box select,.ryrm-input>select{
  height:46px!important;min-height:46px!important;padding:0 30px 0 12px!important;margin:0!important;
  border:1px solid var(--line)!important;border-radius:12px!important;background:#fbf9f6!important;
  font:400 13px var(--font-sans)!important;color:var(--ink-2)!important;cursor:pointer!important;box-sizing:border-box!important;
}
.ryrm-static{margin:0!important;font-size:13.5px!important;color:var(--ink-2)!important;}

.ryrm-field-inline{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:2px 0 16px!important;}
.ryrm-check{display:inline-flex!important;align-items:center!important;gap:6px!important;font-size:13px!important;color:var(--ink-2)!important;cursor:pointer!important;margin:0!important;}
.ryrm-check input.pc{width:15px!important;height:15px!important;margin:0!important;accent-color:var(--accent)!important;cursor:pointer!important;}
.ryrm-link{font-size:12.5px!important;color:var(--muted)!important;text-decoration:none!important;}
.ryrm-link:hover{color:var(--accent)!important;}
.ryrm-field-submit{margin:0!important;}
.ryrm-btn{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:46px!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:12px!important;background:var(--accent)!important;
  box-shadow:0 12px 24px -14px rgba(207,58,82,.95)!important;cursor:pointer!important;
  transition:filter .15s,transform .12s;
}
.ryrm-btn strong{color:#fff!important;font:600 15px var(--font-sans)!important;letter-spacing:2px!important;}
.ryrm-btn:hover{filter:brightness(1.05)!important;}
.ryrm-btn:active{transform:translateY(1px);}
.ryrm-field-method{margin-top:16px!important;text-align:center!important;}
.ryrm-divider{display:block!important;font-size:11.5px!important;color:var(--lighttext)!important;margin-bottom:10px!important;}

.ryrm-auth-foot{
  margin-top:20px!important;padding-top:16px!important;border-top:1px solid var(--line-2)!important;
  text-align:center!important;font:400 13px var(--font-sans)!important;color:var(--muted)!important;
}
.ryrm-auth-foot .ryrm-link-strong{color:var(--accent)!important;font-weight:600!important;text-decoration:none!important;margin-left:4px!important;}
.ryrm-auth-foot .ryrm-link-strong:hover{text-decoration:underline!important;}

/* 找回密码块（默认隐藏，点「找回密码」展开） */
.ryrm-auth-lostpw{margin-top:18px!important;padding-top:16px!important;border-top:1px dashed var(--line)!important;}
.ryrm-auth-lostpw>h3.flb{background:none!important;border:0!important;padding:0 0 10px!important;font:600 14px var(--font-sans)!important;color:var(--ink)!important;}
.ryrm-auth-lostpw>h3.flb em{font-style:normal!important;color:var(--ink)!important;}

/* 小屏 */
@media (max-width:520px){
  .ryrm-auth{padding:32px 0 56px!important;}
  .ryrm-auth-card{padding:26px 22px 20px!important;border-radius:16px!important;}
}
/* 51.1 提权：模块/内页 CSS 用 #ct 前缀写死了 .px，这里补 id 才压得住 */
.ryrm-body #ct .ryrm-auth-card,
.ryrm-body #ct .ryrm-auth-card>*,
.ryrm-body #ct .ryrm-auth-form,
.ryrm-body #ct [id^="main_messaqge_"],
.ryrm-body #ct [id^="layer_login_"],
.ryrm-body #ct .ryrm-field,
.ryrm-body #ct .ryrm-input{width:100%!important;max-width:100%!important;box-sizing:border-box!important;}
.ryrm-body #ct .ryrm-auth-card{width:min(440px,94vw)!important;max-width:min(440px,94vw)!important;}
.ryrm-body #ct .ryrm-input>input.px,
.ryrm-body #ct .ryrm-field>input.px{
  flex:1 1 auto!important;width:100%!important;max-width:none!important;
  height:46px!important;min-height:46px!important;line-height:44px!important;
  padding:0 14px!important;margin:0!important;
  border:1px solid var(--line)!important;border-radius:12px!important;
  background:#fbf9f6!important;color:var(--ink)!important;
  font:400 14px var(--font-sans)!important;box-shadow:none!important;
}
.ryrm-body #ct .ryrm-input>input.px:focus{border-color:#eaa9b6!important;background:#fff!important;box-shadow:0 0 0 3px rgba(207,58,82,.12)!important;}
.ryrm-body #ct .ryrm-input>select,
.ryrm-body #ct .ryrm-select-box>select{
  flex:0 0 auto!important;height:46px!important;min-height:46px!important;
  padding:0 30px 0 12px!important;border:1px solid var(--line)!important;border-radius:12px!important;
  background:#fbf9f6!important;font:400 13px var(--font-sans)!important;color:var(--ink-2)!important;
}
.ryrm-body #ct .ryrm-btn{
  width:100%!important;height:46px!important;border:0!important;border-radius:12px!important;
  background:var(--accent)!important;box-shadow:0 12px 24px -14px rgba(207,58,82,.95)!important;
}
.ryrm-body #ct .ryrm-btn strong{color:#fff!important;font:600 15px var(--font-sans)!important;}
.ryrm-body #ct .ryrm-auth-foot{margin-top:20px!important;padding-top:16px!important;border-top:1px solid var(--line-2)!important;text-align:center!important;}
.ryrm-body #ct [id^="layer_login_"]{padding:0!important;background:none!important;border:0!important;box-shadow:none!important;}
.ryrm-body #ct .ryrm-select-box{flex:0 0 auto!important;width:auto!important;}
.ryrm-body #ct .ryrm-input>select{width:auto!important;max-width:96px!important;}
/* 51.2 两个 select 分开：登录方式窄、安全提问整宽 */
.ryrm-body #ct .ryrm-input>select{width:100%!important;max-width:none!important;}
.ryrm-body #ct .ryrm-select-box>select{width:auto!important;max-width:100px!important;}
/* ==========================================================================
   52. 注册页（member.php?mod=rt，默认 member/register.htm 结构）—— 与登录同一张卡
   ========================================================================== */
.ryrm-body.pg_register #ct{
  display:flex!important;justify-content:center!important;align-items:flex-start!important;
  padding:56px 0 72px!important;
}
.ryrm-body.pg_register #ct>.mn{
  width:min(520px,94vw)!important;max-width:min(520px,94vw)!important;
  flex:0 0 auto!important;float:none!important;margin:0 auto!important;
}
.ryrm-body.pg_register #ct>.mn>.bm#main_message{
  background:#fff!important;border:1px solid rgba(20,20,23,.05)!important;border-radius:20px!important;
  box-shadow:0 24px 64px -28px rgba(20,20,23,.32)!important;
  padding:30px 40px 24px!important;overflow:visible!important;
}
.ryrm-body.pg_register #main_hnav{
  display:block!important;padding:0 0 6px!important;border:0!important;position:relative!important;
  background:none!important;height:auto!important;min-height:0!important;line-height:1.4!important;
}
.ryrm-body.pg_register #main_hnav>h3{
  font:600 21px/1.3 var(--font-sans)!important;color:var(--ink)!important;margin:0 0 6px!important;
}
.ryrm-body.pg_register #main_hnav>h3:before{
  content:"真";display:block!important;width:44px;height:44px;margin:0 auto 14px;
  border-radius:13px;background:var(--accent);color:#fff;
  font:600 19px/44px var(--font-sans);text-align:center;
  box-shadow:0 8px 18px -8px rgba(207,58,82,.8);
}
.ryrm-body.pg_register #main_hnav>h3{text-align:center!important;}
.ryrm-body.pg_register #main_hnav>span.y{
  position:static!important;float:none!important;display:block!important;text-align:center!important;
  margin:0 0 18px!important;font-size:12.5px!important;
}
.ryrm-body.pg_register #main_hnav>span.y a{color:var(--muted)!important;text-decoration:none!important;}
.ryrm-body.pg_register #main_hnav>span.y a:hover{color:var(--accent)!important;}
.ryrm-body.pg_register #layer_reg{
  padding:0!important;border:0!important;background:none!important;
}
.ryrm-body.pg_register #layer_reg .mtw{padding:0!important;}
.ryrm-body.pg_register #registerform .rfm{margin:0 0 14px!important;padding:0!important;border:0!important;}
.ryrm-body.pg_register #registerform .rfm>table{
  display:block!important;width:100%!important;table-layout:fixed!important;border:0!important;
}
.ryrm-body.pg_register #registerform .rfm>table>tbody,
.ryrm-body.pg_register #registerform .rfm>table>tbody>tr{display:block!important;width:100%!important;}
.ryrm-body.pg_register #registerform .rfm th{
  display:block!important;width:auto!important;padding:0 0 6px!important;text-align:left!important;
  font:400 12.5px/1.4 var(--font-sans)!important;color:var(--lighttext)!important;white-space:normal!important;
}
.ryrm-body.pg_register #registerform .rfm th .rq{color:var(--accent)!important;margin-right:2px!important;}
.ryrm-body.pg_register #registerform .rfm td{
  display:block!important;width:auto!important;padding:0!important;border:0!important;
}
.ryrm-body.pg_register #registerform .rfm td.tipcol{
  display:none!important;
}
.ryrm-body.pg_register #registerform .rfm td.tipwide{
  font-size:12px!important;line-height:1.7!important;color:var(--lighttext)!important;padding:2px 0 10px!important;
}
.ryrm-body.pg_register #registerform .rfm input.px,
.ryrm-body.pg_register #registerform .rfm input.p_fre,
.ryrm-body.pg_register #registerform .rfm select,
.ryrm-body.pg_register #registerform .rfm textarea{
  display:block!important;width:100%!important;max-width:none!important;
  height:46px!important;min-height:46px!important;line-height:44px!important;
  padding:0 14px!important;margin:0!important;box-sizing:border-box!important;
  border:1px solid var(--line)!important;border-radius:12px!important;
  background:#fbf9f6!important;color:var(--ink)!important;
  font:400 14px var(--font-sans)!important;box-shadow:none!important;
}
.ryrm-body.pg_register #registerform .rfm textarea{height:88px!important;line-height:1.7!important;padding:12px 14px!important;}
.ryrm-body.pg_register #registerform .rfm input.px:focus,
.ryrm-body.pg_register #registerform .rfm select:focus,
.ryrm-body.pg_register #registerform .rfm textarea:focus{
  border-color:#eaa9b6!important;background:#fff!important;outline:none!important;
  box-shadow:0 0 0 3px rgba(207,58,82,.12)!important;
}
.ryrm-body.pg_register #registerform .rfm label{font-size:13px!important;color:var(--ink-2)!important;}
.ryrm-body.pg_register #registerform .rfm input.pc{width:15px!important;height:15px!important;accent-color:var(--accent)!important;margin-right:6px!important;}
.ryrm-body.pg_register #registerform .rfm em,.ryrm-body.pg_register #registerform .rfm .p_tip,
.ryrm-body.pg_register #registerform .rfm kbd{font-size:12px!important;color:var(--lighttext)!important;font-style:normal!important;}
.ryrm-body.pg_register #registerform .rfm.mbw>table>tbody>tr>td{width:100%!important;}
.ryrm-body.pg_register #registerform button.pn,
.ryrm-body.pg_register #registerform .pn.pnc{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:46px!important;margin:6px 0 0!important;
  border:0!important;border-radius:12px!important;background:var(--accent)!important;
  box-shadow:0 12px 24px -14px rgba(207,58,82,.95)!important;cursor:pointer!important;
}
.ryrm-body.pg_register #registerform button.pn strong,
.ryrm-body.pg_register #registerform .pn.pnc strong,
.ryrm-body.pg_register #registerform button.pn span{
  color:#fff!important;font:600 15px var(--font-sans)!important;letter-spacing:2px!important;
}
.ryrm-body.pg_register #registerform #returnmessage4{color:var(--accent)!important;font-size:12.5px!important;}
/* 52.1 注册页提权（模块 CSS 用 #ct 前缀写死 .px/按钮宽度，这里必须带 id）+ 去掉重复标志 */
.ryrm-body.pg_register #main_hnav:before{display:none!important;content:none!important;}
.ryrm-body.pg_register #main_hnav>h3:before{content:"真"!important;display:block!important;}
.ryrm-body.pg_register #main_hnav>h3{text-align:center!important;}
.ryrm-body.pg_register #ct #registerform .rfm>table,
.ryrm-body.pg_register #ct #registerform .rfm>table>tbody,
.ryrm-body.pg_register #ct #registerform .rfm>table>tbody>tr,
.ryrm-body.pg_register #ct #registerform .rfm th,
.ryrm-body.pg_register #ct #registerform .rfm td{
  display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;
}
.ryrm-body.pg_register #ct #registerform .rfm th{padding:0 0 6px!important;text-align:left!important;font:400 12.5px/1.4 var(--font-sans)!important;color:var(--lighttext)!important;}
.ryrm-body.pg_register #ct #registerform .rfm td{padding:0!important;border:0!important;}
.ryrm-body.pg_register #ct #registerform .rfm input.px,
.ryrm-body.pg_register #ct #registerform .rfm input.p_fre,
.ryrm-body.pg_register #ct #registerform .rfm select,
.ryrm-body.pg_register #ct #registerform .rfm textarea{
  display:block!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;
  height:46px!important;min-height:46px!important;line-height:44px!important;padding:0 14px!important;margin:0!important;
  border:1px solid var(--line)!important;border-radius:12px!important;background:#fbf9f6!important;
  font:400 14px var(--font-sans)!important;color:var(--ink)!important;
}
.ryrm-body.pg_register #ct #registerform .rfm textarea{height:88px!important;line-height:1.7!important;padding:12px 14px!important;}
.ryrm-body.pg_register #ct #registerform button.pn,
.ryrm-body.pg_register #ct #registerform .pn.pnc{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;max-width:100%!important;height:46px!important;margin:4px 0 0!important;
  border:0!important;border-radius:12px!important;background:var(--accent)!important;
  box-shadow:0 12px 24px -14px rgba(207,58,82,.95)!important;
}
/* 52.2 默认模板 common.css 里 `.rfm{width:760px}` 是罪魁，必须先把它放开 */
.ryrm-body.pg_register #ct #registerform .rfm,
.ryrm-body.pg_register #ct .bm#main_message .rfm{
  width:100%!important;max-width:100%!important;margin:0 0 14px!important;
  padding:0!important;border:0!important;box-sizing:border-box!important;
}
/* 52.3 注册卡头部：标题在上（居中 + 标志），「已有账号」一行在下 */
.ryrm-body.pg_register #ct #main_hnav{
  display:flex!important;flex-direction:column-reverse!important;align-items:stretch!important;
  gap:0!important;padding:0!important;border:0!important;height:auto!important;
}
.ryrm-body.pg_register #ct #main_hnav>h3{
  display:block!important;text-align:center!important;
  font:600 21px/1.35 var(--font-sans)!important;color:var(--ink)!important;margin:0!important;
}
.ryrm-body.pg_register #ct #main_hnav>h3:before{
  content:"真"!important;display:block!important;width:44px!important;height:44px!important;
  margin:0 auto 12px!important;border-radius:13px!important;background:var(--accent)!important;color:#fff!important;
  font:600 19px/44px var(--font-sans)!important;text-align:center!important;
  box-shadow:0 8px 18px -8px rgba(207,58,82,.8)!important;
}
.ryrm-body.pg_register #ct #main_hnav>span.y{
  position:static!important;float:none!important;display:block!important;
  text-align:center!important;margin:10px 0 16px!important;font-size:12.5px!important;
}
/* ==========================================================================
   53. 设置中心（home.php?mod=spacecp&ac=*）通用排版
   ========================================================================== */
.ryrm-body.pg_spacecp #ct>.mn,
.ryrm-body.pg_spacecp_avatar #ct>.mn{
  flex:1 1 auto!important;min-width:0!important;width:auto!important;float:none!important;
}
.ryrm-body.pg_spacecp #ct>.bm.bw0,
.ryrm-body.pg_spacecp #ct .bm.bw0{
  background:#fff!important;border:1px solid var(--line)!important;border-radius:14px!important;
  box-shadow:0 10px 30px -22px rgba(20,20,23,.28)!important;
  padding:18px 22px 22px!important;overflow:visible!important;
}
.ryrm-body.pg_spacecp #ct>.bm .pt,
.ryrm-body.pg_spacecp #ct .bm>.pt{display:none!important;}

/* 53.1 顶部 tab（我的用户组 / 购买用户组 / …） */
.ryrm-body.pg_spacecp ul.tb.cl{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;
  float:none!important;margin:0 0 16px!important;padding:0!important;border:0!important;height:auto!important;
}
.ryrm-body.pg_spacecp ul.tb.cl>li{
  float:none!important;display:inline-flex!important;margin:0!important;padding:0!important;
  border:0!important;background:none!important;position:relative!important;
}
.ryrm-body.pg_spacecp ul.tb.cl>li>a{
  display:inline-flex!important;align-items:center!important;height:32px!important;padding:0 14px!important;
  border:1px solid var(--line)!important;border-radius:99px!important;background:#fff!important;
  font:400 13px var(--font-sans)!important;color:var(--ink-2)!important;text-decoration:none!important;
}
.ryrm-body.pg_spacecp ul.tb.cl>li.a>a,
.ryrm-body.pg_spacecp ul.tb.cl>li>a:hover{
  background:var(--accent-soft)!important;border-color:#f2cdd5!important;color:var(--accent)!important;font-weight:600!important;
}

/* 53.2 表单表 table.tfm（头像页、推广页、密码安全…） */
.ryrm-body.pg_spacecp table.tfm{
  width:100%!important;border-collapse:separate!important;border-spacing:0!important;
}
.ryrm-body.pg_spacecp table.tfm>tbody>tr>th{
  width:132px!important;padding:9px 14px 9px 0!important;text-align:right!important;
  font:400 13px/1.6 var(--font-sans)!important;color:var(--muted)!important;
  vertical-align:top!important;white-space:nowrap!important;background:none!important;border:0!important;
}
.ryrm-body.pg_spacecp table.tfm>tbody>tr>td{
  padding:9px 0!important;vertical-align:top!important;background:none!important;border:0!important;
  font:400 13.5px/1.7 var(--font-sans)!important;color:var(--ink-2)!important;
}
.ryrm-body.pg_spacecp table.tfm input.px,
.ryrm-body.pg_spacecp table.tfm input.p_fre{
  height:34px!important;line-height:32px!important;padding:0 12px!important;
  border:1px solid var(--line)!important;border-radius:9px!important;background:#fbf9f6!important;
  font-size:13px!important;color:var(--ink)!important;
}
.ryrm-body.pg_spacecp table.tfm input.px:focus{background:#fff!important;border-color:#eaa9b6!important;box-shadow:0 0 0 3px rgba(207,58,82,.10)!important;outline:none!important;}
.ryrm-body.pg_spacecp table.tfm .pn,
.ryrm-body.pg_spacecp table.tfm .pnc{
  height:34px!important;padding:0 16px!important;border-radius:9px!important;
  border:1px solid var(--line)!important;background:#fff!important;color:var(--ink-2)!important;
  font:400 13px var(--font-sans)!important;cursor:pointer!important;
}
.ryrm-body.pg_spacecp table.tfm .pnc{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;font-weight:600!important;}

/* 53.3 权限对比表 table.tdat / .tfxf（我的用户组） */
.ryrm-body.pg_spacecp table.tdat{
  border:1px solid var(--line)!important;border-radius:12px!important;overflow:hidden!important;
  background:#fff!important;border-collapse:separate!important;border-spacing:0!important;
}
.ryrm-body.pg_spacecp table.tdat>tbody>tr>th,
.ryrm-body.pg_spacecp table.tdat>tbody>tr>td{
  padding:8px 14px!important;border-bottom:1px solid var(--line-2)!important;
  font:400 13px/1.6 var(--font-sans)!important;text-align:left!important;vertical-align:middle!important;
}
.ryrm-body.pg_spacecp table.tdat>tbody>tr>th{background:#fcfaf7!important;color:var(--ink)!important;font-weight:600!important;}
.ryrm-body.pg_spacecp table.tdat>tbody>tr>td{color:var(--ink-2)!important;}
.ryrm-body.pg_spacecp table.tdat>tbody>tr:nth-child(even)>td{background:#fbf9f6!important;}
.ryrm-body.pg_spacecp table.tdat>tbody>tr:last-child>th,
.ryrm-body.pg_spacecp table.tdat>tbody>tr:last-child>td{border-bottom:0!important;}
.ryrm-body.pg_spacecp table.tdat.tfxf{width:auto!important;min-width:60%!important;}
.ryrm-body.pg_spacecp table.tdat.tfxf>tbody>tr>th.c0{
  background:var(--accent-soft)!important;color:var(--accent)!important;font-weight:600!important;
}
.ryrm-body.pg_spacecp table.tdat.tfxf>tbody>tr>th.c0 h4{font:600 14px var(--font-sans)!important;color:inherit!important;margin:0!important;}
.ryrm-body.pg_spacecp table.tdat td, 
.ryrm-body.pg_spacecp table.tdat th{color:var(--ink-2)!important;}

/* 53.4 头像页 */
.ryrm-body.pg_spacecp #avatar_upload,
.ryrm-body.pg_spacecp .avatar_upload{margin-top:14px!important;}
.ryrm-body.pg_spacecp #avatar_upload .webuploader-container,
.ryrm-body.pg_spacecp .webuploader-container{width:auto!important;height:auto!important;background:none!important;}
.ryrm-body.pg_spacecp .webuploader-pick{
  background:var(--accent)!important;color:#fff!important;border-radius:10px!important;
  padding:9px 18px!important;font:600 13.5px var(--font-sans)!important;box-shadow:0 10px 20px -14px rgba(207,58,82,.9)!important;
}
.ryrm-body.pg_spacecp #avatar_upload .btn,
.ryrm-body.pg_spacecp #avatar_upload a.btn{background:var(--accent)!important;color:#fff!important;border-radius:10px!important;}
.ryrm-body.pg_spacecp #avatar_upload img{max-width:100%!important;}

/* 53.5 推广页：链接 + 复制按钮一行 */
.ryrm-body.pg_spacecp table.tfm input.px[readonly],
.ryrm-body.pg_spacecp table.tfm input.px[onclick]{width:min(420px,60vw)!important;font-family:ui-monospace,Consolas,monospace!important;font-size:12.5px!important;}

/* 53.6 DIY 空间首页（space&do=index&diy=yes）保持框架，仅统一卡片观感 */
.ryrm-body.pg_space #ct>.area{background:transparent!important;}
.ryrm-body.pg_space #ct .area .bm{border-radius:14px!important;}
/* 53.7 权限表行高对齐（Discuz 是两张独立表，靠行高一致才不会错行） */
.ryrm-body.pg_spacecp table.tdat>tbody>tr>th,
.ryrm-body.pg_spacecp table.tdat>tbody>tr>td{
  height:42px!important;padding:0 14px!important;line-height:42px!important;
  border-bottom:1px solid var(--line-2)!important;vertical-align:middle!important;
}
.ryrm-body.pg_spacecp table.tdat>tbody>tr>th h4{
  display:inline-block!important;margin:0!important;line-height:42px!important;
  font:600 13.5px var(--font-sans)!important;color:#fff!important;
}
/* 表头那条橙色渐变条改成品牌玫瑰红 */
.ryrm-body.pg_spacecp table.tdat>tbody>tr>th.c0,
.ryrm-body.pg_spacecp table.tdat.tfxf>tbody>tr>th.c0{
  background:var(--accent)!important;background-image:none!important;
  color:#fff!important;border-top-left-radius:10px!important;border-top-right-radius:10px!important;
}
.ryrm-body.pg_spacecp table.tdat>tbody>tr>th.c0 *{color:#fff!important;}
/* 积分/等级这类带图标的小行 */
.ryrm-body.pg_spacecp table.tdat td img{vertical-align:-3px!important;margin-right:4px!important;}
/* 53.8 右侧数值表比左侧标签表多两行占位 → 去掉，两表逐行对齐 */
.ryrm-body.pg_spacecp table.tdat.tfxf>tbody:first-child>tr:nth-child(n+3){display:none!important;}
.ryrm-body.pg_spacecp table.tdat.tfxf>tbody:first-child>tr:first-child>th.c0{border-radius:10px 10px 0 0!important;}
/* 53.9 左标签表下移，与右侧数值表首行对齐（右侧表头 + 积分两行 = 86px） */
.ryrm-body.pg_spacecp table.tdat:not(.tfxf){margin-top:43px!important;}