/* 00-fonts.css */
/* 自托管文本字体（不再请求 fonts.googleapis.com：境内通常不可达）。
   Geist / JetBrains Mono 均为 OFL 或 Apache-2.0，允许自托管与子集化。
   只保留 latin 子集；中文走系统字体（见 01-tokens.css 的字体栈）。
   图标不用字体：前台是内联 SVG（app/Site/Icons.php），后台字体在 admin-icons.css。 */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Geist-400-4.woff2?ver=824f485b') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Geist-400-5.woff2?ver=19f9c925') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Geist-500-9.woff2?ver=824f485b') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Geist-500-10.woff2?ver=19f9c925') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Geist-600-14.woff2?ver=824f485b') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Geist-600-15.woff2?ver=19f9c925') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Geist-700-19.woff2?ver=824f485b') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Geist-700-20.woff2?ver=19f9c925') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Geist-800-24.woff2?ver=824f485b') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Geist-800-25.woff2?ver=19f9c925') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/JetBrainsMono-400-30.woff2?ver=db5ff4db') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/JetBrainsMono-400-31.woff2?ver=83c005d4') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/JetBrainsMono-500-36.woff2?ver=db5ff4db') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/JetBrainsMono-500-37.woff2?ver=83c005d4') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 01-tokens.css */
/* 01-tokens.css — 按原始书写顺序切分，保持层叠顺序与覆盖关系不变。 */
:root {
  color-scheme: light;
  --canvas: #f8f9fa;
  --surface: #fff;
  --ink: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --accent: #18181b;
  --danger: #b42318;
  --success: #18794e;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    14px/1.65 "Geist",
    system-ui,
    -apple-system,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    "Source Han Sans SC",
    sans-serif;
  letter-spacing: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: #52525b;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
img,
video {
  max-width: 100%;
  height: auto;
}

/* 02-base.css */
/* 02-base.css — 按原始书写顺序切分，保持层叠顺序与覆盖关系不变。 */
h1,
h2,
h3,
p {
  margin: 0 0 16px;
}
h1 {
  font-size: 28px;
  line-height: 1.35;
}
h2 {
  font-size: 20px;
  line-height: 1.5;
}
h3 {
  font-size: 16px;
}
a,
button,
p,
h1,
h2,
h3,
span {
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid #71717a;
  outline-offset: 4px;
}
.wrap {
  width: min(1370px, 100%);
  padding-inline: 16px;
  margin-inline: auto;
}
.site-header {
  height: 64px;
  background: rgb(255 255 255 / 80%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #18181b;
  color: #fff;
  font-size: 21px;
}
.main-nav-link {
  font-weight: 600;
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 464px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgb(244 244 245 / 80%);
  color: var(--muted);
  padding: 0 12px;
}
.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}
.button:hover {
  background: #f4f4f5;
}
.button--primary,
button.button--primary {
  background: #18181b;
  border-color: #18181b;
  color: #fff;
}
.button--primary:hover {
  background: #3f3f46;
  color: #fff;
}
.button--small {
  min-height: 34px;
  padding: 6px 12px;
}
.button--secondary,
button.button--secondary {
  background: #fff;
  border-color: #d4d4d8;
  color: #191c1d;
}
.button--secondary:hover {
  background: #f4f4f5;
}
.button--ghost,
button.button--ghost {
  background: transparent;
  border-color: #e1e3e4;
  color: #52525b;
}
.button--ghost:hover {
  background: #f4f4f5;
  color: #191c1d;
}
.button--text,
button.button--text {
  min-height: 34px;
  background: none;
  border-color: transparent;
  color: var(--muted);
}
.button--text:hover {
  background: none;
  color: #18181b;
}
.resource-action { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.resource-health-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.resource-health-badge--ok { background: #f3f4f5; color: #18794e; }
.resource-health-badge--broken { background: #f3f4f5; color: #b42318; }
.resource-health-badge--pending { background: #f3f4f5; color: #52525b; }
.account-verify-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #e1e3e4;
  border-radius: 12px;
  background: #f3f4f5;
}
.account-verify-notice strong {
  display: block;
  color: #191c1d;
  font-size: 13px;
}
.account-verify-notice p {
  margin: 4px 0 0;
  color: #52525b;
  font-size: 12px;
}
.auth-inline-form {
  display: inline-flex;
}
@media (max-width: 640px) {
  .account-verify-notice {
    align-items: stretch;
    flex-direction: column;
  }
}
.icon-button,
.avatar-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #f4f4f5;
}
/* 内联 SVG 图标基类：尺寸默认跟随字号（1em），具体位置由各处规则覆盖。
   图标是 SVG 而不是字体，所以不需要 text-transform / font-family 之类的字体保护。 */
.zv-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.125em;
  fill: currentColor;
}
.avatar {
  display: inline-flex;
  position: relative;
  flex: none;
  align-items: center;
  justify-content: center;
  /* 尺寸由 zaovibe_avatar() 写成内联 --avatar-size（默认 32px）。
     此前这里写死 32px，导致传 88/136 的地方也渲染成 32px。 */
  width: var(--avatar-size, 32px);
  height: var(--avatar-size, 32px);
  border-radius: 50%;
  overflow: hidden;
  background: #e4e4e7;
  color: #52525b;
  vertical-align: middle;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-header .avatar-link {
  padding: 0;
  border: 1px solid rgb(228 228 231 / 80%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}
.site-header .avatar-link .avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.site-header .avatar-link img {
  border-radius: 0;
  filter: grayscale(30%);
}
.site-header .avatar-link:hover {
  box-shadow: 0 0 0 2px rgb(24 24 27 / 20%);
}
.avatar__fallback {
  display: none;
}
.avatar.is-fallback img {
  display: none;
}
.avatar.is-fallback .avatar__fallback {
  display: block;
}
.account-menu {
  position: absolute;
  right: max(24px, calc((100% - 1140px) / 2));
  top: 58px;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 8px 24px #00000012;
}
.account-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 3px;
}
.account-menu a:hover {
  background: #f4f4f5;
}
.community-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  min-height: calc(100vh - 160px);
  padding-top: 32px;
  padding-bottom: 64px;
}
.community-sidebar {
  align-self: start;
  position: sticky;
  top: 88px;
  min-height: calc(100vh - 110px);
}
.community-widgets {
  display: none;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}
.widget-actions .zv-icon { width: 18px; height: 18px;
  
}
.widget-thumbnail .zv-icon { width: 20px; height: 20px;
  
}
.community-widget {
  padding: 20px;
  background: #fff;
  border: 1px solid rgb(228 228 231 / 80%);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 4%);
}
.community-widget h2 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}
.community-widget p {
  font-size: 12px;
  margin: 0;
  color: #71717a;
}
.community-widget textarea {
  min-height: 64px;
  resize: vertical;
  background: #fafafa;
  border-radius: 12px;
  font-size: 13px;
  padding: 12px;
}
.widget-actions {
  display: flex;
  align-items: center;
  margin-top: 12px;
  gap: 2px;
}
.widget-actions .icon-button {
  width: 30px;
  height: 30px;
}
.widget-actions .button {
  font-size: 13px;
  min-height: 34px;
  padding: 6px 16px;
}
.community-widget--dark {
  background: #090a0c;
  border-color: #18181b;
  color: #fff;
  padding: 16px;
}
.community-widget--dark p {
  color: #a1a1aa;
}
.widget-label {
  display: inline-block;
  font-size: 10px;
  background: #ffffff26;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
}
.widget-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.widget-heading > a {
  font-size: 11px;
  color: #a1a1aa;
}
.widget-work {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.widget-rank {
  width: 12px;
  flex: none;
  font-size: 13px;
  font-weight: 700;
}
.widget-thumbnail {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f4f4f5;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
}
.widget-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.widget-work-text {
  min-width: 0;
}
.widget-work-text strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.widget-work-text small {
  font-size: 11px;
}
.widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.widget-tags a {
  padding: 4px 10px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  font-size: 12px;
}
.widget-rules {
  font-size: 12.5px;
  line-height: 1.7;
}
@media (min-width: 1280px) {
  .community-layout {
    grid-template-columns: 220px minmax(0, 1fr) 280px;
  }
  .community-widgets {
    display: flex;
  }
}
.sidebar-intro {
  padding: 4px 12px 16px;
}
.sidebar-intro h2 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}
.sidebar-intro p {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  margin: 3px 0;
  color: #52525b;
}
.side-link:hover {
  background: #f0f0f1;
}
.side-link.is-active {
  background: #090a0c;
  color: #fff;
  font-weight: 600;
}
.side-section {
  padding-block: 24px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.side-footer {
  border-top: 1px solid var(--border);
  padding: 24px 14px;
  color: var(--muted);
  font-size: 12px;
}
.side-footer p {
  margin: 6px 0;
}
.feed-main {
  min-width: 0;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}
.feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin-bottom: 28px;
}

/* 03-layout.css */
/* 03-layout.css — 按原始书写顺序切分，保持层叠顺序与覆盖关系不变。 */
.feed-heading h1 {
  font-size: 28px;
  margin: 0;
}
.feed-heading .lede {
  margin: 0;
  font-size: 14px;
}
.feed-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: #fff;
  border: 1px solid #e1e3e4;
  border-radius: 12px;
  width: fit-content;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}
.feed-tabs > a {
  padding: 4px 14px;
  color: #6b7177;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.feed-tabs > a.is-active {
  color: #fff;
  background: #090a0c;
  font-weight: 600;
}
.feed-row {
  padding: 24px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid rgb(228 228 231 / 80%);
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgb(0 0 0 / 4%),
    0 1px 2px -1px rgb(0 0 0 / 4%);
}
.feed-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 20;
  background: rgb(248 249 250 / 90%);
  backdrop-filter: blur(12px);
}
.feed-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.feed-author-avatar .avatar {
  width: 40px;
  height: 40px;
}
.feed-author-info {
  min-width: 0;
}
.feed-author-name {
  font-size: 14px;
  font-weight: 600;
}
.feed-author-info .content-meta {
  margin: 2px 0 0;
  gap: 8px;
  font-size: 12px;
  color: #a1a1aa;
}
.feed-author-info .badge {
  font-size: 11px;
}
.badge--featured {
  margin-left: auto;
  background: #18181b;
  color: #fff;
}
.content-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.content-meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3f3f46;
}
.content-meta .avatar {
  width: 26px;
  height: 26px;
}
.feed-row h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.feed-summary {
  color: #52525b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.feed-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 16px 0;
  background: #f4f4f5;
}
.feed-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.badge,
.status-label,
.zv-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: #f4f4f5;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.7;
  color: #52525b;
}
.feed-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
  border-top: 1px solid #f4f4f5;
  padding-top: 14px;
}
.text-action {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  line-height: 1.8;
}
.text-action:hover,
.text-action[aria-pressed="true"] {
  color: #18181b;
}
.push-right {
  margin-left: auto;
}
.poll-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-top: 14px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.page-numbers {
  padding: 6px 11px;
  border-radius: 3px;
}
.page-numbers.current {
  background: #18181b;
  color: #fff;
}
.empty-state {
  padding: 64px 20px;
  text-align: center;
  color: var(--muted);
}
.muted,
small,
.lede {
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.detail-page {
  padding-top: 28px;
  padding-bottom: 64px;
}
.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  margin-bottom: 28px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 32px;
}
.detail-main {
  min-width: 0;
}
.detail-content {
  background: #fff;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgb(0 0 0 / 4%),
    0 1px 2px -1px rgb(0 0 0 / 4%);
}
.detail-content h1 {
  font-size: 32px;
  margin: 20px 0 24px;
}
.detail-preview {
  display: block;
  margin-bottom: 28px;
  background: #f4f4f5;
}
.detail-preview img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}
.entry-content {
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.entry-content > * {
  max-width: 100%;
}
.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content pre {
  overflow: auto;
  padding: 16px;
  background: #f4f4f5;
  font-size: 13px;
}
.entry-content code {
  background: #f4f4f5;
  padding: 2px 4px;
}
.entry-content blockquote {
  border-left: 3px solid #d4d4d8;
  margin: 20px 0;
  padding-left: 20px;
  color: var(--muted);
}
.entry-content table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
}
.entry-content td,
.entry-content th {
  padding: 8px;
  border: 1px solid var(--border);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 20px 0;
}
.widget-specs {
  font-size: 13px;
  margin: 0;
}
.widget-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.widget-specs dt {
  color: #71717a;
}
.widget-specs dd {
  margin: 0;
  text-align: right;
}
.detail-buttons {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.solve-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.comments-section {
  margin-top: 32px;
}
.comments-section h2 {
  font-size: 18px;
}
.comment {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.comment--reply {
  padding-left: 24px;
  border-left: 2px solid var(--border);
}
.comment .entry-content {
  font-size: 14px;
}
.poll {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.poll h3 {
  margin-bottom: 16px;
}
.poll-options {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.poll-option {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  overflow: hidden;
}
.poll-option > * {
  position: relative;
  z-index: 1;
}
.poll-option .poll-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: #e4e4e7;
  z-index: 0;
}
.poll-option .poll-count {
  margin-left: auto;
  white-space: nowrap;
}
.poll-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.page {
  padding: 36px 0 64px;
  min-height: 70vh;
}
.page-head,
.section-head,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

/* 页头栏目导航（广场/圈子/活动/创作者）。窄屏隐藏，交给底部导航。 */
.header-sections {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}
.header-sections a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.header-sections a:hover { color: var(--ink); }
.header-sections a.is-active {
  color: var(--ink);
  background: #f4f4f5;
  font-weight: 600;
}
@media (max-width: 1080px) {
  .header-sections { display: none; }
}

/* 04-components.css */
/* 04-components.css — 按原始书写顺序切分，保持层叠顺序与覆盖关系不变。 */
.page-head h1,
.page-head h2 {
  margin-bottom: 8px;
}
.page-head .lede {
  margin: 0;
}
.section-label {
  font-size: 12px;
  color: var(--muted);
}
.account-section,
.settings-section {
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
}
.account-tabs,
.filter-tabs,
.publish-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.account-tabs a,
.filter-tabs a,
.publish-types a {
  padding: 8px 12px;
  border-radius: 4px;
}
.account-tabs .is-active,
.filter-tabs .is-active {
  background: #e4e4e7;
}
.account-content-item,
.notification-item,
.user-follow-item,
.search-result-item,
.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.account-content-item h3,
.search-result-item h3 {
  margin: 6px 0;
}
.search-result-item__content {
  min-width: 0;
  flex: 1;
}
.search-result-item__meta {
  color: var(--muted);
  font-size: 12px;
}
.search-result-item__avatar {
  border-radius: 50%;
}
.creation-summary,
.account-summary,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.creation-summary__item {
  display: grid;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}
.creation-summary__item strong {
  font-size: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin-bottom: 18px;
}
.field label,
.field > span:first-child {
  font-weight: 500;
}
.field--full {
  grid-column: 1/-1;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d4d4d8;
  border-radius: 4px;
  padding: 9px 12px;
  background: #fff;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: #18181b;
  width: 16px;
  height: 16px;
  flex: none;
}
input[type="file"] {
  font-size: 13px;
}
.form-actions,
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.form-actions {
  justify-content: flex-end;
  margin-top: 16px;
}
.filter-bar .field {
  flex: 1;
  min-width: 140px;
}
.error-state,
[data-form-status].is-error {
  color: var(--danger);
}
.success-state {
  color: var(--success);
}
.search-panel[data-state="closed"] {
  display: none;
}
.search-panel,
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0005;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 20px 30px;
  overflow: auto;
}
.search-dialog,
.report-dialog {
  width: min(600px, 100%);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 16px 60px #0002;
}
.search-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.search-dialog__head h2 {
  margin: 0;
}
.search-panel__results {
  max-height: 60vh;
  overflow: auto;
  margin-top: 16px;
}
.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: grid;
  gap: 8px;
  max-width: min(440px, calc(100% - 32px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 30px #0002;
}
.toast__message {
  flex: 1;
  min-width: 0;
}
.toast--error {
  border-color: #f2b8b5;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  padding: 12px;
  background: #fff;
  z-index: 300;
}
.is-loading {
  opacity: 0.6;
}
@media (max-width: 900px) {
  .community-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
  }
  .search-trigger {
    width: 140px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .nav {
    gap: 20px;
  }
  .nav-actions {
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .wrap {
    width: 100%;
  }
  .nav {
    gap: 12px;
  }
  .brand {
    font-size: 17px;
    gap: 7px;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
    font-size: 18px;
  }
  .main-nav-link {
    display: none;
  }
  .nav-actions {
    gap: 8px;
  }
  .search-trigger {
    width: 32px;
    padding: 6px;
    border: 0;
    background: transparent;
  }
  .search-trigger span {
    display: none;
  }
  .header-publish {
    min-height: 32px;
    padding: 6px 9px;
  }
  .header-publish .zv-icon {
    display: none;
  }
  .community-layout {
    display: block;
    padding-top: 16px;
  }
  .community-sidebar {
    position: static;
    margin-bottom: 20px;
  }
  .community-sidebar > .sidebar-intro,
  .community-sidebar > .side-section,
  .community-sidebar > .side-footer {
    display: none;
  }
  .community-sidebar nav {
    display: flex;
    gap: 4px;
    overflow: auto;
  }
  .side-link {
    padding: 8px 12px;
    white-space: nowrap;
    margin: 0;
    font-size: 13px;
  }
  .side-link .zv-icon {
    display: none;
  }
  .feed-heading {
    padding-bottom: 12px;
  }
  .feed-heading h1 {
    font-size: 22px;
  }
  .feed-tabs {
    gap: 4px;
  }
  .feed-row {
    padding: 24px;
  }
  .feed-row h2 {
    font-size: 17px;
  }
  .feed-preview {
    max-width: 100%;
  }
  .detail-page {
    padding-top: 20px;
  }
  .detail-content {
    padding: 24px;
  }
  .detail-content h1 {
    font-size: 28px;
  }
  .detail-layout {
    gap: 16px;
  }
  .content-meta {
    gap: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .page-head,
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 10px;
  }
  .search-panel,
  .report-modal {
    padding-top: 76px;
  }
  .search-dialog,
  .report-dialog {
    padding: 18px;
  }
  .account-content-item,
  .notification-item {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .form-actions .button {
    flex-grow: 1;
  }
  .detail-content .feed-actions {
    gap: 18px;
  }
  .toast-region {
    right: 16px;
    bottom: 16px;
  }
}

/* Shared Stitch workspace surfaces */
.site-header--detail { height: 64px; }
.site-header--detail .brand, .site-header--detail .brand-word > span { font-size: inherit; font-weight: inherit; color: inherit; }
.site-header--detail .brand-mark, .site-header--detail .avatar-link { border-radius: 12px; }
.site-header--detail .search-trigger { width: 464px; border-radius: 12px; }
.site-header--detail .header-publish { border-radius: 12px; }
.site-header--detail .account-menu { top: 66px; }

.event-shell, .account-dashboard, .creator-profile-layout { width: min(1370px, 100%); margin-inline: auto; padding: 32px 16px 72px; display: grid; grid-template-columns: 214px minmax(0, 1fr) 338px; gap: 36px; align-items: start; }
.event-rail, .account-dashboard__rail, .creator-profile-card { position: sticky; top: 96px; min-width: 0; }
.account-dashboard__identity { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: #191c1d; }
.account-dashboard__identity small { display: block; margin-top: 3px; color: #92989e; font-size: 11px; }
.account-dashboard__identity strong { display: block; font-size: 14px; }
.account-dashboard__rail nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 10px; color: #646a70; font-size: 13px; cursor: pointer; }
.account-dashboard__rail nav a:hover, .account-dashboard__rail nav a.is-active { background: #f0f1f2; color: #090a0c; }
.publish-stitch-page .publish-form { min-width: 0; display: grid; gap: 16px; }
.account-dashboard__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 4px; }
.account-dashboard__head h1 { margin: 0; font-size: 30px; letter-spacing: -.025em; }
.account-dashboard__head > a { color: #8d9399; font-size: 11px; }
.account-dashboard-card, .creator-profile-side .detail-sidebar-card { min-width: 0; padding: 20px; border: 1px solid #e1e3e4; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 4%); }
.account-dashboard-card h2 { margin: 0; color: #191c1d; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.publish-upload { display: grid; place-items: center; min-height: 180px; border: 1px dashed #c9cdd0; border-radius: 10px; background: #fafbfb; text-align: center; }
.publish-upload { position: relative; overflow: hidden; padding: 18px; }
.publish-upload > input[type=file] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.publish-upload label { display: grid; gap: 5px; cursor: pointer; }
.publish-upload label .zv-icon { width: 25px; height: 25px;  }
.publish-upload label strong { font-size: 13px; }
.publish-upload label small { color: #949a9f; font-size: 10px; }
.publish-preview { max-width: 100%; max-height: 190px; object-fit: contain; }
.publish-upload:has(.publish-preview:not([hidden])) > label { display: none; }
.publish-upload [data-remove-image] { position: relative; z-index: 2; }
.publish-code-editor { overflow: hidden; border: 1px solid #dfe1e3; border-radius: 10px; }
.publish-code-editor__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #e1e3e4; background: #f3f4f5; }
.publish-code-editor__bar label { margin: 0 !important; }
.publish-code-editor__bar > div { display: flex; gap: 6px; }
.publish-code-editor__bar input { width: 105px; min-height: 28px; padding: 4px 7px; font: 10px "JetBrains Mono", monospace; }
.publish-code-editor textarea { display: block; min-height: 220px; border: 0; border-radius: 0; background: #191c1d; color: #f6f7f7; font: 12px/1.7 "JetBrains Mono", monospace; }
.account-pending-list { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; list-style: none; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.publish-stitch-page .poll-editor-options { display: grid; gap: 8px; margin-top: 12px; }
.publish-stitch-page .poll-editor-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 32px; gap: 8px; align-items: center; }
.publish-stitch-page .poll-editor-row .icon-button { width: 32px; height: 32px; }
.event-main, .account-dashboard__main, .creator-profile-feed { min-width: 0; }
.event-hero { padding: 34px 0 28px; border-bottom: 1px solid #dfe1e3; }
.event-hero__meta { display: flex; justify-content: space-between; color: #8c9298; font: 11px "JetBrains Mono", monospace; }
.event-hero__meta span { color: #191c1d; font-weight: 600; }
.event-hero h1 { max-width: 700px; margin: 22px 0 10px; font-size: 38px; line-height: 1.15; letter-spacing: -.03em; }
.event-hero p, .event-content { color: #646a70; font-size: 14px; line-height: 1.8; }
.event-content { padding: 26px 0; }
.event-content h2 { margin: 0 0 10px; color: #191c1d; font-size: 18px; }
.event-content p { margin: 0 0 20px; }
.event-sidebar { position: sticky; top: 96px; display: grid; gap: 16px; }
.event-action { width: 100%; margin-top: 18px; justify-content: center; }
.detail-spec-list, .creator-profile-stats { display: grid; gap: 11px; margin: 0; }
.detail-primary-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.detail-primary-links.is-single { grid-template-columns: 1fr; }
.detail-primary-links .button { width: 100%; justify-content: center; }
.publish-upload > input[type=file] { inset: auto; width: 1px; height: 1px; }
.publish-upload label { position: relative; z-index: 2; width: 100%; min-height: 140px; place-content: center; }
.publish-upload .publish-preview { display: block; width: min(100%, 520px); height: auto; max-height: 220px; }
.publish-upload:has(.publish-preview:not([hidden])) { grid-template-rows: minmax(0, 1fr) auto; }
.publish-upload:has(.publish-preview:not([hidden])) > label { display: none; }
.account-page-head { max-width: 900px; margin-inline: auto; }
.account-page-head + .filter-bar, .account-content-list { width: min(900px, 100%); margin-inline: auto; }
.account-content-item { min-width: 0; }
.detail-spec-list div, .creator-profile-stats div { display: flex; justify-content: space-between; gap: 12px; }
.detail-spec-list dt, .creator-profile-stats dt { color: #8b9197; font-size: 11px; }
.detail-spec-list dd, .creator-profile-stats dd { max-width: 190px; margin: 0; color: #303438; font: 500 11px/1.4 "JetBrains Mono", monospace; text-align: right; }
.account-dashboard__rail nav { display: grid; gap: 2px; margin-bottom: 20px; }
.account-dashboard__rail nav a.is-active { background: #090a0c; color: #fff; }
.account-dashboard__create { width: 100%; justify-content: center; }
.account-dashboard__head { align-items: flex-start; margin-bottom: 22px; }
.account-dashboard__head p { margin: 6px 0 0; color: #8b9197; font-size: 12px; }
.account-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.account-metrics a { padding: 15px; border: 1px solid #e1e3e4; border-radius: 12px; background: #fff; }
.account-metrics span, .account-metrics small { display: block; color: #8b9197; font-size: 10px; }
.account-metrics strong { display: block; margin: 6px 0 3px; color: #191c1d; font: 700 24px/1 "JetBrains Mono", monospace; }
.account-project-list { display: grid; gap: 2px; }
.account-project-list article { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #eef0f1; }
.account-project-thumb { display: grid; place-items: center; width: 56px; height: 42px; flex: none; overflow: hidden; border-radius: 8px; background: #f3f4f5; color: #8b9197; }
.account-project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.account-project-list article > div { min-width: 0; flex: 1; }
.account-project-list h3 { overflow: hidden; margin: 4px 0; color: #303438; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-project-list small, .account-pending-list small { color: #9ba0a5; font-size: 10px; }
.account-pending-list a { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid #eef0f1; }
.account-pending-list strong { overflow: hidden; color: #303438; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-followers { display: grid; gap: 10px; margin-top: 14px; }
.account-followers a { display: flex; align-items: center; gap: 8px; color: #555b61; font-size: 12px; }
.account-followers .avatar { width: 34px; height: 34px; border-radius: 9px; }
.creator-profile-card { padding: 22px; border: 1px solid #e1e3e4; border-radius: 14px; background: #fff; }
.creator-profile-card > .avatar { width: 88px; height: 88px; border-radius: 14px; }
.creator-profile-card h1 { margin: 8px 0 4px; font-size: 24px; }
.creator-profile-joined { color: #9ba0a5; font-size: 10px; }
.creator-profile-bio { color: #646a70; font-size: 12px; line-height: 1.6; }
.creator-profile-actions { display: grid; gap: 8px; margin-top: 18px; }
.creator-profile-actions .button { justify-content: center; }
.creator-profile-side { position: sticky; top: 96px; display: grid; gap: 16px; }

.account-dashboard__main > .page-head { margin-bottom: 22px; }
.account-dashboard__main > .page-head h2 { margin: 0 0 6px; font-size: 30px; }
.account-dashboard__main > .page-head .lede { color: #8b9197; font-size: 12px; }
.account-dashboard__main > .filter-bar, .account-dashboard__main > .feed-tabs, .account-dashboard__main > .account-content-list, .account-dashboard__main > .profile-content-list, .account-dashboard__main > .user-follow-list, .account-dashboard__main > .notification-list, .account-dashboard__main > .settings-form, .account-dashboard__main > .account-data { width: 100%; margin-inline: 0; }
.account-dashboard__main > .account-section, .account-dashboard__main > .settings-section { width: 100%; padding: 22px 0; }
.account-dashboard__main .account-section .plaza-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-dashboard__main .empty-state { min-height: 260px; display: grid; place-content: center; justify-items: center; padding: 40px; border: 1px solid #e1e3e4; border-radius: 14px; background: #fff; }
.account-side-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.account-side-stats div { padding: 12px; border: 1px solid #eef0f1; border-radius: 10px; }
.account-side-stats strong, .account-side-stats span { display: block; }
.account-side-stats strong { color: #191c1d; font: 700 22px/1 "JetBrains Mono", monospace; }
.account-side-stats span { margin-top: 6px; color: #8b9197; font-size: 10px; }
.account-side-links { display: grid; gap: 2px; margin-top: 12px; }
.account-side-links a { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid #eef0f1; color: #4f555a; font-size: 12px; }
.account-side-links .zv-icon { width: 16px; height: 16px;  color: #9ba0a5; }

@media (max-width: 1100px) { .event-shell, .account-dashboard, .creator-profile-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; } .event-sidebar, .account-dashboard__side, .creator-profile-side { grid-column: 2; position: static; } }
@media (max-width: 760px) { .event-shell, .account-dashboard, .creator-profile-layout { display: block; padding: 20px 12px 76px; } .event-rail, .account-dashboard__rail, .creator-profile-card { position: static; margin-bottom: 20px; } .account-dashboard__head { display: block; } .event-sidebar, .account-dashboard__side, .creator-profile-side { margin-top: 16px; } .form-grid, .account-metrics { grid-template-columns: 1fr; } .event-hero h1 { font-size: 30px; } }
@media (max-width: 760px) { .event-hero h1 { max-width: 100%; font-size: clamp(25px, 8vw, 30px); overflow-wrap: anywhere; word-break: break-word; } .event-hero p, .event-content, .event-content * { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; } .creator-profile-card h1 { max-width: 100%; font-size: 22px; overflow-wrap: anywhere; word-break: break-word; } .account-dashboard__main .account-section .plaza-card-grid { grid-template-columns: 1fr; } }

.feed-help-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #d7dadd; border-radius: 999px; background: #f3f4f5; color: #62686e; font-size: 10px; font-weight: 500; }
.feed-help-status i { width: 6px; height: 6px; border-radius: 50%; background: #70767c; }
.feed-code-preview { margin-top: 14px; overflow: hidden; border: 1px solid #191c1d; border-radius: 12px; background: #090a0c; color: #e7e8e9; box-shadow: 0 1px 3px rgb(0 0 0 / 8%); }
.feed-code-preview__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid #292d30; color: #9ba0a5; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.feed-code-preview__head span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.feed-code-preview__head i { width: 9px; height: 9px; border-radius: 50%; background: #70767c; }
.feed-code-preview__head b { overflow: hidden; color: #d2d6d9; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.feed-code-preview pre { max-height: 190px; margin: 0; padding: 13px; overflow: auto; color: #d2d6d9; font: 400 11px/1.7 "JetBrains Mono", monospace; white-space: pre-wrap; }
.feed-code-preview code { padding: 0; background: transparent; }
.feed-code-copy { display: inline-flex; align-items: center; gap: 5px; margin: 0 13px 12px; padding: 4px 8px; border: 1px solid #3a3f44; border-radius: 7px; background: #191c1d; color: #c1c6ca; font-size: 10px; }
.feed-code-copy:hover { background: #303438; color: #fff; }
.feed-code-copy .zv-icon { width: 14px; height: 14px;  }
.feed-quote { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 12px 13px; border: 1px solid #e1e3e4; border-radius: 12px; background: #f8f9fa; color: #5f666d; font-size: 12px; line-height: 1.65; }
.feed-quote:hover { border-color: #c6c8cb; color: #303438; }
.feed-quote > .zv-icon { width: 16px; height: 16px; flex: none; margin-top: 1px; color: #777e85;  }
.feed-quote b { color: #303438; font-weight: 600; }
.feed-poll { margin-top: 14px; padding: 14px; border: 1px solid #e1e3e4; border-radius: 12px; background: #f3f4f5; }
.feed-poll__loading { display: flex; align-items: center; gap: 7px; color: #8b9197; font-size: 11px; }
.feed-poll__loading .zv-icon { width: 18px; height: 18px;  }
.feed-poll h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: #303438; font-size: 13px; line-height: 1.45; }
.feed-poll form { margin: 0; }
.feed-poll .poll-options { display: grid; gap: 8px; margin: 0; }
.feed-poll .poll-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 37px; padding: 8px 10px; overflow: hidden; border: 1px solid #dfe1e3; border-radius: 10px; background: #fff; color: #4f565d; font-size: 11px; }
/* 投票态（label）只有「单选钮 + 文字」两个子元素，复用结果态的 space-between
   会把文字顶到最右侧、离单选钮半个卡片宽。结果态（div，三元素）保持 space-between。 */
.feed-poll label.poll-option { justify-content: flex-start; cursor: pointer; }
.feed-poll label.poll-option:hover { border-color: #191c1d; }
.feed-poll .poll-option > * { position: relative; z-index: 1; }
.feed-poll .poll-option input { width: 14px; min-height: 14px; }
.feed-poll .poll-fill { position: absolute; inset: 0 auto 0 0; z-index: 0; border-radius: inherit; background: #e1e3e4; }
.feed-poll .poll-count { margin-left: auto; color: #777e85; font: 400 10px/1.3 "JetBrains Mono", monospace; white-space: nowrap; }
.feed-poll .poll-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; color: #8b9197; font-size: 10px; }
.feed-poll .poll-footer .button { min-height: 28px; padding: 4px 10px; border-radius: 8px; font-size: 10px; }
.feed-poll [data-poll-status] { margin: 6px 0 0; color: #b42318; font-size: 10px; }
.feed-actions { justify-content: space-between; gap: 12px; }
.feed-actions__main, .feed-actions__side { display: flex; align-items: center; gap: 20px; min-width: 0; }
.feed-actions__side { gap: 12px; margin-left: auto; }
.feed-actions .feed-action { min-width: 0; white-space: nowrap; }
.feed-actions .feed-action__count { color: inherit; font: 400 11px/1.3 "JetBrains Mono", monospace; }
.feed-actions .feed-action.is-active { color: #090a0c; }
.feed-actions .feed-action.is-active .zv-icon {  }
.feed-likers { display: inline-flex; align-items: center; min-width: 0; }
.feed-likers > span { position: relative; margin-left: -5px; }
.feed-likers > span:first-child { margin-left: 0; }
.feed-likers .avatar { width: 20px; height: 20px; border: 2px solid #fff; font-size: 8px; }
.feed-likers small { margin-left: 7px; color: #9ba0a5; font: 400 10px/1.3 "JetBrains Mono", monospace; white-space: nowrap; }
.feed-save { margin-left: 0; }
.detail-code-block { margin-top: 18px; padding: 13px; overflow: hidden; border: 1px solid #191c1d; border-radius: 12px; background: #090a0c; color: #d2d6d9; }
.detail-code-block > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid #292d30; color: #d2d6d9; font: 400 11px/1.3 "JetBrains Mono", monospace; }
.detail-code-block > div small { color: #8e949a; font: inherit; }
.detail-code-block pre { max-height: 560px; margin: 0; padding: 12px 0; overflow: auto; color: #d2d6d9; font: 400 12px/1.7 "JetBrains Mono", monospace; white-space: pre-wrap; }
.detail-code-block code { padding: 0; background: transparent; }
.detail-code-block .button { min-height: 29px; padding: 4px 10px; border-color: #3a3f44; border-radius: 8px; background: #191c1d; color: #d2d6d9; font-size: 11px; }
.detail-code-block .button:hover { background: #303438; color: #fff; }
@media (max-width: 640px) {
  .feed-author-tools { align-items: flex-end; flex-direction: column; }
  .feed-actions { align-items: flex-start; flex-direction: column; }
  .feed-actions__main, .feed-actions__side { width: 100%; gap: 14px; }
  .feed-actions__side { justify-content: space-between; margin-left: 0; }
  .feed-likers { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Stitch: plaza and work detail */
:root {
  --stitch-canvas: #f8f9fa;
  --stitch-ink: #191c1d;
  --stitch-muted: #71777f;
  --stitch-border: #e1e3e4;
  --stitch-soft: #f3f4f5;
  --stitch-black: #090a0c;
}

body.zaovibe-theme {
  background: var(--stitch-canvas);
  color: var(--stitch-ink);
}

/* 登录页第三方登录入口。 */
.auth-oauth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e1e3e4;
}
.auth-oauth > span {
  color: #8b9197;
  font-size: 12px;
}
.auth-oauth .button {
  flex: 1 1 auto;
  justify-content: center;
}

/* 发布页的代码 / 提示词面板：标题行（浅）→ 字段行（浅）→ 编辑器（深）三段式，
   避免"框里套框"，并让编辑器有明确高度与可读的占位文字。 */
.publish-code-editor { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.publish-code-editor__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: #f4f4f5;
}
.publish-code-editor__bar label { margin: 0 !important; color: var(--ink); font-size: 13px; font-weight: 600; }
.publish-code-editor > .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
.publish-code-editor > .form-grid .field { margin: 0; }
.publish-code-editor > .form-grid .field label { font-size: 12px; color: var(--muted); }
.publish-code-editor > .form-grid .field input { min-height: 34px; }
.publish-code-editor textarea {
  display: block;
  width: 100%;
  min-height: 220px;
  max-height: 380px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: #191c1d;
  color: #e4e4e7;
  font: 12px/1.75 "JetBrains Mono", monospace;
  resize: vertical;
}
.publish-code-editor textarea::placeholder { color: #7b8288; }
.publish-code-editor__note {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: #fafafa;
  color: var(--muted);
  font-size: 11px;
}

/* 05-pages.css */
/* 05-pages.css — 按原始书写顺序切分，保持层叠顺序与覆盖关系不变。 */
body {
  font-family: "Geist", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  height: 64px;
  background: rgb(255 255 255 / 80%);
  border-bottom-color: rgb(198 198 202 / 55%);
  backdrop-filter: blur(14px);
}
.site-header--detail { height: 72px; }
.site-header .wrap {
  width: min(1370px, 100%);
  height: 100%;
  padding-inline: 16px;
}
.nav { gap: 32px; }
.brand {
  gap: 8px;
  color: #090a0c;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--stitch-black);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}
.brand-word { display: inline-flex; }
.brand-word > span { color: #70757c; font-weight: 600; }
.site-header--detail .brand {
  gap: 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.site-header--detail .brand-mark {
  border-radius: 50%;
  font-size: 13px;
  letter-spacing: -0.08em;
}
.site-header--detail .brand-word > span { color: #191c1d; font-weight: 700; }
.search-trigger {
  width: 464px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgb(231 232 233 / 58%);
  color: #8a9097;
  font-size: 13px;
  text-align: left;
}
.search-trigger:hover,
.search-trigger:focus-visible { background: #fff; border-color: #d4d6d8; color: #191c1d; }
.search-trigger .zv-icon { width: 19px; height: 19px; color: #8c9298; }
/* 搜索框是头部唯一可伸缩项：固定宽度 + flex 项默认 min-width:auto 会让它在中等视口
   顶不动，挤压转嫁给导航和「发布」按钮。这里允许收缩，文字走省略号。 */
.site-header--detail .search-trigger { flex: 0 1 384px; min-width: 0; max-width: 384px; border-radius: 999px; }
.site-header--detail .search-trigger span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-actions { gap: 12px; }
.header-publish {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--stitch-black);
  border-color: var(--stitch-black);
  font-size: 13px;
  /* 中等视口（~1024–1200px）导航与搜索框一起挤压时，两个字的标签会折成两行。
     按钮文字永不换行，把挤压让给可伸缩的搜索框。 */
  white-space: nowrap;
  box-shadow: 0 4px 14px rgb(9 10 12 / 18%);
}
.header-publish .zv-icon { width: 17px; height: 17px; }
.site-header--detail .header-publish { border-radius: 999px; }
.header-notifications { position: relative; width: 40px; height: 40px; border-radius: 50%; color: #5e646b; }
.header-notifications .zv-icon { width: 21px; height: 21px;  }
.notification-dot { position: absolute; top: 10px; right: 10px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--stitch-black); }
.avatar-link {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dfe1e3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}
.site-header--detail .avatar-link { border-radius: 50%; }
.avatar-link .avatar { width: 100%; height: 100%; border-radius: inherit; }
.avatar.is-fallback { display: grid; place-items: center; background: #e5e7e9; color: #646a70; font-size: 12px; }
.avatar.is-fallback .avatar__fallback { display: block; }
.account-menu { top: 66px; right: max(16px, calc((100% - 1370px) / 2)); border-radius: 12px; }
.site-header--detail .account-menu { top: 74px; }

.community-layout {
  width: min(1370px, 100%);
  min-height: calc(100vh - 64px);
  margin-inline: auto;
  padding: 32px 16px 64px;
  display: grid;
  grid-template-columns: minmax(220px, 268px) minmax(0, 660px);
  align-items: start;
  gap: 32px;
}
.community-sidebar { min-height: calc(100vh - 110px); }
.sidebar-intro { display: flex; align-items: flex-start; justify-content: space-between; padding: 1px 12px 12px; }
.sidebar-intro h2 { margin: 0; font-size: 15px; line-height: 1.35; letter-spacing: -.01em; }
.sidebar-intro p { margin: 3px 0 0; color: #9ba0a5; font-size: 12px; }
.sidebar-pro { padding: 2px 7px; border: 1px solid #e1e3e4; border-radius: 999px; color: #6f7479; font: 500 10px/1.4 "JetBrains Mono", monospace; }
.sidebar-primary { display: flex; flex-direction: column; gap: 2px; }
.side-link { min-height: 39px; margin: 0; padding: 8px 14px; border-radius: 12px; color: #646a70; font-size: 13.5px; }
.side-link:hover { background: rgb(231 232 233 / 58%); color: #090a0c; }
.side-link.is-active { background: var(--stitch-black); color: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
.side-link__label { display: inline-flex; align-items: center; gap: 10px; }
.side-link .zv-icon { width: 19px; height: 19px; width: 19px;  color: #9ca1a6; }
.side-link.is-active .zv-icon { color: #fff; }
.side-count { color: #a0a5aa; font: 500 11px/1.4 "JetBrains Mono", monospace; }
.side-link.is-active .side-count { padding: 2px 6px; border-radius: 999px; background: rgb(255 255 255 / 17%); color: #fff; }
.sidebar-section { margin-top: 14px; padding: 14px 0 0; border-top: 1px solid rgb(198 198 202 / 58%); }
.sidebar-section__head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 7px; color: #9ba0a5; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-section__head a, .sidebar-section__head small { color: #9ba0a5; font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.sidebar-topics { display: flex; flex-direction: column; gap: 1px; }
.sidebar-topics a { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 8px; color: #646a70; font-size: 13px; }
.sidebar-topics a:hover { background: rgb(231 232 233 / 58%); color: #090a0c; }
.sidebar-topics i { width: 6px; height: 6px; border-radius: 50%; background: #a8adb2; }
.sidebar-topics a:hover i { background: #090a0c; }
.sidebar-creators { padding-bottom: 4px; }
.creator-mini { display: flex; align-items: center; gap: 8px; min-height: 35px; padding: 3px 8px; border-radius: 8px; }
.creator-mini:hover { background: rgb(231 232 233 / 45%); }
.creator-mini__avatar { display: grid; place-items: center; width: 28px; height: 28px; overflow: hidden; border: 1px solid #d2d5d8; border-radius: 7px; background: #e9eaeb; color: #646a70; font-size: 10px; font-weight: 700; }
.creator-mini__avatar .avatar { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.creator-mini__avatar--dark { background: #191c1d; color: #fff; border-color: #191c1d; }
.creator-mini__copy { min-width: 0; flex: 1; line-height: 1.2; }
.creator-mini__copy strong, .creator-mini__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-mini__copy strong { color: #303438; font-size: 12px; }
.creator-mini__copy small { margin-top: 2px; color: #9ba0a5; font-size: 10px; }
.creator-mini button { padding: 2px 7px; border: 1px solid #dfe1e3; border-radius: 6px; background: #fff; color: #565c62; font-size: 11px; }
.creator-mini button:hover { border-color: #090a0c; color: #090a0c; }
.sidebar-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding: 14px 12px 0; border-top: 1px solid rgb(198 198 202 / 58%); color: #a1a6ab; font-size: 11px; }
.sidebar-footer span:last-child { display: flex; gap: 8px; }

.feed-main { width: 100%; max-width: 660px; min-width: 0; margin-inline: auto; }
.feed-heading { margin: 0 0 24px; padding: 0; }
.feed-heading h1 { margin: 0 0 3px; color: #090a0c; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.feed-heading .lede { margin: 0; color: #8c9298; font-size: 13px; }
.feed-filter-bar { position: sticky; top: 64px; z-index: 20; display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0 -4px 16px; padding: 1px 4px 14px; border-bottom: 1px solid rgb(198 198 202 / 62%); background: rgb(248 249 250 / 90%); backdrop-filter: blur(13px); }
.feed-category-tabs { display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.feed-category-tabs::-webkit-scrollbar { display: none; }
.feed-category-tabs a { padding: 2px 1px 12px; margin-bottom: -15px; color: #858b91; font-size: 14px; white-space: nowrap; }
.feed-category-tabs a:hover, .feed-category-tabs a.is-active { color: #090a0c; }
.feed-category-tabs a.is-active { border-bottom: 2px solid #090a0c; font-weight: 600; }
.feed-list { display: flex; flex-direction: column; gap: 20px; }
.feed-row { position: relative; margin: 0; padding: 24px; border: 1px solid rgb(198 198 202 / 52%); border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 4%), 0 1px 2px -1px rgb(0 0 0 / 4%); transition: border-color .18s ease, box-shadow .18s ease; }
.feed-row:hover { border-color: #cfd2d5; box-shadow: 0 8px 24px -4px rgb(0 0 0 / 6%), 0 2px 6px -2px rgb(0 0 0 / 4%); }
.feed-author-row { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.feed-author-avatar .avatar { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px #e1e3e4; }
.feed-author-avatar .avatar__image { filter: grayscale(20%); }
.feed-author-info { min-width: 0; flex: 1; }
.feed-author-name-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.feed-author-name { color: #090a0c; font-size: 14px; font-weight: 600; line-height: 1.2; }
.feed-author-badge { padding: 2px 6px; border: 1px solid #e1e3e4; border-radius: 4px; background: #f3f4f5; color: #62686e; font-size: 10px; }
.feed-author-info .content-meta { gap: 7px; margin: 3px 0 0; color: #a0a5aa; font-size: 11px; }
.feed-category-badge { padding: 2px 6px; border: 1px solid #e1e3e4; border-radius: 4px; background: #f3f4f5; color: #555b61; font-size: 10px; font-weight: 500; }
.feed-views { display: inline-flex; align-items: center; gap: 2px; }
.feed-views .zv-icon { width: 13px; height: 13px;  }
.feed-author-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.feed-author-tools { position: relative; }
.feed-featured { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px; background: #191c1d; color: #fff; font-size: 10px; font-weight: 500; }
.feed-featured .zv-icon { width: 13px; height: 13px;  }
.feed-more { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #a2a7ac; }
.feed-more:hover { background: #f3f4f5; color: #555b61; }
.feed-more .zv-icon { width: 20px; height: 20px;  }
.feed-menu { position: absolute; top: 32px; right: 0; z-index: 25; width: 136px; padding: 5px; border: 1px solid #dfe1e3; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgb(9 10 12 / 12%); }
.feed-menu a, .feed-menu button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: #4f565d; font-size: 11px; text-align: left; }
.feed-menu a:hover, .feed-menu button:hover { background: #f1f2f3; color: #090a0c; }
.feed-menu .zv-icon { width: 16px; height: 16px;  }
.feed-copy h2 { margin: 0 0 6px; color: #090a0c; font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -.015em; }
.feed-copy h2 a:hover { color: #62686e; }
.feed-summary { display: -webkit-box; overflow: hidden; margin: 0; color: #5f666d; font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.feed-preview { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 340px; margin: 16px 0 0; overflow: hidden; border: 1px solid #e1e3e4; border-radius: 12px; background: #f3f4f5; }
.feed-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.feed-preview:hover img { transform: scale(1.01); }
.feed-preview-label { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 7px; background: rgb(9 10 12 / 78%); color: #fff; font: 500 10px/1.3 "JetBrains Mono", monospace; }
.feed-preview-label i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.feed-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 13px; }
.feed-tags a { padding: 2px 7px; border: 1px solid #e1e3e4; border-radius: 4px; background: #f3f4f5; color: #646a70; font: 400 11px/1.5 "JetBrains Mono", monospace; }
.feed-tags a:hover { background: #e7e8e9; color: #191c1d; }
.feed-poll { margin-top: 14px; padding: 14px; border: 1px solid #e1e3e4; border-radius: 12px; background: #f3f4f5; }
.feed-poll__head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #292e33; font-size: 12px; }
.feed-poll__head .zv-icon { width: 18px; height: 18px;  }
.feed-poll__head small { margin-left: auto; color: #9da2a7; font-size: 10px; }
.feed-poll > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 31px; margin-top: 6px; padding: 5px 8px; border: 1px solid #dfe1e3; border-radius: 7px; background: #fff; color: #555b61; font-size: 11px; }
.feed-poll > a:hover { border-color: #191c1d; color: #191c1d; }
.feed-poll > a .zv-icon { width: 15px; height: 15px;  color: #a0a5aa; }
.feed-actions { display: flex; align-items: center; gap: 20px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #eef0f1; color: #646a70; font-size: 12px; }
.feed-actions a, .feed-actions button { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: transparent; color: inherit; font-size: 12px; font-weight: 500; }
.feed-actions a:hover, .feed-actions button:hover, .feed-actions [aria-pressed="true"] { color: #090a0c; }
.feed-actions .zv-icon { width: 18px; height: 18px;  }
.feed-actions [data-relation="like"].is-active [data-relation-icon], .detail-side-actions [data-relation="like"].is-active [data-relation-icon], .detail-quick-actions [data-relation="like"].is-active [data-relation-icon] { font-variation-settings: "FILL" 1; color: #090a0c; }
.feed-save { margin-left: auto; }

.community-widgets { display: none; width: 100%; min-width: 0; gap: 20px; }
.community-widget { padding: 20px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 4%); }
.community-widget h2 { margin: 0; color: #090a0c; font-size: 14px; line-height: 1.35; font-weight: 700; }
.widget-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.widget-heading > span:last-child, .widget-heading > small { color: #9ba0a5; font: 400 10px/1.3 "JetBrains Mono", monospace; white-space: nowrap; }
.widget-heading > a { margin-left: auto; color: #9ba0a5; font-size: 10px; }
.community-widget textarea { display: block; min-height: 64px; margin: 0 0 10px; padding: 10px 12px; resize: none; border: 1px solid #e1e3e4; border-radius: 11px; background: #f8f9fa; color: #191c1d; font-size: 12px; }
.community-widget textarea::placeholder { color: #adb2b7; }
.widget-actions { display: flex; align-items: center; justify-content: space-between; margin: 0; }
.widget-tools { display: flex; align-items: center; gap: 1px; }
.widget-tools .icon-button { width: 28px; height: 28px; border-radius: 8px; color: #70767c; }
.widget-tools .zv-icon { width: 18px; height: 18px;  }
.widget-actions .button { min-height: 30px; padding: 4px 13px; border-radius: 9px; font-size: 12px; }
.community-widget--dark { padding: 16px; border-color: #191c1d; background: #090a0c; color: #fff; box-shadow: 0 4px 14px rgb(9 10 12 / 20%); }
.community-widget--dark h2 { margin: 11px 0 5px; color: #fff; font-size: 14px; }
.community-widget--dark p { margin: 0 0 10px; color: #a6abb0; font-size: 11px; line-height: 1.6; }
.challenge-head, .challenge-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.challenge-head span { padding: 3px 7px; border-radius: 4px; background: rgb(255 255 255 / 14%); color: #fff; font-size: 10px; font-weight: 600; }
.challenge-head small, .challenge-foot span { color: #8e949a; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.challenge-foot { padding-top: 9px; border-top: 1px solid #272a2d; }
.challenge-foot a { padding: 4px 8px; border-radius: 6px; background: #fff; color: #090a0c; font-size: 10px; font-weight: 700; }
.widget-heading--icon { justify-content: flex-start; }
.widget-heading--icon .widget-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #f3f4f5; color: #3f454b; }
.widget-icon .zv-icon { width: 16px; height: 16px;  }
.widget-heading--icon h2 { flex: 1; }
.ranking-list { display: flex; flex-direction: column; gap: 12px; }
.ranking-item { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ranking-item > strong { width: 11px; color: #191c1d; font: 700 12px/1.3 "JetBrains Mono", monospace; }
.ranking-thumb { display: grid; place-items: center; width: 40px; height: 40px; flex: none; overflow: hidden; border: 1px solid #e1e3e4; border-radius: 8px; background: #f3f4f5; color: #62686e; font-size: 11px; font-weight: 700; }
.ranking-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); }
.ranking-thumb--fallback { background: #191c1d; color: #fff; }
.ranking-copy { min-width: 0; flex: 1; }
.ranking-copy b, .ranking-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-copy b { color: #303438; font-size: 12px; font-weight: 500; }
.ranking-copy small { margin-top: 3px; color: #9ba0a5; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.widget-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.widget-tags a { padding: 4px 8px; border: 1px solid #e1e3e4; border-radius: 7px; background: #f3f4f5; color: #62686e; font-size: 11px; }
.widget-tags a:hover { border-color: #090a0c; background: #090a0c; color: #fff; }
.widget-tips { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: #62686e; font-size: 11px; line-height: 1.55; }
.widget-tips li { display: flex; align-items: flex-start; gap: 7px; }
.widget-tips .zv-icon { width: 15px; height: 15px; flex: none; margin-top: 1px; color: #191c1d;  }

.mobile-community-nav { display: none; }
@media (min-width: 1024px) {
  .feed-category-tabs { display: none; }
}
@media (min-width: 1280px) {
  .community-layout { grid-template-columns: minmax(220px, 268px) minmax(0, 660px) minmax(280px, 338px); gap: 36px; }
  .community-widgets { display: flex; flex-direction: column; align-self: start; }
  .feed-filter-bar { flex-direction: row; align-items: center; justify-content: flex-start; }
}
@media (min-width: 768px) {
  .feed-filter-bar { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 1023px) {
  .community-layout { display: block; }
  .community-sidebar { display: none; }
  .feed-main { max-width: 660px; }
}
@media (max-width: 640px) {
  .site-header .wrap { padding-inline: 12px; }
  .nav { gap: 10px; }
  .site-header .wrap { min-width: 0; }
  .brand { min-width: 0; flex: 1 1 auto; gap: 6px; font-size: 18px; }
  .brand-word { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-mark { width: 28px; height: 28px; border-radius: 10px; font-size: 14px; }
  .site-header--detail .brand { font-size: 18px; }
  .site-header--detail .brand-mark { width: 28px; height: 28px; }
  .search-trigger { width: 32px; height: 36px; padding: 6px; border: 0; background: transparent; }
  .search-trigger span { display: none; }
  .search-trigger .zv-icon { width: 20px; height: 20px; }
  .nav-actions { min-width: 0; flex: none; gap: 5px; }
  .header-publish { min-height: 32px; padding: 4px 9px; border-radius: 9px; white-space: nowrap; }
  .header-publish .zv-icon { display: none; }
  .header-publish span { font-size: 12px; }
  .header-notifications { width: 32px; height: 32px; }
  .header-notifications .zv-icon { width: 19px; height: 19px;  }
  .avatar-link { width: 32px; height: 32px; border-radius: 10px; }
  .site-header--detail .avatar-link { border-radius: 50%; }
  .community-layout { padding: 18px 12px 86px; }
  .feed-heading { margin-bottom: 20px; }
  .feed-heading h1 { font-size: 23px; }
  .feed-heading .lede { font-size: 12px; }
  .feed-filter-bar { top: 64px; margin-inline: -12px; padding-inline: 12px; }
  .feed-category-tabs { gap: 14px; }
  .feed-category-tabs a { font-size: 12px; }
  .feed-tabs { margin-left: 0; }
  .feed-row { padding: 18px; border-radius: 14px; }
  .feed-featured { display: none; }
  .feed-copy h2 { font-size: 17px; }
  .feed-summary { font-size: 12px; }
  .feed-actions { gap: 15px; }
  .feed-actions .feed-save span:last-child { display: none; }
  .mobile-community-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: flex; align-items: center; height: 64px; border-top: 1px solid #e1e3e4; background: rgb(255 255 255 / 95%); box-shadow: 0 -5px 18px rgb(0 0 0 / 5%); backdrop-filter: blur(14px); }
  .mobile-community-nav > a, .mobile-community-nav > button { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; background: transparent; color: #9ba0a5; font-size: 10px; }
  .mobile-community-nav > a.is-active { color: #090a0c; font-weight: 600; }
  .mobile-community-nav .zv-icon { width: 23px; height: 23px;  }
  .mobile-community-nav__create { position: relative; top: -10px; width: 48px !important; height: 48px !important; flex: none; border: 3px solid #fff !important; border-radius: 50%; background: #090a0c !important; color: #fff !important; box-shadow: 0 4px 14px rgb(9 10 12 / 20%); }
  .mobile-community-nav__create .zv-icon { width: 24px; height: 24px;  }
}
.detail-side-actions { display: flex; flex-direction: column; gap: 2px; padding: 7px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 4%); }
.detail-side-actions button, .detail-side-actions a { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 32px; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: #646a70; font-size: 12px; text-align: left; }
.detail-side-actions button:hover, .detail-side-actions a:hover { background: #f3f4f5; color: #191c1d; }
.detail-side-actions button > span, .detail-side-actions a > span { display: inline-flex; align-items: center; gap: 7px; }
.detail-side-actions strong { color: #9da2a7; font: 600 11px/1.2 "JetBrains Mono", monospace; }
.detail-side-actions .zv-icon { width: 17px; height: 17px;  }
.detail-side-actions i { height: 1px; margin: 3px 4px; background: #eef0f1; }
.detail-toc__label { display: flex; align-items: center; gap: 5px; margin: 0 0 5px -2px; color: #9da2a7; font: 600 10px/1.4 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.detail-toc__label .zv-icon { width: 14px; height: 14px;  }
.detail-content { padding: 32px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px -4px rgb(0 0 0 / 6%), 0 2px 6px -2px rgb(0 0 0 / 4%); }
.detail-content__header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #eef0f1; }
.detail-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; color: #9ba0a5; font-size: 11px; }
.detail-kicker__primary, .detail-kicker__status { padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; }
.detail-kicker__primary { background: #191c1d; color: #fff; }
.detail-kicker__status { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e1e3e4; background: #f3f4f5; color: #4f565d; }
.detail-kicker__status i { width: 6px; height: 6px; border-radius: 50%; background: #191c1d; }
.detail-kicker__date { margin-left: auto; }
/* 「删除这条内容」从「作品操作」卡底部挪到元信息行（给「举报」腾出固定位置），
   这里按 kicker 的尺寸收小，与 .detail-kicker__status 胶囊保持一致。 */
.detail-kicker .detail-delete { padding: 3px 8px; border-radius: 5px; font-size: 11px; }
.detail-kicker .detail-delete .zv-icon { width: 13px; height: 13px; }
.detail-content__header h1 { margin: 0 0 16px; color: #191c1d; font-size: 32px; line-height: 1.16; font-weight: 700; letter-spacing: -.03em; }
.detail-stage { margin-bottom: 28px; overflow: hidden; border: 1px solid #26292c; border-radius: 16px; background: #090a0c; color: #fff; box-shadow: 0 4px 14px rgb(9 10 12 / 20%); }
.detail-stage__bar, .detail-stage__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; background: #191c1d; }
.detail-stage__bar { border-bottom: 1px solid #292d30; }
.stage-dots { display: flex; gap: 5px; align-items: center; }
.stage-dots i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #383d42; }
.stage-url { display: inline-flex; align-items: center; gap: 4px; margin-right: auto; color: #949ba2; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.stage-url .zv-icon { width: 13px; height: 13px;  color: #6e767e; }
.stage-version { padding: 3px 7px; border-radius: 4px; background: #292d30; color: #979ea5; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.detail-stage__canvas { position: relative; display: flex; min-height: 360px; align-items: center; justify-content: center; overflow: hidden; background: #090a0c; }
.detail-stage__canvas img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.detail-stage-empty { display: flex; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px; color: #8e949a; text-align: center; }
.detail-stage-empty .zv-icon { width: 34px; height: 34px; color: #fff;  }
.detail-stage-empty strong { color: #fff; font-size: 15px; }
.detail-stage-empty span:last-child { font-size: 11px; }
.detail-stage__footer { padding-block: 12px; border-top: 1px solid #292d30; color: #989fa6; font-size: 11px; }
.detail-stage__footer > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.detail-stage__footer > span:first-child i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.detail-stage__footer b { color: #555c63; font-weight: 400; }
.detail-stage__footer > span:last-child { display: flex; align-items: center; gap: 8px; }
.detail-stage__footer a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 6px; background: #fff; color: #090a0c; font-size: 11px; font-weight: 500; }
.detail-stage__footer a.is-dark { background: #292d30; color: #d2d6d9; }
.detail-stage__footer .zv-icon { width: 15px; height: 15px;  }
.detail-memo { color: #5f666d; font-size: 14px; line-height: 1.8; }
.detail-memo h2, .detail-timeline h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 11px; color: #191c1d; font-size: 17px; line-height: 1.35; }
.detail-memo h2 .zv-icon, .detail-timeline h2 .zv-icon { width: 20px; height: 20px;  }
.detail-entry-content > * { margin: 0 0 12px; }
.detail-entry-content > *:last-child { margin-bottom: 0; }
.detail-entry-content p { color: #5f666d; }
.detail-entry-content a { color: #191c1d; text-decoration: underline; text-underline-offset: 3px; }
.detail-entry-content pre { overflow: auto; padding: 14px; border-radius: 9px; background: #191c1d; color: #e7e8e9; font: 12px/1.65 "JetBrains Mono", monospace; }
.detail-architecture { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 23px 0 28px; }
.detail-architecture article { padding: 15px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 12px; background: rgb(243 244 245 / 60%); }
.detail-architecture h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 5px; color: #303438; font-size: 13px; }
.detail-architecture h3 .zv-icon { width: 18px; height: 18px;  }
.detail-architecture p { margin: 0; color: #80868c; font-size: 11px; line-height: 1.55; }
.detail-poll { margin-bottom: 28px; padding: 22px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 14px; background: #f3f4f5; }
.detail-poll h3 { margin: 0 0 13px; color: #303438; font-size: 15px; }
.detail-poll form { margin: 0; }
.detail-poll .poll-options { display: grid; gap: 8px; }
.detail-poll .poll-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 10px 12px; border: 1px solid #dfe1e3; border-radius: 10px; background: #fff; color: #4f565d; font-size: 12px; }
/* 同上：投票态两元素，不能用 space-between 撑开。 */
.detail-poll label.poll-option { justify-content: flex-start; cursor: pointer; }
.detail-poll label.poll-option:hover { border-color: #191c1d; }
.detail-poll .poll-option input { width: 15px; min-height: 15px; }
.detail-poll .poll-fill { position: absolute; inset: 0 auto 0 0; z-index: 0; border-radius: inherit; background: #e1e3e4; }
.detail-poll .poll-option > span:not(.poll-fill), .detail-poll .poll-option > .poll-count { position: relative; z-index: 1; }
.detail-poll .poll-count { color: #80868c; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.detail-poll .poll-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; color: #8b9197; font-size: 11px; }
.detail-poll .poll-footer .button { min-height: 30px; padding: 4px 12px; border-radius: 8px; font-size: 11px; }
.detail-poll [data-poll-status] { margin: 7px 0 0; color: #b42318; font-size: 11px; }
.detail-timeline { margin-bottom: 28px; padding-top: 25px; border-top: 1px solid #eef0f1; }
.detail-timeline__list { display: grid; gap: 15px; }
.detail-timeline__list article { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; }
.detail-timeline__rail { position: relative; display: flex; align-items: center; flex-direction: column; }
.detail-timeline__rail i { z-index: 1; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #9da2a7; }
.detail-timeline__rail i.is-current { background: #191c1d; }
.detail-timeline__rail b { width: 2px; flex: 1; margin-top: 4px; background: #e1e3e4; }
.detail-timeline__list p { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 4px; }
.detail-timeline__list strong { color: #303438; font: 600 12px/1.3 "JetBrains Mono", monospace; }
.detail-timeline__list em { padding: 2px 5px; border-radius: 3px; background: #f3f4f5; color: #777e85; font-size: 10px; font-style: normal; }
.detail-timeline__list em.is-planned { border: 1px solid #e1e3e4; background: #fff; }
.detail-timeline__list time { color: #a0a5aa; font-size: 10px; }
.detail-timeline__list article > div > span { color: #687078; font-size: 12px; line-height: 1.6; }
.detail-comments { padding-top: 25px; border-top: 1px solid #eef0f1; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.detail-section-head h2 { display: flex; align-items: center; gap: 7px; margin: 0; color: #191c1d; font-size: 18px; line-height: 1.35; }
.detail-section-head h2 > .zv-icon { width: 20px; height: 20px;  }
.detail-section-head h2 span:not(.zv-icon) { width: 10px; height: 10px; padding: 2px 6px; border: 1px solid #e1e3e4; border-radius: 999px; background: #f3f4f5; color: #777e85;  font-weight: 600; }
.detail-section-head > div { display: flex; align-items: center; gap: 7px; color: #9ba0a5; font-size: 11px; }
.detail-section-head > div b { color: #303438; font-weight: 500; }
.detail-comment-form { display: flex; gap: 11px; margin-bottom: 24px; }
.detail-comment-form__avatar .avatar, .detail-comment__avatar .avatar { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px #e1e3e4; }
.detail-comment-box { flex: 1; padding: 10px 12px; border: 1px solid #dfe1e3; border-radius: 11px; background: #fff; }
.detail-comment-box:focus-within { border-color: #191c1d; }
.detail-comment-box textarea { display: block; min-height: 43px; padding: 3px 0; resize: vertical; border: 0; outline: 0; background: transparent; font-size: 12px; }
.detail-comment-box > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid #eef0f1; color: #a0a5aa; font-size: 10px; }
.detail-comment-box .button { min-height: 29px; padding: 4px 11px; border-radius: 7px; font-size: 11px; }
.detail-comment-box [data-reply-label], .detail-comment-box [data-form-status] { display: block; margin: 5px 0 0; color: #777e85; font-size: 10px; }
.detail-comment-box [data-form-status] { color: #18794e; }
.detail-comment-list { display: grid; gap: 19px; }
.detail-comment { display: flex; gap: 10px; }
.detail-comment.is-reply { margin-left: 38px; }
.detail-comment__body { min-width: 0; flex: 1; }
.detail-comment__card { padding: 11px 12px; border: 1px solid rgb(198 198 202 / 48%); border-radius: 11px; background: #f8f9fa; }
.detail-comment__card > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 5px; }
.detail-comment__card b { color: #303438; font-size: 12px; }
.detail-comment__card em { padding: 2px 5px; border-radius: 3px; background: #191c1d; color: #fff; font-size: 9px; font-style: normal; }
.detail-comment__card time { margin-left: auto; color: #a0a5aa; font-size: 10px; }
.detail-comment__card p { margin: 0; color: #5f666d; font-size: 12px; line-height: 1.65; }
.detail-comment__card p p { margin-top: 7px; }
.detail-comment__actions { display: flex; align-items: center; gap: 16px; padding: 5px 2px 0; color: #838a91; font-size: 11px; }
.detail-comment__actions button, .detail-comment__like-count { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; }
.detail-comment__actions button:hover { color: #191c1d; }
.detail-comment__actions .zv-icon { width: 15px; height: 15px;  }
.detail-login-comment { margin-bottom: 20px; }
.detail-login-comment .button { min-height: 32px; padding: 5px 12px; font-size: 11px; }
.detail-sidebar-card { padding: 20px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 4%); }
.detail-quick-actions > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 11px; }
.detail-quick-actions > div:empty { display: none; }
.detail-quick-actions .button { min-height: 35px; padding: 6px 8px; border-radius: 9px; font-size: 11px; }
.detail-quick-actions .zv-icon { width: 16px; height: 16px;  }
.detail-quick-actions footer { display: flex; justify-content: space-between; gap: 6px; padding-top: 10px; border-top: 1px solid #eef0f1; }
.detail-quick-actions footer button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: #646a70; font-size: 10px; white-space: nowrap; }
.detail-quick-actions footer button:hover { color: #191c1d; }
.detail-quick-actions footer .zv-icon { width: 16px; height: 16px;  }
.detail-sidebar-card > h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid #eef0f1; color: #303438; font-size: 14px; line-height: 1.35; }
.detail-sidebar-card > h2 .zv-icon { width: 18px; height: 18px;  }
.detail-sidebar-card dl { display: grid; gap: 11px; margin: 0; }
.detail-sidebar-card dl div { display: flex; justify-content: space-between; gap: 10px; }
.detail-sidebar-card dt { color: #8b9197; font-size: 11px; }
.detail-sidebar-card dd { max-width: 145px; margin: 0; color: #303438; font: 500 10px/1.4 "JetBrains Mono", monospace; text-align: right; }
.detail-tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-tech-tags span { padding: 3px 6px; border: 1px solid #e1e3e4; border-radius: 4px; background: #f3f4f5; color: #62686e; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.detail-tech-tags a { color: inherit; text-decoration: none; }
.detail-sidebar-card dd.detail-tech-tags { max-width: none; justify-content: flex-end; text-align: left; }
.detail-creator-card { background: #f3f4f5; }
/* 与另外三张卡统一：标题下保留分隔线。灰底上基础色 #eef0f1 几乎看不见，改用深一档的线。 */
.detail-creator-card > h2 { padding-bottom: 14px; border-bottom: 1px solid #e1e3e4; }
.detail-creator-head { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.detail-creator-head .avatar { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px #e1e3e4; }
.detail-creator-head b, .detail-creator-head small { display: block; }
.detail-creator-head b { color: #303438; font-size: 13px; }
.detail-creator-head small { margin-top: 3px; color: #848b92; font-size: 10px; }
.detail-creator-card > p { margin: 0 0 12px; color: #687078; font-size: 11px; line-height: 1.55; }
.detail-creator-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 12px; padding: 10px 5px; border: 1px solid #e1e3e4; border-radius: 10px; background: #fff; text-align: center; }
.detail-creator-stats b, .detail-creator-stats small { display: block; }
.detail-creator-stats b { color: #191c1d; font: 700 14px/1.2 "JetBrains Mono", monospace; }
.detail-creator-stats small { margin-top: 4px; color: #a0a5aa; font-size: 9px; }
.detail-message { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; min-height: 32px; border: 1px solid #dfe1e3; border-radius: 9px; background: #fff; color: #62686e; font-size: 11px; }
.detail-message:hover { border-color: #191c1d; color: #191c1d; }
.detail-message .zv-icon { width: 16px; height: 16px;  }
.detail-message.is-active { background: #f3f4f5; }
/* 「关注作者」与下方统计块此前贴死（间距 0，而卡片内其余间距是 11–14px），补回节奏。 */
.detail-creator-card > .detail-message { margin-bottom: 12px; }

.user-profile-page { padding: 36px 0 72px; }
.user-profile-page > .wrap { width: min(1120px, 100%); }
.user-profile-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; padding: 28px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 4%); }
.user-profile-head__identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.user-profile-head__identity > .avatar { width: 72px; height: 72px; border-radius: 18px; }
.user-profile-head .section-label { margin: 0 0 4px; color: #92989e; font-size: 11px; }
.user-profile-head h1 { margin: 0 0 4px; color: #090a0c; font-size: 28px; }
.user-profile-head .muted { margin: 0; font-size: 12px; }
.action-cluster { display: flex; align-items: center; gap: 8px; }
.user-profile-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 28px; }
.user-profile-aside { position: sticky; top: 88px; padding: 20px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 14px; background: #fff; }
.user-profile-aside .lede { margin: 0 0 18px; color: #62686e; font-size: 13px; }
.profile-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 12px 0; border-block: 1px solid #eef0f1; text-align: center; }
.profile-facts div { display: flex; flex-direction: column-reverse; }
.profile-facts dt { color: #9aa0a6; font-size: 9px; }
.profile-facts dd { margin: 0 0 3px; color: #191c1d; font: 700 14px/1.2 "JetBrains Mono", monospace; }
.profile-links { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.profile-links h2 { margin: 0 0 3px; font-size: 13px; }
.profile-links a, .profile-links > span { color: #687078; font-size: 11px; }
.profile-skills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.profile-skills span { padding: 3px 6px; border: 1px solid #e1e3e4; border-radius: 5px; background: #f3f4f5; font-size: 10px; }
.user-profile-content { min-width: 0; }
.profile-tabs { display: flex; gap: 22px; margin-bottom: 20px; border-bottom: 1px solid #dfe1e3; }
.profile-tabs a { display: inline-flex; align-items: center; gap: 5px; margin-bottom: -1px; padding: 8px 1px 11px; color: #858b91; font-size: 12px; }
.profile-tabs a.is-active { border-bottom: 2px solid #090a0c; color: #090a0c; font-weight: 600; }
.profile-tabs span { color: #a0a5aa; font: 500 9px/1.3 "JetBrains Mono", monospace; }
.user-profile-content > .section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.user-profile-content > .section-head h2 { margin: 0; font-size: 18px; }
.user-profile-content > .section-head .muted { font-size: 11px; }
.user-profile-content .feed-row { padding: 22px; }
.publish-builder-fields { display: grid; gap: 16px; padding: 18px; border: 1px solid #e1e3e4; border-radius: 12px; background: #f8f9fa; }
.detail-related { margin-top: 24px; }
.detail-related .detail-section-head { margin-bottom: 13px; }
.detail-related .detail-section-head h2 { font-size: 17px; }
.detail-related .detail-section-head > a { display: inline-flex; align-items: center; gap: 3px; color: #7f868d; font-size: 11px; }
.detail-related .detail-section-head > a:hover { color: #191c1d; }
.detail-related .detail-section-head > a .zv-icon { width: 15px; height: 15px;  }
.detail-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-related-card { min-width: 0; padding: 16px; border: 1px solid rgb(198 198 202 / 58%); border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 3%); }
.detail-related-card:hover { border-color: #b7bbc0; }
.detail-related-card > div, .detail-related-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.detail-related-card > div > span:first-child { padding: 3px 6px; border-radius: 4px; background: #f3f4f5; color: #737a81; font: 400 10px/1.3 "JetBrains Mono", monospace; }
.detail-related-card > div > .zv-icon { width: 16px; height: 16px; color: #a0a5aa;  }
.detail-related-card h3 { margin: 13px 0 5px; color: #303438; font-size: 13px; line-height: 1.4; }
.detail-related-card p { display: -webkit-box; overflow: hidden; min-height: 36px; margin: 0 0 11px; color: #7d848b; font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.detail-related-card footer { padding-top: 9px; border-top: 1px solid #eef0f1; color: #a0a5aa; font-size: 10px; }
.detail-related-card footer > span:last-child { display: inline-flex; align-items: center; gap: 3px; }
.detail-related-card footer .zv-icon { width: 14px; height: 14px;  }
@media (max-width: 820px) {
  .detail-sidebar-card:last-child { grid-column: 1 / -1; }
  .user-profile-grid { grid-template-columns: 1fr; }
  .user-profile-aside { position: static; }
}
@media (max-width: 640px) {
  .site-header--detail { height: 64px; }
  .detail-content { padding: 20px; border-radius: 14px; }
  .detail-content__header { margin-bottom: 21px; padding-bottom: 19px; }
  .detail-kicker__date { width: 100%; margin-left: 0; }
  .detail-content__header h1 { max-width: 100%; font-size: clamp(22px, 7vw, 27px); overflow-wrap: anywhere; word-break: break-word; }
  .detail-stage { margin-inline: -4px; border-radius: 13px; }
  .detail-stage__bar, .detail-stage__footer { padding-inline: 11px; }
  .stage-url { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stage-version { display: none; }
  .detail-stage__canvas { min-height: 240px; }
  .detail-stage__footer { align-items: flex-start; flex-direction: column; }
  .detail-stage__footer > span:last-child { width: 100%; }
  .detail-stage__footer a { flex: 1; justify-content: center; }
  .detail-sidebar-card:last-child { grid-column: auto; }
  .detail-section-head { align-items: flex-start; flex-direction: column; }
  .detail-section-head > div { align-self: flex-end; }
  .detail-comment__card time { width: 100%; margin-left: 0; }
  .detail-comment.is-reply { margin-left: 20px; }
  .detail-poll { padding: 16px; }
  .user-profile-page { padding: 16px 0 80px; }
  .user-profile-head { align-items: flex-start; flex-direction: column; padding: 20px; }
  .user-profile-head__identity > .avatar { width: 56px; height: 56px; border-radius: 14px; }
  .user-profile-head h1 { font-size: 23px; }
  .profile-tabs { gap: 15px; overflow-x: auto; }
}

/* Stitch publish page reconstruction: one editor card and a compact control rail. */
.publish-stitch-page { width: 100%; max-width: none; padding: 24px 0 64px; background: #f8f9fa; }
.publish-stitch-shell { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }
.publish-stitch-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.publish-main-column { min-width: 0; display: grid; gap: 16px; }
.publish-stitch-page .publish-form .field { margin-bottom: 0; }
.publish-type-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / 2%); }
.publish-type-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; flex: 1 1 430px; min-width: 0; margin: 0; padding: 4px; border: 0; border-radius: 11px; background: #f5f5f5; }
/* 标签必须单行：空间不够时靠 nowrap 换行到下一行会把"工作流分享"拆成一列单字。 */
.publish-type-tabs label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 10px; border-radius: 8px; color: #737373; font-size: 12px; white-space: nowrap; cursor: pointer; }
.publish-type-guide { flex: 1 1 240px; min-width: 0; }
.publish-type-tabs label:has(input:checked) { background: #171717; color: #fff; }
.publish-type-tabs input { position: absolute; opacity: 0; }
.publish-type-tabs .zv-icon { width: 15px; height: 15px;  }
.publish-editor-meta { display: inline-flex; align-items: center; gap: 8px; flex: none; color: #a3a3a3; font: 10px "JetBrains Mono", monospace; white-space: nowrap; }
.publish-editor-meta i { width: 1px; height: 14px; background: #e5e5e5; }
.publish-editor-card { min-width: 0; padding: 24px 28px 18px; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / 2%); }
.publish-title-row { display: flex; align-items: center; gap: 12px; padding: 0 0 14px; }
.publish-title-row input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 0 !important; color: #0a0a0a; font-size: 24px !important; font-weight: 700; letter-spacing: 0; }
.publish-title-row input:focus { outline: none; box-shadow: none !important; }
.publish-title-row > span { flex: none; color: #a3a3a3; font: 11px "JetBrains Mono", monospace; }
.publish-markdown-editor { border: 1px solid #e5e5e5; border-radius: 12px; box-shadow: none; overflow: hidden; }
.publish-markdown-editor:focus-within { border-color: #171717; box-shadow: 0 0 0 1.5px #171717; }
.publish-markdown-editor.is-fullscreen { position: fixed; inset: 24px; z-index: 80; display: grid; grid-template-rows: auto minmax(0, 1fr); box-shadow: 0 18px 60px rgb(0 0 0 / 24%); }
.publish-markdown-editor.is-fullscreen .publish-markdown-field,
.publish-markdown-editor.is-fullscreen textarea { min-height: 0; height: 100%; }
.publish-markdown-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 5px 10px; border-bottom: 1px solid #e5e5e5; background: #fafafa; }
.publish-markdown-toolbar > div { display: flex; align-items: center; gap: 2px; }
.publish-markdown-toolbar button { min-width: 25px; height: 25px; padding: 3px 5px; border: 0; border-radius: 6px; background: transparent; color: #525252; font: 600 11px/1 "JetBrains Mono", monospace; cursor: pointer; }
.publish-markdown-toolbar button:hover { background: #fff; color: #0a0a0a; box-shadow: 0 1px 3px rgb(0 0 0 / 8%); }
.publish-markdown-toolbar .zv-icon { width: 15px; height: 15px;  vertical-align: -3px; }
.publish-markdown-toolbar button[data-fullscreen-editor] .zv-icon { width: 16px; height: 16px;  }
.publish-markdown-toolbar i { width: 1px; height: 16px; margin: 0 4px; background: #d4d4d4; }
.publish-markdown-toolbar small { color: #a3a3a3; font: 10px "JetBrains Mono", monospace; }
.publish-markdown-editor .publish-markdown-field { margin: 0; padding: 0 24px; }
.publish-markdown-editor .publish-markdown-field textarea { min-height: 230px; padding: 16px 0; border: 0; border-radius: 0; background: #fff; font-size: 14px; line-height: 1.75; }
.publish-type-fields-section, .publish-components-section, .publish-advanced-fields { margin-top: 16px; border-top: 1px solid #eeeeee; padding-top: 16px; }
.publish-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.publish-section-heading p { margin: 0 0 3px; color: #a3a3a3; font: 10px/1 "JetBrains Mono", monospace; }
.publish-section-heading h2 { margin: 0; color: #171717; font-size: 14px; line-height: 1.3; }
.publish-section-heading > span { color: #a3a3a3; font-size: 11px; }
.publish-component-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.publish-component-actions button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 10px; border: 1px solid #d4d4d4; border-radius: 7px; background: #fff; color: #404040; font-size: 12px; font-weight: 600; }
.publish-component-actions button:hover, .publish-component-actions button:focus-visible { border-color: #171717; background: #171717; color: #fff; outline: none; }
.publish-component-actions .zv-icon { width: 17px; height: 17px;  }
.publish-type-fields-section .field + .field { margin-top: 12px; }
.publish-advanced-fields summary { display: flex; justify-content: space-between; gap: 12px; color: #262626; font-size: 12px; cursor: pointer; list-style: none; }
.publish-advanced-fields summary::-webkit-details-marker { display: none; }
.publish-advanced-fields[open] summary { margin-bottom: 14px; }
.publish-inline-details .field + .field { margin-top: 12px; }
.publish-type-fields-section input, .publish-type-fields-section select, .publish-advanced-fields input, .publish-advanced-fields select { min-height: 38px; border-radius: 9px; background: #fff; font-size: 12px; }
.publish-upload-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 12px; border: 1px dashed #d4d4d4; border-radius: 12px; background: #fff; }
.publish-upload-row > div:first-child { display: grid; gap: 4px; }
.publish-upload-row strong { color: #171717; font-size: 12px; }
.publish-upload-row small { color: #a3a3a3; font-size: 10px; }
.publish-upload-row .publish-upload { min-height: 0; margin: 0; border: 0; background: transparent; }
.publish-upload-row .publish-upload label { min-height: 0; width: auto; padding: 8px 12px; border-radius: 8px; background: #171717; color: #fff; font-size: 11px; }
.publish-upload-row .publish-upload label .zv-icon { display: none; }
.publish-upload-row .publish-preview { width: 110px; height: 64px; border-radius: 8px; }
.publish-inline-poll { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eeeeee; }
.publish-inline-poll-head { display: flex; align-items: center; justify-content: space-between; }
.publish-inline-poll-head > div { display: inline-flex; align-items: center; gap: 7px; color: #262626; font-size: 12px; }
.publish-inline-poll-head > div .zv-icon { width: 17px; height: 17px;  }
.publish-inline-poll-head small { padding: 2px 6px; border-radius: 4px; background: #f5f5f5; color: #737373; font: 10px "JetBrains Mono", monospace; }
.publish-inline-poll [data-poll-fields] { margin-top: 14px; padding: 14px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; }
.publish-inline-poll .poll-editor-row input { min-height: 36px; padding: 8px 10px; border-radius: 8px; font-size: 12px; }
.publish-inline-poll .poll-editor-handle { width: 22px; padding: 0; border: 0; background: transparent; color: #a3a3a3; cursor: grab; font-size: 20px; line-height: 1; }
.publish-inline-poll .poll-editor-handle:active { cursor: grabbing; }
.publish-inline-poll .poll-editor-row.is-dragging { opacity: .55; }
.publish-inline-poll [data-add-option] { margin-top: 8px; color: #525252; font-size: 12px; }
.publish-inline-poll [data-add-option] .zv-icon { width: 18px; height: 18px;  vertical-align: -4px; }
.publish-switch { display: inline-flex; align-items: center; margin-left: auto; cursor: pointer; }
.publish-switch input { position: absolute; opacity: 0; }
.publish-switch span { display: block; width: 34px; height: 19px; border-radius: 999px; background: #dfe1e3; box-shadow: inset 0 0 0 1px #c9cdd0; }
.publish-switch input:checked + span { background: #171717; box-shadow: inset 17px 0 0 #fff; }
.publish-tags-field, .publish-code-editor, .publish-inline-poll { margin-top: 16px !important; }
.publish-tag { display: inline-flex; align-items: center; gap: 3px; padding: 3px 5px 3px 8px; border: 1px solid #171717; border-radius: 999px; background: #171717; color: #fff; font-size: 11px; line-height: 1.3; }
.publish-tag-remove { display: inline-grid; width: 18px; height: 18px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 15px; line-height: 1; }
.publish-tag-remove:hover, .publish-tag-remove:focus-visible { background: #fff; color: #171717; outline: none; }
.publish-tags-field { overflow: hidden; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; }
.publish-tags-field .publish-code-editor__bar { padding: 10px 12px; }
.publish-tags-field .publish-code-editor__bar label { color: #262626; font-size: 12px; font-weight: 600; }
.publish-tags-field .publish-code-editor__bar label span { color: #a3a3a3; font: 10px "JetBrains Mono", monospace; }
.publish-tags-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 50px; padding: 10px 12px; border-bottom: 1px solid #eeeeee; }
.publish-tag-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.publish-tag-list:empty { display: none; }
.publish-tags-editor #publish-tags-input { flex: 1 1 180px; min-width: 0; min-height: 28px; padding: 4px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 12px; }
.publish-tags-editor #publish-tags-input:focus { outline: none; box-shadow: none; }
.publish-tag-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: #fafafa; color: #737373; font-size: 11px; }
.publish-tag-suggestions > span { flex: none; }
.publish-tag-suggestions button { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border: 1px solid #d4d4d4; border-radius: 999px; background: #fff; color: #404040; font-size: 10px; line-height: 1; }
.publish-tag-suggestions button:hover, .publish-tag-suggestions button:focus-visible { border-color: #171717; background: #171717; color: #fff; outline: none; }
.publish-code-editor > .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 14px 14px 0; border-bottom: 1px solid #e5e5e5; background: #fafafa; }
.publish-code-editor > .form-grid .field { gap: 6px; margin: 0 0 14px; }
.publish-code-editor > .form-grid label { color: #404040; font-size: 11px; font-weight: 600; }
.publish-code-editor > .form-grid input { min-height: 38px; border-color: #d4d4d4; border-radius: 8px; background: #fff; color: #171717; font: 12px "JetBrains Mono", monospace; }
.publish-code-editor > textarea { min-height: 220px; padding: 14px; }
.publish-sidebar { position: sticky; top: 80px; display: grid; gap: 16px; }
.publish-sidebar-card { padding: 20px; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / 2%); }
.publish-sidebar-card h2 { margin: 0; color: #171717; font-size: 14px; }
.publish-sidebar-card ul { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.publish-sidebar-card li { color: #737373; font-size: 11px; line-height: 1.55; }
.publish-sidebar-card--dark { border-color: #171717; background: #090a0c; }
.publish-sidebar-card--dark h2 { color: #fff; }
.publish-sidebar-card--dark p { color: #a3a3a3; font-size: 11px; line-height: 1.55; }
.publish-sidebar-card--dark li { color: #d4d4d4; }
.publish-config-card { padding: 18px; border: 1px solid #e5e5e5; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / 2%); }
.publish-config-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #eeeeee; }
.publish-config-head h2 { margin: 0; color: #171717; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.publish-config-head span { padding: 3px 7px; border-radius: 999px; background: #f5f5f5; color: #525252; font: 10px "JetBrains Mono", monospace; }
.publish-config-fields { display: grid; gap: 12px; margin: 14px 0; }
.publish-config-fields label { display: grid; gap: 5px; color: #737373; font-size: 11px; }
.publish-config-fields select { width: 100%; min-height: 34px; padding: 6px 9px; border: 1px solid #e5e5e5; border-radius: 9px; background: #fafafa; color: #171717; font-size: 11px; }
.publish-config-card > .button--primary { width: 100%; min-height: 42px; justify-content: center; border-radius: 10px; }
.publish-shortcut { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; color: #a3a3a3; font: 10px "JetBrains Mono", monospace; }
.publish-shortcut kbd { padding: 2px 5px; border: 1px solid #e5e5e5; border-radius: 4px; background: #fafafa; color: #525252; }
.publish-config-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid #eeeeee; }
.publish-config-actions .button { min-height: 36px; justify-content: center; border-radius: 9px; font-size: 11px; }
.publish-local-save { width: 100%; margin-top: 10px; border: 0; background: transparent; color: #737373; font-size: 11px; cursor: pointer; }
.publish-local-save:hover { color: #171717; }
.publish-last-update { display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid #e5e5e5; border-radius: 12px; background: #f5f5f5; color: #737373; font-size: 11px; }
.publish-last-update strong { color: #404040; font: 11px "JetBrains Mono", monospace; }
.publish-preview-dialog { width: min(760px, calc(100% - 24px)); max-height: min(760px, calc(100vh - 32px)); padding: 0; border: 1px solid #171717; border-radius: 12px; background: #fff; color: #171717; box-shadow: 0 24px 70px rgb(0 0 0 / 26%); }
.publish-preview-dialog::backdrop { background: rgb(0 0 0 / 44%); }
.publish-preview-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #e5e5e5; }
.publish-preview-dialog__head p { margin: 0 0 3px; color: #a3a3a3; font: 10px/1 "JetBrains Mono", monospace; }
.publish-preview-dialog__head h2 { margin: 0; font-size: 15px; }
.publish-preview-dialog__head .icon-button { display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px solid #d4d4d4; border-radius: 7px; background: #fff; color: #171717; }
.publish-preview-dialog__body { overflow: auto; max-height: calc(100vh - 144px); padding: 20px; background: #f8f9fa; }
.publish-preview-card { padding: clamp(18px, 4vw, 38px); border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; }
.publish-preview-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.publish-preview-card__meta span { padding: 3px 7px; border: 1px solid #d4d4d4; border-radius: 4px; color: #525252; font-size: 11px; }
.publish-preview-card h1 { margin: 0 0 18px; color: #171717; font-size: 28px; line-height: 1.3; }
.publish-preview-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 20px; object-fit: cover; border: 1px solid #e5e5e5; border-radius: 8px; }
.publish-preview-card__content { color: #404040; font-size: 14px; line-height: 1.8; }
.publish-preview-card__content > :first-child { margin-top: 0; }.publish-preview-card__content > :last-child { margin-bottom: 0; }
.publish-preview-card__content pre, .publish-preview-card__code { overflow: auto; padding: 14px; border-radius: 7px; background: #171717; color: #fff; }
.publish-preview-card__code { margin-top: 16px; }.publish-preview-card__code > div { margin-bottom: 8px; color: #d4d4d4; font: 11px/1.3 "JetBrains Mono", monospace; }.publish-preview-card__code pre { margin: 0; padding: 0; }
.publish-preview-card__poll { display: grid; gap: 8px; margin-top: 16px; padding: 14px; border: 1px solid #d4d4d4; border-radius: 7px; background: #fafafa; }.publish-preview-card__poll div { padding: 8px 10px; border: 1px solid #e5e5e5; border-radius: 5px; background: #fff; color: #525252; font-size: 13px; }
.publish-preview-loading { margin: 0; padding: 24px; color: #737373; font-size: 13px; text-align: center; }
@media (max-width: 900px) { .publish-stitch-shell { width: min(100% - 32px, 720px); } .publish-stitch-grid { grid-template-columns: 1fr; } .publish-sidebar { position: static; } }
@media (max-width: 600px) { .publish-stitch-page { padding-top: 14px; } .publish-stitch-shell { width: calc(100% - 24px); } .publish-type-strip { display: block; } .publish-editor-meta { justify-content: flex-end; margin-top: 8px; } .publish-type-tabs label { min-width: 0; padding-inline: 4px; font-size: 10px; } .publish-type-tabs .zv-icon { display: none; } .publish-editor-card { padding: 16px; border-radius: 12px; } .publish-title-row input { font-size: 19px !important; } .publish-upload-row { align-items: flex-start; flex-direction: column; } .publish-component-actions { display: grid; grid-template-columns: 1fr 1fr; } .publish-component-actions button { justify-content: center; } .publish-code-editor > .form-grid { grid-template-columns: 1fr; } .publish-preview-dialog__body { padding: 12px; } .publish-preview-card h1 { font-size: 22px; } }

/* Stitch circle screens: compact monochrome community workspace. */
.circle-index,
.circles-page,
.circle-page {
  min-height: calc(100vh - 64px);
  padding: 48px 0 72px;
  background: var(--canvas);
}
.circle-index__masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid #d4d4d8;
}
.circle-index__masthead > div,
.circle-page__hero-grid > div,
.circle-page__main,
.circle-page__side,
.circle-card,
.account-circle-item > div:first-child {
  min-width: 0;
}
.circle-index .section-label,
.circle-page .section-label {
  margin: 0 0 8px;
  color: #71717a;
  font: 500 11px/1.4 "JetBrains Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}
.circle-index__masthead h1,
.circle-page__hero h1 {
  max-width: 760px;
  margin: 0;
  color: #18181b;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}
.circle-index__masthead h1 + p,
.circle-page__hero h1 + p {
  max-width: 650px;
  margin: 12px 0 0;
  color: #52525b;
  font-size: 14px;
  line-height: 1.7;
}
.circle-index__masthead > .button {
  min-height: 42px;
  border-radius: 7px;
  white-space: nowrap;
}
.circle-index__content {
  padding-top: 28px;
}
.circle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.circle-card {
  display: flex;
  flex-direction: column;
  min-height: 252px;
  padding: 18px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease;
}
.circle-card:hover {
  border-color: #52525b;
  transform: translateY(-2px);
}
.circle-card__top,
.circle-card footer,
.circle-card dl,
.circle-page__metrics,
.circle-page__section-head,
.circle-side-card dl,
.circle-manager__member,
.account-circle-item,
.circle-application-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.circle-card__top {
  color: #71717a;
  font: 500 10px/1.3 "JetBrains Mono", monospace;
  text-transform: uppercase;
}
.circle-card__index {
  color: #18181b;
}
.circle-card h2 {
  margin: 30px 0 8px;
  color: #18181b;
  font-size: 20px;
  line-height: 1.35;
}
.circle-card h2 a:hover,
.circle-side-card a:hover {
  color: #52525b;
}
.circle-card > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #52525b;
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.circle-card dl {
  margin: auto 0 16px;
  padding: 16px 0 0;
  border-top: 1px solid #e4e4e7;
}
.circle-card dl div,
.circle-side-card dl div {
  min-width: 0;
}
.circle-card dt,
.circle-side-card dt {
  color: #71717a;
  font-size: 11px;
}
.circle-card dd,
.circle-side-card dd {
  margin: 2px 0 0;
  color: #18181b;
  font-size: 13px;
  font-weight: 600;
}
.circle-card footer {
  min-height: 34px;
}
.circle-card__status {
  min-height: 18px;
  margin: 8px 0 -4px;
  color: #52525b;
  font-size: 11px;
  line-height: 1.45;
}
.circle-card__status.is-error,
.circle-action-status.is-error,
.circle-manager [data-circle-manager-status].is-error,
.circle-application-dialog [data-circle-form-status].is-error {
  color: #b42318;
}
.circle-card .button,
.circle-card__arrow {
  border-radius: 6px;
}
.circle-card__arrow {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-left: auto;
  place-items: center;
  border: 1px solid #d4d4d8;
  color: #18181b;
}
.circle-card__arrow:hover {
  border-color: #18181b;
  background: #18181b;
  color: #fff;
}
.circle-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  background: #fafafa;
  color: #52525b;
  font-size: 11px;
  line-height: 1.35;
}
.circle-application-dialog {
  width: min(100% - 32px, 520px);
  padding: 0;
  border: 1px solid #18181b;
  border-radius: 8px;
  background: #fff;
  color: #18181b;
  box-shadow: 0 20px 50px rgb(0 0 0 / 18%);
}
.circle-application-dialog::backdrop {
  background: rgb(24 24 27 / 42%);
}
.circle-application-dialog__head {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid #e4e4e7;
}
.circle-application-dialog__head h2 {
  margin: 0;
  font-size: 16px;
}
.circle-application-dialog__head .icon-button {
  width: 30px;
  height: 30px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
}
.circle-application-dialog > form[data-circle-application-form] {
  display: grid;
  gap: 14px;
  padding: 20px;
}
.circle-application-dialog label,
.circle-manager label {
  display: grid;
  gap: 6px;
  color: #404040;
  font-size: 12px;
  font-weight: 600;
}
.circle-application-dialog input,
.circle-application-dialog textarea,
.circle-application-dialog select,
.circle-manager input,
.circle-manager textarea,
.circle-manager select {
  width: 100%;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  background: #fff;
  color: #18181b;
  font-size: 13px;
}
.circle-application-dialog input,
.circle-application-dialog select,
.circle-manager input,
.circle-manager select {
  min-height: 38px;
  padding: 8px 10px;
}
.circle-application-dialog textarea,
.circle-manager textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}
.circle-application-dialog input:focus,
.circle-application-dialog textarea:focus,
.circle-application-dialog select:focus,
.circle-manager input:focus,
.circle-manager textarea:focus,
.circle-manager select:focus {
  border-color: #18181b;
  outline: 2px solid rgb(24 24 27 / 16%);
  outline-offset: 1px;
}
.circle-application-dialog [data-circle-form-status],
.circle-action-status,
.circle-manager [data-circle-manager-status] {
  min-height: 18px;
  margin: 0;
  color: #52525b;
  font-size: 12px;
}
.circle-application-dialog > form > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.circle-application-dialog .button,
.circle-manager .button {
  border-radius: 6px;
}
.circle-page {
  padding-top: 0;
}
.circle-page__hero {
  border-bottom: 1px solid #d4d4d8;
  background: #fff;
}
.circle-page__hero-inner {
  padding-top: 24px;
  padding-bottom: 36px;
}
.circle-page__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 28px;
  color: #52525b;
  font-size: 12px;
}
.circle-page__back .zv-icon { width: 17px; height: 17px;
  
}
.circle-page__back:hover {
  color: #18181b;
}
.circle-page__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: end;
  gap: 40px;
}
.circle-page__hero-actions {
  display: grid;
  justify-items: stretch;
  gap: 10px;
}
.circle-page__hero-actions > .button,
.circle-page__hero-actions > .circle-state {
  justify-self: end;
}
.circle-page__hero-actions > .button {
  min-height: 42px;
  border-radius: 7px;
}
.circle-page__metrics {
  justify-content: flex-end;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e4e7;
}
.circle-page__metrics span {
  display: grid;
  gap: 1px;
  color: #71717a;
  font-size: 11px;
  text-align: right;
}
.circle-page__metrics b {
  color: #18181b;
  font: 600 16px/1.2 "JetBrains Mono", monospace;
}
.circle-page__hero-actions .circle-action-status {
  text-align: right;
}
.circle-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  align-items: start;
  gap: 28px;
  padding-top: 28px;
}
.circle-page__main {
  display: grid;
  gap: 18px;
}
.circle-announcement,
.circle-pinned {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
}
.circle-announcement > div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #18181b;
  font-size: 12px;
}
.circle-announcement > div .zv-icon,
.circle-pinned > .zv-icon { width: 18px; height: 18px;
  color: #52525b;
  
}
.circle-announcement > p,
.circle-pinned > div {
  min-width: 0;
  margin: 0;
  color: #52525b;
  font-size: 13px;
  line-height: 1.65;
}
.circle-announcement > p p {
  margin: 0;
}
.circle-pinned {
  align-items: start;
}
.circle-pinned small {
  display: block;
  margin-bottom: 3px;
  color: #71717a;
  font: 500 10px/1.3 "JetBrains Mono", monospace;
  text-transform: uppercase;
}
.circle-pinned a {
  color: #18181b;
  font-weight: 600;
}
.circle-pinned a:hover {
  text-decoration: underline;
}
.circle-page__section-head {
  padding: 4px 0 12px;
  border-bottom: 1px solid #d4d4d8;
}
.circle-page__section-head h2 {
  margin: 0;
  color: #18181b;
  font-size: 17px;
}
.circle-page__section-head > span {
  color: #71717a;
  font: 500 10px/1.3 "JetBrains Mono", monospace;
  text-transform: uppercase;
}
.circle-feed {
  display: grid;
  gap: 10px;
}
.circle-feed .feed-row {
  border-radius: 8px;
}
.circle-page__side {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 80px;
}
.circle-side-card {
  padding: 16px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
}
.circle-side-card h2 {
  margin: 0 0 14px;
  color: #18181b;
  font-size: 14px;
}
.circle-side-card dl {
  align-items: stretch;
  margin: 0;
}
.circle-side-card dl div + div {
  padding-left: 12px;
  border-left: 1px solid #e4e4e7;
}
.circle-manager {
  display: grid;
  gap: 14px;
}
.circle-manager form {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #e4e4e7;
}
.circle-manager .button {
  justify-self: start;
}
.circle-manager__group {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #e4e4e7;
}
.circle-manager__group h3 {
  margin: 0;
  color: #52525b;
  font: 500 10px/1.3 "JetBrains Mono", monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}
.circle-manager__member {
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f1;
  color: #18181b;
  font-size: 12px;
}
.circle-manager__member > span {
  min-width: 0;
}
.circle-manager__member small {
  display: block;
  margin-top: 2px;
  color: #71717a;
  font-size: 10px;
}
.circle-manager__member > div {
  display: inline-flex;
  flex: none;
  gap: 8px;
}
.circle-manager .text-action {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #52525b;
  font-size: 11px;
}
.circle-manager .text-action:hover {
  color: #18181b;
  text-decoration: underline;
}
.account-circle-list {
  display: grid;
  border-top: 1px solid #d4d4d8;
}
.account-circle-item {
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #d4d4d8;
}
.account-circle-item .content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}
.account-circle-item .status-label {
  border-radius: 4px;
  background: #18181b;
  color: #fff;
}
.account-circle-item h2 {
  margin: 0;
  color: #18181b;
  font-size: 16px;
}
.account-circle-item p {
  margin: 5px 0 0;
  color: #52525b;
  font-size: 13px;
}
.account-circle-item .action-cluster {
  flex: none;
}
.account-circle-item .button {
  border-radius: 6px;
}
@media (max-width: 1024px) {
  .circle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .circle-page__layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
  }
}
@media (max-width: 780px) {
  .circle-index,
  .circles-page {
    padding-top: 32px;
  }
  .circle-index__masthead,
  .circle-page__hero-grid,
  .circle-page__layout {
    grid-template-columns: 1fr;
  }
  .circle-index__masthead {
    align-items: start;
    padding-bottom: 24px;
  }
  .circle-index__masthead > .button,
  .circle-page__hero-actions > .button,
  .circle-page__hero-actions > .circle-state {
    justify-self: start;
  }
  .circle-page__hero-grid {
    gap: 24px;
  }
  .circle-page__metrics,
  .circle-page__hero-actions .circle-action-status {
    justify-content: flex-start;
    text-align: left;
  }
  .circle-page__metrics span {
    text-align: left;
  }
  .circle-page__side {
    position: static;
  }
}
@media (max-width: 560px) {
  .circle-index,
  .circles-page {
    padding-bottom: 52px;
  }
  .circle-grid {
    grid-template-columns: 1fr;
  }
  .circle-card {
    min-height: 228px;
  }
  .circle-index__masthead h1,
  .circle-page__hero h1 {
    font-size: 27px;
  }
  .circle-page__hero-inner {
    padding-bottom: 28px;
  }
  .circle-page__layout {
    padding-top: 20px;
  }
  .circle-announcement,
  .circle-pinned {
    grid-template-columns: 1fr;
  }
  .circle-announcement > div {
    justify-content: flex-start;
  }
  .circle-side-card dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .account-circle-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }
  .circle-application-dialog > form[data-circle-application-form] {
    padding: 16px;
  }
}

/* Account workspace: each page owns one stable main-column track. */
.account-dashboard__main > .account-page-head,
.account-dashboard__main > .account-page-head + .filter-bar,
.account-dashboard__main > .account-content-list { max-width: none; margin-inline: 0; }
.account-dashboard__main > .account-page-head + .filter-bar { display: grid; grid-template-columns: minmax(160px, 236px) minmax(150px, 210px) auto; align-items: end; justify-content: start; gap: 12px; margin: 0 0 20px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.account-dashboard__main > .account-page-head + .filter-bar > label { display: grid; gap: 7px; min-width: 0; color: #52525b; font-size: 11px; font-weight: 600; }
.account-dashboard__main > .account-page-head + .filter-bar select { min-height: 38px; margin: 0; border-color: #d4d4d8; border-radius: 8px; color: #191c1d; font-size: 12px; }
.account-dashboard__main > .account-page-head + .filter-bar .button { min-height: 38px; margin: 0; align-self: end; }
.account-content-list { display: grid; }
.account-dashboard__main .account-content-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 86px; padding: 20px 0; }
.account-dashboard__main .account-content-item > div:first-child { min-width: 0; }
.account-dashboard__main .account-content-item h3 { overflow-wrap: anywhere; }
.account-settings-page .settings-form { min-width: 0; }
/* 卡片式分区：横向内边距不能为 0，否则字段贴住描边，看起来像框里套框。 */
.account-settings-page .settings-section { padding: 22px 24px; }
.account-settings-page .settings-section .section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); align-items: baseline; gap: 20px; margin-bottom: 20px; }
.account-settings-page .settings-section .section-head h2 { margin: 0; color: #191c1d; font-size: 18px; }
.account-settings-page .settings-section .section-head .muted { justify-self: end; max-width: 280px; color: #8b9197; font-size: 11px; line-height: 1.55; text-align: right; }
.account-settings-page .settings-section .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; min-width: 0; }
.account-settings-page .settings-section .form-grid .field { min-width: 0; margin: 0; }
.account-settings-page .settings-section .form-grid .field--full { grid-column: 1 / -1; }
.account-settings-page .visibility-options { display: flex; flex-wrap: wrap; gap: 10px 16px; min-width: 0; margin: 22px 0 0; padding: 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fafafa; }
.account-settings-page .visibility-options legend { padding: 0 4px; color: #52525b; font-size: 11px; font-weight: 600; }
.account-settings-page .visibility-options label,
.account-settings-page .avatar-settings__controls > label,
.account-settings-page .notification-preferences label { display: inline-flex; align-items: center; gap: 8px; color: #374151; font-size: 12px; }
.account-settings-page .visibility-options input[type="checkbox"],
.account-settings-page .avatar-settings__controls input[type="checkbox"],
.account-settings-page .notification-preferences input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: #090a0c; }
.account-settings-page .avatar-settings { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fafafa; }
.account-settings-page .avatar-settings__controls { display: grid; flex: 1; gap: 10px; min-width: 0; }
.account-settings-page .avatar-settings__controls input[type="file"] { width: 100%; min-height: 40px; padding: 8px; border: 1px solid #d4d4d8; border-radius: 8px; background: #fff; color: #374151; font-size: 12px; }
.account-settings-page .avatar-settings__controls input[type="file"]::file-selector-button { margin-right: 10px; padding: 5px 9px; border: 1px solid #d4d4d8; border-radius: 6px; background: #f3f4f6; color: #191c1d; font: 600 11px Geist, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.account-settings-page .avatar-settings__controls p { margin: 0; }

@media (max-width: 760px) {
  .account-dashboard__main > .account-page-head + .filter-bar { grid-template-columns: 1fr; padding: 12px; }
  .account-dashboard__main > .account-page-head + .filter-bar .button { width: 100%; justify-content: center; }
  .account-dashboard__main .account-content-item { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .account-settings-page .settings-section .section-head { grid-template-columns: 1fr; gap: 6px; }
  .account-settings-page .settings-section .section-head .muted { justify-self: start; max-width: none; text-align: left; }
  .account-settings-page .settings-section .form-grid { grid-template-columns: 1fr; }
  .account-settings-page .visibility-options { gap: 10px 14px; }
  .account-settings-page .avatar-settings { align-items: flex-start; flex-direction: column; }
}

.auth-page { display: grid; min-height: calc(100vh - 64px); place-items: center; padding: 48px 20px 72px; background: #f8f9fa; }
.auth-panel { width: min(100%, 440px); padding: 32px; border: 1px solid #d4d4d8; border-radius: 8px; background: #fff; box-shadow: 0 16px 50px rgb(0 0 0 / 7%); }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 36px; color: #18181b; }
.auth-brand:hover { color: #18181b; }
.auth-brand__mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 6px; background: #18181b; color: #fff; font: 700 16px/1 "JetBrains Mono", monospace; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 14px; }
.auth-brand small { margin-top: 2px; color: #71717a; font-size: 10px; }
.auth-panel header h1 { margin: 6px 0 8px; color: #18181b; font-size: 28px; line-height: 1.2; }
.auth-panel header > p:last-child { margin: 0 0 22px; color: #71717a; font-size: 13px; }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 7px; color: #404040; font-size: 12px; font-weight: 600; }
.auth-form input:not([type="checkbox"]) { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #d4d4d8; border-radius: 6px; background: #fff; color: #18181b; font-size: 13px; }
.auth-form input:focus { border-color: #18181b; outline: 2px solid rgb(24 24 27 / 13%); outline-offset: 1px; }
.auth-form .button { justify-content: center; min-height: 42px; margin-top: 4px; }
.auth-check { display: inline-flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; color: #71717a !important; font-weight: 400 !important; }
.auth-check input { width: 16px; height: 16px; margin: 0; accent-color: #18181b; }
.auth-links, .auth-footnote { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 0; color: #71717a; font-size: 12px; }
.auth-links a, .auth-footnote a { color: #18181b; text-decoration: underline; text-underline-offset: 3px; }
.auth-notice { margin: 0 0 16px; padding: 11px 12px; border: 1px solid #d4d4d8; border-radius: 6px; background: #fafafa; color: #404040; font-size: 12px; line-height: 1.55; }
.auth-notice--error { border-color: #fecaca; background: #fff7f7; color: #991b1b; }
.auth-warning { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid #e4e4e7; color: #a16207; font-size: 11px; line-height: 1.55; }
.auth-verify-result { display: grid; gap: 12px; color: #404040; font-size: 13px; line-height: 1.6; }
.auth-verify-result strong { color: #18181b; font-size: 17px; }
.auth-verify-result p { margin: 0; }
@media (max-width: 520px) { .auth-page { padding-inline: 12px; } .auth-panel { padding: 24px 20px; } }

/* 0.14: publishing editor and event workflow share the existing black/white token set. */
.publish-editor-mode { display: inline-flex; gap: 0; margin: 10px 24px 0; border: 1px solid #d4d4d8; border-radius: 6px; overflow: hidden; background: #fff; }
.publish-editor-mode button { min-height: 30px; padding: 5px 10px; border: 0; border-right: 1px solid #d4d4d8; background: #fff; color: #52525b; font-size: 11px; font-weight: 600; }
.publish-editor-mode button:last-child { border-right: 0; }
.publish-editor-mode button.is-active { background: #18181b; color: #fff; }
.publish-visual-editor { min-height: 320px; border-top: 1px solid #e5e5e5; }
.publish-visual-editor .toastui-editor-defaultUI { border: 0; border-radius: 0; font-family: Geist, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.publish-visual-editor .toastui-editor-toolbar { display: none; }
.publish-visual-editor .toastui-editor-ww-container { background: #fff; }
.publish-visual-editor .ProseMirror { min-height: 248px; padding: 16px 24px; color: #262626; font-size: 14px; line-height: 1.75; }
.publish-editor-status { min-height: 18px; margin: 0; padding: 6px 24px; color: #71717a; font-size: 11px; }
.publish-editor-status.is-error { color: #b91c1c; }
.event-index { min-height: calc(100vh - 64px); padding: 42px 0 72px; background: #fff; }
.event-index__masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; padding-bottom: 30px; border-bottom: 1px solid #d4d4d8; }
.event-index__masthead h1 { margin: 5px 0 10px; color: #18181b; font-size: 32px; line-height: 1.2; }
.event-index__masthead p { max-width: 620px; margin: 0; color: #52525b; font-size: 14px; line-height: 1.7; }
.event-index__list { display: grid; gap: 0; }
.event-list-item { position: relative; display: grid; gap: 10px; padding: 24px 0; border-bottom: 1px solid #e4e4e7; }
.event-list-item__meta { display: flex; flex-wrap: wrap; gap: 7px; color: #71717a; font: 500 10px/1.3 "JetBrains Mono", monospace; text-transform: uppercase; }
.event-list-item__meta span + span::before { content: "/"; margin-right: 7px; color: #a1a1aa; }
.event-list-item h2 { margin: 0; font-size: 19px; line-height: 1.35; }
.event-list-item h2 a { color: #18181b; }
.event-list-item h2 a:hover { text-decoration: underline; }
.event-list-item > p { max-width: 760px; margin: 0; color: #52525b; font-size: 13px; line-height: 1.65; }
.event-list-item__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 2px; }
.event-list-item__footer time { color: #71717a; font-size: 11px; }
.event-action-status { min-height: 18px; margin: 0; color: #52525b; font-size: 11px; }
.event-action-status.is-error { color: #b91c1c; }
.event-page { min-height: calc(100vh - 64px); background: #fff; }
.event-page__hero { border-bottom: 1px solid #d4d4d8; background: #fff; }
.event-page__hero-inner { padding-top: 24px; padding-bottom: 36px; }
.event-page__hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); align-items: end; gap: 36px; }
.event-page__hero h1 { margin: 10px 0; color: #18181b; font-size: 32px; line-height: 1.2; }
.event-page__hero p { max-width: 720px; margin: 0; color: #52525b; font-size: 14px; line-height: 1.7; }
.event-page__actions { display: grid; justify-items: stretch; gap: 9px; }
.event-page__actions .button { justify-content: center; min-height: 42px; }
.event-page__actions .event-action-status { text-align: right; }
.event-state { justify-self: end; padding: 8px 10px; border: 1px solid #d4d4d8; border-radius: 6px; color: #52525b; font-size: 12px; }
.event-page__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); align-items: start; gap: 32px; padding-top: 32px; padding-bottom: 72px; }
.event-page__content { min-width: 0; }
.event-page__content h2 { margin: 0 0 18px; color: #18181b; font-size: 18px; }
.event-page__side { display: grid; gap: 14px; position: sticky; top: 80px; }
.event-page__side .detail-sidebar-card > p { color: #52525b; font-size: 12px; line-height: 1.6; }
.event-page__side small { color: #71717a; font-size: 11px; }
@media (max-width: 760px) {
  .event-index { padding-top: 30px; }
  .event-index__masthead, .event-page__hero-grid, .event-page__layout { grid-template-columns: 1fr; }
  .event-index__masthead { align-items: start; }
  .event-index__masthead > .button { justify-self: start; }
  .event-page__hero h1, .event-index__masthead h1 { font-size: 27px; }
  .event-page__actions { justify-items: start; }
  .event-page__actions .event-action-status { text-align: left; }
  .event-state { justify-self: start; }
  .event-page__side { position: static; }
  .event-list-item__footer { align-items: start; flex-direction: column; }
  .publish-editor-mode { margin-inline: 16px; }
  .publish-visual-editor .ProseMirror { padding-inline: 16px; }
}

/* 移动端触控目标：主要交互控件命中区域不小于 44×44px，并为固定底部导航预留安全空间。 */
@media (max-width: 782px) {
  body.zaovibe-theme {
    padding-bottom: 64px;
  }
  .site-header a,
  .site-header button,
  .mobile-community-nav > a,
  .mobile-community-nav > button,
  .feed-tabs > a,
  .feed-category-tabs a,
  .feed-action,
  .feed-save,
  .text-action,
  .action-cluster .button,
  .action-cluster button,
  .plaza-card .button,
  .plaza-feed-item .button,
  .detail-quick-actions footer button {
    min-height: 44px;
  }
  /* 提高特异性以覆盖 .feed-actions .feed-action { min-width: 0 } 的收缩规则。 */
  .site-header a,
  .site-header button,
  .icon-button,
  .feed-actions .feed-action,
  .feed-actions .feed-save,
  .detail-quick-actions footer button {
    min-width: 44px;
  }
  .feed-tabs > a,
  .feed-category-tabs a,
  .text-action,
  .mobile-community-nav > a,
  .mobile-community-nav > button {
    display: inline-flex;
    align-items: center;
  }
  .mobile-community-nav > a,
  .mobile-community-nav > button {
    flex-direction: column;
    justify-content: center;
    min-height: 64px;
  }
}

/* 详情首屏速览：把"解决什么 / 适用对象 / 技术栈 / 更新时间"提到 Demo 之前。 */
.detail-brief {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #e1e3e4;
  border-radius: 12px;
  background: #f8f9fa;
}
.detail-brief__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
  color: #6b7177;
  font-size: 11px;
}
.detail-brief__list {
  display: grid;
  gap: 8px;
  margin: 0;
}
.detail-brief__list div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
}
.detail-brief__list dt {
  color: #8b9197;
  font-size: 11px;
  line-height: 1.7;
}
.detail-brief__list dd {
  margin: 0;
  color: #303438;
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .detail-brief__list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* 发布页类型引导与发布后下一步提示。 */
.publish-type-guide {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #e1e3e4;
  border-radius: 10px;
  background: #f8f9fa;
  color: #52525b;
  font-size: 12px;
  line-height: 1.7;
}
.publish-type-guide strong {
  margin-right: 8px;
  color: #191c1d;
}
.detail-next-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #e1e3e4;
  border-radius: 12px;
  background: #f3f4f5;
  font-size: 13px;
}
.detail-next-steps strong {
  color: #191c1d;
}
.detail-next-steps a {
  color: #191c1d;
  text-decoration: underline;
}

/* ============ 首页落地页（站点根 /）============
   设计语言沿用既有 Stark Monolith：1px 发丝线、零阴影、黑胶囊、等宽小标签。
   首页刻意单列、少区块；数字全部来自真实查询。 */
.home-page {
  display: block;
  padding: 40px 0 72px;
}
.home-page .home-block,
.home-page .home-hero,
.home-page .home-event {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}
.home-hero {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--muted);
  font: 500 12px/1.4 "JetBrains Mono", monospace;
  letter-spacing: .02em;
}
.home-kicker .zv-icon { width: 15px; height: 15px;  }
.home-hero h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.04em;
}
.home-hero__lede {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.home-hero__actions .button { display: inline-flex; align-items: center; gap: 6px; }
.home-hero__actions .zv-icon { width: 17px; height: 17px;  }
.home-hero__facts {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font: 500 12px/1.5 "JetBrains Mono", monospace;
}
.home-hero__facts .zv-icon { width: 15px; height: 15px;  }

.home-block { padding: 48px 0 0; }
.home-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.home-block__index {
  margin: 0 0 6px;
  color: var(--muted);
  font: 500 11px/1.4 "JetBrains Mono", monospace;
  letter-spacing: .04em;
}
.home-block__head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -.025em;
}
.home-block__hint {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.home-block__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  color: var(--ink);
  font-size: 13px;
}
.home-block__more .zv-icon { width: 17px; height: 17px;  }

.home-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.home-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.home-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-card__author > div { min-width: 0; }
.home-card__avatar img { display: block; width: 40px; height: 40px; border-radius: 999px; }
.home-card__name { color: var(--ink); font-size: 14px; font-weight: 600; }
.home-card__meta { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.home-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.home-card__tags span {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 11px;
}
.home-card__title { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.home-card__title a { color: var(--ink); }
.home-card__summary { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.home-card__preview img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; }
.home-card__code,
.home-card__preview { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; }
.home-card__code { background: #191c1d; }
.home-card__code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #2b2f31;
  color: #d4d4d8;
  font: 500 11px/1.4 "JetBrains Mono", monospace;
}
.home-card__code-head span { display: inline-flex; align-items: center; gap: 7px; }
.home-card__code-head i { width: 6px; height: 6px; border-radius: 50%; background: #71717a; }
.home-card__code-head small { color: #8b9197; }
.home-card__code pre { margin: 0; padding: 12px; max-height: 190px; overflow: hidden; }
.home-card__code code {
  color: #e4e4e7;
  font: 11px/1.7 "JetBrains Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.home-card__demo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f4f4f5;
}
.home-card__demo > span:first-child { color: var(--muted); }
.home-card__demo span b { display: block; color: var(--ink); font-size: 13px; }
.home-card__demo span small { color: var(--muted); font: 11px "JetBrains Mono", monospace; }
.home-card__demo-go { margin-left: auto; color: var(--ink); font-size: 12px; font-weight: 600; }
.home-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.home-card__counts { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.home-card__counts .zv-icon { width: 16px; height: 16px;  }
.home-card__counts .zv-icon:nth-of-type(2) { margin-left: 8px; }
.home-card__links { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; }
.home-card__links a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.home-card__links .zv-icon { width: 15px; height: 15px;  }

.home-entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.home-entry {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.home-entry__icon { color: var(--ink); font-size: 22px; }
.home-entry__badge { color: var(--muted); font: 500 11px/1.4 "JetBrains Mono", monospace; }
.home-entry strong { color: var(--ink); font-size: 17px; font-weight: 600; }
.home-entry__hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
.home-entry__cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--ink); font-size: 12px; font-weight: 600; }
.home-entry__cta .zv-icon { width: 15px; height: 15px;  }

.home-circles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.home-circle {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.home-circle__index { color: var(--muted); font: 600 12px/1.4 "JetBrains Mono", monospace; }
.home-circle__facts { color: var(--muted); font: 500 11px/1.4 "JetBrains Mono", monospace; }
.home-circle strong { color: var(--ink); font-size: 16px; font-weight: 600; }
.home-circle__hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
.home-circle__cta { margin-top: 6px; color: var(--ink); font-size: 12px; font-weight: 600; }

.home-event {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.home-event > .zv-icon { width: 22px; height: 22px; color: var(--muted);  }
.home-event div { display: grid; gap: 3px; min-width: 0; }
.home-event strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.home-event small { color: var(--muted); font-size: 12px; }
.home-event__cta {
  margin-left: auto;
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.home-creators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.home-creator {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.home-creator__avatar img { display: block; width: 44px; height: 44px; border-radius: 999px; }
.home-creator__name { color: var(--ink); font-size: 14px; font-weight: 600; }
.home-creator__bio { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.home-creator__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font: 500 11px/1.4 "JetBrains Mono", monospace;
}
.home-creator__foot a { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-size: 12px; font-weight: 600; }
.home-creator__foot .zv-icon { width: 15px; height: 15px;  }

.home-rules__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-rules__list li {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.home-rules__list b { color: var(--muted); font: 600 12px/1.4 "JetBrains Mono", monospace; }
.home-rules__list strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.home-rules__list span { color: var(--muted); font-size: 12px; line-height: 1.65; }
.home-rules__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
}
.home-rules__foot p { margin: 0; color: #fff; font-size: 15px; font-weight: 600; }
.home-rules__actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.home-rules__actions .button { display: inline-flex; align-items: center; gap: 5px; }
.home-rules__actions .button--ghost { border-color: #3f3f46; color: #fff; background: transparent; }
.home-empty { margin: 0; }

/* 社区守则页 */
.breadcrumb { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--muted); }
.policy-body { max-width: 760px; color: var(--ink); font-size: 14px; line-height: 1.85; }
.policy-body h2 { margin: 28px 0 8px; font-size: 17px; }
.policy-body p { margin: 0 0 12px; }

@media (max-width: 720px) {
  .home-page .home-block,
  .home-page .home-hero,
  .home-page .home-event { width: calc(100% - 32px); }
  .home-page { padding-top: 24px; }
  .home-block { padding-top: 36px; }
  .home-block__head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .home-card__tags { margin-left: 0; }
  .home-event { align-items: flex-start; flex-direction: column; }
  .home-event__cta { margin-left: 0; }
  .home-rules__foot { align-items: flex-start; flex-direction: column; }
  .home-rules__actions .button { width: 100%; justify-content: center; }
}

/* ============ 创作者页 / 收藏 / 关注流 ============
   这三个页面此前用到的类在样式表里一处都没有（和后台 admin-ui.css 丢失同类问题），
   页面等于裸奔。这里按既有设计语言补齐：白卡、1px 发丝线、等宽小标签、黑胶囊。 */

/* 创作者页 */
.creators-hero { border-bottom: 1px solid var(--border); background: var(--surface); }
.creators-hero__inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 30px; display: grid; gap: 8px; }
.creators-hero h1 { margin: 0; color: var(--ink); font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.035em; }
.creators-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.creators-hero__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; color: var(--muted); font: 500 11px/1.4 "JetBrains Mono", monospace; }
.creators-wrap { padding: 36px 0 64px; }
.creator-feature {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.creator-feature__visual { position: relative; display: grid; place-items: center; }
.creator-feature__visual img { width: 136px; height: 136px; border-radius: 999px; }
.creator-feature__count {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  justify-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 600 13px/1.15 "JetBrains Mono", monospace;
}
.creator-feature__count small { color: #a1a1aa; font-size: 9px; font-weight: 400; }
.creator-feature__copy { display: grid; justify-items: start; gap: 8px; }
.creator-feature__number { color: #d4d4d8; font: 700 30px/1 "JetBrains Mono", monospace; }
.creator-feature__copy h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.creator-feature__copy h2 a { color: var(--ink); }
.creator-feature__copy > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.creator-feature__facts { display: flex; flex-wrap: wrap; gap: 24px; margin: 4px 0 6px; }
.creator-feature__facts span { display: grid; gap: 2px; }
.creator-feature__facts strong { color: var(--ink); font-size: 18px; font-weight: 600; }
.creator-feature__facts small { color: var(--muted); font-size: 11px; }
.creators-list-section { margin-top: 40px; }
.creator-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; }
.creator-card { display: grid; gap: 12px; align-content: start; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.creator-card__top { display: flex; align-items: center; justify-content: space-between; }
.creator-card__rank { color: #d4d4d8; font: 700 20px/1 "JetBrains Mono", monospace; }
.creator-card__badge { color: var(--muted); font: 500 10px/1.4 "JetBrains Mono", monospace; }
.creator-card__avatar { display: block; width: 88px; }
.creator-card__avatar img { display: block; width: 88px; height: 88px; border-radius: 999px; }
.creator-card__body h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.creator-card__body h3 a { color: var(--ink); }
.creator-card__body p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.creator-card__meta { display: flex; flex-wrap: wrap; gap: 18px; }
.creator-card__meta span { display: grid; gap: 2px; }
.creator-card__meta strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.creator-card__meta small { color: var(--muted); font-size: 11px; }
.creator-card__link { justify-self: start; }

/* 收藏与关注流 */
.content-circle-link { color: var(--muted); font-size: 12px; }
.author-byline { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; }
.author-byline img { width: 22px; height: 22px; border-radius: 999px; }
.plaza-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.plaza-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.plaza-card__media { display: block; aspect-ratio: 16 / 10; background: #f4f4f5; }
.plaza-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plaza-card__placeholder { display: grid; place-items: center; height: 100%; color: #d4d4d8; font-size: 34px; font-weight: 700; }
.plaza-card__body { display: grid; gap: 8px; align-content: start; padding: 14px 16px 16px; }
.plaza-card__category { color: var(--ink); font-weight: 600; }
.plaza-card__body h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.plaza-card__body h3 a { color: var(--ink); }
.plaza-card__body p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.plaza-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.plaza-card__signal { color: var(--muted); font-size: 11px; }
.plaza-feed-list { display: grid; gap: 12px; margin-top: 14px; }
.plaza-feed-item { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.plaza-feed-item__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.plaza-feed-item__top time { margin-left: auto; }
.plaza-feed-item__event { padding: 2px 8px; border-radius: 999px; background: #f4f4f5; color: #3f3f46; font-size: 11px; }
.plaza-feed-item h3 { margin: 0; font-size: 16px; font-weight: 600; }
.plaza-feed-item h3 a { color: var(--ink); }
.plaza-feed-item > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.plaza-feed-item__bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.plaza-feed-item__bottom a { color: var(--ink); font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.plaza-feed-item--activity { display: flex; align-items: center; gap: 10px; }
.plaza-feed-item__activity-avatar img { display: block; width: 38px; height: 38px; border-radius: 999px; }
.plaza-feed-item__activity-copy { display: grid; gap: 2px; color: var(--muted); font-size: 13px; }
.plaza-feed-item__activity-copy strong { color: var(--ink); }
.plaza-feed-item__activity-copy small { font-size: 11px; }
.activity-status { margin-left: auto; padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; color: #3f3f46; font-size: 11px; }

@media (max-width: 720px) {
  .creators-hero__inner { width: calc(100% - 32px); padding: 26px 0 22px; }
  .creators-wrap { padding: 24px 0 48px; }
  .creator-feature { grid-template-columns: 1fr; justify-items: start; gap: 16px; }
}

/* 404 页的错误码：结构沿用 .empty-state，只补这一处排版。 */
.not-found-state__code { margin: 0 0 6px; color: #d4d4d8; font: 700 30px/1 "JetBrains Mono", monospace; letter-spacing: -.02em; }

/* ============ 局部遗漏样式 ============
   这些类名在模板里用了、样式表里没有（同一批历史遗漏）。组件基类都在，这里只补缺失的局部规则。 */
.section-link { color: var(--ink); font-size: 12px; font-weight: 600; }
.notification-list--compact { gap: 8px; }
.publish-page { padding-bottom: 64px; }
.publish-input-action { display: flex; align-items: center; gap: 8px; }
.publish-input-action input { flex: 1 1 auto; min-width: 0; }
.publish-local-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.publish-draft-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 12px; }
.saved-item { position: relative; }
.saved-item__remove { position: absolute; top: 10px; right: 10px; z-index: 1; }
.search-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.field--query { flex: 1 1 320px; min-width: 0; }
.search-result-list { display: grid; gap: 10px; margin-top: 14px; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.account-data__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.detail-body { color: var(--ink); font-size: 14px; line-height: 1.85; }
.detail-body h2 { margin: 22px 0 8px; font-size: 17px; }
.detail-body p { margin: 0 0 12px; }
.detail-tech-section { display: grid; gap: 6px; margin-top: 12px; }
.detail-tech-section > span { color: var(--muted); font: 500 11px/1.4 "JetBrains Mono", monospace; }
.detail-circle-context { display: grid; gap: 8px; }
.detail-circle-context__link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 12px; font-weight: 600; }
.sidebar-topics__empty { color: var(--muted); font-size: 12px; }
.community-widget--tips { border-style: dashed; }
.code {
  display: block;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #191c1d;
  color: #e4e4e7;
  font: 11px/1.7 "JetBrains Mono", monospace;
}

/* 创作者页：hero 自己管上边距，避免与 .page 的内边距叠加。 */
.creators-page { padding: 0 0 64px; }

/* 单篇文章：正文单列，与详情页正文宽度一致。 */
.content-layout { display: block; max-width: 760px; }

/* 提示词块：与代码块同类的内容组件，长内容默认折叠，展开后可整段复制。 */
.prompt-block {
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.prompt-block > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  list-style: none;
}
.prompt-block > summary::-webkit-details-marker { display: none; }
.prompt-block > summary strong { font-weight: 600; }
.prompt-block > summary small { color: var(--muted); font: 500 11px/1.4 "JetBrains Mono", monospace; }
.prompt-block__hint { margin-left: auto; color: var(--muted); font-size: 11px; }
.prompt-block__body { position: relative; border-top: 1px solid var(--border); background: #191c1d; }
.prompt-block__body pre { margin: 0; padding: 14px 16px 16px; max-height: 420px; overflow: auto; }
.prompt-block__body code {
  color: #e4e4e7;
  font: 12px/1.75 "JetBrains Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prompt-block__copy {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid #3f3f46;
  border-radius: 999px;
  background: #26292b;
  color: #e4e4e7;
  font-size: 11px;
}
.prompt-block__copy:hover { border-color: #71717a; }

/* ============ 创作者索引 ============
   一张卡 = 一个人：头像/昵称/handle + 一句话简介 + 技术标签 + 代表作 + 参与统计。
   与排行榜的区别是"看人"，所以卡片按人组织、可搜索可筛选。 */
.creators-filter {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.creators-filter__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  max-width: 560px;
}
.creators-filter__search .zv-icon { width: 18px; height: 18px; color: var(--muted); }
.creators-filter__search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  border: 0;
  background: transparent;
  font-size: 13px;
}
.creators-filter__search input:focus { outline: none; }
.creators-filter__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.creators-filter__tags a {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}
.creators-filter__tags a:hover { color: var(--ink); }
.creators-filter__tags a.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }

.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.creator-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.creator-card__head { display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 10px; align-items: center; }
.creator-card__avatar img { display: block; width: 48px; height: 48px; border-radius: 999px; }
.creator-card__identity { display: grid; gap: 2px; min-width: 0; }
.creator-card__name { color: var(--ink); font-weight: 600; font-size: 14px; }
.creator-card__identity small { color: var(--muted); font: 500 11px/1.4 "JetBrains Mono", monospace; }
.creator-card__go { color: var(--muted); }
.creator-card__go .zv-icon { width: 18px; height: 18px; }
.creator-card__bio { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.creator-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.creator-card__tags a {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 11px;
}
.creator-card__featured {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
}
.creator-card__featured-label { color: var(--muted); font: 500 10px/1.4 "JetBrains Mono", monospace; }
.creator-card__featured strong { color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.45; }
.creator-card__featured--empty { margin: 0; color: var(--muted); font-size: 12px; }
.creator-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font: 500 11px/1.4 "JetBrains Mono", monospace;
}
.creator-card__foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 12px; font-weight: 600; }
.creator-card__foot .zv-icon { width: 15px; height: 15px; }
.creators-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.creators-pagination a { color: var(--ink); font-weight: 600; }
.creators-empty { margin-top: 20px; }
.creators-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
}
.creators-cta .section-label { margin: 0 0 6px; color: #a1a1aa; }
.creators-cta h2 { margin: 0 0 4px; color: #fff; font-size: 20px; font-weight: 600; }
.creators-cta p { margin: 0; color: #a1a1aa; font-size: 13px; }
.creators-cta .button { background: #fff; border-color: #fff; color: var(--ink); }
.creators-cta .button .zv-icon { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .creators-cta { align-items: flex-start; flex-direction: column; }
  .creators-filter__search { max-width: none; }
}

/* 删除动作（作者删内容 / 评论删除）：低饱和、hover 才显红，避免误触。 */
.detail-delete,
.detail-comment__delete {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}
.detail-delete:hover,
.detail-comment__delete:hover { border-color: #f0b4ad; color: var(--danger); }
.detail-delete .zv-icon,
.detail-comment__delete .zv-icon { width: 14px; height: 14px; }
.detail-comment__delete { padding: 3px 8px; font-size: 11px; }

/* 收藏 / 关注流的内容卡：容器很宽时单张卡会被拉到整屏，媒体区随之变成巨图。
   这里限制卡片宽度与媒体高度，保持网格感。 */
.plaza-card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 300px)); justify-content: start; }
.plaza-card { max-width: 300px; }
.plaza-card__media { aspect-ratio: 16 / 10; max-height: 170px; }
.plaza-card__placeholder { font-size: 26px; }

/* ============ 账户设置页 ============
   04 段结构：公开资料 / 头像 / 通知 / 数据与账户。每段带序号与说明，
   通知偏好改成两列开关列表，危险操作单独留在最后。 */
.settings-section { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 16px; }
.settings-section .section-head { align-items: baseline; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.settings-section .section-head h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 600; }
.settings-step { color: var(--muted); font: 600 11px/1.4 "JetBrains Mono", monospace; }
.settings-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.notification-preferences { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.notification-preferences__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  font-size: 13px;
}
.notification-preferences__item:hover { border-color: #d4d4d8; }
.notification-preferences__item:has(input:checked) { border-color: var(--ink); background: #f4f4f5; }
.notification-preferences__item input { margin: 0; }
.notification-preferences__item strong { font-weight: 500; color: var(--ink); }
.visibility-options { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 16px 0 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; }
.visibility-options legend { padding: 0 6px; color: var(--muted); font-size: 12px; }
.account-data { border-color: #f0d7d3; }
.account-data .section-head { border-bottom-color: #f6e4e1; }
.form-footer { gap: 12px; }
.form-footer .settings-note { flex: 1 1 240px; margin: 0; }
@media (max-width: 720px) {
  .settings-section { padding: 16px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .button { width: 100%; justify-content: center; }
}

/* 账户工作台侧栏图标：迁移到内联 SVG 后尺寸跟随了文字（13px），比原来的字体图标小一圈。
   这里显式定尺寸与颜色，hover/激活时跟随文字颜色。 */
.account-dashboard__rail nav a .zv-icon { width: 17px; height: 17px; color: #9ca1a6; }
.account-dashboard__rail nav a:hover .zv-icon,
.account-dashboard__rail nav a.is-active .zv-icon { color: currentColor; }
.account-dashboard__rail .account-dashboard__identity .zv-icon { width: 16px; height: 16px; }
.profile-tabs a .zv-icon { width: 15px; height: 15px; }

/* 收藏列表：容器原本是块级，卡片被限制 300px 后"移除收藏"会飘到容器右侧。
   改成与内容卡一致的网格，并让定位容器与卡片同宽，按钮回到卡片右上角。 */
.profile-content-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
  gap: 16px;
  justify-content: start;
  align-items: start;
}
.saved-item { position: relative; max-width: 300px; }
.saved-item .plaza-card { max-width: none; }
.plaza-card__media { overflow: hidden; }
/* 需要压过 .button.button--text.button--small 的样式，所以用三段式选择器并放在最后。 */
.profile-content-list .saved-item .saved-item__remove {
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 999px;
  background: rgb(9 10 12 / 62%);
  color: #fff;
  font-size: 11px;
}
.profile-content-list .saved-item .saved-item__remove:hover { border-color: #fff; background: rgb(9 10 12 / 82%); color: #fff; }

/* 圈子管理面板：公告 / 邀请 / 置顶 / 成员 四组统一节奏，管理操作集中在一张卡里。 */
.circle-manager { display: grid; gap: 18px; }
.circle-manager > h2 { margin: 0; }
.circle-manager > form { display: grid; gap: 8px; margin: 0; }
.circle-manager > form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.circle-manager > form textarea,
.circle-manager > form input,
.circle-manager > form select { width: 100%; }
.circle-manager > form button { justify-self: start; }
.circle-manager > form + form,
.circle-manager > form + .circle-manager__group,
.circle-manager__group + .circle-manager__group { padding-top: 16px; border-top: 1px solid var(--border); }
.circle-manager__group { display: grid; gap: 8px; }
.circle-manager__group h3 { margin: 0; color: var(--muted); font: 500 11px/1.4 "JetBrains Mono", monospace; }
.circle-manager__member { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #f1f2f3; font-size: 12px; }
.circle-manager__member:first-of-type { border-top: 0; }
.circle-manager__member-actions { display: inline-flex; gap: 6px; }

/* 内页修复：讨论区块的计数胶囊此前被写死 width/height:10px，文字溢出成乱码；
   归属与授权改成带标签的行，圈子简介弱化；评论空态给结构与引导。 */
.detail-section-head h2 > span:not(.zv-icon) {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font: 500 11px/1.6 "JetBrains Mono", monospace;
  white-space: nowrap;
}
.detail-context-row { display: grid; gap: 6px; }
.detail-context-row > dt { color: #8b9197; font-size: 11px; }
.detail-context-row > dd { display: grid; gap: 4px; margin: 0; }
.detail-context-row .detail-circle-context__link { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 12px; font-weight: 600; }
.detail-context-row .detail-circle-context__link .zv-icon { width: 13px; height: 13px; }
.detail-context-row small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.detail-spec-list > .detail-context-row { display: grid; }
.detail-comments-empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 30px 20px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: #fafafa;
  text-align: center;
}
.detail-comments-empty .zv-icon { width: 26px; height: 26px; color: #c4c4c8; }
.detail-comments-empty strong { color: var(--ink); font-size: 14px; }
.detail-comments-empty p { max-width: 420px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

/* 收藏页：卡片媒体区此前被 max-height 压成 272px（aspect-ratio 反算宽度），
   导致媒体比卡片窄 28px，占位字母看似偏心。改为宽度撑满、由比例决定高度。 */
.plaza-card__media { width: 100%; aspect-ratio: 16 / 10; max-height: none; }

/* 收藏集：批量移除工具条 + 选中态 + 不足 3 条时的补位卡 */
.saved-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}
.saved-toolbar__pick { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.saved-toolbar__count { font: 500 11px/1.4 "JetBrains Mono", monospace; }
.saved-toolbar [data-saved-remove-selected] { margin-left: auto; }
.saved-toolbar [data-saved-remove-selected]:not(:disabled):hover { border-color: #f0b4ad; color: var(--danger); }
.saved-item__pick {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgb(255 255 255 / 88%);
  border: 1px solid var(--border);
}
.saved-item__pick input { margin: 0; }
.saved-item:has(.saved-item__pick input:checked) { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 16px; }
.saved-more {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  min-height: 220px;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}
.saved-more .zv-icon { width: 24px; height: 24px; color: #c4c4c8; }
.saved-more strong { color: var(--ink); font-size: 13px; }
.saved-more span { font-size: 11px; }
.saved-more:hover { border-color: var(--ink); }

/* 广场：排序与"来源"分开，避免和左侧分类混成一层 */
.feed-tabs { display: flex; align-items: center; gap: 6px; }
.feed-tabs__label { color: var(--muted); font: 500 10px/1.4 "JetBrains Mono", monospace; letter-spacing: .04em; }
.feed-tabs__label:not(:first-child) { margin-left: 4px; }
.feed-tabs__sep { width: 1px; height: 14px; margin: 0 6px; background: var(--border); }

/* 卡片摘要固定两行，长标题不再把摘要挤成一行半 */
.feed-row .feed-summary,
.plaza-card__body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 无封面时的占位：类型图标 + 轻渐变，比灰色单字更有信息量 */
.plaza-card__placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  height: 100%;
  color: #9aa0a6;
  background: linear-gradient(135deg, #f7f7f8 0%, #eceef0 100%);
}
.plaza-card__placeholder .zv-icon { width: 26px; height: 26px; }
.plaza-card__placeholder small { color: #8b9197; font: 500 10px/1.4 "JetBrains Mono", monospace; }
.plaza-card__placeholder--work { background: linear-gradient(135deg, #f6f7fb 0%, #e8ecf4 100%); }
.plaza-card__placeholder--discussion { background: linear-gradient(135deg, #f8f7f5 0%, #eeeae4 100%); }
.plaza-card__placeholder--share { background: linear-gradient(135deg, #f5f8f7 0%, #e6efec 100%); }
.plaza-card__placeholder--help { background: linear-gradient(135deg, #fbf7f6 0%, #f2e8e5 100%); }

/* 窄屏：右栏不再顶在内容前面，改成可横向滚动的紧凑区，并放到内容之后 */
@media (max-width: 1080px) {
  .community-layout { display: flex; flex-direction: column; }
  .community-sidebar { order: 2; }
  .plaza-main { order: 1; }
  .community-widgets { order: 3; display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
  .community-widgets > .community-widget { flex: 0 0 260px; margin: 0; }
}

/* ============ 内容详情页优化 ============ */
/* 阅读进度条：贴在页头下方，随滚动填充 */
.detail-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: transparent; }
.detail-progress > span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .12s linear; }

/* 首屏结论条：一句话结论，先告诉读者"是什么" */
.detail-lede { display: grid; gap: 12px; margin: 14px 0 18px; }
.detail-lede__text { margin: 0; color: #3f3f46; font-size: 15px; line-height: 1.75; }

/* 沙箱内嵌体验：默认折叠，点开才加载 iframe */
.detail-embed { margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.detail-embed > summary { display: flex; align-items: center; gap: 7px; padding: 11px 14px; cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 600; }
.detail-embed > summary::-webkit-details-marker { display: none; }
.detail-embed > summary .zv-icon { width: 17px; height: 17px; }
.detail-embed iframe { display: block; width: 100%; height: 420px; border: 0; border-top: 1px solid var(--border); background: #fff; }

/* 评论作者标识 */
.detail-comment__badge {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 10px;
}
@media (max-width: 900px) {
  /* 全局底部导航高 64px（含"发布"悬浮按钮），内容页操作条必须叠在它上面，
     否则会盖住中间的发布按钮（表现为"发布按钮没了、还被拉伸"）。 */
  body.detail-has-mobile-bar { padding-bottom: 122px; }
}

/* 详情页目录在宽屏吸顶（此前是静态） */
@media (min-width: 1081px) {
  .detail-toc { position: sticky; top: 96px; }
}

/* 代码块行号：按行渲染后用计数器编号，方便引用具体某一行 */
.detail-code-block__pre code { counter-reset: code-line; }
.detail-code-block__pre .code-line {
  display: block;
  counter-increment: code-line;
  padding-left: 42px;
  position: relative;
}
.detail-code-block__pre .code-line::before {
  content: counter(code-line);
  position: absolute;
  left: 0;
  width: 30px;
  text-align: right;
  color: #5b6166;
  user-select: none;
}

/* 评论里的 @提及 */
.mention { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: #d4d4d8; }
.mention:hover { text-decoration-color: var(--ink); }

/* 广场排序控件：排序（最新/精选）与来源（只看关注）分开，不再把标签塞进胶囊里 */
.feed-sort { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.feed-sort__group { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.feed-sort__label { padding: 0 8px 0 10px; color: var(--muted); font: 500 10px/1.4 "JetBrains Mono", monospace; }
.feed-sort__group a { padding: 6px 14px; border-radius: 999px; color: var(--muted); font-size: 13px; }
.feed-sort__group a:hover { color: var(--ink); }
.feed-sort__group a.is-active { background: var(--ink); color: #fff; font-weight: 600; }
.feed-sort__following { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 12px; }
.feed-sort__following:hover { color: var(--ink); }
.feed-sort__following.is-active { border-color: var(--ink); background: #f4f4f5; color: var(--ink); font-weight: 600; }
.feed-sort__following .zv-icon { width: 15px; height: 15px; }

/* 分页：paginate_links 输出 <ul class="page-numbers">，之前没有去掉列表符号，导致竖排圆点 */
.pagination { display: flex; justify-content: center; margin: 30px 0; }
.pagination .page-numbers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pagination .page-numbers li { list-style: none; }
.pagination .page-numbers a,
.pagination .page-numbers span { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--ink); font-size: 12px; }
.pagination .page-numbers a:hover { border-color: var(--ink); }
.pagination .page-numbers .current { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.pagination .page-numbers .dots { border: 0; color: var(--muted); }

/* 侧栏卡片标题右侧的动作：纯文字链接，不要看起来像空按钮 */
.widget-heading a { border: 0; padding: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 500; }
.widget-heading a:hover { color: var(--ink); }

/* 首页精选卡：此前每张卡的可选区块（预览/代码/体验入口）高度不一，网格高度参差、空白多。
   统一为"固定高度预览位 + 一致底栏"，并收紧内边距。 */
.home-showcase { gap: 16px; }
.home-card { padding: 18px; gap: 10px; }
.home-card__preview,
.home-card__code,
.home-card__demo {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-card__preview img { width: 100%; height: 132px; object-fit: cover; }
.home-card__code { justify-content: flex-start; }
.home-card__code pre { max-height: 96px; }
.home-card__demo { min-height: 96px; }
.home-card__summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-card__foot { margin-top: auto; }

/* 详情页"作品体验入口"占位过高：从 360px 收到 240px，并把外链按钮留在栏内 */
.detail-stage__canvas { min-height: 240px; }
.detail-stage__canvas img { max-height: 360px; }

/* 评论操作：赞 → 回复 → 举报 → 删除，统一为文字按钮，删除最靠后 */
.detail-comment__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.detail-comment__like-count { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.detail-comment__like-count .zv-icon { width: 15px; height: 15px; }
.detail-comment__actions button,
.detail-comment__actions a { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.detail-comment__actions button:hover,
.detail-comment__actions a:hover { color: var(--ink); }
.detail-comment__delete { display: inline-flex; align-items: center; gap: 4px; }
.detail-comment__delete .zv-icon { width: 13px; height: 13px; }
.detail-comment__delete:hover { color: var(--danger); }

/* 圈子卡片：去掉重复的箭头按钮后，底栏保持"一个主动作 + 状态" */
.circle-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* 评论举报按钮与圈主链接尾部图标 */
.detail-comment__report { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.detail-comment__report:hover { color: var(--ink); }
.detail-circle-context__icon { display: inline-block; margin-left: 4px; vertical-align: -2px; }
.detail-circle-context__icon .zv-icon { width: 13px; height: 13px; }
/* 圈主链接改为行内，避免 flex 居中把箭头图标夹在折行的文字中间 */
.detail-circle-context__link { display: inline; color: var(--ink); font-size: 12px; font-weight: 600; }

/* 首页卡片：无预览素材时用"类型/技术/更新"事实条补位，保证每张卡节奏一致 */
.home-card__facts {
  display: grid;
  gap: 6px;
  min-height: 96px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
}
.home-card__facts-item { display: flex; align-items: baseline; gap: 8px; color: var(--ink); font-size: 12px; }
.home-card__facts-item b { flex: none; width: 30px; color: var(--muted); font: 500 10px/1.5 "JetBrains Mono", monospace; }

/* 广场右栏跟随滚动（与左栏一致）：内容比视口高时不吸顶，避免看不到底部卡片 */
.community-widgets { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; }
@media (max-width: 1080px) {
  .community-widgets { position: static; max-height: none; overflow: visible; }
}

/* 侧栏推荐关注：一行一个人 + 关注按钮 */
.creator-mini { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.creator-mini__link { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.creator-mini__copy { min-width: 0; }
.creator-mini__follow {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.creator-mini__follow:hover { border-color: var(--ink); }
.creator-mini__follow.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }

/* 侧栏圈子行：右侧显示成员数 */
.sidebar-topics a { display: flex; align-items: center; gap: 6px; }
.sidebar-topics a small { margin-left: auto; color: var(--muted); font: 500 10px/1.4 "JetBrains Mono", monospace; }
.sidebar-topics__more { color: var(--ink); font-weight: 600; }
.sidebar-topics__empty a { color: var(--ink); }

/* 详情页窄屏：评论表单与操作行不再挤成一团 */
@media (max-width: 720px) {
  .detail-comment-form { display: grid; gap: 10px; }
  .detail-comment__actions { gap: 10px 14px; }
  .detail-comment__card { padding: 12px; }
  .detail-comment { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  .detail-comment.is-reply { margin-left: 20px; }
  .detail-related-grid { grid-template-columns: 1fr; }
  .detail-section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* ============ 圈子索引重构 ============ */
.circle-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.circle-toolbar__scopes { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.circle-toolbar__scopes a { padding: 6px 14px; border-radius: 999px; color: var(--muted); font-size: 13px; }
.circle-toolbar__scopes a:hover { color: var(--ink); }
.circle-toolbar__scopes a.is-active { background: var(--ink); color: #fff; font-weight: 600; }
.circle-toolbar__search { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 260px; min-width: 0; }
.circle-toolbar__search input { flex: 1 1 auto; min-width: 0; }
.circle-toolbar__sort { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.circle-toolbar__sort a.is-active { color: var(--ink); font-weight: 600; }

.circle-card { display: grid; gap: 10px; }
.circle-card__top { display: flex; align-items: center; gap: 10px; }
.circle-card__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f4f4f5, #e4e4e7);
  color: #3f3f46;
  font-size: 15px;
  font-weight: 600;
}
.circle-card__index { color: var(--muted); font: 500 11px/1.4 "JetBrains Mono", monospace; }
.circle-card__mode { margin-left: auto; color: var(--muted); font-size: 11px; }
.circle-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; }
.circle-card__meta img { border-radius: 999px; }
.circle-card__state { color: var(--muted); font-size: 11px; }
.circle-card footer { display: flex; align-items: center; gap: 10px; }
.circle-card__status:empty { display: none; }
.circle-application-dialog__note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

@media (max-width: 720px) {
  .circle-grid { grid-template-columns: 1fr; }
  .circle-card dl { grid-template-columns: 1fr 1fr; }
  .circle-toolbar__search { flex: 1 1 100%; }
}

/* 圈子工具栏搜索按钮不换行 */
.circle-toolbar__search .button { flex: none; white-space: nowrap; }
@media (max-width: 720px) {
  .detail-content { padding: 20px 16px; border-radius: 12px; }
  .detail-content__header h1 { font-size: 24px; }
}

/* 被限制内容（仅作者可见）的说明条 */
.detail-limited-notice {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #f0d9a8;
  border-radius: 12px;
  background: #fdf8ec;
  color: #6b5a2e;
}
.detail-limited-notice .zv-icon { flex: none; width: 18px; height: 18px; }
.detail-limited-notice strong { display: block; color: #4a3d18; font-size: 13px; }
.detail-limited-notice span { font-size: 12px; line-height: 1.7; }

/* 圈子页：举报卡与成员管理动作 */
.circle-report-card { display: grid; gap: 10px; }
.circle-report-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.circle-report-card .button { justify-self: start; display: inline-flex; align-items: center; gap: 5px; }
.circle-report-card .zv-icon { width: 15px; height: 15px; }
.text-action--danger { color: var(--danger); }

/* 申诉表单与圈内隐藏提示 */
.detail-limited-notice__state { display: block; margin-top: 6px; font-size: 12px; color: #6b5a2e; }
.detail-appeal-form { display: grid; gap: 8px; margin-top: 10px; }
.detail-appeal-form textarea { width: 100%; min-height: 68px; }
.detail-appeal-form .button { justify-self: start; }
.detail-appeal-status:empty { display: none; }
.detail-appeal-status { margin: 0; font-size: 12px; color: #6b5a2e; }
.detail-limited-notice--circle { border-color: #cfe0f0; background: #f2f7fc; color: #31506b; }
.detail-limited-notice--circle strong { color: #23405a; }
.detail-limited-notice--circle .detail-limited-notice__state,
.detail-limited-notice--circle .detail-appeal-status { color: #31506b; }
.circle-manager__hint { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.circle-manager__member a { color: var(--ink); }

/* 窄屏（换行后）侧栏不再粘性，避免和正文重叠 */
@media (max-width: 1300px) {
}

/* ============ 移动端卡片：统一观感 + 减少拥挤 ============ */
@media (max-width: 720px) {
  /* 侧栏卡片统一节奏：同样的内边距、标题下分割线、行间距，不再参差 */
  .detail-sidebar-card { padding: 16px 14px; border-radius: 12px; }
  .detail-sidebar-card > h2 { margin-bottom: 12px; padding-bottom: 10px; font-size: 14px; }
  /* 规格类标签不再被拆成两行（"构建框 架"） */
  .detail-spec-list dt { flex: none; white-space: nowrap; }
  .detail-spec-list dd { text-align: right; }
  .detail-spec-list > div { align-items: baseline; }
  /* 主行动按钮一行一个，文字不换行、不被压断 */
  .detail-primary-links { grid-template-columns: 1fr; gap: 8px; }
  .detail-primary-links .button { white-space: nowrap; }
  .detail-quick-actions footer { flex-wrap: wrap; gap: 10px 14px; }
  /* 相关推荐在移动端只保留两条，卡片更紧凑 */
  .detail-related-grid { gap: 10px; }
  .detail-related-card { padding: 14px 12px; }
  .detail-related-card h3 { font-size: 14px; }
}

/* 构建版本（仅管理员可见，用于排查缓存） */
.footer-build { margin: 6px 0 0; color: var(--muted); font: 500 11px/1.5 "JetBrains Mono", monospace; }

/* 长代码/长链接不再撑宽正文列（否则会把侧栏挤扁） */
.detail-code-block__pre { max-width: 100%; overflow-x: auto; }
.detail-entry-content pre,
.detail-entry-content table { max-width: 100%; overflow-x: auto; }
.detail-entry-content img { max-width: 100%; height: auto; }

/* 横向溢出护栏：内容页容器不超过视口，宽内容只在自己框内滚动。 */
html, body { max-width: 100%; overflow-x: clip; }
.detail-entry-content > * { max-width: 100%; }
/* ==========================================================================
   内容详情页骨架（dt-* 命名空间，重写）
   版式：左侧导览栏 | 正文 | 右侧信息卡（三列弹性，不依赖媒体查询）
     · 左栏 176px；正文最小 420px；右栏 300px → 1099px 视口仍能三列并排
     · 放不下时右栏自动换行到下方，任何宽度都不会被压成窄条或留大片空白
     · 类名是新命名空间，被缓存的旧样式无从干涉
   ========================================================================== */
.dt-page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  /* 与站点其它页面同一套容器口径：max-width 1370 + 左右 16px，居中 */
  width: min(1370px, 100%);
  max-width: 100%;
  margin-inline: auto;
  padding: 18px 16px 84px;
  overflow-x: clip;
}
.dt-rail { flex: 0 0 176px; min-width: 0; position: sticky; top: 96px; }
.dt-rail .dt-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.dt-rail .dt-back .zv-icon { width: 16px; height: 16px; }
.dt-rail .detail-toc { display: grid; gap: 4px; }
.dt-rail .detail-toc__label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  color: var(--muted);
  font: 500 11px/1.4 "JetBrains Mono", monospace;
}
.dt-rail .detail-toc__label .zv-icon { width: 14px; height: 14px; }
.dt-rail .detail-toc a {
  padding: 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}
.dt-rail .detail-toc a:hover { background: #f4f4f5; color: var(--ink); }
.dt-rail .detail-toc a.is-active { border-left-color: var(--ink); background: #f4f4f5; color: var(--ink); font-weight: 600; }
.dt-main { flex: 1 1 420px; min-width: 0; }
.dt-main .detail-content { max-width: 780px; margin: 0 auto; }
.dt-main .detail-related { max-width: 780px; margin: 26px auto 0; }
.dt-cards { flex: 0 0 300px; display: grid; align-items: start; align-content: start; gap: 16px; margin: 24px 0 0; min-width: 0; }
/* 正文比信息卡高得多：三列并排时让右栏跟随滚动，读到正文中段仍能看到操作与作者信息。
   用 min-width 而不是 max-width 做门控——三列是弹性布局、放不下时右栏会换行到正文下方，
   换行后再 sticky 会浮在正文上面，所以只在"确定还并排"的宽度启用（1099px 实测仍并排）。
   换行阈值 = 各列 flex-basis 之和（176+420+300+40=936）加上 .dt-page 左右各 16px = 968px，
   这里取 1000px 留裕度。
   max-height 是兜底：作者简介很长时右栏可独立滚动，而不是把底部卡片顶出视野。 */
@media (min-width: 1000px) {
  /* max-height 留 8px 余量：列高正好等于可视高度时，亚像素舍入会凭空多出 1–2px 溢出，
     导致右列出现一条假滚动条。 */
  .dt-cards { position: sticky; top: 96px; max-height: calc(100vh - 88px); overflow-y: auto; }
}
.dt-bar { display: none; }
@media (max-width: 900px) {
  .dt-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom));
    z-index: 70;
    display: grid;
    grid-auto-flow: column;
    gap: 4px;
    padding: 8px 10px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgb(255 255 255 / 97%);
    backdrop-filter: blur(6px);
  }
  .dt-bar a,
  .dt-bar button {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 6px 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
  }
  .dt-bar .is-active { color: var(--ink); }
  .dt-bar .zv-icon { width: 19px; height: 19px; }
  .dt-bar .is-primary { background: var(--ink); color: #fff; }
  .dt-bar .is-primary .zv-icon { color: #fff; }
  body.dt-has-bar { padding-bottom: 122px; }
}
@media (max-width: 720px) {
  .dt-page { padding: 12px 14px 84px; }
  .dt-rail { position: static; flex: 1 1 100%; }
  .dt-rail .detail-toc { display: flex; flex-wrap: wrap; gap: 6px; }
  .dt-rail .detail-toc__label { display: none; }
  .dt-cards { flex: 1 1 100%; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .detail-content { padding: 18px 14px; border-radius: 12px; }
  .detail-content__header h1 { font-size: 24px; }
}

/* 代码块：头部（文件名 + 语言 + 复制按钮）与正文分离，复制按钮不再压在代码上 */
.detail-code-block__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #26292c;
  background: #16181a;
}
.detail-code-block__head span { color: #d4d4d8; font: 500 11px/1.4 "JetBrains Mono", monospace; }
.detail-code-block__head small { color: #8b9197; font: 500 10px/1.4 "JetBrains Mono", monospace; }
.detail-code-block__head .button { margin-left: auto; }

/* 兼容：活动页仍在用 .detail-back */
.dt-back,
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.dt-back .zv-icon,
.detail-back .zv-icon { width: 16px; height: 16px; }

/* 评论点赞按钮（可点） */
.detail-comment__like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.detail-comment__like .zv-icon { width: 15px; height: 15px; }
.detail-comment__like b { font-weight: 500; }
.detail-comment__like:hover { border-color: var(--border); color: var(--ink); }
.detail-comment__like.is-active { border-color: var(--ink); background: #f4f4f5; color: var(--ink); }
.detail-comment__like:disabled { opacity: .6; cursor: wait; }

