/* 模块页：攻略 / 百科 / 工具 / 羊毛
   页眉样式对齐卡库 hk-cc-header；列表组件刻意不同于首页 post 卡 */

.mod-page.hk-cc-page {
  /* 继承 cards.css 的 .hk-cc-page；若未加载 cards.css 则下方兜底 */
}

.hk-cc-page {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: clamp(84px, 8vw, 112px) clamp(16px, 4vw, 48px) 3.5rem;
  box-sizing: border-box;
}

/* 整页占位：暂未开放的模块（例如卡库） */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 16vw, 8rem) 1rem;
  text-align: center;
}

.coming-soon__cn {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  color: #111827;
}

.coming-soon__en {
  margin: 0;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #6b7280;
}

html.dark .coming-soon__cn,
html[data-theme='dark'] .coming-soon__cn {
  color: #f3f4f6;
}

html.dark .coming-soon__en,
html[data-theme='dark'] .coming-soon__en {
  color: #9ca3af;
}

/* 页眉：不用 <header> 标签，避免主题 `header:hover` 阴影白块
   （FeelIt: header:hover { box-shadow: 0 0 1.5rem ... }） */
.hk-cc-header,
.hk-cc-header:hover,
.hk-cc-header:focus,
.hk-cc-header:focus-within,
header.hk-cc-header,
header.hk-cc-header:hover {
  max-width: 1200px;
  margin: 0 auto 1rem;
  text-align: left;
  cursor: default !important;
  pointer-events: none;
  user-select: text;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  filter: none !important;
}

.hk-cc-header__title,
.hk-cc-header__subtitle,
.hk-cc-header__brand {
  cursor: default !important;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  filter: none !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

.hk-cc-header__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.225rem, 2.1vw, 1.575rem);
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  letter-spacing: -0.02em;
}

.hk-cc-header__subtitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6b7280;
  /* 与面包屑文字左缘对齐（抵消 .site-crumb__item 的左右 padding） */
  padding-left: 0.5rem;
}

.hk-cc-header__brand {
  pointer-events: auto;
  display: inline;
  color: inherit !important;
  font-weight: inherit;
  text-decoration: none !important;
  cursor: default !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  transition: none !important;
  transform: none !important;
}

.hk-cc-header__brand:hover,
.hk-cc-header__brand:focus,
.hk-cc-header__brand:focus-visible,
.hk-cc-header__brand:active {
  color: inherit !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;
  transform: none !important;
  opacity: 1 !important;
  cursor: default !important;
  filter: none !important;
}

/* ── 面包屑（默认：服务等页面；Hub 见下方） ───────────── */

.site-crumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  margin: 0 0 0.5rem;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  pointer-events: auto;
  cursor: default;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.site-crumb::-webkit-scrollbar {
  display: none;
}

.hk-cc-header .site-crumb {
  margin-bottom: 0.5rem;
}

.site-crumb__sep {
  flex: none;
  color: #747775;
  font-weight: 400;
  padding: 0 0.15rem;
  user-select: none;
}

.site-crumb__item {
  flex: none;
  max-width: 100%;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  color: #444746 !important;
  background: transparent;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto !important;
  cursor: pointer !important;
  box-shadow: none;
  transition: none;
}

/* 面包屑主标题：取消一切 hover / focus 背景与阴影 */
a.site-crumb__item:hover,
a.site-crumb__item:focus,
a.site-crumb__item:focus-visible,
a.site-crumb__item:active,
.hk-cc-header a.site-crumb__item:hover,
.hk-cc-header a.site-crumb__item:focus,
.hk-cc-header a.site-crumb__item:focus-visible,
.hk-cc-header a.site-crumb__item:active {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.site-crumb__item.is-current,
.site-crumb__item[aria-current="page"] {
  color: #1f1f1f !important;
  font-weight: 600;
}

.site-crumb-bar {
  max-width: 48rem;
  margin: 0 auto 0.15rem;
  padding: 0;
}

/* 面包屑条内不再额外下边距，避免文章模块被顶下去 */
.site-crumb-bar .site-crumb,
.site-crumb-bar .site-crumb--hub {
  margin-bottom: 0;
}

/* 卡库 / 工具 / 福利：面包屑作主标题（服务页不传 Hub）
   字号层级：列表 1.5 → 详情 1.25；窄屏 1.35 → 详情 1.15；副标题始终更小 */
.site-crumb--hub {
  font-size: 1.5rem;
  margin-bottom: 0.175rem; /* 0.25 × 0.7 */
}

.hk-cc-header .site-crumb--hub {
  margin-bottom: 0.175rem;
}

.site-crumb--hub .site-crumb__sep {
  font-weight: 300;
  padding: 0 0.2rem;
}

.site-crumb--hub.site-crumb--deep {
  font-size: 1.25rem;
}

/* 工具 / 福利列表：主标题与「地区」等模块左缘对齐 */
.mod-page .site-crumb--hub .site-crumb__item {
  padding-left: 0;
  padding-right: 0;
}

.hk-cc-header:has(.site-crumb--hub) .hk-cc-header__subtitle {
  margin: 0;
  padding-left: 0;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .site-crumb:not(.site-crumb--hub) {
    font-size: 0.95rem;
    gap: 0.1rem;
  }

  .site-crumb:not(.site-crumb--hub) .site-crumb__item {
    padding: 0.18rem 0.4rem;
  }

  .hk-cc-header:not(:has(.site-crumb--hub)) .hk-cc-header__subtitle {
    padding-left: 0.4rem;
  }
}

/* Hub 主标题 / 副标题共用断点（宽 / 窄）；主标题始终大于副标题 */
@media (max-width: 720px) {
  .site-crumb--hub {
    font-size: 1.35rem;
  }

  .site-crumb--hub.site-crumb--deep {
    font-size: 1.15rem;
  }

  .mod-page .site-crumb--hub .site-crumb__item {
    padding: 0.18rem 0;
  }

  .hk-cc-header:has(.site-crumb--hub) .hk-cc-header__subtitle {
    font-size: 0.85rem;
    padding-left: 0;
  }

  .mod-facet {
    font-size: 0.8125rem;
    padding: 0.3rem 0.55rem;
  }

  .mod-facets__row {
    gap: 0.35rem;
  }

  .mod-facets__row--tools {
    gap: 0.35rem;
  }
}

/* 首页 = 攻略墙：收紧 profile，小头像 */
.home[data-home=guides] .home-profile {
  transform: none !important;
  padding-top: 1rem;
  padding-bottom: 0;
}

.home[data-home=guides] .home-avatar {
  padding: 0.25rem;
}

.home[data-home=guides] .home-avatar img {
  width: 5rem !important;
}

.home[data-home=guides] .home-title {
  font-size: 1.15rem;
}

.home[data-home=guides] .home-subtitle {
  font-size: 0.9rem;
}

.home[data-home=guides] .links {
  font-size: 1.25rem;
  padding-top: 0.15rem;
}

.home[data-home=guides] .home-disclaimer {
  position: relative;
  padding-top: 0.15rem;
  padding-bottom: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-bottom: none;
  box-sizing: border-box;
}

/* 居中分隔：———— · ———— */
.home[data-home=guides] .home-disclaimer::after {
  content: "";
  display: block;
  width: min(72%, 560px);
  height: 1rem;
  margin: 0.85rem auto 0;
  background-image:
    linear-gradient(#d1d5db, #d1d5db),
    radial-gradient(circle closest-side, #9ca3af 1.35px, transparent 1.4px),
    linear-gradient(#d1d5db, #d1d5db);
  background-size:
    calc(50% - 0.7rem) 1px,
    0.55rem 0.55rem,
    calc(50% - 0.7rem) 1px;
  background-position: left center, center center, right center;
  background-repeat: no-repeat;
}

.home[data-home=guides] .home-guides {
  padding-top: 1.5rem;
}

html.dark .home[data-home=guides] .home-disclaimer::after,
html[data-theme='dark'] .home[data-home=guides] .home-disclaimer::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)),
    radial-gradient(circle closest-side, rgba(255, 255, 255, 0.45) 1.35px, transparent 1.4px),
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28));
}

.mod-page .mod-facets,
.mod-page .guide-masonry,
.mod-page .wiki-grid,
.mod-page .tool-grid,
.mod-page .offer-notice,
.mod-page .offer-pinned,
.mod-page .offer-note,
.mod-page .offer-sort,
.mod-page .offer-grid,
.mod-page .mod-empty {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 作者样式里的 display:flex/grid 会压过 UA 的 [hidden]，筛选需强制隐藏 */
.mod-page [hidden] {
  display: none !important;
}

.mod-facets {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 auto 1.1rem;
  padding: 0.15rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.mod-facets__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mod-facets__row::-webkit-scrollbar {
  display: none;
}

.mod-facets__row--vertical {
  overflow: visible;
  overflow-x: auto;
}

.mod-facets__label {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-width: 2rem;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1;
  color: #6b7280;
}

.mod-facet {
  appearance: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 400;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  flex: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mod-facet:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.mod-facet.is-active {
  border-color: #305D51;
  background: #305D51;
  color: #fff;
}

/*
  类型选项已精简，窄屏不再收纳进「更多」。
*/
.mod-facet--more,
.mod-facet--overflow {
  display: none !important;
}

/* 工具页：单行筛选、左对齐、无「地区/类型」标题 */
.mod-facets--tools {
  gap: 0;
  margin-bottom: 0.5rem;
}

.mod-facets__row--tools {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.35rem;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mod-facets__row--tools::-webkit-scrollbar {
  display: none;
}

.mod-facets--tools .mod-facet {
  flex: none;
}

@media (min-width: 720px) {
  .mod-facet {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    min-width: 5.25rem;
  }

  .mod-facets__row {
    gap: 0.45rem;
  }

  .mod-facets__row--tools {
    gap: 0.45rem;
  }
}

/* ── 视图切换按钮 ─────── */
.view-toggle {
  flex: none;
  margin-left: auto;
  position: sticky;
  right: 0;
  display: flex;
  gap: 0;
  padding-left: 0.5rem;
}

.view-toggle__btn {
  appearance: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #6b7280;
  font-size: 0.8125rem;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 2rem;
}

.view-toggle__btn svg,
.view-toggle__icon {
  width: 16px;
  height: 16px;
  display: block;
}

.view-toggle__btn[data-view="grid"] .view-toggle__icon--list,
.view-toggle__btn:not([data-view]) .view-toggle__icon--list {
  display: none !important;
}

.view-toggle__btn[data-view="list"] .view-toggle__icon--grid {
  display: none !important;
}

.view-toggle__btn.is-active {
  background: #ebf0ee;
  color: #325d52;
  border-color: #d8dedc;
}

.view-toggle__btn:hover {
  background: #f3f6f5;
  border-color: #d8dedc;
  color: #325d52;
}

@media (min-width: 720px) {
  .view-toggle__btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    min-width: 2.5rem;
  }
}

/* ── 攻略：对齐网格（窄屏两列同高；宽屏 4～5 列缩小） ─────── */

.guide-masonry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
  border-color: #c7cdd6;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.guide-card__cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  flex: none;
  overflow: hidden;
  background: #f3f4f6;
}

.guide-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.guide-card__cover--empty {
  background: linear-gradient(145deg, #eef2f7 0%, #e5e7eb 100%);
}

.guide-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.62rem 0.55rem 0.38rem;
}

/* 标题单行 + 省略号，卡片高度对齐 */
.guide-card__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  min-height: 1.3em;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-card__updated {
  display: block;
  margin-top: 0.06rem;
  font-size: 0.68rem;
  font-weight: 400;
  color: #9ca3af;
  letter-spacing: 0.01em;
}

@media (min-width: 640px) {
  .guide-masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .guide-card__body {
    padding: 0.65rem 0.65rem 0.4rem;
  }

  .guide-card__title {
    font-size: 0.84rem;
  }
}

@media (min-width: 900px) {
  .guide-masonry {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .guide-card {
    border-radius: 10px;
  }

  .guide-card__title {
    font-size: 0.82rem;
  }
}

@media (min-width: 1100px) {
  .guide-masonry {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .guide-card__body {
    padding: 0.62rem 0.6rem 0.38rem;
  }

  .guide-card__title {
    font-size: 0.8rem;
  }
}

@media (max-width: 420px) {
  .guide-masonry {
    gap: 0.5rem;
  }

  .guide-card {
    border-radius: 10px;
  }

  .guide-card__body {
    padding: 0.58rem 0.5rem 0.34rem;
  }

  .guide-card__title {
    font-size: 0.76rem;
  }
}

/* ── 百科 / 工具：词条瓷砖 ────────────────────────────────── */

.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

@media (max-width: 800px) {
  .wiki-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wiki-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  min-height: 152px;
  padding: 1.25rem 1.15rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.wiki-tile:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
}

.wiki-tile.is-shell {
  opacity: 0.92;
}

.wiki-tile__term {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.wiki-tile__arrow {
  flex: none;
  font-size: 0.72em;
  font-weight: 400;
  line-height: 1;
  color: #9ca3af;
  transition: color 0.15s ease;
}

.wiki-tile:hover .wiki-tile__arrow {
  color: #185ef6;
}

.wiki-tile__def {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #6b7280;
}

.wiki-tile__tag {
  display: none !important;
}

.wiki-tile__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: #325D52;
  background: rgba(45, 150, 189, 0.08);
}

.wiki-tile--badged .wiki-tile__term {
  padding-right: 2.75rem;
}

/* ── 工具：目录卡（对齐福利卡结构，略放大；hover 对齐攻略卡） ─ */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

@media (min-width: 720px) {
  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.35rem;
  height: 100%;
  min-height: 0;
  padding: 0.55rem 0.55rem 1.15rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ebf0ee;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.tool-card:hover {
  border-color: #c7cdd6;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

a.tool-card:hover .tool-card__name,
a.tool-card:hover .tool-card__name-text,
a.tool-card:hover .wiki-tile__arrow {
  color: #185ef6;
}

.tool-card.is-draft {
  opacity: 0.92;
  cursor: default;
}

.tool-card__cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  flex: none;
  margin: 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.tool-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tool-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: none;
  min-width: 0;
  padding: 0 0.15rem 0.25rem;
}

.tool-card__name {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.tool-card__name-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-card .wiki-tile__arrow {
  font-size: 0.92em;
  font-weight: 500;
}

.tool-card__summary {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 400;
  color: #111827;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-card.is-draft .tool-card__summary {
  color: #6b7280;
}

.tool-card--more {
  align-items: center;
  justify-content: center;
  cursor: default;
  border-style: dashed;
  background: transparent;
}

.tool-card--more .tool-card__text {
  align-items: center;
  padding: 0;
  text-align: center;
}

.tool-card--more .tool-card__name {
  color: #9ca3af;
  font-weight: 600;
  white-space: normal;
  text-align: center;
}

/* 列表视图样式 */
.tool-grid--list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tool-grid--list .tool-card {
  flex-direction: row;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
}

.tool-grid--list .tool-card__cover {
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1;
  flex: none;
}

.tool-grid--list .tool-card__text {
  flex: 1;
  padding: 0.15rem 0;
  justify-content: center;
}

.tool-grid--list .tool-card__name {
  font-size: 0.95rem;
}

.tool-grid--list .tool-card__summary {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 720px) {
  .tool-grid--list .tool-card {
    gap: 1.15rem;
    padding: 1rem 1.15rem;
  }
  
  .tool-grid--list .tool-card__cover {
    width: 100px;
    height: 100px;
  }
  
  .tool-grid--list .tool-card__name {
    font-size: 1.05rem;
  }
  
  .tool-grid--list .tool-card__summary {
    font-size: 0.84rem;
  }
}

@media (max-width: 640px) {
  .tool-grid {
    gap: 0.65rem;
  }

  .tool-card {
    gap: 1.25rem;
    padding: 0.5rem 0.5rem 1.05rem;
    border-radius: 10px;
  }

  .tool-card__cover {
    border-radius: 7px;
  }

  .tool-card__name {
    font-size: 0.84rem;
  }

  .tool-card .wiki-tile__arrow {
    font-size: 0.98em;
  }
}

/* ── 羊毛：最新消息 + 置顶 + 机构卡 ───────────────────────── */

.offer-notice {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 1rem;
  padding: 0.55rem 0.95rem 0.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fffbeb;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    margin 0.28s ease,
    padding 0.28s ease,
    border-width 0.28s ease,
    max-height 0.28s ease;
  max-height: 10rem;
}

.offer-notice.is-expanded {
  max-height: 24rem;
}

.offer-notice.is-dismissing {
  opacity: 0;
  transform: translateY(-0.35rem);
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
  max-height: 0;
  pointer-events: none;
}

.offer-notice--expandable {
  cursor: pointer;
}

.offer-notice__close {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.offer-notice__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #111827;
}

.offer-notice__toggle {
  position: absolute;
  top: 0.35rem;
  right: 2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.offer-notice__toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #111827;
}

.offer-notice__toggle i {
  transition: transform 0.18s ease;
}

.offer-notice.is-expanded .offer-notice__toggle {
  color: #325D52;
}

.offer-notice.is-expanded .offer-notice__toggle i {
  transform: rotate(180deg);
}

.offer-notice__title {
  margin: -0.12rem 0 0.1rem;
  padding-right: 3.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #325D52;
}

.offer-notice__slides {
  position: relative;
  display: grid;
  min-width: 0;
}

.offer-notice__slide {
  grid-area: 1 / 1;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #374151;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.offer-notice__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.offer-notice.is-expanded .offer-notice__slides {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.offer-notice.is-expanded .offer-notice__slide {
  grid-area: auto;
  position: static;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: auto;
}

.offer-notice.is-expanded .offer-notice__slide + .offer-notice__slide {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.07);
}

.offer-notice__dots {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.offer-notice.is-expanded .offer-notice__dots {
  display: none;
}

.offer-notice__dot {
  appearance: none;
  width: 0.4rem;
  height: 0.4rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(50, 93, 82, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.offer-notice__dot:hover {
  background: rgba(50, 93, 82, 0.5);
}

.offer-notice__dot.is-active {
  background: #325D52;
  transform: scale(1.15);
}

.offer-notice__link {
  color: #185ef6 !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .offer-notice__slide {
    transition: none;
  }
}

.offer-pinned {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 auto 1.75rem;
}

.offer-pinned > .offer-pin:nth-child(3) {
  grid-column: 1 / -1;
}

.offer-pin {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1rem 1.2rem 1.15rem;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background:
    linear-gradient(135deg, rgba(24, 94, 246, 0.06) 0%, transparent 55%),
    #fff;
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.offer-pin:hover {
  border-color: #c7cdd6;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.offer-pin__label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: #185ef6;
  background: rgba(24, 94, 246, 0.1);
  transform: translateY(-3px);
}

.offer-pin__title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
}

.offer-pin__blurb {
  margin: 0;
  font-size: 0.86rem;
  color: #6b7280;
  line-height: 1.55;
}

.offer-note {
  margin: 0 auto 1rem;
  color: #9ca3af;
  font-size: 0.78rem;
  line-height: 1.5;
}

.offer-note + .offer-note {
  margin-top: -0.35rem;
}

.offer-note.offer-tutorials .offer-pinned {
  margin: 0.65rem auto 0.85rem;
}

.offer-note__summary {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.offer-note__summary::-webkit-details-marker {
  display: none;
}

.offer-note__summary::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  margin-right: 0.28rem;
  border-style: solid;
  border-width: 0.26em 0 0.26em 0.4em;
  border-color: transparent transparent transparent currentColor;
  color: #9ca3af;
  transform: translateY(0.02em);
  transition: transform 0.15s ease;
}

.offer-note[open] .offer-note__summary::before {
  transform: translateY(0.02em) rotate(90deg);
}

.offer-note__lead {
  flex: none;
  font-weight: 600;
  color: #6b7280;
}

.offer-note__preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-note__ellipsis {
  flex: none;
}

.offer-note[open] .offer-note__preview,
.offer-note[open] .offer-note__ellipsis {
  display: none;
}

.offer-note__list {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
  color: #6b7280;
}

.offer-note__list li + li {
  margin-top: 0.2rem;
}

/* ── 福利页：排序栏 ─────── */
.offer-sort {
  margin-bottom: 0.5rem;
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.offer-sort .view-toggle--plain {
  margin-left: auto;
  padding-left: 0.25rem;
  position: static;
  flex: none;
}

.offer-sort .view-toggle--plain .view-toggle__btn,
.offer-sort .view-toggle--plain .view-toggle__btn.is-active,
.offer-sort .view-toggle--plain .view-toggle__btn:hover {
  border: none;
  background: transparent;
  box-shadow: none;
  color: #325d52;
  padding: 0;
  min-width: 0;
  border-radius: 0;
}

.offer-sort .view-toggle--plain .view-toggle__btn:hover {
  color: #294a42;
}

.offer-sort__item {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease, font-weight 0.15s ease;
  line-height: 1.4;
}

.offer-sort__item:hover {
  color: #305D51;
}

.offer-sort__item.is-active {
  color: #305D51;
  font-weight: 700;
}

.offer-sort__arrows {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-left: 0.15rem;
  line-height: 1;
}

.offer-sort__arrow {
  font-size: 0.38rem;
  font-style: normal;
  color: #d1d5db;
  transition: color 0.15s ease;
  display: block;
}

.offer-sort__arrow--up {
  margin-bottom: -0.15em;
}

.offer-sort__arrow.is-active {
  color: #305D51;
}

@media (min-width: 720px) {
  .offer-sort {
    gap: 2rem;
  }
  
  .offer-sort__item {
    font-size: 0.9375rem;
  }
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 720px) {
  .offer-grid {
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  }
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  height: 100%;
  min-height: 253px; /* 220 × 1.15；多出高度由 __text 的 margin-top:auto 顶到标题上方 */
  padding: 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.offer-card:hover {
  border-color: #c7cdd6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
}

.offer-card__tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: #6b7280;
  background: rgba(107, 114, 128, 0.06);
}

.offer-card__tag--pin {
  right: auto;
  left: 1rem;
  font-weight: 400;
  color: #325D52;
  background: rgba(45, 150, 189, 0.08);
}

.offer-card__media--avatar img {
  max-width: 57px;   /* 原 52 × 1.1；改大小只动这三处 + 下面 width/height */
  max-height: 57px;
  width: 57px;
  height: 57px;
  border-radius: 50%;
  object-fit: cover;
}

.offer-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  margin-top: 2.5rem;
  border-radius: 8px;
  background: transparent;
  overflow: visible;
}

.offer-card__media img {
  max-width: 86%;    /* 原 78% × 1.1；改 Logo 大小主要改这两行 */
  max-height: 51px;  /* 原 46px × 1.1 */
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12)); /* 白底 Logo 防溶进白卡片 */
  transition: transform 0.2s ease, filter 0.2s ease;
  transform-origin: center center;
  will-change: transform;
}

.offer-card:hover .offer-card__media img {
  transform: translateY(-4px) scale(1.04);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

.offer-card__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-card:hover .offer-card__placeholder {
  transform: translateY(-4px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.12);
}

.offer-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
  min-width: 0;
}

.offer-card__name {
  margin: 0;
  padding-right: 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.offer-card__hint {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 400;
  color: #111827;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-card__hint--status {
  font-weight: 500;
  color: #6b7280;
}

.offer-card__updated {
  margin: 0.2rem 0 0;
  text-align: right;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.3;
  color: #9ca3af;
}

/* 福利页列表视图：仅改排版，保留卡片配色与结构 */
.offer-grid.offer-grid--list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.offer-grid--list .offer-card {
  flex-direction: row;
  align-items: stretch;
  gap: 0.85rem;
  height: auto;
  min-height: 0;
  padding: 0.75rem 0.85rem;
}

.offer-grid--list .offer-card__tag {
  top: 0.65rem;
  right: 0.85rem;
  transform: none;
}

.offer-grid--list .offer-card__tag--pin {
  left: auto;
  right: 0.85rem;
}

.offer-grid--list .offer-card__media {
  width: 64px;
  height: auto;
  min-height: 64px;
  margin-top: 0;
  flex: none;
  align-self: center;
}

.offer-grid--list .offer-card__media img {
  max-width: 90%;
  max-height: 44px;
}

.offer-grid--list .offer-card__media--avatar img {
  max-width: 48px;
  max-height: 48px;
  width: 48px;
  height: 48px;
}

.offer-grid--list .offer-card__placeholder {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
}

.offer-grid--list .offer-card__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  min-width: 0;
  padding-right: 5rem;
  justify-content: center;
  gap: 0.35rem;
}

.offer-grid--list .offer-card__name {
  font-size: 0.95rem;
  -webkit-line-clamp: 1;
  padding-right: 0;
}

.offer-grid--list .offer-card__hint {
  font-size: 0.72rem;
}

.offer-grid--list .offer-card__updated {
  position: absolute;
  right: 0.85rem;
  bottom: 0.65rem;
  margin: 0;
  text-align: right;
}

.offer-grid--list .offer-card:hover .offer-card__media img,
.offer-grid--list .offer-card:hover .offer-card__placeholder {
  transform: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
  box-shadow: none;
}

@media (min-width: 720px) {
  .offer-grid--list .offer-card {
    gap: 1.15rem;
    padding: 0.9rem 1.15rem;
  }

  .offer-grid--list .offer-card__tag {
    top: 0.85rem;
    right: 1.15rem;
  }

  .offer-grid--list .offer-card__updated {
    right: 1.15rem;
    bottom: 0.85rem;
  }

  .offer-grid--list .offer-card__media {
    width: 72px;
    height: 72px;
  }

  .offer-grid--list .offer-card__media img {
    max-height: 50px;
  }

  .offer-grid--list .offer-card__name {
    font-size: 1.02rem;
  }
}

html.dark .offer-note,
html[data-theme='dark'] .offer-note {
  color: #9ca3af;
}

html.dark .offer-note__lead,
html.dark .offer-note__list,
html[data-theme='dark'] .offer-note__lead,
html[data-theme='dark'] .offer-note__list {
  color: #9ca3af;
}

html.dark .offer-sort__item,
html[data-theme='dark'] .offer-sort__item {
  color: #f3f4f6;
}

html.dark .offer-sort__item:hover,
html.dark .offer-sort__item.is-active,
html[data-theme='dark'] .offer-sort__item:hover,
html[data-theme='dark'] .offer-sort__item.is-active {
  color: #305D51;
}

html.dark .offer-card__hint--status,
html[data-theme='dark'] .offer-card__hint--status {
  color: #9ca3af;
}

html.dark .offer-card__tag,
html[data-theme='dark'] .offer-card__tag {
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.08);
}

html.dark .offer-card__tag--pin,
html[data-theme='dark'] .offer-card__tag--pin {
  color: #5eb3d4;
  background: rgba(45, 150, 189, 0.16);
}

html.dark .wiki-tile__badge,
html[data-theme='dark'] .wiki-tile__badge {
  color: #5eb3d4;
  background: rgba(45, 150, 189, 0.16);
}

html.dark .offer-card__updated,
html[data-theme='dark'] .offer-card__updated {
  color: #6b7280;
}

.mod-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

html.dark .hk-cc-header__title,
html[data-theme='dark'] .hk-cc-header__title {
  color: #f3f4f6;
}

html.dark .hk-cc-header__subtitle,
html[data-theme='dark'] .hk-cc-header__subtitle {
  color: #9ca3af;
}

html.dark .mod-facets,
html[data-theme='dark'] .mod-facets,
body[theme=dark] .mod-facets,
body[theme='dark'] .mod-facets {
  background: transparent;
  border: none;
}

/* FeelIt 暗色挂在 body[theme=dark]；未选中浅灰字，选中描边品牌绿 */
html.dark .mod-facet,
html[data-theme='dark'] .mod-facet,
body[theme=dark] .mod-facet,
body[theme='dark'] .mod-facet {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #d1d5db;
}

html.dark .mod-facet:hover,
html[data-theme='dark'] .mod-facet:hover,
body[theme=dark] .mod-facet:hover,
body[theme='dark'] .mod-facet:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e5e7eb;
}

html.dark .mod-facet.is-active,
html[data-theme='dark'] .mod-facet.is-active,
body[theme=dark] .mod-facet.is-active,
body[theme='dark'] .mod-facet.is-active {
  background: transparent;
  border-color: #305D51;
  color: #305D51;
}

html.dark .mod-facet.is-active:hover,
html[data-theme='dark'] .mod-facet.is-active:hover,
body[theme=dark] .mod-facet.is-active:hover,
body[theme='dark'] .mod-facet.is-active:hover {
  background: rgba(48, 93, 81, 0.12);
  border-color: #305D51;
  color: #3d7a6a;
}

html.dark .mod-facets__label,
html[data-theme='dark'] .mod-facets__label,
body[theme=dark] .mod-facets__label,
body[theme='dark'] .mod-facets__label {
  color: #9ca3af;
}

html.dark .view-toggle__btn,
html[data-theme='dark'] .view-toggle__btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #9ca3af;
}

html.dark .view-toggle__btn.is-active,
html[data-theme='dark'] .view-toggle__btn.is-active {
  background: #ebf0ee;
  border-color: #ebf0ee;
  color: #325d52;
}

html.dark .view-toggle__btn:hover,
html[data-theme='dark'] .view-toggle__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

html.dark .offer-sort .view-toggle--plain .view-toggle__btn,
html.dark .offer-sort .view-toggle--plain .view-toggle__btn.is-active,
html.dark .offer-sort .view-toggle--plain .view-toggle__btn:hover,
html[data-theme='dark'] .offer-sort .view-toggle--plain .view-toggle__btn,
html[data-theme='dark'] .offer-sort .view-toggle--plain .view-toggle__btn.is-active,
html[data-theme='dark'] .offer-sort .view-toggle--plain .view-toggle__btn:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #325d52;
}

html.dark .offer-sort .view-toggle--plain .view-toggle__btn:hover,
html[data-theme='dark'] .offer-sort .view-toggle--plain .view-toggle__btn:hover {
  color: #3d6f62;
}

html.dark .guide-card,
html.dark .wiki-tile,
html.dark .tool-card,
html.dark .offer-card,
html.dark .offer-pin,
html.dark .offer-notice,
html[data-theme='dark'] .guide-card,
html[data-theme='dark'] .wiki-tile,
html[data-theme='dark'] .tool-card,
html[data-theme='dark'] .offer-card,
html[data-theme='dark'] .offer-pin,
html[data-theme='dark'] .offer-notice {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark .offer-notice__title,
html[data-theme='dark'] .offer-notice__title {
  color: #325D52;
}

html.dark .offer-notice__slide,
html[data-theme='dark'] .offer-notice__slide {
  color: #d1d5db;
}

html.dark .offer-notice.is-expanded .offer-notice__slide + .offer-notice__slide,
html[data-theme='dark'] .offer-notice.is-expanded .offer-notice__slide + .offer-notice__slide {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html.dark .offer-notice.is-expanded .offer-notice__toggle,
html[data-theme='dark'] .offer-notice.is-expanded .offer-notice__toggle {
  color: #325D52;
}

html.dark .offer-notice__dot,
html[data-theme='dark'] .offer-notice__dot {
  background: rgba(50, 93, 82, 0.4);
}

html.dark .offer-notice__dot:hover,
html[data-theme='dark'] .offer-notice__dot:hover {
  background: rgba(50, 93, 82, 0.65);
}

html.dark .offer-notice__dot.is-active,
html[data-theme='dark'] .offer-notice__dot.is-active {
  background: #325D52;
}

html.dark .guide-card__title,
html.dark .wiki-tile__term,
html.dark .tool-card__name,
html.dark .tool-card__summary,
html.dark .offer-card__name,
html.dark .offer-card__hint,
html.dark .offer-pin__title,
html[data-theme='dark'] .guide-card__title,
html[data-theme='dark'] .wiki-tile__term,
html[data-theme='dark'] .tool-card__name,
html[data-theme='dark'] .tool-card__summary,
html[data-theme='dark'] .offer-card__name,
html[data-theme='dark'] .offer-card__hint,
html[data-theme='dark'] .offer-pin__title {
  color: #f3f4f6;
}

html.dark .tool-card.is-draft .tool-card__summary,
html[data-theme='dark'] .tool-card.is-draft .tool-card__summary {
  color: #9ca3af;
}

html.dark .tool-card__cover,
html[data-theme='dark'] .tool-card__cover {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

html.dark .offer-card__media,
html[data-theme='dark'] .offer-card__media {
  background: rgba(255, 255, 255, 0.05);
}

/* 无目录时正文区保持居中（与 posts 规则一致；wiki 复用 posts single） */
@media only screen and (min-width: 1001px) {
  article.page.single[data-toc="disable"] {
    margin-left: auto;
    margin-right: auto;
  }
}
