/* ============ 基础 ============ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 14px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.main-content { min-height: calc(100vh - 200px); padding: 20px 16px 48px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: Consolas, Monaco, monospace; letter-spacing: 1px; }
.w-70 { width: 70px !important; }
.text-paid { color: var(--amber); font-weight: 700; }
.text-free { color: var(--green); font-weight: 700; }

/* ============ 按钮 ============ */
.btn {
  display: inline-block; padding: 8px 16px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; cursor: pointer; line-height: 1.5; text-align: center; transition: .15s;
  background: #fff; color: var(--text);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: rgba(37, 99, 235, .06); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: #fee2e2; color: var(--red); }
.btn-danger:hover { background: #fecaca; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-block { width: 100%; display: block; }

/* ============ 顶部导航 ============ */
.site-header {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; color: var(--text); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.main-nav { display: flex; gap: 4px; flex: 1; overflow: visible; }
.main-nav a {
  padding: 6px 12px; border-radius: 8px; color: var(--text); font-size: 15px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: rgba(37, 99, 235, .08); color: var(--primary); }

/* ---- 顶部导航分组下拉（EA/指标合并，消除横向拖动条） ---- */
.nav-dd { position: relative; }
.nav-dd > .nav-dd-btn {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px;
  color: var(--text); font-size: 15px; white-space: nowrap; cursor: pointer;
}
.nav-dd > .nav-dd-btn:hover { background: rgba(37, 99, 235, .08); color: var(--primary); }
.nav-dd-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 80;
  min-width: 168px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 23, 42, .14); padding: 6px;
}
.nav-dd-menu a {
  display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu { display: block; }
/* 广播：吸附到导航最右（用户区左侧） */
.main-nav a.nav-push { margin-left: auto; }
.header-user { display: flex; align-items: center; gap: 8px; }
.coin-chip {
  background: #fffbeb; border: 1px solid #fde68a; color: var(--amber);
  padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 14px;
}
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text); }

/* ============ Hero 搜索 ============ */
.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: 30px; margin-bottom: 18px; }
.hero .accent { color: var(--primary); }
.search-bar { display: flex; max-width: 560px; margin: 0 auto; gap: 8px; }
.search-bar input {
  flex: 1; padding: 12px 18px; border: 2px solid var(--border); border-radius: 10px; font-size: 15px; outline: none;
}
.search-bar input:focus { border-color: var(--primary); }

/* ============ 栏目选项卡 ============ */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.cat-tabs a {
  padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  color: var(--muted); font-size: 14px;
}
.cat-tabs a.active, .cat-tabs a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ 文章卡片 ============ */
.article-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px;
}
.article-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  color: var(--text); display: flex; flex-direction: column; transition: .18s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15, 23, 42, .12); color: var(--text); }
.card-cover { position: relative; aspect-ratio: 16/9; background: #eef2f7; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-ph { background: linear-gradient(135deg, #e0e7ff, #f0f9ff); display: flex; align-items: center; justify-content: center; }
.cover-ph-icon { font-size: 44px; opacity: .55; }
.price-badge {
  position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff;
}
.price-badge.paid { background: rgba(217, 119, 6, .92); }
.price-badge.free { background: rgba(22, 163, 74, .92); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-size: 16px; font-weight: 700; line-height: 1.45; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-summary { font-size: 13px; color: var(--muted); margin-bottom: 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.meta-right { margin-left: auto; }
.tag {
  display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px;
  background: rgba(37, 99, 235, .08); color: var(--primary);
}
.tag-lg { font-size: 13px; padding: 3px 10px; }
.tag-video { background: rgba(236, 72, 153, .1); color: #db2777; }
.tag-warn { background: #fef3c7; color: #b45309; }
.tag-free { background: #dcfce7; color: #15803d; }

/* ============ 分页 ============ */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 6px 14px; background: #fff; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px;
}
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .ellipsis { border: none; background: none; }

/* ============ 提示 ============ */
.flash { padding: 12px 16px; border-radius: 10px; margin: 12px 0; font-size: 14px; }
.flash-success { background: #dcfce7; color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }
.empty-box {
  background: #fff; border-radius: var(--radius); padding: 60px 20px; text-align: center;
  color: var(--muted); box-shadow: var(--shadow);
}

/* ============ 文章详情 ============ */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
.article-main { background: #fff; border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.article-head { margin-bottom: 18px; }
.article-title { font-size: 26px; line-height: 1.4; margin: 8px 0; }
.article-meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.price-inline { font-weight: 700; }
.price-inline.paid { color: var(--amber); }
.price-inline.free { color: var(--green); }
.article-cover { border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.article-content { font-size: 15px; color: #334155; }
.article-content p { margin: 10px 0; }
.section-title { font-size: 19px; margin: 28px 0 12px; padding-top: 18px; border-top: 1px solid var(--border); }

/* 视频容器 16:9 自适应 */
.video-wrap { position: relative; width: 100%; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 下载框 */
.download-box { margin-top: 24px; border: 2px dashed #86efac; background: #f0fdf4; border-radius: 12px; overflow: hidden; }
.download-box-head { background: #dcfce7; color: #166534; font-weight: 700; padding: 10px 16px; }
.download-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid #dcfce7;
  color: var(--text); font-size: 14px;
}
.download-item:hover { background: #f7fef9; }
.download-item .dl-url { flex: 1; color: var(--muted); word-break: break-all; font-size: 13px; }
.download-item .dl-go { background: var(--green); color: #fff; padding: 5px 14px; border-radius: 8px; white-space: nowrap; }

/* 付费墙 */
.paywall {
  margin-top: 24px; text-align: center; padding: 40px 20px;
  border: 2px dashed #fcd34d; background: #fffbeb; border-radius: 12px;
}
.paywall-icon { font-size: 42px; margin-bottom: 8px; }
.paywall p { margin: 6px 0; color: #92400e; }
.paywall-price strong { font-size: 24px; color: var(--amber); margin: 0 4px; }
.paywall .btn { margin: 12px 0 4px; }

/* 侧栏 */
.article-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 16px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.info-list { list-style: none; }
.info-list li { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed #f1f5f9; }
.info-list li:last-child { border-bottom: none; }
.info-list span { color: var(--muted); }

/* ============ 栏目页头部 ============ */
.category-head { padding: 10px 0 4px; }
.category-head h1 { font-size: 26px; }
.category-head p { color: var(--muted); }

/* ============ 登录注册 ============ */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0; }
.auth-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 14px; padding: 32px 30px;
  box-shadow: var(--shadow);
}
.auth-card h1 { text-align: center; margin-bottom: 20px; font-size: 24px; }
.auth-card label { display: block; margin-bottom: 14px; font-size: 14px; color: #475569; }
.auth-card input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 9px; font-size: 15px; outline: none;
}
.auth-card input:focus { border-color: var(--primary); }
.auth-card .btn { margin-top: 6px; }

/* ============ 个人中心 ============ */
.user-head {
  display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow); margin-bottom: 18px; flex-wrap: wrap;
}
.user-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700;
}
.user-head h1 { font-size: 22px; }
.user-coins { margin-left: auto; text-align: right; }
.user-coins strong { display: block; font-size: 24px; color: var(--amber); }
.user-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.user-grid .side-wide { grid-column: 1 / -1; }
.recharge-form input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 9px;
  font-size: 15px; margin-bottom: 10px; outline: none; font-family: Consolas, monospace; letter-spacing: 1px;
}
.recharge-form input:focus { border-color: var(--primary); }

/* 在线购买K密 档位列表 */
.user-shop-tiers { list-style: none; margin: 2px 0 12px; padding: 0; }
.user-shop-tiers li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.user-shop-tiers li:last-child { border-bottom: 0; }
.user-shop-tiers .us-tier-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.user-shop-tiers .us-tier-name em { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.user-shop-tiers .us-tier-buy { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.user-shop-tiers .us-tier-buy b { color: #e11d48; font-size: 14px; }
.user-shop-tiers .btn-sm { padding: 4px 12px; font-size: 13px; }

/* ============ 数据表格 ============ */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; padding: 9px 10px; color: var(--muted); font-weight: 600; font-size: 13px;
  border-bottom: 2px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.data-table tr:hover td { background: #f8fafc; }
.td-title { max-width: 340px; }
.td-title a { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.td-actions { white-space: nowrap; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; vertical-align: middle; }
.tr-sub td { border-bottom: 1px solid var(--border) !important; padding-top: 0 !important; background: #fbfdff !important; }

/* ============ 后台 ============ */
.admin-body { background: #eef2f7; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; background: #0f172a; color: #cbd5e1; display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
}
.admin-brand { padding: 18px 20px; font-weight: 800; font-size: 16px; color: #fff; border-bottom: 1px solid #1e293b; }
.admin-nav { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { color: #cbd5e1; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; }
.admin-nav a:hover, .admin-nav a.active { background: var(--primary); color: #fff; }
.admin-sidebar-foot { padding: 14px 8px; border-top: 1px solid #1e293b; display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar-foot a { color: #94a3b8; padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.admin-sidebar-foot a:hover { background: #1e293b; color: #fff; }
.admin-main { flex: 1; margin-left: 220px; display: flex; flex-direction: column; }
.admin-topbar {
  background: #fff; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 22px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40;
}
.admin-topbar h1 { font-size: 18px; flex: 1; }
.admin-user { color: var(--muted); font-size: 14px; }
.admin-toggle { display: none; }
.admin-content { padding: 20px 22px 40px; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.admin-cols .side-wide { grid-column: auto; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-size: 24px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--muted); }

.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.search-inline { display: flex; gap: 8px; }
.search-inline input {
  padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 9px; outline: none; min-width: 220px; font-size: 14px;
}
.search-inline input:focus { border-color: var(--primary); }
.filter-tabs { display: flex; gap: 6px; }
.filter-tabs a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
.filter-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.admin-form label { display: block; margin-bottom: 14px; font-size: 14px; color: #475569; }
.admin-form input, .admin-form select, .admin-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: 9px; font-size: 14px; outline: none;
  font-family: inherit; background: #fff;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: var(--primary); }
.admin-form textarea { resize: vertical; }
.input-sm { padding: 5px 9px !important; border: 1.5px solid var(--border); border-radius: 7px; font-size: 13px; width: auto; }
.form-row { display: flex; gap: 14px; }
.form-row label { flex: 1; }
.form-row .flex2 { flex: 2; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.check-label { display: flex !important; align-items: center; gap: 8px; }
.check-label input { width: auto !important; margin-top: 0 !important; }
.form-inline-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }

/* 批量替换字段范围 */
.batch-fields { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 12px; background: #f8fafc; border-radius: 6px; border: 1px solid #e2e8f0; margin-top: 6px; }
.batch-fields .check-label { margin: 0; }
.form-inline-row label { margin-bottom: 0; }
.article-form { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }

/* ============ 页脚 ============ */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 22px 0; }
.site-footer p { text-align: center; color: var(--muted); font-size: 13px; }

/* ============ 移动端适配 ============ */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .admin-cols { grid-template-columns: 1fr; }
  .user-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; }
  .logo { font-size: 17px; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none; order: 5; width: 100%; flex-direction: column; gap: 2px;
    padding: 8px 0 12px; border-top: 1px solid var(--border); margin-top: 6px;
    overflow: visible;
  }
  .main-nav.open { display: flex; }
  /* 移动端折叠菜单：下拉直接平铺展开 */
  .main-nav.open .nav-dd { width: 100%; }
  .main-nav.open .nav-dd > .nav-dd-btn { width: 100%; }
  .main-nav.open .nav-dd-menu {
    display: block; position: static; box-shadow: none; border: none;
    padding: 0 0 0 14px; min-width: 0; background: transparent;
  }
  .main-nav.open .nav-dd-menu a { padding: 7px 12px; font-size: 14px; }
  .main-nav a.nav-push { margin-left: 0; }
  .header-user { margin-left: auto; }
  .header-user .btn { padding: 6px 10px; font-size: 13px; }
  .hero h1 { font-size: 22px; }
  .hero { padding: 24px 0 12px; }
  .article-main { padding: 18px 16px; }
  .article-title { font-size: 20px; }
  .form-row { flex-direction: column; gap: 0; }
  .td-actions { white-space: normal; }
  .data-table { display: block; overflow-x: auto; }
  .user-coins { margin-left: 0; text-align: left; }

  /* 后台移动端 */
  .admin-sidebar { transform: translateX(-100%); transition: .2s; width: 230px; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-toggle { display: block; }
  .search-inline input { min-width: 0; flex: 1; }
  .list-toolbar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .article-grid { grid-template-columns: 1fr; }
  .download-item { flex-wrap: wrap; }
  .download-item .dl-url { width: 100%; order: 3; }
}

/* ============ 资源参数表（文章顶部） ============ */
.spec-block { margin: 14px 0 20px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.spec-table tr { border-bottom: 1px solid #eef2f7; }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th {
  width: 180px; min-width: 150px; text-align: left; vertical-align: top;
  padding: 9px 14px; background: #f8fafc; color: var(--muted); font-weight: 600;
  border-right: 1px solid var(--border); white-space: nowrap; font-size: 13px;
}
.spec-table td { padding: 9px 14px; color: #334155; word-break: break-word; }
.spec-table td a { word-break: break-all; }

/* ============ 正文排版增强（采集 HTML 内容） ============ */
.article-content { font-size: 15px; color: #334155; line-height: 1.8; overflow-wrap: break-word; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.article-content ul, .article-content ol { padding-left: 26px; margin: 10px 0; }
.article-content li { margin: 4px 0; }
.article-content h2 { font-size: 20px; margin: 22px 0 10px; }
.article-content h3 { font-size: 17px; margin: 18px 0 8px; }
.article-content h4 { font-size: 15px; margin: 14px 0 6px; }
.article-content blockquote {
  border-left: 4px solid #cbd5e1; background: #f8fafc; padding: 10px 16px;
  margin: 12px 0; color: #475569; border-radius: 0 8px 8px 0;
}
.article-content pre {
  background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 8px;
  overflow-x: auto; font-size: 13px; margin: 12px 0;
}
.article-content code { font-family: Consolas, Monaco, monospace; font-size: 13px; }
.article-content p code, .article-content li code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: #be185d; }
.article-content a { word-break: break-all; }
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.article-content table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.article-content table td, .article-content table th {
  border: 1px solid var(--border); padding: 6px 10px; font-size: 13px; text-align: left;
}

/* ============ 采集标记 / 后台采集管理 ============ */
.tag-collect { background: #ede9fe; color: #7c3aed; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #15803d; color: #fff; }
.text-green { color: var(--green); font-weight: 700; }
.text-danger { color: var(--red); font-weight: 700; }
.form-sec { font-size: 16px; margin: 22px 0 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.source-note {
  background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe;
  padding: 8px 14px; border-radius: 8px; font-size: 13px; margin: 4px 0 14px;
}
.key-box {
  background: #f8fafc; border: 1px dashed #94a3b8; border-radius: 8px;
  padding: 10px 14px; word-break: break-all; font-size: 13px; color: #0f172a;
}
.collect-log {
  background: #0f172a; color: #cbd5e1; border-radius: 10px; padding: 12px 16px;
  max-height: 260px; overflow-y: auto; font-size: 12.5px; line-height: 1.8;
  font-family: Consolas, Monaco, monospace;
}
.collect-log .log-line { border-bottom: 1px dashed #1e293b; }
.collect-log .log-line:last-child { border-bottom: none; }
.run-head { padding: 14px 18px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; margin-bottom: 12px; }
.run-log {
  background: #0f172a; color: #cbd5e1; border-radius: 10px; padding: 12px 16px;
  max-height: 55vh; overflow-y: auto; font-size: 13px; line-height: 1.75;
  font-family: Consolas, Monaco, monospace;
}
.run-line { white-space: pre-wrap; word-break: break-all; }
.run-result {
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
  padding: 18px 22px; margin-top: 14px;
}
.run-result h3 { margin-bottom: 8px; color: #166534; }

/* ============ 参数表编辑（后台文章表单） ============ */
.spec-edit-wrap { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.spec-edit-row { display: flex; gap: 8px; align-items: center; }
.spec-edit-row .spec-k { width: 30%; }
.spec-edit-row .spec-v { flex: 1; }
.spec-edit-row input {
  display: block; padding: 8px 12px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px; outline: none; background: #fff;
}
.spec-edit-row input:focus { border-color: var(--primary); }
.spec-edit-row .btn { flex-shrink: 0; }
@media (max-width: 600px) {
  .spec-edit-row { flex-wrap: wrap; }
  .spec-edit-row .spec-k { width: 100%; }
}

/* ============ 前台文字横幅（首页/栏目设计） ============ */
.design-banner {
  padding: 12px 18px; border-radius: 12px; margin: 14px 0;
  border: 1px solid rgba(0,0,0,.08); box-shadow: 0 1px 4px rgba(0,0,0,.04);
  word-break: break-word; line-height: 1.7;
}
.design-banner[data-pos="bottom"] {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  margin: 0; border-radius: 0; border: none; border-top: 1px solid rgba(0,0,0,.08);
}

/* ============ 后台：前台页面设计 ============ */
.design-banner-preview {
  min-height: 54px; border: 1.5px dashed #cbd5e1; border-radius: 10px;
  padding: 10px 14px; margin: 6px 0 4px; background: #fff7e6; color: #1f2937;
  font-size: 16px; text-align: center; word-break: break-word; line-height: 1.6;
}
.design-banner-preview:empty::after { content: attr(data-empty); color:#94a3b8; }

/* ============ 在线客服悬浮窗 ============ */
#svcWidget { position: fixed; right: 18px; bottom: 18px; z-index: 9999; font-family: inherit; }
#svcFab {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), #3b82f6); color: #fff;
  font-size: 24px; box-shadow: 0 6px 18px rgba(37,99,235,.35); transition: transform .15s;
  display: flex; align-items: center; justify-content: center;
}
#svcFab:hover { transform: scale(1.08); }
#svcFab::after {
  content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; border: 2px solid #fff; right: 2px; bottom: 2px;
}
.svc-panel {
  width: 330px; max-width: calc(100vw - 30px); height: 480px; max-height: calc(100vh - 40px);
  background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(15,23,42,.22); border: 1px solid var(--border);
}
/* 关键修复：display:flex 会覆盖 hidden 属性的默认 display:none，导致关闭按钮失效、窗口默认常开 */
.svc-panel[hidden], #svcPanel[hidden] { display: none !important; }
.svc-head {
  background: linear-gradient(135deg, var(--primary), #3b82f6); color: #fff;
  padding: 13px 16px; display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.svc-dot { width: 9px; height: 9px; border-radius: 50%; background: #86efac; display: inline-block; }
.svc-title { font-weight: 600; flex: 1; font-size: 15px; }
.svc-close { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; opacity: .85; line-height: 1; }
.svc-close:hover { opacity: 1; }
.svc-body {
  flex: 1; overflow-y: auto; padding: 12px; background: #f6f8fb;
  display: flex; flex-direction: column; gap: 10px;
}
.svc-msg { display: flex; gap: 8px; align-items: flex-start; }
.svc-msg.me { flex-direction: row-reverse; }
.svc-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
}
.svc-msg.admin .svc-avatar { background: linear-gradient(135deg, #059669, #10b981); }
.svc-msg.bot .svc-avatar { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.svc-bubble {
  max-width: 78%; background: #fff; border: 1px solid #e2e8f0; color: #1f2937;
  border-radius: 12px 12px 12px 4px; padding: 8px 12px; font-size: 14px; line-height: 1.65;
  word-break: break-word; white-space: normal;
}
.svc-msg.me .svc-bubble {
  background: var(--primary); color: #fff; border: none;
  border-radius: 12px 12px 4px 12px;
}
.svc-bubble a { color: inherit; text-decoration: underline; word-break: break-all; }
.svc-msg.me .svc-bubble a { color: #fff; }
.svc-time { font-size: 11px; color: #94a3b8; margin-top: 3px; }
.svc-msg.me .svc-time { text-align: right; }
.svc-input-row {
  display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border);
  background: #fff; align-items: flex-end; flex-shrink: 0;
}
.svc-input-row textarea {
  flex: 1; resize: none; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 8px 10px; font-size: 14px; outline: none; font-family: inherit; max-height: 90px; line-height: 1.5;
}
.svc-input-row textarea:focus { border-color: var(--primary); }
@media (max-width: 480px) {
  #svcWidget { right: 10px; bottom: 10px; }
  .svc-panel { height: 70vh; width: calc(100vw - 20px); }
}

/* ============ 后台：批量操作工具条 ============ */
.batch-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px;
  padding: 8px 14px; margin: 10px 0;
}
.batch-bar .check-label { display: inline-flex; gap: 6px; align-items: center; }

/* ============ 后台：卡密生成列表 ============ */
.gen-code-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 200px; overflow-y: auto; }
.gen-code-list .mono {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 10px; font-size: 13px; letter-spacing: .5px;
}

/* ============ 温和采集任务卡（逐步接力，避免单请求超时500） ============ */
.tk-card { margin-bottom: 16px; }
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-title { font-size: 16px; font-weight: 700; }
.tk-sub { font-size: 13px; color: var(--muted); min-height: 18px; word-break: break-all; margin-top: 2px; }
.tk-pct { flex-shrink: 0; text-align: right; line-height: 1; color: var(--primary); }
.tk-pct b { font-size: 32px; font-weight: 800; }
.tk-pct i { font-style: normal; font-size: 14px; margin-left: 2px; }
.tk-bar { height: 13px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 10px 0 8px; }
.tk-fill { height: 100%; width: 0; background: linear-gradient(90deg, #60a5fa, #2563eb); border-radius: 999px; transition: width .25s ease; }
.tk-bar.ok .tk-fill { background: linear-gradient(90deg, #4ade80, #16a34a); }
.tk-fill.indet { width: 34% !important; animation: tkSlide 1.2s infinite ease-in-out; }
@keyframes tkSlide { 0% { margin-left: -40%; } 100% { margin-left: 110%; } }
.tk-nums { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.tk-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tk-chip { padding: 1px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12px; line-height: 1.9; }
.tk-chip.add b { color: var(--green); }
.tk-chip.ref b { color: var(--primary); }
.tk-chip.skip b { color: var(--muted); }
.tk-chip.err { display: none; background: #fee2e2; }
.tk-chip.err.on { display: inline-block; }
.tk-chip.err b { color: var(--red); }
.tk-log { max-height: 280px; overflow: auto; background: #0f172a; color: #cbd5e1; border-radius: 8px; padding: 10px 12px; font: 12px/1.8 Consolas, Monaco, monospace; white-space: pre-wrap; word-break: break-all; margin-top: 10px; }
.tk-log .ok { color: #4ade80; }
.tk-log .err { color: #f87171; }
.tk-log .warn { color: #fbbf24; }
.tk-log::-webkit-scrollbar { width: 8px; }
.tk-log::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

/* ============ 卡密售卖（buy.php / order.php / admin shop） ============ */
.shop-hero { padding: 18px 0 6px; }
.shop-hero h1 { font-size: 22px; margin-bottom: 6px; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 14px 0; }
.tier-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.tier-preselect { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.tier-preselect-flash { animation: tierFlash 1.2s ease 2; }
@keyframes tierFlash { 0%, 100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); } 50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, .35); } }
.tier-soldout { opacity: .72; }
.tier-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tier-name { font-size: 15.5px; font-weight: 500; }
.tier-coins { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tier-desc { font-size: 13px; color: var(--muted); min-height: 18px; }
.tier-price { font-size: 26px; font-weight: 500; color: var(--red); }
.tier-price::first-letter { font-size: 16px; }
.tier-stock { font-size: 12.5px; color: var(--muted); }
.tier-buy { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--border); padding-top: 10px; }
.tier-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tier-row label { flex: 1; min-width: 130px; }
.tier-row input[type=text], .tier-row input[type=number] { width: 100%; }
.tier-qtys { display: flex; gap: 14px; font-size: 13.5px; }
.tier-qtys label { display: inline-flex; align-items: center; gap: 5px; }
.tier-login { margin: 0; }
.shop-tips ul { margin: 6px 0 0 18px; font-size: 13.5px; color: #475569; line-height: 1.9; }
.code-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.code-row { display: flex; align-items: center; gap: 12px; background: #f8fafc; border: 1px dashed var(--border); border-radius: 8px; padding: 8px 12px; }
.code-val { font-size: 14.5px; letter-spacing: .5px; flex: 1; word-break: break-all; }
.codes-title { margin: 14px 0 2px; font-size: 14.5px; font-weight: 500; }
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13.5px; line-height: 1.7; margin: 8px 0; }
.alert-warn { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.data-table-sm th { font-size: 13px; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .shop-grid { grid-template-columns: 1fr; } }
.pay-kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; align-items: center; font-size: 13.5px; }
.pay-kv label { color: #475569; }
.pay-kv input[type=text], .pay-kv input[type=url], .pay-kv input[type=password], .pay-kv textarea { width: 100%; }
.epay-hint { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.code-box { font-family: Consolas, Monaco, monospace; font-size: 12.5px; background: #f8fafc; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; word-break: break-all; }

/* ==========================================================
 * 聚合支付过渡页（pay_jump.php）
 * ========================================================== */
.payjump-wrap{max-width:560px;margin:48px auto;padding:0 16px;}
.payjump-card{background:#fff;border-radius:14px;box-shadow:0 8px 28px rgba(15,23,42,.08);padding:28px 26px;}
.payjump-head{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.payjump-head .dot{width:10px;height:10px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18);animation:pulseDot 1.2s ease-in-out infinite;}
@keyframes pulseDot{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
.payjump-amount{font-size:34px;font-weight:600;color:var(--red);margin:6px 0;}
.payjump-amount::first-letter{font-size:18px;}
.payjump-info{display:grid;grid-template-columns:90px 1fr;gap:6px 14px;background:#f8fafc;border:1px solid var(--border);border-radius:8px;padding:12px 14px;font-size:13.5px;margin:10px 0 18px;}
.payjump-info label{color:#475569;}
.payjump-methods{display:flex;gap:10px;margin:6px 0 18px;}
.payjump-method{flex:1;text-align:center;border:2px solid var(--border);border-radius:10px;padding:12px;cursor:pointer;transition:all .18s;}
.payjump-method.active{border-color:var(--blue);background:rgba(37,99,235,.06);color:var(--blue);}
.payjump-method input{display:none;}
.payjump-method b{display:block;font-size:15px;margin-bottom:4px;}
.payjump-method small{color:var(--muted);}
.payjump-countdown{font-size:13.5px;color:var(--muted);margin:8px 0 14px;}
.payjump-countdown b{color:var(--red);font-weight:600;}
.payjump-tip{background:#fff7ed;border:1px solid #fdba74;border-radius:8px;padding:10px 14px;font-size:12.5px;color:#9a3412;line-height:1.7;margin:12px 0;}
.payjump-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:6px;}

/* ==========================================================
 * 广播跑马灯（footer 渲染）
 * ========================================================== */
.broadcast-bar{position:relative;overflow:hidden;border-bottom:1px solid rgba(255,255,255,.08);margin-top:12px;border-radius:8px;}
.broadcast-bar__inner{display:flex;align-items:center;height:100%;max-width:var(--maxw,1200px);margin:0 auto;padding:0 16px;gap:12px;}
.broadcast-bar__badge{flex:0 0 auto;background:rgba(255,255,255,.18);padding:2px 10px;border-radius:999px;font-size:.8em;letter-spacing:1px;}
.broadcast-bar__viewport{flex:1 1 auto;overflow:hidden;height:100%;position:relative;}
.broadcast-bar__track{display:inline-flex;align-items:center;white-space:nowrap;height:100%;gap:48px;will-change:transform;}
.broadcast-bar__item{padding-right:48px;}
.broadcast-bar__by{font-style:normal;font-weight:400;opacity:.65;margin-left:6px;font-size:.85em;}
.broadcast-bar:hover .broadcast-bar__track{animation-play-state:paused;}

/* ==========================================================
 * 论坛版块
 * ========================================================== */
.forum-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:14px;}
.forum-table tr.is-top{background:rgba(245,158,11,.06);}
.forum-title-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.forum-title-line a{font-weight:500;color:#1e293b;}
.tag.tag-top{background:#f59e0b;color:#fff;font-size:11px;padding:2px 7px;border-radius:4px;}
.tag.tag-essence{background:#eab308;color:#fff;font-size:11px;padding:2px 7px;border-radius:4px;}
.tag.tag-warn{background:#fef3c7;color:#92400e;}
.tag.tag-ok{background:#dcfce7;color:#166534;}

.thread-head h1{font-size:22px;margin-bottom:8px;}
.thread-head{margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--border);}
.thread-section{margin:24px 0 12px;font-size:18px;}

.post-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:14px 16px;margin-bottom:12px;}
.post-author{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;margin-bottom:8px;}
.post-avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#6366f1,#3b82f6);color:#fff;font-size:18px;font-weight:600;display:flex;align-items:center;justify-content:center;}
.post-time{font-size:12px;color:var(--muted);}
.post-body{font-size:14px;line-height:1.85;color:#1e293b;white-space:pre-wrap;word-break:break-word;}
.op-col{display:flex;gap:6px;flex-wrap:wrap;}

.user-link-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;}
.user-link-list li{font-size:13.5px;line-height:1.6;}

.tab-bar{display:flex;gap:6px;border-bottom:1px solid var(--border);margin-bottom:14px;}
.tab-bar .tab{padding:8px 14px;text-decoration:none;color:#475569;border-radius:6px 6px 0 0;font-size:13.5px;}
.tab-bar .tab.active{background:var(--blue);color:#fff;}

.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:14px;}
.stat-card{background:#fff;border:1px solid var(--border);border-radius:10px;padding:12px 14px;text-align:center;}
.stat-num{font-size:22px;font-weight:600;color:#1e293b;}
.stat-lbl{font-size:12.5px;color:var(--muted);margin-top:2px;}

.filter-bar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;align-items:center;}
.filter-bar input[type=text],.filter-bar select{padding:6px 10px;border:1px solid var(--border);border-radius:6px;font-size:13px;min-width:160px;}

.pager{display:flex;gap:6px;justify-content:center;margin:16px 0;}
.page-link{padding:5px 11px;border:1px solid var(--border);border-radius:6px;text-decoration:none;color:#1e293b;font-size:13px;}
.page-link.active{background:var(--blue);color:#fff;border-color:var(--blue);}
.empty-box{padding:30px 14px;text-align:center;color:var(--muted);background:#fff;border:1px dashed var(--border);border-radius:8px;}
.center{text-align:center;}

/* ==========================================================
 * 采集段落级过滤标识（调试期显示，可在控制台打印）
 * ========================================================== */
.collect-debug{border:1px dashed #ddd;background:#fafafa;padding:8px;font-size:12px;color:#555;}

/* ==========================================================
 * 金币直充（recharge.php / user.php 直充入口）
 * ========================================================== */
.alert-ok{background:#dcfce7;color:#14532d;border:1px solid #86efac;padding:12px 14px;border-radius:8px;font-size:14px;line-height:1.8;margin:8px 0;}
.alert-ok .btn{margin-left:6px;}

.rc-state{margin-bottom:2px;}
.rc-balance{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px;}
.rc-balance h1{font-size:22px;}
.rc-balance .user-coins{margin-left:auto;}
.rc-balance .user-coins strong{font-size:24px;color:var(--primary,#2563eb);}

.rc-chips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px;}
.rc-chip{border:1px solid var(--border,#d8dee9);background:#f8fafc;color:#1e293b;border-radius:999px;padding:7px 14px;font-size:13.5px;cursor:pointer;transition:all .15s;}
.rc-chip:hover{border-color:var(--primary,#2563eb);color:var(--primary,#2563eb);}
.rc-chip.active{background:var(--primary,#2563eb);border-color:var(--primary,#2563eb);color:#fff;font-weight:600;}

.rc-input label{display:block;font-size:13px;color:var(--muted,#64748b);margin-bottom:6px;}
.rc-input input[type=number]{width:100%;padding:10px 12px;border:1px solid var(--border,#d8dee9);border-radius:8px;font-size:16px;box-sizing:border-box;}
.rc-input input[type=number]:focus{outline:none;border-color:var(--primary,#2563eb);}

.rc-amount{margin:12px 0 6px;font-size:14px;padding:10px 12px;background:#eff6ff;border:1px dashed #93c5fd;border-radius:8px;}
.rc-amount b{font-size:20px;color:#1d4ed8;}
.rc-amount.err{background:#fef2f2;border-color:#fca5a5;}
.rc-amount.err b{color:#b91c1c;font-size:14px;}
.rc-paytype{margin:8px 0;}
.rc-note{margin-top:10px;line-height:1.7;}
.rc-card .btn-sm{font-size:12.5px;padding:5px 8px;}
.rc-card .user-link-list li{font-size:12.5px;line-height:1.9;}

/* ---- 全局广告推荐框（正规平台推荐：文字/小 Logo 链接） ---- */
.ads-box{border:1px solid var(--border,#e2e8f0);background:var(--card,#fff);border-radius:var(--radius,12px);box-shadow:0 1px 3px rgba(15,23,42,.06);overflow:hidden;}
.ads-box__head{padding:10px 16px;font-weight:700;font-size:15px;background:linear-gradient(90deg,#eff6ff,#f0fdf4);border-bottom:1px solid var(--border,#e2e8f0);color:#166534;}
.ads-box__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px 16px;}
.ads-box__item{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:8px 10px;border:1px solid var(--border,#e2e8f0);border-radius:10px;background:#fff;text-align:center;font-weight:600;font-size:14px;color:var(--text,#1e293b);transition:all .15s;}
.ads-box__item:hover{border-color:var(--primary,#2563eb);color:var(--primary,#2563eb);box-shadow:0 2px 8px rgba(37,99,235,.12);transform:translateY(-1px);}
.ads-box__item--image img{width:24px;height:24px;object-fit:contain;border-radius:6px;flex:0 0 auto;}
.ads-box--top{margin:0 auto 18px;max-width:var(--maxw,1200px);}
.ads-box--top .ads-box__grid{grid-template-columns:repeat(4,1fr);}
.ads-box--article{margin:24px 0 4px;}
@media (max-width:720px){
  .ads-box__grid{grid-template-columns:repeat(2,1fr);}
  .ads-box--top .ads-box__grid{grid-template-columns:repeat(2,1fr);}
}
