/* ==========================================================================
   全网知识付费网 - 前台样式
   主色：#1e6fe8 / #2997f7（蓝色系）
   首页骨架 8 块：蓝色通栏 / 渐变Banner / 六入口 / 提示条 / 六大图块 /
                  广告横幅 / 两栏主体(左3列卡片+右侧栏) / 底部

   ★ 几何参数全部按目标站 yyunc.com 实测值写死（2026-10-03 测得）：
     - 版面容器 1380 + 左右 15 内边距 = 内容区 1350
     - 左侧卡片区 ≈1032，右侧栏固定 311，两栏间隙 8
     - 卡片：宽 331 / 内边距 10 / 圆角 8 / 标题 14px 行高 1.4
     - 缩略图比例 70%（宽311→高217），PC 与手机一致
     - 手机端：内容区左右 10，卡片 2 列，列间距 10
     - 顶栏高度 PC 68 / 手机 52
   断点：1240 / 992 / 768 / 480
   ========================================================================== */

:root {
  --theme-color: #1e6fe8;
  --theme-color2: #2997f7;
  --theme-soft: rgba(30, 111, 232, .1);
  --bg: #f5f6f7;
  --card: #fff;
  --text: #4e5358;
  --text-2: #7b8085;
  --text-3: #9aa0a6;
  --line: #edeff2;
  --radius: 8px;
  --page-w: 1350px;
  --side-w: 311px;
  --thumb-ratio: 70%;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-hover: 0 12px 28px rgba(16, 24, 40, .13);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font: 14px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* 兜底：任何意外超出视口的子元素都不产生横向滚动条（clip 不创建滚动容器，不影响 sticky 顶栏） */
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 10px; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1380px; margin: 0 auto; padding: 0 15px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }

.muted-color { color: var(--text-2); }
.muted-2-color { color: var(--text-3); }
.mt10 { margin-top: 10px; }
.mb6 { margin-bottom: 6px; }
.ml3 { margin-left: 3px; }
.ml6 { margin-left: 6px; }
.ml10 { margin-left: 10px; }
.text-center { text-align: center; }
.empty { padding: 48px; text-align: center; color: var(--text-3); }
.flex { display: flex; }
.ac { align-items: center; }
.jsb { justify-content: space-between; }
.scroll-x { overflow-x: auto; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -.15em; }

/* 自定义标签必须显式块级化，否则网格会塌成竖排 */
posts { display: block; }
item { display: inline-flex; align-items: center; }

/* ---------------- 通用按钮 / 标签胶囊 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; color: var(--text-2); font-size: 13px; transition: .2s; white-space: nowrap;
}
.btn:hover { border-color: var(--theme-color); color: var(--theme-color); }
.btn-primary { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }
.btn-primary:hover { opacity: .92; color: #fff; box-shadow: 0 6px 16px rgba(30, 111, 232, .3); }
.btn-vip { background: linear-gradient(90deg, #f7c96b, #e8a33d); border-color: #e8a33d; color: #6b4310; }
.btn-block { display: flex; width: 100%; }
.btn-lg { height: 46px; padding: 0 34px; font-size: 15px; border-radius: 23px; }

.but {
  display: inline-block; padding: 2px 9px; margin: 0 4px 4px 0;
  border-radius: 5px; font-size: 12px; line-height: 19px; white-space: nowrap; font-weight: 500;
}
.c-blue { background: rgba(41, 151, 247, .12); color: var(--theme-color2); }
.c-green { background: rgba(40, 199, 111, .14); color: #21b96a; }
.jb-yellow { background: linear-gradient(90deg, #ffb457, #ff7d3b); color: #fff; }
.jb-vip { background: linear-gradient(90deg, #f7c96b, #e8a33d); color: #6b4310; }
.meta-pay { font-weight: 500; }

/* ============ 1. 顶部蓝色通栏 ============ */
.site-header {
  background: linear-gradient(90deg, #1e6fe8, #2997f7);
  box-shadow: 0 2px 10px rgba(30, 111, 232, .25);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.site-logo { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; color: #fff; }
.site-logo img { height: 32px; width: auto; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .22);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.logo-text { font-size: 19px; font-weight: 700; letter-spacing: .5px; }

.main-nav { flex: 1 1 auto; min-width: 0; }
.nav-menu { display: flex; gap: 2px; overflow-x: auto; }
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu > li { position: relative; flex: 0 0 auto; }
.nav-menu > li > a {
  display: block; padding: 7px 12px; border-radius: 6px; font-size: 14px;
  color: rgba(255, 255, 255, .88); transition: .18s;
}
.nav-menu > li > a:hover, .nav-menu > li.current-menu-item > a {
  background: rgba(255, 255, 255, .18); color: #fff; font-weight: 500;
}
.nav-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 140px; padding: 6px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-hover); z-index: 20;
}
.nav-menu li:hover .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 7px 11px; font-size: 13px; border-radius: 6px; color: var(--text-2); }
.nav-menu .sub-menu a:hover { background: var(--bg); color: var(--theme-color); }

.header-right { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.hd-icon {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 16px;
}
.hd-icon:hover { background: rgba(255, 255, 255, .28); }
.hd-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 14px;
  border-radius: 16px; font-size: 13px; background: rgba(255, 255, 255, .16); color: #fff;
  border: 1px solid rgba(255, 255, 255, .3); transition: .18s;
}
.hd-btn:hover { background: rgba(255, 255, 255, .3); }
.hd-primary { background: #fff; color: var(--theme-color); border-color: #fff; font-weight: 600; }
.hd-primary:hover { opacity: .9; }
.hd-outline { background: transparent; }
.hd-coin { background: rgba(255, 255, 255, .16); }
.hd-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,.5); }
.hd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mobile-menu-btn { display: none; border: 0; background: none; color: #fff; font-size: 20px; }

/* ============ 2. 蓝色渐变大 Banner（叠目标站真实 banner 图） ============ */
.site-main { display: block; padding: 0 0 32px; }
.hero-banner {
  background-color: #1a5fd0;
  /* 蒙层做薄（.45→.62），让 banner 真图透出来；上层再压一点暗色保证白字可读 */
  background-image:
    linear-gradient(135deg, rgba(26, 95, 208, .45) 0%, rgba(30, 111, 232, .34) 45%, rgba(41, 151, 247, .28) 100%),
    var(--hero-img, none);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
  padding: 52px 0 44px; margin-bottom: 22px; position: relative; overflow: hidden;
}
.hero-banner::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: rgba(10, 40, 90, .18);
}
.hero-banner::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-title { font-size: 38px; font-weight: 800; color: #fff; letter-spacing: 2px; margin-bottom: 10px; }
.hero-sub { color: rgba(255, 255, 255, .85); font-size: 15px; margin-bottom: 26px; }
.hero-search {
  display: flex; max-width: 620px; margin: 0 auto; background: #fff;
  border-radius: 30px; padding: 5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}
.hero-search input {
  flex: 1 1 auto; height: 44px; padding: 0 20px; border: 0; outline: none;
  font-size: 15px; background: none; border-radius: 25px;
}
.hero-search button {
  flex: 0 0 auto; height: 44px; padding: 0 28px; border: 0; border-radius: 25px;
  background: var(--theme-color); color: #fff; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-search button:hover { background: #185fc4; }
.hero-words { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.hw-label { color: rgba(255, 255, 255, .8); font-size: 13px; }
.hero-words a {
  padding: 3px 13px; border-radius: 14px; font-size: 13px;
  background: rgba(255, 255, 255, .18); color: #fff; transition: .18s;
}
.hero-words a:hover { background: #fff; color: var(--theme-color); }

/* ============ 3. 六个彩色入口方框 ============ */
/* 同上：用 minmax(0,1fr) 防止中文标题撑破列宽（手机端第三列被切） */
.quick-entry { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.qe-item {
  background: #fff; border-radius: 12px; padding: 16px 8px; text-align: center;
  box-shadow: var(--shadow); transition: .2s; min-width: 0; overflow: hidden;
}
.qe-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.qe-icon {
  width: 46px; height: 46px; margin: 0 auto 9px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
}
.qe-item.e1 .qe-icon { background: linear-gradient(135deg, #f7c96b, #e8a33d); }
.qe-item.e2 .qe-icon { background: linear-gradient(135deg, #43e97b, #2bc07a); }
.qe-item.e3 .qe-icon { background: linear-gradient(135deg, #ff9a8b, #ff6a88); }
.qe-item.e4 .qe-icon { background: linear-gradient(135deg, #a18cd1, #7b6ff0); }
.qe-item.e5 .qe-icon { background: linear-gradient(135deg, #4facfe, #1e6fe8); }
.qe-item.e6 .qe-icon { background: linear-gradient(135deg, #30cfd0, #2997f7); }
.qe-title {
  display: block; font-size: 14px; font-weight: 600; color: var(--text);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qe-sub {
  display: block; font-size: 12px; color: var(--text-3); margin-top: 2px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============ 4. 通栏提示条 ============ */
.notice-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; margin-bottom: 18px;
  background: linear-gradient(90deg, #fff6e8, #fff); border: 1px solid #ffe4c4;
  border-radius: 10px; box-shadow: var(--shadow);
}
.nb-icon { font-size: 17px; }
.nb-text { font-size: 14px; color: #8a5a20; flex: 1 1 auto; }
.nb-btn {
  flex: 0 0 auto; padding: 5px 16px; border-radius: 15px; font-size: 13px;
  background: linear-gradient(90deg, #ffb457, #ff7d3b); color: #fff; font-weight: 600;
}

/* ============ 5. 六个分类大图块（目标站真实入口图 217x108） ============ */
/* 关键：grid 列写 minmax(0,1fr)。写 1fr 等价 minmax(auto,1fr)，
   中文标题没有空格断行，min-content = 整句宽度，会把列撑破容器，
   导致手机端第三列被切掉。minmax(0,1fr) 允许列收缩到 0，彻底避免溢出。 */
.big-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.bc-item {
  position: relative; height: 132px; border-radius: 12px; overflow: hidden;
  display: block; color: #fff; transition: .2s; box-shadow: var(--shadow);
  min-width: 0; background: #2f6fd0;
}
.bc-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.bc-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; transition: transform .3s;
}
.bc-item:hover .bc-img { transform: scale(1.04); }
/* 角标：只在图上叠一个小计数条，不再重复图里已有的大标题 */
.bc-tag {
  position: absolute; right: 6px; bottom: 6px; z-index: 1;
  padding: 2px 9px; border-radius: 11px; font-size: 11px;
  background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(2px);
}

/* ============ 6. 通栏广告横幅（目标站真实广告图 1024x160） ============ */
.ad-banner {
  margin-bottom: 22px; border-radius: 14px; overflow: hidden;
  background: #f2f6fd; box-shadow: var(--shadow);
}
.ad-banner .ad-link { display: block; }
.ad-banner img {
  display: block; width: 100%; height: auto; max-height: 160px; object-fit: cover;
}
.ad-title { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.ad-sub { font-size: 15px; opacity: .92; margin-top: 6px; }
.ad-url { font-size: 13px; opacity: .8; margin-top: 8px; }

/* ============ 7. 两栏主体 ============ */
.cols { display: flex; gap: 8px; align-items: flex-start; }
/* max-width + overflow 必须加：移动端纵向 flex 时交叉轴 min-width:auto 会被撑破 */
.main-col { flex: 1 1 auto; min-width: 0; max-width: 100%; overflow: hidden; }
.site-sidebar { flex: 0 0 var(--side-w); width: var(--side-w); position: sticky; top: 84px; }

.home-main { padding-bottom: 10px; }
.block-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.block-title { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.block-title .icon { color: var(--theme-color); font-size: 18px; }
.block-count { font-size: 13px; }
.sub-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-chip {
  padding: 5px 14px; border-radius: 15px; background: var(--bg); color: var(--text-2);
  font-size: 13px; transition: .18s;
}
.cat-chip:hover { background: var(--theme-color); color: #fff; }

/* 文章卡片：3 列，缩略图 70%（目标站实测 331 宽 / 217 高） */
.posts-list.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.posts-list.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.posts-item { padding: 10px; overflow: hidden; transition: .25s; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.posts-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.item-thumbnail { position: relative; padding-top: var(--thumb-ratio); background: #eef0f3; overflow: hidden; }
.item-thumbnail a { position: absolute; inset: 0; }
.item-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.posts-item:hover .item-thumbnail img { transform: scale(1.05); }
.fit-cover { object-fit: cover; border-radius: var(--radius); }
.radius8 { border-radius: 8px; }
.lazyload { opacity: .96; }

.item-body { padding: 10px 0 0; }
.item-heading { font-size: 14px; line-height: 1.4; height: 39px; overflow: hidden; font-weight: 500; }
.item-heading a {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: .18s;
}
.item-heading a:hover { color: var(--theme-color); }
.item-tags { min-height: 25px; white-space: nowrap; overflow: hidden; }
.item-meta { font-size: 12px; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.meta-time { color: var(--text-3); }
.meta-right { display: flex; gap: 11px; }
.meta-view, .meta-like { display: inline-flex; align-items: center; gap: 3px; }

/* ============ 右侧栏四块 ============ */
.widget { margin-bottom: 14px; }
.widget-title {
  padding: 12px 15px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 7px;
}
.widget-body { padding: 12px 15px; }

/* a. 会员卡 */
.side-vip { background: linear-gradient(160deg, #1e6fe8, #4facfe); color: #fff; padding: 16px; }
.side-vip .vip-top { display: flex; align-items: center; gap: 10px; }
.vip-logo { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; font-size: 20px; }
.vip-txt b { display: block; font-size: 15px; }
.vip-txt span { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.vip-login { margin: 14px 0 12px; font-size: 14px; font-weight: 600; }
.vip-btns { display: flex; gap: 8px; }
.vip-btns .btn { height: 34px; border-radius: 17px; }
.vip-btns .btn-primary { background: #fff; color: var(--theme-color); border-color: #fff; }
.vip-btns .btn-block:not(.btn-primary) { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }
.vip-social { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; opacity: .9; }
.soc { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 15px; }
.soc.qq:hover { background: #12b7f5; }
.soc.wx:hover { background: #2dc100; }

/* b. 搭建卡 */
.build-desc { font-size: 13px; color: var(--text-2); line-height: 1.8; }
.build-qr { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.qr-ph {
  width: 84px; height: 84px; flex: 0 0 84px; border-radius: 8px; border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-3);
  background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 6px, #f2f4f7 6px, #f2f4f7 12px);
}
.build-name { font-size: 14px; font-weight: 600; }
.build-url { font-size: 12px; color: var(--theme-color); margin-top: 3px; }

/* c. 热门 TOP 榜 */
.side-hot .hot-ic { color: #ff7d3b; }
.hot-item { display: flex; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hot-item:last-child { border-bottom: 0; }
.hot-rank {
  flex: 0 0 auto; width: 40px; text-align: center; font-size: 11px; font-weight: 700;
  padding: 2px 0; border-radius: 4px; color: #fff; background: var(--text-3);
}
.hot-rank.r1 { background: #ff4b4b; }
.hot-rank.r2 { background: #ff7d3b; }
.hot-rank.r3 { background: #f7c96b; }
.hot-rank.r4, .hot-rank.r5 { background: #9ca3af; }
.hot-cover { flex: 0 0 46px; height: 46px; border-radius: 6px; overflow: hidden; }
.hot-cover img { width: 100%; height: 100%; object-fit: cover; }
.hot-main { flex: 1 1 auto; min-width: 0; }
.hot-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; line-height: 1.5;
}
.hot-item:hover .hot-title { color: var(--theme-color); }
.hot-meta { display: block; font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* d. 浮动客服 */
.side-service {
  position: fixed; right: 18px; bottom: 90px; width: 52px; height: 52px; border: 0;
  border-radius: 50%; background: linear-gradient(135deg, #1e6fe8, #2997f7); color: #fff;
  font-size: 22px; box-shadow: 0 8px 20px rgba(30, 111, 232, .4); z-index: 90;
  display: flex; align-items: center; justify-content: center;
}
.side-service:hover { transform: scale(1.06); }

/* ============ 文章详情 ============ */
.article-wrap { padding: 28px; margin-bottom: 16px; }
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--theme-color); }
.article-title { font-size: 26px; line-height: 1.42; margin-bottom: 16px; }
.article-meta { font-size: 13px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article-content { font-size: 15px; line-height: 1.95; color: #3d3d3d; word-break: break-word; }
.article-content img { margin: 14px auto; border-radius: 8px; }
.article-content h2, .article-content h3 { margin: 24px 0 13px; font-size: 18px; }
.article-content p { margin-bottom: 15px; }
.article-actions { gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar-mini { display: inline-block; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: #eee; vertical-align: middle; }
.avatar-mini .avatar { width: 100%; height: 100%; object-fit: cover; }

.pay-mask { position: relative; }
.pay-preview { max-height: 150px; overflow: hidden; position: relative; color: var(--text-2); }
.pay-preview::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, #fff); }
.pay-lock { padding: 34px 22px; background: linear-gradient(180deg, #f4f8ff, #fff); border: 1px dashed #b9d3fb; border-radius: var(--radius); }
.pay-lock-icon { width: 46px; height: 46px; color: #f7c96b; }
.pay-tip { font-size: 15px; margin: 10px 0 16px; }

/* 外壳条目：摘要 + 查看原文 */
.shell-entry { padding: 26px 22px; background: linear-gradient(160deg, #f6f9ff, #fff); border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.shell-excerpt { font-size: 15px; line-height: 1.9; color: var(--text-2); margin-bottom: 20px; text-align: left; }

/* SKU 档位 */
.sku-box { margin: 18px 0; padding: 18px; background: linear-gradient(160deg, #f6f9ff, #fff); border: 1px solid #d8e6fb; border-radius: 12px; }
.sku-box-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.sku-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 11px; }
.sku-item { position: relative; padding: 14px 15px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; transition: .18s; }
.sku-item.active { border-color: var(--theme-color); background: var(--theme-soft); }
.sku-name { font-size: 14px; font-weight: 600; }
.sku-note { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.sku-price { font-size: 21px; font-weight: 700; color: var(--theme-color); margin-top: 8px; }
.sku-tag { position: absolute; right: -1px; top: -10px; padding: 1px 9px; border-radius: 10px; background: var(--theme-color); color: #fff; font-size: 11px; }

/* ============ 分页 ============ */
.pager { display: flex; gap: 7px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.page-num { padding: 7px 15px; border-radius: 7px; background: #fff; color: var(--text-2); box-shadow: var(--shadow); font-size: 13px; transition: .18s; }
.page-num:hover { background: var(--theme-color); color: #fff; }
.page-num.active { background: var(--theme-color); color: #fff; box-shadow: 0 6px 16px rgba(30, 111, 232, .28); }

/* ============ 用户中心 ============ */
.user-app { padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.user-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.user-tabs a { padding: 10px 17px; font-size: 14px; color: var(--text-2); border-bottom: 2px solid transparent; transition: .18s; }
.user-tabs a.active { color: var(--theme-color); border-bottom-color: var(--theme-color); font-weight: 500; }
.form-item { margin-bottom: 15px; }
.form-item label { display: block; margin-bottom: 7px; font-size: 13px; color: var(--text-2); }
.form-item input, .form-item textarea, .form-item select {
  width: 100%; height: 40px; padding: 0 13px; border: 1px solid var(--line);
  border-radius: 7px; font-size: 14px; outline: none; font-family: inherit; transition: .18s;
}
.form-item textarea { height: auto; padding: 11px 13px; }
.form-item input:focus, .form-item textarea:focus { border-color: var(--theme-color); box-shadow: 0 0 0 3px var(--theme-soft); }
.auth-box { max-width: 390px; margin: 0 auto; }
.order-item, .fav-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.coin-box { display: flex; align-items: center; gap: 20px; font-size: 16px; }
.coin-box b { color: var(--theme-color); font-size: 27px; }
.recharge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.recharge-item { padding: 17px; border: 2px solid var(--line); border-radius: var(--radius); text-align: center; cursor: pointer; transition: .18s; }
.recharge-item:hover { border-color: var(--theme-color); background: var(--theme-soft); }
.recharge-item .price { font-size: 23px; font-weight: 700; color: var(--theme-color); }
.recharge-item .give { font-size: 12px; color: var(--text-3); margin-top: 3px; }

/* ============ 底部 ============ */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 30px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; font-size: 13px; color: var(--text-2); }
.footer-links a:hover { color: var(--theme-color); }
.footer-copy { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 12px; }
.view-switch { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 8px; }

.toast {
  position: fixed; left: 50%; top: 90px; transform: translateX(-50%) translateY(-20px);
  padding: 11px 22px; border-radius: 22px; background: rgba(20, 20, 24, .88); color: #fff;
  font-size: 14px; z-index: 9999; opacity: 0; transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 1240px) {
  .quick-entry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .big-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
  .site-sidebar { flex-basis: 280px; width: 280px; }
  .hero-title { font-size: 30px; }
}
@media (max-width: 768px) {
  /* 手机端：内边距 10、两列卡片、列间距 10（与目标站实测一致） */
  .container { padding: 0 10px; }
  .header-inner { height: 52px; gap: 10px; }
  .mobile-menu-btn { display: block; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: 52px; bottom: 0; background: #1e6fe8; padding: 14px;
    transform: translateX(-100%); transition: transform .25s, visibility .25s; z-index: 99; overflow-y: auto;
    visibility: hidden;
  }
  body.nav-open .main-nav { transform: none; visibility: visible; }
  .nav-menu { flex-direction: column; }
  .nav-menu > li > a { padding: 12px 13px; }
  .nav-menu .sub-menu { display: block !important; position: static; box-shadow: none; padding: 0 0 0 16px; background: none; }
  .nav-menu .sub-menu a { color: rgba(255,255,255,.85); }
  .hd-btn, .hd-icon, .hd-avatar { display: none; }
  .hd-primary { display: inline-flex; }

  .hero-banner { padding: 30px 0 26px; margin-bottom: 16px; }
  .hero-title { font-size: 23px; }
  .hero-sub { font-size: 13px; margin-bottom: 18px; }
  .hero-search { max-width: 100%; }
  .hero-search input { height: 40px; font-size: 14px; padding: 0 14px; }
  .hero-search button { height: 40px; padding: 0 18px; font-size: 14px; }

  .quick-entry { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .qe-icon { width: 40px; height: 40px; font-size: 19px; }
  .qe-title { font-size: 13px; }
  .qe-sub { font-size: 11px; }

  .big-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bc-item { height: 104px; }

  .ad-banner { border-radius: 10px; }
  .ad-banner img { max-height: 108px; }

  /* 两栏塌成单栏，侧栏落到页面底部 */
  .cols { flex-direction: column; gap: 10px; }
  .site-sidebar { flex-basis: auto; width: 100%; position: static; }
  .main-col { width: 100%; }
  /* 手机端仍是两列，列间距 10 */
  .posts-list.grid-3, .posts-list.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .posts-item { padding: 8px; }
  /* 手机端保持 70% 横图（目标站 160x112） */
  .item-thumbnail { padding-top: var(--thumb-ratio); }
  .item-heading { height: 39px; }

  .article-wrap { padding: 18px; }
  .article-title { font-size: 20px; }
  .side-service { width: 46px; height: 46px; right: 12px; bottom: 20px; font-size: 19px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 20px; }
  .sku-grid { grid-template-columns: 1fr; }
}

/* 强制手机版（PC 上点「手机版」时套用同一套手机参数） */
body.mobile-view .container { max-width: 680px; padding: 0 10px; }
body.mobile-view .header-inner { height: 52px; }
body.mobile-view .cols { flex-direction: column; gap: 10px; }
body.mobile-view .site-sidebar { flex-basis: auto; width: 100%; position: static; }
body.mobile-view .main-col { width: 100%; }
body.mobile-view .posts-list.grid-3, body.mobile-view .posts-list.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.mobile-view .posts-item { padding: 8px; }
body.mobile-view .item-thumbnail { padding-top: var(--thumb-ratio); }
body.mobile-view .main-nav { display: none; }
body.mobile-view .mobile-menu-btn { display: block; }
/* 桌面浏览器里强制手机版时（?mobile=1 / 手机版 cookie），同样要把 6 列网格塌成手机列数，
   否则 680px 容器里挤 6 个方框会“露半截” */
body.mobile-view .quick-entry { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.mobile-view .big-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.mobile-view .qe-item { padding: 14px 6px; }
body.mobile-view .bc-item { height: 104px; }
