:root {
  --ink: #16202e; --ink-2: #45526a; --mute: #7a869a; --line: #e3e8f0; --bg: #f4f6fa; --card: #fff;
  --primary: #2251e8; --primary-d: #183fc0; --primary-soft: #eaf0ff;
  --accent: #f26a1b; --accent-d: #d6580c; --navy: #0f1b33;
  --ok: #12845a; --ok-soft: #e4f6ee; --warn: #a86200; --warn-soft: #fff4dc; --bad: #c5352b; --bad-soft: #fdecea;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 32, 64, .05), 0 6px 20px rgba(16, 32, 64, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 .7em; }
img { max-width: 100%; }
small { font-size: 12.5px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(860px, 100% - 40px); }
.mute { color: var(--mute); font-size: 13.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.todo { background: #ffec99; color: #6b4a00; padding: 0 4px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.empty { color: var(--mute); padding: 28px 0; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.inline-form { display: inline; }
.inline-block { display: inline-block; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* 演示提示条 / 顶栏 / 页头 */
.demo-ribbon { background: #ffec99; color: #5c4000; font-size: 13px; text-align: center; padding: 5px 12px; }
.topbar { background: var(--navy); color: #b9c4dc; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar a, .topbar .linklike { color: #dfe6f5; }
.tb-sep { width: 1px; height: 13px; background: rgba(255, 255, 255, .28); }
.header { background: #fff; }
.header .wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.search { flex: 1; display: flex; max-width: 560px; margin-inline: auto; }
.search input { border: 2px solid var(--primary); border-right: 0; border-radius: 10px 0 0 10px; padding: 9px 14px; }
.search input:focus { box-shadow: none; }
.search .btn { border-radius: 0 10px 10px 0; padding-inline: 24px; }
.navbar { background: #fff; border-block: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.navbar .nav { min-height: 48px; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text b { font-size: 18px; }
.logo-text small { color: var(--mute); font-size: 11.5px; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); padding: 8px 13px; border-radius: 8px; white-space: nowrap; font-weight: 500; }
.nav a:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.nav a.on { color: var(--primary); background: var(--primary-soft); }
.header-cta { flex-shrink: 0; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 9px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; text-decoration: none !important; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #cfd6e2; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-danger { background: #fff; color: var(--bad); border-color: #e9b4af; }
.btn-danger:hover { background: var(--bad-soft); color: var(--bad); }
.btn-lg { padding: 12px 26px; font-size: 16px; }
.btn-sm { padding: 4px 11px; font-size: 13px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 首页主视觉 */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #3b6cff 0%, transparent 60%), linear-gradient(135deg, #0f1b33 0%, #17306b 55%, #1f47c4 100%); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; padding: 64px 0 68px; }
.eyebrow { font-size: 13.5px; letter-spacing: .08em; color: #b9c9f5; margin-bottom: 10px; }
.eyebrow .todo { letter-spacing: 0; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.22; letter-spacing: -.01em; }
.lead { font-size: 16.5px; color: #d5def5; max-width: 34em; margin: 18px 0 28px; }
.hero-panel { background: #fff; color: var(--ink); border-radius: 16px; padding: 24px 26px; box-shadow: 0 20px 50px rgba(5, 15, 45, .35); }
.hero-panel h2 { font-size: 16px; margin-bottom: 8px; }
.hero-panel dl { margin: 0 0 14px; }
.hero-panel dl div { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.hero-panel dt { color: var(--ink-2); }
.hero-panel dd { margin: 0; font-size: 20px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.hero-panel dd.free { color: var(--ok); }
.hero-panel dd small { font-size: 12.5px; color: var(--mute); font-weight: 400; margin-left: 2px; }
.hero-panel > a { font-weight: 600; font-size: 14px; }

/* 版块 */
.section { padding: 44px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 23px; }
.section-head p { margin: 0; color: var(--mute); font-size: 14px; flex: 1; }
.section-head a { font-size: 14px; font-weight: 600; }
.sub-head { font-size: 17px; margin: 30px 0 16px; }
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 34px 0 30px; }
.page-head h1 { font-size: 29px; margin-bottom: 8px; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 60em; }
.page-head-join { background: linear-gradient(135deg, #0f1b33, #1f47c4); border: 0; color: #fff; padding: 48px 0; }
.page-head-join p { color: #d5def5; margin-bottom: 22px; }
.crumb { font-size: 13.5px; color: var(--mute); margin-bottom: 14px; }
.h-num { font-size: 20px; margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; scroll-margin-top: 90px; }
.h-num i { font-style: normal; width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 15px; }

/* 栅格与卡片 */
.grid { display: grid; gap: 18px; }
.grid + .grid { margin-top: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.wrap > .card, .me > .card, .narrow > .card, .narrow > form.card { margin-top: 18px; }
.card h2 { font-size: 18px; margin-bottom: 14px; }
.card h3 { font-size: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
a.card { color: var(--ink); display: block; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { text-decoration: none; border-color: #b9c8f5; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(34, 81, 232, .12); }
.entry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -78px; }
.entry { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; color: var(--ink); box-shadow: 0 10px 30px rgba(16, 32, 64, .1); transition: transform .15s, border-color .15s; }
.entry:hover { text-decoration: none; transform: translateY(-3px); border-color: #b9c8f5; color: var(--ink); }
.entry-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.entry:nth-child(2) .entry-ico { background: #fff0e6; color: var(--accent); }
.entry h3 { font-size: 17px; margin-bottom: 6px; }
.entry p { color: var(--ink-2); font-size: 14px; margin: 0; }
.article-card h3 { font-size: 16.5px; margin: 10px 0 6px; }
.article-card p { color: var(--ink-2); font-size: 14px; }
.article-card time { color: var(--mute); font-size: 12.5px; }
.article-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.article-meta time { color: var(--mute); font-size: 13px; }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #eef1f6; color: var(--ink-2); white-space: nowrap; }
.tag-pay { background: #fff0e6; color: var(--accent-d); font-weight: 600; }
.tag-free { background: var(--ok-soft); color: var(--ok); }
.shop-card { display: flex; gap: 14px; align-items: flex-start; }
.shop-card h3 { margin-bottom: 2px; }
.shop-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.shop-avatar { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #2251e8, #5b84ff); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; flex-shrink: 0; }
.shop-avatar-lg { width: 68px; height: 68px; font-size: 30px; border-radius: 16px; }
.shop-head { display: flex; gap: 18px; align-items: center; }
.shop-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.listing-card { padding: 0; overflow: hidden; }
.listing-card h3 { font-size: 15px; padding: 12px 16px 0; font-weight: 600; }
.listing-card p { padding: 0 16px; margin: 4px 0 0; }
.listing-card p:last-child { padding-bottom: 14px; }
.listing-img, .item-img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e9eefb, #f6f8fc); display: grid; place-items: center; color: #9aa8c7; font-weight: 600; overflow: hidden; position: relative; }
.img-note { position: absolute; right: 8px; bottom: 8px; font-style: normal; font-size: 11.5px; font-weight: 500; color: #5b6b8c; background: rgba(255, 255, 255, .85); padding: 1px 8px; border-radius: 999px; }
/* 行业资讯：长条列表 */
.news-list { padding: 6px 24px; }
.news-list ol { list-style: none; margin: 0; padding: 0; }
.news-list li + li { border-top: 1px dashed var(--line); }
.news-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; color: var(--ink); }
.news-row:hover { text-decoration: none; color: var(--primary); }
.news-no { width: 26px; height: 26px; border-radius: 7px; background: #eef1f6; color: var(--ink-2); font-size: 13px; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.news-list li:nth-child(-n+3) .news-no { background: var(--primary); color: #fff; }
.news-title { flex: 1; min-width: 0; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.news-meta time { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.news-count { text-align: center; margin: 14px 0 0; }
/* 付费弹窗 */
.pay-dialog { border: 0; border-radius: 16px; padding: 28px 30px 22px; width: min(400px, calc(100vw - 32px)); text-align: center; box-shadow: 0 24px 70px rgba(10, 20, 50, .35); color: var(--ink); }
.pay-dialog::backdrop { background: rgba(12, 20, 40, .55); }
.pd-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; color: var(--mute); cursor: pointer; }
.pd-close:hover { background: var(--bg); color: var(--ink); }
.pd-kicker { display: inline-block; margin: 0 0 10px; padding: 2px 12px; border-radius: 999px; background: #fff0e6; color: var(--accent-d); font-size: 13px; font-weight: 600; }
.pay-dialog h2 { font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
.pd-price { margin: 0 0 12px; color: var(--ink-2); }
.pd-price b { font-size: 28px; color: var(--accent); font-variant-numeric: tabular-nums; }
.pd-qr { display: inline-block; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; line-height: 0; }
.pd-qr img { display: block; }
.pd-hint { margin: 10px 0 14px; font-weight: 600; }
.pay-dialog .mute { margin: 12px 0 0; }
.paywall .pd-qr { margin-top: 4px; }
.paywall .pd-hint { margin-bottom: 4px; }
/* 首页商品展示区：按类目分楼层 */
.floor + .floor { margin-top: 34px; }
.floor-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.floor-head h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.floor-head h2 i { font-style: normal; background: var(--primary); color: #fff; font-size: 13px; padding: 3px 9px; border-radius: 6px; }
.floor-head a { font-size: 14px; font-weight: 600; }
.floor .empty { padding: 18px 0; }
/* 商品详情页 */
.gallery { min-width: 0; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumb { width: 68px; height: 52px; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.thumb.on { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-kv { margin: 14px 0 4px; }
.item-cols { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.item-cols .card + .card { margin-top: 18px; }
.owner-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.listing-img img, .item-img img { width: 100%; height: 100%; object-fit: cover; }
.price { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.price small { color: var(--mute); font-weight: 400; }
.price-lg { font-size: 26px; }
.stat h3 { font-size: 14px; color: var(--mute); font-weight: 500; }
.stat p { margin: 6px 0; }
.stat b { font-size: 22px; }
.stat a { font-size: 13.5px; font-weight: 600; }
a.stat { color: var(--ink); }
.cond h3 { margin-bottom: 8px; color: var(--primary); }
.cond p { margin: 0; font-size: 14px; color: var(--ink-2); }
.doc-list { margin-top: 18px; }
.doc-list ul { margin: 10px 0 0; padding-left: 1.3em; color: var(--ink-2); }
.link-card h3 { color: var(--primary); margin-bottom: 6px; }
.link-card p { margin: 0 0 4px; color: var(--ink-2); font-size: 14px; }
.cta-band { margin-top: 26px; background: linear-gradient(135deg, #0f1b33, #1f47c4); border-radius: 16px; padding: 30px 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: #fff; }
.cta-band h2 { font-size: 22px; }
.msg-card { text-align: center; padding: 44px 28px; margin-top: 10px; }
.msg-card h1, .msg-card h2 { font-size: 23px; margin-bottom: 10px; }
.msg-card .btn-row { justify-content: center; margin: 22px 0 6px; }
.side-card h3 { margin-bottom: 12px; }

/* 入驻步骤 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; position: relative; }
.section-alt .steps li { background: var(--bg); }
.steps b { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 14px; margin-bottom: 10px; }
.steps h3 { font-size: 15.5px; margin-bottom: 4px; }
.steps p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 32px; right: -11px; width: 8px; height: 8px; border-top: 2px solid #b6c2d9; border-right: 2px solid #b6c2d9; transform: rotate(45deg); z-index: 1; }

/* 标签筛选、分页、徽标、提示 */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chips a { padding: 5px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.chips a:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.chips a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; }
.pager a, .pager span { min-width: 36px; padding: 5px 11px; text-align: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.pager .on { background: var(--primary); color: #fff; border-color: var(--primary); }
.badge { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-mute { background: #eef1f6; color: var(--mute); }
.notice { border-radius: 10px; padding: 11px 16px; margin: 0 0 18px; background: var(--primary-soft); color: #1d3a99; border: 1px solid #cdd9fb; font-size: 14px; }
.notice-warn { background: var(--warn-soft); color: #7a4a00; border-color: #f3d48a; }
.notice-ok { background: var(--ok-soft); color: #0b6644; border-color: #b5e4cf; }
.flash { margin: 16px 0 0; padding: 11px 16px; border-radius: 10px; font-weight: 500; }
.flash-ok { background: var(--ok-soft); color: #0b6644; border: 1px solid #b5e4cf; }
.flash-err { background: var(--bad-soft); color: #9b241c; border: 1px solid #f2c0bb; }

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #f7f9fc; color: var(--ink-2); font-weight: 600; white-space: nowrap; font-size: 13.5px; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
table.tariff td:first-child { font-weight: 600; white-space: nowrap; }
table.tariff td:nth-child(3) { white-space: nowrap; }
table.tariff small { color: var(--mute); white-space: normal; }
.kv-table th { width: 30%; background: #f7f9fc; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
td.acts { white-space: nowrap; }
td.acts form, td.acts a { display: inline-block; margin: 0 4px 4px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 14px; }
.kv dt { color: var(--mute); white-space: nowrap; }
.kv dd { margin: 0; word-break: break-all; }
.kv-row { grid-template-columns: repeat(4, auto 1fr); margin: 0; }
.pub-info { padding: 16px 22px; }
.plain-list { margin: 0; padding-left: 1.2em; }
.plain-list li { padding: 3px 0; }

/* 表单 */
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.form-1 { grid-template-columns: 1fr; }
.form .full { grid-column: 1 / -1; }
.form h2.full { font-size: 16px; margin: 6px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); }
.form h2.full:first-of-type { border-top: 0; padding-top: 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form label small { font-weight: 400; color: var(--mute); }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 9px 12px; border: 1px solid #cfd6e2; border-radius: 9px; background: #fff; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34, 81, 232, .15); }
input:disabled { background: #f3f5f9; color: var(--mute); }
input[type=file] { padding: 7px; }
input[type=checkbox] { width: 17px; height: 17px; flex-shrink: 0; margin: 3px 0 0; accent-color: var(--primary); }
textarea { resize: vertical; line-height: 1.6; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 400; color: var(--ink); }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha { height: 40px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; flex-shrink: 0; }
.fee-recap { background: #fff7f0; border: 1px solid #ffd9bd; border-radius: 10px; padding: 11px 16px; font-size: 14px; }
.auth { display: grid; place-items: center; min-height: 52vh; }
.auth-card { width: min(420px, 100%); padding: 32px; }
.auth-card h1 { font-size: 24px; margin-bottom: 20px; }
.auth-alt { margin: 18px 0 6px; text-align: center; }
.order-form { margin: 18px 0 12px; grid-template-columns: repeat(3, 1fr); }
details.danger { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
details.danger summary { cursor: pointer; color: var(--bad); font-weight: 600; }
details.danger p { margin: 10px 0 14px; color: var(--ink-2); font-size: 14px; }
.act-col { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.act-col form.form { width: min(520px, 100%); }

/* 正文、协议、付费墙 */
.article h1 { font-size: 26px; margin-bottom: 12px; }
.article .article-meta { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.prose { font-size: 15.5px; line-height: 1.85; }
.prose h2 { font-size: 19px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 16.5px; margin: 1.3em 0 .5em; }
.prose h4 { font-size: 15.5px; margin: 1.1em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; margin: 0 0 .8em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 0 0 1em; padding: 10px 16px; background: var(--primary-soft); border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; color: #24407f; font-size: 14.5px; }
.prose .table-wrap { margin: 0 0 1em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.legal .prose p { margin-bottom: .55em; }
.preview { position: relative; max-height: 150px; overflow: hidden; }
.preview::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #fff); }
.paywall { margin-top: 8px; border: 1px dashed #f5b98f; background: #fffaf5; border-radius: 12px; padding: 24px; text-align: center; }
.paywall h2 { font-size: 17px; margin-bottom: 6px; }
.paywall-price { color: var(--ink-2); }
.paywall-price b { font-size: 28px; color: var(--accent); }
.paywall .btn-row { justify-content: center; margin: 14px 0; }
.pay-methods { display: grid; gap: 14px; margin: 14px 0 18px; }
.pay-method { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.pay-method h3 { margin-bottom: 8px; }
.pay-demo { border-style: dashed; border-color: #e3c34d; background: #fffbea; }
.card > h2 + .pay-methods { margin-top: 0; }
.kv-table + h2, .table-wrap + h2 { margin-top: 24px; }
.item-layout { display: grid; gap: 18px; }
.item-main { display: grid; grid-template-columns: 380px 1fr; gap: 28px; padding: 24px; }
.item-img { border-radius: 10px; font-size: 20px; }
.item-info h1 { font-size: 23px; margin-bottom: 8px; }
.license-img { margin: 18px 0 0; }
.license-img img { max-height: 420px; border: 1px solid var(--line); border-radius: 8px; }
.license-img figcaption { color: var(--mute); font-size: 13px; }

/* 页脚 */
.footer { background: var(--navy); color: #aab6d0; margin-top: 24px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 40px 0 30px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-cols a { display: block; color: #aab6d0; padding: 3px 0; }
.footer-cols a:hover { color: #fff; }
.footer-cols p { margin: 0; padding: 3px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0 22px; font-size: 13px; text-align: center; }
.footer-bottom p { margin: 3px 0; }
.footer-bottom a { color: #aab6d0; }
.footer-bottom i { font-style: normal; margin: 0 10px; opacity: .4; }

/* 管理后台 */
body.admin { display: grid; grid-template-columns: 200px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-side a { color: #b9c4dc; padding: 9px 14px; border-radius: 8px; }
.admin-side a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.admin-side a.on { background: var(--primary); color: #fff; }
.admin-brand { font-weight: 700; font-size: 17px; color: #fff !important; margin-bottom: 10px; }
.admin-back { margin-top: auto; font-size: 13.5px; }
.admin-main { padding: 26px 32px 60px; min-width: 0; }
.admin-main > h1 { font-size: 23px; margin-bottom: 18px; }
.admin-main h2 { font-size: 17px; margin: 24px 0 10px; }
.admin-main .card { margin-top: 16px; }
.admin-main .card h2 { margin-top: 0; }
.admin-main .grid { margin-bottom: 16px; }
.admin-main .grid .card { margin-top: 0; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 96px; }
  .entry-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .shop-layout, .item-main, .item-cols { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .kv-row { grid-template-columns: auto 1fr; }
  .header .wrap { flex-wrap: wrap; gap: 10px 16px; padding-block: 12px; min-height: 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-cta { margin-left: auto; }
  body.admin { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; }
  .admin-back { margin-top: 0; }
  .admin-main { padding: 20px 16px 48px; }
}
@media (max-width: 600px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .entry-grid, .grid-2, .grid-3, .grid-4, .steps, .form, .order-form, .footer-cols { grid-template-columns: 1fr; }
  .news-list { padding: 4px 16px; }
  .news-row { flex-wrap: wrap; gap: 6px 10px; }
  .news-title { flex-basis: calc(100% - 40px); white-space: normal; }
  .news-meta { margin-left: 36px; }
  .grid:has(> .listing-card) { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .listing-card { padding: 0; }
  .section { padding: 32px 0; }
  .card:not(.listing-card) { padding: 18px; }
  .logo-text small { display: none; }
  .logo { flex: 1; min-width: 0; }
  .logo-text b { font-size: 15px; line-height: 1.3; }
  .topbar-left { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .cta-band { padding: 24px; }
  .footer-bottom i { margin: 0 6px; }
}
