/* 站群基础样式：5 套行业皮肤 + 主站/后台主题 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --brand: #2563eb; --brand-d: #1d4ed8; --bg: #f6f7f9; --txt: #1f2937; --mut: #6b7280; --line: #e5e7eb; --card: #fff; }
body.theme-2 { --brand: #059669; --brand-d: #047857; }
body.theme-3 { --brand: #d97706; --brand-d: #b45309; }
body.theme-4 { --brand: #7c3aed; --brand-d: #6d28d9; }
body.theme-5 { --brand: #dc2626; --brand-d: #b91c1c; }
body.theme-portal { --brand: #0f172a; --brand-d: #1e293b; }
body.theme-admin { --brand: #334155; --brand-d: #1e293b; }
body.theme-pool { --brand: #475569; --brand-d: #334155; }
body { background: var(--bg); color: var(--txt); font: 15px/1.7 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* 头部 */
.hd { background: var(--brand); color: #fff; }
.hd-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .85; display: inline-block; }
.nav a { color: rgba(255, 255, 255, .85); margin-left: 18px; font-size: 14px; padding: 4px 2px; }
.nav a.on, .nav a:hover { color: #fff; border-bottom: 2px solid #fff; }

/* 首页 hero / 标签 */
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: 26px; }
.hero-sub { color: var(--mut); margin-top: 6px; }
.tag { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--mut); font-size: 12px; border-radius: 999px; padding: 1px 10px; margin: 2px 6px 0 0; }

/* 区块 */
.sec { margin: 22px 0; }
.sec-t { font-size: 18px; border-left: 4px solid var(--brand); padding-left: 10px; margin-bottom: 14px; }

/* 主站卡片 / 分组 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; transition: .15s; }
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card h3 { font-size: 16px; color: var(--brand); }
.card p { font-size: 13px; color: var(--mut); margin-top: 4px; }
.g-group { margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.g-head { font-weight: 700; margin-bottom: 6px; }
.g-head a { color: var(--brand); }
.g-tag { font-size: 12px; color: var(--mut); font-weight: 400; margin-left: 8px; }
.g-sites a { display: inline-block; margin: 2px 14px 2px 0; font-size: 14px; color: var(--txt); }
.g-sites a:hover { color: var(--brand); }

/* 文章列表 */
.art-list { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.art-list li { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.art-list li:last-child { border-bottom: none; }
.art-t { font-size: 16px; font-weight: 600; }
.art-t:hover { color: var(--brand); }
.art-d { color: var(--mut); font-size: 13px; margin-top: 4px; }
.art-m { color: #9ca3af; font-size: 12px; margin-top: 6px; display: flex; gap: 16px; }

/* 按钮 / 分页 */
.more { text-align: center; margin-top: 14px; }
.btn { display: inline-block; background: var(--brand); color: #fff; border-radius: 8px; padding: 8px 18px; font-size: 14px; }
.btn:hover { background: var(--brand-d); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.pager-i { color: var(--mut); font-size: 14px; }

/* 面包屑 / 文章页 */
.crumb { margin: 16px 0 4px; color: var(--mut); font-size: 13px; }
.crumb a { color: var(--brand); }
.article { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.article h1 { font-size: 22px; line-height: 1.5; }
.article .a-meta { color: #9ca3af; font-size: 13px; margin: 8px 0 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.article h2 { font-size: 17px; margin: 18px 0 8px; }
.article p { margin: 10px 0; color: #374151; }
.rel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.rel a { display: inline-block; margin: 4px 14px 4px 0; color: var(--brand); font-size: 14px; }

/* 页脚 */
.ft { margin-top: 36px; background: #fff; border-top: 1px solid var(--line); padding: 20px 0 26px; color: var(--mut); font-size: 13px; text-align: center; }
.ft-nav { margin-bottom: 8px; }
.ft-nav a { margin: 0 10px; color: var(--txt); }
.ft-flinks { line-height: 2; text-align: left; }
.ft-flinks a { margin: 0 8px; }
.ft-nav a:hover { color: var(--brand); }

/* 404 */
.err-box { text-align: center; padding: 60px 0; }
.err-box h1 { font-size: 64px; color: var(--brand); }

/* 标签 / 上下篇 / 后台表单 */
.tags { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 12px; }
.pn { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.pn-i { color: var(--brand); font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.pn-i:hover { border-color: var(--brand); }
.notice { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 8px; padding: 10px 14px; margin: 14px 0 0; font-size: 14px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--mut); }
.form input { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; color: var(--txt); }
.form select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; color: var(--txt); background: #fff; }
.form input:focus, .form select:focus { outline: none; border-color: var(--brand); }

/* 热搜栏目（批次8） */
.hot-list { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hot-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.hot-item:last-child { border-bottom: none; }
.hot-rank { width: 24px; height: 24px; flex: none; border-radius: 6px; background: #f1f5f9; color: var(--mut); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.hot-rank.r1 { background: #dc2626; color: #fff; }
.hot-rank.r2 { background: #ea580c; color: #fff; }
.hot-rank.r3 { background: #d97706; color: #fff; }
.hot-main { flex: 1; min-width: 0; }
.hot-t { font-size: 16px; font-weight: 600; }
.hot-t:hover { color: var(--brand); }
.hb { display: inline-block; font-size: 11px; line-height: 16px; border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; font-weight: 400; }
.hb-re { background: #fee2e2; color: #dc2626; }
.hb-new { background: #ffedd5; color: #ea580c; }
.hb-video { background: #dbeafe; color: #2563eb; }
.hb-score { background: #fff1f2; color: #e11d48; }
.hb-src { background: #f3f4f6; color: #6b7280; }
.hot-d { color: var(--mut); font-size: 13px; margin-top: 4px; }
.hot-m { color: #9ca3af; font-size: 12px; margin-top: 6px; display: flex; gap: 14px; }
.hot-thumb { position: relative; flex: none; width: 148px; height: 92px; border-radius: 8px; overflow: hidden; background: #0f172a; }
.hot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hot-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.hot-intro { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
@media (max-width: 640px) { .hot-thumb { width: 110px; height: 70px; } }
.video-box { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; margin: 14px 0; }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 后台 */
.admin-wrap .sec { margin: 18px 0; }
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 22px; text-align: center; }
.stat b { font-size: 24px; display: block; color: var(--brand); }
.stat span { color: var(--mut); font-size: 13px; }
.tb { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 14px; }
.tb th, .tb td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.tb th { background: #f1f5f9; font-weight: 600; }
.tb small { color: var(--mut); }