/*!
 * TG 卡发商城 · 极简表格版
 * 设计原则：1px 线 + 4px 圆角 + 无阴影 + 高信息密度
 */

:root {
	--bg: #f7f8fa;
	--card: #ffffff;
	--line: #e5e7eb;
	--line-2: #f1f3f5;
	--ink: #111827;
	--ink-2: #374151;
	--muted: #6b7280;
	--dim: #9ca3af;
	--primary: #1f6feb;
	--primary-dark: #1a5fcc;
	--primary-soft: #eef4ff;
	--red: #dc2626;
	--red-soft: #fef2f2;
	--green: #059669;
	--green-soft: #ecfdf5;
	--amber: #b45309;
	--amber-soft: #fffbeb;
	--r: 4px;
	--box: 1180px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Roboto, Arial, sans-serif;
	--mono: "SFMono-Regular", Consolas, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 13.5px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 600; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: 12px; }
button { font-family: inherit; cursor: pointer; }
del { color: var(--dim); }
.sr, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip:focus { position: fixed; left: 8px; top: 8px; width: auto; height: auto; clip: auto; background: #fff; border: 1px solid var(--line); padding: 6px 12px; z-index: 99; }

.box { max-width: var(--box); margin: 0 auto; padding: 0 16px; }
.main { padding-top: 16px; padding-bottom: 24px; }
.ico { width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -0.12em; }
.dim { color: var(--dim); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 14px; border: 1px solid transparent; border-radius: var(--r); font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--line { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn--line:hover { border-color: var(--primary); color: var(--primary); }
.btn--xs { padding: 4px 10px; font-size: 12px; }
.btn--sm { padding: 6px 12px; font-size: 12.5px; }
.btn--lg { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.mini { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r); font-size: 12px; color: var(--ink-2); background: #fff; }
.mini:hover { border-color: var(--primary); color: var(--primary); }

/* 顶条 */
.strip { background: var(--amber-soft); border-bottom: 1px solid #fde68a; }
.strip__in { display: flex; align-items: center; gap: 10px; padding: 6px 16px; font-size: 12.5px; }
.strip__tag { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--amber); border: 1px solid #fcd34d; border-radius: 3px; padding: 0 5px; background: #fff; }
.strip__text { flex: 1 1 auto; color: #7c4a03; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.strip__link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #7c4a03; }

/* 头部 */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.top__in { display: flex; align-items: center; gap: 18px; min-height: 54px; }
.logo { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.logo__sq { width: 28px; height: 28px; border-radius: var(--r); background: var(--primary); color: #fff; display: grid; place-items: center; }
.logo__sq .ico { width: 15px; height: 15px; }
.logo b { font-size: 14px; color: var(--ink); font-weight: 600; }
.top__nav { flex: 1 1 auto; }
.nav { display: flex; align-items: center; gap: 1px; }
.nav li a { display: inline-block; padding: 6px 10px; font-size: 13px; color: var(--ink-2); border-radius: var(--r); }
.nav li a:hover, .nav .current-menu-item > a { background: var(--primary-soft); color: var(--primary); }
.top__right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.q { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.q:focus-within { border-color: var(--primary); }
.q input { width: 150px; border: 0; outline: none; padding: 5px 9px; font-size: 12.5px; font-family: inherit; color: var(--ink); background: none; }
.q button { border: 0; background: none; padding: 5px 8px; color: var(--muted); display: grid; place-items: center; }
.q button:hover { color: var(--primary); }
.burger { display: none; width: 32px; height: 28px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; flex-direction: column; justify-content: center; gap: 4px; padding: 0 6px; }
.burger span { display: block; height: 2px; background: var(--ink-2); border-radius: 1px; transition: transform .2s, opacity .2s; }
.burger.is-on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-on span:nth-child(2) { opacity: 0; }
.burger.is-on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 首页 intro */
.intro { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.intro__title { font-size: 19px; margin-bottom: 4px; }
.intro__desc { font-size: 13px; color: var(--muted); }
.intro__stats { display: flex; gap: 0; flex: 0 0 auto; }
.intro__stats > div { padding: 0 16px; border-left: 1px solid var(--line-2); text-align: center; }
.intro__stats > div:first-child { border-left: 0; }
.intro__stats dt { font-size: 11.5px; color: var(--muted); }
.intro__stats dd { margin: 0; font-size: 18px; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }
.intro__stats dd i { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 1px; font-weight: 400; }

/* 分类 tab */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tabs--sub { margin-top: 10px; }
.tab { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 12.5px; color: var(--ink-2); }
.tab em { font-style: normal; font-size: 11px; color: var(--dim); }
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab.is-on em { color: rgba(255,255,255,.75); }

/* 布局 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 12px; align-items: start; }
.layout__side { display: flex; flex-direction: column; gap: 12px; }

/* 卡片 */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.card__title { font-size: 13.5px; font-weight: 600; }
.card__hint { font-size: 11.5px; color: var(--dim); }
.card__tools { display: flex; gap: 6px; }
.card__body { padding: 14px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--muted); }
.card--side { margin-bottom: 0; }
.card--side .card__title { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.card--support { padding: 14px; }
.card--support .card__title { padding: 0 0 8px; border: 0; }

/* 表格 */
.tablewrap { width: 100%; overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ptable th, .ptable td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.ptable thead th { background: #fafbfc; color: var(--muted); font-size: 11.5px; font-weight: 500; white-space: nowrap; border-bottom: 1px solid var(--line); }
.ptable tbody tr:hover { background: #fafcff; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable .c-no { width: 44px; color: var(--dim); font-variant-numeric: tabular-nums; }
.prow__no { color: var(--dim); font-variant-numeric: tabular-nums; }
.prow__name { display: flex; align-items: center; gap: 8px; }
.prow__thumb { width: 26px; height: 26px; border-radius: 4px; flex: 0 0 auto; background: var(--c); display: grid; place-items: center; }
.prow__thumb img { width: 15px; height: 15px; }
.prow__thumb b { color: #fff; font-size: 10px; font-weight: 700; }
.prow__text { display: flex; flex-direction: column; min-width: 0; }
.prow__title { font-size: 13px; font-weight: 500; color: var(--ink); }
.prow__title:hover { color: var(--primary); }
.prow__feat { font-size: 11.5px; color: var(--dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 34ch; }
.prow__badge { flex: 0 0 auto; font-size: 10.5px; padding: 0 5px; border-radius: 3px; background: var(--primary-soft); color: var(--primary); border: 1px solid #d3e3fd; line-height: 1.6; }
.prow__specs strong { font-size: 13px; }
.prow__specs span { display: block; font-size: 11px; color: var(--dim); }
.prow__price strong { font-size: 14px; color: var(--red); font-variant-numeric: tabular-nums; }
.prow__price span { display: block; font-size: 11px; color: var(--dim); }
.prow__price em { font-style: normal; font-size: 10.5px; color: var(--green); background: var(--green-soft); border-radius: 3px; padding: 0 4px; }
.prow__stock span { font-variant-numeric: tabular-nums; }
.prow__stock .is-low { color: var(--red); font-weight: 600; }
.prow__act { width: 74px; text-align: right; }
.ptable--price td strong, .ptable--price td .off { color: var(--red); font-weight: 600; }
.ptable--price .off { color: var(--green); background: var(--green-soft); border-radius: 3px; padding: 0 4px; font-size: 11px; }
.ptable--flow code { color: var(--ink-2); }
.ptable--flow .ok { color: var(--green); font-size: 11.5px; }

/* 紧凑视图 */
.compact { display: flex; flex-direction: column; gap: 6px; }
.crow { display: grid; grid-template-columns: 4px minmax(0, 1fr) 64px 96px 88px 62px; align-items: center; gap: 10px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); font-size: 12.5px; color: var(--ink); }
.crow:hover { border-color: var(--primary); }
.crow__dot { width: 4px; height: 22px; border-radius: 2px; }
.crow__name { font-size: 13px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crow__spec, .crow__stock { color: var(--dim); font-size: 11.5px; }
.crow__price { color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.crow__price em { font-style: normal; font-size: 10.5px; color: var(--dim); font-weight: 400; }

/* 笔记 */
.notes { display: flex; flex-direction: column; }
.note { display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); align-items: start; }
.note:last-child { border-bottom: 0; }
.note__no { font-family: var(--mono); font-size: 11.5px; color: var(--dim); padding-top: 2px; }
.note__meta { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--dim); margin-bottom: 3px; }
.note__cat { color: var(--primary); }
.note__title { font-size: 13.5px; margin-bottom: 3px; }
.note__title a { color: var(--ink); }
.note__title a:hover { color: var(--primary); }
.note__desc { font-size: 12px; color: var(--muted); line-height: 1.65; }
.note__go { color: var(--dim); padding-top: 4px; }
.note:hover .note__go { color: var(--primary); }

/* 区块 */
.block { margin-bottom: 12px; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.block__title { font-size: 14px; }

/* 侧栏小件 */
.rank { padding: 6px 0; }
.rank li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 14px; font-size: 12.5px; }
.rank__no { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.rank li a { color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rank li a:hover { color: var(--primary); }
.rank li b { color: var(--red); font-size: 12px; font-variant-numeric: tabular-nums; }
.pays { display: flex; flex-wrap: wrap; gap: 5px; }
.pays--side { flex-direction: column; padding: 10px 14px; }
.pay { display: inline-flex; align-items: center; font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 3px; padding: 1px 7px; background: #fafbfc; }
.pay--on { display: flex; flex-direction: column; align-items: flex-start; border: 0; background: none; padding: 3px 0; gap: 0; }
.pay--on b { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.pay--on em { font-style: normal; font-size: 11px; color: var(--dim); }
.support__text { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.support__text strong { color: var(--ink); }
.support__time { margin-top: 8px; font-size: 11px; color: var(--dim); text-align: center; }
.side-list { padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.side-list li { position: relative; padding-left: 12px; font-size: 12px; color: var(--muted); }
.side-list li::before { content: "·"; position: absolute; left: 2px; color: var(--primary); font-weight: 700; }
.side-text { padding: 10px 14px 0; font-size: 12px; color: var(--muted); }
.side-time { padding: 8px 14px 12px; font-size: 11px; color: var(--dim); text-align: center; }
.card--side .btn { margin: 0 14px 10px; width: calc(100% - 28px); }
.card--support .btn { margin: 0; width: 100%; }

/* 面包屑 / 标题条 */
.crline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0 8px; font-size: 12px; color: var(--dim); }
.crline a { color: var(--muted); }
.crline a:hover { color: var(--primary); }
.crline em { font-style: normal; color: var(--ink-2); }
.bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 0 10px; }
.bar__title { font-size: 18px; }
.bar__count { font-size: 12px; color: var(--muted); }
.bar__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bar__note { font-size: 11.5px; color: var(--dim); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.seg__btn { padding: 4px 10px; font-size: 12px; color: var(--ink-2); }
.seg__btn + .seg__btn { border-left: 1px solid var(--line); }
.seg__btn.is-on { background: var(--primary); color: #fff; }
.sorts { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.sort { padding: 3px 9px; font-size: 12px; color: var(--ink-2); border: 1px solid transparent; border-radius: var(--r); }
.sort:hover { background: var(--primary-soft); color: var(--primary); }
.sort.is-on { border-color: #d3e3fd; background: var(--primary-soft); color: var(--primary); }

/* 商品详情 */
.goods { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 12px; }
.goods__left { display: flex; flex-direction: column; gap: 12px; }
.goods__media { aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fafbfc; display: grid; place-items: center; }
.goods__media img { width: 100%; height: 100%; object-fit: cover; }
.goods__title { font-size: 19px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.goods__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.goods__price strong { font-size: 26px; color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.goods__price em { font-style: normal; font-size: 12px; color: var(--dim); }
.goods__price del { font-size: 12px; }
.goods__price .off { font-size: 11.5px; color: var(--green); background: var(--green-soft); border-radius: 3px; padding: 0 5px; }
.goods__stock { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); padding: 8px 0; }
.goods__stock .ico { color: var(--green); }
.goods__feats { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; }
.goods__feats li { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.goods__feats .ico { width: 13px; height: 13px; color: var(--green); margin-top: 3px; }

.buy { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: #fcfdff; }
.buy__row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 9px; }
.buy__row > label { font-size: 12px; color: var(--muted); }
.buy__row select, .buy__row input[type="text"] { width: 100%; padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--r); font-family: inherit; font-size: 12.5px; color: var(--ink); background: #fff; outline: none; }
.buy__row select:focus, .buy__row input:focus { border-color: var(--primary); }
.buy__row--qty { grid-template-columns: 76px auto minmax(0, 1fr); }
.steps { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.steps button { width: 28px; height: 28px; border: 0; background: #fafbfc; color: var(--ink-2); font-size: 14px; line-height: 1; }
.steps button:hover { background: var(--primary-soft); color: var(--primary); }
.steps input { width: 52px; height: 28px; border: 0; border-inline: 1px solid var(--line); text-align: center; font-family: inherit; font-size: 12.5px; outline: none; -moz-appearance: textfield; }
.steps input::-webkit-outer-spin-button, .steps input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy__hint { font-size: 11px; color: var(--dim); }
.radios { display: flex; flex-wrap: wrap; gap: 6px; }
.radio { display: inline-flex; cursor: pointer; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio span { display: flex; flex-direction: column; padding: 4px 9px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.radio b { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.radio em { font-style: normal; font-size: 10.5px; color: var(--dim); }
.radio input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.radio input:checked + span b { color: var(--primary); }
.radio input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }
.buy__sum { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 0; border-top: 1px dashed var(--line); margin: 3px 0 10px; }
.buy__sum span { font-size: 12px; color: var(--muted); }
.buy__sum strong { font-size: 21px; color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.buy__note { margin-top: 8px; font-size: 11px; color: var(--dim); line-height: 1.6; }

/* 结果区 */
.result { margin-top: 10px; border: 1px solid #d3e3fd; border-radius: var(--r); background: #f7faff; padding: 12px; }
.res__head { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.res__ok { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 12px; flex: 0 0 auto; }
.res__head b { font-size: 13px; }
.res__head p { font-size: 11.5px; color: var(--muted); }
.res__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 12px; color: var(--muted); }
.res__row code { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; word-break: break-all; }
.res__row strong { color: var(--ink); font-weight: 500; text-align: right; }
.res__row strong.ok { color: var(--green); }
.res__hint { margin: 7px 0 9px; padding: 7px 9px; border-radius: 3px; border: 1px dashed #fcd34d; background: var(--amber-soft); color: #7c4a03; font-size: 11.5px; line-height: 1.6; white-space: pre-line; }
.res__note { margin-top: 7px; font-size: 11px; color: var(--dim); line-height: 1.6; }
.res__err { font-size: 12.5px; color: var(--red); }
.cards { display: flex; flex-direction: column; gap: 5px; margin: 8px 0; max-height: 240px; overflow-y: auto; }
.card-line { display: block; font-size: 11.5px; color: #065f46; background: #fff; border: 1px solid #a7f3d0; border-radius: 3px; padding: 5px 8px; word-break: break-all; }

/* 参数表 */
.kv { width: 100%; border-collapse: collapse; font-size: 12px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.kv caption { text-align: left; padding: 8px 12px; font-size: 12.5px; font-weight: 600; background: #fafbfc; border-bottom: 1px solid var(--line); }
.kv th, .kv td { padding: 7px 12px; border-bottom: 1px solid var(--line-2); text-align: left; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv th { width: 40%; color: var(--muted); font-weight: 400; background: #fcfdfe; }

/* FAQ */
.qa { border-bottom: 1px solid var(--line-2); }
.qa:last-child { border-bottom: 0; }
.qa summary { display: flex; align-items: center; gap: 9px; padding: 10px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa__no { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.qa__q { flex: 1 1 auto; font-size: 13px; font-weight: 500; }
.qa__mark { position: relative; width: 11px; height: 11px; flex: 0 0 auto; }
.qa__mark::before, .qa__mark::after { content: ""; position: absolute; background: var(--muted); }
.qa__mark::before { left: 0; right: 0; top: 5px; height: 1.5px; }
.qa__mark::after { top: 0; bottom: 0; left: 5px; width: 1.5px; }
.qa[open] .qa__mark::after { display: none; }
.qa__a { padding: 0 0 10px 20px; }
.qa__a p { font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* 数据 / 水位 */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.num { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-align: center; }
.num strong { display: block; font-size: 20px; color: var(--primary); font-weight: 600; }
.num span { font-size: 11.5px; color: var(--muted); }
.water { display: flex; flex-direction: column; gap: 9px; }
.water__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 12px; }
.water__name { color: var(--ink-2); }
.water__bar { height: 6px; background: #f1f3f5; border-radius: 3px; overflow: hidden; }
.water__bar i { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.water__bar i.is-low { background: var(--red); }
.water__num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.water__num.is-low { color: var(--red); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--green); background: var(--green-soft); border: 1px solid #a7f3d0; border-radius: 999px; padding: 2px 9px; }
.live i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: tgtp 1.6s infinite; }
@keyframes tgtp { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* 笔记详情 */
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 12px; }
.post__head { border-bottom: 1px solid var(--line-2); padding-bottom: 12px; margin-bottom: 14px; }
.post__meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--dim); margin-bottom: 6px; }
.post__cat { color: var(--primary); }
.post__title { font-size: 21px; margin-bottom: 6px; }
.post__desc { font-size: 13px; color: var(--muted); }
.post__cover { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.post__body { max-width: 760px; }
.post__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.tagchip { font-size: 11.5px; color: var(--muted); background: #fafbfc; border: 1px solid var(--line); border-radius: 3px; padding: 1px 7px; }

/* 正文 */
.entry { font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.entry > * + * { margin-top: .9em; }
.entry h2 { font-size: 15px; margin-top: 1.4em; }
.entry h3 { font-size: 14px; margin-top: 1.2em; }
.entry p { margin: 0; }
.entry a { text-decoration: underline; text-underline-offset: 2px; }
.entry ul { list-style: disc; padding-left: 1.3em; }
.entry ol { list-style: decimal; padding-left: 1.3em; }
.entry code { background: #f1f3f5; padding: 0 4px; border-radius: 2px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.entry th, .entry td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; }
.entry th { background: #fafbfc; }
.entry blockquote { margin: 1em 0; padding: 8px 12px; border-left: 2px solid var(--primary); background: var(--primary-soft); }

/* 空态 / 分页 */
.empty-cell { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 12.5px; }
.empty-cell p { margin-bottom: 10px; }
.pager { padding: 14px 0 4px; }
.pager .nav-links { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 12px; color: var(--ink-2); }
.pager .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pager .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .dots { border: 0; }

/* 404 */
.nf { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 48px 20px; text-align: center; }
.nf__code { font-family: var(--mono); font-size: 56px; font-weight: 600; color: var(--line); line-height: 1; margin-bottom: 6px; }
.nf h1 { font-size: 18px; margin-bottom: 6px; }
.nf__desc { font-size: 13px; color: var(--muted); max-width: 460px; margin: 0 auto 16px; }
.nf__acts { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.nf__search { display: flex; gap: 6px; max-width: 340px; margin: 0 auto; }
.nf__search input { flex: 1 1 auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r); font-family: inherit; font-size: 12.5px; outline: none; }
.nf__search input:focus { border-color: var(--primary); }

/* 品牌兜底封面 */
.cov { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--c); }
.cov img { width: 34%; height: 34%; max-width: 140px; max-height: 140px; }
.cov b { color: #fff; font-size: 22px; }

/* 页脚 */
.foot { background: #fff; border-top: 1px solid var(--line); margin-top: 8px; }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 24px; padding: 22px 16px 16px; }
.foot__about .logo { margin-bottom: 8px; }
.foot__desc { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.foot__rank { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--dim); flex-wrap: wrap; }
.foot__rank i { width: 1px; height: 10px; background: var(--line); }
.foot__col dt { font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.foot__col dd { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin: 0 0 5px; }
.foot__col dd a { color: var(--muted); }
.foot__col dd a:hover { color: var(--primary); }
.foot__col dd em { font-style: normal; color: var(--dim); font-size: 10.5px; }
.foot__note { font-size: 11px; color: var(--dim); margin-top: 8px; line-height: 1.7; }
.foot__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--dim); }

/* 性能标记 */
.perf-mark { position: fixed; right: 8px; bottom: 8px; z-index: 50; font-family: var(--mono); font-size: 10.5px; color: #fff; background: rgba(17, 24, 39, .72); border-radius: 3px; padding: 2px 7px; }

/* 响应式 */
@media (max-width: 1020px) {
	.layout { grid-template-columns: 1fr; }
	.layout__side { flex-direction: row; flex-wrap: wrap; }
	.layout__side > .card { flex: 1 1 240px; }
	.intro { grid-template-columns: 1fr; }
	.intro__stats { flex-wrap: wrap; justify-content: flex-start; }
	.goods { grid-template-columns: 300px minmax(0, 1fr); }
	.foot__in { grid-template-columns: 1fr 1fr; }
	.nums { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.q { display: none; }
	.burger { display: flex; }
	.top__nav { position: fixed; left: 0; right: 0; top: 54px; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 16px 12px; display: none; z-index: 29; }
	.top__nav.is-open { display: block; }
	.nav { flex-direction: column; align-items: stretch; }
	.nav li a { padding: 9px 8px; font-size: 14px; }
	.goods { grid-template-columns: 1fr; }
	.goods__left { order: 2; }
	.prow__feat { display: none; }
}

@media (max-width: 620px) {
	.box { padding: 0 12px; }
	.intro { padding: 12px; }
	.intro__title { font-size: 16px; }
	.intro__stats > div { padding: 0 10px; }
	.intro__stats dd { font-size: 15px; }
	.ptable th, .ptable td { padding: 8px 8px; }
	.ptable thead th:nth-child(3), .ptable .prow__specs { display: none; }
	.crow { grid-template-columns: 4px minmax(0, 1fr) 84px 54px; }
	.crow__spec, .crow__stock { display: none; }
	.bar__title { font-size: 16px; }
	.buy__row, .buy__row--qty { grid-template-columns: 1fr; }
	.buy__hint { margin-top: 2px; }
	.foot__in { grid-template-columns: 1fr; gap: 16px; }
	.water__row { grid-template-columns: 76px minmax(0, 1fr) 44px; }
	.nums { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
