/* xhuajia Family 基座样式(2026-09-17 提取为外部文件)
 * 原来 (site)/layout 每页内联 23KB <style>,浏览器无法缓存——每次导航都重新下载。
 * 改为外部 CSS 后:首次加载后浏览器缓存,后续页面零下载。 */
.fm-root{background:#fbfaf9;color:#343433;font-family:Inter,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;min-height:100vh;display:flex;flex-direction:column;overflow-x:clip;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.fm-root *{box-sizing:border-box}
/* :where() 零特异性——只当链接色兜底;.fm-btn-dark/.fm-chip-on 等类规则必须能赢它(曾是 .fm-root a,类+元素压过所有单类按钮规则,黑按钮全变深灰字) */
:where(.fm-root) a{color:inherit;text-decoration:none}
.fm-nav{max-width:1200px;margin:0 auto;padding:0 24px;height:64px;display:flex;align-items:center;gap:24px;width:100%;position:sticky;top:0;z-index:40;background:#fbfaf9;border-bottom:1px solid #f2f0ed}
.fm-brand{display:inline-flex;align-items:center;gap:9px;font-size:20px;font-weight:600;letter-spacing:-.02em;color:#121212;flex:none}
.fm-brand-mascot{width:34px;height:auto}
.fm-nav-links{display:flex;gap:30px;margin:0 auto}
.fm-nav-links a{font-size:14px;color:#343433;padding:6px 2px}
.fm-nav-links a:hover{color:#0086fc}
.fm-nav-links .fm-nav-on{color:#121212;font-weight:600}
.fm-nav-cta{display:flex;align-items:center;gap:14px;flex:none}
.fm-ghost{font-size:14px;color:#343433}
.fm-ghost:hover{color:#0086fc}
.fm-btn-dark{display:inline-flex;align-items:center;justify-content:center;background:#121212;color:#fff;border-radius:9999px;padding:9px 16px;min-height:40px;font-size:14px;font-weight:600;letter-spacing:-.009em;transition:transform .15s ease,background-color .15s ease}
.fm-btn-dark:hover{transform:translateY(-1px)}
.fm-btn-dark:active,.fm-btn-sand:active{transform:translateY(0) scale(.985)}
.fm-btn-sand{display:inline-flex;align-items:center;justify-content:center;background:#f6f4ef;color:#121212;border-radius:9999px;padding:9px 16px;min-height:40px;font-size:14px;font-weight:600;letter-spacing:-.009em;transition:transform .15s ease,background-color .15s ease}
.fm-btn-sand:hover{transform:translateY(-1px)}
.fm-bob{animation:fm-float 5.2s ease-in-out infinite}
.fm-bob-slow{animation-duration:6.8s;animation-delay:-2.1s}
@keyframes fm-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@media (prefers-reduced-motion:reduce){.fm-bob{animation:none}}
.fm-eyebrow{font-size:13px;color:#7e7e7d;margin:0 0 18px;text-align:center}
.fm-display{font-size:clamp(34px,5vw,56px);line-height:1.14;font-weight:500;letter-spacing:-.028em;color:#121212;margin:0;text-align:center}
.fm-hl{position:relative;white-space:nowrap}
.fm-hl::after{content:"";position:absolute;left:0;right:0;bottom:.06em;height:.32em;background:#ffbb26;z-index:-1;border-radius:3px}
.fm-hero-chips{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:24px}
.fm-pill{display:inline-flex;align-items:center;border-radius:9999px;padding:6px 12px;font-size:12.5px;font-weight:600}
.fm-pill-mint{background:#00ca48;color:#0a3d1e}
.fm-pill-honey{background:#ffbb26;color:#121212}
.fm-pill-coral{background:#ff58ae;color:#4d0d2c}
.fm-body{font-size:17px;line-height:1.53;color:#474645;max-width:560px;margin:22px auto 0;text-align:center}
.fm-section{max-width:1200px;margin:0 auto;padding:104px 24px 0}
.fm-head{text-align:center;margin-bottom:40px}
.fm-h2{font-size:clamp(28px,4vw,44px);line-height:1.2;font-weight:400;letter-spacing:-.02em;color:#121212;margin:0}
.fm-head-sub{font-size:17px;line-height:1.53;color:#474645;max-width:520px;margin:14px auto 0}
.fm-head .fm-star{width:36px;height:auto;display:block;margin:0 auto 12px}
.fm-head-mascot{width:82px;height:auto;display:block;margin:0 auto 10px}
.fm-card{background:#fff;border-radius:10px;box-shadow:inset 0 0 0 1px #f2f0ed;padding:32px 28px;display:flex;flex-direction:column;align-items:flex-start;text-align:left}
.fm-card-t{font-size:23px;line-height:25px;font-weight:500;letter-spacing:-.019em;color:#343433;margin:0}
.fm-card-d{font-size:16px;line-height:1.5;letter-spacing:-.013em;color:#474645;margin:12px 0 0}
.fm-demo-link{display:inline-block;margin-top:auto;padding-top:18px;font-size:15px;font-weight:600;color:#ff3e00;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px}
.fm-demo-link:hover{opacity:.75}
.fm-book{background:#fff;border-radius:10px;box-shadow:inset 0 0 0 1px #f2f0ed;padding:14px;display:flex;flex-direction:column;text-align:left;transition:transform .16s ease,box-shadow .16s ease}
.fm-book:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px #e5d5c3,0 8px 24px rgba(18,18,18,.04)}
.fm-book-cover{position:relative;width:100%;aspect-ratio:3/4;border-radius:8px;overflow:hidden;background:#f2f0ed;margin-bottom:12px}
.fm-book-cover img{width:100%;height:100%;object-fit:cover;display:block}
.fm-book-cover .fm-pill{position:absolute;top:8px;left:8px;font-size:11px;padding:3px 9px}
.fm-book-title{font-size:15.5px;font-weight:600;letter-spacing:-.009em;color:#343433;margin:0;line-height:1.4}
.fm-book-meta{font-size:12.5px;color:#7e7e7d;margin:8px 0 0;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.fm-book-tag{background:#f2f0ed;border-radius:6px;padding:2px 7px;font-weight:600;color:#474645;font-size:11.5px}
.fm-footer{border-top:1px solid #f2f0ed;margin-top:96px}
.fm-footer-top{max-width:1200px;margin:0 auto;padding:56px 24px 36px;display:flex;gap:48px;flex-wrap:wrap}
.fm-footer-brand{flex:1 1 240px;max-width:320px}
.fm-footer-brand p{margin:14px 0 0;font-size:15px;line-height:1.53;color:#474645}
.fm-footer-col{flex:0 1 auto;min-width:120px}
.fm-footer-col>p{margin:0 0 14px;font-size:14px;font-weight:600;color:#343433}
.fm-footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.fm-footer-col a{font-size:14px;color:#474645}
.fm-footer-col a:hover{color:#0068c4;text-decoration:underline;text-underline-offset:3px}
.fm-footer-bottom{border-top:1px solid #f2f0ed;max-width:1200px;margin:0 auto;padding:18px 24px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.fm-footer-bottom p{margin:0;font-size:12px;color:#7e7e7d}
.fm-footer-icp{display:flex;gap:16px;flex-wrap:wrap}
.fm-footer-icp a{min-height:28px;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:3px}
/* ── (site) 房间页 Family 导航(FamSiteNav,2026-09-17 内页深改) ── */
.fam-site-nav{background:#fbfaf9;border-bottom:1px solid #f2f0ed;position:sticky;top:0;z-index:40}
.fam-site-nav-inner{max-width:1200px;margin:0 auto;padding:0 16px;height:64px;display:flex;align-items:center;gap:20px}
.fam-site-brand{display:inline-flex;align-items:center;gap:8px;flex:none}
.fam-site-brand-mascot{width:32px;height:auto}
.fam-site-brand-text{display:flex;flex-direction:column;gap:2px;line-height:1.15}
.fam-site-brand-name{font-size:20px;font-weight:600;letter-spacing:-.02em;color:#121212;white-space:nowrap}
.fam-site-brand-host{font-size:10px;color:#686866;letter-spacing:.015em}
.fam-site-nav-cta{margin-left:auto;display:flex;align-items:center;gap:10px;flex:none}
.fam-navlinks a{font-family:Inter,-apple-system,"PingFang SC",sans-serif;font-size:14px;letter-spacing:-.009em}
.fam-site-nav :is(a,button):focus-visible,.fam-footer :is(a,button):focus-visible{outline:2px solid #0068c4;outline-offset:3px}
.fam-navlinks>div>button{min-height:44px;border-radius:10px;font-family:inherit!important;font-size:14px;font-weight:500}
.fam-navlinks>div>button[aria-expanded=true]{background:#f2f0ed;color:#121212}
.fam-navlinks>div>button[aria-expanded=false]{background:transparent;color:#474645}
.fam-navlinks>div>button:hover{background:#f2f0ed;color:#121212}
.fam-navlinks [aria-current=page]{color:#121212;font-weight:600}
/* 公共页脚不用频道私有 fm-footer 命名，避免局部 CSS 再次造成漂移。 */
.fam-footer{margin-top:80px;border-top:1px solid #f2f0ed;background:#fbfaf9;color:#474645;padding-bottom:24px}
.fam-footer-inner{max-width:1200px;margin:0 auto;padding:40px 24px 0}
.fam-footer-intro{display:flex;justify-content:space-between;gap:40px;padding-bottom:32px;border-bottom:1px solid #f2f0ed}
.fam-footer-brand{flex:0 0 280px}
.fam-footer-brand>p{font-size:14px;line-height:1.7;margin:16px 0 0}
.fam-footer-rules{max-width:490px;align-self:center}
.fam-footer-rules>p{margin:0;padding:0;text-align:left;font-size:12px;line-height:1.8;color:#686866}
.fam-footer-rules a{display:inline-block;margin-top:4px;color:#474645;text-underline-offset:4px}
.fam-footer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:32px 0}
.fam-footer-col>h2{margin:0 0 12px!important;font-family:inherit!important;font-size:13px!important;font-weight:600!important;line-height:1.5!important;color:#121212}
.fam-footer-col ul{list-style:none;margin:0;padding:0}
.fam-footer-col li{margin:0}
.fam-footer-col li>a,.fam-footer-col li>button{display:inline-flex;align-items:center;min-height:36px;font-family:inherit;font-size:13px;line-height:1.6;color:#474645;text-align:left}
.fam-footer :is(a,button):hover{color:#0068c4}
.fam-footer-bottom{border-top:1px solid #f2f0ed;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#686866}
.fam-footer-bottom p{margin:0}
.fam-footer-legal,.fam-footer-icp{display:flex;gap:16px;flex-wrap:wrap}
.fam-footer-legal a,.fam-footer-icp a{display:inline-flex;align-items:center;min-height:32px}
.fam-footer-icp{font-size:11px;color:#686866;margin-top:8px}
@media(max-width:1023px){.fam-footer{padding-bottom:calc(84px + env(safe-area-inset-bottom))}}
@media(max-width:640px){
 .fam-footer{margin-top:56px}
 .fam-footer-inner{padding:28px 20px 0}
 .fam-footer-intro{flex-direction:column;gap:20px;padding-bottom:24px}
 .fam-footer-brand{flex:auto}
 .fam-footer-rules{max-width:none;align-self:stretch}
 .fam-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;padding:28px 0}
 .fam-footer-col li>a,.fam-footer-col li>button{min-height:44px}
 .fam-footer-bottom{align-items:flex-start;gap:8px}
 .fam-footer-origin{display:block;margin-top:4px}
 .fam-footer-icp{gap:4px 12px}
}
/* 640-900px 原先硬塞六组桌面导航,「学习」会被挤成一个字。Family 在这一段提前收成
   单颗菜单,保住品牌、额度和 44px 触控;901px 起恢复完整下拉。 */
@media (max-width:900px){
  .fam-site-nav-inner{gap:12px;padding-left:16px;padding-right:16px}
  .fam-navlinks :is(.nav-desktop-item,.nav-desktop-link){display:none!important}
  .fam-navlinks .nav-mobile-menu{display:block!important}
}
@media (max-width:600px){
  .fam-site-brand-host{display:none}
  .fam-site-nav-inner{gap:8px}
  .fam-site-nav-inner>.relative{flex-shrink:0}
  .fam-site-nav-cta .truncate{max-width:4em}
}
@media (max-width:360px){
  .fam-site-nav-cta .truncate{max-width:2em}
}
@media (min-width:901px){
  .fam-navlinks .nav-desktop-item{display:block!important}
  .fam-navlinks .nav-desktop-link{display:inline-flex!important}
  .fam-navlinks .nav-mobile-menu{display:none!important}
}

/* 筛选 chips:题材药丸(选中=墨黑)/产线文字链(选中=加粗黑) */
.fm-filter-theme{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.fm-chip{border-radius:9999px;padding:7px 14px;font-size:13.5px;font-weight:600;background:#fff;box-shadow:inset 0 0 0 1px #f2f0ed;color:#474645}
.fm-chip:hover{background:#f6f4ef}
.fm-chip-on{background:#121212;color:#fff;box-shadow:none}
.fm-filter-line{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;margin-top:12px;font-size:13px;color:#7e7e7d}
.fm-filter-line a:hover{color:#0068c4}
.fm-filter-line .on{color:#121212;font-weight:600}
.fm-pager{display:flex;gap:8px;justify-content:center;margin-top:36px}
.fm-page-dot{min-width:34px;height:34px;border-radius:9999px;display:inline-flex;align-items:center;justify-content:center;font-size:13.5px;font-weight:600;background:#fff;box-shadow:inset 0 0 0 1px #f2f0ed;color:#474645;padding:0 10px}
.fm-page-on{background:#121212;color:#fff;box-shadow:none}
@media (max-width:720px){
  .fm-nav-links{display:none}
  .fm-nav{gap:12px}
  .fm-nav-cta{margin-left:auto}
  .fm-section{padding-top:72px;padding-left:16px;padding-right:16px}
  .fm-footer-top{gap:28px;padding:44px 16px 28px}
  .fm-card{padding:24px 20px}
}
@media (max-width:520px){.fm-nav-cta>.fm-btn-dark{display:none}.fm-nav{padding-left:16px;padding-right:16px}}


/* ── FamilyRoomShell(房间页排版壳,预留给精修页) ── */
.fr-shell{max-width:1200px;margin:0 auto;padding:40px 24px 0}
.fr-head{text-align:center;margin-bottom:32px}
.fr-eyebrow{font-size:13px;color:#7e7e7d;margin:0 0 14px;letter-spacing:.01em}
.fr-title{font-size:clamp(28px,4.2vw,44px);line-height:1.2;font-weight:500;letter-spacing:-.02em;color:#121212;margin:0}
.fr-hl{position:relative;white-space:nowrap}
.fr-hl::after{content:"";position:absolute;left:0;right:0;bottom:.05em;height:.3em;background:#ffbb26;z-index:-1;border-radius:3px}
.fr-pills{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.fr-pill{display:inline-flex;align-items:center;border-radius:9999px;padding:5px 12px;font-size:12.5px;font-weight:600}
.fr-pill-mint{background:#00ca48;color:#0a3d1e}
.fr-pill-honey{background:#ffbb26;color:#121212}
.fr-pill-coral{background:#ff58ae;color:#4d0d2c}
.fr-body{min-width:0}
@media (max-width:720px){
  .fr-shell{padding:28px 16px 0}
}
