/* 首屏字体：只包含站内静态文案用到的字符（约 1500 个），三个字重合计约 560KB。 */
@font-face {
  font-family: "HarmonyOS Sans SC Web";
  src: url("/fonts/harmonyos-sans/HarmonyOS_Sans_SC_Regular.subset.woff2?v=4") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC Web";
  src: url("/fonts/harmonyos-sans/HarmonyOS_Sans_SC_Medium.subset.woff2?v=4") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC Web";
  src: url("/fonts/harmonyos-sans/HarmonyOS_Sans_SC_Bold.subset.woff2?v=4") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* 完整字体兜底：遇到子集未覆盖的动态字符（用户昵称、帖子正文、车型名等）才下载。 */
@font-face {
  font-family: "HarmonyOS Sans SC Web Full";
  src: url("/fonts/harmonyos-sans/HarmonyOS_Sans_SC_Regular.woff2?v=2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC Web Full";
  src: url("/fonts/harmonyos-sans/HarmonyOS_Sans_SC_Medium.woff2?v=2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC Web Full";
  src: url("/fonts/harmonyos-sans/HarmonyOS_Sans_SC_Bold.woff2?v=2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

html {
  scrollbar-gutter: auto;
}

body {
  font-family: "HarmonyOS Sans SC Web", "HarmonyOS Sans SC Web Full", "HarmonyOS Sans SC", "HarmonyOS Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #f1f4f9;
}

:root[data-theme="dark"] body {
  background: #070b14;
}

#masthead,
#noticeBar,
body > footer,
#tabbar,
.bgflow,
.skip-link {
  display: none !important;
}

.shell {
  --font-sans: "HarmonyOS Sans SC Web", "HarmonyOS Sans SC Web Full", "HarmonyOS Sans SC", "HarmonyOS Sans", sans-serif;
  --font-mono: var(--font-sans);
  --side-w: 212px;
  --topbar-h: 56px;
  --sh-bot-h: 35px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius-control: var(--r-ctl);
  --radius-container: 20px;
  --rule-w: 1px;

  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: var(--font-sans);
}

.shell a {
  text-decoration: none;
}

.shell button,
.shell input,
.shell select,
.shell textarea {
  font: inherit;
  color: inherit;
}

.shell .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.topbar,
.sidenav,
.sitefoot,
.dfc-home,
.cbs-page {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --card: #ffffff;
  --ink: #111111;
  --ink-2: #4b4b4b;
  --ink-3: #666666;
  --r-micro: 6px;
  --r-ctl: 10px;
  --r-card: 14px;
  --r-panel: 20px;
  --r-pill: 999px;
  --rule: rgba(0, 0, 0, .08);
  --rule-2: rgba(0, 0, 0, .12);
  --brand: #111111;
  --select-solid: #111111;
  --select-solid-hover: #2a2a2a;
  --select-solid-ink: #ffffff;
  --brand-2: #000000;
  --brand-ink: #ffffff;
  --btn-ink: #ffffff;
  --accent: #d97706;
  --danger: #dc2626;
  --ok: #1e7a46;
  --radius: 10px;
  --radius-sm: 8px;
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .sidenav,
:root[data-theme="dark"] .sitefoot,
:root[data-theme="dark"] .dfc-home,
:root[data-theme="dark"] .cbs-page {
  --bg: #0b0b0c;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --card: #161616;
  --ink: #f5f5f5;
  --ink-2: #b8b8b8;
  --ink-3: #a3a3a3;
  --rule: rgba(255, 255, 255, .08);
  --rule-2: rgba(255, 255, 255, .14);
  --brand: #f5f5f5;
  --select-solid: #f5f5f5;
  --select-solid-hover: #e5e5e5;
  --select-solid-ink: #0b0b0c;
  --brand-2: #cfcfcf;
  --brand-ink: #ffffff;
  --btn-ink: #0b0b0c;
  --accent: #f59e0b;
  --danger: #ef4444;
  --ok: #10b981;
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: relative;
  z-index: 60;
  flex: none;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--topbar-h);
  padding: 0 25px;
  background: #ffffff;
  color: var(--ink);
}

:root[data-theme="dark"] .topbar {
  background: #161616;
}

.topbar__brand {
  flex: none;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  display: block;
  width: 32px;
  height: 32px;
  flex: none;
  border: 0;
  border-radius: var(--r-micro);
  object-fit: cover;
  background: transparent;
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1.1;
  min-width: 0;
}

/* app.css 移动端有 `.brand span { display:inline !important }`，
   会把品牌文字压成一行并排；这里用更高特异性 + !important 保住两行 */
.topbar__brand .brand__text,
.sidenav__brand .brand__text {
  display: flex !important;
  flex-direction: column;
}

.brand__text strong {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  white-space: nowrap;
}

.brand__text small {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.63px;
  color: var(--ink-2);
  white-space: nowrap;
}

.topbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 320px;
  min-width: 0;
  max-width: 320px;
  height: 36px;
  padding: 0 8px 0 12px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--gray-wash);
  color: var(--ink-3);
  transition: background-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.topbar__search:focus-within {
  box-shadow: none;
}

.topbar__search input:focus {
  box-shadow: none;
}

.topbar__search .icon {
  width: 16px;
  height: 16px;
  color: var(--ink-2);
}

.topbar__search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  -webkit-appearance: none;
  appearance: none;
}

.topbar__search input::placeholder {
  color: var(--ink-3);
}

.topbar__kbd {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border: 0;
  border-radius: var(--r-micro);
  background: var(--select-wash);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
}

.topbar__notice {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 560px;
  height: 36px;
  margin: 0;
  padding: 0 8px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink-2);
  font-size: 11.5px;
  transition: background-color 0.16s var(--ease);
}

.topbar__notice:hover {
  background: var(--gray-wash);
}

.topbar__notice-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--select-wash);
  color: var(--ink-2);
}

.topbar__notice-icon .icon {
  width: 15px;
  height: 15px;
}

.topbar__notice-title {
  flex: none;
  color: var(--ink);
  font-weight: 600;
}

.topbar__notice b {
  flex: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}

.topbar__notice-name {
  flex: none;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}

.topbar__notice-body {
  position: relative;
  flex: 1 1 auto;
  min-width: 40px;
  overflow: hidden;
}

.topbar__notice-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
}

.topbar__notice.is-scrolling .topbar__notice-track {
  animation: topbar-notice-marquee var(--marquee-dur, 14s) linear var(--marquee-delay, 0ms) infinite;
}

.topbar__notice:hover .topbar__notice-track {
  animation-play-state: paused;
}

.topbar__notice-txt,
.topbar__notice-sep {
  flex: none;
}

@keyframes topbar-notice-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.topbar__notice a {
  flex: none;
  margin-right: auto;
  color: var(--ink);
}

.topbar__notice a:hover {
  text-decoration: underline;
}

.topbar__notice-close {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  margin-left: 2px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}

.topbar__notice-close:hover {
  background: var(--select-wash);
  color: var(--ink);
}

.topbar__notice-close .icon {
  width: 13px;
  height: 13px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--gray-wash);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  background: var(--select-wash);
  color: var(--ink);
}

.topbar__actions .icon-btn {
  color: var(--ink-2);
}

.topbar__actions .icon-btn:hover {
  color: var(--ink);
}

.icon-btn__dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
}

.topbar__guest {
  color: var(--ink-2);
}

.topbar__login {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--gray-wash);
  color: var(--ink-2);
  font-size: 14px;
}

.topbar__login:hover {
  background: var(--select-wash);
  color: var(--ink);
}

.topbar__reg {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: var(--radius-control);
  background: var(--brand);
  color: var(--btn-ink);
  font-size: 14px;
  font-weight: 600;
}

.topbar__reg:hover {
  background: var(--brand-2);
}

.usermenu__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--gray-wash);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.16s var(--ease);
}

.usermenu__trigger .avatar {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.usermenu__trigger:hover {
  background: var(--select-wash);
}

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--select-solid);
  color: var(--select-solid-ink);
  font-size: 13px;
  font-weight: 600;
}

/* 用户设置了图片头像时铺满圆形容器（与个人中心所选头像一致） */
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.usermenu__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  line-height: 1;
  min-width: 0;
}

.usermenu__meta strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: var(--ink);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usermenu__meta small {
  padding: 0 7px;
  border-radius: var(--r-micro);
  background: var(--select-wash);
  color: var(--ink);
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
}

:root[data-theme="dark"] .brand__text small {
  color: var(--ink-2);
}

:root[data-theme="dark"] .topbar__search {
  background: var(--paper-3);
}


:root[data-theme="dark"] .topbar__search input:focus {
  box-shadow: none;
}

:root[data-theme="dark"] .topbar__search .icon {
  color: var(--ink-2);
}

:root[data-theme="dark"] .topbar__search input::placeholder {
  color: var(--ink-3);
}

:root[data-theme="dark"] .topbar__kbd {
  background: var(--select-wash);
  color: var(--ink-2);
}

:root[data-theme="dark"] .icon-btn,
:root[data-theme="dark"] .usermenu__trigger,
:root[data-theme="dark"] .topbar__login {
  background: var(--paper-3);
}

:root[data-theme="dark"] .icon-btn:hover,
:root[data-theme="dark"] .usermenu__trigger:hover,
:root[data-theme="dark"] .topbar__login:hover {
  background: var(--select-wash);
}

:root[data-theme="dark"] .topbar__actions .icon-btn {
  color: var(--ink-2);
}

:root[data-theme="dark"] .topbar__actions .icon-btn:hover {
  color: var(--ink);
}

:root[data-theme="dark"] .topbar__login {
  color: var(--ink-2);
}

:root[data-theme="dark"] .topbar__login:hover {
  color: var(--ink);
}

:root[data-theme="dark"] .topbar__guest {
  color: var(--ink-2);
}

:root[data-theme="dark"] .topbar__notice {
  background: transparent;
  color: var(--ink-2);
}

:root[data-theme="dark"] .topbar__notice:hover {
  background: var(--select-wash);
}

:root[data-theme="dark"] .topbar__notice-icon {
  background: var(--select-wash);
  color: var(--ink-2);
}

:root[data-theme="dark"] .topbar__notice-title {
  color: var(--ink);
}

:root[data-theme="dark"] .topbar__notice b {
  color: var(--ink);
}

:root[data-theme="dark"] .topbar__notice-name {
  color: var(--ink);
}

:root[data-theme="dark"] .topbar__notice a {
  color: var(--ink);
}

:root[data-theme="dark"] .topbar__notice-close {
  color: var(--ink-2);
}

:root[data-theme="dark"] .topbar__notice-close:hover {
  background: var(--select-wash);
  color: var(--ink);
}

:root[data-theme="dark"] .usermenu__meta small {
  background: var(--select-wash);
  color: var(--ink);
}

/* ---------- 菜单栏 ---------- */

.shell__body {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  align-items: stretch;
  background: #ffffff;
}

:root[data-theme="dark"] .shell__body {
  background: #161616;
}

.sidenav {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  padding: 20px 14px;
  overflow-y: auto;
  background: #ffffff;
}

/* 抽屉内菜单区包裹层：桌面直接参与侧栏 flex 布局 */
.sidenav__nav {
  display: contents;
}

/* 移动端抽屉专属结构：桌面不渲染 */
.sidenav-toggle,
.sidenav__head,
.sidenav__search,
.sidenav__notice,
.sidenav__user,
.sidenav__guest,
.sidenav__foot,
.side-mask {
  display: none;
}

/* 抽屉内 button 会被 .shell button{color:inherit} 染色，这里提高特异性压回令牌 */
.topbar .sidenav-toggle,
.sidenav .sidenav__close,
.sidenav .sidenav__user-out {
  color: var(--ink-2);
}

.topbar .sidenav-toggle:hover,
.sidenav .sidenav__close:hover,
.sidenav .sidenav__user-out:hover {
  color: var(--ink);
}

.sidenav__group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidenav__label {
  padding: 0 11px;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sidenav__item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 7px;
  border-radius: var(--r-card);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.sidenav__item .icon {
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--ink-2);
  transition: color 0.16s var(--ease);
}

.sidenav__item:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.sidenav__item.is-active {
  background: var(--select-wash);
  color: var(--ink);
  font-weight: 600;
}

.sidenav__item.is-active .icon {
  background: transparent;
  color: var(--ink);
}

:root[data-theme="dark"] .sidenav__label {
  color: var(--ink-3);
}

:root[data-theme="dark"] .sidenav__item.is-active {
  background: var(--select-wash);
  color: var(--ink);
}

:root[data-theme="dark"] .sidenav__item.is-active .icon {
  color: var(--ink);
}

.shell__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-container) 0 0 var(--radius-container);
  background: var(--gray-wash);
}

:root[data-theme="dark"] .shell__content {
  background: #0b0b0c;
}

.shell__main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.shell__main::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#app.shell__main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 25px;
  background: transparent;
}

body .shell > footer.sitefoot {
  display: flex !important;
  box-sizing: border-box;
  height: var(--sh-bot-h) !important;
  min-height: 0;
  max-height: var(--sh-bot-h);
  padding: 0 25px !important;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
  isolation: auto;
}

body .shell > footer.sitefoot::before,
body .shell > footer.sitefoot::after {
  content: none;
  display: none;
}

html[data-route="auth"] .topbar,
html[data-route="auth"] .sidenav,
html[data-route="auth"] body .shell > footer.sitefoot {
  display: none !important;
}

html[data-route="auth"] .shell__body {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
}

html[data-route="auth"] .shell__content {
  border-radius: 0;
}

html[data-route="auth"] #app.shell__main {
  padding: 0;
}

/* ---------- 底栏 ---------- */

.sitefoot {
  flex: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 24px;
  height: var(--sh-bot-h);
  padding: 0 25px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #ffffff;
  color: #4b4b4b;
  font-size: 11px;
}

.sitefoot::-webkit-scrollbar {
  height: 0;
}

.sitefoot__copy {
  flex: none;
  margin-right: auto;
  color: #4b4b4b;
}

.sitefoot__copy#footerText {
  margin: 0 auto 0 0;
}

.sitefoot__links {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  gap: 8px 16px;
}

.sitefoot__links a {
  color: #4b4b4b;
}

.sitefoot__links a:hover {
  color: #161616;
}

.sitefoot__stats {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #4b4b4b;
}

.sitefoot__stats span + span::before {
  content: "·";
  margin: 0 3px;
  color: #4b4b4b;
}

.sitefoot__stats b {
  color: #161616;
  font-size: 11px;
  font-weight: 600;
}

:root[data-theme="dark"] .sidenav {
  background: #161616;
}

:root[data-theme="dark"] .sitefoot {
  background: #161616;
}

:root[data-theme="dark"] .sitefoot__copy,
:root[data-theme="dark"] .sitefoot__links a {
  color: #b8b8b8;
}

:root[data-theme="dark"] .sitefoot__links a:hover {
  color: #f5f5f5;
}

:root[data-theme="dark"] .sitefoot__stats {
  color: #b8b8b8;
}

:root[data-theme="dark"] .sitefoot__stats b {
  color: #f5f5f5;
}


/* ---------- 首页 ---------- */

.dfc-home {
  display: grid;
  /* 三列随视口等比：hero 与右栏各占 1/4（永远等于下方四宫格/资源卡宽度），banner 恒占中间剩余（约 1/2），不再被固定列挤压 */
  grid-template-columns: calc((100% - 42px) / 4) minmax(0, 1fr) calc((100% - 42px) / 4);
  gap: 16px;
  align-items: start;
  width: 100%;
}

.dfc-home .home__main,
.dfc-home .home__aside {
  display: contents;
}

.home-hero {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
  isolation: isolate;
  align-self: stretch;
  padding: 18px;
  border-radius: var(--r-card);
  background: var(--card);
  --hero-glow-a: 17, 17, 17;
  --hero-glow-b: 60, 60, 60;
  --hero-glow-op: 0.3;
}

:root[data-theme="dark"] .home-hero {
  --hero-glow-op: 0.62;
}

.home-hero > *:not(.home-hero__glow) {
  position: relative;
  z-index: 1;
}

.home-hero__glow {
  position: absolute;
  inset: 45% -30% -18% -30%;
  z-index: 0;
  pointer-events: none;
  filter: blur(18px);
  background:
    radial-gradient(42% 58% at 24% 68%, rgba(var(--hero-glow-a), var(--hero-glow-op)), transparent 72%),
    radial-gradient(46% 62% at 78% 82%, rgba(var(--hero-glow-b), calc(var(--hero-glow-op) * 0.85)), transparent 74%);
  animation: hero-aurora 14s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-aurora {
  from { transform: translate3d(-6%, 2%, 0) scale(1.04); }
  to { transform: translate3d(7%, -3%, 0) scale(1.16); }
}

.home-hero h1 {
  margin: 6px 0;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
}

.home-hero p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.7;
}

.home-hero__crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
}

.home-hero__crumb .icon {
  width: 13px;
  height: 13px;
  color: #111111;
}

.home-hero__crumb b {
  color: #111111;
  font-weight: 600;
}

.home-hero__crumb i {
  font-style: normal;
  color: #111111;
}

.home-hero__crumb > span:last-child {
  color: #111111;
  font-weight: 600;
}

:root[data-theme="dark"] .home-hero__crumb .icon,
:root[data-theme="dark"] .home-hero__crumb b,
:root[data-theme="dark"] .home-hero__crumb i {
  color: var(--ink-2);
}

:root[data-theme="dark"] .home-hero__crumb > span:last-child {
  color: var(--ink-3);
}

.home-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 14px;
  border-radius: var(--radius-control);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.home-tile:hover .home-tile__title,
.home-tile:focus-visible .home-tile__title {
  color: var(--brand);
}

.home-tile__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-ctl);
  background: var(--select-wash);
  color: #111111;
}

.home-tile__icon .icon {
  width: 18px;
  height: 18px;
}

.home-tile__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.home-tile__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}

.home-tile__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #4b4b4b;
  font-size: 11.5px;
  line-height: 1.4;
}

:root[data-theme="dark"] .home-tile {
  background: #161616;
  color: #f5f5f5;
}

:root[data-theme="dark"] .home-tile:hover .home-tile__title,
:root[data-theme="dark"] .home-tile:focus-visible .home-tile__title {
  color: #cfcfcf;
}

:root[data-theme="dark"] .home-tile__icon {
  background: #333333;
  color: #cfcfcf;
}

:root[data-theme="dark"] .home-tile__desc {
  color: #b8b8b8;
}

.home-banner {
  position: relative;
  display: flex;
  align-items: center;

  align-self: stretch;
  min-height: 180px;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: var(--r-card);
  background: var(--banner-bg, linear-gradient(112deg, #0a1a36 0%, #103766 48%, #1d559b 100%));
}

.home-banner--blue {
  --banner-bg: linear-gradient(112deg, #08203f 0%, #000000 52%, #2a2a2a 100%);
}

.home-banner--violet {
  --banner-bg: linear-gradient(112deg, #170f36 0%, #4c1d95 52%, #7c3aed 100%);
}

.home-banner--graphite {
  --banner-bg: linear-gradient(112deg, #0b1220 0%, #242424 52%, #4a4a4a 100%);
}

/* 首页 Banner 轮播：多卡叠格 + 圆点（后台「轮播图」配置；未配置时用内置兜底单卡） */
/* 容器接管原 .home-banner 的网格定位（中间列第 1 行）与 stretch 拉伸，
   保证无论单卡兜底还是多卡轮播，轮播区高度都与左右卡片等高（修改前口径） */
.home-banners {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.home-banners .home-banner { flex: 1 1 auto; min-height: 0; }
.home-banner__stack { flex: 1 1 auto; display: grid; grid-template-rows: minmax(0, 1fr); min-width: 0; }
.home-banners .home-banner {
  grid-area: 1 / 1;

  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.home-banners .home-banner.is-on { opacity: 1; pointer-events: auto; }
.home-banner__dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.home-banner__dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--wash-2, #e8e8e8); transition: background .2s, width .2s; cursor: pointer; }
.home-banner__dots i.on { width: 16px; background: var(--select-solid); }

.home-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 130% at 88% 32%, rgba(147, 197, 253, 0.34), transparent 62%),
    linear-gradient(0deg, rgba(5, 11, 22, 0.45), transparent 60%);
  pointer-events: none;
}

.home-banner--photo::before {
  background: linear-gradient(90deg, rgba(5, 11, 22, 0.76) 0%, rgba(5, 11, 22, 0.34) 58%, rgba(5, 11, 22, 0.08) 100%);
}

.home-banner__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-banner__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 62%;
}

.home-banner__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.66);
}

.home-banner h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.9vw, 23px);
  font-weight: 600;
  line-height: 1.35;
  color: #f4f8ff;
}

.home-banner__sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.4;
}

.home-banner__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.5px;
}

.home-banner__prices b {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.home-banner__prices em {
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 11.5px;
}

.home-banner__art {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 44%;
  height: auto;
  color: rgba(255, 255, 255, 0.34);
}

.home-banner__slide {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-height: 132px;
  align-items: center;
  animation: home-banner-slide 0.5s var(--ease);
}

@keyframes home-banner-slide {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.home-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-top: 2px;
  padding: 5px 10px;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.14);
  color: #f4f8ff;
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.16s var(--ease);
}

.home-banner__cta:hover {
  background: rgba(255, 255, 255, 0.24);
}

.home-banner__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 18, 34, 0.38);
  color: #eef4ff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.16s var(--ease), background-color 0.16s var(--ease);
}

.home-banner__nav svg {
  width: 16px;
  height: 16px;
}

.home-banner__nav--prev {
  left: 10px;
}

.home-banner__nav--next {
  right: 10px;
}

.home-banner:hover .home-banner__nav,
.home-banner:focus-within .home-banner__nav {
  opacity: 1;
}

.home-banner__nav:hover {
  background: rgba(9, 18, 34, 0.62);
}


.home-banner__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: width 0.18s var(--ease), background-color 0.18s var(--ease);
}

.home-banner__dot:hover {
  background: rgba(255, 255, 255, 0.62);
}

.home-banner__dot.is-active {
  width: 16px;
  background: #ffffff;
}

.home-banner__live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.home-feed {
  grid-column: 1 / 3;
  grid-row: 3;
  /* 与同行「升级动态」卡永远等高：两卡都在行 3 上 stretch，行高取两者较大者 */
  align-self: stretch;
  position: relative;
  padding: 16px 18px 4px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
}

.home-sec__head,
.home-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.home-sec__head h2,
.home-card__head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.home-sec__head h2::before,
.home-card__head h2::before {
  content: "";
  flex: none;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: #111111;
}

:root[data-theme="dark"] .home-sec__head h2::before,
:root[data-theme="dark"] .home-card__head h2::before {
  background: #ffffff;
}

.home-card__head h2 {
  font-size: 14px;
}

.home-sec__head a,
.home-card__more,
.home-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--r-ctl);
  background: var(--gray-wash);
  color: #4b4b4b;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.home-sec__head a .icon,
.home-card__more .icon,
.home-card__arrow .icon {
  width: 15px;
  height: 15px;
}

.home-sec__head a:hover,
.home-card__more:hover,
.home-card__arrow:hover {
  background: var(--select-wash);
  color: #4a4a4a;
}

:root[data-theme="dark"] .home-sec__head a,
:root[data-theme="dark"] .home-card__more,
:root[data-theme="dark"] .home-card__arrow {
  background: #242424;
  color: #b8b8b8;
}

:root[data-theme="dark"] .home-sec__head a:hover,
:root[data-theme="dark"] .home-card__more:hover,
:root[data-theme="dark"] .home-card__arrow:hover {
  background: #2f4055;
  color: #e2e8f0;
}

.feed-post {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 200px;
  grid-template-areas:
    "ava who thumb"
    "ava body thumb"
    ". stats thumb";
  /* 行间距由 title 的 margin 提供（与拆分前一致）；列间距 16px */
  row-gap: 0;
  column-gap: 16px;
  padding: 12px 0;
  border-top: 0;
}

/* stats 独立网格区域（2026-11-10 用户：移动端图片放内容下方、点赞行上方——areas 重排两端布局）；
   作者行拆为 who 区域（移动端标题/内容与头像左对齐） */
.feed-post__avatar { grid-area: ava; }
.feed-post__who { grid-area: who; display: flex; flex-direction: column; min-width: 0; }
.feed-post__body { grid-area: body; }
.feed-post__stats { grid-area: stats; }
.feed-post__thumb { grid-area: thumb; }

.feed-post__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tone);
  color: #f2f7ff;
  font-size: 13px;
  font-weight: 600;
}

/* 作者设置了图片头像时铺满圆形容器（与社区页头像口径一致） */
.feed-post__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.feed-post__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feed-post__author {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.feed-post__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 11px;
}

.feed-post__meta i {
  font-style: normal;
}

.feed-post__tag {
  color: var(--brand-2);
}

.feed-post__title {
  display: -webkit-box;
  margin: 6px 0 6px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-post__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-post__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 11px;
}

.feed-post__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.feed-post__stat .icon {
  width: 13px;
  height: 13px;
}

.feed-post:hover .feed-post__title {
  color: var(--brand-2);
}

.feed-post__thumb {
  display: flex;
  height: auto;
  align-self: stretch;
  border-radius: var(--r-ctl);
  background: transparent;
  overflow: hidden;
}

/* 封面图铺满缩略位（img 无此约束会按自然尺寸 1600×899 渲染，被容器裁成竖条局部）。
   必须放 shell-next：首页不加载 community-feed.css，feed-post 模板两页共用 */
.feed-post__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-ctl);
  display: block;
}

.feed-post:not(:has(.feed-post__thumb)) {
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas:
    "ava who"
    "ava body"
    ". stats";
}

/* 首页「车友在聊」加载骨架：与 feed-post 行同构、单组低频呼吸（灰块 --select-wash 浅深自适应）。
   初始渲染骨架而不是兜底假数据，接口回来直接换真数据，进入网站不再闪一下 */
.home-feed-sk {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
  animation: homeFeedSk 1.6s ease-in-out infinite;
}
.home-feed-sk__card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.home-feed-sk__ava {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--select-wash);
}
.home-feed-sk__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.home-feed-sk__row {
  display: block;
  height: 12px;
  border-radius: var(--r-micro);
  background: var(--select-wash);
}
.home-feed-sk__row--a { width: 32%; }
.home-feed-sk__row--b { width: 88%; height: 20px; }
.home-feed-sk__row--c { width: 100%; }
.home-feed-sk__row--d { width: 64%; }
.home-feed-sk__row--e { width: 40%; }
@keyframes homeFeedSk { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .home-feed-sk { animation: none; opacity: .7; } }

.tone-0 {
  --tone: linear-gradient(135deg, #1f4f8c, #0d1c33);
}

.tone-1 {
  --tone: linear-gradient(135deg, #1b5a4e, #0d2521);
}

.tone-2 {
  --tone: linear-gradient(135deg, #453871, #191630);
}

.home-card {
  position: relative;
  padding: 16px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--card);
}

.home__aside > .home-card[aria-label="我的车辆"] {
  display: flex;
  flex-direction: column;
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  --home-car-row-h: 76px;
}

.home__aside > .home-card[aria-label="我的车辆"] .home-card__head {
  flex: none;
}

/* 窗口高度兜底为「三台车」；JS（fitCarRows）挂载后按实际行高接管，副标题折 3 行时降为两行 */
.home__aside > .home-card[aria-label="我的车辆"] #homeCars {
  height: calc(var(--home-car-row-h) * 3);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.home__aside > .home-card[aria-label="我的车辆"] .car-row {
  height: auto;
  box-sizing: border-box;
  flex: none;
}

.home__aside > .home-card[aria-label="升级动态"] {
  display: flex;
  flex-direction: column;
  grid-column: 3;
  grid-row: 3;
  align-self: stretch;
}

.home__aside > .home-card[aria-label="升级动态"] .home-card__head {
  flex: none;
}

/* 让列表吃掉卡片剩余高度：条数由 JS 按可用高度计算，行本身不拉伸 */
.home__aside > .home-card[aria-label="升级动态"] #homeUpdates {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.home__aside > .home-card[aria-label="升级动态"] .update-list {
  height: 100%;
  justify-content: space-between;
}

.home__aside > .home-card[aria-label="升级动态"] .update-empty {
  height: 100%;
  justify-content: center;
}

.home__aside > .home-card[aria-label="升级动态"] .update-row {
  flex: 0 0 auto;
}

.home-card__badge {
  padding: 2px 8px;
  margin-right: auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  color: var(--ok);
  font-size: 10px;
  white-space: nowrap;
}

.home-card__arrow .icon {
  width: 15px;
  height: 15px;
}

.car-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
}


/* hover 只变文字色（与全站列表行同口径），不再用品牌蓝 */
.car-row:hover .car-row__desc {
  color: var(--ink-2);
}

.car-row__logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  margin-top: 2px;
  border-radius: var(--r-ctl);
  color: var(--ink-3);
  overflow: hidden;
}

.car-row__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--r-ctl);
}

.car-row__logo .icon {
  width: 16px;
  height: 16px;
}

.car-row__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding-top: 1px;
}

/* 主标题行：车型名 + 版本号同排（baseline 对齐），版本仅检测到时显示 */
.car-row__title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.car-row__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: color 0.16s var(--ease);
}

.car-row__desc {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  transition: color 0.16s var(--ease);
}

.car-row__version {
  color: inherit;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
}

/* 状态标签：与版本号合并（版本号在左、状态词在右），跟在主标题后 */
.car-row__state {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex: none;
  padding: 2px 6px;
  border-radius: var(--r-micro);
  font-size: 10px;
  white-space: nowrap;
}

.car-row__state--ok {
  background: color-mix(in srgb, var(--ok) 15%, transparent);
  color: var(--ok);
}

.car-row__state--muted {
  background: var(--gray-wash);
  color: var(--ink-2);
}

.car-row__state--pending {
  background: var(--gray-wash);
  color: var(--ink-2);
}

.home-card__badge--muted {
  background: var(--gray-wash);
  color: var(--ink-2);
}

.car-empty {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 8px;
  text-align: center;
}

.car-empty__ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-wash);
  color: var(--ink-3);
}

.car-empty__ico .icon {
  width: 18px;
  height: 18px;
}

.car-empty p {
  margin: 0;
  color: var(--ink-2);
  font-size: 11.5px;
}

.car-empty__link {
  color: var(--brand-2);
  font-size: 11.5px;
}

:root[data-theme="dark"] .car-row__state--ok {
  background: #14351f;
  color: #4ade80;
}

:root[data-theme="dark"] .car-row__state--muted {
  background: var(--surface-2);
  color: var(--ink-2);
}

.update-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 16px;
  text-align: center;
}

.update-empty__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-ctl);
  background: var(--paper-2);
  color: var(--ink-2);
}

.update-empty__ico .icon { width: 20px; height: 20px; }
.update-empty b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.update-empty p { font-size: 12px; color: var(--ink-3); }

.update-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.update-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  border-radius: var(--r-ctl);
}

.update-row__logo {
  width: 22px;
  height: 22px;
  flex: none;
  object-fit: contain;
  /* 22px 小图标用 micro 档（6px），与全站「视觉圆角一致」口径同比例（我车辆 logo 32px/10px） */
  border-radius: var(--r-micro);
}

/* A · 行式档案：品牌仅作灰字副标题，不再用深黑/彩色块区分 */
.update-row__brand {
  flex: none;
  padding: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.update-row__main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.update-row__name {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.update-row__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* 版本号是“已推送版本”，不是升级状态：用中性灰微标签，绿色只留给“可升级” */
.update-row__ver {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 16px;
  padding: 0 6px;
  border-radius: var(--r-micro);
  background: var(--paper-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.update-row__date {
  margin-left: auto;
  flex: none;
  color: var(--ink-3);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.home-bottom {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 4;
  /* 三卡一行平分：固件上新 / 应用上新 / 热门应用 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-bottom .home-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.home-bottom .home-card__head {
  flex: none;
}

.mini-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
  padding: 6px 0;
}

.mini-row__ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  border-radius: var(--r-micro);
  background: var(--wash);
  color: var(--ink-3);
}

.mini-row__ico .icon { width: 18px; height: 18px; }

.mini-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

/* A · 版本徽标：名称行（右置版本徽标）+ 次行「分类 · 大小 · 日期」 */
.a-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.a-name > span { min-width: 0; overflow-wrap: anywhere; }
.a-ver {
  flex: none;
  padding: 1px 6px;
  border-radius: var(--r-micro);
  background: var(--gray-wash);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.a-meta { margin-top: 2px; color: var(--ink-3); font-size: 10.5px; }
.a-meta b { font-weight: 600; color: var(--ink-2); }

/* 热门应用（A · 排名阶梯）：名次徽标三档色阶（1 黑底 / 2-3 浅底 / 4+ 灰底），名称左 + 次数右单行 */
.ha-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
}

.ha-rank {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: var(--r-micro);
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--gray-wash);
  color: var(--ink-2);
}

.ha-row.is-1 .ha-rank { background: var(--select-solid); color: var(--select-solid-ink, #fff); width: 22px; height: 22px; }
.ha-row.is-2 .ha-rank, .ha-row.is-3 .ha-rank { background: var(--select-wash); color: var(--ink); }

.ha-name {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ha-row:hover .ha-name { color: var(--ink-2); }

.ha-count {
  flex: none;
  color: var(--ink-3);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 固件上新（B · 车型主行） ---------- */
/* 车型（品牌 · 车系）+ 大小 · 日期主行，文件名退居次行灰字；整行链接跳固件页；数据不滚动、卡片自然撑高 */
.nf-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 8px 0;
  cursor: pointer;
}
/* 文件类型图标（线性 18px 灰字，无底色；hover 跟随行反馈变亮） */
.nf-ico {
  flex: none;
  margin-top: 2px;
  color: var(--ink-3);
  transition: color 0.16s var(--ease);
}
.nf-ico .icon { width: 18px; height: 18px; display: block; }
.nf-row:hover .nf-ico { color: var(--ink-2); }
.nf-main { flex: 1; min-width: 0; }
.nf-row:hover .b-model > span { color: var(--ink-2); }
.b-model {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.b-model > span { min-width: 0; overflow-wrap: anywhere; transition: color 0.16s var(--ease); }
.b-meta {
  flex: none;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.b-file {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color 0.16s var(--ease);
}

.home-hero,
.home-banner,
.home-feed,
.home-card,
.home-tile {
  border: 0;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__glow,
  .home-banner__slide {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .topbar__notice {
    display: none;
  }

  .dfc-home {
    /* 行 1 仅 hero + 我的车辆两卡同行：两列平分（其余行均为全宽 item，不受影响） */
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    grid-column: 1;
    grid-row: 1;
  }

  .home__aside > .home-card[aria-label="我的车辆"] {
    grid-column: 2;
    grid-row: 1;
  }

  /* 两卡同行（≤1180）：车辆列表窗口改两行，卡片高度随之收窄，欢迎语卡（stretch）跟随等高 */
  .home__aside > .home-card[aria-label="我的车辆"] #homeCars {
    height: calc(var(--home-car-row-h) * 2);
  }

  .home-banners {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .home-grid {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-feed {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .home__aside > .home-card[aria-label="升级动态"] {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .home-bottom {
    grid-row: 6;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .shell__body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
  }

  .sidenav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* 顶栏搜索框让位给抽屉搜索 */
  .topbar__search {
    display: none;
  }

  /* 游客态登录/注册收进抽屉，顶栏只留图标 */
  .topbar__guest {
    display: none;
  }

  /* 顶栏按钮统一 36×36 / 控件圆角 / 18px 图标 */
  .topbar .icon-btn,
  .topbar .usermenu__trigger,
  .topbar .sidenav-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: var(--r-ctl);
  }

  .topbar .icon-btn .icon {
    width: 18px;
    height: 18px;
  }

  .topbar .usermenu__trigger {
    display: grid;
    place-items: center;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;
  }

  /* 抽屉态用户卡只显示头像，昵称/角色收进抽屉，避免溢出到按钮外 */
  .topbar .usermenu__meta {
    display: none;
  }

  .topbar .usermenu__trigger .avatar {
    width: 26px;
    height: 26px;
  }

  /* 抽屉搜索框 */
  .sidenav__search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 16px 0;
    padding: 0 10px 0 12px;
    height: 36px;
    border-radius: var(--r-ctl);
    background: var(--gray-wash);
  }

  .sidenav__search .icon {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--ink-2);
  }

  .sidenav__search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    -webkit-appearance: none;
    appearance: none;
  }

  .sidenav__search input:focus {
    box-shadow: none;
  }

  .sidenav__search input::placeholder {
    color: var(--ink-3);
  }

  .sidenav__search:focus-within {
    box-shadow: none;
  }

  /* 抽屉各区块不参与压缩，避免内容变多时被 flex 压瘪 */
  .sidenav__head,
  .sidenav__search,
  .sidenav__notice,
  .sidenav__user,
  .sidenav__guest,
  .sidenav__foot {
    flex: none;
  }

  /* 抽屉公告（顶栏公告在 ≤1180 隐藏，这里承接） */
  .sidenav__notice:not([hidden]) {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 16px;
    padding: 10px 8px 10px 12px;
    border-radius: var(--r-ctl);
    background: var(--gray-wash);
  }

  .sidenav__notice-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: var(--ink-2);
  }

  .sidenav__notice-icon .icon {
    width: 16px;
    height: 16px;
  }

  .sidenav__notice-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
  }

  /* 标题行：标题 + 展开提示同行，提示不额外占高度 */
  .sidenav__notice-head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  .sidenav__notice-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidenav__notice-body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.55;
    color: var(--ink-2);
  }

  /* 正文超过两行时点击公告展开完整内容 */
  .sidenav__notice-main {
    cursor: pointer;
  }

  .sidenav__notice.is-expanded .sidenav__notice-body {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .sidenav .sidenav__notice-close {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: var(--r-micro);
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
  }

  .sidenav .sidenav__notice-close .icon {
    width: 12px;
    height: 12px;
  }

  .sidenav .sidenav__notice-close:hover {
    background: var(--select-wash);
    color: var(--ink);
  }

  /* 正文超过两行时出现的「展开全文」提示：跟在标题后，不占额外行高 */
  .sidenav .sidenav__notice-more {
    flex: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-3);
    font-size: 11px;
    line-height: 1.5;
    cursor: pointer;
  }

  .sidenav .sidenav__notice-more:hover {
    color: var(--ink);
    text-decoration: underline;
  }

  /* 侧栏改为左侧抽屉 */
  .sidenav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 71;
    width: 280px;
    max-width: 84vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    height: auto;
    max-height: none;
    padding: 0 0 16px;
    background: var(--surface);
    border-right: 0;
    overflow: hidden;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.24s var(--ease), visibility 0.24s;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* 抽屉整体不滚动，只有菜单区内部滚动（隐藏滚动条） */
  .sidenav__nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    overscroll-behavior: contain;
  }

  .sidenav__nav::-webkit-scrollbar {
    display: none;
  }

  .sidenav.is-open {
    transform: none;
    visibility: visible;
  }

  .side-mask {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s var(--ease), visibility 0.24s;
  }

  body.side-open .side-mask {
    opacity: 1;
    visibility: visible;
  }

  body.side-open #app {
    overflow: hidden;
  }

  /* 抽屉头部 */
  .sidenav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 4px;
  }

  .sidenav__brand .brand__text {
    display: flex;
  }

  .sidenav__brand .brand__text small {
    display: block;
  }

  .sidenav__close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--r-ctl);
    background: var(--gray-wash);
    color: var(--ink-2);
    cursor: pointer;
  }

  .sidenav__close:hover {
    background: var(--select-wash);
    color: var(--ink);
  }

  .sidenav__close .icon {
    width: 16px;
    height: 16px;
  }

  /* 抽屉用户卡 */
  .sidenav__user:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px;
    padding: 8px 8px 8px 10px;
    border-radius: var(--r-card);
    background: var(--gray-wash);
  }

  .sidenav__user-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
  }

  .sidenav__user-main .avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .sidenav__user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .sidenav__user-meta strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidenav__user-meta small {
    font-size: 11px;
    color: var(--ink-3);
  }

  .sidenav__user-out {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--r-ctl);
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
  }

  .sidenav__user-out:hover {
    background: var(--select-wash);
    color: var(--ink);
  }

  .sidenav__user-out .icon {
    width: 16px;
    height: 16px;
  }

  /* 未登录：登录 / 注册 */
  .sidenav__guest:not([hidden]) {
    display: flex;
    gap: 8px;
    margin: 0 16px;
  }

  .sidenav__login,
  .sidenav__reg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    height: 36px;
    border-radius: var(--r-ctl);
    font-size: 13px;
    font-weight: 600;
  }

  .sidenav__login {
    background: var(--gray-wash);
    color: var(--ink-2);
  }

  .sidenav__login:hover {
    background: var(--select-wash);
    color: var(--ink);
  }

  .sidenav__reg {
    background: var(--select-solid);
    color: var(--select-solid-ink);
  }

  /* 分组恢复竖排 */
  .sidenav__group {
    flex-direction: column;
    gap: 3px;
    padding: 0 8px;
  }

  .sidenav__label {
    display: block;
    padding: 0 11px;
    margin-bottom: 5px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .sidenav__item {
    padding: 6px 10px 6px 7px;
    white-space: normal;
  }

  /* 抽屉底部 */
  .sidenav__foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding: 0 16px;
  }

  .sidenav__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    font-size: 11px;
    color: var(--ink-3);
  }

  .sidenav__stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
  }

  .sidenav__stats b {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }

  .sidenav__copy {
    margin: 0;
    font-size: 11px;
    color: var(--ink-3);
  }

  .sidenav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .sidenav__links a {
    font-size: 11px;
    color: var(--ink-2);
  }

  .sidenav__links a:hover {
    color: var(--ink);
    text-decoration: underline;
  }

  /* 移动端不需要顶栏/菜单栏/底栏连接处的容器圆角 */
  .shell__content {
    min-height: 0;
    border-radius: 0;
  }

  .shell__main {
    padding: 25px;
  }

  /* 移动端不要底栏：版权与协议链接已在抽屉底部提供 */
  body .shell > footer.sitefoot {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .topbar {
    gap: 10px;
    padding: 0 25px;
  }


  .usermenu__meta {
    display: none;
  }

  .dfc-home {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero {
    grid-column: 1;
    grid-row: 1;
  }

  .home-banner {
    grid-column: 1;
    grid-row: 2;
    min-height: 156px;
    padding: 18px;
  }

  .home-banner__copy {
    max-width: 100%;
  }

  .home-banner__art {
    width: 46%;
    opacity: 0.32;
  }

  .home-banner__prices {
    gap: 4px 10px;
    font-size: 11px;
  }

  .home-banner__prices b {
    font-size: 13px;
  }

  .home__aside > .home-card[aria-label="我的车辆"] {
    grid-column: 1;
    grid-row: 3;
  }

  .home-grid {
    grid-column: 1;
    grid-row: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feed {
    grid-column: 1;
    grid-row: 5;
  }

  .home__aside > .home-card[aria-label="升级动态"] {
    grid-column: 1;
    grid-row: 6;
  }

  .home-bottom {
    grid-row: 7;
    grid-template-columns: minmax(0, 1fr);
  }

  .feed-post {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas: "ava who" "body body" "thumb thumb" "stats stats";
    row-gap: 12px;
    column-gap: 10px;
  }

  /* 无图帖：不含 thumb 行（thumb 行塌 0 后 row-gap 仍占位，底部比顶部多 12px）——
     areas 保留 ava/who/body/stats 命名区域，元素级 grid-area 引用有效，无隐式轨道问题 */
  .feed-post:not(:has(.feed-post__thumb)) {
    grid-template-areas: "ava who" "body body" "stats stats";
  }

  /* 移动端封面横幅（2026-11-10 用户「移动端动态卡片看不见图片」）：
     不再隐藏缩略位，改为文本下方全宽 16:9 横幅；图片在内容下方、点赞行上方 */
  .feed-post__thumb {
    display: flex;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    align-self: auto;
  }

  /* 标题/摘要全宽（与头像左缘对齐），who→标题间距由 row-gap 提供，清掉桌面 title 的 margin-top */
  .feed-post__title {
    margin-top: 0;
  }

  .feed-post__avatar {
    grid-area: ava;
    width: 34px;
    height: 34px;
  }

  .feed-post__body {
    grid-area: body;
    min-width: 0;
  }

  .sitefoot {
    display: none;
  }

  .sitefoot__links {
    gap: 4px 10px;
  }

  .sitefoot__stats {
    gap: 0;
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .icon-btn--logout,
  .topbar__kbd {
    display: none;
  }

}

/* 2026-11-05：移除 ≤380px 隐藏品牌英文名（DiFansClub）的规则——
   真实手机上英文段不可见；brand__text 为上下两行布局，顶栏空间足够容纳 */
/* --------------------------------------------------------------------------
   路由加载占位
    路由切换时 #app 会被清空，期间显示这段占位，直到新视图模块渲染完成。
    2026-11-07 按用户要求改为「内容页骨架屏」：标题条 / 两行说明 / 两列卡片块，
    与内容页常见结构同构；整组单一低频呼吸，不做多点错峰。黑白灰阶、零边框零阴影。
    -------------------------------------------------------------------------- */
  .route-loading {
    min-height: 34vh;
    max-width: 1120px;
    margin: 0 auto;
    padding: 25px;
  }
  .route-skeleton {
    /* 骨架专用灰阶：在白卡上要有明确轮廓（--select-wash 与 #FFF 仅差 23，太淡） */
    --sk-base: #E2E2E2;
    --sk-deep: #D2D2D2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    border-radius: var(--r-card);
    background: var(--panel);
    animation: route-skeleton-breathe 1.6s ease-in-out infinite;
  }
  :root[data-theme="dark"] .route-skeleton {
    --sk-base: #313131;
    --sk-deep: #3D3D3D;
  }
  .route-skeleton .rs {
    display: block;
    border: 0;
    background: var(--sk-base);
    font-style: normal;
  }
  .route-skeleton .rs-title { width: 30%; height: 20px; border-radius: var(--r-micro); }
  .route-skeleton .rs-line { height: 12px; border-radius: var(--r-micro); }
  .route-skeleton .rs-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
  }
  .route-skeleton .rs-card { position: relative; height: 96px; border-radius: var(--r-card); overflow: hidden; }
  /* 卡片内一条更深的标题条：避免整块大灰块显得粗糙 */
  .route-skeleton .rs-card::before {
    content: "";
    position: absolute; left: 12px; top: 14px;
    width: 34%; height: 12px;
    border-radius: var(--r-micro);
    background: var(--sk-deep);
  }
  @keyframes route-skeleton-breathe {
    0%, 100% { opacity: .55; }
    50% { opacity: .9; }
  }
  @media (prefers-reduced-motion: reduce) {
    .route-skeleton { animation: none; opacity: .7; }
  }
  @media (max-width: 900px) {
    .route-loading { min-height: 28vh; padding: 20px 25px; }
    .route-skeleton .rs-cards { grid-template-columns: 1fr; }
  }
/* ==========================================================================
   首页「我的车辆」卡片内滚动条
   --------------------------------------------------------------------------
   滚动条与车辆行之间留出 8px 内容内距 + 3px 滑块透明边；
   滑块使用中性灰胶囊（R-C 999 / 零边框 / 零阴影），深浅色自动适配。
   ========================================================================== */
.home__aside > .home-card[aria-label="我的车辆"] #homeCars:has(.car-row) {
  padding-right: 8px;
}
.home__aside > .home-card[aria-label="我的车辆"] #homeCars::-webkit-scrollbar {
  width: 12px;
}
.home__aside > .home-card[aria-label="我的车辆"] #homeCars::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}
.home__aside > .home-card[aria-label="我的车辆"] #homeCars::-webkit-scrollbar-thumb {
  min-height: 36px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--rule-3);
  background-clip: padding-box;
}
.home__aside > .home-card[aria-label="我的车辆"] #homeCars::-webkit-scrollbar-thumb:hover {
  background: var(--ink-3);
  background-clip: padding-box;
}
.home__aside > .home-card[aria-label="我的车辆"] #homeCars::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
@supports (-moz-appearance: none) {
  .home__aside > .home-card[aria-label="我的车辆"] #homeCars {
    scrollbar-width: thin;
    scrollbar-color: var(--rule-3) transparent;
  }
}
