/* 页面样式：旧版首页、分类、详情、弹窗、公告与分类选择页 */
/* ---------- 介绍页 ---------- */
.intro-hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  align-items: center; gap: clamp(22px, 3.2vw, 40px);
  padding: 8px 0 24px;
}
.intro-copy { position: relative; z-index: 2; }
.intro-copy .eyebrow-pill { margin-bottom: 12px; }
.intro-copy h1 { font-size: clamp(27px, 3vw, 38px); line-height: 1.13; letter-spacing: -.045em; font-weight: 800; max-width: 600px; margin-bottom: 12px; }
.intro-copy h1 .line { display: block; }
.intro-copy h1 .line-soft { color: var(--ink-soft); }
.intro-copy p.lead { max-width: 500px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.75; margin-bottom: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.hero-note { display: flex; align-items: center; gap: 7px; color: var(--ink-dim); font-size: 10.5px; }
.hero-note .rh-icon { width: 13px; height: 13px; color: var(--accent-ink); }
.intro-stage { position: relative; display: grid; place-items: center; }
.stage-aura { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), rgba(59, 130, 246, .07) 50%, transparent 72%); filter: blur(26px); }
.stage-panel { position: relative; z-index: 2; width: min(370px, 100%); padding: 14px; border-radius: 20px; }
.stage-head { display: flex; align-items: center; justify-content: space-between; padding: 1px 3px 11px; }
.stage-head-left { display: flex; align-items: center; gap: 8px; }
.stage-logo { width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--line); overflow: hidden; flex-shrink: 0; }
.stage-logo .rh-icon { width: 14px; height: 14px; }
.stage-logo.has-avatar { background: var(--surface); }
.stage-logo.has-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-title { font-size: 11.5px; font-weight: 700; }
.stage-sub { margin-top: 1px; font-size: 7.5px; color: var(--ink-dim); letter-spacing: .12em; }
.stage-dots { display: flex; gap: 4px; }
.stage-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(23, 32, 51, .2); }
.stage-dots i:first-child { background: var(--accent-ink); }
.stage-search { display: flex; align-items: center; gap: 7px; padding: 8px 10px; margin-bottom: 8px; border-radius: 10px; background: var(--surface-soft); border: 1px solid var(--line); font-size: 10px; color: var(--ink-dim); transition: background .18s, border-color .18s, color .18s; }
.stage-search:hover { background: #fff; border-color: var(--line-strong); color: var(--ink-soft); }
.stage-search-ic { display: grid; place-items: center; color: var(--accent-ink); }
.stage-search-ic .rh-icon { width: 13px; height: 13px; }
.stage-search-go { margin-left: auto; display: grid; place-items: center; color: var(--ink-dim); }
.stage-search-go .rh-icon { width: 12px; height: 12px; }
.stage-list { display: flex; flex-direction: column; gap: 5px; }
.stage-row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 10px; background: var(--surface-soft); border: 1px solid var(--line); transition: background .18s, border-color .18s, transform .18s; }
a.stage-row:hover { background: #fff; border-color: var(--line-strong); transform: translateX(2px); }
.stage-row-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; color: var(--tone-ink, #2563eb); background: var(--tone-soft, #eff4ff); }
.stage-row-ic.accent { color: var(--accent-ink); background: var(--accent-soft); }
.stage-row-ic .rh-icon { width: 13px; height: 13px; }
.stage-row-ic img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.stage-row-text { min-width: 0; flex: 1; }
.stage-row-text b { display: block; font-size: 10px; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-row-text small { display: block; margin-top: 1px; font-size: 8px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-row-arrow { color: var(--ink-dim); display: grid; place-items: center; flex-shrink: 0; }
.stage-row-arrow .rh-icon { width: 12px; height: 12px; }
.stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 3px 1px; font-size: 8px; color: var(--ink-dim); }
.stage-foot .footer-live { color: var(--ink-soft); }
.intro-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.intro-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 9px; color: var(--ink-soft); background: rgba(255, 255, 255, .56); border: 1px solid var(--line); }
.intro-chips .rh-icon { width: 11px; height: 11px; color: var(--accent-ink); }
.intro-flow { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; padding: 14px 16px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(23, 32, 51, .04); }
.flow-step { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.flow-num { padding: 3px 7px; border-radius: 7px; font-size: 9px; font-weight: 800; letter-spacing: .08em; color: var(--accent-ink); background: var(--accent-soft); }
.flow-step b { display: block; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.flow-step small { display: block; margin-top: 1px; font-size: 9px; color: var(--ink-dim); }
.flow-arrow { color: rgba(23, 32, 51, .2); display: grid; place-items: center; flex-shrink: 0; }
.flow-arrow .rh-icon { width: 12px; height: 12px; }
.intro-features { border-top: 1px solid var(--line); padding: 30px 0 6px; margin-top: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.feature-card { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(23, 32, 51, .04); }
.feature-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; color: var(--tone-ink, var(--accent-ink)); background: var(--tone-soft, var(--accent-soft)); border: 1px solid var(--line); }
.feature-ic .rh-icon { width: 17px; height: 17px; }
.feature-card h3 { font-size: 13.5px; letter-spacing: -.015em; margin-bottom: 5px; }
.feature-card p { color: var(--ink-dim); font-size: 10.5px; line-height: 1.7; }
.intro-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 22px; border-radius: 18px; background: linear-gradient(120deg, var(--accent-soft), rgba(59, 130, 246, .07) 62%, transparent), var(--surface); border: 1px solid var(--line); box-shadow: 0 5px 20px rgba(23, 32, 51, .045); }
.intro-cta h2 { font-size: clamp(18px, 2.2vw, 22px); letter-spacing: -.03em; line-height: 1.2; }
.intro-cta p { color: var(--ink-dim); font-size: 10.5px; margin-top: 4px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.2; letter-spacing: -.03em; font-weight: 800; }
.section-head p { color: var(--ink-dim); font-size: 11px; margin-top: 4px; }
.section-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
.section-link:hover { color: var(--accent-ink); }
.section-link .rh-icon { width: 12px; height: 12px; }

/* ---------- 首页（搜索 + 入口，不直接罗列分类 / 资源） ---------- */
.home-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr);
  align-items: stretch; gap: 24px;
  padding: 26px 26px 24px; border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 42%),
    radial-gradient(circle at 100% 10%, rgba(59, 130, 246, .09), transparent 40%),
    linear-gradient(180deg, #fff 0%, var(--surface-soft) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(23, 32, 51, .07), inset 0 1px 0 #fff;
}
.home-hero::after {
  content: ""; position: absolute; top: -140px; right: -90px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 184, 134, .14), rgba(59, 130, 246, .08) 46%, transparent 70%);
  filter: blur(4px); pointer-events: none;
}
.home-hero-copy { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.home-hero .eyebrow { margin-bottom: 9px; }
.home-hero h1 { font-size: clamp(25px, 3.2vw, 36px); line-height: 1.14; letter-spacing: -.05em; font-weight: 800; max-width: 16em; }
.home-hero .page-lead { color: var(--ink-soft); font-size: 12px; line-height: 1.7; margin-top: 8px; max-width: 520px; }
.home-hero .search-wrap { margin-top: 16px; max-width: 580px; }
.home-hero .search-box { min-height: 50px; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(23, 32, 51, .06); }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.home-hero-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.home-hero-stats span { display: inline-flex; align-items: baseline; gap: 5px; font-size: 9.5px; color: var(--ink-dim); white-space: nowrap; }
.home-hero-stats strong { font-size: 16px; line-height: 1; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.home-hub {
  position: relative; z-index: 1; align-self: stretch;
  display: flex; flex-direction: column; gap: 4px; padding: 13px; border-radius: 17px;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(23, 32, 51, .05), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
}
.home-hub-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 1px 2px 9px; margin-bottom: 3px; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 800; letter-spacing: .1em; color: var(--ink-dim); text-transform: uppercase; }
.home-hub-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.home-hub-head .rh-icon { width: 13px; height: 13px; color: var(--blue); }
.home-hub-head .footer-live { font-size: 8.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.home-hub-link { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; border-radius: 11px; border: 1px solid transparent; text-align: left; transition: background .18s, border-color .18s; }
.home-hub-link:hover { background: var(--surface-soft); border-color: var(--line); }
.home-hub-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: var(--tone-soft, var(--accent-soft)); color: var(--tone-ink, var(--accent-ink)); }
.home-hub-ic .rh-icon { width: 15px; height: 15px; }
.home-hub-text { min-width: 0; flex: 1; }
.home-hub-text b { display: block; font-size: 11.5px; line-height: 1.3; font-weight: 700; }
.home-hub-text small { display: block; margin-top: 1px; font-size: 9px; line-height: 1.4; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-hub-arrow { width: 13px; height: 13px; color: var(--ink-dim); flex-shrink: 0; }
.home-hub-foot { display: flex; align-items: center; gap: 5px; margin-top: auto; padding: 9px 3px 0; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 8.5px; }
.home-hub-foot .rh-icon { width: 11px; height: 11px; color: var(--accent-ink); }
.home-results:empty { display: none; }
.home-results { margin-top: 18px; }
.home-search-panel { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(23, 32, 51, .05); }
.home-search-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.home-search-head h2 { margin-top: 2px; font-size: 16px; letter-spacing: -.02em; font-weight: 800; }
.home-flow { margin-top: 16px; }
.page-hero { padding: 10px 0 18px; }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.14; letter-spacing: -.045em; font-weight: 800; max-width: 640px; }
.page-hero .page-lead { color: var(--ink-soft); font-size: 12.5px; margin-top: 8px; max-width: 520px; }
.page-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-number { text-align: right; flex-shrink: 0; }
.hero-number strong { display: block; font-size: 30px; line-height: 1; letter-spacing: -.05em; }
.hero-number span { font-size: 8.5px; color: var(--ink-dim); letter-spacing: .1em; }
.search-wrap { max-width: 640px; position: relative; margin-top: 18px; }
.search-box {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 5px 18px rgba(23, 32, 51, .05);
  transition: border-color .18s, box-shadow .18s;
}
.search-box:focus-within { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft), 0 5px 18px rgba(23, 32, 51, .05); }
.search-box .rh-icon { width: 17px; height: 17px; color: var(--ink-dim); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.search-box input::placeholder { color: rgba(23, 32, 51, .38); }
.search-shortcut { padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--ink-dim); font-size: 8.5px; white-space: nowrap; }
.search-clear { display: none; width: 25px; height: 25px; place-items: center; border-radius: 7px; color: var(--ink-dim); background: var(--surface-mute); }
.search-clear:hover { color: var(--ink); background: #e8edf3; }
.search-box.has-value .search-clear { display: grid; }
.search-box.has-value .search-shortcut { display: none; }
.section-block { margin-top: 26px; }
.section-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-block-head h2 { font-size: 16px; letter-spacing: -.02em; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.section-block-head h2 .count { font-size: 9px; padding: 2px 6px; border-radius: 6px; background: var(--surface-mute); color: var(--ink-dim); font-weight: 600; letter-spacing: 0; }
.section-block-head .muted-text { color: var(--ink-dim); font-size: 10.5px; }

/* ---------- 分类卡片 / 资源列表 ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 9px; }
.category-card {
  position: relative; min-height: 148px; padding: 13px; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(23, 32, 51, .04);
  display: flex; flex-direction: column;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .2s;
}
.category-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 10px 26px rgba(23, 32, 51, .08); }
/* 头像与分类名同一行：无论是否上传头像，图标都不会压在标题上方。 */
.cat-identity { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; min-width: 0; }
.cat-identity .icon-orb { width: 36px; height: 36px; border-radius: 10px; }
.cat-identity .icon-orb .rh-icon { width: 17px; height: 17px; }
.cat-identity-text { min-width: 0; flex: 1; }
.category-card h3 { font-size: 13.5px; letter-spacing: -.02em; line-height: 1.3; font-weight: 800; margin-bottom: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.category-card .cat-desc { font-size: 10px; line-height: 1.55; color: var(--ink-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 31px; }
.subchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.subchips span { font-size: 7.5px; color: var(--ink-dim); padding: 2px 6px; border-radius: 5px; background: var(--surface-soft); border: 1px solid var(--line); white-space: nowrap; }
.cat-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-dim); font-size: 8.5px; }
.cat-arrow { width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); background: var(--surface-mute); transition: background .2s, color .2s; }
.category-card:hover .cat-arrow { background: var(--tone-fill, var(--accent-ink)); color: #fff; }
.cat-arrow .rh-icon { width: 11px; height: 11px; }

.resource-list { display: flex; flex-direction: column; gap: 6px; }
.resource-row {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  min-height: 56px; padding: 7px 10px 7px 7px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(23, 32, 51, .035);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.resource-row:hover { transform: translateX(2px); border-color: var(--line-strong); box-shadow: 0 9px 22px rgba(23, 32, 51, .07); }
.res-cover { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; position: relative; background: linear-gradient(145deg, var(--accent-soft), #eef4ff); display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line); }
.res-cover img { width: 100%; height: 100%; object-fit: cover; }
.res-cover .rh-icon { width: 18px; height: 18px; color: var(--accent-ink); }
.res-main { min-width: 0; }
.res-title-row { display: flex; align-items: center; gap: 5px; min-width: 0; flex-wrap: wrap; }
.res-title-row h3 { font-size: 12px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
.channel-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 5px; font-size: 7.5px; line-height: 1.25; font-weight: 700; white-space: nowrap; }
.channel-badge .rh-icon { width: 9px; height: 9px; }
.channel-badge.direct { color: #067647; background: #ecfdf3; border: 1px solid #d1fadf; }
.channel-badge.cloud { color: #175cd3; background: #eff8ff; border: 1px solid #d1e9ff; }
.res-package { display: flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--ink-dim); font-size: 9px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-package .rh-icon { width: 10px; height: 10px; flex-shrink: 0; opacity: .8; }
.res-tail { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.res-version { padding: 2px 6px; border-radius: 5px; background: var(--surface-soft); border: 1px solid var(--line); color: var(--ink-soft); font-size: 8px; font-weight: 650; white-space: nowrap; }
.res-dl { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-dim); font-size: 8px; white-space: nowrap; }
.res-dl .rh-icon { width: 9px; height: 9px; }
.view-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 7px; font-size: 9px; font-weight: 600; color: var(--ink-soft); border: 1px solid var(--line); background: var(--surface-soft); transition: .18s; white-space: nowrap; }
.resource-row:hover .view-pill { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.view-pill .rh-icon { width: 10px; height: 10px; }

.search-result-section { margin-top: 18px; }
/* 搜索结果紧跟在首页 Hero 后面时保留明显呼吸空间，避免标题和资源卡贴在一起。 */
#home-results > .search-result-section:first-child { margin-top: 22px; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.result-category { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: .18s; }
.result-category:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.result-category .icon-orb { width: 30px; height: 30px; border-radius: 9px; }
.result-category .icon-orb .rh-icon { width: 15px; height: 15px; }
.result-category strong { display: block; font-size: 11px; line-height: 1.3; }
.result-category span { display: block; color: var(--ink-dim); font-size: 8.5px; margin-top: 1px; }
.no-result { padding: 28px 16px; text-align: center; color: var(--ink-dim); font-size: 11.5px; }
.no-result .rh-icon { width: 20px; height: 20px; display: block; margin: 0 auto 7px; opacity: .6; }

/* ---------- 分类页：子分类侧边栏 ---------- */
.detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.back-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px 6px 8px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); font-size: 10.5px; transition: .18s; }
.back-pill:hover { background: var(--surface-soft); color: var(--ink); }
.back-pill .rh-icon { width: 12px; height: 12px; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink-dim); font-size: 10px; }
.breadcrumbs a:hover { color: var(--accent-ink); }
.breadcrumbs .rh-icon { width: 9px; height: 9px; opacity: .5; }

.category-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.toolbar-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sidebar-toggle { display: none; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; border: 1px solid transparent; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 650; }
.sidebar-toggle .rh-icon { width: 11px; height: 11px; }
.sidebar-toggle:hover { background: #e3edff; }
.category-headline {
  display: flex; align-items: center; gap: 9px; padding: 8px 11px;
  border-radius: 13px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(23, 32, 51, .035);
}
.category-headline .icon-orb { width: 34px; height: 34px; border-radius: 9px; }
.category-headline .icon-orb .rh-icon { width: 16px; height: 16px; }
.category-headline-text { min-width: 0; flex: 1; }
.category-headline-text .cat-path { font-size: 8px; letter-spacing: .02em; color: var(--ink-dim); margin-bottom: 1px; }
.category-headline-text h1 { font-size: 16.5px; line-height: 1.25; letter-spacing: -.03em; }
.category-headline-text p { margin-top: 1px; max-width: 640px; color: var(--ink-dim); font-size: 9.5px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-count { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 3px 8px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--line); color: var(--ink-dim); font-size: 8.5px; white-space: nowrap; }
.category-count .rh-icon { width: 10px; height: 10px; color: var(--accent-ink); }
.category-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; margin-top: 12px; align-items: start; }
.category-layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
/* 侧边栏按内容自适应高度，不再铺满整个视口：内容短时不会留下长长的空白面板；
   分类树过长时限制在视口内，并在面板内部滚动。 */
.category-sidebar { position: sticky; top: 14px; align-self: start; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); min-width: 0; z-index: 20; }
.sidebar-panel {
  height: auto; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px);
  display: flex; flex-direction: column; min-height: 0;
  background: linear-gradient(180deg, #fff 0%, var(--surface) 42%, var(--surface-soft) 100%);
  border: 1px solid var(--line); border-radius: 16px; padding: 11px;
  box-shadow: 0 10px 30px rgba(23, 32, 51, .05), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.sidebar-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 3px 9px; border-bottom: 1px solid var(--line); margin-bottom: 9px; }
.sidebar-head-title { display: inline-flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; color: var(--ink-dim); text-transform: uppercase; }
.sidebar-head-title .rh-icon { width: 13px; height: 13px; color: var(--blue); }
.sidebar-close { display: none; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: var(--ink-soft); background: var(--surface-soft); border: 1px solid var(--line); }
.sidebar-close .rh-icon { width: 13px; height: 13px; }
.sidebar-scrim { display: none; }
.sidebar-switch { flex-shrink: 0; display: block; padding: 0 0 10px; }
.sidebar-switch-label { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; font-size: 9.5px; color: var(--ink-dim); }
.sidebar-switch-label .rh-icon { width: 12px; height: 12px; color: var(--blue); }
.sidebar-switch select {
  width: 100%; min-height: 36px; padding: 0 28px 0 10px; border-radius: 10px;
  border: 1px solid var(--line-strong); background-color: rgba(255, 255, 255, .82); color: var(--ink);
  font-size: 11px; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%237b879b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 9px;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.sidebar-switch select:hover { background-color: #fff; }
.sidebar-switch select:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.sidebar-groups { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overflow-x: hidden; padding: 0 2px 2px 0; overscroll-behavior: contain; }
.sidebar-groups::-webkit-scrollbar { width: 5px; }
.sidebar-groups::-webkit-scrollbar-thumb { background: #d5dfeb; border: 0; border-radius: 5px; }
.sidebar-group { display: flex; flex-direction: column; gap: 2px; }
.sidebar-group + .sidebar-group { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
/* 多级分类树：每一级用缩进和竖向导引线表示父子关系；非当前路径默认折叠。 */
.sidebar-row { display: flex; align-items: center; gap: 3px; }
.sidebar-row .sidebar-link { flex: 1; min-width: 0; }
.sidebar-caret { width: 22px; min-height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 7px; color: var(--ink-dim); transition: background .16s, color .16s; }
.sidebar-caret:hover { background: var(--surface-mute); color: var(--ink); }
.sidebar-caret .rh-icon { width: 11px; height: 11px; transition: transform .18s; }
.sidebar-caret.is-open .rh-icon { transform: rotate(180deg); }
.sidebar-children { display: none; flex-direction: column; gap: 2px; margin-left: 9px; padding-left: 7px; border-left: 1px solid var(--line-strong); }
.sidebar-children.is-open { display: flex; }
.sidebar-group-title { display: flex; align-items: center; gap: 5px; padding: 3px 5px; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); }
.sidebar-group-title .rh-icon { width: 10px; height: 10px; color: var(--tone-ink, var(--accent-ink)); }
.sidebar-link { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; border: 1px solid transparent; transition: background .16s, border-color .16s, box-shadow .16s; }
.sidebar-link:hover { background: rgba(255, 255, 255, .78); border-color: var(--line); }
.sidebar-link.active { background: var(--tone-soft, var(--accent-soft)); border-color: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .62); }
.sidebar-link.active::before { content: ""; position: absolute; left: 2px; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; border-radius: 999px; background: var(--tone-ink, var(--accent-ink)); }
.sidebar-link.is-trail { background: rgba(255, 255, 255, .64); }
.sidebar-link.is-trail .sidebar-link-text b { color: var(--tone-ink, var(--ink-soft)); }
.sidebar-link-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--tone-soft, var(--surface-mute)); color: var(--tone-ink, var(--ink-soft)); flex-shrink: 0; }
.sidebar-link-ic .rh-icon { width: 13px; height: 13px; }
.sidebar-link.active .sidebar-link-ic { background: #fff; color: var(--tone-ink, var(--accent-ink)); }
.sidebar-link-text { min-width: 0; flex: 1; }
.sidebar-link-text b { display: block; font-size: 11px; line-height: 1.35; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-link.is-root .sidebar-link-text b { font-size: 11.5px; font-weight: 700; }
.sidebar-link-text small { display: block; margin-top: 2px; font-size: 9px; color: var(--ink-dim); }
.sidebar-link.active .sidebar-link-text b { color: var(--tone-ink, var(--accent-ink)); }
.sidebar-link .chev { width: 11px; height: 11px; color: var(--ink-dim); flex-shrink: 0; }
.sidebar-link.active .chev { color: var(--tone-ink, var(--accent-ink)); }
.category-content { min-width: 0; }

/* ---------- 资源详情（全屏） ---------- */
body.is-detail { overflow-x: hidden; }
main.detail-main { width: 100%; max-width: none; padding: 0; }
.detail-screen {
  position: relative; width: min(1080px, 100%); min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  padding: max(9px, env(safe-area-inset-top)) clamp(12px, 3.6vw, 32px) max(22px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
}
.detail-screen::before {
  content: ""; position: absolute; z-index: -1; inset: -30px 4% auto; height: 300px; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 0%, var(--accent-soft), transparent 64%),
    radial-gradient(ellipse at 82% 8%, rgba(59, 130, 246, .08), transparent 58%);
  filter: blur(30px);
}
.detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 1px 0; }
.detail-brand { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.detail-brand .brand-mark { width: 27px; height: 27px; border-radius: 8px; }
.detail-brand .brand-mark .rh-icon { width: 14px; height: 14px; }
.detail-brand-text { min-width: 0; }
.detail-brand-text strong { display: block; font-size: 11px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-brand-text small { display: block; margin-top: 1px; font-size: 6.5px; font-weight: 700; letter-spacing: .16em; color: var(--ink-dim); }
.detail-crumbs { padding: 0 2px; }
.detail-hero { border-radius: 18px; padding: 14px; display: grid; grid-template-columns: minmax(190px, 232px) minmax(0, 1fr); gap: 18px; position: relative; overflow: hidden; box-shadow: var(--shadow); align-items: stretch; }
.detail-cover-col { min-width: 0; display: flex; }
.detail-cover { width: 100%; min-height: 200px; border-radius: 13px; overflow: hidden; position: relative; background: linear-gradient(145deg, var(--accent-soft), #eef4ff 55%, #f5f3ff); border: 1px solid var(--line); display: grid; place-items: center; }
.detail-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 55%, rgba(23, 32, 51, .18)); pointer-events: none; }
.detail-cover .fallback-icon { width: 56px; height: 56px; display: grid; place-items: center; color: var(--accent-ink); border-radius: 15px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }
.detail-cover .fallback-icon .rh-icon { width: 27px; height: 27px; }
.detail-cover-label { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; color: var(--ink-soft); background: rgba(255, 255, 255, .86); border: 1px solid var(--line); font-size: 8.5px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.detail-cover-label .rh-icon { width: 11px; height: 11px; color: var(--accent-ink); }
.detail-info { padding: 4px 6px 2px 0; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.detail-badges { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.detail-badges .cat-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 5px; font-size: 8px; font-weight: 600; color: var(--ink-soft); background: var(--surface-soft); border: 1px solid var(--line); }
.detail-badges .cat-badge .rh-icon { width: 9px; height: 9px; }
.detail-info h1 { font-size: clamp(21px, 2.6vw, 29px); line-height: 1.16; letter-spacing: -.04em; margin-bottom: 8px; overflow-wrap: anywhere; }
.detail-desc { color: var(--ink-soft); font-size: 11.5px; line-height: 1.7; max-width: 660px; overflow-wrap: anywhere; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.detail-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-download-count { margin-top: 10px; color: var(--ink-dim); font-size: 9.5px; display: flex; align-items: center; gap: 5px; }
.detail-download-count .rh-icon { width: 12px; height: 12px; color: var(--accent-ink); }
/* 下半区：介绍通栏 + 资源信息卡。 */
.detail-about { margin-top: 12px; padding: 18px; }
.detail-bottom { display: block; margin-top: 12px; }
.glass-card { border-radius: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(23, 32, 51, .04); }
.glass-card h2 { font-size: 13.5px; letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.glass-card h2 .rh-icon { width: 15px; height: 15px; color: var(--accent-ink); }
.glass-card .card-note { color: var(--ink-dim); font-size: 10.5px; line-height: 1.7; margin-bottom: 13px; }
/* 资源详情：标题区 + 正文 + 右侧信息卡 */
.detail-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.detail-card-head .detail-card-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--line); }
.detail-card-head .detail-card-ic .rh-icon { width: 16px; height: 16px; }
.detail-card-head .detail-card-ic.amber { color: var(--amber); background: var(--amber-soft); border-color: rgba(217, 119, 6, .16); }
.detail-card-head h2 { font-size: 14px; line-height: 1.3; letter-spacing: -.02em; }
.detail-card-head p { margin-top: 2px; color: var(--ink-dim); font-size: 9.5px; line-height: 1.5; }
.detail-card-head.compact { align-items: center; gap: 8px; margin-bottom: 8px; }
.detail-card-head.compact .detail-card-ic { width: 26px; height: 26px; border-radius: 8px; }
.detail-card-head.compact .detail-card-ic .rh-icon { width: 13px; height: 13px; }
.detail-card-head.compact h2 { font-size: 13px; }
.detail-description { color: var(--ink-soft); font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.detail-description p { margin: 0 0 10px; }
.detail-description p:last-child { margin-bottom: 0; }
.detail-empty-text { color: var(--ink-dim); font-size: 11.5px; }
.detail-about .detail-description { font-size: 12.5px; line-height: 1.9; }
.detail-info-card .side-info-row { padding: 7px 0; }
.update-form { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.form-field label { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; color: var(--ink-dim); margin-bottom: 5px; }
.form-field label span { font-weight: 650; color: var(--ink-soft); }
.form-field label small { font-size: 8.5px; color: var(--ink-dim); }
.update-form textarea, .update-form input[type="text"] { width: 100%; border: 1px solid var(--line-strong); outline: 0; border-radius: 10px; background: var(--surface-soft); color: var(--ink); padding: 9px 11px; font-size: 11.5px; transition: .18s; }
.update-form textarea { min-height: 96px; resize: vertical; line-height: 1.65; }
.update-form textarea:focus, .update-form input[type="text"]:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
.update-form textarea::placeholder, .update-form input::placeholder { color: rgba(23, 32, 51, .32); }
.update-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.update-form-foot .hint { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--ink-dim); }
.update-form-foot .hint .rh-icon { width: 11px; height: 11px; color: var(--accent-ink); }
.form-msg { display: none; padding: 8px 10px; border-radius: 8px; font-size: 10px; line-height: 1.5; }
.form-msg.show { display: block; }
.form-msg.error { background: #fef3f2; color: #b42318; border: 1px solid #fee4e2; }
.form-msg.success { background: #ecfdf3; color: #067647; border: 1px solid #d1fadf; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- 催更弹窗 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, .38);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s ease;
}
.modal-backdrop[hidden] { display: none; }
.modal-backdrop.is-open { opacity: 1; }
body.modal-open { overflow: hidden; }
.modal-card {
  width: min(480px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto;
  padding: 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .24), inset 0 1px 0 #fff;
  transform: translateY(12px) scale(.985); opacity: 0;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
}
.modal-backdrop.is-open .modal-card { transform: none; opacity: 1; }
.modal-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.modal-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(217, 119, 6, .16); }
.modal-icon .rh-icon { width: 18px; height: 18px; }
.modal-head-text { min-width: 0; flex: 1; padding-top: 1px; }
.modal-head-text h2 { font-size: 15px; letter-spacing: -.02em; line-height: 1.3; }
.modal-head-text p { margin-top: 3px; font-size: 10px; line-height: 1.55; color: var(--ink-dim); }
.modal-close { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink-soft); transition: .16s; }
.modal-close:hover { background: #eef2f6; color: var(--ink); }
.modal-close .rh-icon { width: 13px; height: 13px; }
.modal-update .update-form { margin-top: 0; }
.modal-update .update-form textarea { min-height: 104px; }

/* ---------- 首页网站公告（纯白弹窗） ---------- */
.announce-backdrop {
  position: fixed; inset: 0; z-index: 4500;
  display: flex; align-items: center; justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, .38);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  animation: announce-fade .2s ease;
  transition: opacity .16s ease;
}
.announce-backdrop.is-closing { opacity: 0; }
body.announce-open { overflow: hidden; }
.announce-card {
  width: min(400px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto;
  padding: 18px 20px 15px; border-radius: 20px;
  background: #fff; border: 1px solid rgba(23, 32, 51, .06);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .26);
  animation: announce-pop .24s cubic-bezier(.2, .8, .2, 1);
  transition: transform .16s ease, opacity .16s ease;
}
.announce-backdrop.is-closing .announce-card { transform: translateY(6px) scale(.985); opacity: 0; }
.announce-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.announce-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.announce-badge .rh-icon { width: 11px; height: 11px; }
.announce-close { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-dim); background: var(--surface-soft); border: 1px solid var(--line); transition: .16s; }
.announce-close:hover { background: #eef2f6; color: var(--ink); }
.announce-close .rh-icon { width: 12px; height: 12px; }
.announce-card h2 { margin-top: 12px; font-size: 17px; line-height: 1.35; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
.announce-body { margin-top: 7px; color: var(--ink-soft); font-size: 12px; line-height: 1.85; word-break: break-word; }
.announce-foot { display: flex; justify-content: flex-end; margin-top: 15px; }
.announce-ok { min-height: 34px; padding: 0 16px; border-radius: 9px; font-size: 11px; }
.announce-note { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--ink-dim); font-size: 9px; text-align: center; letter-spacing: .02em; }
@keyframes announce-fade { from { opacity: 0; } }
@keyframes announce-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (max-width: 600px) {
  .announce-card { padding: 16px 16px 13px; border-radius: 18px; }
  .announce-card h2 { font-size: 16px; }
  .announce-body { font-size: 12px; }
}
.side-info-list { display: flex; flex-direction: column; }
.side-info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef2f6; font-size: 10.5px; }
.side-info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.side-info-row span { color: var(--ink-dim); flex-shrink: 0; }
.side-info-row strong { text-align: right; font-weight: 600; color: var(--ink-soft); overflow-wrap: anywhere; }
.side-info-row strong.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 9.5px; }

/* ---------- 分类选择页（紧凑横条） ---------- */
body.is-browse { overflow-x: hidden; }
main.browse-main { width: 100%; max-width: none; padding: 0; }
.browse-screen {
  width: min(1060px, 100%); min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) clamp(14px, 4vw, 32px) max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}
.browse-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 4px; flex-shrink: 0; }
.browse-bar-actions { display: flex; align-items: center; gap: 6px; }
.browse-search-link { min-height: 32px; padding: 0 10px; font-size: 10.5px; border-radius: 9px; }
.browse-search-link .rh-icon { width: 13px; height: 13px; }
.browse-exit { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--ink-soft); border: 1px solid var(--line-strong); background: var(--surface); transition: background .18s, color .18s; }
.browse-exit:hover { background: var(--surface-soft); color: var(--ink); }
.browse-exit .rh-icon { width: 14px; height: 14px; }
.browse-lead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 13px 0 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.browse-lead-copy { min-width: 0; }
.browse-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 8px; font-weight: 800; letter-spacing: .14em; color: var(--ink-dim); }
.browse-kicker::before { content: ""; width: 14px; height: 1px; background: var(--accent-ink); opacity: .6; }
.browse-lead h1 { margin-top: 5px; font-size: clamp(21px, 2.6vw, 27px); line-height: 1.18; letter-spacing: -.035em; font-weight: 800; }
.browse-lead h1 span { color: var(--accent-ink); }
.browse-lead p { max-width: 520px; margin-top: 5px; color: var(--ink-dim); font-size: 10.5px; line-height: 1.6; }
.browse-lead-stats { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; flex-shrink: 0; }
.browse-lead-stats span { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 8.5px; color: var(--ink-dim); white-space: nowrap; }
.browse-lead-stats strong { font-size: 11px; color: var(--ink); font-weight: 800; }
.browse-body { flex: 1 0 auto; padding-bottom: 18px; }
.browse-body-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 9px; padding: 0 2px; }
.browse-body-head h2 { font-size: 14px; letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; }
.browse-body-head h2 .count { font-size: 8px; padding: 2px 6px; border-radius: 6px; background: var(--surface-mute); color: var(--ink-dim); font-weight: 600; letter-spacing: 0; }
.browse-body-head p { margin-top: 1px; font-size: 9px; color: var(--ink-dim); }
.browse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.browse-grid-roots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.browse-card-root { align-items: flex-start; min-height: 86px; padding: 12px 13px; }
.browse-card-root > .icon-orb { width: 42px; height: 42px; border-radius: 11px; margin-top: 1px; }
.browse-card-root > .icon-orb .rh-icon { width: 19px; height: 19px; }
.browse-card-root h2 { font-size: 14.5px; }
.browse-card-root .browse-card-tail { padding-top: 2px; }
.browse-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px;
  min-height: 74px; padding: 10px 11px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(23, 32, 51, .04);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.browse-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 10px 24px rgba(23, 32, 51, .08); }
.browse-card-glow { position: absolute; width: 92px; height: 92px; top: -54px; right: -34px; border-radius: 50%; background: radial-gradient(circle, var(--tone-soft, var(--accent-soft)), transparent 70%); pointer-events: none; }
.browse-card > .icon-orb { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 10px; }
.browse-card > .icon-orb .rh-icon { width: 17px; height: 17px; }
.browse-card-text { position: relative; z-index: 1; min-width: 0; flex: 1; }
.browse-parent { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; font-weight: 700; letter-spacing: .04em; color: var(--tone-ink, var(--accent-ink)); }
.browse-parent .rh-icon { width: 9px; height: 9px; }
.browse-card h2 { margin-top: 1px; font-size: 13.5px; line-height: 1.3; letter-spacing: -.02em; font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browse-card-tail { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.browse-card-count { font-size: 8.5px; color: var(--ink-dim); white-space: nowrap; }
.browse-arrow { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); background: var(--surface-mute); transition: .18s; flex-shrink: 0; }
.browse-card:hover .browse-arrow { background: var(--tone-fill, var(--accent-ink)); color: #fff; transform: translateX(2px); }
.browse-arrow .rh-icon { width: 11px; height: 11px; }
.browse-empty { padding-top: 4px; }
.browse-foot-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 9.5px; }

