/* ============================================================
   荣宝斋画院 RbzCMS 前台样式（rbz.cn 版式）
   主色 #a92a24 荣宝斋红 | 容器 960px | 响应式 ≤1024 / ≤768
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font: 15px/1.75 "Microsoft YaHei", "PingFang SC", "SimSun", sans-serif; color: #333; background: #fff; }
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #a92a24; }
img { max-width: 100%; border: 0; vertical-align: middle; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.rb-container { width: 960px; max-width: 100%; margin: 0 auto; padding: 0 12px; }
.f-l { float: left; }
.f-r { float: right; }
.rb-clear { clear: both; height: 0; overflow: hidden; }
.rb-main { padding: 18px 0 30px; background: #fff; }

/* ---------- 顶部大图头部 ---------- */
.rb-header {
  position: relative;
  background: #be6658 url(/userfiles/image/topbanner.jpg) no-repeat center center;
  background-size: cover;
}
/* 手机版独立横幅（后台 mobile_banner 分组上传；仅 ≤768 显示，整图完整显示，高度随图自适应） */
.rb-header-mimg { display: none; }
.rb-header.has-mimg .rb-header-mimg {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rb-header-in { position: relative; height: 180px; }
.rb-logo { position: absolute; left: 48px; bottom: 18px; display: block; }
.rb-logo img { width: 300px; }
/* 手机版顶栏 logo（rb-logo-m）：桌面隐藏，仅 ≤768 且已配手机横幅时在顶栏显示 */
.rb-logo-m { display: none; }
.rb-logo-m img { display: block; }
.rb-nav-toggle { display: none; position: absolute; right: 10px; top: 24px; width: 42px; height: 38px; background: rgba(255,255,255,.86); border: 1px solid rgba(0,0,0,.12); border-radius: 6px; }
.rb-nav-toggle span { display: block; width: 22px; height: 2px; background: #8c1f1a; margin: 4px auto; transition: .2s; }
.rb-nav-toggle.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.rb-nav-toggle.on span:nth-child(2) { opacity: 0; }
.rb-nav-toggle.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* 手机全屏菜单头部（左 logo / 右搜索+关闭）：桌面与平板隐藏，仅 ≤768 显示 */
.rb-menu-head { display: none; }

/* ---------- 全站搜索（还原原站 .search：banner 左上角 125×30 输入框+放大镜） ---------- */
/* 注意：全站 * 为 border-box，原站是 content-box；input 尺寸按 border-box 折算为 95×30，与按钮 30px 严丝合缝 */
.rb-search { position: absolute; left: 0; top: 5px; width: 125px; height: 38px; }
.rb-search-input { position: absolute; left: 0; top: 4px; width: 95px; height: 30px; line-height: 28px; text-indent: 8px; font-size: 12px; color: #666; background: #fff; border: 1px solid #d4d0c8; border-right: 0; outline: none; }
.rb-search-input:focus { border-color: #b8b2a8; }
.rb-search-btn { position: absolute; left: 95px; top: 4px; width: 30px; height: 30px; padding: 0; border: 0; background: url(/static/index/images/search.gif) no-repeat; cursor: pointer; text-indent: -9999px; overflow: hidden; }

/* 手机版搜索：放大镜按钮（点按弹出搜索层） */
.rb-search-toggle {
  display: none;
  position: absolute;
  left: auto;      /* 只用 right 定位；同时声明 left:auto 避免历史样式残留导致钉死在左上角 */
  right: 10px;
  top: 14px;
  width: 42px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 6px;
  background: rgba(255,255,255,.86);
  cursor: pointer;
}
.rb-search-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 9px;
  width: 11px;
  height: 11px;
  border: 2px solid #8c1f1a;
  border-radius: 50%;
}
.rb-search-toggle::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 20px;
  width: 8px;
  height: 2px;
  background: #8c1f1a;
  border-radius: 1px;
  transform: rotate(45deg);
  transform-origin: left center;
}
.rb-search-toggle.on { background: #fff; }
.rb-search-pop {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 990;
  background: #a92a24;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.rb-search-pop.show { display: block; }
.rb-search-pop-form { display: flex; gap: 8px; }
.rb-search-pop-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 19px;
  text-indent: 16px;
  font-size: 14px;
  color: #333;
  background: #fff;
  outline: none;
}
.rb-search-pop-btn {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 19px;
  background: #8c1f1a;
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
}
.rb-search-pop-btn:active { background: #7a1a15; }
.rb-search-pop-close {
  flex: 0 0 auto;
  width: 34px;
  height: 38px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 26px;
  line-height: 38px;
  cursor: pointer;
}
.rb-search-pop-close:hover { color: #fff; opacity: .85; }

/* ---------- 主导航（原站 rbz.cn 风格：深红底白字横条，hover 白底紫字） ---------- */
.rb-nav { background: #a92a24; position: relative; z-index: 900; }
.rb-nav .rb-container { width: 960px; max-width: 100%; padding: 0; }
.rb-menu { display: flex; justify-content: flex-start; height: 40px; }
.rb-menu > li { position: relative; padding: 0 5px; }
.rb-menu > li > a { display: block; width: 86px; margin-top: 10px; height: 30px; line-height: 25px; text-align: center; color: #fff; font-size: 14px; font-weight: bold; white-space: nowrap; }
.rb-menu > li:hover > a, .rb-menu > li > a.cur { color: #756aaf; background: #fff; border: 2px solid #a92a24; border-bottom: 0;}
.rb-drop { display: none; position: absolute; left: 5px; top: 40px; width: 86px; box-sizing: border-box; background: #fff; border: 2px solid #a92a24; border-top: 0; z-index: 9999; }
/* 手机端 +/− 独立展开控件（点击只展开折叠不跳转）：桌面隐藏，≤1024 显示 */
.rb-drop-toggle { display: none; position: absolute; right: 0; top: 0; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
.rb-drop-toggle::after { content: "+"; display: block; height: 48px; line-height: 48px; text-align: center; color: #a92a24; font-size: 20px; font-weight: 700; }
.rb-menu > li.has-drop:hover .rb-drop { display: block; }
.rb-drop > li { border-top: 1px solid #ccc; }
.rb-drop > li:first-child { border-top: 0; }
.rb-drop > li > a { display: block; padding: 3px 0; color: #756aaf; font-size: 12px; line-height: 26px; text-align: center; }
.rb-drop > li > a:hover { background: #eee; }

/* ---------- 广告位 ---------- */
.rb-adv { width: 960px; max-width: 100%; margin: 10px auto; }
.rb-adv img { width: 100%; display: block; }

/* ---------- 焦点图轮播 ---------- */
.rb-focus { position: relative; width: 960px; max-width: 100%; margin: 10px auto 0; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.rb-focus-clip { overflow: hidden; }
.rb-focus-track { display: flex; transition: transform .6s ease; }
.rb-focus-item { position: relative; flex: 0 0 100%; }
.rb-focus-item img { width: 100%; height: 400px; object-fit: cover; display: block; }
.rb-focus-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 16px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65)); color: #fff; }
.rb-focus-txt h3 { font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.rb-focus-txt h3 a { color: #fff; }
.rb-focus-txt h3 a:hover { color: #f6d9a8; }
.rb-focus-txt p { font-size: 13px; color: rgba(255,255,255,.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-focus-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 64px; background: rgba(0,0,0,.28); }
.rb-focus-arr:hover { background: rgba(169,42,36,.75); }
.rb-focus-arr::before { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border-top: 3px solid #fff; border-left: 3px solid #fff; }
.rb-arr-left { left: 0; border-radius: 0 4px 4px 0; }
.rb-arr-left::before { transform: translate(-30%,-50%) rotate(-45deg); }
.rb-arr-right { right: 0; border-radius: 4px 0 0 4px; }
.rb-arr-right::before { transform: translate(-70%,-50%) rotate(135deg); }
.rb-focus-dots { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 8px; }
.rb-focus-dots button { width: 30px; height: 6px; border: 0; border-radius: 3px; background: rgba(255,255,255,.5); }
.rb-focus-dots button.cur { background: #a92a24; }

/* ---------- 首页六组列表（原站风格：黑粗标题 + 细线，无背景条） ---------- */
.rb-home { width: 100%; padding-top: 12px; }
.rb-newsbox { width: 462px; background: #fff; margin-bottom: 22px; }
.rb-newsbox-title { height: 36px; line-height: 36px; border-bottom: 1px solid #999; }
.rb-newsbox-title a { color: #222; font-size: 17px; font-weight: bold; letter-spacing: 1px; }
.rb-newsbox-title a:hover { color: #a92a24; }
.rb-newsbox-list { padding: 4px 0 0; }
.rb-newsbox-list li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; }
.rb-newsbox-list b { color: #999; font-size: 13px; font-weight: 400; flex: 0 0 74px; font-family: Tahoma, sans-serif; }
.rb-newsbox-list a { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; color: #333; }

/* ---------- 名家导师滚动条（原站风格：158×158 方图 + 砖红信息栏，整排紧贴） ---------- */
.rb-masters { position: relative; width: 962px; max-width: 100%; margin: 6px auto 16px; overflow: hidden; }
.rb-m-clip { overflow: hidden; padding: 0; }
.rb-m-track { display: flex; transition: transform .45s ease; }
.rb-m-item { flex: 0 0 158px; width: 158px; background: #be6f4e; margin-right: 2px; }
.rb-m-item a { display: block; }
.rb-m-item img { width: 158px; height: 158px; object-fit: cover; display: block; border: 0; }
.rb-m-item:hover img { opacity: .92; }
.rb-m-name { font-size: 16px; color: #fff; height: 30px; line-height: 30px; text-align: center; overflow: hidden; font-family: "Microsoft YaHei", sans-serif; white-space: nowrap; }
.rb-m-sub { font-size: 14px; color: #fff; height: 34px; line-height: 26px; text-align: center; overflow: hidden; font-family: "Microsoft YaHei", sans-serif; }
.rb-m-arr { position: absolute; top: 60px; z-index: 20; width: 26px; height: 40px; background: rgba(169,42,36,.65); }
.rb-m-arr:hover { background: rgba(169,42,36,.95); }
.rb-m-arr::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-top: 3px solid #fff; border-left: 3px solid #fff; }
.rb-m-left { left: 0; border-radius: 0 3px 3px 0; }
.rb-m-left::before { transform: translate(-30%,-50%) rotate(-45deg); }
.rb-m-right { right: 0; border-radius: 3px 0 0 3px; }
.rb-m-right::before { transform: translate(-70%,-50%) rotate(135deg); }

/* ---------- 列表页（原站风格：左栏砖红标题+栏目图+砖红子菜单） ---------- */
.rb-listbox { display: flex; gap: 20px; }
.rb-listleft { flex: 0 0 260px; align-self: flex-start; }
.rb-listleft-bt { height: 45px; line-height: 45px; text-align: center; color: #fff; font-size: 17px; letter-spacing: 4px; background: #be6f4e; font-family: "Microsoft YaHei", sans-serif; }
.rb-listleft-tp img { width: 100%; display: block; }
.rb-listleft-lm { padding: 0; }
.rb-listleft-lm li { text-align: center; margin-top: 2px; }
.rb-listleft-lm li a { display: block; padding: 9px 12px; font-size: 14px; color: #fff; background: #be6f4e; }
.rb-listleft-lm li a:hover { background: #a85f40; }
.rb-listleft-lm li.active a { background: #a92a24; }

.rb-listright { flex: 1 1 auto; min-width: 0; }
.rb-crumb { padding: 0 0 10px; font-size: 13px; color: #999; border-bottom: 1px solid #eee; margin-bottom: 14px; }
.rb-crumb a { color: #777; }
.rb-crumb a:hover { color: #a92a24; }

.rb-listright-list li.li01 { display: flex; gap: 16px; padding: 14px 2px; border-bottom: 1px solid #eee; }
.rb-listright-list .lct { flex: 0 0 200px; }
.rb-listright-list .lct img { width: 200px; height: 130px; object-fit: cover; border-radius: 3px; transition: box-shadow .2s; }
.rb-listright-list li.li01:hover .lct img { box-shadow: 0 6px 16px rgba(0,0,0,.16); }
.rb-listright-list .rct { flex: 1 1 auto; min-width: 0; }
.rb-listright-list .title a { font-size: 16.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; white-space: normal; word-break: break-all; }
.rb-listright-list .intro { margin-top: 6px; color: #777; font-size: 13.5px; line-height: 1.7; max-height: 68px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rb-listright-list .biaoqian { margin-top: 8px; }
.rb-listright-list .tags { color: #b5a494; font-size: 12.5px; }
.rb-empty { padding: 60px 0; text-align: center; color: #aaa; }

.rb-fenye { padding: 26px 0 10px; text-align: center; height: 36px; }
.rb-fenye a, .rb-fenye span { display: inline-block; width: 33px; height: 35px; line-height: 35px; text-align: center; font-size: 14px; color: #666; background: #fff; border: 1px solid #e5e5e5; border-bottom: 1px solid #ccc; margin: 0 2px; vertical-align: top; }
.rb-fenye a:hover { color: #333; }
.rb-fenye .curr { background: #be6f4e; border-color: #be6f4e; color: #fff; }
.rb-fenye .dots { border: 0; background: none; width: auto; padding: 0 4px; line-height: 37px; }

/* ---------- 详情页 ---------- */
.rb-contbox { max-width: 900px; margin: 0 auto; }
.rb-cont-title { font-size: 23px; line-height: 1.5; text-align: center; font-weight: 600; font-family: "Microsoft YaHei", "SimSun", serif; letter-spacing: 1px; margin: 6px 0 10px; }
.rb-cont-meta { text-align: center; color: #a09586; font-size: 13px; padding-bottom: 14px; border-bottom: 1px dashed #e2d8c8; margin-bottom: 16px; }
.rb-cont-body { font-size: 16px; line-height: 2; color: #3c3833; }
/* 正文段落首行缩进 2 字（图片/图注/按钮/通栏提示除外，还原原站 text-indent 2em 版式） */
.rb-cont-body p, .rb-cont-body div { text-indent: 2em; }
.rb-cont-body .pic, .rb-cont-body .pic1, .rb-cont-body .btn, .rb-cont-body .ts,
.rb-cont-body .pic p, .rb-cont-body .pic div, .rb-cont-body .pic1 p, .rb-cont-body .pic1 div,
.rb-cont-body .btn p, .rb-cont-body .btn div, .rb-cont-body .ts p, .rb-cont-body .ts div { text-indent: 0; }
.rb-cont-body p { margin: 0 0 10px; }
/* 图片满宽铺满（原站 .pic img width:960px），图注居中加粗 */
.rb-cont-body img { width: 100%; max-width: 100%; height: auto; display: block; margin: 8px auto; border-radius: 2px; }
.rb-cont-body .pic, .rb-cont-body .pic1 { text-align: center; text-indent: 0; margin: 12px 0; }
.rb-cont-body .pic img { margin: 0 auto; }
.rb-cont-body .pic span, .rb-cont-body .pic1 span {
  display: block;
  margin: 8px 0 4px;
  text-indent: 0;
  font-size: 14px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #000;
  text-align: center;
  font-weight: bold;
}
.rb-cont-body .btn, .rb-cont-body .ts { text-indent: 0; }
.rb-cont-body a { color: #a92a24; text-decoration: underline; }
.rb-pdf { margin: 22px 0; text-align: center; }
.rb-pdf-link, .rb-pdf a { display: inline-block; padding: 10px 34px; background: #a92a24; color: #fff; border-radius: 4px; font-size: 15px; letter-spacing: 2px; }
.rb-pdf a:hover { background: #8c1f1a; color: #fff; }

/* 正文内的"课程简介"跳转按钮（还原原站 .btn .btninfo：圆角立体 + 右侧深色圆形白箭头，配色改为主题砖红） */
.rb-cont-body .btn { margin: 10px 0 20px; }
.rb-cont-body .btn a { text-decoration: none; color: #fff; }
.rb-cont-body .btn .btninfo {
  position: relative;
  display: inline-block;
  padding: 10px 50px 10px 20px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  background-color: #be6f4e;
  background-image: linear-gradient(180deg, #cd8261 0%, #be6f4e 100%);
  box-shadow: inset 0 1px 0 #e3a186, 0 5px 0 0 #8f4a2c, 0 10px 5px rgba(60, 40, 30, .35);
  transition: filter .15s ease;
}
.rb-cont-body .btn .btninfo:hover { color: #fff; filter: brightness(1.05); }
/* 正文里按钮文字常被编辑器包了带颜色的 span，统一回白色，避免红字压在砖红底上看不清 */
.rb-cont-body .btn .btninfo span { color: inherit !important; font-size: inherit !important; }
.rb-cont-body .btn .btninfo:active {
  top: 3px;
  background-image: linear-gradient(180deg, #be6f4e 0%, #cd8261 100%);
  box-shadow: inset 0 1px 0 #e3a186, 0 2px 0 0 #8f4a2c, 0 5px 3px rgba(60, 40, 30, .3);
}
.rb-cont-body .btn .btninfo::before {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  margin-top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #9c4b2b;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .25);
}
.rb-cont-body .btn .btninfo::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  margin-top: -4px;
  width: 0;
  height: 0;
  border-left: 6px solid #fff;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.rb-cont-body .btn .btninfo:active::before { margin-top: -7px; }
.rb-related { margin-top: 28px; border-top: 2px solid #a92a24; padding-top: 14px; }
.rb-related h2 { font-size: 17px; margin-bottom: 10px; letter-spacing: 2px; }
.rb-related li { padding: 4px 0; }
.rb-related a { font-size: 14.5px; color: #555; }
.rb-related a:hover { color: #a92a24; }

.rb-listright-page { padding: 6px 2px 20px; font-size: 16px; line-height: 2; min-height: 240px; }
.rb-listright-page img { max-width: 100%; height: auto; }

/* ---------- 页脚（还原原站 .footbj1 灰带 + .footbj2 深红版权条） ---------- */
.rb-footer { background: #999; margin-top: 30px; }
.rb-footer-in { display: flex; align-items: flex-start; width: 960px; max-width: 100%; margin: 0 auto; padding: 10px 0 8px; }
.rb-foot-group { display: flex; flex: 0 0 404px; gap: 2px; }
.rb-foot-group:last-child { flex: 0 0 404px; }
.rb-foot-col { width: 180px; margin: 0 11px; }
.rb-foot-col ul::after { content: ""; display: block; clear: both; }
.rb-foot-bt { height: 35px; line-height: 33px; border-bottom: 1px solid #fff; color: #fff; font-size: 14px; }
.rb-foot-col li { float: left; width: 80px; margin-right: 10px; line-height: 35px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-foot-col a { color: #fff; }
.rb-foot-col a:hover { color: #fff; text-decoration: underline; }
.rb-foot-wx { flex: 0 0 auto; margin: 0 27px 0 16px; text-align: center; }
.rb-foot-wx img { display: block; width: 109px; height: 109px; margin: 0 auto; border-radius: 2px; }
.rb-foot-wx p { color: #fff; font-size: 13px; margin-top: 4px; }
.rb-copy { background: #a92a24; min-height: 50px; line-height: 50px; color: #fff; font-size: 14px; text-align: center; }
.rb-copy-in { width: 960px; max-width: 100%; margin: 0 auto; padding: 0 12px; }
.rb-copy a { color: #fff; }
.rb-copy a:hover { color: #fff; text-decoration: underline; }
.rb-copy span { margin-left: 20px; }
.rb-cert { display: inline-block; vertical-align: middle; line-height: 1; }
.rb-cert a { display: inline-block; }
.rb-cert img { width: 103px; height: 38px; vertical-align: middle; }

/* ---------- 学员学籍查询（原 xj.rbz.cn 查询系统版式） ---------- */
.rb-stu { width: 640px; max-width: 100%; margin: 18px auto 10px; }
.rb-stu-head { text-align: center; margin-bottom: 18px; }
.rb-stu-head h2 { font-size: 22px; color: #8c1f1a; letter-spacing: 4px; font-weight: 600; }
.rb-stu-head p { margin-top: 8px; font-size: 13px; color: #9a8e80; letter-spacing: 1px; }
.rb-stu-form { background: #fff; border: 1px solid #e8e0d4; border-radius: 6px; padding: 26px 30px 22px; box-shadow: 0 4px 16px rgba(120,100,80,.06); }
.rb-stu-row { display: flex; align-items: center; margin-bottom: 14px; }
.rb-stu-row label { flex: 0 0 86px; font-size: 14px; color: #6d625a; letter-spacing: 1px; }
.rb-stu-row input { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid #d8cfc0; border-radius: 4px; font-size: 14px; color: #3c3833; background: #fffdfa; outline: none; }
.rb-stu-row input:focus { border-color: #be6f4e; background: #fff; }
.rb-stu-row input.rb-stu-code { flex: 0 0 170px; }
.rb-stu-captcha { width: 120px; height: 40px; margin-left: 10px; border: 1px solid #d8cfc0; border-radius: 4px; cursor: pointer; }
.rb-stu-error { margin: 4px 0 12px 86px; color: #c0392b; font-size: 13px; }
.rb-stu-btns { display: flex; gap: 12px; padding-left: 86px; margin-top: 6px; }
.rb-stu-btn { display: inline-block; height: 40px; line-height: 40px; padding: 0 34px; border: 0; border-radius: 4px; background: #a92a24; color: #fff; font-size: 15px; letter-spacing: 3px; cursor: pointer; text-align: center; }
.rb-stu-btn:hover { background: #8c1f1a; color: #fff; }
.rb-stu-btn2 { background: #be6f4e; }
.rb-stu-btn2:hover { background: #a85f40; }
.rb-stu-result { margin-top: 18px; background: #fff; border: 1px solid #e8e0d4; border-radius: 6px; overflow: hidden; }
.rb-stu-result-bt { height: 42px; line-height: 42px; padding-left: 18px; background: #be6f4e; color: #fff; font-size: 15px; letter-spacing: 2px; }
.rb-stu-result table { width: 100%; border-collapse: collapse; }
.rb-stu-result th { width: 120px; padding: 11px 14px; text-align: left; font-weight: normal; font-size: 14px; color: #6d625a; background: #faf6f0; border-bottom: 1px solid #f0e9df; letter-spacing: 1px; }
.rb-stu-result td { padding: 11px 14px; font-size: 14px; color: #3c3833; border-bottom: 1px solid #f0e9df; line-height: 1.7; }
.rb-stu-result tr:last-child th, .rb-stu-result tr:last-child td { border-bottom: 0; }

/* ---------- 回顶 / 弹窗 / Cookie ---------- */
.rb-gotop { display: none; position: fixed; right: 18px; bottom: 70px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(169,42,36,.85); color: #fff; font-size: 15px; z-index: 960; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.rb-gotop.show { display: block; }
.rb-gotop:hover { background: #8c1f1a; }

.rb-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.62); z-index: 980; }
.rb-mask.show { display: block; }
.rb-popup { position: absolute; left: 50%; top: 38%; transform: translate(-50%,-50%); width: 360px; max-width: 92vw; background: #a92a24; border-radius: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.4); overflow: hidden; animation: rbpop .35s ease; }
@keyframes rbpop { from { opacity: 0; transform: translate(-50%,-36%) scale(.92); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
.rb-popup-close { position: absolute; right: 8px; top: 6px; width: 30px; height: 30px; background: none; border: 0; color: rgba(255,255,255,.75); font-size: 22px; z-index: 2; }
.rb-popup-close:hover { color: #fff; }
.rb-popup-body { padding: 34px 26px 12px; color: #fff; font-size: 15.5px; line-height: 1.9; text-align: center; font-weight: 300; }
/* 有配图时：文案叠加在图片层底部（与首页焦点图文字层同款渐变） */
.rb-popup-img { position: relative; }
.rb-popup-img img { display: block; width: 100%; height: auto; }
.rb-popup-img .rb-popup-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 22px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.65));
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.rb-popup-btns { display: flex; border-top: 1px solid rgba(255,255,255,.25); }
.rb-popup-btn { display: block; flex: 1; height: 46px; line-height: 46px; text-align: center; border: 0; background: none; color: #fff; font-size: 15px; letter-spacing: 2px; }
.rb-popup-btn1 { background: rgba(0,0,0,.18); }
.rb-popup-btn:hover { background: rgba(0,0,0,.32); color: #fff; }

.rb-cookie { display: none; position: fixed; left: 0; right: 0; bottom: 0; background: #222; color: #fff; padding: 14px 18px; z-index: 970; }
.rb-cookie.show { display: block; }
.rb-cookie-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.rb-cookie-text { flex: 1 1 280px; font-size: 14px; line-height: 1.6; }
.rb-cookie-btns { display: flex; gap: 12px; }
.rb-cookie-btns button { padding: 8px 20px; border-radius: 4px; border: 0; font-size: 14px; }
.rb-cookie-accept { background: #a92a24; color: #fff; }
.rb-cookie-refuse { background: #fff; color: #222; }

/* ---------- 响应式：平板 ≤1024 ---------- */
@media (max-width: 1024px) {
  .rb-nav-toggle { display: block; }
  .rb-header-in { height: 150px; }
  .rb-logo img { width: 250px; }
  .rb-nav .rb-container { width: 960px; max-width: 100%; padding: 0; }
  .rb-menu { display: none; height: auto; }
  .rb-nav.open .rb-menu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; max-height: 80vh; overflow-y: auto; box-shadow: 0 12px 26px rgba(0,0,0,.2); border-top: 2px solid #a92a24; }
  .rb-menu > li { padding: 0; }
  .rb-menu > li > a { width: auto; margin-top: 0; height: auto; line-height: 44px; padding: 0 18px; text-align: left; color: #333; font-weight: normal; font-size: 15px; border-bottom: 1px solid #f0e6d8; }
  .rb-menu > li:hover > a, .rb-menu > li > a.cur { color: #a92a24; background: #faf5ef; border: 0; border-bottom: 1px solid #f0e6d8; }
  /* 平板：+/− 展开控件同手机 */
  .rb-drop-toggle { display: block; }
  .rb-menu > li.has-drop.open .rb-drop { display: block; position: static; border: 0; width: auto; }
  .rb-drop > li > a { text-align: left; padding: 0 34px; color: #6d625a; line-height: 38px; font-size: 13px; }
  /* 触摸设备 :hover 会残留（点完手指离开但 hover 态仍在）：未展开项的桌面 hover 下拉
     （86px 红框窄条 absolute）会在折叠后复活盖在菜单上，≤1024 一律禁掉，展开统一走 +/− 按钮 */
  .rb-menu > li.has-drop:not(.open):hover .rb-drop { display: none !important; }
  .rb-focus-item img { height: 320px; }
  .rb-newsbox { width: 48%; }
  .rb-footer-in { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .rb-foot-group, .rb-foot-group:last-child { flex: 0 0 auto; }
}

/* ---------- 响应式：手机 ≤768 ---------- */
@media (max-width: 768px) {
  /* ===== 顶部两块式（参考 uni-bioscience 手机站） =====
     第一块：红色固定顶栏（左白色 logo，右侧白色搜索+汉堡线条图标），下滑时固定不随页面滚动
     第二块：横幅整图；菜单为全屏白色面板（顶部带头部行，右侧滑入） */
  .rb-header { margin-bottom: 0; }
  .rb-header-in { height: 118px; }
  /* 未配置手机横幅时：沿用深红底横幅 + 叠加按钮的旧版式 */
  .rb-header.has-mimg .rb-header-mimg { display: block; position: static; width: 100%; height: auto; }
  .rb-header.has-mimg { background-image: none; background-color: #be6658; }
  .rb-search { display: none; }
  .rb-search-toggle { display: block; top: 24px; width: 42px; height: 38px; }
  .rb-nav-toggle { right: 58px; }
  .rb-search-toggle::before { left: 14px; top: 11px; }
  .rb-search-toggle::after { left: 24px; top: 22px; }
  .rb-logo { left: 14px; bottom: 12px; }
  .rb-logo img { width: 200px; }

  /* 第一块：红色固定顶栏（页面下滑时保持置顶） */
  .rb-header.has-mimg { display: flex; flex-direction: column; background-color: #a92a24; }
  .rb-header.has-mimg .rb-header-in {
    order: 1;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 12px;
    background: #a92a24;
    box-shadow: 0 1px 4px rgba(0,0,0,.22);
  }
  /* 顶栏右侧按钮组：与 logo 分属两个 flex 分区，任一 margin 规则失效也不会叠压 */
  .rb-header.has-mimg .rb-topbar-btns { display: flex; align-items: center; margin-left: auto; flex: 0 0 auto; }
  /* 第二块：横幅整图（从固定顶栏下方开始） */
  .rb-header.has-mimg .rb-header-mimg { order: 2; margin-top: 52px; }
  .rb-header.has-mimg .rb-logo { display: none; }
  .rb-header.has-mimg .rb-logo-m { display: block; position: static; margin-right: auto; }
  .rb-header.has-mimg .rb-logo-m img { width: 150px; height: auto; }
  /* 顶栏右侧按钮（组内）：无底色白色线条图标
     注意 position 必须 relative 不能 static：static 时伪元素（放大镜）会相对 fixed 顶栏
     定位（left:12px top:12px），画到 logo 上导致"图标压 logo"；
     relative 后基础样式的 top/right 偏移仍会生效，这里一并归零 */
  .rb-header.has-mimg .rb-topbar-btns .rb-search-toggle,
  .rb-header.has-mimg .rb-topbar-btns .rb-nav-toggle {
    position: relative;
    top: 0;
    right: auto;
    left: auto;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }
  .rb-header.has-mimg .rb-topbar-btns .rb-search-toggle { margin-right: 2px; }
  .rb-header.has-mimg .rb-topbar-btns .rb-search-toggle.on { background: none; }
  .rb-header.has-mimg .rb-topbar-btns .rb-search-toggle::before { left: 12px; top: 12px; border-color: #fff; }
  .rb-header.has-mimg .rb-topbar-btns .rb-search-toggle::after { left: 22px; top: 23px; background: #fff; }
  .rb-header.has-mimg .rb-topbar-btns .rb-nav-toggle span { background: #fff; }

  /* ===== 全屏白色菜单面板（参考站效果：右滑入，顶部头部行 + 菜单列表） =====
     注意：.rb-nav 基础 z-index:900 会创建层叠上下文，把面板压在红色固定顶栏(1000)下，这里提到 1200 */
  .m-banner .rb-nav { z-index: 1200; }
  .rb-menu-head {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 6px 0 14px;
    background: #fff;
    border-bottom: 1px solid #f0e6d8;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .m-banner .rb-nav.open .rb-menu-head { transform: translateX(0); }
  .rb-menu-head-logo { margin-right: auto; }
  .rb-menu-head-logo img { display: block; width: 130px; height: auto; }
  .rb-menu-head-search { position: relative; width: 42px; height: 42px; padding: 0; border: 0; background: none; cursor: pointer; }
  .rb-menu-head-search::before { content: ""; position: absolute; left: 12px; top: 12px; width: 11px; height: 11px; border: 2px solid #a92a24; border-radius: 50%; }
  .rb-menu-head-search::after { content: ""; position: absolute; left: 22px; top: 23px; width: 8px; height: 2px; background: #a92a24; border-radius: 1px; transform: rotate(45deg); transform-origin: left center; }
  .rb-menu-head-close { width: 42px; height: 42px; padding: 0; border: 0; background: none; color: #333; font-size: 26px; line-height: 42px; cursor: pointer; }
  .rb-menu-head-close:hover { color: #a92a24; }

  .m-banner .rb-menu {
    display: block;
    position: fixed;
    top: 52px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: none;
    background: #fff;
    overflow-y: auto;
    box-shadow: none;
    border-top: 0;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .m-banner .rb-nav.open .rb-menu {
    position: fixed;
    top: 52px;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: none;
    transform: translateX(0);
  }
  .m-banner .rb-menu > li { padding: 0; }
  .m-banner .rb-menu > li > a {
    position: relative;
    width: auto;
    margin: 0;
    height: auto;
    line-height: 48px;
    padding: 0 20px;
    text-align: left;
    color: #333;
    font-weight: normal;
    font-size: 15px;
    border-bottom: 1px solid #f0e6d8;
    background: #fff;
  }
  .m-banner .rb-menu > li > a.cur { color: #a92a24; font-weight: 600; }
  /* +/− 独立控件：点击只展开折叠不跳转（参考站 ys-phnav-icon 同构，深红细线风） */
  .m-banner .rb-menu > li .rb-drop-toggle { display: block; }
  .m-banner .rb-menu > li .rb-drop-toggle::after { color: #a92a24; height: 48px; line-height: 48px; font-size: 20px; }
  .m-banner .rb-menu > li.open .rb-drop-toggle::after { content: "\2212"; }
  /* 二级子菜单（参考站：缩进约两汉字、深灰带蓝调、行高较一级略小、左侧短分隔线、与一级同白底无色差） */
  .m-banner .rb-menu > li.has-drop.open .rb-drop { position: static; border: 0; width: auto; background: #fff; }
  .m-banner .rb-drop > li > a { padding: 0 20px 0 54px; color: #5b5f66; line-height: 42px; font-size: 14px; text-align: left; border-bottom: 0; }
  .m-banner .rb-drop > li > a::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; border-bottom: 1px solid #eee; }
  .m-banner .rb-drop > li { position: relative; }
  .m-banner .rb-drop > li > a:hover { color: #a92a24; }
  /* 搜索层盖在红色固定顶栏上方 */
  .rb-search-pop { z-index: 1100; }
  .rb-main { padding: 10px 0 16px; }
  .rb-listbox { display: block; }
  .rb-listbox .rb-listleft, .rb-listbox .rb-listright { float: none; width: 100%; flex-basis: auto; }
  .rb-listleft { margin-bottom: 14px; }
  .rb-listright-list .lct { flex-basis: 118px; }
  .rb-listright-list .lct img { width: 118px; height: 84px; }
  .rb-listright-list .title a { font-size: 15.5px; -webkit-line-clamp: 2; }
  .rb-listright-list .intro { -webkit-line-clamp: 2; font-size: 12.5px; }
  .rb-newsbox { width: 100%; float: none !important; }
  .rb-focus-item img { height: 200px; }
  .rb-focus-txt h3 { font-size: 15px; }
  .rb-m-item { flex-basis: 108px; width: 108px; }
  .rb-m-item img { width: 108px; height: 108px; }
  .rb-m-name { font-size: 13px; height: 26px; line-height: 26px; }
  .rb-m-sub { font-size: 12px; height: 24px; line-height: 20px; }
  .rb-m-arr { top: 44px; width: 22px; height: 30px; }
  .rb-newsbox-title { height: 32px; line-height: 32px; }
  /* 手机端分页条：去掉桌面版式的固定 height（border-box 下被 padding 占满导致方块
     溢出压到红底版权条），恢复正常文档流高度，与页脚留出间距 */
  .rb-fenye { height: auto; padding: 18px 0 24px; }
  /* 手机版页脚：隐藏灰带（栏目导航组 + 微信二维码），只保留红底版权条
     （DOM 保留，桌面端不受影响，搜索引擎仍可抓取友链/栏目） */
  .rb-footer { display: none; }
  .rb-copy { min-height: 0; line-height: 1.7; font-size: 12.5px; padding: 8px 0; }
  .rb-copy span { display: inline-block; margin-left: 0; margin-right: 10px; }
  .rb-cert { display: block; margin-top: 2px; }
  .rb-cont-title { font-size: 19px; }
  .rb-cont-body, .rb-listright-page { font-size: 15px; }
  .rb-cookie-in { flex-direction: column; align-items: flex-start; }
  .rb-stu-form { padding: 18px 16px 16px; }
  .rb-stu-row label { flex: 0 0 72px; font-size: 13px; }
  .rb-stu-row input.rb-stu-code { flex: 1 1 auto; }
  .rb-stu-error { margin-left: 0; }
  .rb-stu-btns { padding-left: 0; justify-content: center; }
  .rb-stu-result th { width: 88px; }
}