/* Shared typography and homepage card system. No remote font dependency. */
:root{--mf-font:"Source Han Sans SC","思源黑体","Noto Sans SC","Microsoft YaHei","PingFang SC",sans-serif;--mf-type-title:20px;--mf-type-body:15px;--mf-type-meta:12px;--mf-card-radius:16px}
body,body input,body textarea,body select,body button,body table,body th,body td,body [class*="mfcn-"]{font-family:var(--mf-font)!important}
body{font-size:var(--mf-type-body);line-height:1.7}
body :is(h1,h2,h3,h4){line-height:1.5;font-weight:600}
body :is(h1,h2,h3,h4,.xst,#thread_subject,.mfcn-curated-title,.mfcn-board-card strong,.mfcn-featured-card strong){white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;letter-spacing:normal!important}
body :is(.mfcn-curated-copy,.mfcn-board-card,.mfcn-category-title,.mfcn-home-member-identity){min-width:0}
body .tl th .xst{font-size:15px!important;line-height:1.65!important}
body .tl th{min-width:0;white-space:normal!important;word-break:normal!important}
body #thread_subject{font-size:22px!important;line-height:1.5!important}
body .t_f{font-size:16px;line-height:1.85;word-break:normal;overflow-wrap:break-word}
body .mfcn-curated-title{font-size:15px!important;line-height:1.65!important}
body :is(.mfcn-curated-meta,.mfcn-curated-meta a,.mfcn-home-member-profile small,.mfcn-home-member-profile div>span,.mfcn-home-member-bottom){font-size:12px!important;line-height:1.6}
body.mfcn-index-page :is(.mfcn-home-member,.mfcn-aside-block,.mfcn-friends){box-sizing:border-box;padding:20px!important;background:var(--mf-paper,#fffefa)!important;border:1px solid var(--mf-line,#dfe6df)!important;border-radius:var(--mf-card-radius)!important;box-shadow:none!important}
body.mfcn-index-page :is(.mfcn-home-member-heading,.mfcn-aside-heading){padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--mf-line,#dfe6df)}
body.mfcn-index-page :is(.mfcn-home-member-heading h2,.mfcn-aside-heading h3,.mfcn-friends h2){font-size:16px!important;font-weight:600;margin:0}
body.mfcn-index-page .mfcn-friends .mfcn-section-head{border:0!important;padding-bottom:0!important;margin-bottom:12px!important}
body.mfcn-index-page .mfcn-sticky{display:flex;flex-direction:column;gap:16px;position:static}
body.mfcn-index-page .mfcn-sticky>div{margin-top:0}
body.mfcn-index-page .mfcn-aside-note{display:none}
body.mfcn-index-page .mfcn-portal-banner{padding:24px!important}
body.mfcn-index-page .mfcn-portal-banner h1{font-size:26px!important;margin:10px 0!important;line-height:1.5}
body.mfcn-index-page .mfcn-banner-art{width:100%;max-width:100%;max-height:240px;object-fit:contain;margin:0}
body.mfcn-index-page .mfcn-index .mfcn-section{margin-top:22px}
body.mfcn-index-page .mfcn-category-title{min-height:40px;margin-bottom:10px;gap:12px}
body.mfcn-index-page .mfcn-category-title h3{font-size:16px!important;line-height:1.5;font-weight:600}
body.mfcn-index-page .mfcn-category-title>span{flex:none;font-size:12px}
body.mfcn-index-page .mfcn-board-grid{grid-auto-rows:1fr;align-items:stretch;gap:12px}
body.mfcn-index-page .mfcn-board-grid .mfcn-board-card{height:auto;min-height:138px!important;padding:16px!important;justify-content:flex-start;border-radius:12px}
body.mfcn-index-page .mfcn-board-grid .mfcn-board-card strong{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important;font-size:15px!important;line-height:1.6!important}
body.mfcn-index-page .mfcn-board-grid .mfcn-board-card small{display:block!important;-webkit-line-clamp:unset!important;white-space:normal!important;overflow:visible!important;font-size:12px!important;line-height:1.6!important;margin-top:6px}
body.mfcn-index-page .mfcn-curated-compact .mfcn-curated-title{font-size:14px!important}
@media(max-width:760px){body #thread_subject{font-size:20px!important}body.mfcn-index-page .mfcn-portal-banner h1{font-size:22px!important}body.mfcn-index-page .mfcn-banner-art{display:none}body.mfcn-index-page .mfcn-board-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.mfcn-index-page .mfcn-board-grid .mfcn-board-card{min-height:130px!important;padding:14px!important}body .mfcn-thread-badges{flex-shrink:1}body .mfcn-curated-stats{min-width:48px}}
@media(max-width:359px){body.mfcn-index-page .mfcn-board-grid{grid-template-columns:minmax(0,1fr)!important}}
/* 2026-11-26 homepage banner: loaded after the design system. */
body.mfcn-index-page .mfcn-home-showcase .mfcn-portal-banner {
  display: block !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1200 / 400 !important;
  padding: 0 !important;
  background: #062d25 url('shuyunkong-aigc-banner-pc-1200x400.jpg?v=20261126d') center center / cover no-repeat !important;
  overflow: hidden !important;
}
body.mfcn-index-page .mfcn-home-showcase .mfcn-portal-banner .mfcn-banner-copy,
body.mfcn-index-page .mfcn-home-showcase .mfcn-portal-banner .mfcn-banner-art { display: none !important; }
body.mfcn-index-page .mfcn-home-showcase .mfcn-portal-banner .mfcn-banner-action-area {
  position: absolute !important;
  left: auto !important;
  right: 3% !important;
  top: auto !important;
  bottom: 6% !important;
  transform: none !important;
  width: 36% !important;
  max-width: 420px !important;
  margin: 0 !important;
  text-align: center !important;
}
body.mfcn-index-page .mfcn-home-showcase .mfcn-portal-banner .mfcn-banner-action-area > small { display: none !important; }
@media (max-width: 700px) {
  body.mfcn-index-page .mfcn-home-showcase .mfcn-portal-banner {
    aspect-ratio: auto !important;
    min-height: 160px !important;
    background-position: 24% center !important;
  }
  body.mfcn-index-page .mfcn-home-showcase .mfcn-portal-banner .mfcn-banner-action-area {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    padding: 102px 12px 12px !important;
    box-sizing: border-box !important;
  }
}