/* ============================================================
 * 工具箱导航站 · 样式表
 * 设计变量参考自 feige177.com 的浅色/深色主题体系
 * 无需构建工具，纯 CSS
 * ============================================================ */

/* ---------------------- 1. 设计变量（浅色） ---------------------- */
:root {
  color-scheme: light;
  --layout-width: 1140px;

  --body-bg:
    radial-gradient(circle at top right, #ffddcc52, transparent 24%),
    linear-gradient(180deg, #fbfaf7 0%, #f6f3ee 100%);

  --color-paper: #faf8f3;
  --color-ink-strong: #121a22;
  --color-ink-mid: #384654;
  --color-ink-soft: #78828d;

  --color-line: #121a221a;
  --color-header-bg: #faf8f3db;
  --color-surface-soft: #ffffffad;
  --color-surface: #fffc;
  --color-surface-strong: #ffffffeb;
  --color-surface-elevated: #fbf9f4fa;

  --color-control-bg: #ffffffd1;
  --color-control-border: #121a2214;
  --color-control-shadow: 0 14px 28px #121a2214;

  --color-card-border: #121a2214;
  --color-card-shadow: 0 18px 36px #121a220f;
  --color-card-shadow-strong: 0 32px 80px #0e141b2e;

  --color-overlay: #0e141b5c;
  --color-chip-muted: #121a2214;
  --color-tag-bg: #121a220d;

  --button-glow: #5786ff2e;
  --color-accent-strong: #0f5d8f;
  --color-accent-warm: #e0702f;
  --color-accent-cyan: #2196f3;

  --banner-warm-bg: linear-gradient(135deg, #ffdacdf0, #cde8fae6);
  --drawer-bg:
    radial-gradient(circle at top right, #ffdecd8f, transparent 34%),
    linear-gradient(180deg, #fcfaf6fa, #f8f5effa);

  --tone-ai-bg: linear-gradient(135deg, #ffdacdfa, #cbe8f7f0);
  --tone-tools-bg: linear-gradient(135deg, #dde8f4fa, #dbebe3f0);
  --tone-business-bg: linear-gradient(135deg, #efe2f4fa, #ece6ddf0);
  --tone-materials-bg: linear-gradient(135deg, #f1ebd7fa, #e1ede4f0);

  --accent: #5786ff;
  --accent-soft: #5786ff1f;
  --accent-line: #5786ff66;
}

/* ---------------------- 2. 设计变量（深色） ---------------------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --body-bg:
    radial-gradient(circle at top center, #6d95ff2e, transparent 28%),
    linear-gradient(180deg, #0a1017 0%, #0d141d 100%);

  --color-paper: #0b1117;
  --color-ink-strong: #eef4fb;
  --color-ink-mid: #c7d1db;
  --color-ink-soft: #92a1b1;

  --color-line: #e0eaf41f;
  --color-header-bg: #080c12c7;
  --color-surface-soft: #ffffff0a;
  --color-surface: #121a24d1;
  --color-surface-strong: #131d27f0;
  --color-surface-elevated: #0d141dfa;

  --color-control-bg: #0f1721e0;
  --color-control-border: #d9e5f11f;
  --color-control-shadow: 0 18px 40px #00000059;

  --color-card-border: #d9e5f11a;
  --color-card-shadow: 0 24px 48px #00000047;
  --color-card-shadow-strong: 0 36px 96px #0000006b;

  --color-overlay: #03070c94;
  --color-chip-muted: #ffffff14;
  --color-tag-bg: #ffffff12;

  --button-glow: #74a3ff38;
  --color-accent-strong: #7dc2ff;
  --color-accent-warm: #ffb26f;
  --color-accent-cyan: #6ec8ff;

  --banner-warm-bg: linear-gradient(135deg, #542a1dfa, #1d3450f2);
  --drawer-bg:
    radial-gradient(circle at top right, #6d95ff2e, transparent 36%),
    linear-gradient(180deg, #0c121bfa, #090e16fa);

  --tone-ai-bg: linear-gradient(135deg, #4c2920f5, #1c3648eb);
  --tone-tools-bg: linear-gradient(135deg, #192d40f5, #173831eb);
  --tone-business-bg: linear-gradient(135deg, #342744f5, #2f2a23eb);
  --tone-materials-bg: linear-gradient(135deg, #3a3422f5, #1f342beb);

  --accent: #74a3ff;
  --accent-soft: #74a3ff24;
  --accent-line: #74a3ff6b;
}

/* ---------------------- 3. 基础 ---------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 0;
  color: var(--color-ink-mid);
  background: var(--body-bg);
  font-family: "SF Pro Display", "SF Pro Text", "Avenir Next",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background .42s cubic-bezier(.22, 1, .36, 1),
              color .34s cubic-bezier(.22, 1, .36, 1);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { padding: 0; background: none; border: 0; cursor: pointer; }

::selection { background: #ffd45a66; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-surface-soft); }
::-webkit-scrollbar-thumb {
  background: var(--color-line);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-ink-soft); }

/* ---------------------- 4. 顶栏 ---------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100% - 36px, var(--layout-width));
  margin: 0 auto;
  min-height: 64px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--color-control-border);
  background: var(--color-control-bg);
  color: var(--color-ink-strong);
  box-shadow: var(--color-control-shadow);
  transition: transform .2s, border-color .2s, background .2s;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--accent-line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-right: auto;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  color: #ffd98a;
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #11181f, #24313d);
  box-shadow: 0 8px 18px #11181f29, 0 0 0 1px #ffdc963d, 0 0 18px #ffc55d29;
}
.brand__copy { display: grid; gap: 1px; min-width: 0; }
.brand__name {
  color: var(--color-ink-strong);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
  white-space: nowrap;
}
.brand__slogan {
  color: var(--color-ink-soft);
  font-size: .7rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 搜索框 */
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 260px;
  max-width: 380px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--color-control-border);
  background: var(--color-control-bg);
  box-shadow: var(--color-control-shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--color-control-shadow);
}
.search__icon { flex: none; opacity: .55; font-size: .92rem; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: .86rem;
}
.search input::placeholder { color: var(--color-ink-soft); }
.search__clear {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--color-ink-soft);
  font-size: .8rem;
  line-height: 1;
  display: none;
}
.search__clear.is-visible { display: inline-flex; align-items: center; justify-content: center; }

/* ---------------------- 5. 布局 ---------------------- */
.page {
  width: min(100% - 36px, var(--layout-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

/* ---------------------- 6. 横幅 + 公告 ---------------------- */
.hero {
  position: relative;
  margin-top: 22px;
  border-radius: 22px;
  border: 1px solid var(--color-card-border);
  background: var(--banner-warm-bg);
  padding: 26px 24px;
  overflow: hidden;
  box-shadow: var(--color-card-shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, #0000 0%, #ffffff40 22%, #0000 46%);
}
.hero__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  color: color-mix(in srgb, var(--color-ink-strong) 62%, #b8873a 38%);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-ink-strong);
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.hero__sub {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  max-width: 62ch;
  color: color-mix(in srgb, var(--color-ink-mid) 88%, transparent);
  font-size: .86rem;
}
.hero__stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #ffffff7a;
  border: 1px solid #ffffff66;
  color: var(--color-ink-strong);
  font-size: .76rem;
  font-weight: 600;
}
:root[data-theme="dark"] .hero__stat { background: #ffffff14; border-color: #ffffff1f; }

.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--color-card-border);
  background: var(--color-surface);
  overflow: hidden;
}
.notice__tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffefe3;
  color: #f06c28;
  font-size: .72rem;
  font-weight: 700;
}
:root[data-theme="dark"] .notice__tag { background: #3a2418; color: #ffb26f; }
.notice__viewport { flex: 1; min-width: 0; overflow: hidden; }
.notice__track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  animation: noticeScroll 32s linear infinite;
}
.notice:hover .notice__track { animation-play-state: paused; }
.notice__item { font-size: .8rem; color: var(--color-ink-mid); }
.notice__item b { color: var(--color-ink-soft); font-weight: 600; margin-right: 6px; }
@keyframes noticeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------- 7. 主体网格 ---------------------- */
.layout {
  display: grid;
  grid-template-columns: clamp(232px, 24vw, 268px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 22px;
}

/* 左侧分类索引 */
.index {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--color-card-border);
  background: var(--color-surface);
  box-shadow: var(--color-card-shadow);
}
.index__head {
  display: grid;
  gap: 8px;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid var(--color-card-border);
  background:
    radial-gradient(circle at top right, #7aaaff24, transparent 58%),
    linear-gradient(180deg, var(--color-surface-strong), var(--color-surface));
}
.index__head h2 {
  margin: 0;
  color: var(--color-ink-strong);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.index__head p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: .78rem;
  line-height: 1.45;
}
.index__list { display: grid; gap: 8px; }

.cat-chip {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid var(--color-card-border);
  background: var(--color-surface);
  text-align: left;
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
.cat-chip:hover { transform: translateY(-1px); border-color: var(--accent-line); }
.cat-chip.is-active {
  border-color: var(--accent-line);
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}
.cat-chip__emoji {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: .95rem;
  background: color-mix(in srgb, var(--accent) 10%, var(--color-surface-strong));
}
.cat-chip__text { min-width: 0; display: grid; gap: 1px; }
.cat-chip__text strong {
  color: var(--color-ink-strong);
  font-size: .86rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-chip__text small {
  color: var(--color-ink-soft);
  font-size: .68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-chip__count {
  color: var(--color-ink-soft);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}

/* 右侧内容区 */
.content { display: grid; gap: 12px; min-width: 0; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tabs { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--color-card-border);
  background: var(--color-surface);
  color: var(--color-ink-mid);
  font-size: .78rem;
  font-weight: 560;
  transition: transform .16s, border-color .16s, background .16s, box-shadow .16s;
}
.tab:hover { transform: translateY(-1px); border-color: var(--accent-line); }
.tab.is-active {
  color: var(--color-ink-strong);
  background: var(--accent-soft);
  border-color: var(--accent-line);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}
.tab small { color: var(--color-ink-soft); font-size: .7rem; }

.result-meta {
  color: var(--color-ink-soft);
  font-size: .78rem;
  white-space: nowrap;
}
.result-meta b { color: var(--color-ink-strong); }

/* ---------------------- 8. 卡片网格 ---------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 13px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid var(--color-card-border);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--color-surface) 99%, #fff 1%) 0%,
    color-mix(in srgb, var(--color-surface-soft) 18%, var(--color-surface) 82%) 100%);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  box-shadow: inset 0 1px #fffc, 0 8px 20px #17253d09;
  transition: transform .18s, border-color .18s, box-shadow .18s, background .18s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--color-control-border);
  box-shadow: 0 1px 0 #ffffffe0 inset, var(--color-card-shadow);
}
.card.is-pinned {
  border-color: color-mix(in srgb, var(--color-accent-cyan) 34%, var(--color-card-border));
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--color-accent-cyan) 72%, #fff 28%);
}

.card__thumb {
  position: relative;
  align-self: center;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-card-border) 84%, #ffffff9e);
  box-shadow: 0 8px 18px #15243b0f, inset 0 1px #ffffffb3;
}
.card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}
.card:hover .card__thumb img { transform: scale(1.05); }
.card__thumb--empty {
  display: grid;
  place-items: center;
  color: #ffffffcc;
  font-size: 1.1rem;
  font-weight: 800;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--color-ink-strong);
  font-size: .95rem;
  font-weight: 640;
  line-height: 1.28;
}
.card__summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: color-mix(in srgb, var(--color-ink-mid) 64%, var(--color-ink-soft));
  font-size: .78rem;
  line-height: 1.45;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 2px;
  max-height: 26px;
  overflow: hidden;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.chip--price { background: #ffefe3; color: #f06c28; }
.chip--type { background: #eef5ff; color: #3782e4; }
.chip--plain {
  border-color: var(--color-card-border);
  background: color-mix(in srgb, var(--color-surface-soft) 76%, transparent);
  color: var(--color-ink-mid);
}
:root[data-theme="dark"] .chip--price { background: #3a2418; color: #ffb26f; }
:root[data-theme="dark"] .chip--type { background: #17263c; color: #74a3ff; }

/* 搜索命中高亮 */
mark.hit {
  padding: 0 .16em;
  border-radius: .35em;
  background: #ffd45ab8;
  color: var(--color-ink-strong);
}

/* 空状态 */
.empty {
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 56px 16px;
  border-radius: 18px;
  border: 1px dashed var(--color-card-border);
  color: var(--color-ink-soft);
  text-align: center;
}
.empty strong { color: var(--color-ink-strong); font-size: 1rem; }

/* ---------------------- 9. 分页 ---------------------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.pager button {
  min-width: 36px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--color-control-border);
  background: var(--color-control-bg);
  color: var(--color-ink-mid);
  font-size: .84rem;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s;
}
.pager button:hover:not(:disabled) {
  border-color: var(--accent-line);
  background: var(--color-surface-strong);
  box-shadow: 0 8px 18px var(--accent-soft);
}
.pager button.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pager__ellipsis { color: var(--color-ink-soft); padding: 0 2px; }

/* ---------------------- 10. 抽屉 ---------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.drawer.is-open { display: block; }
.drawer__layer {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.drawer__panel {
  position: relative;
  width: min(84vw, 330px);
  height: 100%;
  padding: 14px 12px 20px;
  overflow-y: auto;
  background: var(--drawer-bg);
  border-right: 1px solid var(--color-control-border);
  box-shadow: 28px 0 70px #0003;
  animation: drawerIn .34s cubic-bezier(.16, 1, .3, 1);
}
@keyframes drawerIn { from { transform: translateX(-100%); } }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line);
}
.drawer__cats { display: grid; gap: 7px; margin-top: 12px; }
.drawer__section-title {
  margin: 16px 0 8px;
  color: color-mix(in srgb, var(--color-ink-soft) 82%, #b8873a 18%);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.drawer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.drawer__link {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 13px;
  border: 1px solid var(--color-card-border);
  background: color-mix(in srgb, var(--color-surface-strong) 92%, transparent);
  box-shadow: 0 6px 14px #121a220d;
  transition: transform .18s, border-color .18s;
}
.drawer__link:hover { transform: translateY(-1px); border-color: var(--accent-line); }
.drawer__link strong { color: var(--color-ink-strong); font-size: .78rem; }
.drawer__link small { color: var(--color-ink-soft); font-size: .68rem; }

.drawer__letter {
  margin-top: 16px;
  padding: 13px 12px 13px 14px;
  border-radius: 18px;
  border: 1px solid var(--color-card-border);
  background:
    radial-gradient(ellipse 180px 90px at 12% 0%, #ffdb9629, transparent 68%),
    linear-gradient(180deg, color-mix(in srgb, var(--color-surface-strong) 94%, #fff7e6 6%), var(--color-surface));
  position: relative;
  overflow: hidden;
}
.drawer__letter::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(#ffcc70b8, #6f97e62e);
}
.drawer__letter p {
  margin: 0 0 6px;
  color: var(--color-ink-mid);
  font-size: .75rem;
  line-height: 1.6;
}
.drawer__letter p:last-child { margin-bottom: 0; color: var(--color-ink-strong); font-weight: 700; }

/* ---------------------- 11. 详情弹层 ---------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal.is-open { display: flex; }
.modal__layer {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--color-overlay) 90%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal__card {
  position: relative;
  width: min(680px, 100%);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  padding: 18px 18px 22px;
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--color-card-border);
  border-bottom: 0;
  background: var(--color-surface-elevated);
  box-shadow: var(--color-card-shadow-strong);
  animation: modalIn .3s cubic-bezier(.16, 1, .3, 1);
}
@keyframes modalIn { from { transform: translateY(18px); opacity: .4; } }

.modal__handle {
  width: 44px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-ink-soft) 34%, transparent);
}
.modal__head { display: flex; align-items: flex-start; gap: 14px; }
.modal__cover {
  width: 132px;
  flex: none;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-card-border);
}
.modal__cover img { width: 100%; height: 100%; object-fit: cover; }
.modal__head h3 {
  margin: 0 0 6px;
  color: var(--color-ink-strong);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}
.modal__head p {
  margin: 0;
  color: color-mix(in srgb, var(--color-ink-mid) 76%, var(--color-ink-soft));
  font-size: .84rem;
  line-height: 1.6;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--color-control-border);
  background: var(--color-control-bg);
  color: var(--color-ink-strong);
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.modal__row {
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--color-card-border);
  background: var(--color-surface);
}
.modal__row span { display: block; color: var(--color-ink-soft); font-size: .68rem; }
.modal__row b { color: var(--color-ink-strong); font-size: .84rem; font-weight: 650; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 700;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #4b76dd, #6e8dff);
  box-shadow: 0 14px 26px #4b76dd38;
}
.btn--primary:hover { transform: translateY(-1px); }
.btn--ghost {
  border: 1px solid var(--color-control-border);
  background: var(--color-control-bg);
  color: var(--color-ink-strong);
}

/* ---------------------- 12. 页脚 ---------------------- */
.site-footer {
  width: min(100% - 36px, var(--layout-width));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--color-line);
  color: var(--color-ink-soft);
  font-size: .76rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.site-footer a { color: var(--color-ink-mid); }
.site-footer a:hover { color: var(--color-ink-strong); }

/* ---------------------- 13. 返回顶部 ---------------------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 40;
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--color-control-border);
  background: var(--color-control-bg);
  color: var(--color-ink-strong);
  box-shadow: var(--color-control-shadow);
}
.to-top.is-visible { display: inline-flex; }

/* ---------------------- 14. 响应式 ---------------------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .index { position: static; }
  .index__list { grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); overflow-x: auto; }
  .brand__slogan { display: none; }
}
@media (max-width: 640px) {
  .site-header__inner { flex-wrap: wrap; padding: 10px 0; min-height: 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hero { padding: 20px 18px; border-radius: 18px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card { grid-template-columns: 92px minmax(0, 1fr); }
  .modal__cover { width: 96px; }
}

/* 无障碍 / 减弱动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
 * 玻璃质感层 —— 对齐 feige177.com 原站效果
 * ------------------------------------------------------------
 * 原站配方（从它线上 CSS 扒出来的原始参数）：
 *   ① 顶栏：backdrop-filter: blur(18px) saturate(1.08)
 *           + 暖橙 radial-gradient(#ffd57a2e) 
 *           + 冷蓝 radial-gradient(#74a8ff1f)
 *   ② 顶栏 ::before：100deg 斜向扫光 #ffeec629 + 暖色光斑 #ffce7033
 *   ③ 顶栏 ::after ：底部 1px 彩色高光线
 *           linear-gradient(90deg,#0000,#ffd8916b,#77a6ff38,#0000)
 *   ④ 面板：半透明白 var(--color-surface) + blur(14px) saturate(1.08)
 *           + inset 0 1px #fffc 顶部高光 + 柔和投影
 *   ⑤ 横幅：暖色渐变 + 悬停时大而柔的投影（0 24px 52px / 0 42px 82px）
 * 关闭方式：data.js 里 CONFIG.glassEffect 改为 false
 * 微调：改下面 --glass-blur / --glass-sat 两个值即可
 * ============================================================ */

:root {
  --glass-blur: 18px;      /* 顶栏模糊强度 */
  --glass-blur-sm: 14px;   /* 面板/浮层模糊强度 */
  --glass-sat: 1.08;       /* 饱和度增强 */
  --glass-sheen: .9;       /* 扫光强度 */
}

:root[data-glass="off"] {
  --glass-blur: 0px;
  --glass-blur-sm: 0px;
  --glass-sat: 1;
  --glass-sheen: 0;
}

/* ---------- ① 顶栏：暖冷双光晕 + 毛玻璃 ---------- */
.site-header {
  isolation: isolate;
  background:
    radial-gradient(ellipse 360px 96px at 18% 0%, #ffd57a2e, transparent 70%),
    radial-gradient(ellipse 520px 110px at 58% -18px, #74a8ff1f, transparent 72%),
    var(--color-header-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border-bottom: 1px solid var(--color-line);
  transition: background .32s, border-color .32s;
}

/* ---------- ② 斜向扫光 ---------- */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--glass-sheen);
  background:
    linear-gradient(100deg, #0000 0%, #ffeec629 18%, #0000 38%),
    radial-gradient(180px 42px at 19%, #ffce7033, #0000 74%);
}

/* ---------- ③ 底部彩色高光线 ---------- */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, #0000, #ffd8916b, #77a6ff38, #0000);
}

:root[data-theme="dark"] .site-header::before { opacity: calc(var(--glass-sheen) * .6); }
:root[data-theme="dark"] .site-header::after {
  background: linear-gradient(90deg, #0000, #ffd89145, #77a6ff2e, #0000);
}

/* 手机端：光晕收紧一点（跟原站一致） */
@media (max-width: 960px) {
  .site-header {
    background:
      radial-gradient(ellipse 210px 72px at 18% 0%, #ffd68033, transparent 72%),
      radial-gradient(ellipse 240px 72px at 86% -14px, #74a8ff1f, transparent 74%),
      var(--color-header-bg);
  }
  .site-header::before {
    background:
      linear-gradient(105deg, #0000 0%, #ffeec621 22%, #0000 48%),
      radial-gradient(128px 34px at 24% 54%, #ffce702e, #0000 76%);
  }
}

/* ---------- ④ 面板：半透明毛玻璃 + 顶部高光 ---------- */
.index,
.card,
.search,
.notice,
.icon-btn,
.tab,
.cat-chip,
.btn,
.chip--plain,
.to-top,
.pager button,
.drawer__panel,
.modal__card {
  -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur-sm)) saturate(var(--glass-sat));
  background: var(--color-surface);
  border-color: var(--color-card-border);
  box-shadow: inset 0 1px #fffc, var(--color-card-shadow);
}

/* 卡片：保持原站那种顶部微渐变 */
.card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-surface) 99%, #fff 1%) 0%,
    color-mix(in srgb, var(--color-surface-soft) 18%, var(--color-surface) 82%) 100%
  );
}

/* 悬停：玻璃“亮起来” */
.card:hover {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-surface) 99%, #fff 1%) 0%,
    color-mix(in srgb, var(--color-surface-soft) 26%, var(--color-surface) 74%) 100%
  );
  border-color: var(--color-control-border);
  box-shadow: 0 1px 0 #ffffffe0 inset, var(--color-card-shadow);
}

.search:focus-within {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--color-control-border));
  box-shadow: 0 0 0 3px var(--accent-soft), var(--color-control-shadow);
}

.tab.is-active,
.cat-chip.is-active,
.pager button.is-active {
  background: color-mix(in srgb, var(--color-surface-strong) 82%, #e9edff 18%);
  border-color: #6677f275;
  box-shadow: inset 0 0 0 1px #6677f214, 0 8px 18px #404f9c1a;
}

/* 抽屉 / 弹层：跟原站一样的模糊档位 */
.drawer__panel {
  background: var(--drawer-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
}
.drawer__layer {
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  backdrop-filter: blur(12px) saturate(1.08);
}
.modal__layer {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ---------- ⑤ 横幅：暖色渐变 + 柔光 + 悬停深投影 ---------- */
.hero {
  isolation: isolate;
  border: 1px solid var(--color-card-border);
  background:
    radial-gradient(ellipse 320px 130px at 10% 0%, #ffffff6b, transparent 72%),
    radial-gradient(ellipse 420px 150px at 92% 110%, #74a8ff24, transparent 74%),
    var(--banner-warm-bg);
  box-shadow: var(--color-card-shadow);
  transition: box-shadow .42s cubic-bezier(.22, 1, .36, 1),
              transform .42s cubic-bezier(.22, 1, .36, 1);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: none;
  background: linear-gradient(112deg, #0000 0%, #ffffff52 22%, #0000 46%);
  opacity: calc(var(--glass-sheen) * .85);
}
.hero:hover {
  box-shadow: 0 24px 52px #0e16201a, 0 42px 82px #0e162024;
  transform: translateY(-2px);
}

/* ---------- 左侧索引：加一层暖色晕染 ---------- */
.index {
  background:
    radial-gradient(ellipse 240px 120px at 100% 0%, #ffd57a1f, transparent 72%),
    var(--color-surface);
}
.index__head {
  -webkit-backdrop-filter: blur(10px) saturate(1.06);
  backdrop-filter: blur(10px) saturate(1.06);
}

/* 公告条：细扫光 */
.notice {
  background:
    linear-gradient(100deg, #0000 0%, #ffeec61f 16%, #0000 34%),
    var(--color-surface);
}

/* 文字在玻璃上保持锐利 */
.card__title, .hero__title, .index__head h2, .cat-chip__text strong {
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
:root[data-theme="dark"] .card__title,
:root[data-theme="dark"] .hero__title,
:root[data-theme="dark"] .index__head h2,
:root[data-theme="dark"] .cat-chip__text strong {
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
}

/* ============================================================
 * 点击反馈优化 —— 去掉系统默认的那个"方框"
 * ------------------------------------------------------------
 * 原因：Android/Chrome 点击可点元素时，默认会画一个半透明高亮方块，
 *       长按还会弹出文字选择框。这里统一关掉，改成"果冻"式点击反馈。
 * ============================================================ */

/* ① 全局关闭「点击高亮方块」（原站 feige177.com 也是这么做的） */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ② 关闭默认焦点外框；并禁止长按选中文字（避免出现蓝色选择框） */
a,
button,
input,
select,
textarea,
[role="button"],
.card,
.tab,
.cat-chip,
.icon-btn,
.btn,
.chip,
.pager button,
.brand,
.drawer__link,
.drawer__support-card {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* 输入框要能正常选中文字 */
.search input,
.modal__card p,
.modal__row b,
.drawer__letter p {
  -webkit-user-select: text;
  user-select: text;
}

/* ③ 键盘导航（Tab 键）时仍保留无障碍提示 —— 用柔和光晕，而不是硬方框 */
.card:focus-visible,
.tab:focus-visible,
.cat-chip:focus-visible,
.icon-btn:focus-visible,
.btn:focus-visible,
.pager button:focus-visible,
.brand:focus-visible,
.drawer__link:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 36%, transparent),
    0 10px 26px color-mix(in srgb, var(--accent) 18%, transparent),
    var(--color-card-shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--color-card-border));
}

/* ④ 用「果冻缩放」替代原来的方框反馈 */
.card:active {
  transform: scale(.984);
  transition: transform .08s ease;
}
.tab:active,
.cat-chip:active,
.icon-btn:active,
.pager button:active,
.btn:active,
.drawer__link:active {
  transform: scale(.96);
  transition: transform .08s ease;
}

/* ⑤ 图片不被长按弹出"保存图片"菜单、也不出现拖拽方框 */
.card__thumb img,
.modal__cover img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  pointer-events: none;
}

/* ⑥ 触摸设备上不做悬停位移（避免"点一下弹起来"的怪手感） */
@media (hover: none) {
  .card:hover,
  .hero:hover {
    transform: none;
  }
}

/* ============================================================
 * 修正：面板不再各自做 backdrop-filter
 * ------------------------------------------------------------
 * 原因：元素带 backdrop-filter 时，一旦被重建（innerHTML 替换）
 *       会先按自己的底色绘制、再等背景合成 —— 于是"闪一下白"。
 * 对齐原站 feige177.com 的真实做法：
 *       ★ 只有「顶栏」和「浮层」用模糊
 *       ★ 卡片 / 按钮 / 面板只用半透明底 + 顶部高光 + 柔和投影
 * 这样既消除白闪，手机性能也更好。
 * ============================================================ */

.index,
.index__head,
.card,
.search,
.notice,
.icon-btn,
.tab,
.cat-chip,
.btn,
.chip--plain,
.to-top,
.pager button,
.drawer__panel,
.drawer__link,
.modal__card {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* 保留：顶栏玻璃（原站唯一的面板级模糊） */
.site-header {
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
}

/* 保留：浮层遮罩的模糊（原站 12~14px） */
.drawer__layer {
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  backdrop-filter: blur(12px) saturate(1.08);
}
.modal__layer {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* 面板仍保持"玻璃观感"：半透明 + 顶部高光 + 柔和投影 */
.index,
.card,
.search,
.notice,
.icon-btn,
.tab,
.cat-chip,
.btn,
.chip--plain,
.pager button,
.to-top {
  box-shadow: inset 0 1px #fffc, var(--color-card-shadow);
}

/* 重绘时避免任何白色闪动 */
#grid,
#indexList,
#drawerCats {
  background-color: transparent;
}
.card,
.cat-chip {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ============================================================
 * 下拉刷新防白闪
 * ------------------------------------------------------------
 * 禁止页面级 overscroll（也就是"下拉刷新"手势），
 * 这样下拉不会再触发整页重新加载，自然也不会白屏。
 * 想恢复浏览器的下拉刷新：删掉下面这一行即可。
 * ============================================================ */
html,
body {
  overscroll-behavior-y: contain;
}

/* ============================================================
 * 滚动稳定性修正 —— 消除下滑/回弹时的闪烁
 * ------------------------------------------------------------
 * 实测原因：
 *   ① 之前为"防重建白闪"给每张卡片加了 GPU 层提升（translateZ(0)），
 *      卡片一多会造成图层抖动 → 滚动时反而闪。现在卡片不再重建，这层
 *      提升已无必要，去掉。
 *   ② 顶栏带 backdrop-filter 又是 sticky，滚动时容易和内容抢合成层 →
 *      给它独立的稳定图层。
 *   ③ 公告跑马灯每帧动 → 固定在自身图层，避免全页重绘。
 *   ④ 彻底禁止页面级 overscroll（含横向回弹）→ 下拉不再触发刷新。
 * ============================================================ */

/* ① 移除卡片的 GPU 层提升（改为普通渲染，滚动更稳） */
.card,
.cat-chip {
  transform: none;
  -webkit-transform: none;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

/* ② 顶栏：独立合成层，滚动时不抖不闪 */
.site-header {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* ③ 跑马灯固定自身图层 */
.notice__track {
  will-change: transform;
}

/* ④ 彻底禁止页面级 overscroll（上下 + 左右） */
html,
body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

/* ⑤ 回弹区域永远铺满主题底色，不让白边露出来 */
html {
  background: #f6f3ee;
}
html[data-theme="dark"] {
  background: #0d141d;
}

/* ⑥ 减弱动画在低端机上的开销 */
@media (prefers-reduced-motion: reduce) {
  .notice__track { animation: none; }
}

/* ============================================================
 * 顶栏改版：品牌「我的工具箱」居中 + 字号放大
 * ============================================================ */
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* 左右等宽 → 品牌真正居中 */
  align-items: center;
  gap: 12px;
}
#drawerToggle {
  justify-self: start;
}
.brand {
  justify-self: center;
  margin-right: 0;          /* 取消原来的 margin-right:auto */
  gap: 10px;
}
.brand__mark {
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  border-radius: 12px;
}
.brand__name {
  font-size: 1.22rem;       /* 原来 .98rem → 放大 */
  font-weight: 700;
  letter-spacing: -.015em;
}
.brand__slogan {
  font-size: .76rem;        /* 原来 .7rem */
}
.search {
  justify-self: end;
  width: 100%;
  max-width: 380px;
}

/* 手机端：品牌居中在第一行，搜索框换到第二行整行 */
@media (max-width: 640px) {
  .site-header__inner {
    row-gap: 9px;
    padding: 10px 0;
    min-height: 0;
  }
  .search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }
  .brand__name { font-size: 1.18rem; }
  .brand__mark { width: 40px; height: 40px; }
}

/* ============================================================
 * 消除「刷新时排版先挤在一起再弹开」
 * ------------------------------------------------------------
 * 原因：① 浏览器对移动端的"字体自动放大"会在内容到位后重算字号，导致整页重排
 *       ② 滚动条出现/消失会让视口宽度变化 → 内容横向被"挤"一下再弹开
 *       ③ 卡片由 JS 渲染，内容高度从 0 突增 → 页面纵向"拉开"
 * ============================================================ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;          /* 关掉字体自动放大 → 不再重排 */
  overflow-y: scroll;              /* 始终预留纵向滚动条 */
  scrollbar-gutter: stable;        /* 预留滚动条空间 → 视口宽度恒定 */
}
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 卡片区先预留高度，避免内容从 0 突然撑开（按两行卡片估） */
#grid {
  min-height: 320px;
}
@media (max-width: 640px) {
  #grid { min-height: 300px; }
}

/* 顶栏自身不再做位移变换，避免刷新时 sticky 元素跳动 */
.site-header {
  transform: none;
  -webkit-transform: none;
  will-change: auto;
}

/* ============================================================
 * 顶栏布局 v2：品牌名居中、「工」标移到右侧
 * ------------------------------------------------------------
 * 第一行： ☰       我的工具箱       工
 * 第二行： [ 搜索框（整行） ]
 * 桌面端与手机端布局一致，对齐更稳。
 * ============================================================ */
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 0;
  min-height: 0;
}
#drawerToggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
.brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin-right: 0;
}
.brand__mark--right {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.search {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
  width: 100%;
  max-width: none;
}

/* 品牌名单独居中时，去掉原来给"标+名"留的间距 */
.brand__copy { text-align: center; justify-items: center; }

/* 顶栏变高了，左侧索引的吸顶位置跟着下移 */
.index { top: 126px; }
.platform-tabs-wrap { --platform-sticky-top: 126px; }

@media (max-width: 640px) {
  .index { top: 120px; }
}

/* ============================================================
 * 「工」标已换成 QQ 头像入口
 * ------------------------------------------------------------
 * 顶栏右侧 + 抽屉左上角都变成你的 QQ 头像，
 * 点一下直接打开「加我 QQ」聊天窗口。
 * 想换回来：把 index.html 里 class="brand-mark-qq" 那块改回文字即可。
 * ============================================================ */
.brand-mark-qq {
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(135deg, #12b7f5, #0a8fd6);   /* QQ 蓝 */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .4),
    0 8px 18px rgba(18, 183, 245, .32);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s;
}
.brand-mark-qq > * { grid-area: 1 / 1; }
.brand-mark-qq i {
  font-style: normal;
  font-weight: 800;
  color: #fff;
  font-size: .95rem;
  line-height: 1;
}
.brand-mark-qq img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
a.brand-mark-qq:hover {
  transform: translateY(-1px) scale(1.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .5),
    0 12px 24px rgba(18, 183, 245, .45);
}
a.brand-mark-qq:active { transform: scale(.93); }

/* ============================================================
 * 横幅大标题改成了可点击的推广位
 * ============================================================ */
.hero__title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s, opacity .2s;
}
.hero__title-link:hover,
.hero__title-link:focus-visible {
  color: var(--color-accent-strong);
  border-bottom-color: currentColor;
}
.hero__title-link:active { opacity: .72; }

/* 页脚 QQ 联系方式 */
#footerQQ {
  color: var(--color-ink-mid);
  font-weight: 600;
}
#footerQQ:hover { color: #12b7f5; }
