/* ============================================================
   NovaCMS 现代皮肤 —— 覆盖原版 default.css 的现代化设计系统
   设计令牌: indigo 主色 / 卡片化 / 圆角 / 柔和阴影 / 现代字体 / 响应式
   ============================================================ */
:root {
  --primary: #4f6ef7;
  --primary-dark: #3b5bdb;
  --primary-soft: #eef1ff;
  --bg: #f1f4fb;
  --card: #ffffff;
  --text: #1f2937;
  --text-2: #6b7280;
  --text-3: #9aa3b2;
  --border: #e6eaf3;
  --danger: #e5484d;
  --warn: #f5a623;
  --ok: #2fb65a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 2px 12px rgba(23, 37, 84, .06);
  --shadow-hover: 0 8px 24px rgba(23, 37, 84, .12);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  min-height: 60px;
  display: flex; align-items: center;
  padding: 0 16px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.header-in {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
}
.header .logo { width: 40px; height: 40px; flex: none; border-radius: 12px; overflow: hidden; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
.header .logo img { width: 40px; height: 40px; object-fit: cover; display: block; }
.headnav { display: flex; align-items: center; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.headnav::-webkit-scrollbar { display: none; }
.headnav a {
  padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--text-2); white-space: nowrap;
}
.headnav a:hover { background: var(--primary-soft); color: var(--primary); }
.headnav a:first-child { color: var(--primary); font-weight: 600; }
.nav-toggle {
  display: none; border: 1px solid var(--border); background: #fff; color: var(--text-2);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; flex: none;
}
.nav-toggle:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }

/* ---------- 主容器 ---------- */
.main { max-width: 1200px; margin: 0 auto; padding: 22px 16px 40px; }
.location { font-size: 13px; color: var(--text-3); margin: 0 0 14px; }
.location a { color: var(--text-3); }
.location a:hover { color: var(--primary); }

/* ---------- 卡片 ---------- */
.comment-post, .card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 14px;
}
.comment-post h1, .comment-post h2, .comment-post h3,
.card h1, .card h2, .card h3 { margin: 0 0 8px; font-size: 16px; }
.comment-post h3, .card h3 { font-size: 15px; color: var(--text); }
.btitle { font-size: 22px !important; line-height: 1.35 !important; color: var(--text) !important; }
.meta { font-size: 13px; color: var(--text-3); margin-bottom: 10px; line-height: 1.7; }
.content { font-size: 15px; line-height: 1.85; color: var(--text); word-break: break-word; }
.content img { border-radius: var(--radius-sm); }
.content blockquote { margin: 10px 0; padding: 10px 14px; background: var(--primary-soft); border-left: 3px solid var(--primary); border-radius: 6px; color: var(--text-2); }

/* ---------- 列表行 ---------- */
.bbsline1, .bbsline2 {
  padding: 12px 14px; border-radius: var(--radius-sm);
  margin-bottom: 8px; background: var(--card); border: 1px solid var(--border);
  transition: box-shadow .15s, transform .15s;
}
.bbsline1:hover, .bbsline2:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.bbsline2 { background: #fbfcff; }
.biaoti { font-size: 15px; color: var(--text); font-weight: 500; }
.biaoti:hover { color: var(--primary); }
.right { float: right; font-size: 12px; color: var(--text-3); }
.hufu, .huifu { color: var(--primary); font-weight: 600; font-size: 13px; }
.yue { color: var(--text-3); font-size: 12px; }

/* ---------- 徽标 ---------- */
.zhiding, .quanding, .hot, .zhuanti, .jinghua, .suoding, .jieshu, .xuanshang, .toupiao, .fujian, .chentie {
  display: inline-block; font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 6px; margin-right: 5px; vertical-align: 1px;
}
.zhiding { background: #fff0e0; color: #e8833a; }
.quanding { background: #ffe9ea; color: #d64550; }
.hot { background: #fff0e0; color: #e8833a; }
.zhuanti { background: #eef1ff; color: var(--primary); }
.jinghua { background: #e9f9ef; color: #2a9d5f; }
.suoding { background: #eceff4; color: #6b7280; }
.jieshu { background: #eceff4; color: #6b7280; }
.xuanshang { background: #fef3e2; color: #d97706; }
.piaobi { background: #e9f9ef; color: #2a9d5f; display: inline-block; font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 6px; margin-right: 5px; vertical-align: 1px; }
.toupiao { background: #e9f9ef; color: #2a9d5f; }
.fujian { background: #eef1ff; color: var(--primary); }
.chentie { background: #f0f1f4; color: #9aa3b2; }

/* ---------- 按钮栏 ---------- */
.btBox { margin: 0 0 14px; }
.btBox .bt1, .btBox .bt2, .btBox .bt4, .btBox .bt5, .btBox .bt6 {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.btBox a, .urlbtn {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 13px;
  transition: background .15s, transform .1s;
}
.btBox a:hover, .urlbtn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.urlbtn { background: var(--primary-soft); color: var(--primary); }
.urlbtn:hover { background: #e0e6ff; color: var(--primary-dark); }
.btBox .cur { font-weight: 700; color: var(--primary); }
.pager { margin: 14px 0; font-size: 14px; }
.pager a { display: inline-block; padding: 5px 11px; margin: 0 3px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-2); }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .cur, .pager b { display: inline-block; padding: 5px 11px; margin: 0 3px; border-radius: 8px; background: var(--primary); color: #fff; }

/* ---------- 提示条 ---------- */
.tip {
  background: var(--primary-soft); border: 1px solid #dfe6ff; color: var(--primary-dark);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 12px; font-size: 13px;
}
.tip b { font-weight: 600; }

/* ---------- 表单 ---------- */
input[type=text], input[type=password], input[type=email], input[type=number], input[type=url], textarea, select {
  font-family: var(--font); font-size: 14px; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.KL_textarea { resize: vertical; }
/* 按钮字体/文字居中修复 */
input[type=submit], input[type=button], button { text-align: center; font-family: var(--font); }
.open2 {
  display: inline-block; padding: 9px 20px; border: none; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 14px; cursor: pointer; text-align: center;
  transition: background .15s;
}
.open2:hover { background: var(--primary-dark); }
.open2:focus { outline: 2px solid var(--primary-soft); }
.btBox a, .urlbtn { text-align: center; }
/* 设置页双列表单 */
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.set-grid p { margin: 4px 0; }
.set-grid input, .set-grid select { width: 100%; }
@media (max-width: 640px) { .set-grid { grid-template-columns: 1fr; } }
.ubbtool { margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.ubbtool button { border: 1px solid var(--border); background: #fff; color: var(--text-2); border-radius: 7px; padding: 4px 9px; font-size: 12px; cursor: pointer; }
.ubbtool button:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- 版块/首页 ---------- */
.h-font { font-size: 16px; font-weight: 700; color: var(--text); margin: 6px 0; }
.boardlist .bbsline1 { display: flex; justify-content: space-between; align-items: center; }
.gapwrap { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 表格 ---------- */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #f7f9fd; color: var(--text-2); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* ---------- 页脚 ---------- */
.footer { max-width: 1200px; margin: 0 auto; padding: 18px 16px 40px; text-align: center; }
.footer .copyright { font-size: 12px; color: var(--text-3); margin-top: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .main, .footer { padding-left: 10px; padding-right: 10px; }
  .header { padding: 0 10px; }
  .headnav a { padding: 8px 9px; font-size: 13px; }
  .btitle { font-size: 18px !important; }
  .comment-post { padding: 14px; }
  table th, table td { padding: 7px 8px; font-size: 13px; }
}

/* ============================================================
   顶部导航：桌面内联 / 手机端两行布局（右侧全显，左侧横滑）
   ============================================================ */
.nav-left { display: flex; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-left::-webkit-scrollbar { display: none; }
.nav-left .headnav { margin-left: 0; }
.headnav-right { margin-left: auto; flex: none; }
/* 顶栏称号自适应：过长省略，不挤占右侧功能 */
.userchip i { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; line-height: 1.4; }

@media (max-width: 768px) {
  /* 关键：手机端为多行布局，必须取消固定高度与溢出裁剪，否则导航行被裁掉 */
  .header { flex-wrap: wrap; gap: 6px 8px; padding: 0 8px; height: auto; overflow: visible; }
  .header-in { flex-wrap: wrap; gap: 6px 8px; }
  .header .brand { order: 1; gap: 7px; }
  /* 手机端品牌两行：趣味博客换到下一行，避免挤压右侧功能 */
  .header .brand .bname { display: flex; flex-direction: column; line-height: 1.15; font-size: 13px; white-space: nowrap; }
  .header .brand .bname em { display: block; font-size: 12px; }
  /* 左侧功能标签：默认隐藏，汉堡按钮展开 */
  .nav-toggle { display: inline-block; order: 2; }
  /* 右侧功能导航：始终保留并全部露出 */
  .headnav-right { order: 3; margin-left: auto; gap: 1px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .headnav-right::-webkit-scrollbar { display: none; }
  .headnav-right a { padding: 7px 8px; font-size: 12px; white-space: nowrap; }
  .userchip img { width: 20px; height: 20px; }
  .userchip i { max-width: 48px; font-size: 10px; padding: 0 3px; margin-left: 2px; }
  /* 左侧主导航：默认收起，点击「☰ 功能」展开为第二行横滑胶囊 */
  .nav-left { order: 4; width: 100%; min-width: 0; display: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .nav-left.open { display: block; }
  .nav-left::-webkit-scrollbar { display: none; }
  .nav-left .headnav-main { flex-direction: row; flex-wrap: nowrap; gap: 6px; width: max-content; }
  .nav-left .headnav-main a {
    display: inline-block; white-space: nowrap; padding: 6px 11px; font-size: 13px;
    border-radius: 999px; background: var(--primary-soft); color: var(--primary);
  }
  .nav-left .headnav-main a.act { background: var(--primary); color: #fff; }
  /* 首页统计条：一行紧凑不占地方 */
  .statstrip { gap: 6px; margin: 2px 0 12px; font-size: 11px; }
  .statitem { font-size: 11px; }
  .statitem b { font-size: 12px; }
}

/* ============================================================
   现代化导航 v2 —— 品牌 / 灵动菜单 / 首页快捷入口 / 分段控件
   ============================================================ */

/* ---------- 顶栏：品牌 + 灵动菜单 ---------- */
.header .brand { display: flex; align-items: center; gap: 9px; flex: none; }
.header .brand .bname { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: .2px; }
.header .brand .bname em { font-style: normal; color: var(--primary); }
.headnav { gap: 4px; }
.headnav a { position: relative; padding: 8px 13px; font-weight: 500; }
.headnav a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: var(--primary); border-radius: 2px; transform: translateX(-50%);
  transition: width .22s ease;
}
.headnav a:hover::after, .headnav a.act::after { width: 60%; }
.headnav a.act { color: var(--primary); background: var(--primary-soft); }
/* 用户 chip */
.userchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 5px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600; }
.userchip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* ---------- 首页模块：应用式快捷入口卡片网格 ---------- */
.quickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; margin-bottom: 18px; }
.qtile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px 14px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.qtile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.qtile .qic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--primary-soft); color: var(--primary); }
.qtile .qlab { font-size: 13px; color: var(--text); font-weight: 500; line-height: 1.2; text-align: center; }
.qtile span.qsub { font-size: 11px; color: var(--text-3); }
/* 九宫格展开/收起 */
.qtile.hide { display: none; }
.qgrid-toggle {
  grid-column: 1 / -1; justify-self: center; cursor: pointer;
  border: 1px dashed var(--border-strong, #c9d2e0); background: var(--card);
  color: var(--primary); border-radius: 999px; padding: 8px 22px; font-size: 13px;
  transition: background .15s;
}
.qgrid-toggle:hover { background: var(--primary-soft); }
.qgrid-toggle b { margin-left: 2px; }
/* 手机端：九宫格按钮缩小 */
@media (max-width: 640px) {
  .quickgrid { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; margin-bottom: 14px; }
  .qtile { padding: 10px 4px 9px; gap: 5px; border-radius: var(--radius-sm); }
  .qtile .qic { width: 30px; height: 30px; border-radius: 10px; font-size: 16px; }
  .qtile .qlab { font-size: 11.5px; }
}
/* 图标配色变量 */
.qtile.c1 .qic { background:#eef1ff; color:#4f6ef7; }
.qtile.c2 .qic { background:#fff0e0; color:#e8833a; }
.qtile.c3 .qic { background:#e9f9ef; color:#2a9d5f; }
.qtile.c4 .qic { background:#ffe9ea; color:#d64550; }
.qtile.c5 .qic { background:#e6f3ff; color:#2f7de1; }
.qtile.c6 .qic { background:#f3edff; color:#8b5cf6; }

/* ---------- 操作栏：分段式控件 ---------- */
/* 重置旧版 default.css 的定宽/浮动/行高，避免按钮被压扁裁切 */
.btBox .bt1 a, .btBox .bt2 a, .btBox .bt3 a, .btBox .bt4 a, .btBox .bt5 a, .btBox .bt6 a {
  width: auto !important; float: none !important; height: auto; line-height: 1.4;
  border: none; box-shadow: none; text-shadow: none;
}
.btBox .bt1, .btBox .bt2 { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.btBox .bt5, .btBox .bt4 { display: inline-flex; gap: 0; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 3px; box-shadow: var(--shadow); flex-wrap: wrap; }
.btBox .bt5 a, .btBox .bt4 a, .btBox .bt6 a { border-radius: 999px; background: transparent; color: var(--text-2); padding: 7px 15px; font-weight: 500; white-space: nowrap; }
.btBox .bt5 a:hover, .btBox .bt4 a:hover, .btBox .bt6 a:hover { background: var(--primary-soft); color: var(--primary); }
.btBox .bt1 a, .btBox .bt2 a { background: var(--card); color: var(--primary); border: 1px solid var(--border); font-weight: 500; white-space: nowrap; }
.btBox .bt3 a { background: var(--card); color: var(--primary); border: 1px solid var(--border); font-weight: 500; }

/* ---------- 楼层回复美化 ---------- */
#bbsrelist .line4, #bbsrelist .line5 { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
#bbsrelist table { table-layout: fixed; }

/* ---------- 首页统计条（一行紧凑） ---------- */
.statstrip { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 14px; padding: 4px 0; flex-wrap: wrap; }
.statitem { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.statitem b { color: var(--primary); font-size: 13px; margin-left: 2px; }
.statstrip i { color: #ddd; font-style: normal; }

/* ============================================================
   个人空间 (1:1 还原原版 userinfo)
   ============================================================ */
.space-wrap { max-width: 760px; margin: 0 auto; }
.space-banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 110px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(135deg, #5b8def 0%, #4f6ef7 55%, #7c5cf0 100%);
  padding: 14px 18px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.space-banner-mask { position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.25), transparent 55%); }
.space-banner-info { position: relative; display: flex; gap: 18px; font-size: 13px; color: #fff; opacity: .95; }
.space-banner-info b { font-size: 18px; margin-left: 4px; }
.space-banner-actions { position: absolute; top: 14px; right: 16px; display: flex; gap: 8px; }
.space-btn {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--primary); font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .12s;
}
.space-btn:hover { transform: translateY(-1px); color: var(--primary-dark); }
.space-head { display: flex; gap: 16px; align-items: center; }
.space-avatar img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border), var(--shadow); background: var(--primary-soft); }
/* 表情头像（/face/*.gif 19px 小图）：contain 原比例显示，避免 cover 放大挤压变形 */
.space-avatar img.is-face, .space-detail-top img.is-face, img.is-face[alt="当前头像"] { object-fit: contain !important; background: transparent !important; image-rendering: auto; }
.space-name { font-size: 19px; font-weight: 700; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; width: 100%; }
.space-name-left { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.space-name img { width: 18px; height: 18px; object-fit: contain; }
.space-name-right { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; color: var(--text-2); margin-left: auto; }
.space-name-right b { font-size: 16px; color: var(--primary); margin-left: 3px; }
.space-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.space-actions .space-btn { background: var(--primary-soft); color: var(--primary); }
.space-actions .space-btn.primary { background: var(--primary); color: #fff; }
.space-sex { display: inline-block; }
/* VIP 徽章：放大醒目，不再用看不清的小图标 */
.vip-badge {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px 9px; margin-left: 2px;
  background: linear-gradient(135deg, #f7d774, #e6a817); color: #5b3a00; font-size: 13px; font-weight: 800;
  border-radius: 999px; line-height: 1.35; box-shadow: 0 1px 4px rgba(230,168,23,.45); letter-spacing: .3px;
}
.vip-badge::before { content: "★"; font-size: 12px; }
/* 个性签名可点击（本人） */
.space-sign { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.space-sign-form .space-sign { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: var(--primary); border-bottom: 1px dashed var(--primary); }
.space-sign-form .space-sign:hover { color: var(--primary-dark); }
.space-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 12px; }
.space-stats a {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); text-align: center; padding: 10px 4px; transition: transform .12s, box-shadow .12s;
}
.space-stats a:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.space-stats b { display: block; font-size: 19px; color: var(--primary); line-height: 1.2; }
.space-stats span { font-size: 12px; color: var(--text-3); }
.space-info-row { display: flex; padding: 8px 2px; border-bottom: 1px dashed var(--border); font-size: 14px; align-items: flex-start; }
.space-info-row:last-child { border-bottom: none; }
.space-info-row label { flex: none; width: 62px; color: var(--text-3); }
.space-info-row span { flex: 1; word-break: break-all; }
.space-medals { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.space-medals img { width: 30px; height: 30px; object-fit: contain; border-radius: 50%; }
.space-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.space-quick a {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 13px 6px 10px; font-size: 13px; color: var(--text-2);
  transition: transform .12s, box-shadow .12s;
}
.space-quick a:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: var(--primary); }
.space-quick img { width: 40px; height: 40px; object-fit: contain; }
.space-sec-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.space-sec-title a { font-weight: 400; font-size: 12px; }
.space-act { list-style: none; margin: 0; padding: 0; }
.space-act li { display: flex; align-items: baseline; gap: 8px; padding: 6px 2px; font-size: 13px; border-bottom: 1px dashed var(--border); }
.space-act li:last-child { border-bottom: none; }
.space-act-icon { flex: none; }
.space-act-text { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.space-act em { flex: none; font-style: normal; font-size: 12px; }
.space-blogline { padding: 7px 2px; border-bottom: 1px dashed var(--border); font-size: 14px; }
.space-blogline:last-child { border-bottom: none; }
.space-albums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.space-albums img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; transition: transform .15s; }
.space-albums img:hover { transform: scale(1.04); }
.space-gb { display: flex; gap: 10px; align-items: flex-start; }
.space-gb-face { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--primary-soft); }
.space-gb-body { flex: 1; min-width: 0; }
.space-gb-content { margin-top: 3px; font-size: 14px; color: var(--text); word-break: break-word; }
.space-gb-form { display: flex; gap: 8px; margin-top: 12px; }
.space-gb-form input { flex: 1; }
.space-gb-form .open2 { flex: none; }
.space-detail-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.space-detail-top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.space-detail-top h2 { margin: 0 0 4px; font-size: 18px; }
.space-detail-tbl td { padding: 8px 10px; }
.space-detail-tbl td:first-child, .space-detail-tbl td:nth-child(3) { color: var(--text-3); width: 15%; white-space: nowrap; }
@media (max-width: 640px) {
  .space-stats { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .space-avatar img { width: 60px; height: 60px; }
  .space-albums { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  /* 手机端：操作按钮与横幅内容并齐，不挤兑 */
  .space-banner { min-height: 74px; }
  .space-banner-actions { position: static; margin-top: 8px; flex-wrap: wrap; gap: 6px; }
  .space-btn { padding: 5px 12px; font-size: 12px; }
  .space-head { gap: 10px; }
  .space-name { font-size: 16px; gap: 6px; }
  .space-name-right { font-size: 12px; gap: 10px; }
  .space-name-right b { font-size: 14px; }
  .vip-badge { font-size: 12px; padding: 1px 7px; }
  .space-gb-form { flex-direction: column; }
  .space-gb-form .open2 { width: 100%; }
}



/* ============================================================
   实用工具集 + 访问统计 样式
   ============================================================ */
.util-h2 { font-size:20px; margin:16px 0 4px; }
.mut { color:var(--text-3); font-size:13px; }

/* 工具卡片网格 */
.tools-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:16px 0; }
@media (max-width:760px){ .tools-grid{ grid-template-columns:repeat(2,1fr); gap:10px; } }
.tool-card { display:flex; gap:12px; align-items:center; padding:14px 16px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); transition:transform .15s, box-shadow .15s; color:var(--text); }
.tool-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-hover); color:var(--text); }
.tool-card .tc-icon { width:46px; height:46px; border-radius:12px; background:var(--primary-soft); display:flex; align-items:center; justify-content:center; font-size:24px; flex:none; }
.tool-card .tc-name { font-weight:700; font-size:15px; }
.tool-card .tc-desc { font-size:12px; color:var(--text-3); margin-top:2px; }

/* 通用卡片 / 表单 / 结果 */
.util-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:18px 20px; margin:14px 0; }
.util-card h3 { margin:0 0 12px; font-size:17px; }
.util-form-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.util-form-row input[type=text], .util-form-row input[type=number], .util-form-row select { padding:9px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); font-size:14px; background:#fff; }
.util-btn { display:inline-block; padding:9px 22px; border:none; border-radius:999px; background:var(--primary); color:#fff; font-size:14px; cursor:pointer; text-decoration:none; }
.util-btn:hover { background:var(--primary-dark); color:#fff; }
.util-kv { width:100%; border-collapse:collapse; }
.util-kv td { padding:9px 10px; border-bottom:1px solid var(--border); font-size:14px; }
.util-kv td:first-child { color:var(--text-3); width:130px; white-space:nowrap; }
.util-list a { display:block; padding:10px 4px; border-bottom:1px dashed var(--border); color:var(--text); }
.util-list a:last-child { border-bottom:none; }
.util-item { padding:10px 0; border-bottom:1px dashed var(--border); }
.util-item:last-child { border-bottom:none; }
.util-item-h { margin-bottom:6px; }
.util-err { color:var(--danger); font-size:13px; }
.util-ok { color:var(--ok); }
.util-content { line-height:1.9; color:var(--text); }
.forecast { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.forecast-day { background:var(--primary-soft); border-radius:var(--radius-sm); padding:12px; text-align:center; }
.fd-day { font-weight:700; font-size:14px; }
.fd-cond { font-size:13px; color:var(--text-2); margin:4px 0; }
.fd-temp { font-size:13px; }

/* 统计 */
.stat-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin:14px 0; }
@media (max-width:760px){ .stat-grid{ grid-template-columns:repeat(2,1fr); } }
.stat-item { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:14px; text-align:center; }
.stat-item b { font-size:24px; display:block; }
.stat-item span { font-size:12px; color:var(--text-3); }
.bar-chart { display:flex; align-items:flex-end; gap:6px; height:170px; padding:10px 6px 0; border-bottom:1px solid var(--border); }
.bar-chart .bar { flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; height:100%; }
.bar-chart .bar i { width:60%; background:linear-gradient(180deg,#7d93ff,#4f6ef7); border-radius:6px 6px 0 0; min-height:2px; }
.bar-chart .bar span { font-size:11px; color:var(--text-3); margin-top:4px; }
.h24 { display:flex; align-items:flex-end; gap:2px; height:120px; padding:6px 0; border-bottom:1px solid var(--border); }
.h24 i { flex:1; background:var(--primary-soft); border-top:3px solid var(--primary); display:block; min-height:2px; }
.dev-bar { height:14px; border-radius:999px; overflow:hidden; display:flex; margin:10px 0; background:var(--border); }
.rank-row { display:flex; align-items:center; gap:8px; padding:7px 4px; border-bottom:1px dashed var(--border); font-size:13px; }
.rank-row:last-child { border-bottom:none; }
.rank-row .n { color:var(--text-3); width:24px; flex:none; }
.rank-row .v { color:var(--primary); font-weight:600; flex:none; }

/* ============================================================
   内置小游戏样式
   ============================================================ */
/* 大厅 */
.game-hall-top { margin:14px 0; }
.game-hall-balance { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:12px 18px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.gold-num { color:#e8a413; font-size:18px; }
.game-rank-link { background:linear-gradient(135deg,#ffd76a,#f5a623); color:#5a3d00; padding:7px 16px; border-radius:999px; font-weight:700; font-size:13px; box-shadow:0 2px 8px rgba(245,166,35,.3); }
.game-hall-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:14px 0 24px; }
@media (max-width:900px){ .game-hall-grid{ grid-template-columns:repeat(2,1fr); gap:10px; } }
.game-card { display:flex; flex-direction:column; align-items:center; gap:8px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:20px 12px; text-align:center; transition:transform .15s, box-shadow .15s; color:var(--text); }
.game-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-hover); color:var(--text); }
.game-card-icon { font-size:40px; line-height:1; }
.game-card-name { font-weight:700; font-size:16px; }
.game-card-desc { font-size:12px; color:var(--text-3); line-height:1.5; min-height:36px; }
.game-card-hot { font-size:12px; color:var(--warn); background:#fff7e6; padding:2px 10px; border-radius:999px; }

/* 游戏页布局 */
.game-page { display:grid; grid-template-columns:1fr 320px; gap:16px; margin:14px 0; }
@media (max-width:900px){ .game-page{ grid-template-columns:1fr; } }
.game-panel { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:20px 22px; }
.game-panel h3 { margin:0 0 8px; font-size:19px; }
.game-rules { color:var(--text-2); font-size:13px; line-height:1.8; margin:0 0 14px; }
.game-side { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:16px 18px; align-self:start; }
.game-side h4 { margin:0 0 10px; font-size:15px; }
.game-balance { margin:12px 0; padding:10px 14px; background:var(--primary-soft); border-radius:var(--radius-sm); font-size:14px; }
.game-turn { float:right; color:var(--danger); font-weight:700; }
.game-form { margin-top:10px; }
.game-form label { display:block; margin:10px 0; font-size:14px; color:var(--text-2); }
.game-form input[type=number] { width:130px; padding:8px 10px; border:1px solid var(--border); border-radius:var(--radius-sm); font-size:14px; margin-left:8px; }
.game-form .open2 { margin-top:10px; }
.game-start-link { margin-top:12px; }

/* 结果提示 */
.game-result { padding:12px 16px; border-radius:var(--radius-sm); margin:12px 0; font-size:14px; line-height:1.6; }
.game-result.win { background:#e8f9ee; color:#1d7a3e; border:1px solid #b6e6c6; }
.game-result.lose { background:#fdebec; color:#c0392b; border:1px solid #f5c6cb; }
.game-result.err { background:#fff3cd; color:#9a6b00; border:1px solid #ffe08a; }
.game-result.info { background:var(--primary-soft); color:var(--primary-dark); border:1px solid #d8e0ff; }

/* 选择组 */
.game-pick-group { margin:12px 0; }
.pick-title { font-size:13px; color:var(--text-3); margin:12px 0 6px; font-weight:600; }
.pick-opt { display:inline-block; margin:4px 8px 4px 0; padding:7px 14px; border:1px solid var(--border); border-radius:999px; background:#fff; font-size:13px; cursor:pointer; }
.pick-opt input { margin-right:4px; }
.pick-opt:has(input:checked) { background:var(--primary); color:#fff; border-color:var(--primary); }

/* 骰子 */
.dice-row { display:flex; gap:10px; justify-content:center; margin:14px 0; }
.dice-face { width:54px; height:54px; border-radius:12px; background:linear-gradient(145deg,#ffffff,#e9ebf3); border:1px solid #d5d8e0; box-shadow:0 3px 6px rgba(0,0,0,.12), inset 0 -2px 4px rgba(0,0,0,.06); position:relative; display:inline-block; }
.dice-face::before { content:''; position:absolute; width:9px; height:9px; border-radius:50%; left:50%; top:50%; transform:translate(-50%,-50%); background:transparent; box-shadow:var(--dots, 0 0 0 #2b2b3a); }
.dice-face.d1 { --dots: 0 0 0 #2b2b3a; }
.dice-face.d2 { --dots: -15px -15px 0 #2b2b3a, 15px 15px 0 #2b2b3a; }
.dice-face.d3 { --dots: -15px -15px 0 #2b2b3a, 0 0 0 #2b2b3a, 15px 15px 0 #2b2b3a; }
.dice-face.d4 { --dots: -15px -15px 0 #2b2b3a, 15px -15px 0 #2b2b3a, -15px 15px 0 #2b2b3a, 15px 15px 0 #2b2b3a; }
.dice-face.d5 { --dots: 0 0 0 #2b2b3a, -15px -15px 0 #2b2b3a, 15px -15px 0 #2b2b3a, -15px 15px 0 #2b2b3a, 15px 15px 0 #2b2b3a; }
.dice-face.d6 { --dots: -15px -15px 0 #2b2b3a, -15px 0 0 #2b2b3a, -15px 15px 0 #2b2b3a, 15px -15px 0 #2b2b3a, 15px 0 0 #2b2b3a, 15px 15px 0 #2b2b3a; }

/* 石头剪刀布 / 比大小 对决区 */
.rps-battle, .yaotouzi-battle { display:flex; align-items:center; justify-content:center; gap:24px; margin:16px 0; }
.rps-side { text-align:center; }
.rps-emoji { font-size:56px; line-height:1; }
.rps-label { font-size:13px; color:var(--text-2); margin-top:6px; }
.rps-vs { font-size:22px; font-weight:800; color:var(--danger); }
.rps-pick { font-size:16px; padding:10px 22px; }

/* 幸运28 */
.lucky-draw { display:flex; gap:12px; align-items:center; justify-content:center; margin:16px 0; font-size:20px; font-weight:800; }
.lucky-digit { width:46px; height:46px; border-radius:50%; background:linear-gradient(145deg,#ff7e7e,#e5484d); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 3px 8px rgba(229,72,77,.35); animation:luckyRoll .4s ease; }
.lucky-eq { color:var(--text-3); }
.lucky-sum { width:60px; height:60px; border-radius:50%; background:linear-gradient(145deg,#ffd76a,#f5a623); color:#5a3d00; display:flex; align-items:center; justify-content:center; font-size:24px; box-shadow:0 3px 10px rgba(245,166,35,.4); }
@keyframes luckyRoll { 0%{transform:translateY(-14px);opacity:0;} 100%{transform:translateY(0);opacity:1;} }
.lucky-numgrid { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; margin-top:6px; }
@media (max-width:640px){ .lucky-numgrid{ grid-template-columns:repeat(5,1fr); } }
.lucky-numcell { display:flex; flex-direction:column; align-items:center; padding:6px 2px; border:1px solid var(--border); border-radius:var(--radius-sm); cursor:pointer; font-size:12px; }
.lucky-numcell input { display:none; }
.lucky-numcell .ln-n { font-weight:800; font-size:14px; color:var(--text); }
.lucky-numcell .ln-o { color:var(--text-3); font-size:10px; }
.lucky-numcell:has(input:checked) { background:var(--primary); border-color:var(--primary); }
.lucky-numcell:has(input:checked) .ln-n, .lucky-numcell:has(input:checked) .ln-o { color:#fff; }

/* 快乐十分 */
.lottery-balls { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin:14px 0; }
.lot-ball { width:34px; height:34px; border-radius:50%; background:#eef1ff; color:var(--text-3); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; }
.lot-ball.b-draw { background:linear-gradient(145deg,#6a8bff,#4f6ef7); color:#fff; box-shadow:0 2px 6px rgba(79,110,247,.35); }
.lot-ball.b-pick { outline:2px solid var(--ok); outline-offset:1px; }
.lottery-pick { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.lot-opt { width:34px; height:34px; border-radius:50%; border:1px solid var(--border); background:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; cursor:pointer; }
.lot-opt input { display:none; }
.lot-opt:has(input:checked) { background:var(--ok); color:#fff; border-color:var(--ok); }

/* 金蛋 / 鸡蛋 */
.egg-row { display:flex; gap:16px; justify-content:center; margin:16px 0; flex-wrap:wrap; }
.egg-pick { display:flex; gap:12px; flex-wrap:wrap; margin:8px 0; }
.gold-egg { width:80px; text-align:center; cursor:pointer; }
.egg-shell { font-size:48px; line-height:1.2; }
.egg-prize { font-size:13px; font-weight:700; margin-top:4px; color:var(--warn); }
.gold-egg-pick input { display:none; }
.gold-egg-pick { padding:10px; border:1px solid var(--border); border-radius:var(--radius); background:#fff; }
.gold-egg-pick:has(input:checked) { border-color:var(--warn); background:#fff7e6; }
.opened.egg-big .egg-shell { animation:crack .5s ease; }
.egg-big .egg-prize { color:var(--danger); }
@keyframes crack { 0%{transform:scale(1);} 50%{transform:scale(1.2) rotate(-8deg);} 100%{transform:scale(1);} }
.hatch-egg { width:80px; text-align:center; }
.hatch-gold .egg-shell { color:#e8a413; }

/* 记录列表 */
.game-logline { display:flex; gap:10px; align-items:baseline; padding:7px 2px; border-bottom:1px dashed var(--border); font-size:13px; }
.game-logline:last-child { border-bottom:none; }
.gl-time { color:var(--text-3); flex:none; font-size:11px; }
.gl-desc { flex:1; color:var(--text); }
.gl-score { flex:none; font-weight:700; }
.wl-win .gl-score { color:var(--ok); }
.wl-lose .gl-score { color:var(--danger); }
.wl-draw .gl-score { color:var(--text-3); }

/* 排行榜 */
.rank-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 16px; }
.rank-tab { padding:6px 14px; border-radius:999px; background:var(--primary-soft); color:var(--primary); font-size:13px; }
.rank-tab.act { background:var(--primary); color:#fff; }
.rank-table { width:100%; border-collapse:collapse; }
.rank-table th, .rank-table td { padding:10px 12px; border-bottom:1px solid var(--border); text-align:left; font-size:14px; }
.rank-table th { color:var(--text-3); font-weight:600; font-size:13px; background:#fafbff; }
.rank-table .rk-no { width:60px; color:var(--text-2); }
.rank-table .rk-num { text-align:right; }
.rank-table .win-num { color:var(--warn); font-weight:700; }
.rank-table tr:hover td { background:#fafbff; }

/* ===== 银行 / VIP / 等级 / 文章 / 收藏 ===== */
.bank-wrap{max-width:900px;margin:0 auto}
.bank-balance{display:flex;gap:14px;margin:10px 0}
.bank-card{flex:1;background:#fff;border:1px solid #eee;border-radius:10px;padding:18px;text-align:center}
.bank-card-gold{background:linear-gradient(135deg,#fff8e6,#ffe9a8)}
.bank-label{color:#888;font-size:13px}
.bank-num{font-size:30px;font-weight:700;color:#c0392b;margin-top:4px}
.bank-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #eee}
.bank-table td{padding:10px 12px;border-bottom:1px solid #f2f2f2;font-size:14px}
.bank-ops{display:flex;gap:14px;flex-wrap:wrap;margin:14px 0}
.bank-form{flex:1;min-width:200px;background:#fff;border:1px solid #eee;border-radius:10px;padding:14px}
.bank-form h3{margin:0 0 8px;font-size:15px}
.bank-form input{width:100%;padding:8px;margin:6px 0;box-sizing:border-box;border:1px solid #ddd;border-radius:6px}
.bank-form .open2{width:100%}
.bank-rule{background:#fafafa;border:1px dashed #ddd;border-radius:10px;padding:12px 16px}
.bank-rule h3{margin:0 0 6px;font-size:15px}
.vip-head{display:flex;align-items:center;gap:14px;margin:10px 0}
.vip-badge{padding:8px 18px;border-radius:20px;color:#fff;font-weight:700}
.vip-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.vip-card{flex:1;min-width:220px;background:#fff;border:1px solid #eee;border-radius:10px;padding:16px;text-align:center}
.vip-price{font-size:24px;color:#e53935;font-weight:700;margin:8px 0}
.vip-grid{display:flex;flex-wrap:wrap;gap:10px}
.vip-tier{flex:1 1 30%;min-width:160px;background:#fff;border:1px solid #eee;border-radius:8px;padding:12px;position:relative}
.vip-tier.cur{border:2px solid #e0a800;background:#fffbe8}
.vip-tier-name{font-weight:700;margin-bottom:4px}
.vip-tag{position:absolute;top:8px;right:8px;background:#e0a800;color:#fff;font-size:11px;padding:2px 8px;border-radius:10px}
.vip-countdown{background:linear-gradient(135deg,#fff7e6,#fff1f0);border:1px solid #ffd591;border-radius:10px;padding:12px 16px;margin:0 0 14px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
.vip-cd-main{font-size:14px}
.vip-cd-main b{color:#d46b08;font-size:15px}
.vip-cd-tip{font-size:13px;color:#873800}
.vip-cd-tip b{color:#cf1322;font-size:16px}
#vipCdHms{font-variant-numeric:tabular-nums;color:#d46b08;font-weight:600}
.medalwall{display:flex;flex-wrap:wrap;gap:12px}
.medalwall .medal-card{width:calc(20% - 10px);min-width:150px;text-align:center}
.medalwall .medal-card.owned{border:2px solid #2a9d5f;background:#f2fbf5}
.level-wrap{max-width:900px}
.level-main{display:flex;align-items:center;gap:20px;background:#fff;border:1px solid #eee;border-radius:10px;padding:18px}
.lv-badge{font-size:40px;font-weight:800;color:#fff;background:linear-gradient(135deg,#e0a800,#e8638a);width:90px;height:90px;line-height:90px;text-align:center;border-radius:50%}
.lv-meta{flex:1}
.lv-exp{font-size:22px;font-weight:700}
.lv-bar{height:14px;background:#f0f0f0;border-radius:7px;overflow:hidden;margin:8px 0}
.lv-bar-in{height:100%;background:linear-gradient(90deg,#2a9d5f,#52c41a)}
.table-list{width:100%;border-collapse:collapse;background:#fff}
.table-list th,.table-list td{padding:10px;border-bottom:1px solid #f0f0f0;text-align:left}
.empty{padding:24px;text-align:center;color:#999}
.fav-add{display:flex;gap:8px;align-items:center;padding:10px}
.fav-add input,.fav-add select{padding:8px;border:1px solid #ddd;border-radius:6px}
.fav-inline{display:inline-block}
.art-cols{display:flex;gap:16px}
.art-side{width:200px;flex-shrink:0}
.art-nav{list-style:none;padding:0;margin:0;background:#fff;border:1px solid #eee;border-radius:8px}
.art-nav li a{display:block;padding:9px 12px;color:#333;text-decoration:none;border-bottom:1px solid #f5f5f5}
.art-nav li a.act{background:#e8f0fe;color:#1a73e8;font-weight:700}
.art-nav .art-sub a{padding-left:22px;font-size:13px;color:#666}
.art-main{flex:1;min-width:0}
.art-list{list-style:none;padding:0;margin:0}
.art-list li{background:#fff;border:1px solid #eee;border-radius:8px;padding:14px;margin-bottom:10px}
.art-title{font-size:17px;font-weight:700;color:#245;text-decoration:none}
.art-title:hover{color:#1a73e8}
.art-time{float:right;color:#999;font-size:12px}
.art-meta{font-size:12px;margin:4px 0}
.art-desc{color:#666;font-size:13px;line-height:1.6;margin-top:4px}
.art-view{background:#fff;border:1px solid #eee;border-radius:10px;padding:22px;max-width:860px;margin:0 auto}
.art-view-title{font-size:24px;margin:0 0 8px}
.art-view-meta{color:#999;font-size:12px;border-bottom:1px solid #f0f0f0;padding-bottom:10px;margin-bottom:16px}
.art-view-content{line-height:1.9;font-size:15px}
.art-view-content img{max-width:100%}
.art-prevnext{display:flex;justify-content:space-between;margin:18px 0;color:#666}
.art-related{margin-top:18px;border-top:1px solid #f0f0f0;padding-top:10px}
.art-related ul{padding-left:18px}
.art-comments{margin-top:18px;border-top:1px solid #f0f0f0;padding-top:10px}
.comment-form{margin-top:10px}
.comment-form textarea{width:100%;box-sizing:border-box;padding:8px;border:1px solid #ddd;border-radius:6px}
.pager{padding:16px 0}
.pager a,.pager b{display:inline-block;padding:4px 10px;margin:0 2px;border:1px solid #ddd;border-radius:4px;text-decoration:none}
.pager b{background:#1a73e8;color:#fff;border-color:#1a73e8}
.mod-title{border-left:4px solid #1a73e8;padding-left:8px;margin:18px 0 10px}

/* ============================================================
   农场
   ============================================================ */
.farm-wrap { max-width: 900px; margin: 0 auto; }
.farm-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.farm-money { font-size: 15px; }
.farm-money b { color: var(--primary); font-size: 18px; }
.farm-level { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 200px; }
.farm-lv { background: var(--primary); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.farm-expbar { flex: 1; height: 10px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.farm-expbar i { display: block; height: 100%; background: linear-gradient(90deg,#4f6ef7,#7c5cf0); border-radius: 999px; transition: width .4s; }
.farm-expnum { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.farm-btn { display: inline-block; border: none; cursor: pointer; padding: 9px 16px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; transition: background .15s, transform .1s; }
.farm-btn:hover { background: #3d5ade; }
.farm-btn:disabled { background: #cbd2dc; cursor: not-allowed; }
.farm-btn-green { background: #2a9d5f; }
.farm-btn-green:hover { background: #22804d; }
.farm-btn-orange { background: #e8833a; }
.farm-btn-orange:hover { background: #d06f28; }
.farm-ferti { font-size: 14px; }
.farm-ferti b { color: #e8833a; font-size: 17px; }
.farm-ferti-btn {
  position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  border: none; cursor: pointer; font-size: 10.5px; padding: 3px 9px; border-radius: 999px;
  background: rgba(232,131,58,.92); color: #fff; white-space: nowrap;
}
.farm-ferti-btn:hover { background: #d06f28; }
.farm-modal { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.farm-modal[hidden] { display: none; }
.farm-modal-box { width: min(480px, 94vw); max-height: 78vh; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-hover); overflow: hidden; }
.farm-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; }
.farm-modal-head b { color: var(--primary); }
.farm-modal-close { border: none; background: transparent; font-size: 16px; color: var(--text-3); cursor: pointer; padding: 2px 6px; }
.farm-modal-body { overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.pm-seed { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.pm-seed .pm-icon { font-size: 22px; width: 30px; text-align: center; }
.pm-seed .pm-name { flex: 1; font-size: 14px; font-weight: 600; }
.pm-seed .pm-name small { display: block; font-weight: 400; color: var(--text-3); font-size: 11.5px; }
.fs-owned { font-size: 11.5px; color: var(--text-3); background: var(--primary-soft); border-radius: 999px; padding: 3px 9px; flex: none; }
.farm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.farm-cell { position: relative; min-height: 108px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden; }
.farm-cell.land-0 { background: linear-gradient(160deg,#f6ead5,#e7d3ab); }
.farm-cell.land-1 { background: linear-gradient(160deg,#f3d9d0,#e0a88f); }
.farm-cell.land-2 { background: linear-gradient(160deg,#5b5b5b,#3a3a3a); }
.farm-cell.land-3 { background: linear-gradient(160deg,#f9e9a8,#e8c94e); }
.farm-cell.locked { filter: grayscale(.9); opacity: .65; }
.farm-lock { text-align: center; color: #7a6a4a; font-size: 26px; }
.farm-lock small { display: block; font-size: 11px; margin-top: 4px; line-height: 1.3; }
.farm-empty { text-align: center; font-size: 26px; color: rgba(120,100,60,.5); }
.farm-empty small { display: block; font-size: 11px; margin-top: 4px; color: rgba(120,100,60,.75); line-height: 1.3; }
.farm-crop { text-align: center; font-size: 30px; }
.farm-crop .farm-cropname { display: block; font-size: 12px; color: var(--text); margin-top: 2px; }
.farm-crop em { display: block; font-style: normal; font-size: 11px; color: var(--text-3); margin-top: 2px; }
.farm-crop.ready em { color: #2a9d5f; font-weight: 700; }
.farm-crop.grow em { color: #e8833a; font-variant-numeric: tabular-nums; }
.farm-slot { position: absolute; top: 5px; left: 7px; font-size: 10px; color: rgba(0,0,0,.35); background: rgba(255,255,255,.6); border-radius: 4px; padding: 1px 5px; }
.farm-shop { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.farm-shop h3 { margin: 0 0 10px; font-size: 16px; }
.farm-kindbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.farm-kindbar .fk { padding: 5px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; cursor: pointer; }
.farm-kindbar .fk.act { background: var(--primary); color: #fff; }
.farm-seedlist { display: grid; grid-template-columns: 1fr; gap: 8px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.farm-seed { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; background: #fff; }
.farm-seed .fs-icon { font-size: 24px; width: 32px; text-align: center; flex: none; }
.farm-seed .fs-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.farm-seed .fs-name small { display: block; font-weight: 400; color: var(--text-3); font-size: 11.5px; margin-top: 2px; }
.farm-seed .fs-land { font-style: normal; font-size: 10px; background: #f3edff; color: #8b5cf6; border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px; }
.farm-seed .fs-form { display: flex; gap: 6px; align-items: center; flex: none; }
.farm-seed .fs-form select { border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; font-size: 12px; background: #fff; }
@media (max-width: 640px) {
  .farm-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .farm-cell { min-height: 92px; }
  .farm-seed { flex-wrap: wrap; }
  .farm-seed .fs-form { width: 100%; }
  .farm-seed .fs-form select { flex: 1; }
  .farm-head { flex-wrap: wrap; gap: 6px; }
  .farm-head .farm-btn { padding: 5px 12px; font-size: 11px; }
  .farm-ferti-btn { font-size: 9.5px; padding: 2px 7px; }
  .farm-kindbar a { font-size: 11px; padding: 3px 7px; }
  .farm-empty small { font-size: 10px; }
  .farm-lock small { font-size: 9.5px; }
  .farm-modal-head { font-size: 13px; }
}

/* ============================================================
   手机端顶栏定制（放在文件末尾，确保覆盖前面的基础导航样式）：
   隐藏「☰ 功能」按钮与底部主导航行（首页/论坛/...）；
   搜索/排行/会员/在线/登录(注册)等功能行与品牌图标并齐 —— 同一行右对齐
   ============================================================ */
@media (max-width: 768px) {
  .header { flex-wrap: wrap; gap: 6px 8px; padding: 0 8px; height: auto; overflow: visible; }
  .header-in { flex-wrap: nowrap; gap: 6px 8px; }
  .header .brand { order: 1; gap: 6px; flex: none; }
  .header .brand .bname { display: flex; flex-direction: column; line-height: 1.15; font-size: 13px; white-space: nowrap; }
  .header .brand .bname em { display: block; font-size: 11px; }
  .header .brand .logo, .header .brand .logo img { width: 28px; height: 28px; border-radius: 9px; }
  .nav-toggle { display: none; }
  .headnav-right { order: 2; margin-left: auto; flex: 1 1 auto; min-width: 0; justify-content: flex-end; gap: 1px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .headnav-right::-webkit-scrollbar { display: none; }
  .headnav-right a { padding: 5px 4px; font-size: 11px; white-space: nowrap; }
  .userchip { padding: 3px 4px 3px 3px; gap: 3px; }
  .userchip img { width: 18px; height: 18px; }
  .nav-left { order: 4; display: none !important; }
}

/* ============================================================
   默认表情（回帖编辑器）—— 2026-09-16 追加
   ============================================================ */
.ubbemoji { margin: 2px 0 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ubbemoji .emoji-label { font-size: 12px; color: var(--text-3); margin-right: 2px; flex: none; }
.ubbemoji button {
  flex: none; width: 30px; height: 30px; padding: 0; border: 1px solid var(--border);
  background: #fff; border-radius: 7px; font-size: 17px; line-height: 1; cursor: pointer;
  transition: transform .12s ease, border-color .12s, background .12s;
}
.ubbemoji button:hover { transform: scale(1.12); border-color: var(--primary); background: var(--primary-soft); }
@media (max-width: 768px) {
  .ubbemoji { gap: 3px; }
  .ubbemoji button { width: 27px; height: 27px; font-size: 15px; }
}

/* ============================================================
   Forum inner search box (bbs/index) -- 2026-09-16
   ============================================================ */
.bbs-search { display: flex; gap: 8px; align-items: center; }
.bbs-search .bbs-search-input {
  flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; background: #fff; color: var(--text);
}
.bbs-search .bbs-search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.bbs-search .open2 { flex: none; padding: 9px 22px; }
@media (max-width: 768px) {
  .bbs-search .bbs-search-input { font-size: 13px; padding: 8px 10px; }
  .bbs-search .open2 { padding: 8px 16px; font-size: 13px; }
}

/* ===== 站内信未读红标 ===== */
.headnav-right .msglink{ position: relative; }
.msg-badge{ display:inline-block; min-width:17px; height:17px; line-height:17px; padding:0 5px; margin-left:3px; border-radius:9px; background:#f5222d; color:#fff; font-size:11px; font-weight:700; text-align:center; vertical-align:middle; box-shadow:0 0 0 1px #fff; }

/* ===== 文章/帖子视频自适应 ===== */
/* 平台视频（B站/优酷/腾讯 iframe）：固定 16:9 */
iframe.ubbt-video{display:block;width:100%;max-width:720px;aspect-ratio:16/9;border:0;border-radius:8px;background:#000;margin:10px auto}
.art-view-content .ubbt-video{max-width:100%}
@media(max-width:640px){.ubbt-video{max-width:100%}}

/* ===== 内置视频播放器（直链 mp4/webm）===== */
.nov-vp{position:relative;width:100%;max-width:720px;max-width:100%;box-sizing:border-box;margin:10px auto;background:#000;border-radius:8px;overflow:hidden;aspect-ratio:16/9}
.nov-vp.ready{aspect-ratio:auto;max-height:52vh}
.nov-vp-video{display:block;width:100%!important;max-width:100%;min-width:0;height:100%;max-height:52vh;object-fit:contain;background:#000;margin:0;border:0}
.nov-vp-video::-webkit-media-controls{display:none!important}
.nov-vp-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.12);cursor:pointer;z-index:2}
.nov-vp-big{width:64px;height:64px;border-radius:50%;background:rgba(255,255,255,.28);border:0;color:#fff;font-size:26px;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.3)}
.nov-vp-bar{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:8px;padding:6px 10px;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff;font-size:12px;z-index:3;opacity:.95}
.nov-vp-btn{background:none;border:0;color:#fff;font-size:16px;cursor:pointer;padding:2px 4px;line-height:1}
.nov-vp-progress{flex:1;height:4px;background:rgba(255,255,255,.3);border-radius:2px;cursor:pointer;position:relative}
.nov-vp-fill{position:absolute;left:0;top:0;bottom:0;background:#ff7a1a;border-radius:2px;width:0}
.nov-vp-time{white-space:nowrap;min-width:78px;text-align:right;font-variant-numeric:tabular-nums}
.art-view-content .nov-vp{max-width:100%}
@media(max-width:640px){.nov-vp{max-width:100%}.nov-vp{max-height:50vh}.nov-vp-video{max-height:50vh}}
/* ===== 播放器全屏模式 ===== */
.nov-vp:fullscreen,.nov-vp:-webkit-full-screen,.nov-vp:-moz-full-screen,.nov-vp:-ms-fullscreen{width:100vw!important;max-width:none;height:100vh!important;max-height:none;border-radius:0;margin:0;background:#000;aspect-ratio:auto}
.nov-vp:fullscreen .nov-vp-video,.nov-vp:-webkit-full-screen .nov-vp-video{width:100%!important;height:100%!important;max-height:100vh}
.nov-vp:fullscreen .nov-vp-big,.nov-vp:-webkit-full-screen .nov-vp-big{width:84px;height:84px;font-size:34px}
.nov-vp:fullscreen .nov-vp-bar,.nov-vp:-webkit-full-screen .nov-vp-bar{font-size:14px;padding:10px 14px}
.nov-vp:fullscreen::backdrop{background:#000}

/* ===== 全局防横向溢出（移动端视频/长内容撑宽修复） ===== */
html,body{overflow-x:hidden;max-width:100%}
