/* ============================================================
   源码之家 · 前台样式（基于 Layui 定制）
   ============================================================ */

:root {
  --primary: #2f6bff;
  --primary-dark: #1d4ed8;
  --primary-light: #eaf0ff;
  --gold: #f0a020;
  --gold-dark: #d98a0b;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1b2333;
  --text-2: #4b5563;
  --muted: #8a93a6;
  --border: #e8ebf2;
  --dark: #0b1220;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(17, 34, 68, .06);
  --shadow-hover: 0 14px 36px rgba(17, 34, 68, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; border: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--text); }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 16px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #3d7bff, #2459e6); color: #fff; box-shadow: 0 6px 18px rgba(47, 107, 255, .28); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(47, 107, 255, .35); }
.btn-gold { background: linear-gradient(135deg, #ffc253, #f0a020); color: #4a2d00; box-shadow: 0 6px 18px rgba(240, 160, 32, .28); }
.btn-gold:hover { color: #3a2300; }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-text { color: var(--text-2); background: transparent; }
.btn-text:hover { color: var(--primary); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }

/* ---------------- 头部 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #3d7bff, #7c4dff);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 6px 16px rgba(61, 123, 255, .3);
}
.logo-text { font-size: 19px; font-weight: 800; letter-spacing: .5px; line-height: 1.1; display: flex; flex-direction: column; }
.logo-text small { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.logo:hover { color: inherit; }

.main-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.main-nav > a, .nav-cate > a {
  padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.main-nav > a.on, .main-nav > a:hover, .nav-cate > a:hover { color: var(--primary); background: var(--primary-light); }
.nav-cate { position: relative; }
.cate-panel {
  position: absolute; top: 44px; left: 0; width: 260px; padding: 10px;
  background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(17, 34, 68, .14);
  display: none; grid-template-columns: 1fr 1fr; gap: 4px;
}
.nav-cate:hover .cate-panel { display: grid; }
.cate-panel a { padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.cate-panel a:hover { background: var(--primary-light); color: var(--primary); }
.cate-panel .layui-icon { font-size: 15px; color: var(--primary); }

.header-search {
  margin-left: auto; display: flex; align-items: center;
  background: #f1f4fa; border-radius: 11px; padding: 0 4px 0 12px; height: 42px; width: 260px;
  border: 1px solid transparent; transition: .2s;
}
.header-search:focus-within { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47, 107, 255, .08); }
.header-search .layui-icon { color: var(--muted); font-size: 16px; }
.header-search input { border: 0; background: transparent; outline: 0; flex: 1; padding: 0 8px; font-size: 13.5px; }
.header-search button {
  border: 0; background: var(--primary); color: #fff; border-radius: 8px;
  height: 34px; padding: 0 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}

.header-user { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-drop { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 10px; }
.user-trigger:hover { background: var(--primary-light); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3d7bff, #7c4dff); color: #fff; font-size: 13px; font-weight: 700;
}
.uname { font-size: 13.5px; font-weight: 600; }
.user-menu {
  position: absolute; right: 0; top: 50px; width: 200px; background: #fff; border-radius: 12px;
  box-shadow: 0 18px 40px rgba(17, 34, 68, .14); padding: 8px; display: none;
}
.user-drop.open .user-menu { display: block; }
.um-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
.um-name { font-weight: 700; }
.um-badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--primary-light); color: var(--primary); }
.user-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); }
.user-menu a:hover { background: var(--primary-light); color: var(--primary); }
.user-menu a i { font-size: 15px; }
.um-exit { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px !important; color: var(--muted) !important; }

/* ---------------- 提示条 ---------------- */
.flash-wrap { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.flash {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; animation: flashIn .25s ease;
}
.flash-success { background: #eafaf0; color: #0f7a3d; border: 1px solid #c9f0d8; }
.flash-error { background: #fdecec; color: #b42318; border: 1px solid #f8d4d2; }
.flash-warning { background: #fff7e6; color: #97600a; border: 1px solid #ffe3b0; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 54px 0 46px;
  background:
    linear-gradient(90deg, rgba(4,8,20,.94) 0%, rgba(5,12,28,.86) 45%, rgba(5,12,28,.46) 100%),
    url("../img/hero-bg.jpg") center/cover no-repeat,
    #0b1220;
}
.hero-glow {
  position: absolute; inset: 0; opacity: .5;
  background:
    radial-gradient(600px 300px at 80% 10%, rgba(124, 77, 255, .3), transparent 70%),
    radial-gradient(500px 300px at 15% 90%, rgba(47, 107, 255, .25), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { max-width: 640px; }
.hero-tag { display: inline-block; font-size: 12.5px; padding: 4px 12px; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #cfe0ff; margin-bottom: 16px; }
.hero h1 { font-size: 38px; line-height: 1.3; letter-spacing: 1px; color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7fb0ff, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #b9c6e0; margin-top: 12px; font-size: 15px; }
.hero-search {
  margin-top: 24px; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .97); border-radius: 14px; padding: 6px 6px 6px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3); max-width: 560px;
}
.hero-search .layui-icon { color: var(--primary); font-size: 20px; }
.hero-search input { flex: 1; border: 0; outline: 0; font-size: 15px; padding: 10px 6px; background: transparent; color: var(--text); }
.hero-search button { border: 0; background: linear-gradient(135deg, #3d7bff, #2459e6); color: #fff; font-size: 14.5px; font-weight: 700; padding: 11px 26px; border-radius: 10px; cursor: pointer; }
.hero-hot { margin-top: 14px; font-size: 13px; color: #8fa3c8; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-hot a { color: #b9c6e0; padding: 2px 0; border-bottom: 1px dashed transparent; }
.hero-hot a:hover { color: #fff; border-color: rgba(255,255,255,.4); }

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hs-item {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; padding: 18px 22px; min-width: 130px; backdrop-filter: blur(6px);
}
.hs-item strong { display: block; font-size: 26px; color: #fff; letter-spacing: .5px; }
.hs-item span { font-size: 12.5px; color: #9fb2d6; }

/* ---------------- 分类快捷 ---------------- */
.quick-cates {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 120px)); justify-content: center; gap: 6px;
  background: #fff; border-radius: var(--radius); padding: 12px; margin-top: 22px;
  box-shadow: var(--shadow);
}
.quick-cate { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px; border-radius: 10px; transition: .2s; }
.quick-cate:hover { background: var(--primary-light); transform: translateY(-2px); }
.qc-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.qc-name { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* ---------------- 首页分类上方横幅广告 ---------------- */
.home-banners { margin: 0 0 6px; }
.home-banners .ad-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.home-banners .ad-box > .ad-item:only-child,
.home-banners .ad-box > .ad-item:nth-child(odd):last-child { grid-column: 1 / -1; }
.home-banners .ad-item { display: block; height: 120px; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.home-banners .ad-image img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius); display: block; }
.home-banners .ad-text { height: 120px; padding: 14px 20px; border-radius: var(--radius); }
.home-banners .ad-html { height: 120px; border-radius: var(--radius); }

/* ---------------- 区块标题 ---------------- */
.block { margin-top: 30px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.block-head h2 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.block-head h2 .layui-icon { color: var(--primary); font-size: 20px; }
.more { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.more:hover { color: var(--primary); }

/* ---------------- 源码卡片 ---------------- */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.post-grid.compact { grid-template-columns: repeat(3, 1fr); }

/* 宽屏：首页与列表统一 5 列（首页「最新更新」正好 5×5） */
@media (min-width: 1280px) {
  .post-grid { grid-template-columns: repeat(5, 1fr); }
  .post-grid.compact { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: .25s; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
/* 列表最后一行不足时自动补位，避免右侧留下空缺 */
.post-card.grid-fill-card {
  justify-content: center; align-items: center; padding: 22px 18px; text-align: center;
  border: 1px dashed #b9d7f1; background: linear-gradient(145deg, #f7fbff, #eaf4ff);
  box-shadow: none; color: #2f6fa8;
}
.post-card.grid-fill-card:hover { border-color: #7cb6e8; box-shadow: 0 10px 24px rgba(47,111,168,.12); }
.grid-fill-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 320px; }
.grid-fill-inner > i { font-size: 32px; color: #5b9bd5; }
.grid-fill-inner strong { font-size: 15px; color: #24557d; line-height: 1.4; }
.grid-fill-inner span { font-size: 12.5px; color: #6d8ea8; line-height: 1.6; }
.grid-fill-inner em { margin-top: 2px; font-style: normal; font-size: 12.5px; font-weight: 600; color: #2f6fa8; }
.pc-cover { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pc-cover img { width: 100%; height: 100%; object-fit: cover; }
.pc-initial { font-size: 44px; font-weight: 800; color: rgba(255, 255, 255, .92); text-shadow: 0 4px 16px rgba(0,0,0,.18); }
.pc-cate {
  position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; padding: 2px 9px; border-radius: 20px;
  background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(4px);
}
.pc-vip { position: absolute; right: 10px; top: 10px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: linear-gradient(135deg, #ffd166, #f0a020); color: #5a3a00; }
.pc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-body h3 { font-size: 15px; line-height: 1.5; height: 46px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pc-intro { font-size: 12.5px; color: var(--muted); height: 36px; overflow: hidden; line-height: 1.45; }
.pc-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 12px; color: var(--muted); }
.pc-ver { padding: 1px 7px; border-radius: 5px; background: #f2f5fb; color: var(--text-2); font-size: 11.5px; }
.pc-dl .layui-icon { color: var(--primary); font-size: 13px; }

/* ---------------- 行列表 ---------------- */
.row-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.post-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); transition: .18s; }
.post-row:last-child { border-bottom: 0; }
.post-row:hover { background: #f8faff; }
.pr-cover { width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 17px; overflow: hidden; }
.pr-cover img { width: 100%; height: 100%; object-fit: cover; }
.pr-main { flex: 1; min-width: 0; }
.pr-main h4 { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-meta { display: flex; gap: 10px; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.pr-right { text-align: right; flex-shrink: 0; }
.pr-right strong { display: block; font-size: 13px; color: var(--primary); }
.pr-right small { font-size: 11px; color: var(--muted); }
.row-list.mini .post-row { padding: 10px 12px; }
.row-list.mini .pr-cover { width: 38px; height: 38px; font-size: 14px; }
.row-list.mini .pr-main h4 { font-size: 13px; }
.row-list.mini .pr-meta { display: none; }
.row-list.mini .pr-right strong { font-size: 12px; }

/* ---------------- 首页两栏 ---------------- */
.home-main { display: grid; grid-template-columns: 1fr 330px; gap: 22px; margin-top: 30px; align-items: start; }
.home-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.widget { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.widget-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.widget-head h3 { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.widget-head h3 .layui-icon { color: var(--primary); }
.widget-head a { font-size: 12px; color: var(--muted); }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.rank-list li:last-child { border-bottom: 0; }
.rank-no { width: 20px; height: 20px; border-radius: 6px; background: #eef2fa; color: var(--muted); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank-1 { background: linear-gradient(135deg, #ff5f6d, #ff3b5c); color: #fff; }
.rank-2 { background: linear-gradient(135deg, #ff9a44, #ff7a18); color: #fff; }
.rank-3 { background: linear-gradient(135deg, #ffc93c, #ffab00); color: #fff; }
.rank-title { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-dl { font-size: 11.5px; color: var(--muted); }
.notice-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.notice-list li:last-child { border-bottom: 0; }
.notice-list a { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-list span { font-size: 11.5px; color: var(--muted); flex-shrink: 0; }
.widget-vip { background: linear-gradient(135deg, #1f2a4a, #0f172e); color: #fff; text-align: center; padding: 24px 18px; }
.widget-vip h3 { color: #ffd166; font-size: 16px; }
.widget-vip p { color: #a9b7d6; font-size: 12.5px; margin: 8px 0 16px; }

/* ---------------- 广告 ---------------- */
.ad-box { margin: 18px 0; }
.ad-item { display: block; }
.ad-image img { width: 100%; border-radius: var(--radius); }
.ad-text {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: linear-gradient(90deg, #eef4ff, #f7f2ff); color: var(--primary-dark);
  border: 1px dashed #c9d8ff;
}
.ad-html { border-radius: 12px; overflow: hidden; font-size: 13.5px; }

/* ---------------- 列表页 ---------------- */
.page-head { background: linear-gradient(135deg, #101c33, #1c2f55); color: #fff; padding: 26px 0 30px; }
.page-head.slim { padding: 14px 0 16px; }
.crumb { font-size: 12.5px; color: #93a4c4; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.crumb a { color: #93a4c4; }
.crumb a:hover { color: #fff; }
.crumb .layui-icon { font-size: 11px; }
.crumb span { color: #d7e1f5; }
.page-head h1 { font-size: 26px; margin-top: 10px; color: #fff; }
.page-head p { color: #9db0d3; font-size: 13px; margin-top: 6px; }
.page-head.slim .crumb { color: #93a4c4; }

.filter-bar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin-top: 18px; }
.filter-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 0; }
.filter-row + .filter-row { border-top: 1px dashed var(--border); }
.fl-label { font-size: 12.5px; color: var(--muted); width: 44px; flex-shrink: 0; }
.fl-item { padding: 4px 12px; border-radius: 20px; font-size: 13px; color: var(--text-2); }
.fl-item:hover { background: #f2f5fb; }
.fl-item.on { background: var(--primary); color: #fff; font-weight: 600; }

.post-grid.mt, .page-head + .container .post-grid { margin-top: 18px; }
.list-wrap { margin-top: 18px; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 28px 0 10px; flex-wrap: wrap; }
.pager .pg {
  min-width: 34px; height: 34px; padding: 0 12px; border-radius: 9px; background: #fff;
  border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-2);
}
.pager .pg:hover { border-color: var(--primary); color: var(--primary); }
.pager .pg.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pager .pg.disabled { opacity: .45; pointer-events: none; }
.pg-ellipsis { color: var(--muted); padding: 0 2px; }
.pg-total { font-size: 12.5px; color: var(--muted); margin-left: 8px; }

.empty-state { background: #fff; border-radius: var(--radius); padding: 60px 20px; text-align: center; margin-top: 18px; box-shadow: var(--shadow); }
.empty-state .layui-icon { font-size: 46px; color: #cfd8ea; }
.empty-state p { color: var(--muted); margin: 10px 0 18px; }
.empty-line { color: var(--muted); font-size: 13px; padding: 18px 0; }
.empty-line a { color: var(--primary); }

/* ---------------- 详情页 ---------------- */
.detail-layout { display: grid; grid-template-columns: 1fr 330px; gap: 20px; margin-top: 18px; align-items: start; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.card-title h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.card-title h2 small { font-size: 12px; color: var(--muted); font-weight: 500; }
.title-note { font-size: 12px; color: var(--muted); }

.detail-hero { display: flex; gap: 20px; padding: 20px; }
.dh-cover { width: 130px; height: 130px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dh-cover img { width: 100%; height: 100%; object-fit: cover; }
.dh-initial { font-size: 44px; font-weight: 800; color: #fff; }
.dh-body { flex: 1; min-width: 0; }
.dh-body h1 { font-size: 24px; line-height: 1.4; }
.tag-vip { display: inline-block; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: linear-gradient(135deg, #ffd166, #f0a020); color: #5a3a00; vertical-align: middle; margin-left: 6px; }
.dh-intro { color: var(--text-2); font-size: 13.5px; margin: 10px 0 12px; }
.dh-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); align-items: center; }
.dh-meta .layui-icon { color: var(--primary); margin-right: 2px; }
.dh-tags { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.dh-tags a { padding: 1px 9px; border-radius: 20px; background: #f1f5fd; color: var(--primary); font-size: 12px; }

.article { font-size: 14px; color: var(--text-2); line-height: 1.9; }
.article h3 { font-size: 15.5px; margin: 18px 0 8px; padding-left: 10px; border-left: 3px solid var(--primary); }
.article p { margin: 8px 0; }
.article ul, .article ol { padding-left: 22px; margin: 8px 0; }
.article ul li { list-style: disc; margin: 4px 0; }
.article img { border-radius: 10px; margin: 10px 0; }

.dl-tip { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 12px; background: #f4f8ff; border: 1px dashed #c3d5fb; flex-wrap: wrap; }
.dl-tip .layui-icon { font-size: 26px; color: var(--primary); }
.dl-tip > div { flex: 1; min-width: 200px; }
.dl-tip h3 { font-size: 14.5px; }
.dl-tip p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.dl-tip-warn { background: #fff8eb; border-color: #ffdfa8; }
.dl-tip-warn .layui-icon { color: var(--gold); }

.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; transition: .2s; }
.dl-item:hover { border-color: var(--primary); background: #f8fbff; }
.dl-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dl-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.dl-item h4 { font-size: 14px; }
.dl-item p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.dl-quota { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.dl-quota strong { color: var(--primary); }
.dl-quota a { color: var(--gold-dark); margin-left: 8px; }

.comment-form textarea {
  width: 100%; min-height: 88px; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 13.5px; font-family: inherit; resize: vertical; outline: 0; background: #fafbfe;
}
.comment-form textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .07); }
.cf-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.cf-foot span { font-size: 12px; color: var(--muted); }
.comment-login-tip { font-size: 13px; color: var(--muted); padding: 12px 0; }
.comment-login-tip a { color: var(--primary); }
.comment-list { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.comment-item { display: flex; gap: 12px; }
.comment-item .avatar { width: 36px; height: 36px; font-size: 14px; flex-shrink: 0; }
.ci-body { flex: 1; min-width: 0; background: #f8fafd; border-radius: 12px; padding: 12px 14px; }
.ci-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ci-head strong { font-size: 13.5px; color: var(--primary-dark); }
.ci-head span { font-size: 11.5px; color: var(--muted); }
.ci-body p { font-size: 13.5px; color: var(--text-2); }

.detail-side { position: sticky; top: 84px; }
.side-info .side-price { text-align: center; padding: 6px 0 16px; border-bottom: 1px dashed var(--border); margin-bottom: 10px; }
.sp-label { font-size: 12px; color: var(--muted); display: block; }
.sp-value { font-size: 24px; font-weight: 800; color: var(--primary); }
.info-list li { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--muted); }
.info-list em { font-style: normal; color: var(--text-2); font-weight: 600; max-width: 180px; text-align: right; overflow: hidden; text-overflow: ellipsis; }
.info-list a { color: var(--primary); }
.side-info .btn { margin-top: 10px; }
.fav-btn { margin-top: 10px; }

.side-vip { background: linear-gradient(160deg, #1e2b4d, #0d1527); color: #fff; }
.side-vip h3 { color: #ffd166; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.side-vip ul { margin: 12px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.side-vip li { font-size: 13px; color: #c3cfe8; }
.side-vip li::before { content: "✦"; color: #ffd166; margin-right: 8px; }

/* ---------------- 登录注册 ---------------- */
.auth-wrap { max-width: 1000px; margin: 40px auto 60px; display: grid; grid-template-columns: 1fr 420px; gap: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(17, 34, 68, .14); background: #fff; }
.auth-side { padding: 46px 42px; background: radial-gradient(600px 400px at 10% 0%, #2b57c9, #0b1220 70%); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.au-logo { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.auth-side h2 { color: #fff; font-size: 24px; margin-top: 18px; }
.auth-side p { color: #a9bce0; font-size: 13.5px; margin-top: 6px; }
.au-points { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.au-points li { font-size: 13px; color: #c6d4ee; display: flex; align-items: center; gap: 8px; }
.au-points .layui-icon { color: #7fb0ff; }
.auth-card { padding: 40px 42px; }
.auth-tabs { display: flex; gap: 6px; background: #f2f5fb; border-radius: 10px; padding: 4px; margin-bottom: 26px; }
.auth-tabs a { flex: 1; text-align: center; padding: 8px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.auth-tabs a.on { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(17,34,68,.08); }
.auth-card h1 { font-size: 22px; }
.auth-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.form-error { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 9px 12px; border-radius: 9px; background: #fdecec; color: #b42318; font-size: 12.5px; }
.auth-form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.ff { display: flex; flex-direction: column; gap: 6px; }
.ff > span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ff input, .ff textarea, .ff select {
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; font-size: 13.5px;
  outline: 0; font-family: inherit; background: #fafbfe; transition: .2s; width: 100%;
}
.ff input:focus, .ff textarea:focus, .ff select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .07); }
.ff input:disabled { color: var(--muted); background: #f3f5f9; }
.auth-form .btn { margin-top: 6px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-foot a { color: var(--primary); font-weight: 600; }
.auth-demo { text-align: center; font-size: 11.5px; color: #b0b8c8; margin-top: 14px; background: #f7f9fd; border-radius: 8px; padding: 8px; }

/* ---------------- 用户中心 ---------------- */
.uc-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; margin: 26px 0 40px; align-items: start; }
.uc-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.uc-profile { background: linear-gradient(160deg, #1b2b4f, #0e1730); border-radius: var(--radius); padding: 24px; color: #fff; text-align: center; }
.avatar.xl { width: 62px; height: 62px; font-size: 24px; border: 3px solid rgba(255,255,255,.18); }
.uc-profile h3 { color: #fff; font-size: 17px; margin-top: 10px; }
.uc-badge { display: inline-block; margin-top: 6px; font-size: 11.5px; padding: 2px 10px; border-radius: 20px; background: rgba(255,255,255,.14); color: #cfe0ff; }
.uc-badge.vip { background: linear-gradient(135deg, #ffd166, #f0a020); color: #5a3a00; font-weight: 700; }
.uc-rows { margin: 16px 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.uc-rows div { display: flex; justify-content: space-between; font-size: 12.5px; color: #9fb2d6; }
.uc-rows em { font-style: normal; color: #fff; font-weight: 600; }
.uc-menu { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.uc-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 9px; font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.uc-menu a .layui-icon { font-size: 16px; color: var(--muted); }
.uc-menu a:hover { background: #f6f9ff; color: var(--primary); }
.uc-menu a.on { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.uc-menu a.on .layui-icon { color: var(--primary); }

.uc-main { display: flex; flex-direction: column; gap: 18px; }
.uc-main .card { margin-bottom: 0; }
.uc-hero { background: linear-gradient(120deg, #2f6bff, #6a5cff); border-radius: var(--radius); color: #fff; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.uc-hero h1 { color: #fff; font-size: 22px; }
.uc-hero p { color: #d5e1ff; font-size: 13px; margin-top: 6px; }
.uc-hero .btn-gold { background: #fff; color: #2f4a8a; box-shadow: none; }
.vip-open { font-size: 12.5px; color: #ffe9b0; background: rgba(255,255,255,.14); padding: 6px 14px; border-radius: 20px; }

.uc-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.uc-stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.uc-stat .layui-icon { color: var(--primary); font-size: 20px; }
.uc-stat strong { font-size: 22px; }
.uc-stat span { font-size: 12px; color: var(--muted); }
.uc-dl-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.uc-dl-list li:last-child { border-bottom: 0; }
.uc-dl-list .layui-icon { color: var(--primary); }
.uc-dl-list a { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-dl-list span { font-size: 11.5px; color: var(--muted); }

.uc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.uc-table th { text-align: left; padding: 10px; background: #f7f9fd; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.uc-table th:first-child { border-radius: 8px 0 0 8px; }
.uc-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.uc-table tr:hover td { background: #fafcff; }
.st { font-size: 11.5px; padding: 2px 9px; border-radius: 20px; }
.st-1 { background: #eafaf0; color: #0f7a3d; }
.st-0 { background: #fff7e6; color: #97600a; }
.st-2 { background: #f2f4f8; color: var(--muted); }
.link-blue { color: var(--primary); font-weight: 600; }
.text-muted { color: var(--muted); font-size: 12px; }

/* ---------------- 会员页 ---------------- */
.vip-banner { background: linear-gradient(120deg, #0f172e, #22345f); border-radius: var(--radius); padding: 26px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.vip-banner h1 { color: #fff; font-size: 24px; }
.vip-banner p { color: #9fb2d6; font-size: 13px; margin-top: 6px; }
.vip-now { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.vip-now span { font-size: 12px; color: #8fa3c8; }
.vip-now strong { font-size: 18px; color: #ffd166; }
.vip-now em { font-style: normal; font-size: 12px; color: #c6d4ee; }

.vip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vip-card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; display: flex; flex-direction: column; border: 1px solid var(--border); transition: .25s; }
.vip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.vip-card.hot { border-color: #f4c150; box-shadow: 0 12px 32px rgba(240, 160, 32, .16); background: linear-gradient(180deg, #fffdf6, #fff); }
.vc-flag { position: absolute; top: -1px; right: 18px; background: linear-gradient(135deg, #ffc253, #f0a020); color: #5a3a00; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 0 0 8px 8px; }
.vip-card h3 { font-size: 16px; }
.vc-price { margin: 10px 0 16px; display: flex; align-items: baseline; gap: 2px; }
.vc-price .cur { font-size: 15px; color: var(--gold-dark); font-weight: 700; }
.vc-price strong { font-size: 34px; color: var(--gold-dark); line-height: 1; }
.vc-price .unit { font-size: 12px; color: var(--muted); margin-left: 4px; }
.vc-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; flex: 1; }
.vc-features li { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.vc-features .layui-icon { color: #22b573; font-size: 14px; }
.vc-form { display: flex; flex-direction: column; gap: 8px; }
.vc-balance { border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 2px; }
.vc-balance:hover { color: var(--primary); }

.recharge-form { display: flex; flex-direction: column; gap: 14px; }
.ff-title { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.amount-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.amount-chip { border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 12px 22px; font-size: 15px; font-weight: 700; color: var(--text-2); cursor: pointer; transition: .2s; }
.amount-chip:hover { border-color: var(--primary); color: var(--primary); }
.amount-chip.on { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.pay-note { font-size: 12px; color: var(--muted); }
.form-vertical { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }

/* ---------------- 收银台 ---------------- */
.pay-page { background: #fff; border-radius: 18px; box-shadow: var(--shadow); max-width: 680px; margin: 30px auto 50px; overflow: hidden; }
.pay-head { background: linear-gradient(120deg, #0f172e, #22345f); color: #fff; padding: 26px 30px; }
.pay-head h1 { color: #fff; font-size: 20px; }
.pay-head p { color: #9fb2d6; font-size: 12.5px; margin-top: 4px; }
.pay-body { padding: 26px 30px 34px; }
.pay-amount { text-align: center; padding: 10px 0 22px; border-bottom: 1px dashed var(--border); }
.pay-amount span { font-size: 12.5px; color: var(--muted); display: block; }
.pay-amount strong { font-size: 34px; color: var(--gold-dark); }
.pay-info { margin: 16px 0 22px; }
.pay-info li { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; border-bottom: 1px dashed var(--border); }
.pay-info span { color: var(--muted); }
.pay-info em { font-style: normal; font-weight: 600; color: var(--text-2); }
.ps-0 { color: #b7791f !important; }
.ps-1 { color: #15803d !important; }
.pay-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-actions .btn { flex: 1; min-width: 200px; }

/* ---------------- 公告 / 404 ---------------- */
.notices-page { margin: 30px 0 50px; }
.notice-cards { display: flex; flex-direction: column; gap: 12px; }
.notice-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; transition: .2s; }
.notice-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.nc-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.notice-card > div { flex: 1; min-width: 0; }
.notice-card h3 { font-size: 15px; }
.notice-card p { font-size: 12.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-date { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.notice-detail { max-width: 860px; margin: 26px auto 50px; }
.notice-detail .card { padding: 30px 34px; }
.notice-detail h1 { font-size: 21px; }
.nd-meta { font-size: 12px; color: var(--muted); margin: 8px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

.error-page { text-align: center; padding: 80px 0 90px; }
.ep-code { font-size: 90px; font-weight: 900; line-height: 1; background: linear-gradient(135deg, #2f6bff, #7c4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { font-size: 22px; margin-top: 10px; }
.error-page p { color: var(--muted); margin: 10px 0 22px; font-size: 13.5px; }
.ep-actions { display: flex; gap: 12px; justify-content: center; }

/* ---------------- 页脚 ---------------- */
.site-footer { margin-top: 50px; background: #0b1220; color: #8fa0bf; padding: 40px 0 22px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text small { color: #8fa0bf; }
.footer-brand p { font-size: 12.5px; margin-top: 12px; color: #7d8fb0; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.footer-links h4 { color: #e2e8f5; font-size: 13.5px; margin-bottom: 4px; }
.footer-links a:hover { color: #7fb0ff; }
.footer-links-row { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.footer-links-row strong { color: #e2e8f5; }
.footer-bottom { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: #6f81a1; }
.site-footer .ad-box { margin: 22px 0 0; }
.site-footer .ad-text { background: rgba(255,255,255,.06); color: #cfe0ff; border-color: rgba(255,255,255,.12); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1320px) {
  .header-inner { gap: 16px; }
  .header-search { width: 220px; }
}
@media (max-width: 1240px) {
  .header-search { display: none; }
}
@media (max-width: 980px) {
  .header-inner { gap: 10px; }
  .main-nav > a, .nav-cate > a { padding: 7px 9px; font-size: 13.5px; }
  .logo-text small { display: none; }
}
@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-cates { grid-template-columns: repeat(4, 1fr); }
  .home-main, .detail-layout { grid-template-columns: 1fr; }
  .home-side, .detail-side { position: static; }
  .uc-layout { grid-template-columns: 240px 1fr; }
}
@media (max-width: 860px) {
  .header-search { display: none; }
  .main-nav { display: none; }
  .post-grid, .post-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 28px; }
  .hero-stats { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .uc-layout { grid-template-columns: 1fr; }
  .uc-side { position: static; }
  .uh-grid { grid-template-columns: 1fr; }
  .uh-hero { flex-direction: column; align-items: flex-start; padding: 22px; }
  .uh-two, .uh-posts { grid-template-columns: 1fr; }
  .vip-grid { grid-template-columns: 1fr; }
  .uc-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .post-grid, .post-grid.compact { grid-template-columns: 1fr; }
  .detail-hero { flex-direction: column; }
  .dh-cover { width: 100%; height: 100px; }
  .quick-cates { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; }
  .home-banners .ad-box { grid-template-columns: 1fr; gap: 10px; }
  .home-banners .ad-item, .home-banners .ad-image img { height: 110px; }
  .hero { padding: 36px 0 30px; }
  .filter-row { gap: 4px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ================= 付费源码 / 交易系统 ================= */
.pc-price {
  position: absolute; right: 10px; bottom: 10px; font-size: 11.5px; font-weight: 700;
  padding: 2px 9px; border-radius: 6px;
  background: linear-gradient(135deg, #7c4dff, #4f7cff); color: #fff;
  box-shadow: 0 4px 12px rgba(79, 124, 255, .35);
}
.tag-price {
  display: inline-block; font-style: normal; font-size: 11.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px;
  background: linear-gradient(135deg, #7c4dff, #4f7cff); color: #fff;
  vertical-align: middle; margin-left: 6px;
}
.side-price.is-paid { background: linear-gradient(135deg, #f3efff, #eef4ff); }
.side-price.is-paid .sp-value { color: #5b3ff0; }
.buy-tip { background: linear-gradient(135deg, #f7f2ff, #eef4ff); border: 1px solid #ddd4ff; }
.buy-tip .buy-price { flex: 0 0 auto; text-align: center; }
.buy-tip .buy-price small { display: block; font-size: 12px; color: var(--muted); }
.buy-tip .buy-price strong { font-size: 30px; color: #5b3ff0; }
.buy-tip .buy-info { flex: 1; min-width: 220px; }
.dl-tip-ok { background: #f1fbf5; border: 1px solid #bfe9cf; }
.dl-tip-ok .layui-icon { color: #1c9d52; }
.dl-confirm-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12.5px; color: var(--gold-dark); }
.buy-badge { font-size: 12px; padding: 3px 10px; border-radius: 20px; background: #e3f8ea; color: #12834a; }

/* 收银台支付方式 */
.pay-form { margin-top: 6px; }
.pay-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.pay-channel {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: .18s;
  background: #fbfcff;
}
.pay-channel:hover { border-color: #b9ccf5; background: #f6f9ff; }
.pay-channel input { accent-color: #4f7cff; margin: 0; }
.pay-channel .pc-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef3ff, #e7edff); color: #2f6bff; font-size: 20px;
}
.pay-channel .pc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pay-channel .pc-text b { font-size: 14px; color: var(--text); }
.pay-channel .pc-text small { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.pay-channel:has(input:checked) { border-color: #4f7cff; background: #f4f8ff; box-shadow: 0 8px 20px rgba(79,124,255,.12); }
.pay-channel.is-disabled { opacity: .55; cursor: not-allowed; }
.pay-channel .pc-rec {
  position: absolute; right: 10px; top: -9px; font-size: 10.5px; padding: 2px 8px; border-radius: 20px;
  background: linear-gradient(135deg, #ff7a59, #ff4d6d); color: #fff;
}
.pay-submit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-submit .link-muted { margin-left: auto; }
.link-muted { color: var(--muted); font-size: 12.5px; }
.link-blue { color: var(--primary); font-size: 12.5px; }
.ps-0 { color: #b26a00; } .ps-1 { color: #12834a; } .ps-2 { color: var(--muted); }
.pay-result-inline { display: flex; gap: 12px; }

/* 扫码页 */
.pay-page.wide { max-width: 900px; }
.qr-body { display: flex; gap: 34px; align-items: flex-start; flex-wrap: wrap; }
.qr-left { flex: 0 0 260px; text-align: center; }
.qr-box {
  width: 248px; height: 248px; margin: 0 auto; padding: 12px;
  border: 1px solid var(--border); border-radius: 14px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(15, 23, 46, .08);
}
.qr-box img, .qr-box canvas { width: 220px !important; height: 220px !important; }
.qr-tip { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.qr-tip .layui-icon { color: #1677ff; }
.qr-right { flex: 1; min-width: 300px; }
.qr-right .pay-amount { padding-top: 0; }
.qr-progress { height: 4px; border-radius: 4px; background: #eef2fa; overflow: hidden; margin: 12px 0 6px; }
.qr-progress span { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, #4f7cff, #8f5cff); animation: qrbar 2.6s ease-in-out infinite; }
@keyframes qrbar { 0% { transform: translateX(-40%); } 100% { transform: translateX(260%); } }

/* 支付结果 */
.done-head { text-align: center; padding: 34px 20px 24px; }
.done-ico { font-size: 56px; color: #1c9d52; line-height: 1; }
.done-head h1 { font-size: 24px; margin: 12px 0 6px; color: var(--text); }
.done-head p { color: var(--muted); font-size: 13.5px; }
.done-head.pending .done-ico { color: #e8a13a; }

/* 投稿 */
.form-alert { padding: 11px 14px; border-radius: 10px; background: #fff1f1; color: #c62828; font-size: 13px; margin-bottom: 16px; }
.submit-tips { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #f5f9ff; border: 1px dashed #c9d9f5; margin-bottom: 20px; }
.submit-tips .layui-icon { color: var(--primary); font-size: 22px; }
.submit-tips b { font-size: 13px; }
.submit-tips p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.7; }
.submit-form .layui-form-label { width: 92px; padding-left: 0; text-align: left; color: var(--text-2); }
.submit-form .layui-input-block { margin-left: 100px; }
.submit-form .layui-inline .layui-input-inline { width: 160px; }
.file-input { display: block; padding: 8px 0; font-size: 13px; color: var(--text-2); }
.submit-actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; }

/* 我的投稿 / 收益 */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.stat-card span { display: block; font-size: 12px; color: var(--muted); }
.stat-card strong { font-size: 22px; color: var(--text); display: block; margin-top: 6px; }
.income-box {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px;
  border-radius: 12px; background: linear-gradient(135deg, #f6f3ff, #eef4ff); margin-bottom: 18px;
}
.income-box span { display: block; font-size: 12px; color: var(--muted); }
.income-box strong { font-size: 22px; color: #5b3ff0; margin-top: 4px; display: block; }
.text-success { color: #12834a; font-weight: 600; }
.text-muted { color: var(--muted); }
.uc-table .cell-title a { color: var(--text-2); }

/* ---------------- 用户个人主页 ---------------- */
.uh-hero {
  display: flex; align-items: center; gap: 22px; margin: 26px 0 16px; padding: 26px 30px;
  border-radius: var(--radius); color: #fff;
  background:
    linear-gradient(110deg, rgba(8,16,36,.94), rgba(18,34,70,.84) 55%, rgba(50,36,100,.72)),
    url("../img/hero-bg.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
}
.uh-avatar {
  width: 78px; height: 78px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3d7bff, #7c4dff);
  border: 3px solid rgba(255,255,255,.2);
}
.uh-info { flex: 1; min-width: 0; }
.uh-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.uh-name h1 { font-size: 23px; color: #fff; }
.uh-info p { margin-top: 8px; font-size: 13.5px; color: #b9c6e0; max-width: 720px; }
.uh-stats { display: flex; gap: 30px; margin-top: 16px; flex-wrap: wrap; row-gap: 14px; }
.uh-stats strong { display: block; font-size: 22px; color: #fff; line-height: 1.2; white-space: nowrap; }
.uh-stats span { font-size: 12px; color: #9fb2d6; }
.uh-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.uh-actions .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.uh-tabs {
  display: flex; gap: 6px; padding: 8px; margin-bottom: 18px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); flex-wrap: wrap;
}
.uh-tabs a { padding: 9px 16px; border-radius: 8px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.uh-tabs a.on, .uh-tabs a:hover { background: var(--primary-light); color: var(--primary); }
.uh-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; margin-bottom: 40px; }
.uh-main { display: flex; flex-direction: column; gap: 18px; }
.uh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.uh-side { display: flex; flex-direction: column; gap: 18px; }
.uh-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.uh-post {
  display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border-radius: 10px;
  background: #f7f9fd; border: 1px solid #eef2f9; transition: .18s;
}
.uh-post:hover { border-color: #c9d8ff; background: #eef4ff; }
.uh-post strong { font-size: 13.5px; color: var(--text); line-height: 1.45; }
.uh-post span { font-size: 12px; color: var(--muted); }
.uh-post em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--primary); }
.uh-text { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.uh-bio { white-space: normal; }
.uh-link { font-size: 14px; color: var(--primary); word-break: break-all; font-weight: 600; }
.uh-info-list { margin: 0; }
.uh-balance { margin: 4px 0 14px; }
.uh-balance strong { display: block; font-size: 24px; color: #5b3ff0; }
.uh-balance span { font-size: 12px; color: var(--muted); }
.uh-withdraw-form { max-width: 560px; }

/* 交易市场页头 */
.trade-head { background: linear-gradient(120deg, #10203f, #24356b 55%, #3c2a6d); }
.trade-stats { display: flex; gap: 36px; margin-top: 16px; flex-wrap: wrap; }
.trade-stats strong { font-size: 24px; color: #ffd166; display: block; }
.trade-stats span { font-size: 12px; color: #9db0d3; }
.trade-toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin: 18px 0 16px; flex-wrap: wrap; }
.trade-search { display: flex; align-items: center; gap: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; flex: 1; max-width: 520px; }
.trade-search .layui-icon { padding: 0 12px; color: #9aa8c4; }
.trade-search input { flex: 1; border: 0; outline: 0; padding: 11px 0; font-size: 13.5px; background: transparent; }
.trade-search button { border: 0; padding: 11px 20px; background: linear-gradient(135deg, #4f7cff, #8f5cff); color: #fff; cursor: pointer; font-size: 13.5px; }

/* ================= 首页「最新上架」文章列表 ================= */
.article-list { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 5px 0; }
.article-item { display: flex; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.article-item:last-child { border-bottom: 0; }
.ai-cover { width: 168px; height: 106px; border-radius: 10px; overflow: hidden; flex-shrink: 0; display: block; }
.ai-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-cover-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; font-weight: 700; }
.ai-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ai-main h3 { font-size: 16px; font-weight: 700; line-height: 1.45; margin-bottom: 6px; }
.ai-main h3 a { color: var(--text); }
.ai-main h3 a:hover { color: var(--primary); }
.ai-main p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); margin-top: auto; flex-wrap: wrap; }
.ai-cate { padding: 2px 10px; border-radius: 20px; background: var(--primary-light); color: var(--primary); font-weight: 600; }
.ai-meta .layui-icon { font-size: 13px; }

/* ================= 网站地图 ================= */
.sitemap-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 22px 0 4px; padding: 26px 30px; border-radius: var(--radius);
  background: linear-gradient(120deg, #10203f, #24356b 60%, #3c2a6d); color: #fff;
  box-shadow: var(--shadow);
}
.sitemap-hero h1 { font-size: 26px; margin-bottom: 8px; }
.sitemap-hero p { font-size: 13.5px; color: #b9c7e2; line-height: 1.8; }
.sitemap-hero p a { color: #ffd166; font-weight: 600; }
.sm-stat { font-size: 13px; color: #9db0d3; background: rgba(255,255,255,.08); padding: 8px 14px; border-radius: 20px; }
.sm-cates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sm-cate { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.sm-cate-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); padding-bottom: 10px; border-bottom: 1px dashed var(--border); margin-bottom: 10px; }
.sm-cate-head .layui-icon { color: var(--primary); font-size: 17px; }
.sm-cate-head em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); background: #f2f5fb; padding: 2px 9px; border-radius: 20px; }
.sm-links { display: flex; flex-direction: column; gap: 7px; }
.sm-links a { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-links a:hover { color: var(--primary); }
.sm-empty { font-size: 12.5px; color: var(--muted); }
.sm-cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-top: 22px; }
.sm-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.sm-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.sm-list li:last-child { border-bottom: 0; }
.sm-list a { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-list a:hover { color: var(--primary); }
.sm-list span { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.sm-pages { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-pages a { font-size: 12.5px; padding: 6px 13px; border-radius: 20px; background: #f2f5fb; color: var(--text-2); }
.sm-pages a:hover { background: var(--primary-light); color: var(--primary); }

@media (max-width: 900px) {
  .sm-cates, .sm-cols { grid-template-columns: 1fr; }
  .article-item { flex-direction: column; }
  .ai-cover { width: 100%; height: 150px; }
}

/* 网站地图修正 */
.sitemap-hero h1 { color: #fff; }
.sm-cates, .sm-cols { align-items: start; }

/* ================= 技术服务 ================= */
.svc-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.svc-kind { padding: 7px 16px; border-radius: 20px; background: #fff; color: var(--text-2); font-size: 13px; box-shadow: var(--shadow); }
.svc-kind:hover, .svc-kind.on { background: var(--primary); color: #fff; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc-card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(31,58,122,.13); }
.svc-cover { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.svc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-cover-icon { font-size: 42px; color: rgba(255,255,255,.9); }
.svc-price { position: absolute; right: 10px; bottom: 10px; background: rgba(10,22,50,.72); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 7px; }
.svc-kind-tag { position: absolute; left: 10px; top: 10px; font-style: normal; background: rgba(255,255,255,.9); color: var(--primary-dark); font-size: 11.5px; padding: 2px 8px; border-radius: 5px; }
.svc-kind-tag.inline { position: static; background: var(--primary-light); display: inline-block; }
.svc-body { padding: 14px 16px 15px; }
.svc-body h3 { font-size: 15px; line-height: 1.5; margin: 0 0 7px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-body p { font-size: 12.5px; color: var(--muted); line-height: 1.65; min-height: 40px; margin: 0 0 10px; }
.svc-meta { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: #8b93a4; flex-wrap: wrap; }
.svc-meta i { color: var(--primary); margin-right: 2px; }
.svc-head { padding-bottom: 28px; }
.svc-detail-wrap { padding-top: 18px; }
.svc-crumb { margin-bottom: 14px; }
.svc-detail { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
.svc-detail-main, .svc-detail-side { display: flex; flex-direction: column; gap: 18px; }
.svc-intro-card, .svc-section { padding: 22px 24px; }
.svc-detail-head { display: flex; gap: 20px; align-items: flex-start; }
.svc-detail-cover { width: 180px; height: 130px; flex-shrink: 0; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 42px; }
.svc-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.svc-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.svc-guarantee { font-size: 11.5px; color: #0f7a3d; background: #eafaf0; padding: 2px 8px; border-radius: 5px; }
.svc-detail-head h1 { font-size: 23px; line-height: 1.4; margin: 0 0 10px; }
.svc-intro-text { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 0 12px; }
.svc-detail-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #8b93a4; }
.svc-section .empty-line { margin: 6px 0 0; }
.svc-content { font-size: 13px; line-height: 1.9; color: var(--text-2); }
.svc-locked { display: flex; gap: 12px; align-items: center; background: #f7f9fe; padding: 18px; border-radius: 10px; color: var(--muted); font-size: 12.5px; }
.svc-locked i { font-size: 24px; color: var(--primary); }
.svc-locked b { color: var(--text); }
.svc-files { display: flex; flex-direction: column; gap: 8px; }
.svc-file { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--border); border-radius: 9px; font-size: 13px; color: var(--text-2); }
.svc-file i { color: var(--primary); }
.svc-file em { margin-left: auto; font-style: normal; color: var(--primary); font-size: 12px; }
.svc-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.svc-flow > div { flex: 1; min-width: 110px; background: #f7f9fe; border-radius: 10px; padding: 13px; text-align: center; }
.svc-flow b { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; margin-bottom: 5px; }
.svc-flow span { display: block; font-size: 12.5px; color: var(--text); font-weight: 600; }
.svc-flow em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; }
.svc-flow > i { color: #c3ccdf; }
.svc-related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.svc-related a { background: #f7f9fe; padding: 12px; border-radius: 9px; }
.svc-related strong { display: block; font-size: 12.5px; margin-bottom: 4px; }
.svc-related span { font-size: 11.5px; color: var(--muted); }
.svc-order-card { padding: 22px; position: sticky; top: 92px; }
.svc-order-price { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.svc-order-price span { font-size: 12px; color: var(--muted); }
.svc-order-price strong { color: #e4570a; font-size: 26px; }
.svc-order-note { font-size: 11.5px; color: #0f7a3d; background: #eafaf0; padding: 8px 10px; border-radius: 6px; line-height: 1.6; margin-bottom: 15px; }
.svc-order-card .btn { margin-bottom: 8px; }
.svc-order-state { background: #f7f9fe; padding: 12px; border-radius: 8px; display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 12px; }
.svc-order-state strong.success { color: #0f7a3d; }
.svc-order-state strong.pending { color: #b05500; }
.svc-wait-tip { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 8px; }
.svc-seller { list-style: none; margin: 15px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--border); }
.svc-seller li { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding: 5px 0; }
.svc-seller em { font-style: normal; color: var(--text-2); }
.svc-contact { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 12px; font-size: 12.5px; color: var(--primary); }
.svc-provider { padding: 19px 20px; }
.svc-provider-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.svc-provider-head .avatar { width: 38px; height: 38px; font-size: 15px; }
.svc-provider-head b { display: block; font-size: 13px; }
.svc-provider-head span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.svc-provider p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0 0 10px; }
.svc-provider ul { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--border); }
.svc-provider li { font-size: 11.5px; color: var(--text-2); padding: 4px 0; }
.svc-provider li i { color: var(--primary); margin-right: 4px; }
.svc-order-ops { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.svc-seller-tip { font-size: 12px; color: #8a600a; background: #fff8e6; border-radius: 7px; padding: 9px 11px; line-height: 1.6; margin: 0 0 14px; }

/* ================= 聊天 ================= */
.chat-crumb { margin: 18px 0 12px; }
.chat-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; height: 640px; margin-bottom: 24px; }
.chat-side, .chat-main { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chat-side-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.chat-side-head h2 { font-size: 16px; margin: 0; }
.chat-side-head span { font-size: 11.5px; color: var(--muted); }
.chat-thread-list { overflow-y: auto; }
.chat-thread { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid #f0f3f9; }
.chat-thread:hover, .chat-thread.on { background: var(--primary-light); }
.chat-thread .avatar { width: 34px; height: 34px; font-size: 14px; flex-shrink: 0; }
.chat-thread > div { min-width: 0; flex: 1; }
.chat-thread b { font-size: 12.5px; color: var(--text); }
.chat-thread p { font-size: 11.5px; color: var(--muted); margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread em { font-style: normal; font-size: 10.5px; color: #a4adbd; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.chat-num { background: #ff4d4f; color: #fff; min-width: 16px; height: 16px; border-radius: 8px; font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px; font-style: normal; }
.chat-main { background: #f7f9fe; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); padding: 30px; }
.chat-empty i { font-size: 44px; color: #c8d3e8; display: block; margin-bottom: 10px; }
.chat-empty h2 { font-size: 16px; color: var(--text); margin: 0 0 6px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.chat-head b { display: block; font-size: 14px; }
.chat-head span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.chat-head .link-blue { font-size: 12px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 18px; }
.chat-day { text-align: center; font-size: 10.5px; color: #a4adbd; margin: 8px 0 12px; }
.chat-msg { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-start; }
.chat-msg.mine { flex-direction: row-reverse; }
.chat-msg .avatar { width: 30px; height: 30px; font-size: 12px; flex-shrink: 0; }
.chat-msg > div { max-width: 68%; }
.chat-msg p { background: #fff; border-radius: 3px 10px 10px 10px; padding: 9px 12px; font-size: 12.5px; line-height: 1.7; color: var(--text-2); box-shadow: 0 2px 8px rgba(31,58,122,.05); word-break: break-word; }
.chat-msg.mine p { background: var(--primary); color: #fff; border-radius: 10px 3px 10px 10px; }
.chat-msg em { display: block; font-style: normal; font-size: 10px; color: #a4adbd; margin-top: 3px; }
.chat-msg.mine em { text-align: right; }
.chat-form { display: flex; gap: 10px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--border); flex-shrink: 0; }
.chat-form textarea { flex: 1; height: 54px; resize: none; border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 12.5px; outline: none; }
.chat-form textarea:focus { border-color: var(--primary); }
.chat-form .btn { align-self: stretch; }
.chat-safe { text-align: center; font-size: 10.5px; color: #9aa3b5; padding: 0 10px 10px; background: #fff; margin: 0; }
.um-badge-num { display: inline-block; min-width: 17px; height: 17px; line-height: 17px; border-radius: 9px; background: #ff4d4f; color: #fff; font-size: 10px; text-align: center; font-style: normal; margin-left: auto; padding: 0 4px; }
.uc-menu-num { margin-left: auto; background: #ff4d4f; color: #fff; min-width: 17px; height: 17px; border-radius: 9px; font-size: 10px; line-height: 17px; text-align: center; font-style: normal; padding: 0 4px; }
.st-success { background: #eafaf0; color: #0f7a3d; }
.st-pending { background: #fff4e6; color: #b05500; }
.st-muted { background: #f2f4f8; color: var(--muted); }
.st-note { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.done-tip { font-size: 12px; color: #8a600a; background: #fff8e6; border-radius: 6px; padding: 8px 12px; margin-top: 10px; line-height: 1.6; }

/* ---------------- 平台介入 ---------------- */
.dispute-order th { width: 110px; }
.dispute-order .money { color: var(--primary); font-size: 15px; }
.text-warning { color: #b05500; }
.dispute-tip {
  display: flex; gap: 12px; margin: 16px 0; padding: 14px 16px;
  border: 1px solid #ffe3b0; border-radius: 10px; background: #fffaf0; color: #8a600a;
}
.dispute-tip i { font-size: 20px; color: #d48806; }
.dispute-tip strong { display: block; font-size: 13.5px; margin-bottom: 4px; }
.dispute-tip p { margin: 0; font-size: 12px; line-height: 1.7; color: #8a6a32; }
.dispute-form { display: grid; gap: 14px; margin-top: 16px; }
.dispute-form label > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.dispute-form label em { color: #e5484d; font-style: normal; }
.dispute-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 13.5px; line-height: 1.7;
  background: #fafbfe; outline: 0; resize: vertical;
}
.dispute-form textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(47,107,255,.07); }
.dispute-form-foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.dispute-result { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: #fafbfe; }
.dispute-result-pending { border-color: #ffe3b0; background: #fffaf0; }
.dispute-result-success { border-color: #c9f0d8; background: #f2fcf6; }
.dispute-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dispute-result-head strong { font-size: 14.5px; }
.dispute-result dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 13px; }
.dispute-result dt { color: var(--muted); }
.dispute-result dd { margin: 0; color: var(--text-2); line-height: 1.7; }
.dispute-result-tip { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--muted); line-height: 1.7; }
.dispute-empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.dispute-empty i { display: block; font-size: 32px; color: #c5ccda; margin-bottom: 10px; }
.dispute-empty p { margin: 0 0 14px; font-size: 13px; }
.order-ops { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.order-ops form { margin: 0; }

/* ---------------- 定制需求 ---------------- */
.demand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.demand-card {
  display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); border: 1px solid transparent; transition: .2s;
}
.demand-card:hover { transform: translateY(-3px); border-color: #d9e6ff; box-shadow: 0 14px 34px rgba(31,58,122,.12); }
.dc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dc-cate { display: inline-block; padding: 3px 9px; border-radius: 6px; background: #eaf1ff; color: var(--primary); font-size: 11.5px; font-weight: 600; }
.dc-quotes { font-size: 11.5px; color: var(--muted); }
.dc-quotes i { color: #8a9ab8; }
.demand-card h3 { font-size: 16.5px; line-height: 1.45; color: var(--text); margin: 0; min-height: 48px; }
.demand-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.75; flex: 1; }
.dc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; color: var(--text-2); padding-top: 4px; }
.dc-budget { color: #d46b08; font-weight: 700; }
.dc-meta i, .dc-foot i { color: #9aa7bf; }
.dc-foot { display: flex; justify-content: space-between; padding-top: 11px; border-top: 1px dashed var(--border); font-size: 11.5px; color: var(--muted); }
.demand-page { padding-top: 22px; }
.demand-crumb { margin-bottom: 16px; }
.demand-detail { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.demand-main { padding: 26px 30px; }
.demand-title { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.demand-title > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.demand-title h1 { font-size: 25px; line-height: 1.4; margin: 12px 0 10px; }
.demand-title-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--muted); }
.demand-section { padding-top: 22px; }
.demand-section h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.demand-section h2 i { color: var(--primary); }
.demand-section h2 small { font-size: 12px; color: var(--muted); font-weight: 500; }
.demand-desc { font-size: 13.5px; line-height: 1.9; color: var(--text-2); white-space: normal; }
.quote-list { display: grid; gap: 12px; }
.quote-card { border: 1px solid var(--border); border-radius: 11px; padding: 16px 18px; background: #fafcff; }
.quote-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quote-user { display: flex; align-items: center; gap: 9px; }
.quote-user .avatar { width: 34px; height: 34px; border-radius: 50%; font-size: 14px; }
.quote-user strong { display: block; font-size: 13.5px; }
.quote-user small { font-size: 11px; color: var(--muted); }
.quote-price { margin: 11px 0 8px; font-size: 12.5px; color: var(--text-2); }
.quote-price strong { color: #d46b08; font-size: 18px; margin-right: 10px; }
.quote-price span { color: var(--muted); }
.quote-card p { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--text-2); }
.quote-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 12px; }
.quote-actions form { margin: 0; }
.quote-mine { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; background: #f7faff; border: 1px solid #e2ecff; border-radius: 9px; font-size: 13px; }
.quote-mine strong { color: #d46b08; }
.quote-mine-msg { margin-top: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.demand-form { display: grid; gap: 14px; }
.df-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demand-form label > span { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-bottom: 6px; }
.demand-form input, .demand-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px;
  font: inherit; font-size: 13px; background: #fafbfe; outline: 0;
}
.demand-form input:focus, .demand-form textarea:focus { border-color: var(--primary); background: #fff; }
.df-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.df-foot span { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.demand-login-tip { text-align: center; padding: 22px; background: #f8faff; border-radius: 10px; color: var(--muted); font-size: 13px; }
.demand-login-tip p { margin: 0 0 12px; }
.demand-side { position: sticky; top: 88px; display: grid; gap: 16px; }
.demand-side-card { padding: 20px 22px; }
.demand-budget { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.demand-budget span { display: block; font-size: 12px; color: var(--muted); }
.demand-budget strong { display: block; font-size: 27px; color: #d46b08; margin: 7px 0 4px; }
.demand-budget em { font-style: normal; font-size: 12px; color: var(--muted); }
.demand-side-list { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 9px 10px; margin: 16px 0; font-size: 12.5px; }
.demand-side-list dt { color: var(--muted); }
.demand-side-list dd { margin: 0; color: var(--text-2); word-break: break-all; }
.demand-side-title { font-size: 14.5px; margin-bottom: 7px; }
.demand-side-tip { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0 0 12px; }

/* ---------------- 首页交易 / 服务 ---------------- */
.home-market-head { margin-top: 34px; }
.home-svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-demand-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 18px; padding: 16px 20px; border-radius: 12px;
  background: linear-gradient(90deg, #f3f7ff, #fffaf0); border: 1px solid #e4ecff;
}
.home-demand-banner div strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.home-demand-banner div span { font-size: 12px; color: var(--muted); }

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-detail { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
  .svc-detail { grid-template-columns: 1fr; }
  .svc-order-card { position: static; }
  .svc-detail-head { flex-direction: column; }
  .svc-detail-cover { width: 100%; height: 170px; }
  .chat-layout { grid-template-columns: 250px minmax(0, 1fr); height: 580px; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-flow > i { display: none; }
  .svc-flow > div { flex: 1 1 45%; }
  .svc-related { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-side { max-height: 230px; }
  .chat-main { height: 560px; }
  .chat-msg > div { max-width: 82%; }
}




@media (max-width: 1100px) {
  .demand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demand-detail { grid-template-columns: 1fr; }
  .demand-side { position: static; grid-template-columns: 1fr 1fr; }
  .home-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .demand-grid { grid-template-columns: 1fr; }
  .demand-side { grid-template-columns: 1fr; }
  .df-row { grid-template-columns: 1fr; }
  .home-demand-banner { flex-direction: column; align-items: flex-start; }
}


/* ---------------- 付费源码购买条款弹窗 ---------------- */
body.modal-open { overflow: hidden; }
.buy-agree-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.buy-agree-note a { color: var(--primary); }
.buy-modal {
  position: fixed; inset: 0; z-index: 1200; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.buy-modal.show { display: flex; }
.buy-modal-mask { position: absolute; inset: 0; background: rgba(10, 18, 35, .58); backdrop-filter: blur(2px); }
.buy-modal-card {
  position: relative; z-index: 1; width: 540px; max-width: 100%;
  background: #fff; border-radius: 16px; padding: 28px 30px 24px;
  box-shadow: 0 24px 70px rgba(8, 20, 48, .28);
  animation: buyModalIn .22s ease-out;
}
@keyframes buyModalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.buy-modal-x {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 0;
  border-radius: 50%; background: #f2f5fb; color: #7b8aa6; cursor: pointer; font-size: 15px;
}
.buy-modal-x:hover { background: #e7edf8; color: #40506b; }
.buy-modal-icon {
  width: 44px; height: 44px; border-radius: 12px; background: #fff4e0; color: #e69a12;
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
}
.buy-modal-card h2 { font-size: 20px; margin: 12px 0 4px; color: #172033; }
.buy-modal-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-virtual-note {
  margin: 18px 0 14px; padding: 14px 16px; border-radius: 11px;
  background: #fff7ec; border: 1px solid #ffe0b5; color: #7a4a00;
}
.buy-virtual-note strong { display: block; font-size: 14px; color: #b45309; margin-bottom: 5px; }
.buy-virtual-note p { font-size: 12.5px; line-height: 1.75; }
.buy-virtual-note b { color: #b42318; }
.buy-check-list { margin: 0 0 14px; padding: 0; list-style: none; }
.buy-check-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #52617a; line-height: 1.75; }
.buy-check-list i { color: #2f6bff; font-size: 14px; margin-top: 2px; }
.buy-terms-check {
  display: flex; align-items: flex-start; gap: 9px; padding: 13px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: #f8faff;
  font-size: 12.5px; color: #44526b; line-height: 1.65; cursor: pointer;
}
.buy-terms-check input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.buy-terms-check a { color: var(--primary); }
.buy-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.buy-modal-actions .btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------- 服务条款页 ---------------- */
.terms-page .card { padding: 34px 38px 30px; }
.terms-article { font-size: 13.5px; }
.terms-article h3 { margin-top: 24px; }
.terms-article p { color: #46536a; }
.terms-foot { margin-top: 22px; padding: 12px 14px; background: #f5f8ff; border-radius: 9px; color: #2f6bff; }
.terms-actions { display: flex; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }

@media (max-width: 640px) {
  .buy-modal-card { padding: 24px 18px 18px; border-radius: 13px; }
  .buy-modal-actions { flex-direction: column-reverse; }
  .buy-modal-actions .btn { width: 100%; }
  .terms-page .card { padding: 24px 18px; }
}

/* ============================================================
   v1.3.7 · 首页论坛广场 / 排行榜 / 交易认证
   ============================================================ */
.header-spacer { flex: 1; }

.forum-board {
  background: #fff; border-radius: var(--radius); padding: 22px 24px 24px;
  box-shadow: var(--shadow);
}
.forum-board .block-head { margin-bottom: 14px; }
.forum-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; }
.forum-trade { min-width: 0; }
.forum-subhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.forum-subhead h3 { font-size: 15px; display: flex; align-items: center; gap: 7px; }
.forum-subhead h3 .layui-icon { color: var(--primary); font-size: 17px; }
.forum-subhead > a { font-size: 12.5px; color: var(--muted); }
.forum-subhead > a:hover { color: var(--primary); }
.forum-trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.forum-trade-grid .pc-cover { height: 132px; }
.forum-trade-grid .pc-body h3 { font-size: 14.5px; height: 43px; }

.forum-demand {
  background: #f6f9ff; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 16px;
}
.demand-list { display: flex; flex-direction: column; gap: 7px; }
.demand-row {
  background: #fff; border-radius: 9px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px;
  border: 1px solid #eef2fa; transition: .2s;
}
.demand-row:hover { border-color: #cddcff; transform: translateY(-1px); }
.demand-row b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demand-row em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.demand-cate {
  align-self: flex-start; font-size: 10.5px; color: var(--primary); background: var(--primary-light);
  border-radius: 4px; padding: 1px 6px;
}
.forum-rank { border-top: 1px dashed #dce6f7; padding-top: 12px; }
.trader-mini { display: flex; flex-direction: column; gap: 2px; }
.trader-mini li { display: flex; align-items: center; gap: 7px; padding: 5px 0; font-size: 12.5px; }
.trader-mini .avatar { width: 24px; height: 24px; font-size: 11px; flex-shrink: 0; }
.trader-mini a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.trader-mini a:hover { color: var(--primary); }
.trader-mini em { font-style: normal; color: #b05500; font-weight: 700; font-size: 12px; }
.trader-no {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: #eef2f8; color: #7e8aa0; font-size: 10px; font-weight: 700;
}
.trader-no-1 { background: #ffe9b8; color: #9a6200; }
.trader-no-2 { background: #eef2f8; color: #5e6b80; }
.trader-no-3 { background: #ffe1d0; color: #a64914; }

/* 完整排行榜 */
.board-hero {
  margin-top: 22px; background: linear-gradient(120deg, #1b2b4f, #244a9c 62%, #2f6bff);
  border-radius: 18px; padding: 30px 34px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: 0 18px 40px rgba(23, 48, 104, .18); overflow: hidden; position: relative;
}
.board-hero::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 68%);
}
.board-kicker { font-size: 11px; letter-spacing: 2px; color: #a9c6ff; font-weight: 700; }
.board-hero h1 { color: #fff; font-size: 26px; margin: 6px 0 8px; }
.board-hero p { color: #cfddff; font-size: 13px; max-width: 680px; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; margin-top: 22px; align-items: start; }
.board-card { padding: 20px 22px; }
.board-list { display: flex; flex-direction: column; }
.board-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-bottom: 1px solid #f1f4fa;
  border-radius: 10px;
}
.board-row:last-child { border-bottom: 0; }
.board-row.board-top { background: #f8fbff; }
.board-rank {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: #eff3fa; color: #7c889d; font-size: 12px; font-weight: 800;
}
.board-rank-1 { background: linear-gradient(135deg, #ffdc7a, #f0a020); color: #6a3d00; }
.board-rank-2 { background: linear-gradient(135deg, #e7edf7, #b9c6d8); color: #46536a; }
.board-rank-3 { background: linear-gradient(135deg, #ffd7c2, #dd8e5b); color: #6a3412; }
.board-row .avatar { width: 36px; height: 36px; font-size: 15px; flex-shrink: 0; }
.board-user { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.board-user a { font-weight: 700; font-size: 14px; }
.board-user em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.board-amount { text-align: right; flex-shrink: 0; }
.board-amount strong { display: block; color: #b05500; font-size: 16px; }
.board-amount span { font-size: 11px; color: var(--muted); }
.board-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.board-rules { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.board-rules li { counter-increment: boardstep; display: flex; flex-direction: column; gap: 1px; padding-left: 26px; position: relative; }
.board-rules li::before {
  content: counter(boardstep); position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.board-rules { counter-reset: boardstep; }
.board-rules b { font-size: 13px; }
.board-rules span, .board-notes li { font-size: 12px; color: var(--muted); line-height: 1.55; }
.board-notes { display: flex; flex-direction: column; gap: 8px; }
.board-notes li { padding-left: 14px; position: relative; }
.board-notes li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #c7d4ea; }

/* 交易认证 */
.trust-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trust-step {
  background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; border: 1px solid transparent;
}
.trust-step.done { border-color: #cdebd9; background: #f6fdf9; }
.trust-step-no {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 800;
}
.trust-step.done .trust-step-no { background: #e3f8ec; color: #0f7a3d; }
.trust-step strong { display: block; font-size: 13.5px; }
.trust-step em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.trust-form { max-width: 460px; }
.trust-info { margin-top: 14px; max-width: 520px; }
.trust-note, .trust-ok {
  border-radius: 9px; padding: 12px 14px; font-size: 13px; line-height: 1.7; margin-bottom: 14px;
}
.trust-note { background: #f6f8fc; color: #5b6578; }
.trust-ok { background: #f0fbf5; color: #0f7a3d; }
.trust-ok .layui-icon { margin-right: 5px; }
.trust-deposit-box {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: #fffaf0; border: 1px solid #ffe4b8; border-radius: 12px; padding: 18px 20px;
}
.trust-deposit-box small { display: block; font-size: 11.5px; color: #9a6200; }
.trust-deposit-box strong { display: block; font-size: 30px; color: #b05500; line-height: 1.25; }
.trust-deposit-box span { font-size: 11.5px; color: #8a6a3a; }
.trust-deposit-box .btn[disabled] { opacity: .55; cursor: not-allowed; }
.trust-rules { margin-top: 20px; border-top: 1px solid #f0f3f9; padding-top: 14px; }
.trust-rules h3 { font-size: 13px; margin-bottom: 8px; }
.trust-rules ul { display: flex; flex-direction: column; gap: 6px; }
.trust-rules li { font-size: 12px; color: var(--muted); padding-left: 13px; position: relative; }
.trust-rules li::before { content: "·"; position: absolute; left: 2px; color: var(--primary); font-weight: 800; }

/* 聊天内联风险提示 */
.chat-risk-note {
  display: flex; align-items: flex-start; gap: 8px; margin: 0 16px 8px;
  background: #fff5f5; border: 1px solid #ffd9d6; color: #b42318; border-radius: 8px;
  padding: 9px 12px; font-size: 12px; line-height: 1.55;
}
.chat-risk-note[hidden] { display: none; }
.chat-risk-note .layui-icon { color: #e5484d; font-size: 15px; margin-top: 1px; }
.chat-system {
  display: flex; align-items: flex-start; gap: 7px; margin: 10px auto; max-width: 86%;
  background: #fff8e8; border: 1px dashed #f2cf8e; color: #96620a; border-radius: 9px;
  padding: 9px 12px; font-size: 12px; line-height: 1.6;
}
.chat-system .layui-icon { color: #d48806; font-size: 14px; margin-top: 2px; }

/* 用户中心紧凑菜单 */
.uc-profile { padding: 20px; }
.uc-home-link {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 12px; color: #b9c9e8; margin: -4px 0 12px;
}
.uc-home-link:hover { color: #fff; }
.uc-menu { padding: 10px; }
.uc-menu-group + .uc-menu-group { border-top: 1px solid #f1f4fa; margin-top: 6px; padding-top: 6px; }
.uc-menu-title {
  font-size: 10.5px; letter-spacing: .6px; color: #a3adbf; font-weight: 700;
  padding: 4px 8px 3px;
}
.uc-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.uc-menu a { padding: 8px 7px; font-size: 12.5px; gap: 6px; border-radius: 7px; }
.uc-menu a .layui-icon { font-size: 14px; }
.uc-menu-num { margin-left: auto; }

@media (max-width: 1260px) {
  .forum-grid, .board-grid { grid-template-columns: 1fr; }
  .board-side { position: static; }
}
@media (max-width: 760px) {
  .forum-board { padding: 18px; }
  .forum-trade-grid { grid-template-columns: 1fr; }
  .trust-steps { grid-template-columns: 1fr; }
  .trust-deposit-box, .board-hero { flex-direction: column; align-items: flex-start; }
  .uc-menu-grid { grid-template-columns: 1fr 1fr; }
}

/* 通用资料列表（用户主页 / 交易认证） */
.a-info-list { display: flex; flex-direction: column; background: #fff; border-radius: 10px; }
.a-info-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 2px; border-bottom: 1px solid #f1f4fa; font-size: 13px;
}
.a-info-list li:last-child { border-bottom: 0; }
.a-info-list li span { color: var(--muted); flex-shrink: 0; }
.a-info-list li em { font-style: normal; color: var(--text); font-weight: 600; text-align: right; }
