/* 积磊生态：与软件官网同一套暖白 / 橙 / 香槟质感。
   仅在导航与社群独立 Layout 加载；保留阅读器、群聊和播放器的尺寸合同。 */
:is(.directory-theme, .community-theme) {
  --brand: #ff5a1f;
  --brand-strong: #e8430c;
  --brand-soft: #fff0e7;
  --orange: #ff5a1f;
  --orange-soft: #fff0e7;
  --ink: #24211f;
  --ink-soft: #57514d;
  --muted: #7b746e;
  --muted-soft: #938980;
  --bg: #fbfaf8;
  --bg-soft: #f3f0ec;
  --bg-warm: #f7f4ef;
  --gray: #f3f0ec;
  --surface: #f7f4ef;
  --line: rgba(76, 54, 36, .12);
  --line-strong: rgba(76, 54, 36, .22);
  --shadow-soft: 0 12px 32px -16px rgba(82, 54, 30, .18);
  --shadow: 0 20px 50px -24px rgba(82, 54, 30, .22);
  background: var(--bg);
  color: var(--ink);
}
:is(.directory-theme, .community-theme) ::selection { background: #ffd9c4; color: #542c17; }
:is(.directory-theme, .community-theme) :focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 4px; }
:is(.directory-theme, .community-theme) .eyebrow { color: #a2704e; font-size: 10px; font-weight: 650; letter-spacing: .14em; }
:is(.directory-theme, .community-theme) .button { border-radius: 9px; gap: 12px; }
.directory-theme .button.primary, .directory-theme .nav-search button,
.community-theme .button--primary {
  background: linear-gradient(135deg, #ff773a, #e94c16);
  color: #fff;
  box-shadow: 0 4px 10px #c143111a, inset 0 1px #ffffff4d;
}
.directory-theme .button.primary:hover, .directory-theme .nav-search button:hover,
.community-theme .button--primary:hover { background: linear-gradient(135deg, #ff8148, #e74912); box-shadow: 0 8px 24px #e8430c29; }

/* 公开导航与 AI 页面共享外壳，不干预数据表、筛选和页面路由。 */
.directory-theme { display: flex; flex-direction: column; min-height: 100vh; }
.directory-theme .nav-header {
  min-height: 68px; padding-block: 13px; gap: 28px;
  background: #fbfaf8eb; border-color: var(--line); backdrop-filter: blur(18px);
}
.directory-theme .nav-brand { color: var(--ink); font-size: 16px; font-weight: 650; gap: 9px; }
.directory-theme .nav-brand img { width: 26px; height: 26px; }
.directory-theme .nav-main { gap: 20px; margin-left: auto; min-width: 0; }
.directory-theme .nav-main a { font-size: 12px; color: var(--muted); transition: color .18s; }
.directory-theme .nav-main a:hover { color: var(--brand-strong); }
.directory-theme .nav-community { font-size: 12px; padding: 9px 14px; border-radius: 8px; background: #2c2824; color: #fff; }
.directory-theme .nav-community:hover { background: #493b30; }
.directory-theme .nav-wrap { width: 100%; flex: 1 0 auto; }
.directory-theme .nav-hero { padding-top: 80px; padding-bottom: 46px; }
.directory-theme .nav-hero h1 { font-size: clamp(36px, 4.4vw, 58px); font-weight: 650; letter-spacing: -.05em; line-height: 1.15; margin-block: 20px; }
.directory-theme .nav-hero__subtitle { font-size: 15px; line-height: 1.85; }
.directory-theme .nav-search { padding: 6px; border-radius: 12px; background: #ffffffd9; box-shadow: var(--shadow-soft); }
.directory-theme .nav-search input { font-size: 14px; }
.directory-theme .nav-search button { font-size: 13px; border-radius: 8px; }
.directory-theme .nav-search__hint { font-size: 12px; line-height: 1.8; }
.directory-theme .nav-hero__actions .button { font-size: 12px; min-height: 36px; padding: 7px 13px; background: transparent; color: var(--muted); }
.directory-theme .nav-section { padding-top: 40px; }
.directory-theme .section-title { margin-bottom: 22px; }
.directory-theme .section-title h2, .directory-theme .nav-section h2 { font-size: 25px; font-weight: 600; letter-spacing: -.035em; }
.directory-theme .section-title span { font-size: 12px; }
.directory-theme .category-links a { border: 1px solid var(--line); border-radius: 8px; background: #fffefa; font-size: 12px; padding: 8px 13px; }
.directory-theme .category-links a:hover { background: var(--brand-soft); border-color: #e0b99b; }
.directory-theme .site-grid { gap: 14px; }
.directory-theme .site-card, .directory-theme .essentials-card { background: #fffefa; border-radius: 16px; box-shadow: inset 0 1px #fff; padding: 24px; }
.directory-theme .site-card:hover, .directory-theme .essentials-card:hover { border-color: #d6b293; box-shadow: var(--shadow); }
.directory-theme .site-card__identity h3 { font-size: 17px; font-weight: 600; }
.directory-theme .site-card__desc, .directory-theme .essentials-card__desc { font-size: 13px; line-height: 1.85; }
.directory-theme .site-card__reason { color: #8a674d; border-color: #dfbb97; }
.directory-theme .site-card__tags :is(a, span), .directory-theme .purpose-chip { border-radius: 6px; font-size: 12px; }
.directory-theme .site-card__actions { padding-top: 14px; border-top: 1px solid var(--line); }
.directory-theme .site-grid--list .site-card { padding: 14px 18px; }
.directory-theme .site-grid--list .site-card__actions { border: 0; padding: 0; }
.directory-theme :is(.nav-about, .nav-submit, .nav-business, .detail) { background: #fffefa; border-radius: 18px; }
.directory-theme .nav-about p, .directory-theme .nav-business p { font-size: 13px; line-height: 1.9; }
.directory-theme .field :is(input, select, textarea) { background: var(--bg); border-radius: 8px; }
.directory-theme .nav-footer { background: #f2efea; margin-top: 64px; }
.directory-theme .nav-footer__inner { gap: 40px; padding-block: 48px 36px; }
.directory-theme .nav-footer .nav-brand { color: var(--ink); font-size: 16px; }
.directory-theme .nav-footer strong { font-size: 12px; font-weight: 600; }
.directory-theme .nav-footer a, .directory-theme .nav-footer__brand p { font-size: 12px; line-height: 1.9; }
.directory-theme .nav-footer__note, .directory-theme .nav-footer__bottom { font-size: 10px !important; }
.directory-theme .nav-hero--small { padding-block: 42px 24px; }
.directory-theme .essentials-hero { padding-block: 22px 12px; }
.directory-theme .essentials-hero h1 { font-size: 32px; margin-block: 6px; }
.directory-theme .essentials-hero .nav-hero__subtitle { font-size: 13px; }
.directory-theme .site-download { border-radius: 7px; font-size: 12px; }

/* 未启用公开导航时，只展示品牌与已有成员入口，不模拟公开数据。 */
.directory-theme .nav-hero--fallback { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 80px; text-align: left; padding-block: 100px 80px; }
.nav-fallback__copy { min-width: 0; }
.directory-theme .nav-fallback__copy h1 { max-width: 8em; margin-block: 28px 22px; font-size: clamp(38px, 4.7vw, 60px); }
.nav-fallback__copy h1 > span { display: block; }
.directory-theme .nav-fallback__copy .nav-hero__subtitle { max-width: 34em; }
.nav-fallback__status { display: inline-block; margin-left: 12px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; font-weight: 400; letter-spacing: .02em; color: var(--muted); }
.directory-theme .nav-fallback__copy .nav-about__links { margin-top: 30px; gap: 10px; }
.directory-theme .nav-fallback__copy .button { font-size: 12px; padding: 11px 17px; }
.directory-theme .nav-fallback__copy .nav-search__hint { margin: 24px 0 0; max-width: 340px; color: var(--muted-soft); font-size: 11px; }
.directory-art {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: .94; min-width: 0; padding: 30px; border: 1px solid #fff9;
  border-radius: 22px; background: linear-gradient(130deg, #fff8ec, #f2dfc6 45%, #f9f4ec 74%, #e9cfae);
  box-shadow: inset 0 0 0 1px #d6b4933d, 0 32px 54px -30px #875f3a55;
  transform: rotate(3deg);
}
.directory-art::before { content: ''; position: absolute; inset: 10px; border: 1px solid #ad7f5226; border-radius: 14px; pointer-events: none; }
.directory-art__top, .directory-art__bottom { display: flex; justify-content: space-between; align-items: center; color: #947354; font-size: 9px; letter-spacing: .12em; }
.directory-art__top > span:first-child { font-size: 12px; font-weight: 650; letter-spacing: .2em; }
.directory-art__copy { position: relative; z-index: 1; display: grid; gap: 14px; margin-top: auto; padding-top: 120px; }
.directory-art__copy strong { font-size: clamp(24px, 2.6vw, 34px); font-weight: 550; letter-spacing: -.035em; line-height: 1.35; color: #62482f; }
.directory-art__copy > span { color: #947354; font-size: 11px; }
.directory-art__bottom { padding-top: 28px; }
.directory-art__bottom > span:last-child { font-size: 20px; }
.ecosystem-stones { position: absolute; top: 17%; right: 14%; width: 40%; aspect-ratio: 1; transform: rotate(-11deg); }
.ecosystem-stones i { position: absolute; width: 43%; height: 37%; border-radius: 23%; border: 1px solid #fff7dfb3; background: linear-gradient(140deg, #fff9e9, #e6c59a 52%, #c6955d); box-shadow: inset 1px 2px 2px #fff9ed, inset -1px -2px 3px #9f6d3c35, 3px 8px 12px #9f6d3c25; }
.ecosystem-stones i:nth-child(1) { top: 4%; left: 29%; background: linear-gradient(140deg, #ffe9c9, #edb97b 62%, #ce904c); }
.ecosystem-stones i:nth-child(2) { top: 49%; left: 3%; }
.ecosystem-stones i:nth-child(3) { top: 49%; right: 3%; }

/* 社群：外壳保持独立，顶部 56px 不变，避免阅读器与群聊滚动合同漂移。 */
.community-theme .community-topnav { background: #fbfaf8ed; border-color: var(--line); }
.community-theme .community-topnav__brand { font-size: 14px; gap: 8px; }
.community-theme .community-topnav__tabs { gap: 5px; }
.community-theme .community-topnav__tabs a { border-radius: 7px; font-size: 13px; padding: 7px 12px; }
.community-theme .community-topnav__tabs a.is-active { color: var(--brand-strong); background: #f3e9df; font-weight: 600; }
.community-theme .community-account__menu { border-radius: 12px; background: #fffefa; box-shadow: var(--shadow); }
.community-theme .community-footer { background: #f2efea; }
.community-theme .community-footer__inner { font-size: 11px; padding-block: 20px; }
.community-theme .community-footer .mono { font-size: 10px; }
.community-theme .community-landing { min-height: calc(100vh - 56px); padding-block: clamp(60px, 7vw, 104px); background: radial-gradient(ellipse at 20% 40%, #f3e4d566, transparent 60%), var(--bg); }
.community-theme .community-landing__grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 72px; }
.community-theme .community-landing__eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; font-size: 10px; }
.community-landing__eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px #ff5a1f0d; }
.community-theme .community-landing h1 { font-size: clamp(36px, 4.5vw, 60px); font-weight: 650; line-height: 1.2; letter-spacing: -.05em; margin-bottom: 24px; }
.community-theme .community-landing__slogan { font-size: 17px; font-weight: 500; color: var(--ink-soft); margin-block: 0 8px; }
.community-theme .community-landing__copy > .muted { font-size: 13px; margin: 0; }
.community-landing__collection { display: grid; gap: 0; max-width: 410px; margin-top: 42px; border-top: 1px solid var(--line); }
.community-landing__collection > div { display: grid; grid-template-columns: 22px 42px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.community-landing__collection > div > span { font-size: 10px; color: #ae8b6d; font-variant-numeric: tabular-nums; }
.community-landing__collection strong { font-size: 12px; font-weight: 550; color: var(--ink-soft); }
.community-landing__collection p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.8; }
.community-theme .community-landing__panel { width: 100%; max-width: 440px; justify-self: end; padding: 32px; border-radius: 20px; background: #fffefa; box-shadow: 0 24px 64px -36px #6e4f3654, inset 0 1px #fff; }
.community-theme .community-auth__tabs { padding: 4px; border-radius: 9px; background: #f1ece6; margin-bottom: 28px; }
.community-theme .community-auth__tabs button { border-radius: 6px; font-size: 13px; }
.community-theme .community-auth__tabs button.is-active { color: var(--ink); background: #fffefa; box-shadow: 0 2px 6px #60462914; }
.community-theme .community-auth__form { gap: 18px; }
.community-theme .community-auth__form .field { font-size: 12px; }
.community-theme .community-auth__form .field > span { color: var(--ink-soft); }
.community-theme .field :is(input, select, textarea) { border-radius: 8px; background: #fbfaf8; font-size: 14px; }
.community-theme .community-auth__form > .button { min-height: 44px; font-size: 13px; }
.community-theme .community-auth__hint { font-size: 12px; line-height: 1.85; }
.community-theme .member-page { max-width: 1080px; }
.community-theme .member-hero { padding-block: 18px 30px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.community-theme .member-hero h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.045em; }
.community-theme .member-hero p { font-size: 13px; }
.community-theme .member-slogan { color: #a27855; font-size: 15px; font-weight: 500; }
.community-theme .growth-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.community-theme .growth-card { border-radius: 16px; background: #fffefa; padding: 26px; }
.community-theme .growth-card--resume { grid-column: 1 / -1; background: linear-gradient(115deg, #f7ecdd, #fffaf1 66%, #f4e9db); }
.community-theme .growth-card h2 { font-size: 25px; font-weight: 600; }
.community-theme .growth-card p { font-size: 12px; line-height: 1.85; }
.community-theme .growth-card .eyebrow { display: flex; align-items: center; gap: 7px; }
.community-theme .growth-number { color: #76573d; font-size: 34px; font-weight: 550; }
.community-theme .member-links a { min-height: 72px; border-radius: 12px; background: #fffefa; font-size: 13px; }
.community-theme .member-links a:hover { border-color: #d6b293; background: #fff; }
.community-theme .member-links a strong { color: #96704e; font-weight: 550; }
.community-theme .recent-points h2 { font-size: 24px; font-weight: 600; }
.community-theme .member-empty { font-size: 13px; background: #f3eee7; }
.community-theme :is(.member-forms form, .course-card, .points-store-card, .community-empty) { border-color: var(--line); border-radius: 16px; background-color: #fffefa; box-shadow: none; }
.community-theme .mall-summary { border-radius: 18px; background: linear-gradient(115deg, #f7ecdd, #fffaf1); }
.community-theme .course-page__head h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -.04em; }
.community-theme .course-list { gap: 22px; }
.community-theme .course-row { padding: 24px; gap: 28px; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; background: #fffefa; }
.community-theme .course-row__cover { border-radius: 10px; }
.community-theme .course-row__bar span { background: #c08c61; }
.community-theme .course-cta { border-radius: 8px; font-size: 13px; min-width: 160px; height: 44px; }
.community-theme .course-cta:not(.course-cta--ghost):not(.course-cta--disabled) { color: #fff; background: linear-gradient(135deg, #ff773a, #e94c16); }

/* 成员导航：保留原有搜索、收藏、详情弹窗与卡片/紧凑视图。 */
.community-theme .navigation-v2 { --nav-ink: var(--ink); --nav-muted: var(--muted); --nav-soft: var(--bg-soft); --nav-line: var(--line); --nav-brand: var(--brand); --nav-brand-strong: var(--brand-strong); --nav-brand-soft: var(--brand-soft); }
.community-theme .navigation-v2__hero { padding-block: 26px; border-bottom: 1px solid var(--line); }
.community-theme .navigation-v2__hero h1 { font-size: clamp(34px, 4vw, 50px); font-weight: 650; letter-spacing: -.045em; }
.community-theme .navigation-v2__subtitle { font-size: 14px; }
.community-theme .navigation-v2__brand span { border-radius: 5px; background: linear-gradient(180deg, #f3cda0, #d29b68); }
.community-theme .navigation-v2 .navigation-search { border-radius: 10px; box-shadow: var(--shadow-soft); }
.community-theme .navigation-v2 .navigation-chips button { border-radius: 7px; font-size: 12px; background: #fffefa; }
.community-theme .navigation-v2 .navigation-chips button.is-active { background: var(--brand-soft); }
.community-theme .navigation-overview__card { border-radius: 12px; background: #fffefa; box-shadow: none; }
.community-theme .navigation-overview__card strong { color: #846044; font-weight: 550; }
.community-theme :is(.navigation-card, .navigation-featured-card, .navigation-compact-card, .navigation-latest-card, .navigation-hot-card, .navigation-detail) { border-color: var(--line); border-radius: 14px; background: #fffefa; box-shadow: none; }
.community-theme .navigation-v2 .navigation-featured-card { background: linear-gradient(130deg, #fffaf2, #f5eee5); border-radius: 16px; box-shadow: none; }
.community-theme .navigation-section__head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.035em; }
.community-theme .navigation-essentials-entry { border-radius: 12px; background: linear-gradient(115deg, #f5e9d9, #fdf8f0); border-color: #e1cbb2; }
.community-theme .navigation-state { background: #f3eee7; border-radius: 12px; }

@media (max-width: 1100px) {
  .directory-theme .nav-header { gap: 16px; padding-inline: 24px; }
  .directory-theme .nav-main { gap: 14px; }
  .directory-theme .nav-hero--fallback { gap: 44px; }
  .directory-art { padding: 26px; }
  .community-theme .community-landing__grid { gap: 40px; }
  .community-theme .community-topnav__tabs a { padding-inline: 9px; font-size: 12px; }
}
@media (max-width: 800px) {
  .directory-theme .nav-header { flex-wrap: wrap; gap: 8px 16px; padding: 12px 20px 8px; }
  .directory-theme .nav-main { order: 3; width: 100%; overflow-x: auto; margin-left: 0; padding-block: 4px; gap: 20px; scrollbar-width: none; }
  .directory-theme .nav-main a:nth-child(n) { display: inline; }
  .directory-theme .nav-main a { font-size: 12px; }
  .directory-theme .nav-hero--fallback { gap: 32px; grid-template-columns: 1.1fr .9fr; padding-block: 64px; }
  .directory-theme .nav-fallback__copy h1 { font-size: 40px; }
  .directory-theme .nav-fallback__copy .nav-hero__subtitle { font-size: 13px; }
  .directory-art { padding: 24px; }
  .directory-art__top > span:last-child { font-size: 7px; }
  .directory-art__copy { padding-top: 90px; }
  .directory-art__copy strong { font-size: 26px; }
  .directory-art__copy > span { font-size: 10px; }
  .community-theme .community-landing__grid { grid-template-columns: 1fr; gap: 36px; }
  .community-theme .community-landing__copy, .community-theme .community-landing__panel { max-width: 520px; width: 100%; justify-self: center; }
  .community-theme .community-landing h1 { font-size: 46px; }
  .community-landing__collection { margin-top: 28px; max-width: none; }
}
@media (max-width: 600px) {
  .directory-theme .nav-header { padding-inline: 18px; }
  .directory-theme .nav-brand { font-size: 15px; }
  .directory-theme .nav-community { font-size: 11px; padding: 8px 11px; }
  .directory-theme .nav-wrap { padding-inline: 18px; }
  .directory-theme .nav-hero { padding-block: 48px 30px; }
  .directory-theme .nav-hero h1 { font-size: 38px; }
  .directory-theme .nav-hero--fallback { grid-template-columns: 1fr; gap: 42px; text-align: left; }
  .directory-theme .nav-fallback__copy h1 { font-size: 44px; margin-block: 24px 20px; max-width: 7em; }
  .directory-theme .nav-fallback__copy .button { font-size: 11px; padding-inline: 12px; min-height: 44px; }
  .directory-art { width: min(320px, calc(100% - 12px)); justify-self: center; aspect-ratio: 1.15; }
  .directory-art__copy { padding-top: 64px; }
  .directory-art__copy strong { font-size: 28px; }
  .directory-art__bottom { padding-top: 20px; }
  .directory-theme .nav-footer__inner { gap: 26px; padding-inline: 18px; }
  .directory-theme .nav-footer__bottom { padding-inline: 18px; }
  .directory-theme .site-card, .directory-theme .essentials-card { padding: 20px; }
  .community-theme .community-landing { padding-block: 44px 64px; }
  .community-theme .community-landing__grid { width: calc(100% - 36px); gap: 32px; }
  .community-theme .community-landing__eyebrow { font-size: 9px; margin-bottom: 22px; }
  .community-theme .community-landing h1 { font-size: clamp(32px, 10vw, 44px); }
  .community-theme .community-landing__title span { white-space: normal; }
  .community-theme .community-landing__slogan { font-size: 15px; }
  .community-theme .community-landing__panel { padding: 24px; border-radius: 16px; }
  .community-landing__collection { margin-top: 24px; }
  .community-landing__collection > div { padding-block: 12px; gap: 8px; }
  .community-theme .community-topnav__inner { gap: 8px; }
  .community-theme .community-topnav__tabs a { padding-inline: 9px; }
  .community-theme .member-hero { gap: 14px; padding-block: 10px 24px; }
  .community-theme .member-avatar { width: 52px; height: 52px; font-size: 23px; }
  .community-theme .member-hero h1 { font-size: 29px; }
  .community-theme .growth-grid { grid-template-columns: 1fr; }
  .community-theme .growth-card { padding: 22px; }
  .community-theme .growth-card h2 { font-size: 23px; }
  .community-theme .course-row { grid-template-columns: 1fr; padding: 20px; gap: 22px; }
  .community-theme .member-links { gap: 10px; }
  .community-theme .member-links a { padding: 14px; min-height: 64px; font-size: 12px; }
  .community-theme .member-links a strong { font-size: 20px; }
  .community-theme .navigation-v2__hero { padding-block: 12px 24px; }
  .community-theme .navigation-v2__subtitle { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .directory-art { transform: none; }
}
