/* 玩机源码风格模板 · 主样式
   改配色只需改下面 :root 里的变量 */
:root {
	--brand: #2B6CF6;
	--brand-dark: #1E52C8;
	--brand-grad: linear-gradient(135deg, #3B7CFF 0%, #6A5AF0 100%);
	--orange: #FF7A1A;
	--orange-soft: #FFF3E8;
	--green: #16A34A;
	--green-soft: #E8F7EE;
	--blue-soft: #EAF1FE;
	--ink: #1F2733;
	--ink-2: #3D4757;
	--muted: #8A94A6;
	--line: #E8ECF2;
	--bg: #F5F7FA;
	--footer: #151B26;
	--radius: 12px;
	--shadow: 0 2px 10px rgba(31, 39, 51, .06);
	--shadow-hover: 0 8px 24px rgba(43, 108, 246, .16);
	--wrap: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font: 14px/1.6 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand); }
ul, ol, dl, dd, dt, h1, h2, h3, h4, h5, p, form { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; border: 0; display: block; }
input, textarea, button, select { font-family: inherit; font-size: 14px; outline: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.hide { display: none !important; }
.clear:after { content: ""; display: block; clear: both; }

/* ---------- 顶部欢迎条 ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar a { color: var(--muted); margin-left: 18px; }
.topbar a:hover { color: var(--brand); }
.topbar .tb-hi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .tb-vip { color: var(--orange) !important; font-weight: 600; }

/* ---------- 头部：logo + 搜索 ---------- */
.header { background: #fff; }
.header .wrap { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo .lg-ico {
	width: 42px; height: 42px; border-radius: 11px; background: var(--brand-grad);
	display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
}
.logo .lg-txt { font-size: 22px; font-weight: 700; color: var(--brand); letter-spacing: .5px; }
.logo img { height: 42px; width: auto; }

.searchbox { flex: 1; display: flex; max-width: 620px; border: 2px solid var(--brand); border-radius: 8px; overflow: hidden; height: 44px; }
.searchbox input { flex: 1; border: 0; padding: 0 14px; font-size: 14px; }
.searchbox button { width: 88px; border: 0; background: var(--brand); color: #fff; font-size: 15px; cursor: pointer; }
.searchbox button:hover { background: var(--brand-dark); }

.hd-acts { display: flex; gap: 12px; flex-shrink: 0; margin-left: auto; }
.btn-vip, .btn-up {
	height: 40px; line-height: 38px; padding: 0 18px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.btn-vip { background: var(--orange-soft); color: var(--orange); border: 1px solid #FFD9B8; }
.btn-up { background: var(--blue-soft); color: var(--brand); border: 1px solid #CFE0FD; }

/* ---------- 主导航 ---------- */
.nav { background: #fff; border-top: 1px solid var(--line); box-shadow: 0 2px 8px rgba(31, 39, 51, .04); position: relative; z-index: 30; }
.nav .wrap { display: flex; align-items: center; }
.nav > .wrap > a, .nav .nv-item > a {
	display: block; padding: 15px 20px; font-size: 16px; color: var(--ink-2); position: relative;
}
.nav a:hover { color: var(--brand); }
.nav .active { color: var(--brand); font-weight: 700; }
.nav .active:after {
	content: ""; position: absolute; left: 20px; right: 20px; bottom: 8px; height: 3px;
	background: var(--brand); border-radius: 2px;
}
.nav .nv-vip a { color: var(--orange); font-weight: 700; }
.nav-toggle { display: none; }
.nav-extra { display: none; }

/* ---------- 通用区块 ---------- */
.sec { padding: 26px 0; }
.sec-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.sec-hd .st { font-size: 20px; font-weight: 700; }
.sec-hd .more { font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 8px; align-items: center; }
.tab {
	padding: 5px 14px; border-radius: 20px; font-size: 13px; color: var(--ink-2); background: #F0F3F8; cursor: pointer;
	border: 0; white-space: nowrap;
}
.tab:hover { color: var(--brand); }
.tab.on { background: var(--brand); color: #fff; }
.card-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

/* 广告位：用后台「全局配置-定制标签」填 HTML 覆盖，见 使用说明.txt 第四步 */
.ad { background: linear-gradient(90deg, #EAF0FB, #DFE8F8); border-radius: var(--radius); color: #9AA6BC; display: flex; align-items: center; justify-content: center; font-size: 13px; overflow: hidden; }
.ad img { width: 100%; height: 100%; object-fit: cover; }
.ad-b { height: 90px; margin: 6px 0 22px; }
.ad-r300 { height: 300px; margin-top: 18px; }
.ad-r260 { height: 260px; margin-top: 18px; }

/* ---------- 首页 hero ---------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; padding-top: 16px; }
.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; background: var(--brand-grad); }
.hero-main .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.hero-main .slide.on { opacity: 1; z-index: 2; }
.hero-main .slide > a, .hero-main .slide > img { display: block; width: 100%; height: 340px; object-fit: cover; }
.hero-main .smask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 26, 40, .55), rgba(20, 26, 40, .05)); }
.hero-main .stxt { position: absolute; left: 34px; right: 34px; bottom: 54px; color: #fff; z-index: 3; }
.hero-main .stxt h3 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.hero-main .stxt p { font-size: 14px; opacity: .85; margin-bottom: 16px; }
.hero-main .sbtn { display: inline-block; background: var(--orange); color: #fff; padding: 9px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.hero-dots { position: absolute; left: 34px; bottom: 20px; display: flex; gap: 7px; z-index: 4; }
.hero-dots i { width: 18px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .45); cursor: pointer; }
.hero-dots i.on { background: #fff; width: 26px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.hero-card { border-radius: var(--radius); padding: 22px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 162px; position: relative; overflow: hidden; }
.hero-card.g1 { background: linear-gradient(135deg, #FF8A4C, #F5455C); }
.hero-card.g2 { background: linear-gradient(135deg, #12B76A, #0E8FB8); }
.hero-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.hero-card p { font-size: 12.5px; opacity: .88; }

/* ---------- 热门分类 ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; font-size: 15px; }
.cat:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); color: var(--brand); }
.cat i { font-size: 20px; color: var(--brand); }
.cat img { width: 26px; height: 26px; object-fit: contain; }
.cat .catnum { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
.cat:hover .catnum { background: var(--blue-soft); color: var(--brand); }

/* ---------- 资源卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rc { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.rc:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.rc-cover { position: relative; aspect-ratio: 3 / 2; background: var(--brand-grad); overflow: hidden; }
.rc-cover img { width: 100%; height: 100%; object-fit: cover; }
.rc-badge { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; padding: 2px 8px; border-radius: 5px; font-weight: 600; }
.rc-body { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.rc-title { font-size: 15px; font-weight: 600; line-height: 1.45; height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rc-tags { display: flex; gap: 6px; margin: 9px 0 11px; flex-wrap: wrap; }
.tagx { font-size: 12px; padding: 2px 8px; border-radius: 5px; background: #F0F3F8; color: var(--ink-2); }
.tagx.free { background: var(--green-soft); color: var(--green); }
.tagx.vip { background: var(--orange-soft); color: var(--orange); }
.rc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.rc-meta { font-size: 12px; color: var(--muted); }
.btn-dl { background: var(--orange); color: #fff; border: 0; border-radius: 7px; padding: 6px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn-dl:hover { background: #E86A0C; color: #fff; }
.btn-dl.lg { padding: 12px 30px; font-size: 16px; border-radius: 9px; }
.btn-dl.ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn-dl.ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-dl.off { background: #C7CEDB; color: #fff; cursor: default; }
.btn-dl.off:hover { background: #C7CEDB; color: #fff; }

/* 封面渐变占位（无图时按分类着色） */
.gd-a { background: linear-gradient(135deg, #3B7CFF, #6A5AF0); }
.gd-b { background: linear-gradient(135deg, #FF8A4C, #F5455C); }
.gd-c { background: linear-gradient(135deg, #12B76A, #0E9F8F); }
.gd-d { background: linear-gradient(135deg, #FFB03A, #F5455C); }
.gd-e { background: linear-gradient(135deg, #A855F7, #7C3AED); }
.gd-f { background: linear-gradient(135deg, #0EA5E9, #2B6CF6); }

/* ---------- 首页双栏 ---------- */
.cols { display: grid; grid-template-columns: 1fr 384px; gap: 20px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.panel-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.panel-hd .ph { font-size: 17px; font-weight: 700; }
.panel-hd .pm { font-size: 12px; color: var(--muted); }

.nrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.nrow:last-child { border-bottom: 0; }
.nrow .nt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.nrow .nd { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.nrow .nb { flex-shrink: 0; }

.rank li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.rank .no { width: 20px; text-align: center; font-weight: 700; color: var(--muted); font-style: normal; flex-shrink: 0; }
.rank li:nth-child(1) .no { color: #F5455C; }
.rank li:nth-child(2) .no { color: var(--orange); }
.rank li:nth-child(3) .no { color: #E0A800; }
.rank .rt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .rv { color: var(--muted); font-size: 12px; flex-shrink: 0; }

.allbtn { display: block; text-align: center; background: #F7F9FC; border-radius: 9px; padding: 11px; color: var(--ink-2); margin-top: 12px; }
.allbtn:hover { background: var(--blue-soft); color: var(--brand); }

/* ---------- 友情链接 ---------- */
.links { background: #fff; padding: 22px 0; border-top: 1px solid var(--line); }
.links .lk-hd { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.links .lk-body { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--muted); }
.links .lk-body a { color: var(--muted); }
.links .lk-body a:hover { color: var(--brand); }

/* ---------- 页脚 ---------- */
.foot { background: var(--footer); color: #97A1B0; padding: 40px 0 0; font-size: 13px; }
/* 页脚列数随内容变化：没填公众号图时那一列整块不输出，用 flex 自适应不留空位 */
.foot-grid { display: flex; flex-wrap: wrap; gap: 26px; padding-bottom: 30px; }
.foot-grid > div { flex: 1 1 150px; min-width: 0; }
.foot-grid > div:first-child { flex: 1.6 1 240px; }
.foot h5 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 600; }
.foot .f-logo { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.foot p { line-height: 1.9; }
.foot li { line-height: 2.1; }
.foot a { color: #97A1B0; }
.foot a:hover { color: #fff; }
.foot .qr { width: 96px; height: 96px; background: #fff; border-radius: 8px; padding: 5px; margin-bottom: 8px; }
.foot .qr img { width: 100%; height: 100%; }
.foot-bar { border-top: 1px solid #262F3D; padding: 16px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.foot-bar .fr { margin-left: auto; display: flex; gap: 20px; }
.foot-bar .warn { color: var(--orange); }

/* ---------- 面包屑 ---------- */
.crumb { background: #fff; border-bottom: 1px solid var(--line); }
.crumb .wrap { padding-top: 13px; padding-bottom: 13px; color: var(--muted); font-size: 13px; }
.crumb a { color: var(--muted); }
.crumb .cur { color: var(--brand); }

/* ---------- 列表页筛选 ---------- */
.fbox { background: #fff; padding: 16px 0; border-bottom: 1px solid var(--line); }
.frow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; }
.frow .fl { color: var(--muted); width: 46px; flex-shrink: 0; }
.frow .fp { padding: 6px 16px; border-radius: 18px; background: #F0F3F8; font-size: 13.5px; }
.frow .fp:hover { color: var(--brand); }
.frow .fp.on { background: var(--brand); color: #fff; }
.fmeta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; padding: 14px 0 0; }
.fmeta b { color: var(--ink); }

.page-hd { background: #fff; padding: 22px 0 16px; }
.page-hd h1 { font-size: 26px; font-weight: 700; }
.page-hd .cnt { color: var(--muted); font-size: 13px; float: right; margin-top: 12px; }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 26px 0; }
.pager a, .pager span { min-width: 38px; height: 38px; line-height: 36px; text-align: center; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 0 12px; color: var(--ink-2); font-size: 14px; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff !important; }
.pager .gap { border: 0; background: none; }

/* ---------- 详情页通用 ---------- */
.dwrap { display: grid; grid-template-columns: 1fr 376px; gap: 20px; align-items: start; padding: 20px 0; }
.dmain { min-width: 0; }
.dcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.art-hd h1 { font-size: 28px; line-height: 1.4; font-weight: 700; }
.art-meta { color: var(--muted); font-size: 13px; margin: 12px 0 18px; display: flex; gap: 18px; flex-wrap: wrap; }
.art-lead { background: #F7F9FC; border-radius: 9px; padding: 14px 16px; color: var(--ink-2); margin-bottom: 20px; line-height: 1.85; }
.art-body { font-size: 16px; line-height: 1.95; color: #2A3442; overflow-wrap: break-word; }
.art-body p { margin: 0 0 16px; }
.art-body img { margin: 8px auto; border-radius: 8px; height: auto !important; }
.art-body h2, .art-body h3, .art-body h4 { font-size: 19px; margin: 26px 0 12px; font-weight: 700; color: var(--ink); }
.art-body ul, .art-body ol { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.art-body ol { list-style: decimal; }
.art-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; table-layout: fixed; }
.art-body table td, .art-body table th { border: 1px solid var(--line); padding: 9px 12px; }
.art-body blockquote { border-left: 3px solid var(--brand); background: #F7F9FC; padding: 12px 16px; margin: 0 0 18px; color: var(--ink-2); }
.art-body pre { background: #1E2531; color: #E6EDF7; padding: 14px 16px; border-radius: 8px; overflow: auto; font-size: 13px; }
.art-body video, .art-body iframe { max-width: 100%; }

.tipbox { background: #F7F9FC; border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; padding: 12px 16px; color: var(--ink-2); margin: 0 0 18px; }

.tgright { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.tgright .tg-l { color: var(--muted); font-size: 13px; }
.tgright a { background: #F0F3F8; border-radius: 6px; padding: 4px 12px; font-size: 13px; color: var(--ink-2); }
.tgright a:hover { background: var(--blue-soft); color: var(--brand); }

.pn { display: flex; align-items: center; gap: 10px; background: #F7F9FC; border-radius: 9px; padding: 12px 16px; margin-bottom: 10px; }
.pn .lb { color: var(--muted); flex-shrink: 0; }
.pn .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 源码下载详情页 ---------- */
.dl-hd { display: flex; gap: 22px; }
.dl-hd .cover { width: 260px; flex-shrink: 0; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--brand-grad); }
.dl-hd .cover img { width: 100%; height: 100%; object-fit: cover; }
.dl-hd .info { flex: 1; min-width: 0; }
.dl-hd h1 { font-size: 24px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.dl-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.dl-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.dl-meta .sp { color: var(--line); }
.dl-acts { display: flex; gap: 12px; align-items: center; }
.likebtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 9px; padding: 11px 18px; cursor: pointer; }
.likebtn:hover { color: var(--brand); border-color: var(--brand); }
.likebtn.done { color: var(--orange); border-color: #FFD9B8; background: var(--orange-soft); }
.safe { color: var(--green); font-size: 13px; margin-top: 14px; }

.lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.lane { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-align: center; background: #fff; display: block; }
.lane:hover { border-color: var(--brand); }
.lane.on { border-color: var(--orange); background: var(--orange-soft); }
.lane .ln { font-weight: 600; margin-bottom: 3px; }
.lane.on .ln { color: var(--orange); }
.lane .lm { font-size: 12px; color: var(--muted); }
.lane.hide { display: none; }
.dl-target { border: 1px dashed var(--brand); border-radius: 10px; padding: 16px; text-align: center; background: #F7FAFF; margin-bottom: 12px; }
.dl-target .code { font-size: 17px; font-weight: 700; letter-spacing: 1px; color: var(--brand); }
.dl-note { color: var(--muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--line); }

.ptable { width: 100%; border-collapse: collapse; }
.ptable td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ptable td.k { width: 130px; color: var(--muted); }

.gal-main { border-radius: 10px; overflow: hidden; aspect-ratio: 800 / 428; background: #F0F3F8; }
.gal-main img { width: 100%; height: 100%; object-fit: contain; }
.gal-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gal-thumbs .gt { width: 96px; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: var(--brand-grad); }
.gal-thumbs .gt.on { border-color: var(--brand); }
.gal-thumbs .gt img { width: 100%; height: 100%; object-fit: cover; }

.subtabs { display: flex; gap: 8px; margin-bottom: 18px; }
.subpane { display: none; }
.subpane.on { display: block; }

/* ---------- 侧栏 ---------- */
.side .panel { margin-bottom: 18px; }
.side .panel-hd .ph { font-size: 16px; }
.srow { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; display: flex; gap: 8px; }
.srow:last-child { border-bottom: 0; }
.srow .st { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author { text-align: center; padding: 6px 0 2px; }
.author .av { width: 54px; height: 54px; border-radius: 50%; background: var(--brand-grad); margin: 0 auto 10px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.author .nm { font-weight: 700; font-size: 15px; }
.author .ds { color: var(--muted); font-size: 12px; margin: 5px 0 12px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stats3 .s { background: #F7F9FC; border-radius: 9px; padding: 12px 4px; }
.stats3 b { display: block; font-size: 17px; }
.stats3 .k { font-size: 12px; color: var(--muted); }
.stats3 .c1 b { color: var(--orange); }
.stats3 .c2 b { color: var(--brand); }
.stats3 .c3 b { color: var(--green); }

/* ---------- 单页 ---------- */
.single-wrap { padding: 26px 0; }
.single-hd h1 { font-size: 30px; font-weight: 700; }
.single-hd .sm { color: var(--muted); font-size: 13px; margin: 12px 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.num3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.num3 .n { background: #F7F9FC; border-radius: 10px; padding: 22px; }
.num3 b { font-size: 26px; font-weight: 700; display: block; margin-bottom: 4px; }
.num3 .n1 b { color: var(--brand); }
.num3 .n2 b { color: var(--orange); }
.num3 .n3 b { color: var(--green); }
.num3 span { color: var(--muted); font-size: 13px; }

/* 联系方式卡片（联系我们页专用，字段全部取自后台公司信息，空的不渲染） */
.clist { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; padding: 0; margin: 0; }
.clist li { display: flex; align-items: baseline; gap: 8px; min-width: 220px; }
.clist .ct { color: var(--muted); font-size: 14px; white-space: nowrap; }
.clist .cv { color: var(--ink); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.clist .c-qr { flex-direction: column; align-items: flex-start; gap: 8px; }
.clist .c-qr img { width: 132px; height: 132px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.c-note { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }

/* ---------- 表单 ---------- */
.frm { max-width: 520px; margin: 0 auto; }
.frm .fi { margin-bottom: 16px; }
.frm label { display: block; margin-bottom: 7px; font-size: 13px; color: var(--ink-2); }
.frm input[type=text], .frm input[type=password], .frm input[type=email], .frm input[type=url], .frm input[type=number], .frm textarea, .frm select {
	width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; background: #fff;
}
.frm input:focus, .frm textarea:focus { border-color: var(--brand); }
.frm textarea { min-height: 110px; resize: vertical; }
.frm .btn-main { width: 100%; background: var(--brand); color: #fff; border: 0; border-radius: 9px; padding: 12px; font-size: 15px; cursor: pointer; }
.frm .btn-main:hover { background: var(--brand-dark); }
.frm .row2 { display: flex; gap: 10px; align-items: flex-end; }
.frm .cc img { height: 42px; border-radius: 8px; cursor: pointer; }
.auth-hd { text-align: center; margin-bottom: 22px; }
.auth-hd .t { font-size: 20px; font-weight: 700; }
.auth-hd .s { color: var(--muted); font-size: 13px; margin-top: 6px; }
.auth-box { max-width: 460px; margin: 40px auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }
.auth-foot a { color: var(--brand); }

.mnav { display: flex; gap: 6px; background: #fff; border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); margin-bottom: 18px; flex-wrap: wrap; }
.mnav a { padding: 9px 16px; border-radius: 8px; font-size: 14px; }
.mnav a.on { background: var(--brand); color: #fff; }

/* ---------- 404 ---------- */
.e404 { text-align: center; padding: 90px 16px; }
.e404 .big { font-size: 84px; font-weight: 800; color: var(--brand); line-height: 1; }
.e404 .msg { color: var(--muted); margin: 16px 0 26px; font-size: 15px; }

/* ---------- 分页（CMS 自动生成的 class） ---------- */
.pager .page-num { display: inline-block; min-width: 38px; height: 38px; line-height: 36px; text-align: center; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 0 10px; color: var(--ink-2); }
.pager .page-num:hover { border-color: var(--brand); color: var(--brand); }
.pager .page-num-current { background: var(--brand); border-color: var(--brand); color: #fff !important; }
.pager span.page-num:not(.page-num-current) { border: 0; background: none; }
.pager .page-status { display: none; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.notice { background: var(--orange-soft); color: var(--ink-2); border-radius: 8px; padding: 11px 14px; font-size: 13px; line-height: 1.7; }

/* ---------- 评论 ---------- */
.cmt { display: flex; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cmt:last-child { border-bottom: 0; }
.cmt .av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--brand-grad); object-fit: cover; }
span.av { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 600; font-style: normal; }
.cm-reply { margin-top: 10px; background: var(--green-soft); border-left: 3px solid var(--green); border-radius: 8px; padding: 10px 12px; }
.cm-reply b { color: var(--green); font-size: 13px; }
.cm-reply span { color: var(--muted); font-size: 12px; margin-left: 8px; }
.cm-reply p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.7; word-break: break-word; }
.cm-hd { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.cm-hd span { color: var(--muted); font-size: 12px; }
.cm-tx { color: var(--ink-2); line-height: 1.75; word-break: break-word; }
.replybtn { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.replybtn:hover { color: var(--brand); }
.cmt.sub { padding: 12px 0 0; border-bottom: 0; }
.cmt.sub .av { width: 30px; height: 30px; }

.mdl { display: none; position: fixed; inset: 0; background: rgba(20, 26, 40, .45); z-index: 999; }
.mdl-box { width: 92%; max-width: 460px; background: #fff; border-radius: var(--radius); margin: 12vh auto 0; padding: 20px; }
.mdl-hd { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.mdl-x { cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; }

/* ---------- 移动端 ---------- */
@media (max-width: 1024px) {
	.grid { grid-template-columns: repeat(3, 1fr); }
	.cols { grid-template-columns: 1fr; }
	.dwrap { grid-template-columns: 1fr; }
	.side { width: 100%; }
	.hero { grid-template-columns: 1fr; }
	.hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.cats { grid-template-columns: repeat(3, 1fr); }
	.foot-grid > div { flex-basis: 28%; }
	.foot-grid > div:first-child { flex-basis: 100%; }
	.lanes { grid-template-columns: repeat(2, 1fr); }
	.searchbox { max-width: none; }
}

@media (max-width: 760px) {
	.topbar { display: none; }
	.header .wrap { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
	.logo .lg-txt { font-size: 19px; }
	.searchbox { order: 3; width: 100%; height: 40px; }
	.hd-acts { order: 2; margin-left: auto; gap: 8px; }
	.btn-vip, .btn-up { height: 34px; line-height: 32px; padding: 0 12px; font-size: 13px; }

	.nav button { display: block; width: 100%; background: #fff; border: 0; text-align: left; padding: 13px 16px; font-size: 15px; font-weight: 600; }
	.nav .wrap { display: none; flex-direction: column; align-items: stretch; }
	.nav .wrap.open { display: flex; }
	.nav > .wrap > a, .nav .nv-item > a { padding: 13px 16px; border-top: 1px solid var(--line); font-size: 15px; }
	.nav .active:after { display: none; }
	.nav-extra { display: flex; flex-direction: column; background: #F8FAFC; }
	.nav-extra a { padding: 13px 16px; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); }
	.nav-extra i { color: var(--muted); margin-right: 6px; }

	.grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.cats { grid-template-columns: repeat(2, 1fr); }
	.hero-side { grid-template-columns: 1fr; }
	.hero-main, .hero-main .slide > a, .hero-main .slide > img { min-height: 200px; height: 200px; }
	.hero-main .stxt { left: 18px; right: 18px; bottom: 40px; }
	.hero-main .stxt h3 { font-size: 19px; }
	.hero-dots { left: 18px; }
	.sec-hd .st { font-size: 17px; }
	.sec { padding: 18px 0; }

	.dl-hd { flex-direction: column; gap: 14px; }
	.dl-hd .cover { width: 100%; }
	.dl-acts { flex-wrap: wrap; }
	.btn-dl.lg { flex: 1; text-align: center; }
	.art-hd h1 { font-size: 21px; }
	.dcard { padding: 16px; }
	.num3 { grid-template-columns: 1fr; }
	.foot-grid { gap: 18px; }
	.foot-grid > div { flex-basis: 44%; }
	.foot-bar { flex-direction: column; align-items: flex-start; }
	.foot-bar .fr { margin-left: 0; flex-wrap: wrap; gap: 10px; }
	.ad-b { height: 60px; }
	.ad-r300, .ad-r260 { height: 180px; }
	.lanes { grid-template-columns: 1fr; }
	.frow .fl { width: 100%; }
	.pager a, .pager span { min-width: 34px; height: 34px; line-height: 32px; padding: 0 9px; font-size: 13px; }
	.auth-box { padding: 20px; margin: 20px auto; }
	.e404 { padding: 50px 16px; }
	.e404 .big { font-size: 56px; }
}
