body[data-page="home"] {
  --home-shell-max: 393px;
  --home-shell-height: 852px;
  --home-shell-gutter: 16px;
  --home-panel: rgba(255, 252, 246, 0.84);
  --home-panel-strong: rgba(255, 255, 255, 0.94);
  --home-panel-soft: rgba(250, 243, 232, 0.88);
  --home-line: rgba(188, 154, 88, 0.18);
  --home-line-strong: rgba(188, 154, 88, 0.3);
  --home-shadow: 0 16px 40px rgba(88, 68, 21, 0.08);
  --home-shadow-soft: 0 10px 24px rgba(88, 68, 21, 0.05);
  color-scheme: light;
  background:
    radial-gradient(circle at top left, rgba(255, 224, 232, 0.58), transparent 34%),
    radial-gradient(circle at top right, rgba(221, 237, 255, 0.46), transparent 31%),
    linear-gradient(180deg, #ffffff 0%, #fffdfb 34%, #ffffff 68%, #fffaf7 100%);
}

:root[data-theme="dark"] body[data-page="home"] {
  --home-panel: rgba(24, 24, 27, 0.84);
  --home-panel-strong: rgba(30, 31, 35, 0.94);
  --home-panel-soft: rgba(38, 33, 28, 0.9);
  --home-line: rgba(201, 160, 61, 0.14);
  --home-line-strong: rgba(201, 160, 61, 0.24);
  --home-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
  --home-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.18);
  background: #101113;
}

body[data-page="home"] .bg-decoration.home-bg {
  display: none;
}

body[data-page="home"] .home-shell.page-shell.app-shell {
  position: relative !important;
  width: min(calc(100vw - 16px), var(--home-shell-max)) !important;
  max-width: var(--home-shell-max) !important;
  min-height: max(100vh, var(--home-shell-height)) !important;
  padding: max(12px, env(safe-area-inset-top)) var(--home-shell-gutter) calc(124px + env(safe-area-inset-bottom)) !important;
  overflow: hidden !important;
}

body[data-page="home"] .home-shell.page-shell.app-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 205, 220, 0.22), transparent 22%),
    radial-gradient(circle at 86% 14%, rgba(216, 231, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
  opacity: 0.95;
  z-index: 0;
}

body[data-page="home"] .home-topbar,
body[data-page="home"] .home-content,
body[data-page="home"] .topbar-menu {
  position: relative;
  z-index: 1;
}

body[data-page="home"] .home-topbar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin-bottom: 16px;
}

body[data-page="home"] .topbar-title-wrap {
  min-width: 0;
  min-height: 56px;
  padding: 0 16px 0 12px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 243, 247, 0.9) 38%, rgba(243, 249, 255, 0.94) 72%, rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(234, 238, 246, 0.98);
  box-shadow:
    0 12px 28px rgba(36, 43, 62, 0.07),
    0 1px 0 rgba(255, 214, 226, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

body[data-page="home"] .topbar-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(232, 116, 154, 0.12);
}

body[data-page="home"] .topbar-brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body[data-page="home"] .topbar-brand-copy {
  min-width: 0;
}

body[data-page="home"] .topbar-title {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

body[data-page="home"] .topbar-icon,
body[data-page="home"] .topbar-action {
  width: 42px;
  height: 42px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 236, 244, 0.96);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 246, 0.86), rgba(241, 247, 255, 0.92));
  box-shadow:
    0 10px 22px rgba(36, 43, 62, 0.06),
    0 1px 0 rgba(255, 214, 226, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

body[data-page="home"] .topbar-icon-back-glyph {
  border-color: currentColor;
}

body[data-page="home"] .topbar-ellipsis {
  font-size: 19px;
  line-height: 1;
  transform: translateY(-1px);
}

body[data-page="home"] .topbar-menu {
  position: absolute !important;
  top: calc(max(12px, env(safe-area-inset-top)) + 52px);
  right: var(--home-shell-gutter);
  z-index: 48 !important;
}

body[data-page="home"] .topbar-menu-card {
  min-width: 174px !important;
  padding: 12px 14px !important;
  border-radius: 20px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 248, 0.9), rgba(242, 248, 255, 0.94)) !important;
  border: 1px solid rgba(234, 238, 246, 0.98) !important;
  box-shadow:
    0 18px 36px rgba(36, 43, 62, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
}

body[data-page="home"] .topbar-menu-title {
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--text-soft) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

body[data-page="home"] .topbar-menu-note {
  margin: 0 !important;
  color: var(--text-faint) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

body[data-page="home"] .home-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  min-width: 0 !important;
}

body[data-page="home"] .home-hero-panel,
body[data-page="home"] .home-feature-section,
body[data-page="home"] .home-mini-section {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body[data-page="home"] .home-hero-panel {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

:root[data-theme="dark"] body[data-page="home"] .home-hero-panel {
  background:
    linear-gradient(180deg, rgba(24, 24, 28, 0.92), rgba(18, 18, 21, 0.96)),
    radial-gradient(circle at top left, rgba(177, 131, 56, 0.16), transparent 30%);
}

body[data-page="home"] .home-brand-card,
body[data-page="home"] .home-channel-panel,
body[data-page="home"] .home-announce-panel,
body[data-page="home"] .home-banner-stack,
body[data-page="home"] .home-mini-grid {
  margin: 0;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body[data-page="home"] .home-brand-card {
  display: none !important;
}

:root[data-theme="dark"] body[data-page="home"] .home-brand-card {
  display: none !important;
}

body[data-page="home"] .home-brand-avatar {
  width: 50px !important;
  height: 50px !important;
  flex: 0 0 50px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 14px 30px rgba(232, 116, 154, 0.16) !important;
}

body[data-page="home"] .home-brand-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body[data-page="home"] .home-brand-copy {
  min-width: 0;
}

body[data-page="home"] .home-brand-eyebrow {
  display: none !important;
}

:root[data-theme="dark"] body[data-page="home"] .home-brand-eyebrow {
  color: #f0af87;
  background: rgba(240, 140, 101, 0.12);
}

body[data-page="home"] .home-brand-title {
  display: block;
  margin-top: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

body[data-page="home"] .home-brand-subtitle {
  display: none !important;
}

body[data-page="home"] .home-brand-pill {
  display: none !important;
}

:root[data-theme="dark"] body[data-page="home"] .home-brand-pill {
  background: rgba(35, 35, 39, 0.88);
}

body[data-page="home"] .home-channel-panel,
body[data-page="home"] .home-announce-panel,
body[data-page="home"] .home-feature-section,
body[data-page="home"] .home-mini-section {
  padding: 0 !important;
}

body[data-page="home"] .home-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body[data-page="home"] .home-section-kicker {
  margin: 0;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

body[data-page="home"] .home-section-title {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

body[data-page="home"] .home-section-note {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.78);
  border: 1px solid var(--home-line);
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="home"] .home-channel-panel .home-section-head,
body[data-page="home"] .home-feature-head,
body[data-page="home"] .home-mini-section > .home-section-head {
  display: none !important;
}

:root[data-theme="dark"] body[data-page="home"] .home-section-note {
  background: rgba(31, 31, 34, 0.84);
}

body[data-page="home"] .home-platforms {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: start !important;
  justify-content: stretch !important;
  gap: 14px 8px !important;
  margin-top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body[data-page="home"] .home-platform-link {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 100px !important;
  padding: 2px 2px 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  text-decoration: none !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body[data-page="home"] .home-platform-link.is-home-home,
body[data-page="home"] .home-platform-link.is-home-jd {
  background: transparent !important;
}

:root[data-theme="dark"] body[data-page="home"] .home-platform-link.is-home-home,
:root[data-theme="dark"] body[data-page="home"] .home-platform-link.is-home-jd {
  background:
    linear-gradient(180deg, rgba(34, 34, 38, 0.94), rgba(28, 28, 32, 0.96));
}

body[data-page="home"] .home-tab-thumb {
  width: 54px !important;
  height: 54px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 22px rgba(32, 34, 48, 0.1) !important;
}

body[data-page="home"] .home-tab-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body[data-page="home"] .home-tab-label {
  display: block !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--text-soft) !important;
  line-height: 1.2 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: break-all !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body[data-page="home"] .home-announce-panel {
  margin-top: 0;
}

body[data-page="home"] .home-announce-chip {
  display: flex !important;
  align-items: center !important;
  gap: 0.54rem !important;
  min-height: 48px !important;
  margin-top: 0 !important;
  padding: 6px 10px !important;
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 245, 248, 0.86), rgba(246, 250, 255, 0.9)) !important;
  border: 1px solid var(--home-line) !important;
  box-shadow:
    var(--home-shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) saturate(1.05) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.05) !important;
  overflow: hidden !important;
}

body[data-page="home"] .home-announce-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.64rem;
  padding: 0 0.68rem;
  border-radius: 999px;
  background: rgba(241, 103, 88, 0.12);
  color: #d14f43;
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
}

:root[data-theme="dark"] body[data-page="home"] .home-announce-badge {
  color: #f0b18a;
  background: rgba(240, 140, 101, 0.14);
}

body[data-page="home"] .home-announce-marquee {
  min-width: 0;
  flex: 1 1 auto;
  display: block;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

body[data-page="home"] .home-announce-track {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  width: max-content;
  min-width: max-content;
  padding-right: 0;
  transform: translateX(100%);
  animation: homeMarquee 12s linear infinite;
}

body[data-page="home"] .home-announce-text {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="home"] .home-announce-separator {
  color: #f07a6f;
  font-weight: 800;
}

body[data-page="home"] .home-announce-helper {
  display: none !important;
}

@keyframes homeMarquee {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

body[data-page="home"] .home-feature-head,
body[data-page="home"] .home-mini-section > .home-section-head {
  padding-inline: 1px;
}

body[data-page="home"] .home-banner-stack {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  margin-top: 0 !important;
}

body[data-page="home"] .home-banner-card {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 96px !important;
  aspect-ratio: 1732 / 431 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body[data-page="home"] .home-banner-card::after {
  display: none !important;
  content: none !important;
}

body[data-page="home"] .home-banner-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: inherit !important;
  object-fit: cover !important;
}

body[data-page="home"] .home-mini-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body[data-page="home"] .home-mini-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  text-decoration: none !important;
}

body[data-page="home"] .mini-media,
body[data-page="home"] .mini-glyph {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(37, 41, 59, 0.08);
}

body[data-page="home"] .mini-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body[data-page="home"] .mini-glyph {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

body[data-page="home"] .mini-glyph-guide {
  background: linear-gradient(135deg, #4db576, #2f8f53);
}

body[data-page="home"] .mini-glyph-group {
  background: linear-gradient(135deg, #8f77ff, #6544ec);
}

body[data-page="home"] .mini-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  justify-items: center;
}

body[data-page="home"] .mini-copy strong {
  font-size: 12px;
  font-weight: 800;
}

body[data-page="home"] .mini-copy span {
  display: none !important;
}

body[data-page="home"] .bottom-dock {
  position: fixed !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
  width: min(calc(100vw - 8px), calc(var(--home-shell-max) - 4px)) !important;
  max-width: calc(var(--home-shell-max) - 4px) !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom)) !important;
  border-radius: 22px 22px 0 0 !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 243, 248, 0.88) 34%, rgba(242, 248, 255, 0.92) 72%, rgba(255, 255, 255, 0.96)) !important;
  border: 1px solid rgba(232, 236, 244, 0.96) !important;
  border-bottom: 0 !important;
  box-shadow:
    0 -10px 28px rgba(36, 43, 62, 0.07),
    0 1px 0 rgba(255, 214, 226, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(22px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.08) !important;
  z-index: 30 !important;
}

:root[data-theme="dark"] body[data-page="home"] .bottom-dock {
  background: rgba(21, 21, 24, 0.92);
  border-color: rgba(77, 67, 50, 0.9);
}

body[data-page="home"] .dock-item {
  min-height: 78px !important;
  gap: 7px !important;
  border-radius: 16px !important;
  background: transparent !important;
  color: var(--text-faint) !important;
}

body[data-page="home"] .dock-item.is-active {
  background: linear-gradient(135deg, rgba(255, 249, 243, 0.94), rgba(255, 241, 245, 0.86), rgba(245, 249, 255, 0.88));
  color: var(--accent-strong);
}

:root[data-theme="dark"] body[data-page="home"] .dock-item.is-active {
  background: rgba(36, 31, 25, 0.9);
}

body[data-page="home"] .dock-avatar {
  width: 46px !important;
  height: 46px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: block !important;
}

body[data-page="home"] .dock-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body[data-page="home"] .dock-item span:last-child {
  font-size: 13px !important;
  font-weight: 700 !important;
}

@media (max-width: 420px) {
  body[data-page="home"] .home-shell.page-shell.app-shell {
    width: 100% !important;
    max-width: none !important;
    min-height: 100vh !important;
    padding-inline: var(--home-shell-gutter) !important;
  }

  body[data-page="home"] .bottom-dock {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
  }

  body[data-page="home"] .home-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (pointer: coarse), (max-width: 768px) {
  body[data-page="home"] {
    background: #ffffff !important;
  }

  body[data-page="home"] .home-shell.page-shell.app-shell::before {
    display: none !important;
  }

  body[data-page="home"] .topbar-title-wrap,
  body[data-page="home"] .topbar-icon,
  body[data-page="home"] .topbar-action,
  body[data-page="home"] .topbar-menu-card,
  body[data-page="home"] .home-announce-chip {
    background: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body[data-page="home"] .topbar-brand-mark,
  body[data-page="home"] .home-tab-thumb,
  body[data-page="home"] .mini-media,
  body[data-page="home"] .mini-glyph {
    box-shadow: none !important;
  }

  body[data-page="home"] .home-announce-marquee {
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }

  body[data-page="home"] .home-announce-track {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
    animation: none !important;
  }

  body[data-page="home"] .home-announce-text {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}
