/* ============================================================================
   UI/UX Pro Max · 风格图鉴
   1. 基础令牌与重置
   2. 站点骨架（页头 / 页脚 / 版心）
   3. 首页
   4. 详情页
   5. 指南页 / 404
   6. 预览组件（.pv）与风格特效（.fx-*）
   7. 响应式与动效偏好
   ========================================================================== */

/* 1 · 基础 ---------------------------------------------------------------- */

:root {
  --paper: #f6f5f1;
  --paper-2: #efece4;
  --ink: #14161a;
  --ink-2: #34383f;
  --muted: #6b7280;
  --line: #e3e0d6;
  --line-2: #d3cfc3;
  --accent: #e4501e;
  --accent-ink: #fff;
  --green: #14713c;
  --amber: #8a5a00;
  --red: #a33a21;

  --f-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-grotesk: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-serif: Georgia, "Iowan Old Style", "Times New Roman", "Songti SC", SimSun, serif;
  --f-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Courier New", monospace;
  --f-rounded: "Trebuchet MS", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-condensed: "Arial Narrow", "Helvetica Neue", Impact, "PingFang SC", sans-serif;
  --f-pixel: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-sketch: "Segoe Print", "Bradley Hand", "Comic Sans MS", "Kaiti SC", STKaiti, cursive;

  --head-h: 64px;
  --wrap: 1240px;
  --r: 12px;
  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
pre {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

code,
pre {
  font-family: var(--f-mono);
}

em {
  font-style: normal;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 2 · 站点骨架 ------------------------------------------------------------ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.head-in {
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-head.is-scrolled {
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 80%, transparent),
    0 12px 30px -24px rgba(20, 22, 26, 0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 24px;
  height: 24px;
  padding: 2px;
  background: var(--ink);
  border-radius: 6px;
}

.mark i {
  display: block;
  border-radius: 1px;
}
.mark i:nth-child(1) { background: var(--accent); }
.mark i:nth-child(2) { background: var(--paper); }
.mark i:nth-child(3) { background: #8a8f98; }
.mark i:nth-child(4) { background: var(--accent); }

.brand-t {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
}

.brand-t em {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
}

.nav a {
  padding: 7px 11px;
  border-radius: 7px;
  color: var(--ink-2);
  transition: background 0.18s, color 0.18s;
}

.nav a:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}

.nav-gh {
  margin-left: 8px;
  border: 1px solid var(--line-2);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.nav-gh span {
  margin-left: 4px;
  color: var(--muted);
}

/* 姊妹站入口：常驻高亮，避免「找不到设计手册」 */
.nav a.nav-x {
  margin-left: 10px;
  color: var(--accent);
  font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.nav a.nav-x:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.nav a.nav-x span {
  margin-left: 3px;
  color: var(--accent);
}
.nx-short {
  display: none;
}

/* 首页：指向设计手册的横幅 */
.xbar-w {
  margin-top: 8px;
  margin-bottom: 46px;
}
.xbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "k t go";
  gap: 2px 20px;
  align-items: center;
  padding: 18px 20px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  color: var(--paper);
  transition: background 0.18s, border-color 0.18s;
}
.xbar:hover {
  background: #000;
  border-color: #000;
  text-decoration: none;
}
.xbar-k {
  grid-area: k;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  font: 500 11px/1.5 var(--f-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--accent);
}
.xbar-t {
  grid-area: t;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.xbar-go {
  grid-area: go;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: gap 0.18s;
}
.xbar:hover .xbar-go {
  gap: 10px;
}

.site-foot {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper-2) 60%, transparent));
  padding: 40px 0 24px;
}

.foot-in {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.foot-brand .mark {
  width: 18px;
  height: 18px;
}

.foot-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.foot-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  flex-wrap: wrap;
}

.foot-links a {
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
}

.foot-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.foot-fine {
  padding-top: 18px;
  font-size: 11.5px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  max-width: 900px;
}

/* 3 · 首页 ---------------------------------------------------------------- */

.hero {
  padding-top: 76px;
  padding-bottom: 44px;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(42px, 7.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 720;
  max-width: 15em;
}

.hero h1 em {
  position: relative;
  color: var(--accent);
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.02em;
  bottom: 0.06em;
  height: 0.1em;
  background: var(--accent);
  opacity: 0.22;
  z-index: -1;
}

.lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(16px, 1.7vw, 18.5px);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-act {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 550;
  border: 1px solid var(--ink);
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(20, 22, 26, 0.55);
}

.btn span {
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  box-shadow: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats > div {
  padding: 22px 22px 22px 0;
  border-right: 1px solid var(--line);
}
.stats > div:last-child {
  border-right: 0;
}
.stats > div + div {
  padding-left: 22px;
}

.stats dt {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats dd {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-top: 2px;
}

.sec {
  padding-top: 56px;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.sec-head h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  letter-spacing: -0.025em;
  font-weight: 680;
}

.sec-head p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 46em;
  line-height: 1.7;
  flex: 1 1 320px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.type-card {
  text-align: left;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s;
}

.type-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 12px 26px -20px rgba(0, 0, 0, 0.45);
}

.type-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.type-name {
  font-size: 14.5px;
  font-weight: 600;
}

.type-n {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
}

.type-bar {
  display: flex;
  height: 5px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--paper-2);
}

.type-bar i {
  flex: 1;
}

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

/* 筛选 */

.filters {
  position: sticky;
  top: var(--head-h);
  z-index: 40;
  margin: 0 -28px 22px;
  padding: 12px 28px 10px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: background 0.16s, color 0.16s;
}

.tab span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  opacity: 0.55;
  margin-left: 3px;
}

.tab:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.tab.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.search {
  position: relative;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
}

.search svg {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 33px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.search input::placeholder {
  color: #9aa0a8;
}

.search input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent);
}

.select select {
  height: 38px;
  padding: 0 30px 0 11px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.4'/%3E%3C/svg%3E")
    no-repeat right 11px center;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-size: 13px;
  appearance: none;
  cursor: pointer;
}

.count {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 9px;
}

/* 卡片网格 */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #c9c4b6;
  box-shadow: 0 22px 44px -30px rgba(20, 22, 26, 0.5);
}

.card-a {
  display: block;
  height: 100%;
}

.card-thumb {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.card-thumb .pv {
  transition: transform 0.6s var(--ease);
}

.card:hover .card-thumb .pv {
  transform: scale(1.035);
}

.card-body {
  padding: 13px 15px 15px;
}

.card-tit {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tit h3 {
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.015em;
}

.card-tit span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.card-tag {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.dots {
  display: flex;
  gap: 4px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.b-active {
  background: #e6f4ea;
  color: var(--green);
}
.b-supplemental {
  background: #eceef2;
  color: #4a5566;
}
.b-deprecated {
  background: #fbeae4;
  color: var(--red);
}

.empty {
  padding: 70px 0;
  text-align: center;
  color: var(--muted);
}

.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 20px;
}

.note-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px;
}

.note-card h2 {
  font-size: 17px;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.note-card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.note-card p + p {
  margin-top: 10px;
}

.note-card code {
  font-size: 12px;
  background: var(--paper-2);
  padding: 1px 5px;
  border-radius: 4px;
}

.note-card a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

/* 4 · 详情页 -------------------------------------------------------------- */

.detail {
  padding-top: 18px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 0 10px;
  flex-wrap: wrap;
}

.crumb a:hover {
  color: var(--accent);
}

.crumb span:last-child {
  color: var(--ink-2);
}

.d-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 44px;
  padding: 22px 0 34px;
  border-bottom: 1px solid var(--line);
}

.d-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-2);
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.chip-type {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.d-head h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 720;
}

.d-en {
  display: block;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.d-head .lede {
  margin-top: 18px;
  font-size: 15.5px;
  max-width: 40em;
}

.d-tag {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
}

.d-tag span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 8px;
}

.d-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.d-facts span {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
}

.d-facts em {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.d-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.pal-strip {
  display: flex;
  height: 54px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.pal-strip i {
  flex: 1;
}

.id-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 9px;
}

.id-label {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.id-box code {
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.copy {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--ink-2);
  background: var(--paper);
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}

.copy:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.sw.done {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.copy.done {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.id-hint {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}

.id-hint code {
  font-size: 10.5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
}

.d-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 60px;
  align-items: start;
}

.block {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.block:last-of-type {
  border-bottom: 0;
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.block-head h2 {
  font-size: clamp(19px, 2vw, 22px);
  letter-spacing: -0.02em;
  font-weight: 680;
}

.bhint {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

a.bhint:hover {
  color: var(--accent);
}

.seg {
  display: inline-flex;
  padding: 2px;
  background: var(--paper-2);
  border-radius: 7px;
  border: 1px solid var(--line);
}

.seg button {
  font-size: 11.5px;
  padding: 4px 11px;
  border-radius: 5px;
  color: var(--muted);
  transition: background 0.16s, color 0.16s;
}

.seg button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.frame {
  border: 1px solid var(--line-2);
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 60px -46px rgba(20, 22, 26, 0.65);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  background: #faf9f5;
  border-bottom: 1px solid var(--line);
}

.frame-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8d4c8;
}

.frame-bar i:nth-child(1) {
  background: #e4a08c;
}
.frame-bar i:nth-child(2) {
  background: #e3c98c;
}
.frame-bar i:nth-child(3) {
  background: #a8c4a2;
}

.frame-bar span {
  margin-left: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.frame-body {
  line-height: 0;
}

.sub {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 26px 0 9px;
  font-weight: 500;
}

.prose p,
.body-text {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 46em;
}

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

.cap {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60em;
}

.cap b {
  color: var(--ink-2);
  font-weight: 600;
}

.tok-table {
  border-top: 1px solid var(--line);
  max-width: 620px;
}

.tok {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.tok code {
  font-size: 11.5px;
  color: var(--accent);
  word-break: break-word;
}

.tok span {
  color: var(--ink-2);
  word-break: break-word;
}

.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 10px;
}

.sw {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}

.sw:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
}

.sw-c {
  display: block;
  height: 54px;
  border-bottom: 1px solid var(--line);
}

.sw-t {
  display: block;
  padding: 8px 9px 9px;
}

.sw-t b {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
}

.sw-t i {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

.pal-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 8px;
}

.use-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.use {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px 20px;
  background: #fff;
}

.use.good {
  border-top: 3px solid #2f8f5b;
}

.use.bad {
  border-top: 3px solid #c05633;
}

.use h3 {
  font-size: 12px;
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.use li {
  position: relative;
  padding-left: 15px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.use li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}

.mcell {
  background: #fff;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mlabel {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mcell strong {
  font-size: 15px;
  font-weight: 620;
}

.mhint {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  word-break: break-word;
}

.check {
  display: grid;
  gap: 7px;
  max-width: 620px;
}

.check li {
  position: relative;
  padding-left: 25px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 3px;
}

.mono-text {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.8;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  max-width: 720px;
}

.prompt {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.75;
  background: #f2f0e9;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 16px;
  color: var(--ink-2);
  max-width: 780px;
}

.rel-note {
  margin-top: 18px;
  padding: 12px 15px;
  border-left: 2px solid var(--line-2);
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
  border-radius: 0 7px 7px 0;
}

.rel-note a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.rel-note.warn {
  border-left-color: #c05633;
}

.rel-note code {
  font-size: 11px;
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 34px;
}

.pager a {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.pager a:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.pager span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.pager strong {
  font-size: 14px;
  font-weight: 620;
}

.pager-next {
  text-align: right;
}

.toc {
  position: sticky;
  top: calc(var(--head-h) + 26px);
  padding-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.toc-t {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
}

.toc a {
  font-size: 12.5px;
  color: var(--muted);
  padding: 4px 0 4px 11px;
  border-left: 1px solid var(--line);
  transition: color 0.16s, border-color 0.16s;
}

.toc a:hover,
.toc a.is-active {
  color: var(--ink);
  border-left-color: var(--accent);
}

.related {
  padding-bottom: 10px;
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rel {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s;
}

.rel:hover {
  transform: translateY(-2px);
  border-color: #c9c4b6;
  box-shadow: 0 16px 30px -24px rgba(0, 0, 0, 0.5);
}

.rel-thumb {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.rel-body {
  display: block;
  padding: 10px 12px 12px;
}

.rel-body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 620;
}

.rel-body em {
  display: block;
  font-family: var(--f-mono);
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 1px;
}

.rel-body span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 5 · 指南 / 404 ---------------------------------------------------------- */

.guide {
  padding-top: 64px;
  max-width: 900px;
}

.guide h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.g-sec {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.g-sec:last-of-type {
  border-bottom: 0;
}

.g-sec h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.g-sec p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 44em;
}

.g-sec p + p {
  margin-top: 10px;
}

.g-sec em {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 0 3px;
  border-radius: 3px;
}

.g-sec code {
  font-size: 12px;
  background: var(--paper-2);
  border-radius: 4px;
  padding: 1px 5px;
}

.g-sec .prompt {
  margin-top: 14px;
}

.g-sec a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.g-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.g-pair .pv {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.g-dl {
  margin-top: 8px;
}

.g-dl dt {
  font-size: 13.5px;
  font-weight: 620;
  margin-top: 14px;
}

.g-dl dd {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-top: 2px;
  max-width: 44em;
}

.g-back {
  padding: 34px 0 10px;
}

.nf {
  padding: 100px 28px 60px;
  max-width: 720px;
}

.nf h1 {
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.nf .btn {
  margin-top: 8px;
}

/* 6 · 预览组件 ------------------------------------------------------------ */

.pv {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.45;
  --sh-light: color-mix(in srgb, var(--bg) 58%, #fff);
  --sh-dark: color-mix(in srgb, var(--bg) 74%, #000);
  --elev: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 26px -16px rgba(16, 24, 40, 0.28);
  --blur: blur(0px);
}

.pv[data-mode="dark"] {
  --elev: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px -18px rgba(0, 0, 0, 0.8);
}

.pv--hero {
  aspect-ratio: 16 / 9;
}

.pv--spec {
  aspect-ratio: auto;
  padding: clamp(14px, 2.4vw, 24px);
}

.pv-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pv-bg::before,
.pv-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pv-shell {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: clamp(13px, 4.4cqw, 34px);
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 2.8cqw, 20px);
}

.pv-top {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2cqw, 14px);
}

.pv-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 1.2cqw, 8px);
  font-family: var(--font-head);
  font-weight: var(--fw-head);
  font-size: clamp(8px, 2.5cqw, 12px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.pv-logo {
  width: clamp(8px, 2.6cqw, 13px);
  height: clamp(8px, 2.6cqw, 13px);
  border-radius: calc(var(--radius) * 0.3);
  background: var(--accent);
  display: block;
}

.pv-links {
  margin-left: auto;
  display: flex;
  gap: clamp(7px, 2.4cqw, 16px);
  font-size: clamp(7.5px, 2.2cqw, 11px);
  opacity: 0.62;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}

.pv-links span {
  white-space: nowrap;
}

.pv-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: clamp(3px, 1.1cqw, 6px) clamp(7px, 2.2cqw, 12px);
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--accent-fg);
  font-size: clamp(7px, 2.1cqw, 10px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.pv-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.92fr);
  gap: clamp(10px, 3.2cqw, 26px);
  align-items: center;
}

.pv-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 1.8cqw, 12px);
  min-width: 0;
}

.pv-kicker {
  font-family: var(--f-mono);
  font-size: clamp(7px, 2cqw, 10px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 58%, var(--text));
  line-height: 1.2;
}

.pv-title {
  font-family: var(--font-head);
  font-weight: var(--fw-head);
  font-size: clamp(17px, 6.2cqw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.pv-desc {
  font-size: clamp(9px, 2.7cqw, 14px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 26em;
}

.pv-actions {
  display: flex;
  gap: clamp(5px, 1.6cqw, 10px);
  flex-wrap: wrap;
  margin-top: clamp(2px, 0.8cqw, 6px);
}

.pv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: clamp(5px, 1.9cqw, 11px) clamp(9px, 3cqw, 19px);
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--accent-fg);
  font-size: clamp(8px, 2.5cqw, 12px);
  font-weight: 600;
  line-height: 1.25;
  border: var(--border-w) solid transparent;
  box-shadow: var(--elev);
  white-space: nowrap;
  position: relative;
}

.pv-btn--ghost {
  background: transparent;
  color: var(--text);
  border: var(--border-w) solid var(--border);
  box-shadow: none;
}

.pv-chips {
  display: flex;
  gap: clamp(4px, 1.3cqw, 8px);
  flex-wrap: wrap;
}

.pv-chips > span {
  padding: clamp(2px, 0.9cqw, 5px) clamp(5px, 1.8cqw, 10px);
  border-radius: calc(var(--radius-btn) * 0.8);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  font-size: clamp(7px, 2cqw, 10px);
  line-height: 1.4;
  white-space: nowrap;
}

.pv-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: clamp(9px, 2.8cqw, 18px);
  box-shadow: var(--elev);
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 1.4cqw, 9px);
  min-width: 0;
  position: relative;
}

.pv-cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: clamp(7px, 2cqw, 10px);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.pv-dot {
  width: clamp(5px, 1.5cqw, 8px);
  height: clamp(5px, 1.5cqw, 8px);
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 22%, transparent);
  display: block;
}

.pv-metric {
  font-family: var(--font-head);
  font-weight: var(--fw-head);
  font-size: clamp(17px, 5.2cqw, 30px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.pv-metric small {
  font-size: 0.52em;
  font-weight: 500;
  opacity: 0.6;
  margin-left: 0.06em;
}

.pv-bars {
  display: flex;
  align-items: flex-end;
  gap: clamp(2px, 0.9cqw, 6px);
  height: clamp(24px, 8.4cqw, 50px);
  margin-top: clamp(1px, 0.6cqw, 4px);
}

.pv-bars i {
  flex: 1;
  height: var(--h);
  min-height: 10%;
  border-radius: calc(var(--radius) * 0.16);
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--surface)));
}

.pv-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 1cqw, 6px);
  padding-top: clamp(3px, 1cqw, 6px);
  border-top: 1px solid var(--border-soft, var(--border));
}

.pv-rows div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: clamp(7px, 1.9cqw, 10px);
  color: var(--muted);
}

.pv-rows b {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: clamp(6px, 1.8cqw, 12px);
  border-top: 1px solid var(--border-soft, var(--border));
  margin-top: auto;
}

.pv-swatches {
  display: flex;
  gap: clamp(3px, 1.1cqw, 6px);
}

.pv-swatches i {
  width: clamp(9px, 2.6cqw, 15px);
  height: clamp(9px, 2.6cqw, 15px);
  border-radius: calc(var(--radius) * 0.28);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent);
  display: block;
}

.pv-type {
  font-family: var(--f-mono);
  font-size: clamp(6.5px, 1.8cqw, 9.5px);
  letter-spacing: 0.03em;
  color: var(--muted);
  opacity: 0.8;
  white-space: nowrap;
}

/* 紧凑变体（卡片缩略图） */

.pv--mini .pv-links,
.pv--mini .pv-card {
  display: none;
}

.pv--mini .pv-body {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.pv--mini .pv-title {
  font-size: clamp(16px, 7cqw, 30px);
}

.pv--mini .pv-desc {
  font-size: clamp(8.5px, 2.7cqw, 12px);
  max-width: 22em;
}

.pv--mini .pv-shell {
  gap: clamp(7px, 2.6cqw, 13px);
}

.pv--mini .pv-foot {
  padding-top: clamp(5px, 1.6cqw, 10px);
}

/* 组件样本 */

.pv--spec .spec {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.spec-i {
  background: var(--surface);
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 102px;
  justify-content: space-between;
}

.spec-l {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pv--spec .pv-btn {
  font-size: 11.5px;
  padding: 7px 13px;
  box-shadow: none;
}

.pv--spec .pv-chips > span {
  font-size: 10.5px;
  padding: 3px 8px;
}

.pv-input {
  display: block;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--muted);
  font-size: 11.5px;
}

.pv-progress {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: var(--border-soft, var(--border));
  overflow: hidden;
}

.pv-progress i {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
}

.pv-switch {
  display: inline-flex;
  align-items: center;
  width: 38px;
  height: 22px;
  border-radius: 99px;
  background: var(--accent);
  padding: 2px;
  justify-content: flex-end;
}

.pv-switch i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-fg);
  display: block;
}

.pv-num {
  font-family: var(--font-head);
  font-weight: var(--fw-head);
  font-size: 19px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* 特效：容器与材质 ------------------------------------------------------- */

/* 极细参考线 / 瑞士网格 */
.fx-rules .pv-bg {
  background-image: repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 12.5%);
  opacity: 0.55;
}
.fx-rules .pv-kicker {
  padding-top: clamp(4px, 1.4cqw, 9px);
  border-top: 2px solid var(--text);
  align-self: flex-start;
}

.fx-minimal .pv-card,
.fx-minimal .pv-btn {
  box-shadow: none;
}
.fx-minimal .pv-card {
  border-color: var(--border-soft, var(--border));
}
.fx-minimal .pv-title {
  letter-spacing: -0.035em;
}

/* 新拟态 */
.fx-neu .pv-card {
  background: var(--bg);
  border-color: transparent;
  box-shadow: clamp(4px, 1.5cqw, 9px) clamp(4px, 1.5cqw, 9px) clamp(9px, 3cqw, 19px) var(--sh-dark),
    clamp(-9px, -1.5cqw, -4px) clamp(-9px, -1.5cqw, -4px) clamp(10px, 3.2cqw, 21px) var(--sh-light);
}
.fx-neu .pv-btn {
  background: var(--bg);
  color: var(--accent);
  box-shadow: clamp(2px, 1.1cqw, 6px) clamp(2px, 1.1cqw, 6px) clamp(5px, 1.8cqw, 11px) var(--sh-dark),
    clamp(-6px, -1.1cqw, -2px) clamp(-6px, -1.1cqw, -2px) clamp(6px, 2cqw, 13px) var(--sh-light);
}
.fx-neu .pv-btn--ghost {
  color: var(--muted);
  box-shadow: inset 2px 2px 5px var(--sh-dark), inset -2px -2px 5px var(--sh-light);
  border-color: transparent;
}
.fx-neu .pv-pill {
  background: var(--bg);
  color: var(--accent);
  box-shadow: 2px 2px 6px var(--sh-dark), -2px -2px 6px var(--sh-light);
}

/* 黏土 */
.fx-clay .pv-card {
  border-width: 3px;
  border-color: color-mix(in srgb, var(--surface) 70%, #fff);
  box-shadow: inset 0 -4px 10px rgba(255, 255, 255, 0.55), inset 0 3px 8px rgba(0, 0, 0, 0.04),
    0 16px 30px -14px rgba(60, 40, 90, 0.28);
}
.fx-clay .pv-btn {
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.16), 0 7px 15px -5px rgba(0, 0, 0, 0.28);
}
.fx-clay .pv-title {
  letter-spacing: -0.005em;
}

/* 柔和投影 */
.fx-soft .pv-card {
  border-color: var(--border-soft, var(--border));
  box-shadow: 0 12px 32px -16px rgba(20, 30, 50, 0.22);
}

/* 层叠维度 */
.fx-depth .pv-card {
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06), 0 14px 26px -10px rgba(16, 24, 40, 0.16),
    0 38px 54px -30px rgba(16, 24, 40, 0.22);
}
.fx-depth .pv-btn {
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.08), 0 10px 20px -10px rgba(16, 24, 40, 0.3);
}
.fx-depth .pv-bg {
  background: radial-gradient(120% 80% at 82% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 60%);
}

/* 扁平 */
.fx-flat .pv-card,
.fx-flat .pv-btn,
.fx-flat .pv-pill {
  box-shadow: none;
}
.fx-flat .pv-btn--ghost {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: transparent;
  color: var(--text);
}

/* 粗野 / 硬阴影 */
.fx-brutal .pv-card,
.fx-brutal .pv-btn {
  box-shadow: clamp(4px, 1.7cqw, 8px) clamp(4px, 1.7cqw, 8px) 0 var(--text);
  border-color: var(--border);
  border-style: solid;
}
.fx-brutal .pv-btn {
  font-weight: 700;
}
.fx-brutal .pv-btn--ghost {
  background: var(--surface);
  color: var(--text);
}
.fx-brutal .pv-pill {
  border: 2px solid var(--border);
  box-shadow: 3px 3px 0 var(--text);
}
.fx-brutal .pv-bars i {
  border-radius: 0;
  border: 2px solid var(--text);
  background: var(--accent-2);
}

/* 色块 */
.fx-blocks .pv-card {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: transparent;
  border-radius: 2px;
}
.fx-blocks .pv-cardhead,
.fx-blocks .pv-rows div,
.fx-blocks .pv-rows b {
  color: var(--accent-fg);
  opacity: 0.85;
}
.fx-blocks .pv-rows {
  border-top-color: color-mix(in srgb, var(--accent-fg) 30%, transparent);
}
.fx-blocks .pv-bars i {
  background: var(--accent-fg);
  opacity: 0.75;
}
.fx-blocks .pv-btn--ghost {
  border-color: var(--text);
}

/* 便当 */
.fx-bento .pv-card {
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
}
.fx-bento .pv-pill {
  border-radius: 999px;
}
.fx-bento .pv-bars i {
  border-radius: 6px;
}

/* 热力 */
.fx-heat .pv-bars i {
  background: linear-gradient(180deg, var(--accent) 0%, #f5c542 55%, var(--accent-2) 100%);
}
.fx-heat .pv-bars i:nth-child(2n) {
  filter: saturate(1.3);
}

/* 高密度 */
.fx-dense .pv-shell {
  padding: clamp(10px, 3cqw, 22px);
  gap: clamp(6px, 1.7cqw, 13px);
}
.fx-dense .pv-title {
  font-size: clamp(15px, 4.8cqw, 30px);
}
.fx-dense .pv-desc {
  font-size: clamp(8px, 2.2cqw, 11.5px);
}
.fx-dense .pv-card {
  padding: clamp(7px, 2.2cqw, 14px);
  border-radius: calc(var(--radius) * 0.8);
}
.fx-dense .pv-bars {
  height: clamp(18px, 6cqw, 36px);
}
.fx-dense .pv-btn {
  padding: clamp(4px, 1.3cqw, 8px) clamp(8px, 2.2cqw, 14px);
  font-size: clamp(7.5px, 2.2cqw, 11px);
}

/* 实时脉冲 */
.fx-pulse .pv-dot {
  animation: pv-pulse 1.9s ease-in-out infinite;
}
@keyframes pv-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* 预测虚线 */
.fx-dashline .pv-bars i {
  background: repeating-linear-gradient(45deg, var(--accent) 0 3px, transparent 3px 6px);
  opacity: 0.75;
}

/* 漏斗 */
.fx-funnel .pv-bars i {
  background: var(--accent);
  border-radius: 1px;
}
.fx-funnel .pv-bars i:nth-child(1) { opacity: 1; }
.fx-funnel .pv-bars i:nth-child(2) { opacity: 0.88; }
.fx-funnel .pv-bars i:nth-child(3) { opacity: 0.76; }
.fx-funnel .pv-bars i:nth-child(4) { opacity: 0.64; }
.fx-funnel .pv-bars i:nth-child(5) { opacity: 0.52; }
.fx-funnel .pv-bars i:nth-child(6) { opacity: 0.42; }
.fx-funnel .pv-bars i:nth-child(7) { opacity: 0.32; }

/* 数据：等宽数字 */
.fx-data .pv-metric,
.fx-data .pv-rows b,
.fx-data .pv-num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* 霓虹发光 */
.fx-glow .pv-title {
  text-shadow: 0 0 clamp(6px, 1.8cqw, 16px) color-mix(in srgb, var(--accent) 55%, transparent);
}
.fx-glow .pv-btn,
.fx-glow .pv-logo {
  box-shadow: 0 0 clamp(8px, 2.2cqw, 20px) color-mix(in srgb, var(--accent) 50%, transparent);
}
.fx-glow .pv-kicker {
  text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* 扫描线 */
.fx-scanline .pv-bg::after {
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px);
  opacity: 0.55;
  mix-blend-mode: multiply;
}

/* 可见网格 */
.fx-grid .pv-bg::before {
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 12.5% 16.6%;
  opacity: 0.6;
}

/* HUD 角标 */
.fx-hud .pv-card::before,
.fx-hud .pv-card::after {
  content: "";
  position: absolute;
  width: clamp(10px, 3cqw, 18px);
  height: clamp(10px, 3cqw, 18px);
  border: 1px solid var(--accent);
  opacity: 0.9;
}
.fx-hud .pv-card::before {
  top: 6px;
  left: 6px;
  border-right: 0;
  border-bottom: 0;
}
.fx-hud .pv-card::after {
  right: 6px;
  bottom: 6px;
  border-left: 0;
  border-top: 0;
}
.fx-hud .pv-top {
  border-bottom: 1px solid var(--border);
  padding-bottom: clamp(5px, 1.6cqw, 10px);
}
.fx-hud .pv-title {
  letter-spacing: 0.04em;
}
.fx-hud .pv-kicker {
  letter-spacing: 0.24em;
}

/* RGB 色差 */
.fx-rgb .pv-title {
  text-shadow: clamp(1px, 0.4cqw, 3px) 0 rgba(255, 0, 0, 0.85),
    clamp(-3px, -0.4cqw, -1px) 0 rgba(0, 255, 255, 0.85);
}
.fx-rgb .pv-kicker {
  text-shadow: 1px 0 rgba(255, 0, 0, 0.7), -1px 0 rgba(0, 255, 255, 0.7);
}
.fx-rgb .pv-bg::before {
  background: radial-gradient(70% 50% at 30% 20%, rgba(255, 0, 0, 0.14), transparent 70%),
    radial-gradient(70% 50% at 70% 80%, rgba(0, 255, 255, 0.14), transparent 70%);
}

/* 像素 */
.fx-pixel .pv-card,
.fx-pixel .pv-btn,
.fx-pixel .pv-pill,
.fx-pixel .pv-chips > span,
.fx-pixel .pv-logo {
  border-radius: 0;
}
.fx-pixel .pv-card,
.fx-pixel .pv-btn {
  box-shadow: 4px 4px 0 var(--text);
  border: 2px solid var(--border);
}
.fx-pixel .pv-title {
  letter-spacing: 0.02em;
  font-family: var(--f-pixel);
}
.fx-pixel .pv-bars i {
  border-radius: 0;
  background: var(--accent);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--text) 60%, transparent);
}
.fx-pixel .pv-bg::before {
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 7px 7px;
  opacity: 0.4;
}
.fx-pixel .pv-swatches i {
  border-radius: 0;
}

/* 纸张 */
.fx-paper .pv-card {
  box-shadow: none;
  background: var(--surface2);
  border-color: var(--border);
}
.fx-paper .pv-btn {
  box-shadow: none;
  border-radius: 2px;
}
.fx-paper .pv-title {
  letter-spacing: -0.01em;
}
.fx-paper .pv-rows,
.fx-paper .pv-foot {
  border-color: color-mix(in srgb, var(--border) 80%, transparent);
}

/* 颗粒 */
.fx-grain .pv-bg::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: 0.28;
  mix-blend-mode: overlay;
}

/* 手绘 */
.fx-sketch .pv-card {
  border-radius: 18px 26px 16px 28px / 26px 16px 30px 18px;
  border: 2px dashed var(--border);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--text) 80%, transparent);
  transform: rotate(-0.7deg);
}
.fx-sketch .pv-btn {
  border-radius: 14px 20px 16px 22px / 20px 14px 24px 16px;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--text) 80%, transparent);
}
.fx-sketch .pv-btn--ghost {
  border-style: dashed;
  box-shadow: none;
}
.fx-sketch .pv-chips > span {
  border-radius: 10px 16px 12px 18px / 16px 10px 20px 12px;
  border-style: dashed;
}
.fx-sketch .pv-title {
  letter-spacing: 0;
}

/* 胶片 */
.fx-film .pv-bg::before {
  background: linear-gradient(150deg, rgba(255, 214, 160, 0.55), transparent 42%),
    radial-gradient(80% 60% at 100% 100%, rgba(74, 123, 124, 0.22), transparent 70%);
}
.fx-film .pv-bg::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.2;
  mix-blend-mode: multiply;
}
.fx-film .pv-card {
  box-shadow: 0 10px 24px -14px rgba(58, 47, 37, 0.5);
}
.fx-film .pv-bars i {
  border-radius: 1px;
}

/* 金属 / 高光 */
.fx-chrome .pv-btn {
  background: linear-gradient(160deg, #ffffff 0%, #d9d9de 34%, #8e8e93 52%, #f2f2f7 74%, #b9b9c0 100%);
  color: #2b0b3f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.fx-chrome .pv-title {
  background: linear-gradient(160deg, #6d28d9 0%, #ff69b4 48%, #00c2d1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fx-chrome .pv-logo {
  background: linear-gradient(160deg, #fff, #ff69b4 60%, #00e5ff);
}

.fx-gloss .pv-btn {
  overflow: hidden;
}
.fx-gloss .pv-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 55%);
  pointer-events: none;
}
.fx-gloss .pv-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 18px 34px -18px rgba(60, 30, 90, 0.35);
}

/* 孟菲斯 */
.fx-memphis .pv-bg::before {
  background-image: radial-gradient(var(--accent) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: 0.22;
}
.fx-memphis .pv-bg::after {
  background: radial-gradient(circle at 4% 94%, var(--accent-2) 0 clamp(9px, 3cqw, 18px), transparent calc(clamp(9px, 3cqw, 18px) + 1px)),
    radial-gradient(circle at 97% 84%, var(--accent) 0 clamp(5px, 1.8cqw, 11px), transparent calc(clamp(5px, 1.8cqw, 11px) + 1px));
  opacity: 0.65;
}
.fx-memphis .pv-card {
  transform: rotate(-1.4deg);
  box-shadow: 6px 6px 0 var(--accent-2);
}
.fx-memphis .pv-btn {
  transform: rotate(-1.5deg);
}
.fx-memphis .pv-chips > span:nth-child(2) {
  transform: rotate(2deg);
  background: var(--accent-2);
}

/* 包豪斯 */
.fx-bauhaus .pv-bg::before {
  background: radial-gradient(circle at 97% 86%, var(--accent-2) 0 13%, transparent 13.5%),
    radial-gradient(circle at 2% 96%, var(--accent) 0 15%, transparent 15.5%),
    linear-gradient(180deg, transparent 84%, color-mix(in srgb, var(--accent-2) 22%, transparent) 84% 86%, transparent 86%);
  opacity: 0.85;
}
.fx-bauhaus .pv-card {
  border: 2px solid #121212;
  box-shadow: 7px 7px 0 #121212;
  background: #ffffff;
}
.fx-bauhaus .pv-btn {
  border: 2px solid #121212;
  box-shadow: 4px 4px 0 #121212;
}
.fx-bauhaus .pv-btn--ghost {
  background: var(--accent-2);
  color: #fff;
}
.fx-bauhaus .pv-pill {
  border-radius: 999px;
  background: var(--accent-2);
  border: 2px solid #121212;
}
.fx-bauhaus .pv-bars i {
  border-radius: 0;
  border: 1.5px solid #121212;
}
.fx-bauhaus .pv-title {
  letter-spacing: -0.03em;
}

/* 极简单色 */
.fx-mono .pv-card {
  border: 2px solid var(--text);
  box-shadow: none;
  background: transparent;
}
.fx-mono .pv-btn {
  border-radius: 0;
  box-shadow: none;
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.fx-mono .pv-btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.fx-mono .pv-pill {
  border-radius: 0;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.fx-mono .pv-kicker {
  border-bottom: 3px solid var(--text);
  padding-bottom: clamp(3px, 1cqw, 7px);
  color: var(--text);
}
.fx-mono .pv-bars i {
  border-radius: 0;
  background: var(--text);
}
.fx-mono .pv-chips > span {
  border-radius: 0;
  background: transparent;
  border-color: var(--text);
}

/* 终端 */
.fx-terminal .pv-card {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}
.fx-terminal .pv-title::after {
  content: "▍";
  margin-left: 0.1em;
  animation: pv-blink 1.1s steps(2, start) infinite;
}
@keyframes pv-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.fx-terminal .pv-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.fx-terminal .pv-pill {
  border-radius: 0;
}
.fx-terminal .pv-bars i {
  border-radius: 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 4px);
}
.fx-terminal .pv-chips > span {
  border-radius: 0;
  background: transparent;
}

/* Material 3 */
.fx-md3 .pv-card {
  background: var(--surface2);
  border-color: transparent;
  box-shadow: none;
}
.fx-md3 .pv-btn,
.fx-md3 .pv-pill,
.fx-md3 .pv-chips > span {
  border-radius: 999px;
}
.fx-md3 .pv-btn {
  box-shadow: none;
}
.fx-md3 .pv-btn--ghost {
  border-color: var(--accent);
  color: var(--accent);
}
.fx-md3 .pv-bars i {
  border-radius: 6px 6px 2px 2px;
}
.fx-md3 .pv-bg::before {
  background: radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
}

/* 海报 / 巨型字 */
.fx-poster .pv-title {
  font-size: clamp(22px, 8.4cqw, 54px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.fx-poster .pv-kicker {
  border-bottom: 2px solid var(--accent);
  padding-bottom: clamp(3px, 1cqw, 7px);
  align-self: flex-start;
  color: var(--text);
}
.fx-poster .pv-card {
  border-radius: 0;
  box-shadow: none;
  border-width: 1px;
}
.fx-poster .pv-btn {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fx-giant .pv-title {
  font-size: clamp(24px, 9.6cqw, 62px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.fx-giant .pv-desc {
  font-size: clamp(8px, 2.4cqw, 12px);
  letter-spacing: 0.02em;
}
.fx-giant .pv-card {
  border-radius: 0;
  box-shadow: none;
  border-width: 1px;
}
.fx-giant .pv-btn {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

/* 动态字体 */
.fx-kinetic .pv-title {
  background: linear-gradient(100deg, var(--text) 0%, var(--accent) 42%, var(--accent-2) 58%, var(--text) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pv-sheen 7s linear infinite;
}
@keyframes pv-sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.fx-kinetic .pv-kicker {
  letter-spacing: 0.28em;
}

/* 编辑网格 */
.fx-editorial .pv-title {
  font-family: var(--f-serif);
  letter-spacing: -0.02em;
}
.fx-editorial .pv-desc {
  font-family: var(--f-serif);
  font-size: clamp(9px, 2.6cqw, 13.5px);
}
.fx-editorial .pv-kicker {
  border-top: 1px solid var(--text);
  padding-top: clamp(4px, 1.2cqw, 8px);
  color: var(--text);
  align-self: flex-start;
}
.fx-editorial .pv-bg {
  background-image: repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 25%);
  opacity: 0.5;
}
.fx-editorial .pv-card {
  box-shadow: none;
  border-radius: 0;
}

/* 暗角 */
.fx-vignette .pv-bg::after {
  background: radial-gradient(120% 105% at 50% 42%, transparent 38%, rgba(0, 0, 0, 0.5) 100%);
}

/* 拱形 */
.fx-arch .pv-card {
  border-radius: clamp(26px, 8cqw, 56px) clamp(26px, 8cqw, 56px) var(--radius) var(--radius);
  padding-top: clamp(16px, 5.4cqw, 34px);
}

/* 波形 */
.fx-wave .pv-card {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--accent) 8%, var(--surface)));
}
.fx-wave .pv-bars i {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.fx-wave .pv-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* 有机 */
.fx-organic .pv-card {
  border-radius: clamp(28px, 9cqw, 64px) clamp(52px, 15cqw, 110px) clamp(30px, 10cqw, 70px)
    clamp(60px, 17cqw, 120px);
}
.fx-organic .pv-bg::before {
  background: radial-gradient(40% 30% at 92% 8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(38% 30% at 4% 96%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%);
}

/* 混沌 */
.fx-chaos .pv-card {
  transform: rotate(-2.2deg);
  border-color: var(--accent);
  box-shadow: 5px 5px 0 var(--accent-2);
}
.fx-chaos .pv-title {
  transform: rotate(-1.6deg);
  text-shadow: 2px 2px 0 var(--accent), -2px -2px 0 var(--accent-2);
}
.fx-chaos .pv-chips > span:nth-child(2) {
  transform: rotate(3deg);
  background: var(--accent-2);
  color: #0b0b0b;
  border-color: var(--accent-2);
}
.fx-chaos .pv-bg::before {
  background: radial-gradient(circle at 15% 18%, rgba(255, 0, 255, 0.4), transparent 34%),
    radial-gradient(circle at 85% 76%, rgba(0, 255, 0, 0.32), transparent 32%),
    radial-gradient(circle at 70% 12%, rgba(255, 255, 0, 0.28), transparent 26%);
}

/* 光标 */
.fx-cursor .pv-card::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: 16%;
  width: clamp(9px, 2.4cqw, 16px);
  height: clamp(9px, 2.4cqw, 16px);
  border: 2px solid var(--accent);
  border-radius: 50%;
  mix-blend-mode: difference;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* AI 原生 */
.fx-ai .pv-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 7px 0 0 color-mix(in srgb, var(--accent) 65%, transparent),
    14px 0 0 color-mix(in srgb, var(--accent) 35%, transparent);
  animation: pv-typing 1.4s ease-in-out infinite;
}
@keyframes pv-typing {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.fx-ai .pv-title {
  background: linear-gradient(92deg, var(--text) 30%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fx-ai .pv-btn {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2)));
}

/* 动效驱动 */
.fx-motion .pv-bg::before {
  background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%),
    linear-gradient(295deg, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 45%);
  animation: pv-drift 12s ease-in-out infinite alternate;
}
@keyframes pv-drift {
  0% { transform: translate3d(-2%, 1%, 0) scale(1.02); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.06); }
}

/* 微交互 */
.fx-micro .pv-btn {
  transition: transform 0.12s var(--ease);
}
.fx-micro .pv-chips > span:first-child::after {
  content: " ✓";
  color: #22c55e;
}

/* 无障碍 */
.fx-a11y .pv-btn--ghost {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.fx-a11y .pv-chips > span:first-child::before {
  content: "● ";
  color: var(--accent);
}
.fx-a11y .pv-dot {
  box-shadow: none;
  background: #0f766e;
}

.fx-pattern .pv-bg::before {
  background-image: repeating-linear-gradient(45deg, color-mix(in srgb, var(--text) 10%, transparent) 0 2px, transparent 2px 9px);
  opacity: 0.35;
}

/* 首屏 */
.fx-hero .pv-title {
  font-size: clamp(20px, 7.4cqw, 48px);
}
.fx-hero .pv-card {
  box-shadow: var(--elev), 0 30px 50px -30px rgba(0, 0, 0, 0.35);
}

/* 渐变按钮 */
.fx-grad .pv-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.fx-grad .pv-logo {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* 转化 CTA */
.fx-cta .pv-btn {
  padding-inline: clamp(12px, 3.6cqw, 24px);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}
.fx-cta .pv-btn::after {
  content: "→";
  font-size: 0.95em;
  margin-left: 0.25em;
}

/* 卡片抬升 */
.fx-cards .pv-card {
  box-shadow: 0 12px 28px -16px rgba(20, 30, 50, 0.3);
}

/* 微旋转 */
.fx-rot .pv-card {
  transform: rotate(-1.6deg);
}
.fx-rot .pv-pill {
  transform: rotate(2deg);
}

/* 跑马灯 */
.fx-marquee .pv-bg::after {
  content: "KINETIC · BRUTALISM · 2026 · KINETIC · BRUTALISM · 2026 · ";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 0;
  font-family: var(--f-mono);
  font-size: clamp(7px, 1.9cqw, 10px);
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-top: 1px solid var(--accent);
  overflow: hidden;
  animation: pv-marquee 14s linear infinite;
}
@keyframes pv-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 玻璃 */
.fx-glass .pv-card,
.fx-glass .pv-pill {
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.fx-glass .pv-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 18px 40px -24px rgba(0, 0, 0, 0.5);
}
.fx-glass .pv-chips > span {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 网格渐变 */
.fx-mesh .pv-bg {
  background: radial-gradient(46% 52% at 18% 18%, color-mix(in srgb, var(--accent) 62%, transparent), transparent 70%),
    radial-gradient(44% 48% at 82% 28%, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 72%),
    radial-gradient(60% 60% at 60% 96%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%);
}
.fx-mesh .pv-bg::before {
  background: inherit;
  filter: blur(28px);
  transform: scale(1.15);
  animation: pv-drift 16s ease-in-out infinite alternate;
}

/* 极光 */
.fx-aurora .pv-bg::before {
  background: linear-gradient(120deg, transparent 8%, color-mix(in srgb, var(--accent) 45%, transparent) 32%,
      color-mix(in srgb, var(--accent-2) 42%, transparent) 52%, transparent 78%);
  filter: blur(26px);
  animation: pv-aurora 14s ease-in-out infinite alternate;
}
@keyframes pv-aurora {
  0% { transform: translate3d(-6%, -4%, 0) rotate(-6deg) scale(1.1); opacity: 0.85; }
  100% { transform: translate3d(6%, 5%, 0) rotate(5deg) scale(1.24); opacity: 1; }
}

/* 拟物 */
.fx-skeuo .pv-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 12px 22px -10px rgba(59, 47, 34, 0.4);
  border: 1px solid var(--border);
}
.fx-skeuo .pv-btn {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, #fff), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 0 color-mix(in srgb, var(--accent) 55%, #000),
    0 6px 12px rgba(0, 0, 0, 0.22);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

/* 生物形态 */
.fx-blob .pv-card {
  border-radius: clamp(30px, 10cqw, 70px) clamp(54px, 16cqw, 116px) clamp(36px, 12cqw, 82px)
    clamp(64px, 18cqw, 128px);
}
.fx-blob .pv-bg::before {
  background: radial-gradient(38% 46% at 82% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(42% 50% at 12% 88%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 72%);
  filter: blur(6px);
}

/* 玻璃 / 液态玻璃的底色光斑 */
.fx-glass .pv-bg::after {
  background: radial-gradient(40% 46% at 12% 8%, rgba(255, 255, 255, 0.28), transparent 68%),
    radial-gradient(36% 40% at 92% 92%, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 70%);
}

/* 7 · 响应式 -------------------------------------------------------------- */

@media (max-width: 1120px) {
  .type-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
  .d-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .toc {
    display: none;
  }
  .rel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --head-h: 58px;
  }
  .wrap {
    padding-inline: 20px;
  }
  .brand-t em {
    display: none;
  }
  .hero {
    padding-top: 52px;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stats > div:nth-child(3) {
    border-right: 0;
  }
  .stats > div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
  .d-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .d-aside {
    padding-top: 0;
  }
  .notes {
    grid-template-columns: 1fr;
  }
  .matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .use-grid,
  .pal-cols {
    grid-template-columns: 1fr;
  }
  .filters {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .g-pair {
    grid-template-columns: 1fr;
  }
  .tok {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .pager {
    grid-template-columns: 1fr;
  }
  .pager-next {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .brand-t {
    font-size: 13.5px;
    gap: 6px;
    white-space: nowrap;
  }
  .brand-t em {
    display: none;
  }
  .nav {
    gap: 0;
  }
  .nav a:not(.nav-gh) {
    padding: 6px 7px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .nav a[href$="#types"],
  .nav-gh {
    display: none;
  }
  .nav a.nav-x {
    margin-left: 4px;
    padding: 6px 7px;
  }
  .nx-full {
    display: none;
  }
  .nx-short {
    display: inline;
  }
  .xbar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "k" "t" "go";
    gap: 6px;
    padding: 14px 16px;
  }
  .xbar-k {
    border-right: 0;
    padding-right: 0;
    align-self: auto;
  }
  .xbar-go {
    justify-self: start;
    margin-top: 2px;
  }
  .xbar-w {
    margin-bottom: 34px;
  }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .sec-head p {
    flex: 0 1 auto;
  }
  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats > div:nth-child(2n) {
    border-right: 0;
  }
  .stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .rel-grid {
    grid-template-columns: 1fr 1fr;
  }
  .matrix {
    grid-template-columns: 1fr;
  }
  .filter-row .select {
    flex: 1 1 120px;
  }
  .filter-row .select select {
    width: 100%;
  }
  .pv--hero {
    aspect-ratio: 4 / 3;
  }
  .pv-links {
    display: none;
  }
  .d-head h1 {
    font-size: clamp(28px, 8vw, 38px);
  }
  .block {
    padding: 30px 0;
  }
  .foot-links {
    gap: 14px;
  }
}

/* 8 · 动效偏好 ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card:hover,
  .type-card:hover,
  .rel:hover {
    transform: none;
  }
}
