/* 积磊·社群：工作台与资料库只读阅读器。
   视觉目标：更接近 SunGet 知识库的工具体验，而不是营销页或后台管理页。 */

/* -------------------------------------------------- 社群独立外壳（不继承官网页眉页脚） */
.community-body { background: var(--bg, #fff); color: var(--ink, #1d1d19); }
/* 社群不加载官网 site.js（滚动 reveal 脚本）；官网 [data-reveal] 默认 opacity:0 会依赖它显形。
   这里在社群外壳内强制可见，避免移除官网布局后内容一片空白。 */
.community-body [data-reveal] { opacity: 1 !important; transform: none !important; }
.community-topnav {
  position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px);
}
.community-topnav__inner { display: flex; align-items: center; gap: 18px; height: 56px; }
.community-topnav__brand { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--ink); text-decoration: none; }
.community-topnav__tabs { display: flex; flex: 1 1 auto; min-width: 0; gap: 4px; margin-inline-start: 8px; overflow-x: auto; scrollbar-width: none; }
.community-topnav__tabs::-webkit-scrollbar { display: none; }
.community-topnav__tabs a { padding: 7px 13px; border-radius: 999px; color: var(--muted); font-size: 14px; white-space: nowrap; text-decoration: none; }
.community-topnav__tabs a:hover { background: var(--bg-soft); color: var(--ink); }
.community-topnav__tabs a.is-active { background: var(--ink); color: #fff; }
.community-topnav__user { flex: 0 0 auto; margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.community-main-shell { min-height: calc(100vh - 56px); }
/* 「网站导航」与 dh.jilei.cc 共用公开导航样式（navigation-public.css 已收进 .nav-public）：
   外壳容器在这里让出宽度与内边距，内层 .nav-wrap 按公开站的 1180px 栅格排版，
   两边才是同一套栅格。 */
.community-work:has(> .nav-public-community) { width: 100%; max-width: none; padding: 0; }
.nav-public-community { min-height: 60vh; background: var(--bg, #fff); }
.community-work { padding: 32px 0 64px; }
.community-footer { border-top: 1px solid var(--line); background: var(--bg-warm, #faf9f7); }
.community-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-block: 22px; font-size: 13px; }
.community-footer__brand { font-weight: 650; }
.community-footer__beian { color: inherit; text-decoration: none; }
.community-footer__beian:hover { color: var(--ink, #1d1d1f); text-decoration: underline; }
.community-footer .mono { font-size: 12px; }
@media (max-width: 620px) {
  .community-topnav__brand strong { display: none; }
  .community-topnav__tabs { margin-inline-start: 0; }
  .community-topnav__inner { gap: 8px; }
  .community-topnav__tabs a { padding-inline: 10px; font-size: 13px; }
  .community-topnav__user { gap: 6px; }
  .community-topnav__user .community-avatar { display: grid; }
}

.community-topnav__user .community-avatar{min-width:30px;min-height:30px;width:30px;height:30px;text-decoration:none}
.community-topnav__user{position:relative}.community-account__toggle{padding:0;border:2px solid #fff;box-shadow:0 0 0 1px var(--line-strong);cursor:pointer;font:inherit}.community-account__toggle img,.community-avatar--menu img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.community-account__menu{position:absolute;right:0;top:calc(100% + 8px);z-index:60;width:220px;padding:8px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 16px 36px rgba(29,29,31,.16)}
.community-account__menu>a,.community-account__menu>button{display:block;width:100%;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--ink);text-align:left;text-decoration:none;font:inherit;font-size:13px;cursor:pointer}.community-account__menu>a:hover,.community-account__menu>a:focus,.community-account__menu>button:hover,.community-account__menu>button:focus{background:var(--brand-soft);color:var(--brand-strong);outline:none}
.community-account__identity{display:flex;align-items:center;gap:9px;padding:7px 8px 10px}.community-account__identity>span:last-child{display:grid;gap:2px;min-width:0}.community-account__identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.community-account__identity small{color:var(--muted);font-size:11px}.community-avatar--menu{display:grid;place-items:center;width:32px!important;height:32px!important;flex:0 0 32px;border-radius:50%;background:var(--brand-soft);color:var(--brand);font-weight:700}.community-account__divider{height:1px;margin:6px 4px;background:var(--line)}
.community-landing__slogan{font-size:clamp(18px,2.3vw,25px);font-weight:600;margin:0 0 12px}
.member-page{padding-block:clamp(28px,5vw,64px) 72px;max-width:960px}
.member-page h1{font-size:clamp(30px,5vw,48px);margin:0 0 20px}
.member-hero{display:flex;align-items:center;gap:20px;min-width:0;margin-bottom:20px}
.member-hero h1{margin:0 0 8px}
.member-hero p{margin:4px 0;color:var(--muted)}
.member-avatar{width:72px;height:72px;font-size:29px;flex:none}
.member-slogan{font-size:20px;font-weight:650;margin:28px 0}
.member-join-days{color:var(--muted);font-size:14px;margin:8px 0 20px}
.growth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0 32px}.growth-card{display:grid;align-content:start;gap:8px;padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--bg-warm)}.growth-card--resume{grid-column:span 2;background:linear-gradient(135deg,#fff8f1,#fff)}.growth-card h2{margin:0;font-size:22px}.growth-card p{margin:0;color:var(--muted)}.growth-card a{color:var(--brand-strong);text-decoration:none;font-weight:650}.growth-number{font-size:32px;line-height:1}.recent-points{display:grid;gap:10px;margin:14px 0 30px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.section-heading h2{margin:0}.section-heading a{color:var(--brand-strong);font-size:14px}.recent-point{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}.recent-point strong{color:var(--brand-strong)}.points-store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.points-store-card{display:grid;gap:9px;padding:18px;border:1px solid var(--line);border-radius:16px}.points-store-card h3,.points-store-card p{margin:0}.points-store-card p{color:var(--muted);font-size:14px}.points-store-card form{display:grid;gap:7px}.points-store-card input{min-height:38px;padding:7px 10px;border:1px solid var(--line-strong);border-radius:8px}.points-store-card small{color:var(--muted)}
.member-empty{background:var(--bg-warm);border-radius:12px;padding:16px;margin:20px 0}
.member-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:24px}
.member-links a{display:flex;align-items:center;gap:10px;min-height:76px;border:1px solid var(--line);border-radius:14px;padding:16px;color:var(--ink);text-decoration:none}
.member-links a span:first-child{margin-right:auto}
.member-links a strong{font-size:24px}
.member-counts{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0}
.member-counts span{padding:12px 18px;background:var(--bg-warm);border-radius:10px}
.member-forms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:28px}
.member-forms form{display:grid;align-content:start;gap:14px;border:1px solid var(--line);border-radius:16px;padding:22px;min-width:0}
.member-forms form h2{margin:0;font-size:20px}
.member-forms input{max-width:100%}
.member-forms button{min-height:44px}
.member-error{color:#a4262c}.member-success{color:#246238}
@media(max-width:620px){.member-links,.member-forms{grid-template-columns:1fr}.member-page{padding-inline:18px}.member-hero{gap:14px}.member-avatar{width:56px;height:56px}.member-links a{min-height:58px}.community-landing{padding-block:28px 48px}.community-landing__grid{gap:20px}}
@media(max-width:800px){.growth-grid{grid-template-columns:1fr}.growth-card--resume{grid-column:auto}.points-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ------------------------------------------------------------- 社群工作台 */
.community { padding-bottom: 56px; }
.community__bar { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); position: sticky; top: 68px; z-index: 40; }
.community__bar-inner { display: flex; align-items: center; gap: 20px; height: 56px; }
.community__title { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; }
.community__tabs { display: flex; gap: 4px; margin-inline-start: 12px; overflow-x: auto; }
.community__tabs a { padding: 7px 13px; border-radius: 999px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.community__tabs a:hover { background: var(--bg-soft); color: var(--ink); }
.community__tabs a.is-active { background: var(--ink); color: #fff; }
.community__bar-user { margin-inline-start: auto; }
.community__layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 28px; }
.community-side { position: sticky; top: 148px; display: grid; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.community-side__user { display: flex; align-items: center; gap: 12px; }
.community-side__user strong { display: block; font-size: 15px; }
.community-side__user span.muted { font-size: 12.5px; }
.community-avatar {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden;
  border-radius: 50%; background: linear-gradient(135deg, #FF7A3D, var(--brand-strong)); color: #fff;
  font-size: 17px; font-weight: 640;
}
.community-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-avatar--sm { width: 30px; height: 30px; font-size: 13px; }
.community-side__nav { display: grid; gap: 3px; }
.community-side__nav a { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: 14px; }
.community-side__nav a:hover { background: var(--bg-soft); color: var(--ink); }
.community-side__nav a.is-active { background: var(--bg-soft); color: var(--ink); font-weight: 620; }
.community-side__foot { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.community-main { min-width: 0; }
.community-panel { display: grid; gap: 20px; }
.community-panel__head { margin-bottom: 4px; }
.community-panel__head h1 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.community-empty {
  display: grid; justify-items: start; gap: 14px; padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-warm);
}
.community-empty__art { width: 96px; height: 96px; }
.community-empty__art svg { width: 100%; height: 100%; fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.community-empty h2 { margin: 0; font-size: 22px; }
.community-empty p { margin: 0; max-width: 520px; color: var(--muted); font-size: 14.5px; }

/* ------------------------------------------------------------- 登录注册 */
.community-landing { padding-block: clamp(40px, 5vw, 76px) clamp(56px, 6vw, 96px); background: linear-gradient(180deg, var(--bg-warm), var(--bg) 70%); }
.community-landing__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 68px); align-items: start; }
.community-landing__copy { max-width: 620px; }
.community-landing h1 { margin: 0 0 20px; font-size: clamp(32px, 4.6vw, 54px); }
.community-landing__title { display: flex; flex-direction: column; align-items: flex-start; gap: .08em; }
.community-landing__title span { white-space: nowrap; }
.community-landing__points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.community-landing__points li { display: grid; gap: 3px; padding-left: 16px; border-left: 2px solid var(--brand); }
.community-landing__points strong { font-size: 15.5px; }
.community-landing__points span { color: var(--muted); font-size: 14px; }
.community-landing__note { margin-top: 30px; font-size: 13px; max-width: 560px; }
.community-landing__panel { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow-soft); }
.community-auth__tabs { display: flex; gap: 4px; margin-bottom: 24px; padding: 4px; border-radius: 999px; background: var(--bg-soft); }
.community-auth__tabs button { flex: 1; padding: 9px 0; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 14px; cursor: pointer; }
.community-auth__tabs button.is-active { background: #fff; color: var(--ink); font-weight: 640; box-shadow: 0 2px 8px rgba(24, 22, 34, .08); }
.community-auth__form { display: grid; gap: 16px; }
.community-auth__form[hidden] { display: none; }
.field { display: grid; gap: 7px; font-size: 13.5px; }
.field > span { color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--ink);
}
/* 勾选框/单选框是固定尺寸控件：绝不能继承上面那条 width:100% + min-height:44px，
 * 否则会被拉成占满整行的大方块（学员端作业页「我已同步分享到微信群」就是这样变大的）。 */
.field input[type="checkbox"], .field input[type="radio"] {
  width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: none;
  accent-color: var(--brand);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 1px; border-color: var(--brand); }
.password-field { position: relative; display: block; width: 100%; }
.password-field input { width: 100%; padding-right: 52px; }
.password-toggle { position: absolute; z-index: 1; top: 50%; right: 8px; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { background: var(--bg-soft); color: var(--ink); }
.password-toggle:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 1px; }
.password-toggle__eye { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle__eye[data-eye="closed"] [data-eye-shape="eye-off"], .password-toggle__eye[data-eye="open"] [data-eye-shape="eye"] { display: none; }
.points-store-card picture { display: block; width: 100%; }
.points-store-card__cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--bg-soft); }
.growth-card .button--primary { color: #fff; }
.growth-card .eyebrow img { vertical-align: -4px; }
.community-auth__hint { margin: 0; color: var(--muted-soft); font-size: 12.5px; }
.community-auth__error { margin: 0; padding: 11px 14px; border-radius: var(--radius-sm); background: #FDEDEA; color: #A2281A; font-size: 13.5px; }
.community-auth__error[hidden] { display: none; }

/* ------------------------------------------------------------- 积磊导航 */
.navigation-page { display: grid; gap: 38px; padding: 8px 0 64px; }
.navigation-hero { display: grid; justify-items: start; gap: 10px; max-width: 860px; }
.navigation-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); color: #1D1D1F; }
.navigation-hero > p:not(.eyebrow) { margin: 0; color: #6E6E73; font-size: 16px; }
.navigation-search { display: flex; align-items: center; gap: 10px; width: min(680px, 100%); margin-top: 16px; padding: 0 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgba(29, 29, 31, .05); }
.navigation-search > span { color: #6E6E73; font-size: 24px; }
.navigation-search input { width: 100%; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; color: #1D1D1F; font-size: 15px; }
.navigation-chips { display: flex; gap: 8px; width: 100%; max-width: 100%; margin-top: 8px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.navigation-chips::-webkit-scrollbar { display: none; }
.navigation-chips button { flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #6E6E73; font-size: 13px; cursor: pointer; }
.navigation-chips button.is-active { border-color: #FF4D1C; background: #FFF2ED; color: #D83B0C; font-weight: 650; }
.navigation-state { padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: #F7F7F8; color: #6E6E73; }
.navigation-state--error { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.navigation-state--error p { margin: 0; }
.navigation-state[hidden], [data-navigation-content][hidden] { display: none; }
.navigation-section { display: grid; gap: 16px; margin-top: 34px; }
.navigation-section:first-child { margin-top: 0; }
.navigation-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.navigation-section__head h2 { margin: 0; font-size: clamp(21px, 2.5vw, 28px); }
.navigation-section__head span { color: #6E6E73; font-size: 13px; }
.navigation-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.navigation-featured-card { display: grid; align-content: start; gap: 16px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(29, 29, 31, .055); }
.navigation-card__head { display: flex; align-items: center; gap: 13px; min-width: 0; }
.navigation-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #F5F5F7; color: #FF4D1C; font-size: 17px; font-weight: 700; }
.navigation-icon img { width: 100%; height: 100%; object-fit: contain; }
.navigation-card__names { min-width: 0; }
.navigation-card__names h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.navigation-card__names p { margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6E6E73; font-size: 12.5px; }
.navigation-featured-card__reason { margin: 0; color: #424245; font-size: 14px; line-height: 1.7; white-space: pre-line; }
.navigation-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.navigation-tags span { color: #D83B0C; font-size: 12px; }
.navigation-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin-top: auto; }
.navigation-domain { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #86868B; font-size: 12px; }
.navigation-visit { flex: 0 0 auto; color: #D83B0C; font-size: 13px; font-weight: 650; }
.navigation-categories { display: grid; gap: 10px; }
.navigation-compact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.navigation-compact-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: #1D1D1F; transition: border-color .16s, transform .16s, box-shadow .16s; }
.navigation-compact-card:hover { border-color: rgba(255, 77, 28, .45); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(29, 29, 31, .05); }
.navigation-compact-card .navigation-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
.navigation-compact-card__copy { display: grid; min-width: 0; flex: 1; }
.navigation-compact-card__copy strong, .navigation-compact-card__copy small, .navigation-compact-card__reason { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navigation-compact-card__copy strong { font-size: 14px; }
.navigation-compact-card__copy small { margin-top: 2px; color: #86868B; font-size: 11.5px; }
.navigation-compact-card__reason { margin-top: 4px; color: #6E6E73; font-size: 12px; }
.navigation-compact-card__arrow { flex: 0 0 auto; color: #86868B; font-size: 12px; }

/* ----------------------------------------------------------------- 资料库 */
/* 不要把 overflow 设成 hidden：那会让内侧 sticky 顶栏失去吸附，整页滚到页脚时顶栏被带走。 */
.library { display: flex; flex-direction: column; height: calc(100vh - 56px); background: var(--bg-soft); }
.library__topbar { position: sticky; top: 56px; z-index: 40; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); }
.library__topbar-inner { width: min(1480px, calc(100% - 32px)); margin-inline: auto; display: flex; align-items: center; gap: 18px; height: 58px; }
.library__brand { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; }
.library__search { position: relative; flex: 1 1 260px; max-width: 420px; margin-inline: auto; }
.library__search input { width: 100%; min-height: 38px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-size: 13.5px; }
.library__search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.library__results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; max-height: 340px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.library__results[hidden] { display: none; }
.library__results button { display: block; width: 100%; padding: 9px 11px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; font-size: 13.5px; }
.library__results button:hover { background: var(--bg-soft); }
.library__results small { display: block; margin-top: 2px; color: var(--muted-soft); font-size: 11.5px; }
.library__results p { margin: 8px 10px; color: var(--muted); font-size: 13px; }
.library__account { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.library__account-name { font-size: 13.5px; white-space: nowrap; }
.library__tree-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: none; font-size: 13px; cursor: pointer; white-space: nowrap; }
.library__tree-toggle:hover { background: var(--bg-soft); }
.library__body { flex: 1; min-height: 0; width: min(1480px, calc(100% - 32px)); margin-inline: auto; display: flex; align-items: stretch; }
.library__tree { flex: 0 0 auto; width: 268px; min-width: 200px; max-width: 520px; padding: 16px 10px 28px 0; overflow-y: auto; }
.library__tree-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; padding: 0 6px 10px; border-bottom: 1px solid var(--line); }
.library__sort { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.library__sort select { min-height: 32px; max-width: 178px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-soft); color: var(--ink); font-size: 12.5px; }
.library__sort select:focus { outline: none; border-color: var(--brand); background: #fff; }
body.library-tree-collapsed .library__tree, body.library-tree-collapsed .library__resizer { display: none; }
/* 拖拽分隔条：整个 6px 热区都可用，悬停/聚焦/拖动时高亮这条分割线本身。 */
.library__resizer { flex: 0 0 6px; position: relative; border: 0; padding: 0; border-left: 1px solid var(--line); background: none; cursor: col-resize; touch-action: none; }
.library__resizer::before { content: ''; position: absolute; inset: 10px 1px; border-radius: 999px; background: transparent; transition: background .16s; }
.library__resizer:hover::before, .library__resizer:focus-visible::before, .library__resizer.is-dragging::before { background: var(--brand); opacity: .55; }
.library__resizer:focus-visible { outline: none; }
body.library-resizing { cursor: col-resize; user-select: none; }
.library__tree-loading { padding: 10px 12px; color: var(--muted); font-size: 13px; }
.library__tree-empty { padding: 14px 12px; color: var(--muted); font-size: 13px; }
.library-tree__group { display: grid; }
.library-tree__node { display: flex; align-items: center; gap: 7px; width: 100%; padding: 6px 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; font-size: 13.5px; color: var(--ink-soft); }
.library-tree__node:hover { background: rgba(29, 29, 31, .05); }
.library-tree__node.is-active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 620; }
.library-tree__node .library-tree__caret { flex: 0 0 auto; width: 12px; color: var(--muted-soft); font-size: 10px; transition: transform .18s; }
.library-tree__node .library-tree__caret.is-open { transform: rotate(90deg); }
.library-tree__icon { flex: 0 0 auto; width: 16px; height: 16px; }
.library-tree__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.library-tree__icon svg[data-icon="folder"] { color: #e8a13a; }
.library-tree__icon svg[data-icon="markdown"] { color: #5b54d6; }
.library-tree__icon svg[data-icon="text"] { color: #6e6e76; }
.library-tree__icon svg[data-icon="word"] { color: #2b579a; }
.library-tree__icon svg[data-icon="excel"] { color: #217346; }
.library-tree__icon svg[data-icon="slides"] { color: #c43e1c; }
.library-tree__icon svg[data-icon="html"] { color: #e34f26; }
.library-tree__icon svg[data-icon="image"] { color: #8e44ad; }
.library-tree__icon svg[data-icon="video"] { color: #c0392b; }
.library-tree__icon svg[data-icon="audio"] { color: #16a085; }
.library-tree__icon svg[data-icon="pdf"] { color: #d93025; }
.library-tree__icon svg[data-icon="archive"] { color: #b7791f; }
.library-tree__icon svg[data-icon="binary"] { color: #5f6368; }
.library-tree__icon svg[data-icon="canvas"], .library-tree__icon svg[data-icon="sunvas"] { color: #0f8b8d; }
.library-tree__icon svg[data-icon="sunmind"] { color: #7c4dff; }
.library-tree__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-tree__children { display: grid; padding-left: 14px; }
.library-tree__children[hidden] { display: none; }

/* flex: 1 必写：否则阅读区宽度会退化成「由内容决定」，.sunmind/.canvas 只剩几百像素。 */
.library__reader { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); border-right: 1px solid var(--line); }
.library__tabs { display: flex; gap: 2px; padding: 8px 10px 0; overflow-x: auto; border-bottom: 1px solid var(--line); min-height: 44px; }
.library__tabs:empty { display: none; }
.library-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 13px; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; white-space: nowrap; }
.library-tab:hover { background: var(--bg-soft); }
.library-tab.is-active { background: var(--bg); border-color: var(--line); color: var(--ink); font-weight: 620; }
.library-tab__close { border: 0; background: none; color: var(--muted-soft); font-size: 15px; line-height: 1; cursor: pointer; padding: 0 2px; }
.library-tab__close:hover { color: var(--brand-strong); }
.library__toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); min-height: 48px; font-size: 13px; }
.library__toolbar:empty { display: none; }
.library__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; min-width: 0; }
.library__crumbs button { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; font-size: inherit; }
.library__crumbs button:hover { color: var(--brand-strong); }
.library__tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
/* 阅读区自己滚动：长 Markdown 只滚动正文，顶栏、工具条与状态栏保持不动。 */
.library__content { flex: 1; min-height: 0; overflow-y: auto; padding: 24px clamp(16px, 3vw, 36px) 40px; }
.library__statusbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.library__welcome { max-width: 620px; }
.library__welcome h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.library__welcome code { padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); font-family: var(--font-mono); font-size: .9em; }
.library__backdrop { position: fixed; inset: 0; z-index: 45; display: none; background: rgba(20, 18, 26, .4); }
body.library-tree-open .library__backdrop { display: block; }
.library-message { display: grid; gap: 10px; max-width: 620px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-warm); }
.library-message h2 { margin: 0; font-size: 19px; }
.library-message p { margin: 0; color: var(--muted); font-size: 14px; }
.library-fileinfo { display: grid; gap: 12px; max-width: 720px; }
.library-fileinfo dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 13.5px; }
.library-fileinfo dt { color: var(--muted); }
.library-fileinfo dd { margin: 0; overflow-wrap: anywhere; }
.library-preview { max-width: 100%; }
.library-preview img { max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.library-preview video { width: 100%; max-height: 70vh; border-radius: var(--radius-sm); background: #000; }
.library-preview iframe { width: 100%; height: min(78vh, 900px); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.library-preview--html iframe { background: #fff; }

/* Word / Excel / HTML 在线预览 */
.library-docx { max-width: 860px; font-size: 15px; line-height: 1.8; }
.library-docx h1 { font-size: 30px; margin: 0 0 18px; }
.library-docx h2 { font-size: 24px; margin: 34px 0 14px; }
.library-docx h3 { font-size: 20px; margin: 28px 0 12px; }
.library-docx h4, .library-docx h5, .library-docx h6 { font-size: 17px; margin: 22px 0 10px; }
.library-docx p { margin: 0 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.library-sheet { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.library-sheet table { border-collapse: collapse; min-width: 100%; font-size: 13px; }
.library-sheet th, .library-sheet td { padding: 7px 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
.library-sheet th { position: sticky; top: 0; z-index: 1; background: var(--bg-soft); color: var(--ink); font-weight: 650; }
.library-sheet tr:last-child td { border-bottom: 0; }
.library-sheet th:last-child, .library-sheet td:last-child { border-right: 0; }
.library-xlsx { display: grid; gap: 12px; }
.library-sheet-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.library-sheet-tabs::-webkit-scrollbar { display: none; }
.library-sheet-tab { flex: 0 0 auto; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; cursor: pointer; }
.library-sheet-tab:hover { border-color: var(--line-strong); color: var(--ink); }
.library-sheet-tab.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); font-weight: 640; }
.library-xlsx__hint { font-size: 12.5px; }
.library-dialog { width: min(420px, calc(100vw - 28px)); max-width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); color: var(--ink); box-shadow: var(--shadow, 0 18px 48px rgba(29,29,31,.18)); }
.library-dialog::backdrop { background: rgba(20, 18, 26, .48); }
.library-dialog h3 { margin: 0 0 10px; font-size: 19px; }
.library-dialog p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.library-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* 文本 / Markdown 阅读 */
.library-text { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); font-family: var(--font-mono); font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.library-markdown { max-width: 820px; font-size: 15.5px; line-height: 1.8; }
.library-markdown h1 { font-size: 30px; margin: 0 0 18px; }
.library-markdown h2 { font-size: 24px; margin: 38px 0 14px; }
.library-markdown h3 { font-size: 20px; margin: 30px 0 12px; }
.library-markdown h4, .library-markdown h5, .library-markdown h6 { font-size: 17px; margin: 24px 0 10px; }
.library-markdown ul, .library-markdown ol { padding-left: 24px; display: grid; gap: 6px; }
.library-markdown li.md-task { list-style: none; margin-left: -22px; display: flex; align-items: baseline; gap: 8px; }
.library-markdown blockquote { margin: 0 0 18px; padding: 6px 20px; border-left: 3px solid var(--brand); color: var(--muted); }
.library-markdown img { max-width: 100%; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.library-markdown hr { margin: 30px 0; border: 0; border-top: 1px solid var(--line); }
.library-markdown code { padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); font-family: var(--font-mono); font-size: .9em; }
.library-markdown mark { background: #FFF3C4; padding: 0 3px; border-radius: 3px; }
.md-table-wrap { margin: 0 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.md-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.md-table-wrap th, .md-table-wrap td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.md-table-wrap thead th { background: var(--bg-soft); font-weight: 640; }
.md-code { margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #1D1D1F; }
.md-code__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); font-size: 11.5px; }
.md-code__copy { border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: none; color: rgba(255, 255, 255, .8); padding: 3px 11px; font-size: 11.5px; cursor: pointer; }
.md-code__copy:hover { background: rgba(255, 255, 255, .12); }
.md-code pre { margin: 0; padding: 16px; overflow-x: auto; }
.md-code code { background: none; color: #F5F5F7; padding: 0; font-size: 12.8px; line-height: 1.7; }
.md-missing { display: inline-block; padding: 3px 9px; border-radius: 6px; background: #FFF3E6; color: #8A5B00; font-size: 13px; }

/* ---------------------------------------------------- Canvas / Sunvas 视图 */
.graph-viewer { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
/* 铺满阅读区可见高度（顶栏/标签/工具条/状态栏/内边距合计约 340px），
   避免白板与导图还要用户在阅读区里再滚一次。 */
.graph-viewer__stage { width: 100%; height: max(380px, calc(100vh - 340px)); cursor: grab; touch-action: none; }
.graph-viewer__stage.is-panning { cursor: grabbing; }
.graph-viewer__stage svg { display: block; width: 100%; height: 100%; }
.graph-node { cursor: default; }
.graph-node__box { fill: #fff; stroke: var(--line-strong); stroke-width: 1; }
.graph-node__title { font-size: 13px; font-weight: 640; fill: var(--ink); }
.graph-node__text { font-size: 12px; fill: var(--muted); }
.graph-node__label { font-size: 12px; fill: var(--muted); }
.graph-node.is-unsupported .graph-node__box { stroke-dasharray: 5 4; stroke: var(--muted-soft); fill: #F7F7F9; }
.graph-node.is-selected .graph-node__box { stroke: var(--brand); stroke-width: 2; }
.graph-edge { fill: none; stroke: rgba(29, 29, 31, .38); stroke-width: 1.6; }
.graph-edge__label { font-size: 11px; fill: var(--muted); }
.graph-viewer__hint { position: absolute; left: 12px; bottom: 10px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.graph-viewer__zoom { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.graph-viewer__zoom button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .94); cursor: pointer; font-size: 15px; line-height: 1; }
.graph-viewer__zoom button:hover { border-color: var(--brand); color: var(--brand-strong); }
.graph-viewer__copy { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.graph-viewer__copy button { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 11.5px; cursor: pointer; }
.graph-viewer__copy button:hover { border-color: var(--brand); color: var(--brand-strong); }
.graph-viewer__notice { padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FFF7E6; color: #8A5B00; font-size: 12.5px; }

/* ------------------------------------------------- 思维导图（上游引擎 iframe） */
/* 高度必须由宿主容器给定：上游引擎按容器尺寸初始化画布与自适应。 */
.mind-frame { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.mind-frame__notice { padding: 8px 14px; border-bottom: 1px solid var(--line); background: #FFFDF5; color: var(--muted); font-size: 12px; line-height: 1.6; }
.mind-frame__notice.is-edited { background: #FFF3E6; color: #8A5B00; }
.mind-frame__stage { position: relative; height: max(380px, calc(100vh - 340px)); background: #fff; }
.mind-frame__iframe { display: block; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------- Toast */
.community-toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 200; transform: translate(-50%, 12px);
  padding: 12px 22px; border-radius: 999px; background: rgba(29, 29, 31, .94); color: #fff;
  font-size: 14px; box-shadow: var(--shadow); opacity: 0; transition: opacity .22s, transform .22s;
}
.community-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.community-toast[hidden] { display: none; }

/* ------------------------------------------------------------- 头像裁剪编辑器（个人资料） */
/* 复用社群既有视觉令牌：卡片 1px 线框 + 圆角、--brand 强调、按钮沿用 .button 体系；
   结构与 chat-lightbox 一样用原生 <dialog> + ::backdrop，不引入第二套弹窗框架。 */
.avatar-editor {
  width: min(380px, calc(100vw - 28px)); max-width: 100%; padding: 22px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--bg);
  box-shadow: var(--shadow, 0 18px 48px rgba(29, 29, 31, .18));
}
.avatar-editor::backdrop { background: rgba(20, 18, 26, .5); }
.avatar-editor__dialog { display: grid; gap: 16px; }
.avatar-editor__title { margin: 0; font-size: 18px; }
.avatar-editor__stage { display: flex; align-items: center; justify-content: center; gap: 16px; }
.avatar-editor__crop {
  position: relative; flex: 0 0 auto; width: min(240px, 58vw); aspect-ratio: 1 / 1;
  overflow: hidden; border-radius: 14px; background: #1d1d1f;
  touch-action: none; cursor: grab;
}
.avatar-editor__crop.is-dragging { cursor: grabbing; }
.avatar-editor__crop img {
  position: absolute; display: none; max-width: none; max-height: none;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.avatar-editor__crop img.is-ready { display: block; }
.avatar-editor__preview {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--brand); background: #1d1d1f;
}
.avatar-editor__preview canvas { display: block; width: 100%; height: 100%; }
.avatar-editor__zoom { display: flex; align-items: center; gap: 10px; }
.avatar-editor__zoom button {
  flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
}
.avatar-editor__zoom button:hover { border-color: var(--brand); color: var(--brand-strong); }
.avatar-editor__zoom input[type="range"] { flex: 1 1 auto; min-width: 0; accent-color: var(--brand); }
.avatar-editor__actions { display: flex; align-items: center; gap: 10px; }
.avatar-editor__actions [data-avatar-reset] { margin-right: auto; }
.avatar-editor__actions .button { min-height: 44px; padding-inline: 18px; }
@media (max-width: 620px) {
  .avatar-editor__stage { gap: 12px; }
  .avatar-editor__preview { width: 52px; height: 52px; }
}

/* ------------------------------------------------------------- 响应式 */
@media (max-width: 1024px) {
  .community-landing__grid { grid-template-columns: 1fr; }
  .community__bar { top: 68px; }
  .community__layout { grid-template-columns: 1fr; }
  .community-side { position: static; }
  .community-side__nav { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .community-side__nav a { text-align: center; }
  .navigation-featured, .navigation-compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .library__tree-toggle { display: inline-flex; }
  /* 抽屉模式下不再有可拖的分隔条，由抽屉自己决定宽度。 */
  .library__resizer { display: none; }
  body.library-tree-collapsed .library__tree { display: block; }
  .library__tree {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; width: min(320px, 86vw);
    min-width: 0; max-width: none; padding: 18px 12px; background: #fff; border-right: 1px solid var(--line);
    transform: translateX(-102%); transition: transform .24s cubic-bezier(.16, 1, .3, 1); overflow-y: auto;
  }
  body.library-tree-open .library__tree { transform: none; }
  .library__reader { border-right: 0; }
  .library__content { padding: 18px 14px 32px; }
  .library__account-name { display: none; }
  .graph-viewer__stage { height: min(60vh, 560px); }
  .mind-frame__stage { height: min(62vh, 600px); }
}
@media (max-width: 620px) {
  .community__tabs { margin-inline-start: 0; }
  .library__brand strong { display: none; }
  .library__content { padding: 14px 12px 28px; }
  .library__toolbar { padding: 10px 12px; }
  .library-fileinfo dl { grid-template-columns: 1fr; gap: 4px 0; }
  .library-fileinfo dt { margin-top: 6px; }
  .navigation-page { gap: 28px; padding-bottom: 40px; }
  .navigation-search { border-radius: 14px; }
  .navigation-featured, .navigation-compact-grid { grid-template-columns: 1fr; }
  .navigation-featured-card { padding: 20px; border-radius: 18px; }
  .navigation-state--error { align-items: flex-start; flex-direction: column; }
}
/* -------------------------------------------------- 导入的群聊历史档案 */
.community-work:has(.chat-archive){width:min(1680px,calc(100% - 32px));max-width:none;padding-block:18px}
.chat-archive{display:grid;grid-template-columns:270px minmax(0,1fr);height:calc(100vh - 96px);min-height:620px;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(29,29,31,.05)}
.chat-archive__groups{min-width:0;overflow-y:auto;border-right:1px solid var(--line);background:#fff}.chat-archive__groups>header{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;padding:20px 18px;border-bottom:1px solid var(--line);background:#fff}.chat-archive__groups>header button{display:none;border:0;background:none;font-size:24px}
.chat-group{display:flex;gap:12px;width:100%;min-width:0;padding:16px 18px;border:0;border-right:3px solid transparent;border-bottom:1px solid rgba(29,29,31,.06);background:#fff;text-align:left;cursor:pointer}.chat-group:hover,.chat-group.is-active{border-right-color:var(--brand);background:var(--brand-soft)}.chat-group__cover{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:13px;background:#f5f5f7;color:var(--brand);font-weight:700}.chat-group>span:last-child{display:grid;align-content:center;min-width:0}.chat-group strong,.chat-group small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.4}.chat-group strong{font-size:15px}.chat-group small{margin-top:4px;color:var(--muted);font-size:12px}
.chat-group__cover{overflow:hidden}.chat-group__cover img{width:100%;height:100%;object-fit:cover}
.chat-archive__main{display:flex;min-width:0;min-height:0;flex-direction:column;background:#f5f5f7}.chat-archive__head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 20px;border-bottom:1px solid var(--line);background:#fff}.chat-archive__head h1{margin:0;font-size:20px}.chat-archive__head p{margin:3px 0 0;color:var(--muted);font-size:12px}.chat-filters{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.chat-filters input,.chat-filters select,.chat-filters button{height:38px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;padding:0 10px;color:var(--ink);font:inherit;font-size:12px}.chat-filters input[type=search]{width:190px}.chat-filters button{cursor:pointer}.chat-filters button[type=submit]{border-color:var(--brand);background:var(--brand);color:#fff}
.chat-archive__state{margin:auto;padding:28px;color:var(--muted);text-align:center}.chat-archive__state button{margin-left:12px}.chat-archive__stream{flex:1;min-height:0;overflow-y:auto;overflow-anchor:none;padding:20px clamp(14px,3vw,34px) 34px}.chat-archive__older{display:block;margin:0 auto 24px;padding:10px 18px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;cursor:pointer}.chat-archive__messages{display:grid;gap:10px;max-width:1100px;margin:0 auto}.chat-message{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:start}.chat-message__avatar{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--brand);font-weight:700}.chat-message__meta{display:flex;align-items:center;gap:8px;min-height:22px;color:var(--muted);font-size:12px}.chat-message__meta strong{color:var(--ink);font-size:13px}.chat-message__only,.chat-message__source{border:0;background:none;color:var(--brand-strong);font-size:11px;cursor:pointer}.chat-message__source{margin-left:auto;padding:3px 8px;border-radius:999px;background:var(--brand-soft)}.chat-message__bubble{display:grid;justify-items:start;gap:9px;max-width:min(780px,100%);margin-top:4px}.chat-message__bubble>p{max-width:100%;margin:0;padding:11px 14px;border:1px solid rgba(29,29,31,.08);border-radius:13px;background:#fff;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:0 2px 6px rgba(29,29,31,.03)}.chat-system{grid-column:1/-1;margin:4px auto;padding:6px 12px;border-radius:999px;background:rgba(29,29,31,.07);color:var(--muted);font-size:12px}.chat-quote{display:grid;gap:2px;width:100%;margin:0;padding:7px 10px;border:0;border-left:3px solid #c3c7cf;border-radius:8px;background:#f2f3f5;text-align:left;cursor:pointer}.chat-quote[disabled]{cursor:default}.chat-quote__sender{color:var(--brand-strong);font-size:12px;font-weight:650}.chat-quote__text{color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.chat-message.is-located .chat-message__bubble{outline:2px solid var(--brand);outline-offset:3px;border-radius:13px}.chat-archive__head-group{display:flex;align-items:center;gap:12px;min-width:0}.chat-archive__head-cover{display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:var(--brand-soft);color:var(--brand);font-weight:700;overflow:hidden}.chat-archive__head-cover img{width:100%;height:100%;object-fit:cover}.chat-archive__chips{display:flex;gap:8px;flex-wrap:wrap;padding:8px 20px;border-bottom:1px solid var(--line);background:#fff}.chat-chip{display:inline-flex;align-items:center;gap:8px;padding:4px 6px 4px 12px;border-radius:999px;background:var(--brand-soft);color:var(--brand-strong);font-size:12px}.chat-chip button{border:0;background:none;color:var(--brand-strong);font-size:12px;cursor:pointer;padding:2px 6px;border-radius:999px}.chat-archive__trimmed{margin:14px auto 0;padding:8px 14px;border-radius:10px;background:#fff;border:1px dashed var(--line-strong);color:var(--muted);font-size:12px;text-align:center}.chat-archive__trimmed button{border:0;background:none;color:var(--brand-strong);cursor:pointer;font-size:12px}.chat-image{display:block;max-width:min(420px,100%);padding:0;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#eee;cursor:zoom-in}.chat-image img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain}.chat-message audio{max-width:100%;preload:none}.chat-message video{width:min(520px,100%);max-height:520px;background:#000;border-radius:13px}.chat-file{display:block;max-width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);overflow-wrap:anywhere}.chat-media-missing{padding:10px 13px;border:1px dashed #c8b9ad;border-radius:10px;background:#fff8f3;color:#765f52;font-size:12px}.chat-safe-link{max-width:100%;padding:11px 14px;border-radius:12px;background:#fff;overflow-wrap:anywhere}.chat-forward{width:min(620px,100%);padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}.chat-forward summary{cursor:pointer;font-weight:650}.chat-forward__list{display:grid;gap:10px;margin-top:12px;padding-left:12px;border-left:2px solid var(--line)}.chat-forward__item p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.chat-lightbox{max-width:92vw;max-height:92vh;padding:42px 14px 14px;border:0;border-radius:14px;background:#151515}.chat-lightbox::backdrop{background:rgba(0,0,0,.72)}.chat-lightbox img{display:block;max-width:88vw;max-height:82vh}.chat-lightbox button{position:absolute;right:10px;top:7px;border:0;background:none;color:#fff;font-size:26px;cursor:pointer}.chat-archive__back{display:none}.chat-archive__empty-groups{padding:24px 18px;color:var(--muted)}.chat-group__cover,.chat-archive__head-cover{position:relative;background:#eceff8;color:#4c5da3}.chat-group__cover img,.chat-archive__head-cover img,.chat-message__avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}.chat-message__avatar{position:relative;overflow:hidden}.chat-message__bubble>p,.chat-forward__item p,.chat-system{font-family:inherit,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji"}.chat-emoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}.chat-sticker-fallback{padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:15px}.chat-archive__head-text{min-width:0}.chat-archive__head h1{overflow-wrap:anywhere}
.chat-message__avatar{overflow:hidden}.chat-message__avatar img{width:100%;height:100%;object-fit:cover}
@media(max-width:900px){
  .community-work:has(.chat-archive){width:100%;padding:0}
  .chat-archive{display:block;height:calc(100dvh - 56px);min-height:0;border:0;border-radius:0}
  .chat-archive__groups,.chat-archive__main{height:100%;min-height:0}
  .chat-archive__groups{border-right:0;overflow-y:auto}
  .chat-archive__groups>header{padding:19px 18px;font-size:20px}
  .chat-group{padding:15px 18px}
  .chat-group__cover{flex-basis:52px;height:52px}
  .chat-archive.is-list .chat-archive__main{display:none}
  .chat-archive.is-detail .chat-archive__groups{display:none}
  .chat-archive__head{padding:6px 8px;align-items:stretch;flex-direction:column;gap:5px}
  .chat-archive__head-group{gap:10px;align-items:center}
  .chat-archive__head h1{font-size:16px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .chat-archive__head p{display:none}
  .chat-archive__back{display:grid;place-items:center;flex:0 0 32px;height:38px;padding:0;border:0;background:none;color:var(--ink);font-size:27px;cursor:pointer}
  .chat-archive__head-cover{width:32px;height:32px;flex:0 0 32px;border-radius:9px}
  .chat-filters{width:100%;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:1px;gap:4px}
  .chat-filters input[type=search]{min-width:180px}
  .chat-filters input[type=date]{width:132px}
  .chat-archive__stream{padding-inline:12px}
  .chat-message{grid-template-columns:34px minmax(0,1fr)}
  .chat-message__avatar{width:32px;height:32px}
  .chat-message__source{margin-left:0}
  .chat-message__meta{flex-wrap:wrap;font-size:10px;gap:5px}.chat-message__meta strong{font-size:12px}.chat-message__only{font-size:10px}.chat-message__bubble>p{font-size:13px;padding:8px 10px}.chat-quote{font-size:11px}
}

/* A full-width message track keeps long Chinese text readable in iOS WebViews. */
.chat-archive__messages,.chat-message{width:100%;min-width:0;box-sizing:border-box}
.chat-message__body{min-width:0;width:auto;max-width:100%}
.chat-message__bubble{display:flex;flex-direction:column;align-items:flex-start;width:fit-content;max-width:min(780px,100%);box-sizing:border-box}
.chat-message__bubble>p{width:fit-content;max-width:100%;min-width:0;box-sizing:border-box}
.chat-quote{width:fit-content;max-width:min(620px,100%);box-sizing:border-box;flex:0 0 auto}
.chat-forward,.chat-file,.chat-safe-link{box-sizing:border-box;min-width:0}
.chat-message__meta strong{min-width:0;overflow-wrap:anywhere}
.chat-message__locate{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;margin-left:auto;padding:0;border:1px solid #ffd8c5;border-radius:50%;background:#fff7f2;color:#d96029;font-size:13px;line-height:1;cursor:pointer}
.chat-message__locate:hover{background:#ffebdf}
.chat-inline-link,.chat-safe-link,.chat-file{color:#0a66c2;text-decoration:underline;text-underline-offset:2px}.chat-inline-link:hover,.chat-safe-link:hover,.chat-file:hover,.chat-inline-link:focus,.chat-safe-link:focus,.chat-file:focus{color:#004182}
.chat-message--system{display:flex;justify-content:center;align-items:center;min-width:0}
.chat-message--system .chat-system{max-width:85%;margin:0;padding:2px 8px;border-radius:0;background:transparent;color:#9b9ba1;font-size:12px;line-height:1.45;text-align:center;white-space:normal;overflow-wrap:anywhere}
.chat-message.is-located{position:relative;border-radius:12px;background:#fff0e7;box-shadow:0 0 0 2px #ff9c67;animation:chat-locate-breathe 2.2s ease-in-out 3}
.chat-message.is-located .chat-message__bubble{outline:0}
.chat-message.is-located::after{content:'⌖';position:absolute;top:-10px;right:-7px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#f36a2b;color:#fff;font-size:17px}
@keyframes chat-locate-breathe{50%{background:#fff8f4;box-shadow:0 0 0 4px #ffbd98}}
.chat-archive__newer{display:block;margin:20px auto 0;padding:10px 18px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;cursor:pointer}
.chat-archive__older[hidden],.chat-archive__newer[hidden],.chat-time-panel[hidden],.chat-archive__stream[hidden],.chat-archive__chips[hidden],.chat-archive__trimmed[hidden],.chat-archive__state[hidden]{display:none}
.chat-archive__head{position:relative}
.chat-time-panel{position:absolute;z-index:30;top:calc(100% - 2px);right:14px;width:min(420px,calc(100vw - 28px));max-height:min(68vh,520px);overflow-y:auto;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 18px 40px rgba(29,29,31,.17)}
.chat-time-panel__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.chat-time-panel__head button{border:0;background:transparent;font-size:22px;cursor:pointer}
.chat-time-panel__presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.chat-time-panel__presets button{min-height:42px;padding:8px;border:1px solid var(--line);border-radius:9px;background:#fff;text-align:left;cursor:pointer}
.chat-time-panel__presets button.is-active{border-color:var(--brand);background:#fff4ed;color:var(--brand-strong)}
.chat-time-panel__custom{display:grid;gap:9px;margin-top:15px;padding-top:13px;border-top:1px solid var(--line)}
.chat-time-panel__custom label{display:grid;gap:5px;color:var(--muted);font-size:12px}
.chat-time-panel__custom input{width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid var(--line-strong);border-radius:9px;font:inherit;color:var(--ink)}
.chat-time-panel__custom>button{justify-self:end;padding:8px 20px;border:0;border-radius:9px;background:var(--brand);color:#fff;cursor:pointer}
@media(max-width:900px){
  .chat-time-panel{left:12px;right:12px;width:auto}
  .chat-message__locate{flex:0 0 auto}
  .chat-filters{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;min-width:0}
  .chat-filters>label:first-child{min-width:96px;flex:1 0 96px}
  .chat-filters input[type=search]{width:100%;min-width:0;box-sizing:border-box}
  .chat-filters input,.chat-filters select,.chat-filters button{height:33px;font-size:11px;padding:0 5px;flex-shrink:0}
  .chat-filters .chat-time-toggle{white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){.chat-message.is-located{animation:none}}
.chat-emoji--wechat{display:inline-block;width:22px;height:22px;object-fit:contain;vertical-align:-4px;margin:0 1px}.chat-emoji-fallback{display:inline-block;vertical-align:baseline}.chat-emoji--wechat[draggable=false]{-webkit-user-drag:none}
@media(max-width:620px){.community-landing__title{flex-direction:row;flex-wrap:wrap;gap:.18em}.community-landing__title span{display:block}}

/* 石头积分商城：分类筛选 + 实物兑换弹窗（原生 <dialog>，不引第二套弹窗框架） */
.points-store-filter{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 14px}
.points-store-filter .button.is-active{border-color:var(--brand);color:var(--brand-strong);background:var(--bg-warm)}
.points-store-card[hidden]{display:none}
.redeem-dialog{width:min(420px,calc(100vw - 28px));max-width:100%;padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--bg);box-shadow:var(--shadow,0 18px 48px rgba(29,29,31,.18))}
.redeem-dialog::backdrop{background:rgba(20,18,26,.5)}
.redeem-dialog form{display:grid;gap:12px;margin:0}
.redeem-dialog h3{margin:0;font-size:18px}
.redeem-dialog .field{display:grid;gap:6px;font-size:14px}
.redeem-dialog .field input{min-height:38px;padding:7px 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--bg)}
.redeem-dialog__row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.redeem-dialog__actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}
.redeem-dialog__error{margin:0;color:#c0392b;font-size:14px}

/* ---- 语音气泡 / 转账红包卡 / 合并转发卡（共享 renderer 输出） ---- */
.chat-voice{display:inline-flex;max-width:100%}
.chat-voice__main{display:inline-flex;align-items:center;gap:9px;min-width:150px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;text-align:left}
.chat-voice__main:hover{border-color:var(--line-strong,#c9cdd4)}
.chat-voice__icon{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e8eaee;color:#3c4043;font-size:11px;flex:0 0 auto}
.chat-voice__bars{display:inline-flex;align-items:center;gap:2px;height:16px;flex:0 0 auto}
.chat-voice__bars i{width:2px;height:100%;border-radius:1px;background:#9aa0a8;transform:scaleY(.35);transform-origin:center}
.chat-voice.is-playing .chat-voice__bars i{animation:chat-voice-bar .9s ease-in-out infinite}
.chat-voice__bars i:nth-child(2n){animation-delay:.15s}
.chat-voice__bars i:nth-child(3n){animation-delay:.3s}
.chat-voice__bars i:nth-child(4n){animation-delay:.45s}
@keyframes chat-voice-bar{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
.chat-voice__label{font-size:13px;color:var(--ink)}
.chat-voice__duration{font-size:12px;color:var(--muted)}
.chat-voice__text{margin:4px 0 0;padding:8px 11px;border-radius:10px;background:rgba(29,29,31,.05);font-size:13px;width:fit-content;max-width:min(560px,100%);white-space:pre-wrap;overflow-wrap:anywhere}
.chat-media-missing--voice{width:fit-content}
.chat-payment{display:grid;grid-template-columns:auto 1fr;column-gap:10px;width:min(340px,100%);padding:12px 14px;border:0;border-radius:12px;background:linear-gradient(180deg,#ffb854,#f79b1d);color:#fff}
.chat-payment__icon{grid-row:1/3;align-self:start;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.95);color:#e8930c;font-size:19px;font-weight:700}
.chat-payment__amount{font-size:15px;font-weight:700;color:#fff;overflow-wrap:anywhere}
.chat-payment__desc{margin-top:3px;font-size:12px;color:rgba(255,255,255,.92);overflow-wrap:anywhere}
.chat-payment__footer{grid-column:1/-1;margin-top:9px;padding-top:5px;border-top:1px solid rgba(255,255,255,.28);font-size:11px;color:rgba(255,255,255,.78)}
.chat-payment.is-received{background:#fff8ef;border:1px solid #f0d3b1;color:#7c4a12}
.chat-payment.is-received .chat-payment__icon{background:#fff;color:#2f9e66}
.chat-payment.is-received .chat-payment__amount{color:#8a4b12}
.chat-payment.is-received .chat-payment__desc{color:#a1754a}
.chat-payment.is-received .chat-payment__footer{border-top-color:rgba(138,75,18,.16);color:#b08a63}
.chat-payment--red{background:linear-gradient(180deg,#ff8a4d,#f25b1f)}
.chat-payment--red .chat-payment__icon{background:rgba(255,255,255,.95);color:#f25b1f}
/* 视频号分享卡：正文与后台使用相同结构，不伪装为可播放的视频文件。 */
.chat-finder{width:280px;max-width:100%;overflow:hidden;border:1px solid #e2e3e7;border-radius:16px;background:#f7f7f8;color:#202124;box-shadow:0 1px 2px #00000008}
.chat-finder__cover{position:relative;aspect-ratio:5/4;background:#eceef1;display:grid;place-items:center;overflow:hidden}
.chat-finder__cover>img{display:block;width:100%;height:100%;object-fit:cover}
.chat-finder__missing{font-size:13px;color:#767b87}
.chat-finder__duration{position:absolute;right:8px;bottom:8px;padding:1px 5px;background:#0009;border-radius:4px;color:white;font-size:12px}
.chat-finder__desc{margin:10px 12px 6px;line-height:1.5;font-size:14px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.chat-finder__footer{display:flex;align-items:center;gap:5px;padding:0 12px 10px;font-size:12px;color:#888d9b;min-width:0}
.chat-finder__footer img{width:20px;height:20px;border-radius:50%;object-fit:cover}
.chat-finder__author{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.chat-forward{width:min(620px,100%);padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.chat-forward--card{display:block;cursor:pointer;text-align:left;padding:10px 14px}
.chat-forward--card:hover{border-color:var(--line-strong,#c9cdd4)}
.chat-forward summary{cursor:pointer;padding:10px 14px;list-style:none}
.chat-forward summary::-webkit-details-marker{display:none}
.chat-forward__title{font-weight:650;color:var(--ink)}
.chat-forward__preview{display:grid;gap:2px;margin-top:4px}
.chat-forward__line{color:var(--muted);font-size:12px;max-width:480px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-forward__count{margin-top:6px;font-size:11px;color:#9aa0a8}
.chat-forward__list{display:grid;gap:10px;padding:10px 14px;border-top:1px solid var(--line);background:rgba(29,29,31,.02)}
.chat-forward__item strong{font-size:12px;color:var(--muted)}
.chat-forward__item p{margin:2px 0 0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-forward__note{font-size:12px;color:var(--muted)}
/* 合并转发弹窗：独立记录流，可滚动，「返回」退出 */
.chat-forward-dialog{width:min(560px,92vw);max-height:min(72vh,640px);border:0;border-radius:14px;padding:0;background:#fff;color:var(--ink);overflow:hidden}
.chat-forward-dialog::backdrop{background:rgba(15,18,22,.45)}
.chat-forward-dialog__head{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line);background:#fff}
.chat-forward-dialog__back{border:0;background:none;padding:4px 8px;border-radius:8px;color:var(--brand,#2f6fed);font-size:14px;cursor:pointer}
.chat-forward-dialog__back:hover{background:rgba(29,29,31,.06)}
.chat-forward-dialog__list{overflow-y:auto;max-height:calc(min(72vh,640px) - 54px);padding:14px 16px;display:grid;gap:13px}
.chat-forward-detail__item{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:start}
.chat-forward-detail__avatar{position:relative;width:34px;height:34px;border-radius:8px;background:#e8eaee;display:grid;place-items:center;color:#5f6368;font-weight:650;font-size:13px;overflow:hidden}
.chat-forward-detail__avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.chat-forward-detail__head{display:flex;gap:8px;align-items:baseline}
.chat-forward-detail__head strong{font-size:12px;color:var(--muted)}
.chat-forward-detail__head time{font-size:11px;color:#9aa0a8}
.chat-forward-detail__body{margin:2px 0 0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.mall-card__cover-empty{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:16/9;border-radius:12px;background:linear-gradient(135deg,#f3f6fb,#e8eef7);color:#8a94a6;font-weight:700;letter-spacing:2px}
.mall-card__subtitle{margin:0;font-size:14px;color:var(--brand-strong)}
.mall-card__prices{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.mall-price{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:999px;background:var(--bg-soft);font-weight:700;color:var(--brand-strong)}
.mall-price--points{background:#fff5e8;color:#b45309}
/* 石头单位统一用图标：数字后面跟 🪨，不再写「石头」二字（奖励/充值石头是分类名，保持文字）。 */
.stone-icon{display:inline-block;margin-left:3px;font-size:.92em;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.mall-price .stone-icon{margin-left:4px}
.mall-card__action .stone-icon{font-size:.95em}
.mall-price--mixed{background:#eef4ff;color:#1d4ed8}
.mall-card .button{margin-top:6px}
.mall-dialog{min-width:min(440px,92vw)}
.mall-dialog__body{display:grid;gap:12px}
.mall-dialog__modes{display:grid;gap:8px}
.mall-dialog__mode{display:flex;gap:8px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font-size:14px}
.mall-dialog__mode input{width:16px;height:16px}
.mall-dialog__pay{display:grid;justify-items:center;gap:8px;padding:12px;border:1px dashed var(--line-strong);border-radius:12px;background:var(--bg-warm)}
.mall-dialog__pay[hidden]{display:none}
.mall-dialog__pay img{width:220px;height:220px;background:#fff;border-radius:8px}
/* 手机端本该拉起微信 App，只有渠道拒绝才退成二维码：把原因显示出来，别静默降级。 */
.mall-dialog__pay-note{margin:0;padding:8px 10px;border-radius:8px;font-size:13px;line-height:1.6;color:#8a4b12;background:#fdf1e0;border:1px solid #f0dcc0}
.mall-dialog__pay-note[hidden]{display:none}
/* ---- 石头商城视觉升级：页头 / 余额摘要 / 筛选 / 商品卡 ---- */
.mall-page{max-width:1120px}
.mall-summary, .mall-filter, .points-store-grid{min-width:0}
.mall-hero{margin-bottom:24px}
.mall-hero .eyebrow{margin:0 0 8px}
.mall-hero h1{margin:0 0 10px}
.mall-hero__lede{margin:0;max-width:660px;color:var(--muted);font-size:15px}
.mall-summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 28px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,#fff8f1 0%,#fff 55%,#f7f9ff 100%)}
.mall-summary__balance{display:grid;gap:6px;min-width:0}
.mall-summary__label{color:var(--muted);font-size:13px;letter-spacing:.06em}
.mall-summary__value{font-size:clamp(36px,6vw,52px);line-height:1;letter-spacing:-.04em}
.mall-summary__value .stone-icon{font-size:.5em;margin-left:.1em;vertical-align:.08em;letter-spacing:0}
.mall-summary__split{display:flex;flex-wrap:wrap;gap:8px 18px;color:var(--muted);font-size:13px}
.mall-summary__split b{color:var(--ink);font-weight:650}
.mall-summary__note{margin:6px 0 0;color:var(--muted-soft);font-size:12.5px}
.mall-summary__action{flex:0 0 auto;display:grid;justify-items:center;gap:6px}
.mall-summary__action small{color:var(--muted);font-size:12px}
.mall-recharge{flex:0 0 auto;white-space:nowrap;min-height:46px;padding:12px 26px;border-radius:999px}
/* 「我的订单」不再占一级菜单，改放在余额卡的充值按钮下方。 */
.mall-orders-button{flex:0 0 auto;white-space:nowrap;min-height:40px;padding:10px 26px;border-radius:999px;background:#fff;border-color:var(--line-strong)}
.mall-filter{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:4px 0 16px}
.mall-filter .points-store-filter{margin:0;flex-wrap:wrap}
.points-store-card.mall-card{padding:14px;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(24,22,34,.05);transition:transform .2s cubic-bezier(.16,1,.3,1),box-shadow .2s}
.points-store-card.mall-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(24,22,34,.09)}
.mall-card__body{display:grid;gap:7px;min-width:0}
.mall-card__body h3{margin:2px 0 0;font-size:17px;line-height:1.4;letter-spacing:-.01em}
.mall-card__detail{margin:0;color:var(--muted);font-size:13px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mall-card__hint{margin:0;color:var(--muted-soft);font-size:12px}
.mall-card__action{width:100%;margin-top:4px}
/* 「已拥有」不是主按钮，但必须一眼能看见：浏览器 disabled 默认灰字太淡。
   用不透明的淡橙实底 + 橙字，和「充值石头」的品牌橙保持同一色系，
   但比可购买的实心橙按钮更轻，明确区分「已拥有」与「可购买」。 */
.mall-card__action:disabled{background:#FFF1EA;border-color:#FFD2C2;color:#E8430C;font-weight:650;opacity:1;cursor:default;box-shadow:none;transform:none}
.mall-card__action:disabled:hover{background:#FFF1EA;border-color:#FFD2C2;transform:none}
/* 从聊天试听弹窗直达的商品卡：高亮这一张，其它商品保持原样。 */
.mall-card.is-focused{outline:2px solid var(--brand);outline-offset:3px}
/* 手机端商城：分类固定一行（横向滚动，不换行）；商品按 2*n 排版，一行两个，不再回落成单列长列表 */
@media (max-width:720px){
  .points-store-filter{flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:2px;scrollbar-width:none;-ms-overflow-style:none}
  .points-store-filter::-webkit-scrollbar{display:none}
  .points-store-filter .button{flex:0 0 auto;white-space:nowrap}
  .mall-summary{flex-direction:column;align-items:stretch;gap:18px;padding:20px}
  .mall-summary__action{justify-items:stretch}
  .mall-recharge,.mall-orders-button{width:100%}
  .mall-filter{flex-direction:column;align-items:stretch;flex-wrap:nowrap}
  .mall-filter .points-store-filter{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .mall-filter .points-store-filter::-webkit-scrollbar{display:none}
}
@media (max-width:720px){.points-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){
  .points-store-grid{gap:10px}
  .points-store-card{padding:10px;border-radius:14px;gap:6px}
  /* 手机端商品卡：封面放大到近方形，文字整体收紧，图与文高度接近 1:1。 */
  .points-store-card__cover,.mall-card__cover-empty{aspect-ratio:1/1;border-radius:10px}
  .mall-card__body{gap:4px}
  .points-store-card h3{font-size:13px;line-height:1.35}
  .points-store-card p{font-size:11px}
  .mall-card__subtitle{font-size:11px}
  .mall-card__detail{font-size:11px;line-height:1.45;-webkit-line-clamp:2}
  .mall-card__prices{gap:4px;margin-top:0}
  .mall-card__hint{font-size:10.5px;line-height:1.4}
  .mall-price{max-width:100%;padding:3px 7px;font-size:11px;overflow-wrap:anywhere}
  .mall-card .button{padding:7px 4px;font-size:11.5px}
}
/* 群聊按产品权益分组：不同产品的社群用不同色标区分 */
.chat-product-group{margin:0 0 12px}
.chat-product-group__title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 6px;padding:4px 6px;border-radius:8px;font-size:12px;font-weight:700;color:#6b5b3f;background:#f6f1e6}
.chat-product-group__title small{font-weight:500;color:var(--muted)}
.chat-product-group--orange .chat-product-group__title{background:#fdece0;color:#9a4d15}
.chat-product-group--blue .chat-product-group__title{background:#e6eefb;color:#1d4ed8}
.chat-product-group--purple .chat-product-group__title{background:#efe6fb;color:#6d28d9}
.chat-product-group--green .chat-product-group__title{background:#e3f5ea;color:#15803d}
.chat-product-group--cyan .chat-product-group__title{background:#e2f4f6;color:#0e7490}
.chat-product-group--pink .chat-product-group__title{background:#fbe7f0;color:#be1e6d}
.chat-product-group--gold .chat-product-group__title{background:#fbf1d6;color:#92600a}
.chat-product-group--indigo .chat-product-group__title{background:#e6e9fb;color:#3730a3}
.chat-product-group .chat-group{width:100%}
/* 群聊权益标签：完整权益 / 试看最早 N 天 / 试看最近 N 天 */
/* 「N 条历史消息」与权益胶囊同处一行：群列表保持两行（标题 + 元信息），不要挤成三行。 */
.chat-group__meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:4px}
.chat-group__meta>small{margin-top:0}
.chat-group__access{display:inline-flex;align-items:center;width:fit-content;margin-top:0;padding:2px 8px;border-radius:999px;font-size:11px;font-style:normal;font-weight:650;line-height:1.6}
.chat-group__access--full{background:#e3f5ea;color:#15803d}
.chat-group__access--trial{background:#fff2e5;color:#b4530f}
/* 试听权益的窗口边界：模糊占位 + 可点开的说明弹窗 */
.chat-trial-lock{display:grid;gap:10px;max-width:1100px;margin:0 auto 20px;padding:0;border:0;background:transparent;text-align:center}
.chat-trial-lock--newer{margin:20px auto 0}
.chat-trial-lock[hidden]{display:none}
.chat-trial-lock__ghost{display:grid;gap:10px;padding:2px 0;filter:blur(4px);opacity:.7;pointer-events:none;user-select:none}
.chat-trial-lock__ghost span{display:block;height:38px;border-radius:12px;background:linear-gradient(90deg,#e7e9ef,#f5f6f9)}
.chat-trial-lock__ghost span:nth-child(2){width:76%}
.chat-trial-lock__ghost span:nth-child(3){width:58%}
.chat-trial-lock__card{display:grid;gap:4px;width:100%;padding:14px 16px;border:1px dashed #f0b27f;border-radius:14px;background:#fff8f2;color:var(--ink);cursor:pointer}
.chat-trial-lock__card strong{font-size:14px;color:#b4530f}
.chat-trial-lock__card small{color:var(--muted);font-size:12px}
.trial-limit-dialog{width:min(460px,calc(100vw - 32px));padding:0;border:0;border-radius:18px;background:#fff;box-shadow:0 24px 60px rgba(29,29,31,.24)}
.trial-limit-dialog::backdrop{background:rgba(20,20,22,.46)}
.trial-limit-dialog__content{display:grid;gap:12px;padding:22px 22px 18px}
.trial-limit-dialog__content h3{margin:0;font-size:17px}
.trial-limit-dialog__content p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.trial-limit-dialog__actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px;flex-wrap:wrap}
.trial-limit-dialog__actions button{padding:9px 16px;border:1px solid var(--line-strong);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.trial-limit-dialog__actions .button{padding:9px 16px;border-radius:10px;font-size:13px;text-decoration:none}
/* 身份标签：像 VIP / SVIP 那样的等级感，样式在产品权益中心按产品选择 */
/* 身份标签（VIP / SVIP 那样的等级感）样式在 static/site/css/member-badge.css，
   后台编辑页的实时预览共用同一份，这里不要重复定义。 */
.mall-order-summary{display:grid;gap:8px;margin:12px 0}
.mall-order-summary>div{display:flex;justify-content:space-between;gap:12px;padding:9px 12px;background:var(--bg-warm);border:1px solid var(--line);border-radius:10px}
.mall-order-summary dt{color:var(--muted);font-size:12px}
.mall-order-summary dd{margin:0;font-weight:600}
.mall-pay-result .community-panel{max-width:680px;margin:0 auto}
/* 我的订单：卡片式，和网站整体风格一致，不再是裸表格 */
.order-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;margin-top:12px}
.order-card{display:grid;gap:8px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.order-card__head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted)}
.order-card__kind{padding:2px 8px;border-radius:999px;background:var(--bg-soft);font-weight:650}
.order-card h3{margin:0;font-size:15px;line-height:1.4}
.order-card__meta{display:flex;flex-wrap:wrap;gap:10px;color:var(--muted);font-size:12px}
.order-card__foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:4px;font-size:12px}
.order-card__tracking{color:var(--muted)}
/* 明细表（积分明细 / 兑换记录）：一行一条，窄屏横向滚动。
   之前这里没有任何样式，表格被压进手机宽度后「-25 石头」「2026-10-08T20:59:06+00:00」
   各自折成三行，读起来非常拥挤；现在单元格一律不换行，宁可整表横向滚动。 */
.table-wrap{margin:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-wrap table{width:100%;border-collapse:collapse;font-size:14px}
.table-wrap th,.table-wrap td{padding:11px 14px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.table-wrap thead th{background:var(--bg-soft);color:var(--muted);font-size:12px;font-weight:650}
.table-wrap tbody tr:last-child td{border-bottom:0}
.table-wrap .mono{font-size:13px}
/* 我的课程：封面按课程名自动生成 */
.growth-card__cover{width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:var(--bg-soft)}
.growth-card__cover svg,.growth-card__cover img{display:block;width:100%;height:100%;object-fit:cover}

/* 短信验证码：登录 / 注册 / 改 PIN / 忘记 PIN 共用同一行样式。
   窄屏时按钮必须保持可见，输入框可以收缩，不能把「重新发送」挤出卡片。 */
.sms-code-row{display:flex;gap:8px;align-items:center}
.sms-code-row input{flex:1 1 auto;min-width:0}
.sms-code-row .button{flex:0 0 auto;white-space:nowrap;min-height:42px;padding-inline:12px;font-size:13px}
/* 验证码行默认隐藏：.field 的 display:grid 会盖掉浏览器对 [hidden] 的内置样式，
   所以必须显式声明，否则不管是否需要短信验证码，这一行都会一直显示。 */
[data-sms-field][hidden]{display:none!important}
/* 服务端返回的「为什么需要验证码」：新设备/异地登录等，必须让用户看到原因。 */
.sms-reason{display:block;padding:9px 11px;border:1px solid #F0D3A8;border-radius:10px;background:#FFF6E8;color:#8A5612;font-size:12.5px;line-height:1.55}
.sms-reason[hidden]{display:none!important}
.community-auth__error.is-success{color:var(--brand-strong)}

/* ------------------------------------------------------------- 积磊导航 V2 */
.navigation-v2 {
  display: grid; gap: 30px; padding: 8px 0 72px;
  --nav-ink: #1D1D1F; --nav-muted: #6E6E73; --nav-soft: #F5F5F7;
  --nav-line: #E8E8ED; --nav-brand: #FF4D1C; --nav-brand-soft: #FFF2ED; --nav-brand-strong: #D83B0C;
}
.navigation-v2__hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 10px; }
.navigation-v2__hero-copy { display: grid; gap: 8px; min-width: 0; }
.navigation-v2__hero h1 { margin: 0; color: var(--nav-ink); font-size: clamp(34px, 5vw, 56px); letter-spacing: -.035em; line-height: 1.05; }
.navigation-v2__subtitle { margin: 0; color: var(--nav-muted); font-size: clamp(15px, 1.6vw, 18px); }
.navigation-v2__brand { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 8px; padding-bottom: 10px; }
.navigation-v2__brand span { display: block; width: 18px; border-radius: 999px; background: linear-gradient(180deg, #FF7A4D, var(--nav-brand)); opacity: .9; }
.navigation-v2__brand span:nth-child(1) { height: 28px; }
.navigation-v2__brand span:nth-child(2) { height: 48px; opacity: .65; }
.navigation-v2__brand span:nth-child(3) { height: 68px; opacity: .35; }
.navigation-v2__searchbar { display: flex; align-items: center; gap: 14px; min-width: 0; }
.navigation-v2 .navigation-search { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; border-color: var(--nav-line); border-radius: 18px; box-shadow: 0 12px 32px rgba(29, 29, 31, .06); }
.navigation-v2 .navigation-search input { height: 56px; font-size: 16px; }
.navigation-search__clear { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--nav-soft); color: var(--nav-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.navigation-search__clear:hover { background: #ECECF0; color: var(--nav-ink); }
.navigation-search__clear[hidden] { display: none; }
.navigation-v2__search-count { flex: 0 0 auto; color: var(--nav-muted); font-size: 13px; white-space: nowrap; }
.navigation-v2__search-hint { margin: -18px 0 0; color: var(--nav-muted); font-size: 13px; }
.navigation-v2__search-hint[hidden] { display: none; }
.navigation-v2 .navigation-chips { margin-top: 0; gap: 9px; }
.navigation-v2 .navigation-chips button { padding: 9px 16px; border-color: var(--nav-line); color: var(--nav-muted); font-size: 13.5px; }
.navigation-v2 .navigation-chips button.is-active { border-color: var(--nav-brand); background: var(--nav-brand-soft); color: var(--nav-brand-strong); }
.navigation-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.navigation-overview__card {
  display: grid; align-content: start; gap: 4px; min-width: 0; padding: 18px 20px; text-align: left;
  border: 1px solid var(--nav-line); border-radius: 20px; background: #fff;
  box-shadow: 0 10px 30px rgba(29, 29, 31, .045); color: var(--nav-ink); cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.navigation-overview__card:hover { transform: translateY(-2px); border-color: rgba(255, 77, 28, .35); box-shadow: 0 16px 38px rgba(29, 29, 31, .08); }
.navigation-overview__card span { color: var(--nav-muted); font-size: 12.5px; }
.navigation-overview__card strong { font-size: clamp(26px, 3vw, 36px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.navigation-overview__card small { color: #86868B; font-size: 11.5px; }
.navigation-v2__section { display: grid; gap: 14px; margin-top: 34px; }
.navigation-v2__section:first-of-type { margin-top: 0; }
.navigation-v2__section[hidden] { display: none; }
.navigation-v2__eyebrow { margin: 0 0 4px; color: var(--nav-brand-strong); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.navigation-v2 .navigation-section__head h2 { color: var(--nav-ink); font-size: clamp(21px, 2.6vw, 30px); letter-spacing: -.025em; }
.navigation-v2 .navigation-section__head span { color: var(--nav-muted); }
.navigation-v2__note { margin: -4px 0 0; color: #86868B; font-size: 12px; line-height: 1.6; }
.navigation-v2__note[hidden] { display: none; }
.navigation-v2 .navigation-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.navigation-v2 .navigation-featured-card {
  gap: 14px; padding: 22px; border-color: var(--nav-line); border-radius: 24px;
  background: linear-gradient(180deg, #fff, #FCFCFD); box-shadow: 0 14px 34px rgba(29, 29, 31, .06);
}
.navigation-v2 .navigation-card { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 18px; border: 1px solid var(--nav-line); border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(29, 29, 31, .04); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.navigation-v2 .navigation-card:hover { transform: translateY(-2px); border-color: rgba(255, 77, 28, .3); box-shadow: 0 14px 34px rgba(29, 29, 31, .07); }
.navigation-v2 .navigation-icon { width: 44px; height: 44px; border-color: var(--nav-line); border-radius: 13px; background: var(--nav-soft); }
.navigation-icon--compact, .navigation-icon--small { width: 36px !important; height: 36px !important; border-radius: 10px !important; font-size: 14px; }
.navigation-icon--latest, .navigation-icon--hot { width: 38px !important; height: 38px !important; border-radius: 11px !important; font-size: 14px; }
.navigation-v2 .navigation-card__names h3 { display: flex; align-items: center; gap: 7px; color: var(--nav-ink); font-size: 17px; letter-spacing: -.01em; }
.navigation-v2 .navigation-card__names p { color: #86868B; font-size: 12px; }
.navigation-new { flex: 0 0 auto; padding: 2px 6px; border-radius: 999px; background: var(--nav-brand-soft); color: var(--nav-brand-strong); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.navigation-card__desc, .navigation-featured-card__desc { margin: 0; display: -webkit-box; overflow: hidden; color: #424245; font-size: 13.5px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.navigation-card__reason { margin: 0; display: -webkit-box; overflow: hidden; color: var(--nav-muted); font-size: 12.5px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.navigation-v2 .navigation-featured-card__reason { color: #424245; font-size: 14px; line-height: 1.7; -webkit-line-clamp: 4; }
.navigation-v2 .navigation-featured-card__reason span { color: var(--nav-brand-strong); font-weight: 700; }
.navigation-v2 .navigation-tags span { color: var(--nav-brand-strong); font-size: 11.5px; }
.navigation-v2 .navigation-card__foot { gap: 10px; margin-top: 2px; }
.navigation-v2 .navigation-domain { color: #86868B; }
.navigation-detail-link, .navigation-open {
  padding: 0; border: 0; background: none; color: var(--nav-muted); font: inherit; font-size: 12px; cursor: pointer;
}
.navigation-detail-link:hover, .navigation-open:hover { color: var(--nav-ink); text-decoration: underline; text-underline-offset: 2px; }
.navigation-v2 .navigation-visit { color: var(--nav-brand-strong); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.navigation-favorite {
  flex: 0 0 auto; min-width: 56px; padding: 6px 10px; border: 1px solid var(--nav-line); border-radius: 999px;
  background: #fff; color: var(--nav-muted); font: inherit; font-size: 11.5px; cursor: pointer; white-space: nowrap;
}
.navigation-favorite:hover { border-color: var(--nav-brand); color: var(--nav-brand-strong); }
.navigation-favorite.is-active { border-color: var(--nav-brand); background: var(--nav-brand-soft); color: var(--nav-brand-strong); font-weight: 700; }
.navigation-favorite--card { margin-left: auto; }
.navigation-favorite--compact, .navigation-favorite--small { min-width: 50px; padding: 5px 8px; font-size: 11px; }
.navigation-grid--card { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.navigation-grid--compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.navigation-v2 .navigation-compact-card { padding: 12px 14px; border-color: var(--nav-line); border-radius: 15px; }
.navigation-v2 .navigation-compact-card:hover { transform: none; }
.navigation-v2 .navigation-compact-card__copy strong { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.navigation-v2 .navigation-compact-card__copy small { color: #86868B; }
.navigation-v2 .navigation-compact-card__reason { color: var(--nav-muted); font-size: 11.5px; }
.navigation-compact-card__arrow { flex: 0 0 auto; padding: 0; border: 0; background: none; color: #86868B; font: inherit; font-size: 11px; cursor: pointer; }
.navigation-compact-card__visit { flex: 0 0 auto; color: var(--nav-brand-strong); font-size: 11.5px; font-weight: 700; text-decoration: none; }
.navigation-category-section { display: grid; gap: 12px; margin-top: 24px; }
.navigation-category-section:first-child { margin-top: 0; }
.navigation-v2__categories-head { align-items: center; }
.navigation-view-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--nav-line); border-radius: 999px; background: var(--nav-soft); }
.navigation-view-toggle button { padding: 6px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--nav-muted); font: inherit; font-size: 12px; cursor: pointer; }
.navigation-view-toggle button.is-active { background: #fff; color: var(--nav-ink); font-weight: 650; box-shadow: 0 2px 8px rgba(29, 29, 31, .08); }
.navigation-latest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.navigation-latest__item { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px 14px; border: 1px solid var(--nav-line); border-radius: 17px; background: #fff; }
.navigation-latest__copy { display: grid; gap: 2px; flex: 1; min-width: 0; }
.navigation-latest__copy strong { display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--nav-ink); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.navigation-latest__copy small { overflow: hidden; color: var(--nav-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.navigation-latest__visit { flex: 0 0 auto; color: var(--nav-brand-strong); font-size: 11.5px; font-weight: 700; text-decoration: none; }
.navigation-hot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.navigation-hot__item { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px 14px; border: 1px solid var(--nav-line); border-radius: 16px; background: #fff; }
.navigation-hot__rank { flex: 0 0 22px; color: var(--nav-brand); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.navigation-hot__copy { display: grid; gap: 2px; flex: 1; min-width: 0; }
.navigation-hot__copy strong { overflow: hidden; color: var(--nav-ink); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.navigation-hot__copy small { color: var(--nav-muted); font-size: 11.5px; }
.navigation-hot__visit { flex: 0 0 auto; color: var(--nav-brand-strong); font-size: 11.5px; font-weight: 700; text-decoration: none; }
.navigation-range { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--nav-line); border-radius: 999px; background: var(--nav-soft); }
.navigation-range button { padding: 5px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--nav-muted); font: inherit; font-size: 11.5px; cursor: pointer; }
.navigation-range button.is-active { background: #fff; color: var(--nav-ink); font-weight: 650; }
.navigation-favorites, .navigation-recent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.navigation-favorite-item { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px 14px; border: 1px solid var(--nav-line); border-radius: 16px; background: #fff; }
.navigation-favorite-item__copy { display: grid; gap: 2px; flex: 1; min-width: 0; }
.navigation-favorite-item__copy strong { overflow: hidden; color: var(--nav-ink); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.navigation-favorite-item__copy small { overflow: hidden; color: var(--nav-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.navigation-favorite-item__visit { flex: 0 0 auto; color: var(--nav-brand-strong); font-size: 11.5px; font-weight: 700; text-decoration: none; }
.navigation-more-button { margin-left: 8px; padding: 0; border: 0; background: none; color: var(--nav-brand-strong); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.navigation-state--empty p { margin: 0; }
.navigation-v2 .navigation-state { border-color: var(--nav-line); border-radius: 20px; background: var(--nav-soft); }
.navigation-detail {
  width: min(640px, calc(100vw - 32px)); max-height: min(86vh, 760px); padding: 0; overflow: auto;
  border: 1px solid var(--nav-line); border-radius: 24px; background: #fff; color: var(--nav-ink);
  box-shadow: 0 30px 80px rgba(29, 29, 31, .2);
}
.navigation-detail::backdrop { background: rgba(29, 29, 31, .42); backdrop-filter: blur(3px); }
.navigation-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 22px 0; }
.navigation-detail__identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.navigation-detail__identity h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.navigation-detail__identity p { margin: 3px 0 0; color: var(--nav-muted); font-size: 12.5px; }
.navigation-detail__icon { flex: 0 0 auto; }
.navigation-detail__desc { margin: 18px 22px 0; color: #424245; font-size: 14px; line-height: 1.75; }
.navigation-detail__reason { margin: 16px 22px 0; padding: 13px 15px; border-radius: 14px; background: var(--nav-brand-soft); }
.navigation-detail__reason[hidden] { display: none; }
.navigation-detail__reason span { display: block; margin-bottom: 4px; color: var(--nav-brand-strong); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.navigation-detail__reason p { margin: 0; color: #5A2A16; font-size: 13.5px; line-height: 1.7; }
.navigation-detail__meta { display: grid; gap: 8px; margin: 16px 22px 0; }
.navigation-detail__meta > div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--nav-line); font-size: 12.5px; }
.navigation-detail__meta > div:last-child { border-bottom: 0; }
.navigation-detail__meta dt { flex: 0 0 72px; color: var(--nav-muted); }
.navigation-detail__meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.navigation-detail__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 18px 22px 22px; }
.navigation-detail__actions .button { text-decoration: none; }
.navigation-detail__actions [data-detail-favorite].is-active { border-color: var(--nav-brand); color: var(--nav-brand-strong); background: var(--nav-brand-soft); }
.navigation-v2 .button--ghost { border: 1px solid var(--nav-line); background: #fff; color: var(--nav-ink); }
.navigation-v2 .button--small { min-height: 34px; padding: 0 12px; font-size: 12px; }
@media (max-width: 1100px) {
  .navigation-v2 .navigation-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navigation-latest, .navigation-favorites, .navigation-recent { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .navigation-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navigation-hot { grid-template-columns: 1fr; }
  .navigation-v2__searchbar { flex-wrap: wrap; }
  .navigation-v2__search-count { width: 100%; }
}
@media (max-width: 620px) {
  .navigation-v2 { gap: 22px; padding-bottom: 44px; }
  .navigation-v2__brand { display: none; }
  .navigation-v2 .navigation-search input { height: 50px; font-size: 15px; }
  .navigation-v2 .navigation-featured { grid-template-columns: 1fr; }
  .navigation-favorite-item { flex-wrap: wrap; }
  .navigation-favorite-item__copy { flex: 1 1 calc(100% - 56px); }
  .navigation-favorite-item__visit { margin-left: auto; }
  .navigation-latest__item, .navigation-hot__item { flex-wrap: wrap; }
  .navigation-latest__copy, .navigation-hot__copy { flex: 1 1 calc(100% - 56px); }
  .navigation-grid--card, .navigation-grid--compact { grid-template-columns: 1fr; }
  .navigation-latest, .navigation-favorites, .navigation-recent { grid-template-columns: 1fr; }
  .navigation-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .navigation-overview__card { padding: 14px; border-radius: 16px; }
  .navigation-overview__card strong { font-size: 28px; }
  .navigation-v2__section { margin-top: 26px; }
  .navigation-v2 .navigation-card, .navigation-v2 .navigation-featured-card { padding: 16px; border-radius: 18px; }
  .navigation-v2 .navigation-section__head h2 { font-size: 21px; }
  .navigation-v2__categories-head { flex-wrap: wrap; gap: 10px; }
  .navigation-favorite { min-width: 52px; padding: 7px 9px; }
  .navigation-detail { width: calc(100vw - 20px); border-radius: 20px; }
  .navigation-detail__head { padding: 18px 18px 0; }
  .navigation-detail__desc, .navigation-detail__reason, .navigation-detail__meta { margin-inline: 18px; }
  .navigation-detail__actions { padding: 16px 18px 18px; }
  .navigation-detail__actions .button { flex: 1 1 auto; text-align: center; }
}

/* 社群导航：装机必备与官方下载入口（与公开站共用按钮语义） */
.navigation-downloads { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.navigation-download {
  display: inline-flex; align-items: center; justify-content: center; min-height: 30px;
  padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 77, 28, .28);
  background: #fff5f0; color: #ff4d1c; font-size: 12px; font-weight: 600; text-decoration: none;
}
.navigation-download:hover { background: #ffe9df; }
.navigation-download--unavailable { border-color: #e5e5e7; background: #f5f5f7; color: #777; }
.community-essentials { display: grid; gap: 14px; }
.community-essentials__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.community-essentials__filters a {
  padding: 7px 12px; border-radius: 999px; border: 1px solid #e5e5e7;
  background: #fff; color: #1d1d1f; font-size: 13px; text-decoration: none;
}
.community-essentials__filters a.is-active { border-color: #ff4d1c; background: #ff4d1c; color: #fff; }
.community-essentials__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.community-essentials__card { padding: 18px; border-radius: 16px; border: 1px solid #ececee; background: #fff; }
.community-essentials__card h2 { margin: 0; font-size: 17px; }
.community-essentials__card p { margin: 8px 0 0; color: #555; font-size: 13px; line-height: 1.7; }
.community-essentials__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; color: #666; font-size: 12px; }
.community-essentials__meta span { padding: 3px 8px; border-radius: 999px; background: #f5f5f7; }
.community-essentials__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.community-essentials__actions a { color: #ff4d1c; font-size: 13px; text-decoration: none; }
@media (max-width: 700px) {
  .community-essentials__grid { grid-template-columns: 1fr; }
  .navigation-downloads { gap: 5px; }
  .navigation-download { flex: 1 1 auto; }
}
.navigation-essentials-entry {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0;
  padding: 14px 18px; border-radius: 14px; border: 1px solid #ffd9c7;
  background: linear-gradient(110deg, #fff3ec, #fff 62%); color: #1d1d1f; text-decoration: none;
}
.navigation-essentials-entry > span { padding: 4px 10px; border-radius: 999px; background: #ff4d1c; color: #fff; font-size: 12px; font-weight: 700; }
.navigation-essentials-entry > strong { font-size: 14px; }
.navigation-essentials-entry > em { margin-left: auto; color: #ff4d1c; font-size: 13px; font-style: normal; }
.navigation-downloads__menu { display: contents; }
.navigation-downloads__menu > summary { list-style: none; cursor: pointer; }
@media (max-width: 640px) {
  .navigation-essentials-entry { gap: 8px; padding: 12px 14px; }
  .navigation-essentials-entry > em { margin-left: 0; }
}

/* ---------------------------------------------- 导航页顶部压缩
   反馈：标题 / 装机必备 / 搜索 / 分类 / 数据卡这片区域占高太大，压到约三分之一，
   但保持可读：标题与副标题同一行、装机必备收成一枚小胶囊、数据卡改成一行内的
   「名称 + 数字」。只作用于 /community/navigation 的顶部容器，装机必备子页不受影响。 */
.navigation-page .navigation-v2__top { display: grid; gap: 8px; padding-top: 2px; }
.navigation-page .navigation-v2__top .navigation-v2__hero { align-items: center; gap: 14px; padding-block: 0; border-bottom: 0; }
.navigation-page .navigation-v2__top .navigation-v2__hero-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.navigation-page .navigation-v2__top .navigation-v2__hero .eyebrow { display: none; }
.navigation-page .navigation-v2__top .navigation-v2__hero h1 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.navigation-page .navigation-v2__top .navigation-v2__subtitle { font-size: 12px; }
.navigation-page .navigation-v2__top .navigation-v2__brand { align-self: center; padding-bottom: 0; gap: 4px; }
.navigation-page .navigation-v2__top .navigation-v2__brand span { width: 7px; }
.navigation-page .navigation-v2__top .navigation-v2__brand span:nth-child(1) { height: 12px; }
.navigation-page .navigation-v2__top .navigation-v2__brand span:nth-child(2) { height: 20px; }
.navigation-page .navigation-v2__top .navigation-v2__brand span:nth-child(3) { height: 28px; }
.navigation-page .navigation-v2__top .navigation-essentials-entry {
  flex: 0 0 auto; margin: 0 0 0 auto; padding: 5px 10px; border-radius: 999px;
  gap: 6px; background: #fff6f1;
}
.navigation-page .navigation-v2__top .navigation-essentials-entry > span { padding: 2px 7px; font-size: 10.5px; }
.navigation-page .navigation-v2__top .navigation-essentials-entry > strong { font-size: 12px; font-weight: 600; white-space: nowrap; }
.navigation-page .navigation-v2__top .navigation-essentials-entry > em { font-size: 11.5px; }
.navigation-page .navigation-v2__top .navigation-v2__searchbar { gap: 10px; }
.navigation-page .navigation-v2__top .navigation-search { border-radius: 12px; box-shadow: 0 6px 18px rgba(29, 29, 31, .05); }
.navigation-page .navigation-v2__top .navigation-search { padding: 0 12px; }
.navigation-page .navigation-v2__top .navigation-search > span { font-size: 19px; }
.navigation-page .navigation-v2__top .navigation-search input { height: 32px; padding: 4px 2px; font-size: 14px; }
.navigation-page .navigation-v2__top .navigation-search__clear { width: 24px; height: 24px; font-size: 16px; }
.navigation-page .navigation-v2__top .navigation-v2__search-count { font-size: 12px; }
.navigation-page .navigation-v2__top .navigation-v2__search-hint { margin: -4px 0 0; font-size: 12px; }
.navigation-page .navigation-v2__top .navigation-chips { gap: 6px; padding-bottom: 0; }
.navigation-page .navigation-v2__top .navigation-chips button { padding: 4px 10px; font-size: 12px; }
.navigation-page .navigation-v2__top .navigation-overview { gap: 8px; }
.navigation-page .navigation-v2__top .navigation-overview__card {
  display: flex; align-items: baseline; gap: 6px; padding: 6px 10px;
  border-radius: 12px; box-shadow: none;
}
.navigation-page .navigation-v2__top .navigation-overview__card:hover { transform: none; box-shadow: none; border-color: rgba(255, 77, 28, .35); }
.navigation-page .navigation-v2__top .navigation-overview__card span { font-size: 11.5px; }
.navigation-page .navigation-v2__top .navigation-overview__card strong { font-size: 15px; line-height: 1.2; letter-spacing: -.01em; }
.navigation-page .navigation-v2__top .navigation-overview__card small { font-size: 10.5px; color: #9a9aa0; }
@media (max-width: 900px) {
  .navigation-page .navigation-v2__top .navigation-overview__card { flex-wrap: wrap; gap: 2px 7px; }
  .navigation-page .navigation-v2__top .navigation-overview__card small { display: none; }
}
@media (max-width: 620px) {
  .navigation-page .navigation-v2__top .navigation-v2__hero { flex-wrap: wrap; gap: 8px; }
  .navigation-page .navigation-v2__top .navigation-v2__hero h1 { font-size: 22px; }
  .navigation-page .navigation-v2__top .navigation-essentials-entry { margin-left: 0; }
  .navigation-page .navigation-v2__top .navigation-essentials-entry > strong { white-space: normal; }
  .navigation-page .navigation-v2__top .navigation-v2__brand { display: none; }
}
