html {
  font-size: 14px;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* 整页纵向 flex：主区域占满剩余高度，页脚始终在文档最下方且不叠在内容上 */
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}

body > .container {
  flex: 1 0 auto;
}

.community-card {
  border-radius: 0.25rem;
}

/* ---------- 社群详情页 ---------- */
.community-detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  padding: 1.35rem 1.25rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 35%, #eef2ff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.06);
}

.community-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 100% 0%, rgba(59, 130, 246, 0.12), transparent 58%);
  pointer-events: none;
}

.community-detail-hero__inner {
  position: relative;
  z-index: 1;
}

.community-detail-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.community-detail-hero__title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  color: #0f172a;
}

.community-detail-hero__summary {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #475569;
  max-width: 48rem;
}

.community-detail-hero-image {
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.25rem;
  box-shadow: 0 0.5rem 1.5rem rgba(26, 35, 50, 0.15);
}

.community-detail-hero-image img {
  display: block;
}

.community-detail-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0.2rem 0;
}

.community-detail-meta .badge {
  font-weight: 500;
}

.community-detail-main-card {
  margin-bottom: 0.5rem !important;
}

.join-method-panel {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid #3d5a80;
  background: linear-gradient(90deg, rgba(61, 90, 128, 0.06) 0%, #f8f9fa 14%);
  border-radius: 0.5rem;
}

/* 社群详情 · 创作者知识橱窗 */
.community-showcase__panel {
  border-radius: 0.75rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-left: 4px solid #6366f1;
  background: linear-gradient(145deg, #fafbff 0%, #f8fafc 40%, #f1f5f9 100%);
  box-shadow: 0 0.2rem 0.85rem rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
  .community-showcase__panel {
    padding: 1.35rem 1.5rem;
  }
}

.community-showcase-empty {
  border-color: rgba(15, 23, 42, 0.12) !important;
}

.community-showcase-tile .card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.community-showcase-tile:hover .card {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.12) !important;
}

.community-showcase-tile:focus-visible {
  outline: 0;
}

.community-showcase-tile:focus-visible .card {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.35);
}

.community-detail-report-card {
  margin-top: 0;
  border-top: 1px solid #e9eef5 !important;
}

.community-detail-share {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
}

.community-detail-share .font-monospace {
  font-size: 0.8rem;
  word-break: break-all;
}

.similar-community-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.similar-community-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.1) !important;
}

.join-method-text {
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- 用户中心 · 概览 ---------- */
.user-center-overview-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 45%, #eef2ff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 0.25rem 1rem rgba(15, 23, 42, 0.06);
}

.user-center-overview-hero__eyebrow {
  letter-spacing: 0.1em;
}

.user-center-stat-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a:hover .user-center-stat-card {
  transform: translateY(-2px);
  box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.1) !important;
}

.user-center-tile .card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.user-center-tile:hover .card {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.1) !important;
}

.user-center-tile:focus-visible {
  outline: none;
}

.user-center-tile:focus-visible .card {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.35);
}

.user-center-tile__icon {
  font-size: 1.35rem;
  line-height: 1;
}

/* ---------- 知识资源 / 社群列表 · 统一卡片（克制、无蓝字箭头） ---------- */
.catalog-grid-card {
  background-color: #fbfbfd;
  border-radius: 0.75rem !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.catalog-card-meta {
  font-size: 0.8125rem;
}

.catalog-card-meta .badge {
  font-weight: 500;
}

.catalog-card-creator {
  letter-spacing: 0.01em;
}

.knowledge-resource-tile__ribbon,
.community-list-tile__ribbon {
  height: 3px;
  width: 100%;
  flex-shrink: 0;
}

.knowledge-resource-tile--free .knowledge-resource-tile__ribbon {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.knowledge-resource-tile--coin .knowledge-resource-tile__ribbon {
  background: linear-gradient(90deg, #475569, #64748b);
}

.knowledge-resource-tile--exchange .knowledge-resource-tile__ribbon {
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.community-list-tile--default .community-list-tile__ribbon {
  background: linear-gradient(90deg, #64748b, #94a3b8);
}

.community-list-tile--boost .community-list-tile__ribbon {
  background: linear-gradient(90deg, #ea580c, #f97316);
}

.knowledge-resource-tile .knowledge-resource-card,
.community-list-tile .community-list-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.knowledge-resource-tile:hover .knowledge-resource-card,
.community-list-tile:hover .community-list-card {
  transform: translateY(-2px);
  box-shadow: 0 0.4rem 1rem rgba(15, 23, 42, 0.07) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

.knowledge-resource-tile:hover .knowledge-resource-tile__title,
.community-list-tile:hover .community-list-tile__title {
  color: #0f172a;
}

.knowledge-resource-tile:focus-visible,
.community-list-tile:focus-visible {
  outline: none;
}

.knowledge-resource-tile:focus-visible .knowledge-resource-card,
.community-list-tile:focus-visible .community-list-card {
  box-shadow: 0 0 0 2px rgba(71, 85, 105, 0.35);
}

.knowledge-resource-tile__title,
.community-list-tile__title {
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #1e293b;
  transition: color 0.15s ease;
}

.knowledge-resource-tile__preview,
.community-list-tile__preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}

.ad-promo-card img {
  max-height: 220px;
  object-fit: contain;
  background: #f8f9fa;
}

/* ---------- 列表页：分类 / 地域筛选（折叠 + chip 换行，无滚动条） ---------- */
.category-filter-panel,
.region-filter-panel {
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 0.2rem 0.55rem rgba(15, 23, 42, 0.04);
}

.category-filter-panel--compact,
.region-filter-panel--compact {
  padding: 0.65rem 0.75rem;
}

/* 默认折叠：首屏只占用一行 summary；有选中条件时由 Razor 输出 open */
.category-filter-disclosure {
  border: 0;
  margin: 0;
}

.category-filter-disclosure > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.15rem 0;
  user-select: none;
}

.category-filter-disclosure > summary::-webkit-details-marker {
  display: none;
}

.category-filter-disclosure__summary-main {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}

.category-filter-disclosure__current {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  max-width: 12rem;
}

.category-filter-disclosure__hint {
  flex: 0 0 auto;
  font-size: 0.7rem;
  color: #64748b;
}

.category-filter-disclosure:not([open]) > summary .category-filter-disclosure__hint::before {
  content: "展开";
}

.category-filter-disclosure[open] > summary .category-filter-disclosure__hint::before {
  content: "收起";
}

.category-filter-disclosure__body {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}

.category-filter-panel__title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-chip--dense {
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 0.35rem;
}

.filter-chip:hover {
  color: #0f172a;
  border-color: #cbd5e1;
  background: #f8fafc;
}

.filter-chip:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.15rem rgba(37, 140, 251, 0.35);
}

.filter-chip.is-active {
  color: #fff;
  background: #0f172a;
  border-color: #0f172a;
  box-shadow: 0 0.1rem 0.3rem rgba(15, 23, 42, 0.18);
}

.filter-chip.is-active:hover {
  color: #fff;
  background: #1e293b;
  border-color: #1e293b;
}

/* 分类：每行 = 短标签 + 子类 chip 自动换行 */
.category-filter-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.category-filter-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.category-filter-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.category-filter-row__name {
  flex: 0 0 auto;
  width: 4.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.25;
  text-align: right;
  word-break: break-word;
  hyphens: auto;
}

@media (min-width: 576px) {
  .category-filter-row__name {
    width: 5rem;
  }
}

.category-filter-row__scroll {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.3rem;
  overflow: visible;
}

.category-filter-row__scroll .filter-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 占满父级宽度，flex 子项才会在视口内折行（否则会整条横向撑开不换行） */
.region-filter-panel__scroll {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.35rem 0.3rem;
  overflow: visible;
  padding-bottom: 0;
}

.region-filter-panel__scroll .filter-chip {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: nowrap;
}

.anti-fraud-callout--list {
  box-shadow: 0 0.2rem 0.65rem rgba(15, 23, 42, 0.06);
  border-radius: 0.5rem;
}

.anti-fraud-callout--detail {
  box-shadow: 0 0.2rem 0.65rem rgba(15, 23, 42, 0.06);
  border-radius: 0.5rem;
}

/* 提交社群：加大文本框触控/可视高度；主区域略抬高避免被异常层叠遮挡 */
.community-submit-textarea {
  min-height: 7rem;
  font-size: 1rem;
}

body > .container > main[role="main"] {
  position: relative;
  z-index: 1;
}

/*
 * main 带 z-index 时会形成独立层叠上下文，整体压在「无 z-index 的 header」之上，
 * 首页全宽 Hero 会盖住顶栏下拉菜单。顶栏需高于 main（Bootstrap 下拉多为 1000）。
 */
header {
  position: relative;
  z-index: 1040;
}

/* ---------- 顶栏横排（lg+）：禁止 nav-item 被压成极窄导致文字竖排 ---------- */
@media (min-width: 992px) {
  header .navbar-expand-lg .navbar-app-shell {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  header .navbar-expand-lg .navbar-app-shell > .navbar-nav > .nav-item {
    flex-shrink: 0;
  }

  /* 每项整行文案一行；整条装不下则由 flex-wrap 换到下一排，不切字竖排 */
  header .navbar-expand-lg .navbar-app-shell > .navbar-nav > .nav-item > .nav-link:not(.dropdown-item),
  header .navbar-expand-lg .navbar-app-shell > .navbar-nav > .nav-item > form > .nav-link {
    white-space: nowrap;
  }

  /*
   * 首页成长顶栏：登录后「主链 + 搜索 + 用户邮箱」总宽易触发折行。
   * 保持单行：外壳与左右两列均 nowrap；左侧链路过长时可横向微滚动，右侧工具区不拆行。
   */
  body.home-body header .navbar-expand-lg .navbar-app-shell {
    flex-wrap: nowrap !important;
    row-gap: 0;
    min-width: 0;
  }

  body.home-body header .navbar-expand-lg .navbar-app-shell > .navbar-nav.home-growth-nav {
    flex-wrap: nowrap !important;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    padding-bottom: 1px;
  }

  body.home-body header .navbar-expand-lg .navbar-app-shell > .navbar-nav.ms-lg-auto {
    flex-wrap: nowrap !important;
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 0;
  }

  body.home-body header .navbar .navbar-profile-email .nav-link {
    max-width: 7.5rem;
  }

  body.home-body .home-nav-search__group {
    max-width: 12rem;
  }

  body.home-body .nav-user-hub .dropdown-menu {
    max-width: min(22rem, 92vw);
  }
}

/* 个人中心 · 概览 / 通知 / 积分 Tab（多页共用） */
.user-hub-tabs .nav-link {
  font-weight: 500;
}

header .navbar .navbar-profile-email .nav-link {
  display: inline-block;
  max-width: 11rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

header .navbar .nav-admin-menu > .dropdown-menu {
  max-height: min(85vh, 24rem);
  overflow-y: auto;
  min-width: 11rem;
}

header .navbar .navbar-nav .nav-item.dropdown .dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.12em;
}

/* ---------- 首页（精选）视觉 ---------- */
body.home-body {
  background-color: #f8fafc;
}

body.home-body > .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.home-body > .container > main[role="main"] {
  padding-bottom: 0 !important;
}

body.home-body header .navbar {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: none !important;
}

.home-page {
  overflow-x: clip;
}

.home-hero {
  position: relative;
  color: #f1f5f9;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 42%, #312e81 100%);
}

.home-hero--bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.home-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 60% at 100% 20%, rgba(129, 140, 248, 0.4), transparent 50%),
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(14, 165, 233, 0.15), transparent 45%);
}

.home-hero__inner-wrap {
  padding-bottom: 3.25rem !important;
}

@media (min-width: 992px) {
  .home-hero__inner-wrap {
    padding-top: 3.5rem !important;
    padding-bottom: 4.25rem !important;
  }
}

.home-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
}

.home-hero__title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
}

.home-hero__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.88);
  max-width: 34rem;
}

.home-hero__btn-ghost {
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
}

.home-hero__btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #fff !important;
  color: #fff !important;
}

.home-search-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 1.1rem;
  padding: 1.35rem 1.4rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.home-search-form .input-group-text {
  border-radius: 0.65rem 0 0 0.65rem !important;
}

.home-search-form .form-control {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.home-search-form .btn {
  border-radius: 0 0.65rem 0.65rem 0 !important;
}

.home-icon-search {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.home-section__title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.home-section__subtitle {
  font-size: 0.9rem;
  color: #64748b;
}

.home-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-chip:hover {
  color: #0f172a;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0.35rem 1rem rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.home-creator-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 0.15rem 0.75rem rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.home-creator-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
}

.home-creator-card__avatar {
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.home-creator-card__placeholder {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #6366f1;
  background: linear-gradient(145deg, #eef2ff, #e0e7ff);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.home-creator-card__name {
  color: #0f172a;
}

.home-rank-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  overflow: hidden;
}

.home-rank-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  transition: background 0.15s ease;
}

.home-rank-row:last-child {
  border-bottom: none;
}

.home-rank-row:hover {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.06), transparent 55%);
}

.home-rank-row__badge {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.45rem;
  background: linear-gradient(145deg, #1d4ed8, #2563eb);
  color: #fff;
}

.home-rank-row__badge--soft {
  background: linear-gradient(145deg, #4f46e5, #6366f1);
}

.home-rank-row__title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  color: #0f172a;
}

.home-rank-row:hover .home-rank-row__title {
  color: #1d4ed8;
}

.home-rank-row__meta {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
}

.home-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem 1.1rem;
  box-shadow: 0 0.15rem 0.75rem rgba(15, 23, 42, 0.04);
}

.home-panel--muted {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.home-panel__head {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.home-panel__list li + li {
  margin-top: 0.35rem;
}

.home-panel__link {
  display: block;
  padding: 0.35rem 0;
  color: #334155;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.45;
  border-radius: 0.35rem;
  transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
}

.home-panel__link:hover {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.06);
  padding-left: 0.35rem;
}

body.home-body .footer {
  background: #fff;
  border-top-color: rgba(15, 23, 42, 0.06) !important;
}

/* ---------- 成长首页 · 顶栏与页脚 ---------- */
.navbar-brand--growth {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a !important;
}

.navbar-brand--growth .navbar-brand__title {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.navbar-brand--growth .navbar-brand__tagline {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 0.15rem;
}

.home-growth-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155 !important;
  border-radius: 0.4rem;
  padding-left: 0.55rem !important;
  padding-right: 0.55rem !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.home-growth-nav .nav-link:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a !important;
}

.home-nav-search__group {
  max-width: 16rem;
}

.home-nav-search__group .form-control {
  border-radius: 0.5rem 0 0 0.5rem !important;
  border-color: rgba(15, 23, 42, 0.12);
  font-size: 0.875rem;
}

.home-nav-search__group .btn {
  border-radius: 0 0.5rem 0.5rem 0 !important;
}

.footer--growth {
  background: #f8fafc !important;
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.footer--growth a {
  color: #475569;
  text-decoration: none;
}

.footer--growth a:hover {
  color: #1d4ed8;
}

/* ---------- Hero 成长版（约 72–78vh） ---------- */
.home-hero--growth {
  min-height: clamp(28rem, 76vh, 52rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero__growth-inner {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.home-hero__growth-row {
  min-height: min(78vh, 44rem);
}

.home-hero__sublead {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.78);
  max-width: 36rem;
}

.home-hero-stats__value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}

.home-hero-stats__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
  margin-top: 0.25rem;
}

.home-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (min-width: 992px) {
  .home-visual-grid {
    gap: 1rem;
  }
}

.home-visual-card {
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-visual-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.22);
}

.home-visual-card__k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.65);
}

.home-visual-card__t {
  font-size: 0.88rem;
  font-weight: 500;
  color: #f8fafc;
  line-height: 1.45;
}

.home-visual-card--ai {
  background: linear-gradient(155deg, rgba(14, 165, 233, 0.35), rgba(15, 23, 42, 0.65));
}

.home-visual-card--tech {
  background: linear-gradient(155deg, rgba(99, 102, 241, 0.4), rgba(15, 23, 42, 0.65));
}

.home-visual-card--east {
  background: linear-gradient(155deg, rgba(148, 163, 184, 0.35), rgba(30, 41, 59, 0.75));
}

.home-visual-card--creator {
  background: linear-gradient(155deg, rgba(244, 114, 182, 0.25), rgba(30, 27, 75, 0.75));
}

/* ---------- 内容区卡片 ---------- */
.home-growth-container {
  max-width: 1140px;
}

.home-res-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.15rem 0.75rem rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.home-res-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.65rem 1.5rem rgba(15, 23, 42, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.home-res-card__media {
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  overflow: hidden;
}

.home-res-card__media--sm {
  width: 7.5rem;
  min-width: 7.5rem;
  aspect-ratio: 5 / 3;
  flex-shrink: 0;
}

.home-res-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-res-card__ph {
  width: 100%;
  height: 100%;
  min-height: 8rem;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}

.home-res-card__body {
  padding: 1rem 1.1rem 1.05rem;
}

.home-res-card__title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  color: #0f172a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-res-card__title--sm {
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
}

.home-res-card--horizontal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.home-res-card--horizontal .home-res-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-creator-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

.home-creator-pill--muted {
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  font-weight: 600;
}

.home-section--east {
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.home-section__title--quiet {
  color: #334155;
  font-weight: 650;
}

.home-section__subtitle--quiet {
  color: #94a3b8;
}

.home-east-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.65rem;
}

.home-east-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #475569;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-east-tile:hover {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.35);
  color: #1e293b;
}

.home-east-tile__title {
  font-size: 0.9rem;
  font-weight: 600;
}

.home-east-tile__sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

.home-comm-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  box-shadow: 0 0.15rem 0.75rem rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-comm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.65rem 1.5rem rgba(15, 23, 42, 0.08);
}

.home-comm-card__body {
  padding: 1.15rem 1.2rem 1.1rem;
}

.home-comm-card__title {
  font-size: 1.02rem;
  font-weight: 650;
  color: #0f172a;
}

.home-comm-card__summary {
  line-height: 1.5;
}

.home-comm-pill {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: #64748b;
}

.home-section--foryou .home-panel {
  border-color: rgba(99, 102, 241, 0.12);
}

.home-chip--static {
  cursor: default;
  pointer-events: none;
  color: #64748b;
  background: #f8fafc;
  box-shadow: none;
}

/* ---------- 登录 / 注册 / 忘记密码（PC + 手机） ---------- */
.auth-page .form-control {
  /* 避免 iOS Safari 在字号小于 16px 时聚焦输入框自动放大整页 */
  font-size: 16px;
}

@media (min-width: 768px) {
  .auth-page .form-control {
    font-size: 1rem;
  }
}

.auth-captcha-frame {
  width: 128px;
  height: 44px;
  line-height: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.auth-captcha-frame svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ≤767：登录/注册/忘记密码 手机与竖屏平板；≥768 由下方还原「换一张」为普通文字链 */
@media (max-width: 767.98px) {
  .auth-page.py-4.py-md-5 {
    padding-top: 0.5rem !important;
    padding-bottom: 1rem !important;
  }

  .auth-page .card-body.p-3.p-md-4 {
    padding-left: clamp(0.8rem, 3.2vw, 1.1rem) !important;
    padding-right: clamp(0.8rem, 3.2vw, 1.1rem) !important;
  }

  .auth-page .auth-captcha-refresh {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.2rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.375rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
  }

  .auth-page .form-check {
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
  }

  .auth-page .form-check-input {
    width: 1.2em;
    height: 1.2em;
  }

  .auth-page .btn:not(.btn-link) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 2.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

@media (min-width: 768px) {
  .auth-page .auth-captcha-refresh {
    display: inline;
    min-height: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
  }
}

/* ---------- 列表页搜索（社群 / 知识）：窄屏全宽，避免 iOS 输入缩放 ---------- */
.list-search-bar__q {
  min-width: 0;
}

@media (max-width: 575.98px) {
  .list-search-bar__q {
    width: 100%;
    max-width: none;
    font-size: 16px;
  }

  .list-search-bar .btn.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
}

@media (min-width: 576px) {
  .list-search-bar__q {
    max-width: 20rem;
  }

  .list-search-bar--wide .list-search-bar__q {
    max-width: 22rem;
  }
}

/* ---------- 用户中心子页：去掉与布局双层 container 后的统一留白类 ---------- */
.user-hub-page {
  min-width: 0;
}

/* 通知 / 工单筛选条：手机纵向堆叠、触控高度 */
.user-hub-toolbar {
  min-width: 0;
}

@media (min-width: 768px) {
  .user-hub-toolbar__select {
    width: auto;
    min-width: 7.5rem;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .user-hub-toolbar__select {
    font-size: 16px;
    min-height: 44px;
  }

  .user-hub-toolbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
}

/* 个人中心 · 快捷按钮：略增内边距，避免小屏 + min-height 显得又扁又高 */
@media (max-width: 575.98px) {
  .profile-action-bar .btn.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
  }
}

/* 提交社群：≤767 触控与字号；≥768 恢复「换一张」为纯文字 */
@media (max-width: 767.98px) {
  .community-submit-page {
    padding-left: 0.125rem;
    padding-right: 0.125rem;
  }

  .community-submit-form .form-control,
  .community-submit-form .form-select {
    font-size: 16px;
  }

  .community-submit-form .form-select,
  .community-submit-form input.form-control:not([type="file"]) {
    min-height: 2.75rem;
  }

  .community-submit-form textarea.form-control-sm {
    min-height: 4.5rem;
    font-size: 16px;
  }

  .community-submit-form .auth-captcha-refresh {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.2rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.375rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
  }

  .community-submit-form .d-grid .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
  }
}

@media (min-width: 768px) {
  .community-submit-form .auth-captcha-refresh {
    display: inline;
    min-height: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
  }
}

/* 提交/编辑知识资源：≤767 触控与键盘类型 */
@media (max-width: 767.98px) {
  .resource-submit-page {
    padding-left: 0.125rem;
    padding-right: 0.125rem;
  }

  .resource-submit-form .form-control,
  .resource-submit-form .form-select {
    font-size: 16px;
  }

  .resource-submit-form .form-select,
  .resource-submit-form input.form-control:not([type="file"]) {
    min-height: 2.75rem;
  }

  .resource-submit-form .d-grid .btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
  }

  .resource-submit-form .d-grid .btn-link {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: start;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

/* 用户中心 Tab：略增点击区域（桌面几乎无感） */
@media (max-width: 575.98px) {
  .user-hub-tabs .nav-link {
    padding: 0.55rem 0.85rem;
  }
}