/* =========================================================
   嗯行网 静态复刻站 - 全局主题
   Light / Dark, 移动端优先, max-width 720px
   ========================================================= */

/* ---------- Icon fonts ---------- */
@font-face {
  font-family: 'FontAwesome';
  src: url('fonts/fontawesome-webfont.woff2') format('woff2'),
       url('fonts/fontawesome-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'remixicon';
  src: url('fonts/remixicon.woff2') format('woff2'),
       url('fonts/remixicon.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --yh-primary: #378d8d;
  --yh-primary-hover: #2f7777;
  --yh-primary-soft: rgba(55, 141, 141, .1);
  --yh-bg: #f2f2f2;
  --yh-card: #ffffff;
  --yh-card-2: #fbfbfb;
  --yh-card-3: #f7f7f7;
  --yh-border: #ececec;
  --yh-border-2: #e2e8f0;
  --yh-text: #333333;
  --yh-text-2: #666666;
  --yh-muted: #999999;
  --yh-muted-2: #bbbbbb;
  --yh-link: #378d8d;
  --yh-danger: #e5484d;
  --yh-radius: 8px;
  --yh-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

html.yh-theme-dark {
  --yh-primary: #4fa8a8;
  --yh-primary-hover: #63bcbc;
  --yh-primary-soft: rgba(79, 168, 168, .16);
  --yh-bg: #121212;
  --yh-card: #1d1d1d;
  --yh-card-2: #232323;
  --yh-card-3: #272727;
  --yh-border: #2c2c2c;
  --yh-border-2: #333333;
  --yh-text: #cfcfcf;
  --yh-text-2: #a8a8a8;
  --yh-muted: #868686;
  --yh-muted-2: #666666;
  --yh-link: #6fc2c2;
  --yh-danger: #ff6b6b;
  --yh-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--yh-text);
  background: var(--yh-bg);
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--yh-link); text-decoration: none; }
a:visited { color: var(--yh-link); }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
h1,h2,h3,h4,h5,h6,p,ul,ol,figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
hr { border: none; border-top: 1px solid var(--yh-border); margin: 8px 0; }

/* App frame */
body > .main-container,
.main-container {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--yh-bg);
  position: relative;
}
@media (min-width: 721px) {
  body { background: #e9e9e9; }
  html.yh-theme-dark body { background: #0b0b0b; }
}

/* ---------- Classic BBS: breadcrumb / button rows ---------- */
.title {
  padding: 9px 12px;
  background: var(--yh-card);
  border-bottom: 1px solid var(--yh-border);
  font-size: 13px;
  color: var(--yh-muted);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.title::-webkit-scrollbar { display: none; }
.title a { color: var(--yh-text-2); }
.title a:hover { color: var(--yh-primary); }

.btBox, .btbox {
  background: var(--yh-card);
  padding: 7px 12px;
  border-bottom: 1px solid var(--yh-border);
}
.bt4, .bt2, .bt1 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bt1 { display: block; text-align: center; }
.bt4 a, .bt2 a, .bt1 a {
  display: inline-block;
  padding: 4px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--yh-text-2);
  background: var(--yh-card-3);
  border: 1px solid var(--yh-border);
  border-radius: 999px;
}
.bt4 a:hover, .bt2 a:hover, .bt1 a:hover {
  color: var(--yh-primary);
  border-color: var(--yh-primary);
}
.bt4 a:active, .bt2 a:active, .bt1 a:active {
  background: var(--yh-primary);
  border-color: var(--yh-primary);
  color: #fff;
}

/* ---------- Classic BBS: list ---------- */
.listdata {
  background: var(--yh-card);
  padding: 10px 12px;
  border-bottom: 1px solid var(--yh-border);
  font-size: 15px;
  line-height: 1.65;
}
.listdata.line1 { background: var(--yh-card); }
.listdata.line2 { background: var(--yh-card-2); }
.listdata img { height: 16px; width: auto; margin-right: 3px; vertical-align: -3px; }
.listdata br { line-height: .6; }
.topic-link { color: var(--yh-text); font-size: 15px; }
.topic-link:visited { color: var(--yh-text); }
.listdata .louzhunicheng { color: var(--yh-muted); font-size: 12px; }
.listdata .louzhunicheng a { color: var(--yh-muted); }
.listdata .right { float: right; color: var(--yh-muted-2); font-size: 12px; }
.listdata .right span { display: none; }
.listdata font { font-size: 12px; }
.listdata:active { background: var(--yh-card-3); }

/* pagination */
.showpage {
  background: var(--yh-card);
  padding: 10px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--yh-muted);
  border-bottom: 1px solid var(--yh-border);
}
.showpage input[type="text"] {
  width: 40px;
  padding: 2px 4px;
  margin: 0 3px;
  text-align: center;
  border: 1px solid var(--yh-border-2);
  border-radius: 4px;
  background: transparent;
  color: var(--yh-text);
}
.urlbtn {
  padding: 3px 10px;
  margin-left: 4px;
  font-size: 12px;
  color: #fff;
  background: var(--yh-primary);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.newMessage { display: none; }
.newMessage a { color: var(--yh-primary); }

/* generic classic boxes */
.dashed { border-top: 1px dashed var(--yh-border-2); margin: 10px 0; }
.separate { border-top: 1px solid var(--yh-border); margin: 10px 0; }
.separate2 { border-top: 2px solid var(--yh-border); margin: 12px 0; }
.space { padding: 2px 0; }
.listmms { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 12px; background: var(--yh-card); }
.listmms img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.laizi { font-size: 12px; color: var(--yh-muted); }
.flex { display: flex; }
.flex-align-center { display: flex; align-items: center; }
.flex-v { display: flex; flex-direction: column; }
.flex-col { display: flex; flex-direction: column; }
.flex-pack-justify-center { justify-content: center; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ---------- Form controls (classic) ---------- */
.select_label, .select_input { display: inline-block; }
.ulselect {
  position: relative;
  border: 1px solid var(--yh-border-2);
  border-radius: 6px;
  background: var(--yh-card);
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
}
.select_options {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 50;
  background: var(--yh-card);
  border: 1px solid var(--yh-border-2);
  border-radius: 6px;
  box-shadow: var(--yh-shadow);
  overflow: hidden;
}
.select_option { padding: 9px 12px; font-size: 14px; }
.select_option:hover { background: var(--yh-primary-soft); }
.select_expand .select_options { display: block; }
.view-hidden { display: none !important; }

input[type="text"], input[type="password"], input[type="number"], textarea, select {
  background: var(--yh-card);
  color: var(--yh-text);
  border: 1px solid var(--yh-border-2);
  border-radius: 6px;
  padding: 8px 10px;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--yh-primary); }

/* =========================================================
   帖子详情页
   ========================================================= */
.rectangle-container {
  background: var(--yh-card);
  padding: 8px 12px;
  border-bottom: 1px solid var(--yh-border);
  font-size: 13px;
}
.rectangle { display: block; }
.notification-text { display: flex; align-items: center; gap: 6px; color: var(--yh-primary); }
.notification-text .material-icons { display: inline-flex; width: 18px; height: 18px; }
.notification-text .material-icons svg { width: 18px; height: 18px; fill: currentColor; }
.view-notify-hidden { display: none; }
.view-pad-left-3 { padding-left: 3px; }
.view-pad-2 { padding: 0 3px; }
.view-pad-right-2 { padding-right: 2px; }
.view-pad-right-3 { padding-right: 3px; }
.view-yishang-pad { padding: 0 3px; }
.view-recontent-pad { padding: 0; }

.subtitle2 {
  background: var(--yh-card);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--yh-muted);
  border-bottom: 1px solid var(--yh-border);
}
.subtitle2 a { color: var(--yh-text-2); margin-right: 12px; }

.content {
  background: var(--yh-card);
  padding: 14px 12px;
}
.xuanshang { color: var(--yh-primary); font-size: 14px; }
.xuanshangshuzi { color: var(--yh-danger); font-weight: 600; }
.yishang { color: var(--yh-muted); margin-left: 6px; }
.yishangshuzi { color: var(--yh-muted); }
.Postinfo { font-size: 16px; line-height: 1.7; }
.biaotiwenzi, .Postime { color: var(--yh-muted); font-size: 13px; }
.DateAndTime { color: var(--yh-text-2); }
.yueduliang { color: var(--yh-muted); font-size: 12px; }
.bbscontent { font-size: 16px; line-height: 1.85; padding: 4px 0; }
.bbscontent img { border-radius: 6px; margin: 6px 0; }
.tipmini {
  padding: 6px 12px;
  font-size: 12px;
  color: var(--yh-muted);
  background: var(--yh-card-3);
  border-top: 1px solid var(--yh-border);
}
.louzhuxinxi {
  background: var(--yh-card);
  padding: 10px 12px;
  border-top: 1px solid var(--yh-border);
  border-bottom: 1px solid var(--yh-border);
  font-size: 13px;
  line-height: 1.9;
}
.louzhuxinxi a { color: var(--yh-primary); }
.louzhu { color: var(--yh-muted); }
.louzhu .louzunicheng, .louzunicheng { color: var(--yh-text); }
.louzhudengji { color: var(--yh-muted); }
.louzhudengji .dengji { color: var(--yh-primary); }
.online img { height: 14px; vertical-align: -2px; }
.xunzhang { display: block; }
.xunzhang img { height: 18px; vertical-align: -4px; }
.rongyuwenzi { color: var(--yh-muted); }

/* 楼层 */
.recontent { background: var(--yh-bg); }
.forum-container { background: var(--yh-card); }
.forum-post {
  background: var(--yh-card);
  padding: 12px;
  border-bottom: 8px solid var(--yh-bg);
}
.forum-post.bgColor { background: var(--yh-card-2); }
.post-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}
.user-name { display: inline-flex; align-items: center; gap: 2px; }
.user-nick a { color: var(--yh-primary); font-weight: 500; }
.user-id a { color: var(--yh-muted); font-size: 12px; }
.post-date { color: var(--yh-muted-2); font-size: 12px; }
.floor-info {
  margin-left: auto;
  color: var(--yh-muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.floor-number { font-weight: 600; color: var(--yh-text-2); }
.post-content { font-size: 16px; line-height: 1.8; }
.post-content .retext { display: block; }
.admin-actions { margin-top: 6px; }
.admin-actions .operate { display: inline-flex; gap: 12px; }
.replyicon img { height: 18px; width: 18px; opacity: .55; }
.replyicon:hover img { opacity: 1; }
.recolon { color: var(--yh-muted); font-size: 13px; }
.replay-other {
  background: var(--yh-card-3);
  border-left: 3px solid var(--yh-primary);
  padding: 8px 10px;
  margin: 8px 0;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  color: var(--yh-text-2);
}

/* 底部回复框 */
.kuaisuhuifu, .retextarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--yh-border-2);
  border-radius: 8px;
  background: var(--yh-card);
  color: var(--yh-text);
  resize: vertical;
}
.necro-container { padding: 12px; }
.upload-image-btn { color: var(--yh-muted); font-size: 13px; }
.givebtn, .modern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--yh-primary);
  border: 1px solid var(--yh-primary);
  background: transparent;
  cursor: pointer;
}
.givebtn:active, .modern-btn:active { background: var(--yh-primary-soft); }
.modern-btn--primary { background: var(--yh-primary); color: #fff; border-color: var(--yh-primary); }

/* 弹层 */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .5);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup-overlay.show { display: flex; }
.popup-container {
  width: 100%;
  max-width: 420px;
  background: var(--yh-card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--yh-border);
}
.popup-close-btn {
  border: none;
  background: transparent;
  color: var(--yh-muted);
  cursor: pointer;
  display: inline-flex;
  padding: 2px;
}
.popup-content-area { padding: 16px; }
.aui-cell-box { padding: 4px 0; }
.aui-grids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.aui-grids-item {
  text-align: center;
  padding: 8px 4px;
  border: 1px solid var(--yh-border-2);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.aui-grids-item:active { background: var(--yh-primary-soft); }
.aui-recharge-box { display: block; }

/* =========================================================
   Tailwind 工具类子集 (首页/新版页面)
   ========================================================= */
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.block { display: block; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-3 { gap: .75rem; }
.relative { position: relative; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.w-full { width: 100%; }
.w-px { width: 1px; }
.min-w-0 { min-width: 0; }
.whitespace-nowrap { white-space: nowrap; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.p-3 { padding: .75rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-16 { padding-top: 4rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-2 { padding-bottom: .5rem; }
.pl-3 { padding-left: .75rem; }
.mt-1 { margin-top: .25rem; }
.mt-4 { margin-top: 1rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mr-1 { margin-right: .25rem; }
.mr-3 { margin-right: .75rem; }
.ml-1 { margin-left: .25rem; }
.mx-2 { margin-left: .5rem; margin-right: .5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.min-w-\[60px\] { min-width: 60px; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.text-white { color: #fff; }
.text-primary { color: var(--yh-primary); }
.text-gray-500 { color: var(--yh-muted); }
.text-gray-700 { color: var(--yh-text-2); }
.text-gray-800 { color: var(--yh-text); }
.bg-white { background-color: var(--yh-card); }
.bg-primary { background-color: var(--yh-primary); }
.bg-gray-50 { background-color: var(--yh-card-2); }
.bg-gray-200 { background-color: var(--yh-border-2); }
.bg-transparent { background-color: transparent; }
.bg-opacity-10 { background-color: var(--yh-primary-soft); }
.border { border: 1px solid var(--yh-border); }
.border-t { border-top: 1px solid var(--yh-border); }
.border-gray-200 { border-color: var(--yh-border-2); }
.border-none { border: none; }
.rounded-lg { border-radius: .5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-button, .\!rounded-button { border-radius: 10px; }
.shadow-sm { box-shadow: var(--yh-shadow); }
.transition-colors { transition: color .15s, background-color .15s, border-color .15s; }
.cursor-pointer { cursor: pointer; }
.noselect { user-select: none; -webkit-user-select: none; }
.group:hover .group-hover\:text-primary { color: var(--yh-primary); }
.hover\:border-primary:hover { border-color: var(--yh-primary); }
.focus-within\:border-primary:focus-within { border-color: var(--yh-primary); }
.focus\:outline-none:focus { outline: none; }
.opacity-0 { opacity: 0; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* remixicon 基础 */
[class^="ri-"], [class*=" ri-"] {
  font-family: "remixicon" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  line-height: 1;
}
.ri-lg { font-size: 1.25em; }

/* Font Awesome 基础 */
.fa, .fas, .far, .fab {
  font-family: "FontAwesome" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  speak: none;
}

/* =========================================================
   新版首页组件
   ========================================================= */
.main-header {
  background: var(--yh-card);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.main-header .text-primary { color: var(--yh-primary); }
.post-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1rem;
  color: #fff;
  background: var(--yh-primary);
  border-radius: 10px;
  font-size: .875rem;
}
.post-btn:hover { background: var(--yh-primary-hover); }

.search-container { background: var(--yh-card-2); }
#scbar_form {
  display: flex;
  align-items: center;
  background: var(--yh-card);
  border-radius: .5rem;
  border: 1px solid var(--yh-border-2);
  position: relative;
  box-shadow: var(--yh-shadow);
}
#searchType { color: var(--yh-text-2); font-size: .875rem; }
#searchInput {
  border: none;
  background: transparent;
  padding: .625rem .5rem;
  font-size: .875rem;
  color: var(--yh-text);
  flex: 1;
  min-width: 0;
  outline: none;
}
#searchInput::placeholder { color: var(--yh-muted-2); }
.search-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--yh-muted);
  background: transparent;
  border: none;
  cursor: pointer;
}
.search-options {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 120px;
  background: var(--yh-card);
  border: 1px solid var(--yh-border-2);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  overflow: hidden;
  z-index: 60;
}
.search-options.show { display: block; }
.search-options > div {
  padding: .625rem 1rem;
  font-size: .875rem;
  color: var(--yh-text-2);
  cursor: pointer;
}
.search-options > div:hover { background: var(--yh-primary-soft); color: var(--yh-primary); }

.card-hover { transition: transform .15s, box-shadow .15s; }
.card-hover:hover { box-shadow: 0 3px 12px rgba(0,0,0,.10); }
html.yh-theme-dark .card-hover:hover { box-shadow: 0 3px 12px rgba(0,0,0,.5); }

.main-footer { background: var(--yh-card); }
.bottom-nav-btn { color: var(--yh-muted); padding: .25rem .9rem; border-radius: 8px; }
.bottom-nav-btn:active { color: var(--yh-primary); background: var(--yh-primary-soft); }
.bottom-nav-btn .text-xs { font-size: .7rem; }

/* 分区标题 */
section > h2.text-xl {
  color: var(--yh-text);
  font-size: 1.15rem;
  margin-bottom: .75rem;
}

/* =========================================================
   通用欢迎条 / 子标题
   ========================================================= */
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--yh-card);
  border-bottom: 1px solid var(--yh-border);
  font-size: 15px;
  color: var(--yh-text);
}
.welcome a { color: var(--yh-text); }
.welcome-link { color: var(--yh-primary) !important; font-weight: 600; }
.help-button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--yh-border-2);
  background: var(--yh-card-3);
  color: var(--yh-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.subtitle {
  padding: 8px 12px;
  background: var(--yh-card);
  border-bottom: 1px solid var(--yh-border);
  font-size: 13px;
  color: var(--yh-muted);
}
.subtitle a { color: var(--yh-text-2); }
.line3 {
  padding: 8px 12px;
  background: var(--yh-card-3);
  border-bottom: 1px solid var(--yh-border);
  font-size: 13px;
  color: var(--yh-muted);
}
.noafter { color: var(--yh-primary); }

/* =========================================================
   荣誉勋章
   ========================================================= */
.medal-page { background: var(--yh-bg); padding-bottom: 20px; }
.medal-function-tabs {
  display: flex;
  background: var(--yh-card);
  border-bottom: 1px solid var(--yh-border);
}
.medal-tab {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--yh-text-2);
  font-size: 15px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.medal-tab.active {
  color: var(--yh-primary);
  border-bottom-color: var(--yh-primary);
  font-weight: 600;
}
.medal-card { display: block; }
.medal-items { display: block; }
.medal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--yh-card);
  border-bottom: 1px solid var(--yh-border);
}
.medal-icon img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; }
.medal-info { flex: 1; min-width: 0; }
.medal-title { font-size: 15px; font-weight: 600; color: var(--yh-text); }
.medal-description { font-size: 12px; color: var(--yh-muted); margin: 2px 0; }
.medal-price { font-size: 12px; color: var(--yh-primary); }
.medal-actions { flex: 0 0 auto; }
.medal-link { color: var(--yh-primary); font-size: 13px; }
.apply-medal { font-size: 13px; }

.help-modal, .info-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.5);
  align-items: center; justify-content: center;
  padding: 20px;
}
.help-modal.show, .info-modal-overlay.show { display: flex; }
.help-content, .info-modal-content {
  width: 100%; max-width: 420px;
  background: var(--yh-card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.info-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.info-modal-title { font-weight: 600; }
.info-modal-close { border: none; background: transparent; color: var(--yh-muted); cursor: pointer; }
.help-step { display: flex; gap: 10px; margin: 10px 0; }
.step-number {
  flex: 0 0 22px; height: 22px; border-radius: 50%;
  background: var(--yh-primary); color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.step-content { font-size: 14px; color: var(--yh-text-2); }
.help-note { font-size: 12px; color: var(--yh-muted); margin-top: 8px; }

/* =========================================================
   我的空间 (userinfo)
   ========================================================= */
.uinfo-page { background: var(--yh-bg); padding-bottom: 20px; }
.uinfo-card {
  background: var(--yh-card);
  border-bottom: 1px solid var(--yh-border);
  padding: 14px 12px;
}
.uinfo-profile { display: block; }
.uinfo-avatar-container { position: relative; }
.uinfo-avatar-img, .uinfo-avatar-fallback {
  width: 64px; height: 64px; border-radius: 14px;
  object-fit: cover; display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--yh-primary-soft);
  color: var(--yh-primary);
  font-size: 24px; font-weight: 600;
}
.uinfo-avatar-fallback { position: absolute; inset: 0; }
.uinfo-profile { display: flex; gap: 14px; align-items: flex-start; }
.uinfo-basic { flex: 1; min-width: 0; }
.uinfo-basic-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.uinfo-nickname { font-size: 20px; font-weight: 700; color: var(--yh-text); }
.uinfo-idline { font-size: 12px; color: var(--yh-muted); }
.uinfo-pm-link {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; color: var(--yh-primary);
  border: 1px solid var(--yh-primary);
  border-radius: 999px; padding: 1px 8px;
}
.uinfo-pm-link svg { width: 13px; height: 13px; fill: currentColor; }
.uinfo-pm-link .txt { font-size: 12px; }
.uinfo-meta { display: flex; gap: 10px; font-size: 12px; color: var(--yh-muted); margin-top: 4px; }
.uinfo-online { color: var(--yh-primary); display: inline-flex; align-items: center; gap: 3px; }
.uinfo-online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yh-primary); display: inline-block; }
.uinfo-actions { margin-top: 10px; }
.uinfo-btn-group { display: flex; gap: 8px; }
.u-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 14px; border-radius: 999px;
  font-size: 13px; border: 1px solid var(--yh-border-2);
  color: var(--yh-text-2); background: var(--yh-card-3);
  cursor: pointer;
}
.u-btn--primary { background: var(--yh-primary); border-color: var(--yh-primary); color: #fff; }
.u-btn--danger-outline { color: var(--yh-danger); border-color: rgba(229,72,77,.4); }
.u-btn--disabled { opacity: .5; pointer-events: none; }
.u-btn--quiet-cta { color: var(--yh-muted); }

.uinfo-stats { margin-top: 14px; }
.uinfo-stats-row2, .uinfo-stats-row3 { display: flex; gap: 8px; margin-bottom: 8px; }
.uinfo-stat {
  flex: 1; background: var(--yh-card-3);
  border-radius: 10px; padding: 10px;
  display: flex; align-items: center; justify-content: center;
}
.uinfo-stat-inner { display: flex; align-items: center; gap: 8px; }
.uinfo-text .label { font-size: 12px; color: var(--yh-muted); }
.uinfo-text .value { font-size: 17px; font-weight: 700; color: var(--yh-text); }
.uinfo-stat .icon { color: var(--yh-primary); opacity: .7; }

.uinfo-section-title {
  font-size: 15px; font-weight: 600; color: var(--yh-text);
  padding: 12px 0 6px;
}
.uinfo-badge-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--yh-border);
}
.uinfo-badge-bubble { font-size: 22px; }
.badge-name { font-size: 14px; color: var(--yh-text); }
.badge-desc { font-size: 12px; color: var(--yh-muted); }
.uinfo-dyn-item { padding: 10px 0; border-bottom: 1px solid var(--yh-border); }
.uinfo-dyn-text { font-size: 14px; color: var(--yh-text); }
.uinfo-dyn-meta { font-size: 12px; color: var(--yh-muted); }
.uinfo-cta { margin-top: 10px; }
.uinfo-tooltip {
  position: absolute; left: 0; bottom: calc(100% + 6px);
  background: rgba(0,0,0,.8); color: #fff;
  font-size: 12px; padding: 4px 8px; border-radius: 6px;
  white-space: nowrap; z-index: 20;
}
.info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--yh-border); font-size: 14px; }
.info-label { color: var(--yh-muted); }
.info-value { color: var(--yh-text); }
.info-value-number { font-variant-numeric: tabular-nums; }

/* =========================================================
   我的地盘 (myfile)
   ========================================================= */
.myfile-page { background: var(--yh-bg); padding: 10px; }
.myfile-card {
  background: var(--yh-card);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--yh-shadow);
}
.myfile-card-title {
  font-size: 15px; font-weight: 600; color: var(--yh-text);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.myfile-user-info { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.user-brief { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; }
.user-brief-main { min-width: 0; }
.nickname-row { display: flex; align-items: center; gap: 6px; }
.user-nickname { font-size: 19px; font-weight: 700; color: var(--yh-text); }
.nickname-row img { height: 18px; }
.meta-row { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center;
  font-size: 12px; padding: 1px 8px; border-radius: 999px;
  background: var(--yh-card-3); color: var(--yh-muted);
}
.chip-id { color: var(--yh-text-2); }
.user-actions { display: flex; gap: 8px; }
.edit-menu-trigger {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--yh-border-2);
  background: var(--yh-card-3); color: var(--yh-text-2);
  cursor: pointer;
}
.edit-dropdown {
  position: absolute; right: 14px; top: 56px; z-index: 40;
  background: var(--yh-card); border: 1px solid var(--yh-border-2);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.16);
  display: none; overflow: hidden;
}
.edit-dropdown.show { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; color: var(--yh-text-2); }
.dropdown-item:hover { background: var(--yh-primary-soft); color: var(--yh-primary); }
.myfile-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat-item {
  background: var(--yh-card-3); border-radius: 10px;
  padding: 10px 6px; text-align: center;
}
.stat-value { font-size: 17px; font-weight: 700; color: var(--yh-text); }
.stat-label { font-size: 12px; color: var(--yh-muted); }
.myfile-progress { margin-top: 12px; }
.progress-info { display: flex; justify-content: space-between; font-size: 12px; color: var(--yh-muted); margin-bottom: 4px; }
.progress-bar { height: 6px; border-radius: 999px; background: var(--yh-card-3); overflow: hidden; }
.progress-fill { height: 100%; background: var(--yh-primary); border-radius: 999px; }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.menu-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 4px; border-radius: 10px; font-size: 12px; color: var(--yh-text-2);
}
.menu-item:hover { background: var(--yh-card-3); color: var(--yh-primary); }
.menu-item i { font-size: 18px; color: var(--yh-primary); }
.link-list { display: block; }
.link-item {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 4px; border-bottom: 1px solid var(--yh-border);
  font-size: 14px; color: var(--yh-text-2);
}
.link-item:last-child { border-bottom: none; }
.link-item i { color: var(--yh-primary); width: 18px; text-align: center; }
.link-item .fa-chevron-right { margin-left: auto; color: var(--yh-muted-2); font-size: 12px; }
.myfile-footer { display: flex; gap: 10px; margin-top: 14px; }
.footer-btn {
  flex: 1; text-align: center; padding: 9px 0;
  border-radius: 8px; font-size: 14px;
  background: var(--yh-card-3); color: var(--yh-text-2);
  border: 1px solid var(--yh-border-2);
}
.footer-btn-danger { color: var(--yh-danger); border-color: rgba(229,72,77,.35); background: transparent; }
.ui-switcher-dropdown { position: relative; }
.ui-switch-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--yh-border-2);
  background: var(--yh-card-3); color: var(--yh-text-2);
  cursor: pointer;
}
.ui-switcher-menu {
  position: absolute; right: 0; top: 36px; z-index: 60;
  background: var(--yh-card); border: 1px solid var(--yh-border-2);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.16); min-width: 130px;
}
.ui-switcher-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; color: var(--yh-text-2); }
.ui-switcher-item.active { color: var(--yh-primary); }

/* =========================================================
   收件箱 / 私信
   ========================================================= */
.listmms {
  display: block;
  padding: 10px 12px;
  background: var(--yh-card);
  border-bottom: 1px solid var(--yh-border);
  font-size: 14px;
  line-height: 1.7;
}
.listmms.line1 { background: var(--yh-card); }
.listmms.line2 { background: var(--yh-card-2); }
.listmms img { height: 16px; vertical-align: -3px; margin-right: 4px; }
.listmms a { color: var(--yh-text); }
.listmms .laizi { color: var(--yh-muted); font-size: 12px; }
.listmms .urlbtn { padding: 1px 7px; font-size: 12px; }

/* =========================================================
   发表新主题
   ========================================================= */
.content-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: var(--yh-card);
  border-bottom: 1px solid var(--yh-border);
}
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--yh-muted); }
.breadcrumb-item { color: var(--yh-text-2); }
.breadcrumb-separator { width: 6px; height: 6px; border-right: 1.5px solid var(--yh-muted-2); border-top: 1.5px solid var(--yh-muted-2); transform: rotate(45deg); }
.nav-buttons { display: flex; gap: 6px; }
.nav-btn {
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yh-card-3); color: var(--yh-text-2);
  border: 1px solid var(--yh-border-2);
  cursor: pointer;
}
.form-group { padding: 10px 12px; background: var(--yh-card); border-bottom: 1px solid var(--yh-border); }
.form-control {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--yh-border-2); border-radius: 8px;
  background: var(--yh-card); color: var(--yh-text);
  font-size: 15px;
}
.textarea-actions { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.upload-container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.upload-image-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 8px;
  border: 1px dashed var(--yh-border-2);
  background: var(--yh-card-3); color: var(--yh-muted);
  font-size: 13px; cursor: pointer;
}
.submit-btn {
  display: block; width: 100%;
  padding: 12px; border: none; border-radius: 10px;
  background: var(--yh-primary); color: #fff;
  font-size: 16px; font-weight: 600;
}
.reward-section { background: var(--yh-card); padding: 12px; border-top: 1px solid var(--yh-border); }
.reward-content { display: flex; gap: 8px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.half { width: 50%; }
.collapse-trigger { cursor: pointer; }
.arrow-icon { transition: transform .2s; }
.modal-tc {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.5);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-tc.show { display: flex; }
.modal-tc-content {
  width: 100%; max-width: 420px;
  background: var(--yh-card); border-radius: 14px; overflow: hidden;
}
.modal-tc-body { padding: 16px; }
.custom-notification-container { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3000; }
.custom-notification {
  background: rgba(0,0,0,.85); color: #fff; font-size: 13px;
  padding: 9px 16px; border-radius: 999px;
}
.custom-notification-content { white-space: nowrap; }

/* =========================================================
   图床导航
   ========================================================= */
.wrapper { padding: 10px; }
.header { padding: 14px 12px; background: var(--yh-card); border-bottom: 1px solid var(--yh-border); }
.header__title { font-size: 18px; font-weight: 700; color: var(--yh-text); }
.header__subtitle { font-size: 12px; color: var(--yh-muted); margin-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; }
.card {
  position: relative;
  background: var(--yh-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--yh-shadow);
}
.card__inner { padding: 12px; }
.card__inner .url { display: block; font-size: 12px; color: var(--yh-muted); word-break: break-all; margin-top: 4px; }
.card__expander { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.card.is-collapsed .card__expander { max-height: 0; }
.card:not(.is-collapsed) .card__expander { max-height: 300px; }
.card__inner img { width: 100%; height: 90px; object-fit: cover; border-radius: 8px; }
.center { text-align: center; }
.close-btn { position: absolute; top: 6px; right: 6px; border: none; background: rgba(0,0,0,.35); color: #fff; border-radius: 50%; width: 22px; height: 22px; }
.js-collapser { cursor: pointer; }

/* =========================================================
   疯狂吹牛游戏
   ========================================================= */
.game-page, body > .header-title { background: var(--yh-bg); }
.header-title { font-size: 18px; font-weight: 700; padding: 14px 12px; color: var(--yh-text); }
.section-card {
  background: var(--yh-card); border-radius: 12px;
  margin: 10px; padding: 14px; box-shadow: var(--yh-shadow);
}
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-title { font-size: 15px; font-weight: 600; color: var(--yh-text); }
.stats-row { display: flex; gap: 8px; }
.stats-item { flex: 1; background: var(--yh-card-3); border-radius: 10px; padding: 10px; text-align: center; }
.stats-value { font-size: 17px; font-weight: 700; color: var(--yh-primary); }
.stats-label { font-size: 12px; color: var(--yh-muted); }
.challenge-item, .rank-entry-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: var(--yh-card);
  border-bottom: 1px solid var(--yh-border);
}
.challenge-item:last-child, .rank-entry-card:last-child { border-bottom: none; }
.item-index { width: 22px; color: var(--yh-muted); font-size: 13px; text-align: center; }
.item-text { flex: 1; font-size: 14px; color: var(--yh-text); }
.item-link { color: var(--yh-primary); font-size: 13px; }
.challenge-button, .btn-challenge {
  padding: 7px 16px; border-radius: 8px;
  border: none; background: var(--yh-primary); color: #fff; font-size: 14px;
}
.chat-section { background: var(--yh-card); border-radius: 12px; margin: 10px; padding: 12px; }
.chat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.chat-title { font-weight: 600; color: var(--yh-text); }
.chat-messages { max-height: 340px; overflow-y: auto; }
.chat-item { display: flex; gap: 8px; padding: 7px 0; }
.chat-user { color: var(--yh-primary); font-size: 13px; flex: 0 0 auto; }
.chat-body { flex: 1; min-width: 0; }
.chat-text { font-size: 14px; color: var(--yh-text); }
.chat-time { font-size: 11px; color: var(--yh-muted-2); }
.chat-separator { border-top: 1px dashed var(--yh-border); margin: 6px 0; }
.chat-input-wrapper { display: flex; gap: 8px; margin-top: 10px; }
.chat-textarea {
  flex: 1; min-height: 40px; padding: 9px 12px;
  border: 1px solid var(--yh-border-2); border-radius: 8px;
  background: var(--yh-card); color: var(--yh-text); resize: vertical;
}
.chat-submit-btn {
  padding: 0 18px; border: none; border-radius: 8px;
  background: var(--yh-primary); color: #fff;
}
.rank-entry-card { cursor: pointer; }
.rank-entry-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--yh-primary-soft); color: var(--yh-primary); display: flex; align-items: center; justify-content: center; }
.rank-entry-body { flex: 1; }
.rank-entry-title { font-size: 14px; font-weight: 600; color: var(--yh-text); }
.rank-entry-desc { font-size: 12px; color: var(--yh-muted); }
.rank-section { margin: 10px; }
.quick-links-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px; }
.quick-link-card { background: var(--yh-card); border-radius: 10px; padding: 12px; text-align: center; font-size: 14px; color: var(--yh-text); box-shadow: var(--yh-shadow); }
.list-header { padding: 10px 12px; font-size: 13px; color: var(--yh-muted); background: var(--yh-card-3); }
.page-index { font-size: 12px; color: var(--yh-muted); }
.link-text { color: var(--yh-primary); }
.link-icon { font-size: 12px; }

/* =========================================================
   搜索页
   ========================================================= */
.search-container:not(.pt-16) { padding: 10px 12px; background: var(--yh-card); border-bottom: 1px solid var(--yh-border); }
.search-input-wrapper {
  display: flex; align-items: center; gap: 8px;
  background: var(--yh-card-3); border: 1px solid var(--yh-border-2);
  border-radius: 999px; padding: 4px 12px;
}
.search-icon { color: var(--yh-muted); }
.search-input { flex: 1; border: none; background: transparent; padding: 7px 0; font-size: 14px; color: var(--yh-text); outline: none; }
.clear-input-btn { border: none; background: transparent; color: var(--yh-muted); }
.search-button {
  padding: 7px 18px; border-radius: 999px; border: none;
  background: var(--yh-primary); color: #fff; font-size: 14px;
}
.search-type-wrapper { position: relative; margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--yh-text-2); }
.search-type-options {
  display: none; position: absolute; left: 0; top: 100%; z-index: 30;
  background: var(--yh-card); border: 1px solid var(--yh-border-2);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.16); overflow: hidden;
}
.search-type-options.show { display: block; }
.search-type-option { padding: 9px 16px; font-size: 14px; color: var(--yh-text-2); white-space: nowrap; }
.search-type-option.active { color: var(--yh-primary); background: var(--yh-primary-soft); }

/* =========================================================
   嗯行网 wap 首页（简版）
   ========================================================= */
.top2 { padding: 10px 12px; background: var(--yh-card); border-bottom: 1px solid var(--yh-border); }
.logo { font-size: 20px; font-weight: 700; color: var(--yh-primary); }
.content1 { background: var(--yh-card); }
.list a { display: block; padding: 11px 12px; border-bottom: 1px solid var(--yh-border); color: var(--yh-text); font-size: 15px; }
.list a:hover { background: var(--yh-card-2); }
.brackets { color: var(--yh-muted); font-size: 12px; }

/* =========================================================
   Dark theme 细节修正
   ========================================================= */
html.yh-theme-dark .main-header,
html.yh-theme-dark .main-footer,
html.yh-theme-dark .search-container,
html.yh-theme-dark .search-container form {
  background: var(--yh-card);
}
html.yh-theme-dark .post-btn { color: #fff; }
html.yh-theme-dark .listdata:active { background: var(--yh-card-3); }
html.yh-theme-dark .topic-link,
html.yh-theme-dark .topic-link:visited { color: var(--yh-text); }
html.yh-theme-dark .rank-card,
html.yh-theme-dark .rank-item:nth-child(odd) { background: var(--yh-card); }
html.yh-theme-dark .rank-item:nth-child(even) { background: var(--yh-card-2); }
html.yh-theme-dark .rank-name a { color: var(--yh-text); }
html.yh-theme-dark .breadcrumb,
html.yh-theme-dark .breadcrumb-item { color: var(--yh-muted); }
html.yh-theme-dark .bt2 a { background: var(--yh-card-3); border-color: var(--yh-border-2); color: var(--yh-text); }
html.yh-theme-dark .rank-tabs { border-color: var(--yh-border); }
html.yh-theme-dark .rank-tab { color: var(--yh-muted); }
html.yh-theme-dark .rank-tab.active { color: var(--yh-primary); }
html.yh-theme-dark .rank-value-label { color: var(--yh-muted); }
html.yh-theme-dark .card-footer { border-color: var(--yh-border); }
html.yh-theme-dark .btn { background: var(--yh-card-3); border-color: var(--yh-border-2); color: var(--yh-text); }
html.yh-theme-dark .medal-item,
html.yh-theme-dark .forum-post,
html.yh-theme-dark .forum-container { background: var(--yh-card); }
html.yh-theme-dark .forum-post.bgColor { background: var(--yh-card-2); }
html.yh-theme-dark .help-content,
html.yh-theme-dark .info-modal-content { background: var(--yh-card); }

/* =========================================================
   回帖表单（表情/通知/快速回复）
   ========================================================= */
.custom-form { background: var(--yh-card); padding: 10px 12px; }
.newselect { display: inline-block; vertical-align: middle; }
.ulselect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  position: static;
}
.ulselect input[type="radio"] { display: none; }
.select_items { position: relative; display: inline-block; }
.select_label {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--yh-muted);
  border: 1px solid var(--yh-border);
  border-radius: 999px;
  background: var(--yh-card-3);
  cursor: pointer;
}
.select_label-placeholder { color: var(--yh-muted); }
.select_options {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  min-width: 190px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--yh-card);
  border: 1px solid var(--yh-border-2);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  padding: 4px;
  z-index: 60;
}
.select_option { padding: 0; }
.select_option .select_label {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 7px 12px;
}
.select_option:hover .select_label { background: var(--yh-primary-soft); color: var(--yh-primary); }
.select_closeLabel, .select_expandLabel { display: none; }

.tongzhi { display: inline-flex; align-items: center; margin-left: 10px; vertical-align: middle; }
.cbx {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 13px;
  color: var(--yh-muted);
  user-select: none;
}
.cbx > span:first-child {
  width: 16px;
  height: 16px;
  border: 1px solid var(--yh-border-2);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yh-card);
}
.cbx svg { display: none; }
.cbx polyline { stroke: #fff; stroke-width: 2; fill: none; }
.inp-cbx:checked + .cbx > span:first-child {
  background: var(--yh-primary);
  border-color: var(--yh-primary);
}
.inp-cbx:checked + .cbx svg { display: block; }

.upload-image-btn { color: var(--yh-muted); }
.centered-container { padding: 6px 0; }
.retextarea {
  width: 100% !important;
  min-height: 96px;
  padding: 10px 12px;
  border: 1px solid var(--yh-border-2);
  border-radius: 10px;
  background: var(--yh-card);
  color: var(--yh-text);
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
}
.retextarea:focus { border-color: var(--yh-primary); }
.retextarea::placeholder { color: var(--yh-muted-2); }
#replyActions { padding-top: 8px; }
.kuaisuhuifu { display: inline-flex; align-items: center; gap: 12px; }
.kuaisuhuifu input[type="submit"] {
  background: var(--yh-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
}
.kuaisuhuifu input[type="submit"]:active { background: var(--yh-primary-hover); }
.kuaisuhuifu a { font-size: 13px; color: var(--yh-muted); }
.sticky { position: static; }

/* =========================================================
   修正：用户空间勋章墙 / 横向溢出
   ========================================================= */
html, body { overflow-x: hidden; }
.uinfo-badge-wall { display: block; }
.uinfo-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--yh-border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.uinfo-badge-item:last-child { border-bottom: none; }
.uinfo-badge-item img { width: 36px; height: 36px; object-fit: contain; flex: 0 0 auto; }
.uinfo-badge-bubble {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.uinfo-badge-bubble .badge-name { font-size: 14px; color: var(--yh-text); }
.uinfo-badge-bubble .badge-desc { font-size: 12px; color: var(--yh-muted); }
.uinfo-stats-row2, .uinfo-stats-row3 { display: flex; gap: 8px; }
.uinfo-stat { overflow: hidden; }
.uinfo-card { overflow: hidden; }

/* 我的地盘用户卡片布局修正 */
.myfile-user-info { display: block; }
.user-brief { display: flex; align-items: center; gap: 12px; width: 100%; }
.user-brief-main { flex: 1; min-width: 0; }
.user-nickname { font-size: 19px; font-weight: 700; color: var(--yh-text); white-space: nowrap; }
.edit-menu-trigger {
  width: auto; height: 32px; padding: 0 12px;
  border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--yh-text-2);
  border: 1px solid var(--yh-border-2);
  background: var(--yh-card-3);
  cursor: pointer;
  white-space: nowrap;
}
.edit-menu-trigger i { font-size: 12px; }
.myfile-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
@media (max-width: 380px) { .myfile-stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* 游戏页挑战按钮修正 */
.challenge-button { padding: 0; background: transparent; }
.btn-challenge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 10px 10px;
  padding: 12px;
  background: var(--yh-primary);
  color: #fff;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.btn-challenge:visited { color: #fff; }
.stats-card { background: var(--yh-card); border-radius: 12px; margin: 10px; padding: 12px; }
.quick-links-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px; }
.quick-link-card { display: flex; align-items: center; justify-content: center; gap: 6px; }

/* 发帖页布局修正 */
.upload-container { display: block; align-items: initial; gap: 0; flex-wrap: nowrap; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: var(--yh-card);
  border-bottom: 1px solid var(--yh-border);
  font-size: 13px;
  color: var(--yh-muted);
  overflow-x: auto;
  white-space: nowrap;
}
.breadcrumb .lucide { width: 16px; height: 16px; }
.nav-buttons { display: flex; gap: 8px; padding: 10px 12px; background: var(--yh-card); }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  height: auto;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--yh-border-2);
  background: var(--yh-card-3);
  color: var(--yh-text-2);
  font-size: 13px;
  white-space: nowrap;
}
.nav-btn svg { width: 15px; height: 15px; }
.nav-btn:active { border-color: var(--yh-primary); color: var(--yh-primary); }
.content > form > .form-group:first-child { border-top: none; }
.content .content-header { background: transparent; border: none; padding: 0 0 8px; }
.content .content-header label { font-size: 14px; color: var(--yh-text-2); }
.action-btn-small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--yh-text-2);
  background: var(--yh-card-3);
  border: 1px solid var(--yh-border-2);
  border-radius: 8px;
  cursor: pointer;
}
.modal-tc-content iframe { width: 100%; height: 60vh; border: 0; }

/* 收件箱/按钮颜色修正 */
.urlbtn, a.urlbtn, a.urlbtn:visited,
.subtitle a.urlbtn, .listmms a.urlbtn, .showpage a.urlbtn {
  color: #fff !important;
  background: var(--yh-primary);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  display: inline-block;
  line-height: 1.5;
}
.listmms img, .listdata img { width: 16px; height: 16px; object-fit: contain; }
.listmms .laizi { margin-left: 3px; }
.subtitle .noafter { color: var(--yh-primary); }

/* 搜索页顶部行内布局 */
.search-container:has(> .search-type-wrapper) {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--yh-card);
  border-bottom: 1px solid var(--yh-border);
}
.search-type-wrapper { position: relative; margin: 0; flex: 0 0 auto; display: inline-flex; }
.search-type {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--yh-border-2);
  background: var(--yh-card-3);
  color: var(--yh-text-2);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.search-type .icon-chevron-down { width: 14px; height: 14px; }
.search-input-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--yh-card-3);
  border: 1px solid var(--yh-border-2);
  border-radius: 999px;
  padding: 2px 10px;
}
.search-input-wrapper .search-input { flex: 1; min-width: 0; border: none; background: transparent; }
.search-button {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yh-primary);
  color: #fff;
  border: none;
  cursor: pointer;
}
.search-button .lucide { width: 20px; height: 20px; }
.search-type-options {
  display: none;
  position: absolute;
  left: 0; top: calc(100% + 6px);
  z-index: 40;
  min-width: 110px;
  background: var(--yh-card);
  border: 1px solid var(--yh-border-2);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  overflow: hidden;
}
.search-type-options.show { display: block; }
