/* Pivlu 预览 v3 — 组件层。统一字号下限（12px）、点按尺寸（≥36px）、按钮 / 标签 / 卡片 / 输入 / 表格 / 区块标题。最后加载，覆盖各页零散写法。 */

/* 字号层级 */
h1,h2,h3{overflow-wrap:anywhere}
.page-h h1,.lib-h h1,.design-head h1,.hub-head h1,.preview-intro h1{font:700 var(--fs-h1)/1.15 var(--serif);letter-spacing:-.01em;margin:0}
.sec-h h2,.design-head h2,.hub-section>h2,.hub-approved h2,.dsec>h2,.qbar h2,.day-h h3{font:700 var(--fs-h2)/1.3 var(--serif);letter-spacing:0}
.sec-h p,.page-h p,.design-head p,.hub-lead{font-size:var(--fs-body)}
.preview-counts small,.home-counts small{font-size:12px!important;line-height:1.35}
.fi .meta,.row .t3,.stats .k,.kpis .k,.facts .k{font-size:12.5px}
.hub-approved .data-table{font-size:13px}
body{font-size:var(--fs-body)}

/* 按钮：默认 40，小号 36，大号 48，图标钮 36 */
.btn{height:40px;min-height:40px;padding:0 16px;border-radius:999px;font-size:14px;font-weight:600;gap:8px}
.btn.sm{height:36px;min-height:36px;padding:0 13px;font-size:13.5px}
.btn.lg{height:48px;min-height:48px;padding:0 22px;font-size:15px}
.btn.icon{width:36px;min-width:36px;padding:0;font-size:20px;font-weight:400}
.btn.ink{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.ink:hover{background:#2a2e34;border-color:#2a2e34}
.btn.brand{background:var(--brand);border-color:var(--brand);color:#fff}
.btn.brand:hover{background:var(--brand2);border-color:var(--brand2)}
.btn.ghost{background:transparent}
.btn:disabled{opacity:.5;cursor:default}
/* 文字型“更多”链接，手机上做成可点的胶囊 */
.more,.focus-more,.hub-back,.design-back,.back{display:inline-flex;align-items:center;min-height:36px;font-size:14px;font-weight:600;color:var(--brand)}
.sec-h .more{padding:0 2px}
/* 筛选胶囊、页签、分段控件一律 ≥36px */
.design-chip,.chips button,.flowtabs button,.hub-chips .btn,.presets button,.seg button,.design-switch button,.ctrls .seg button,.qchip{min-height:36px}
.design-chip{padding:0 13px;font-size:13px}
.seg,.design-switch{padding:3px;border-radius:12px}
.seg button,.design-switch button{height:36px;border-radius:9px;font-size:13.5px;padding:0 12px}
.chips button{height:36px;font-size:13.5px}
.style-heart,.icb{width:36px;height:36px}
.style-swatches button{min-height:24px}
.style-swatches i{width:16px;height:16px;border-radius:5px}
.drawer-toggle{width:38px;height:38px}
.linkbtn{min-height:36px;display:inline-flex;align-items:center}
.sel select{height:38px}
.hub-filter-form input,.hub-filter-form select,.design-fields input,.design-fields select{min-height:40px}
/* 标签 */
.pill{height:24px;padding:0 9px;font-size:12px;border-radius:999px}
.pill.ios::before,.pill.and::before{width:11px;height:11px}
.nav-new{font-size:12px}
.grade{width:22px;height:22px;font-size:12px}
.gr{font-size:12.5px;padding:6px 8px}
/* 卡片 */
.card{border-radius:var(--r);border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow)}
.card:hover{border-color:var(--line2)}
.hub-card,.selection-card,.direction-card,.style-card,.flow-row,.board-item,.me-list,.rise-col{border-radius:var(--r)}
.empty{border-radius:var(--r);background:var(--surface);border:1px dashed var(--line2)}
/* 输入 */
.sfield{border:1.5px solid var(--line2);border-radius:16px;box-shadow:var(--shadow)}
.sfield:focus-within{border-color:var(--ink);box-shadow:0 0 0 4px rgba(15,92,67,.10)}
.sfield .go{background:var(--ink);border-radius:12px}
.sug{border-radius:var(--r);box-shadow:var(--shadow-pop)}
.sug .it{min-height:56px;border-radius:12px}
.sug .it.on,.sug .it:hover{background:var(--sunk)}
/* 表格：手机上不挤字，放在可横向滑动的容器里 */
.table-wrap,.scrollx{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
.hub-approved .data-table th,.hub-approved .data-table td{white-space:nowrap}
.hub-approved .data-table td:first-child,.hub-approved .data-table th:first-child,.hub-approved .data-table td:nth-child(2),.hub-approved .data-table th:nth-child(2){white-space:normal;min-width:10em;max-width:18em;overflow-wrap:anywhere;width:auto}
.hub-approved .data-table th[scope="row"]{width:auto}
.hub-today .data-table th:nth-child(n+3),.hub-today .data-table td:nth-child(n+3){white-space:nowrap}
.hub-approved .data-table thead{background:var(--sunk)}
.hub-approved .data-table th{color:var(--ink2);font-weight:600}
.hub-approved .data-table{min-width:100%}
.hub-approved .table-wrap{border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}
.hub-approved .table-wrap .data-table th,.hub-approved .table-wrap .data-table td{padding:9px 12px}
/* 区块标题 */
.sec{margin-top:44px}
.sec-h{align-items:baseline;gap:12px;margin-bottom:14px}
.rule{border-top:3px solid var(--ink);margin:0 0 20px}
/* 数字强调统一绿色 */
.money,.c-money b,.fi .rt .v.money,.erow .rt b,.trow .rt,.mini .e,.peer b,.kpis .v.money,.stats .v.money{color:var(--money)}
/* 首页顶部 */
.preview-kicker{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700;color:var(--brand);background:var(--brand-bg);padding:4px 10px;border-radius:999px}
.preview-intro h1{font-size:clamp(30px,4.2vw,44px);letter-spacing:-.02em}
.preview-intro p{font-size:15.5px;color:var(--ink2)}
.preview-counts,.home-counts{border-radius:var(--r);background:var(--surface);border:1px solid var(--line)}
.home-counts b{font-size:19px}
.wave-focus{border-radius:var(--r-lg);background:var(--ink);color:#fff}
.wave-focus h2,.wave-focus h2 a{color:#fff}
/* 页脚 */
.foot{font-size:12.5px;color:var(--faint);border-top:1px solid var(--line);margin-top:52px}
/* 提示条 */
.toast{border-radius:999px;font-size:14px;max-width:calc(100% - 32px)}

/* 手机：字号缩一级、留白收紧、底栏不挡内容 */
@media (max-width:640px){
  :root{--fs-h1:28px;--fs-h2:21px;--fs-h3:17px}
  .mast h1,.lib-h h1,.page-h h1,.design-head h1,.hub-head h1,.preview-intro h1{font-size:28px}
  .sec-h h2,.day-h h3{font-size:21px}
  .sec{margin-top:34px}
  .btn{height:40px}
  .more,.focus-more{min-height:40px}
  .home-counts{grid-template-columns:repeat(4,minmax(0,1fr))}
  .home-counts>div{padding:10px 4px}
  .home-counts b{font-size:17px}
  .early-strip small,.grade,.early-ranks,.early-reason{font-size:12px}
  .kpis .v{font-size:19px}
  .fi .rt .v{font-size:18px}
  .toast{bottom:calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom))}
  .hub-approved .data-table{font-size:12.5px}
  .hub-approved .data-table th,.hub-approved .data-table td{padding:8px 10px}
  .flow-row-metric small,.flow-pills .pill,.flow-row .pill{font-size:12px}
  .flow-pills .pill{min-height:20px;padding:2px 7px}
  .design-chip{font-size:13px;padding:0 12px}
  .design-switch button{font-size:13px;padding:0 10px}
  .style-dialog .btn{height:36px;font-size:13px}
  .sfield{height:50px;border-radius:14px}
  .tb-tag{font-size:12px}
}
