﻿/* 本地化样式，无外链；系统 UI + 中文黑体系字体栈
 * 设计令牌：4px 网格 + 44px 触控目标（HIG）+ 中文正文行高（腾讯系可读性）
 * 走查：P0 触控/焦点/暗色对比；P1 令牌收敛；P2 详情等局部硬编码色逐步迁入变量 */
:root {
  /* —— 间距（4px 基准）—— */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  /* —— 触控与动效（Apple HIG 约 44×44pt）—— */
  --touch-target-min: 2.75rem;
  /* 详情页：下载按钮与邮件订阅条同一行时共用高度（与 .btn-lg 视觉对齐） */
  --detail-hero-action-height: 3rem;
  --motion-duration-sm: 0.15s;
  --motion-duration-md: 0.2s;
  --motion-ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1);
  --motion-ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
  /* —— 语义色（正文层级）—— */
  --color-text-primary: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #86868b;
  /* —— 表面与强调（与历史变量兼容）—— */
  --bg: #f5f5f7;
  --fg: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --line: rgba(0, 0, 0, 0.08);
  --card: #ffffff;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --radius-sm: 8px;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
  --site-hero-tint: linear-gradient(165deg, #e8f4ff 0%, #f5f5f7 42%, #f5f5f7 100%);
  --site-card-radius: 1.25rem;
  /* 略提高单列最小宽度，避免四列时标题区过窄 */
  --site-card-col-min: 18.5rem;
  --site-card-gap: clamp(0.75rem, 2.2vw, 1.25rem);
  --site-pad-x: clamp(var(--space-3), 4vw, var(--space-6));
  /* 中文辅助说明行高（正文/卡片描述） */
  --line-height-prose: 1.65;
  /* Noto Sans SC 由 fonts-noto-sc.css 自托管；未加载时由后续系统字体承接 */
  --font-sans: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft YaHei", "Heiti SC", "Noto Sans CJK SC",
    "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

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

/* 后台：避免子项 min-content 撑出整页横向滚动 */
html.admin-html {
  overflow-x: hidden;
  background: #000000;
}

/* —— 可访问性与焦点（WCAG 2.x 键盘操作）—— */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 10000;
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.35);
}

.skip-link:focus {
  left: 0.75rem;
  outline: none;
}

.skip-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.skip-link--admin:focus {
  left: 0.75rem;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

.btn:focus-visible,
button:focus-visible {
  outline-offset: 3px;
}

.btn-primary:focus-visible {
  outline: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px rgba(255, 255, 255, 0.95);
}

.site-product-card:focus-visible {
  outline-offset: 3px;
}

.detail-dl-row:focus-visible {
  outline-offset: 2px;
}

.nav-link:focus-visible,
.brand:focus-visible {
  outline-offset: 3px;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .detail-hero-notify {
    transition-duration: 0.01ms !important;
  }

  .site-feedback-textarea,
  .site-feedback-field--url .site-feedback-input,
  .site-feedback-wrap .EasyMDEContainer .CodeMirror {
    transition-duration: 0.01ms !important;
  }

  .site-product-card,
  .site-product-card:hover,
  .detail-dl-row,
  .detail-dl-row:hover,
  .admin-pe-panel,
  .admin-pe-seg-btn,
  .nav-link,
  .btn {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .site-product-card:hover,
  .detail-dl-row:hover {
    transform: none;
  }

  .admin-pe-panel.is-active {
    animation: none;
  }
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-feature-settings: "kern" 1;
}

/* 前台：Grid 三行（顶栏 / 主内容 1fr / 页脚），短页主区吃满剩余视口，页脚贴底 */
body.site-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  box-sizing: border-box;
}

body.site-body > main.site-main {
  grid-row: 2;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

body.site-body > header.site-nav {
  grid-row: 1;
}

body.site-body > footer.site-footer {
  grid-row: 3;
}

/* —— 前台：需求反馈页（site-feedback-*） —— */
.site-section-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.2;
}

.site-feedback-main {
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}

.site-feedback-wrap {
  max-width: 40rem;
  margin: 0 auto;
}

.site-feedback-head {
  margin-bottom: var(--space-6);
}

.site-feedback-title {
  margin-bottom: var(--space-3);
}

.site-feedback-lead {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.site-feedback-alert {
  padding: 0.85rem 1.1rem;
  margin-bottom: var(--space-4);
  font-size: 0.9375rem;
  line-height: 1.5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.site-feedback-alert--ok {
  background: rgba(52, 199, 89, 0.12);
  border-color: rgba(52, 199, 89, 0.35);
  color: var(--fg);
}

.site-feedback-alert--err {
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.35);
  color: var(--fg);
}

.site-feedback-alert--warn {
  background: rgba(255, 159, 10, 0.12);
  border-color: rgba(255, 159, 10, 0.35);
  color: var(--fg);
}

.site-feedback-alert--info {
  background: rgba(10, 113, 227, 0.08);
  border-color: rgba(10, 113, 227, 0.22);
  color: var(--fg);
}

.site-feedback-code {
  padding: 0.1rem 0.35rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
}

body.site-body.site-appearance-dark .site-feedback-code {
  background: rgba(255, 255, 255, 0.08);
}

.site-feedback-hint {
  margin-bottom: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--site-card-radius);
  box-shadow: var(--shadow);
}

.site-feedback-hint-title {
  margin: 0 0 var(--space-3);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

.site-feedback-hint-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.65;
}

.site-feedback-hint-list li + li {
  margin-top: 0.35rem;
}

.site-feedback-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.site-feedback-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  min-width: 0;
}

.site-feedback-field--url .site-feedback-input {
  max-width: 100%;
}

.site-feedback-field-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-4);
}

.site-feedback-field-grow {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1 1 12rem;
  min-width: 0;
}

.site-feedback-label {
  display: block;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

.site-feedback-req {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 0.2rem;
}

.site-feedback-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.site-feedback-input::placeholder {
  color: var(--color-text-tertiary);
  opacity: 0.85;
}

.site-feedback-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 113, 227, 0.08);
}

body.site-body.site-appearance-dark .site-feedback-input:focus {
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

.site-feedback-textarea {
  width: 100%;
  min-height: 200px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  font-family: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fg);
  resize: vertical;
  box-sizing: border-box;
}

.site-feedback-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 113, 227, 0.08);
}

.site-feedback-field--body .EasyMDEContainer {
  margin-top: 0;
}

.site-feedback-wrap .EasyMDEContainer {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.site-feedback-submit-row {
  margin-top: var(--space-2);
}

.site-feedback-submit-row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.site-feedback-submit {
  min-width: 8rem;
}

/* 前台暗色：由 body.site-appearance-dark 控制（首屏内联脚本 + site-theme.js 根据 localStorage 与系统主题写入） */
body.site-body.site-appearance-dark {
  color-scheme: dark;
  --color-text-primary: #f5f5f7;
  --color-text-secondary: #a1a1a6;
  --color-text-tertiary: #8e8e93;
  --bg: #000000;
  --fg: #f5f5f7;
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.14);
  --card: #1c1c1e;
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.65);
  --site-hero-tint: linear-gradient(165deg, #0d1b2a 0%, #000000 45%, #000000 100%);
}

body.site-body.site-appearance-dark .site-nav {
  background: rgba(28, 28, 30, 0.88);
  border-bottom-color: var(--line);
}

body.site-body.site-appearance-dark .brand {
  color: var(--fg);
}

body.site-body.site-appearance-dark .brand:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.site-body.site-appearance-dark .nav-link {
  color: rgba(255, 255, 255, 0.72);
  -webkit-tap-highlight-color: rgba(10, 132, 255, 0.2);
}

body.site-body.site-appearance-dark .nav-link[aria-current="page"] {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.12);
}

body.site-body.site-appearance-dark .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}

body.site-body.site-appearance-dark .site-footer {
  background: rgba(28, 28, 30, 0.94);
  border-top-color: var(--line);
}

body.site-body.site-appearance-dark .site-footer--admin {
  background: #1c1c1e;
}

body.site-body.site-appearance-dark .site-product-card {
  background: #1c1c1e;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
body.site-body.site-appearance-dark .site-product-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}





body.site-body.site-appearance-dark .detail-hero-band {
  border-bottom-color: var(--line);
}

body.site-body.site-appearance-dark .detail-hero-glow {
  background: radial-gradient(circle, rgba(10, 132, 255, 0.22) 0%, transparent 65%);
}

body.site-body.site-appearance-dark .detail-hero-icon-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.45);
}

body.site-body.site-appearance-dark .detail-back {
  background: rgba(28, 28, 30, 0.82);
  border-color: var(--line);
  color: var(--fg);
}

body.site-body.site-appearance-dark .detail-back:hover {
  border-color: rgba(10, 132, 255, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

body.site-body.site-appearance-dark .detail-page .site-prose-card .markdown-body > blockquote {
  background: rgba(10, 132, 255, 0.08);
  border-left-color: rgba(10, 132, 255, 0.35);
}

body.site-body.site-appearance-dark .detail-toc-sidebar {
  background: rgba(28, 28, 30, 0.92);
  border-color: var(--line);
}

body.site-body.site-appearance-dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}

body.site-body.site-appearance-dark .site-empty {
  background: var(--card);
  border-color: var(--line);
}

body.site-body.site-appearance-dark .site-feedback-alert--info {
  background: rgba(10, 132, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.35);
  color: var(--fg);
}

body.site-body.site-appearance-dark .site-error-code {
  color: rgba(255, 255, 255, 0.12);
}

body.site-body.site-appearance-dark .site-feedback-input:focus,
body.site-body.site-appearance-dark .site-feedback-textarea:focus {
  border-color: rgba(10, 132, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

/* 需求反馈页：EasyMDE 深色（与后台一致，依赖 app.css 在 easymde 之后加载） */
body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .CodeMirror {
  color: #f5f5f7;
  background: #1c1c1e;
  border-color: #3a3a3c;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .CodeMirror-scroll {
  background: #1c1c1e;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .CodeMirror-gutters {
  background: #2c2c2e;
  border-right-color: #3a3a3c;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .CodeMirror-linenumber {
  color: #8e8e93;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .CodeMirror-cursor {
  border-left-color: #f5f5f7;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .CodeMirror-selected,
body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .CodeMirror-focused .CodeMirror-selected {
  background: rgba(10, 132, 255, 0.35) !important;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .CodeMirror-activeline-background {
  background: rgba(255, 255, 255, 0.04);
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-toolbar {
  background: #2c2c2e;
  border-color: #3a3a3c;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-toolbar button {
  color: #e5e5e7;
  border-color: transparent;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-toolbar button:hover,
body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-toolbar button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #636366;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-toolbar button.active {
  background: rgba(10, 132, 255, 0.28);
  border-color: #0a84ff;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-toolbar i {
  color: #e5e5e7;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-toolbar i.separator {
  border-left-color: #636366;
  border-right-color: #3a3a3c;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-statusbar {
  color: #a1a1a6;
  background: #1c1c1e;
  border-top: 1px solid #3a3a3c;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-preview {
  background: #2c2c2e;
  color: #f5f5f7;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-preview pre {
  background: #1c1c1e;
  color: #f5f5f7;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-preview-side {
  background: #2c2c2e;
  color: #f5f5f7;
  border-color: #3a3a3c;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .cm-s-easymde .cm-header {
  color: #5ac8fa;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .cm-s-easymde .cm-link {
  color: #5ac8fa;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .CodeMirror-fullscreen {
  background: #1c1c1e !important;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-toolbar.fullscreen {
  background: #1c1c1e !important;
  border: none;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-toolbar.fullscreen::before {
  background: linear-gradient(to right, #1c1c1e, rgba(28, 28, 30, 0)) !important;
}

body.site-body.site-appearance-dark .site-feedback-wrap .EasyMDEContainer .editor-toolbar.fullscreen::after {
  background: linear-gradient(to right, rgba(28, 28, 30, 0), #1c1c1e) !important;
}

body.site-body.site-appearance-dark .detail-dock {
  background: linear-gradient(180deg, rgba(44, 44, 46, 0.88) 0%, rgba(28, 28, 30, 0.97) 45%, #1c1c1e 100%);
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 -12px 48px rgba(0, 0, 0, 0.55),
    0 -2px 20px rgba(10, 132, 255, 0.12);
}

body.site-body.site-appearance-dark .detail-dock-accent {
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.2) 0%, rgba(10, 132, 255, 0.85) 45%, rgba(52, 199, 89, 0.45) 100%);
}

body.site-body.site-appearance-dark .detail-dock-ic-wrap {
  background: linear-gradient(145deg, rgba(10, 132, 255, 0.22) 0%, rgba(10, 132, 255, 0.08) 100%);
  color: #0a84ff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

body.site-body.site-appearance-dark .detail-dock-ver {
  background: rgba(10, 132, 255, 0.18);
  color: #64b5ff;
}

body.site-body.site-appearance-dark .detail-dock-btn {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 4px 18px rgba(10, 132, 255, 0.35);
}



body.site-body.site-appearance-dark .detail-hero-notify-field {
  background: rgba(28, 28, 30, 0.78);
  border-color: var(--line);
}

body.site-body.site-appearance-dark .detail-hero-notify-field:focus-within {
  border-color: rgba(10, 132, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

body.site-body.site-appearance-dark .detail-hero-notify-input {
  color: var(--fg);
}



body.site-body.site-appearance-dark .site-prose-card .markdown-body {
  background-color: transparent;
}

/* 系统为浅色但用户选深色时：github-markdown 的暗色变量仅在 prefers-color-scheme:dark 下生效，此处补齐 token */
body.site-body.site-appearance-dark .md-render-root .markdown-body {
  color-scheme: dark;
  --base-text-weight-semibold: 600;
  --base-text-weight-medium: 500;
  --base-text-weight-normal: 400;
  --base-size-16: 1rem;
  --base-size-8: 0.5rem;
  --base-size-4: 0.25rem;
  --fontStack-monospace: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --focus-outlineColor: #1f6feb;
  --fgColor-default: #e6edf3;
  --fgColor-muted: #8d96a0;
  --fgColor-accent: #4493f8;
  --fgColor-success: #3fb950;
  --fgColor-attention: #d29922;
  --fgColor-danger: #f85149;
  --fgColor-done: #ab7df8;
  --bgColor-default: transparent;
  --bgColor-muted: #161b22;
  --bgColor-neutral-muted: #6e768166;
  --bgColor-attention-muted: #bb800926;
  --borderColor-default: #30363d;
  --borderColor-muted: #30363db3;
  --borderColor-neutral-muted: #6e768166;
  --borderColor-accent-emphasis: #1f6feb;
  --borderColor-success-emphasis: #238636;
  --borderColor-attention-emphasis: #9e6a03;
  --borderColor-danger-emphasis: #da3633;
  --borderColor-done-emphasis: #8957e5;
  --color-prettylights-syntax-comment: #8b949e;
  --color-prettylights-syntax-constant: #79c0ff;
  --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
  --color-prettylights-syntax-entity: #d2a8ff;
  --color-prettylights-syntax-storage-modifier-import: #c9d1d9;
  --color-prettylights-syntax-entity-tag: #7ee787;
  --color-prettylights-syntax-keyword: #ff7b72;
  --color-prettylights-syntax-string: #a5d6ff;
  --color-prettylights-syntax-variable: #ffa657;
  --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
  --color-prettylights-syntax-brackethighlighter-angle: #8b949e;
  --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
  --color-prettylights-syntax-invalid-illegal-bg: #8e1519;
  --color-prettylights-syntax-carriage-return-text: #f0f6fc;
  --color-prettylights-syntax-carriage-return-bg: #b62324;
  --color-prettylights-syntax-string-regexp: #7ee787;
  --color-prettylights-syntax-markup-list: #f2cc60;
  --color-prettylights-syntax-markup-heading: #1f6feb;
  --color-prettylights-syntax-markup-italic: #c9d1d9;
  --color-prettylights-syntax-markup-bold: #c9d1d9;
  --color-prettylights-syntax-markup-deleted-text: #ffdcd7;
  --color-prettylights-syntax-markup-deleted-bg: #67060c;
  --color-prettylights-syntax-markup-inserted-text: #aff5b4;
  --color-prettylights-syntax-markup-inserted-bg: #033a16;
  --color-prettylights-syntax-markup-changed-text: #ffdfb6;
  --color-prettylights-syntax-markup-changed-bg: #5a1e02;
  --color-prettylights-syntax-markup-ignored-text: #c9d1d9;
  --color-prettylights-syntax-markup-ignored-bg: #1158c7;
  --color-prettylights-syntax-meta-diff-range: #d2a8ff;
  --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
}

/* 系统为深色但用户选浅色时：github-markdown 仍按 prefers-color-scheme 走暗色，此处强制浅色 token */
body.site-body:not(.site-appearance-dark) .md-render-root .markdown-body {
  color-scheme: light;
  --base-text-weight-semibold: 600;
  --base-text-weight-medium: 500;
  --base-text-weight-normal: 400;
  --base-size-16: 1rem;
  --base-size-8: 0.5rem;
  --base-size-4: 0.25rem;
  --fontStack-monospace: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --focus-outlineColor: #0969da;
  --fgColor-default: #1f2328;
  --fgColor-muted: #636c76;
  --fgColor-accent: #0969da;
  --fgColor-success: #1a7f37;
  --fgColor-attention: #9a6700;
  --fgColor-danger: #d1242f;
  --fgColor-done: #8250df;
  --bgColor-default: transparent;
  --bgColor-muted: #f6f8fa;
  --bgColor-neutral-muted: #afb8c133;
  --bgColor-attention-muted: #fff8c5;
  --borderColor-default: #d0d7de;
  --borderColor-muted: #d0d7deb3;
  --borderColor-neutral-muted: #afb8c133;
  --borderColor-accent-emphasis: #0969da;
  --borderColor-success-emphasis: #1a7f37;
  --borderColor-attention-emphasis: #bf8700;
  --borderColor-danger-emphasis: #cf222e;
  --borderColor-done-emphasis: #8250df;
  --color-prettylights-syntax-comment: #57606a;
  --color-prettylights-syntax-constant: #0550ae;
  --color-prettylights-syntax-constant-other-reference-link: #0a3069;
  --color-prettylights-syntax-entity: #6639ba;
  --color-prettylights-syntax-storage-modifier-import: #24292f;
  --color-prettylights-syntax-entity-tag: #0550ae;
  --color-prettylights-syntax-keyword: #cf222e;
  --color-prettylights-syntax-string: #0a3069;
  --color-prettylights-syntax-variable: #953800;
  --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;
  --color-prettylights-syntax-brackethighlighter-angle: #57606a;
  --color-prettylights-syntax-invalid-illegal-text: #f6f8fa;
  --color-prettylights-syntax-invalid-illegal-bg: #82071e;
  --color-prettylights-syntax-carriage-return-text: #f6f8fa;
  --color-prettylights-syntax-carriage-return-bg: #cf222e;
  --color-prettylights-syntax-string-regexp: #116329;
  --color-prettylights-syntax-markup-list: #3b2300;
  --color-prettylights-syntax-markup-heading: #0550ae;
  --color-prettylights-syntax-markup-italic: #24292f;
  --color-prettylights-syntax-markup-bold: #24292f;
  --color-prettylights-syntax-markup-deleted-text: #82071e;
  --color-prettylights-syntax-markup-deleted-bg: #ffebe9;
  --color-prettylights-syntax-markup-inserted-text: #116329;
  --color-prettylights-syntax-markup-inserted-bg: #dafbe1;
  --color-prettylights-syntax-markup-changed-text: #953800;
  --color-prettylights-syntax-markup-changed-bg: #ffd8b5;
  --color-prettylights-syntax-markup-ignored-text: #eaeef2;
  --color-prettylights-syntax-markup-ignored-bg: #0550ae;
  --color-prettylights-syntax-meta-diff-range: #8250df;
  --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(var(--site-pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--site-pad-x), env(safe-area-inset-right, 0px));
}

@media (min-width: 1280px) {
  .container {
    max-width: min(1180px, calc(100vw - 2.5rem));
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: min(92vw, 1320px);
  }
}

@media (min-width: 1920px) {
  .container {
    max-width: min(90vw, 1440px);
  }
}

@media (min-width: 2560px) {
  .container {
    max-width: min(88vw, 1600px);
  }
}

/* 导航 */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  min-height: 3.25rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target-min);
  padding: 0 var(--space-2);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(0.9375rem, 2.8vw, 1.0625rem);
  color: var(--fg);
  min-width: 0;
  max-width: 100%;
  border-radius: var(--radius-sm);
  transition: background var(--motion-duration-md) var(--motion-ease-standard);
}

.brand:hover {
  background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 400px) {
  .brand {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 0.5rem;
  }
}

.site-nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.5rem;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.site-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--fg);
  cursor: pointer;
  transition:
    background var(--motion-duration-md) var(--motion-ease-standard),
    border-color var(--motion-duration-md) var(--motion-ease-standard),
    color var(--motion-duration-md) var(--motion-ease-standard);
  -webkit-tap-highlight-color: rgba(0, 113, 227, 0.12);
}

.site-theme-toggle:hover {
  background: rgba(0, 0, 0, 0.07);
}

.site-theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.site-body.site-appearance-dark .site-theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line);
  color: var(--fg);
  -webkit-tap-highlight-color: rgba(10, 132, 255, 0.2);
}

body.site-body.site-appearance-dark .site-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-theme-toggle__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  pointer-events: none;
}

.site-theme-toggle__icon--sun {
  display: none;
}

.site-theme-toggle__icon--moon {
  display: block;
}

body.site-body.site-appearance-dark .site-theme-toggle__icon--sun {
  display: block;
}

body.site-body.site-appearance-dark .site-theme-toggle__icon--moon {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target-min);
  padding: 0 var(--space-3);
  border-radius: 999px;
  font-size: clamp(0.8125rem, 2.4vw, 0.875rem);
  color: #515154;
  transition:
    background var(--motion-duration-md) var(--motion-ease-standard),
    color var(--motion-duration-md) var(--motion-ease-standard);
  -webkit-tap-highlight-color: rgba(0, 113, 227, 0.12);
}

.nav-link[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--fg);
}

/* —— 前台：首页 (iCloud Style) —— */
.site-hero-band {
  position: relative;
  overflow: hidden;
}

.site-hero {
  position: relative;
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4rem);
}

.site-hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--fg);
}

.site-hero-sub {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  line-height: 1.5;
  font-weight: 500;
}

.site-list-wrap {
  padding: 0 0 clamp(4rem, 8vw, 6rem);
}

.site-list-head {
  display: none; /* 隐藏原来的列表头，保持极简 */
}

/*
 * 产品列表：iCloud 风格大卡片 (3列为主)
 */
.site-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .site-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-home-card-item {
  display: block;
}

.site-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--card);
  border-radius: 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  -webkit-tap-highlight-color: transparent;
  /* 浅色模式下极弱的阴影，深色模式下由 body.site-appearance-dark 覆盖 */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

@media (hover: hover) and (pointer: fine) {
  .site-product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  }
}

.site-product-card:active {
  transform: scale(0.98);
}

.site-product-card-icon-wrap {
  flex-shrink: 0;
  margin-bottom: 1.5rem;
  width: clamp(4.5rem, 10vw, 6rem);
  height: clamp(4.5rem, 10vw, 6rem);
  border-radius: 22.5%; /* Apple 风格平滑圆角近似值 */
  overflow: hidden;
  background: linear-gradient(145deg, #f5f5f7, #ffffff);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 暗色模式下的图标底座发光效果 */
body.site-body.site-appearance-dark .site-product-card-icon-wrap {
  background: linear-gradient(145deg, #2c2c2e, #1c1c1e);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.site-body.site-appearance-dark .site-product-card-icon-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.site-product-card-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.site-product-card-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.site-product-card-topline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

.site-product-card-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--fg);
}

.site-product-card-tags {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

.site-product-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  line-height: 1.2;
}

.site-product-tag--pinned {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
}

.site-product-tag--featured {
  color: #0071e3;
  background: rgba(0, 113, 227, 0.1);
}

body.site-body.site-appearance-dark .site-product-tag--pinned {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.2);
}

body.site-body.site-appearance-dark .site-product-tag--featured {
  color: #64b5ff;
  background: rgba(10, 132, 255, 0.2);
}

.site-product-card-ver {
  display: none; /* 隐藏版本号，保持极简 */
}

.site-product-card-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  max-width: 90%;
}

.site-product-card-stat {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.6;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .site-product-card:hover .site-product-card-stat {
    opacity: 1;
  }
}

.site-product-card-chevron {
  display: none; /* 移除箭头，保持极简 */
}

.site-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: transparent;
}

.site-empty-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
}

.site-empty-desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.site-home-toolbar {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.site-home-search-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 24rem;
}

.site-home-search-ic {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  opacity: 0.6;
}

.site-home-search {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: none;
  border-radius: 999px;
  font-size: 0.9375rem;
  background: rgba(0, 0, 0, 0.04);
  color: var(--fg);
  transition: all 0.2s ease;
}

body.site-body.site-appearance-dark .site-home-search {
  background: rgba(255, 255, 255, 0.08);
}

.site-home-search:focus {
  outline: none;
  background: var(--card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 2px var(--accent);
}

body.site-body.site-appearance-dark .site-home-search:focus {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--accent);
}

.site-home-filter-hint {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}
/* 兼容旧类名（若仍有引用） */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.tools-grid {
  display: grid;
  gap: 1.5rem;
  padding: 1rem 0 4rem;
  grid-template-columns: 1fr;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.version-tag {
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
  min-height: var(--touch-target-min);
  padding: 0 var(--space-5);
  transition:
    background var(--motion-duration-md) var(--motion-ease-standard),
    opacity var(--motion-duration-md) var(--motion-ease-standard),
    box-shadow var(--motion-duration-md) var(--motion-ease-standard);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 0.9375rem;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--fg);
}

.btn-block {
  width: 100%;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .modal-backdrop {
    align-items: center;
    padding: 1.5rem;
  }
}

.modal-panel {
  background: var(--card);
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

@media (min-width: 768px) {
  .modal-panel {
    max-width: 720px;
    border-radius: var(--radius-xl);
    transform: scale(0.96) translateY(8px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
}

.modal-backdrop.is-open .modal-panel {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .modal-backdrop.is-open .modal-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.modal-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.modal-body {
  padding: 1.25rem 1.5rem 2rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 480px) {
  .modal-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* —— 全站：下载 / Turnstile 人机验证模态（fixed 叠层；grid 同格叠放保证居中）—— */
.site-dl-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
  isolation: isolate;
}

.site-dl-modal[hidden] {
  display: none !important;
}

.site-dl-modal-backdrop {
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-dl-modal-panel {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  max-width: 22rem;
  max-height: min(90vh, 36rem);
  overflow-y: auto;
  padding: 1.5rem 1.35rem 1.35rem;
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.site-dl-modal-title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.site-dl-modal-status {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}

.site-dl-turnstile-host {
  position: relative;
  width: 100%;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.site-dl-modal-err {
  margin: 0 0 0.75rem;
}

.site-dl-modal-close {
  width: 100%;
  margin-top: 0.25rem;
}

.site-dl-modal-spin {
  width: 2rem;
  height: 2rem;
  margin: 0.75rem auto;
  border: 2px solid rgba(0, 113, 227, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: site-dl-spin 0.75s linear infinite;
  display: none;
}

.site-dl-modal-spin.is-on {
  display: block;
}

@keyframes site-dl-spin {
  to {
    transform: rotate(360deg);
  }
}

html.site-dl-modal-open {
  overflow: hidden;
}

/* 后台登录页为纯黑底，模态卡片略偏暗色以统一观感 */
body.admin-login-body .site-dl-modal-panel {
  background: #1c1c1e;
  border-color: #3a3a3c;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

body.admin-login-body .site-dl-modal-title {
  color: #f5f5f7;
}

body.admin-login-body .site-dl-modal-status {
  color: #a1a1a6;
}

.prose {
  font-size: 0.9375rem;
  color: var(--fg);
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.prose h3:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  margin: 0 0 0.75rem;
  color: var(--muted);
  white-space: pre-wrap;
}

.prose ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

/* —— 页脚 (iCloud Style) —— */
.site-footer {
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom, 0px));
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

body.site-body.site-appearance-dark .site-footer {
  background: #000000;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.site-footer-disclaimer {
  margin: 0;
  line-height: 1.5;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

body.site-body.site-appearance-dark .site-footer-disclaimer {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 768px) {
  .site-footer-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

.site-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.site-footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--motion-duration-md) var(--motion-ease-standard);
}

body.site-body.site-appearance-dark .site-footer-links a {
  color: #a1a1a6;
}

.site-footer-links a:hover {
  color: var(--fg);
  text-decoration: underline;
}

body.site-body.site-appearance-dark .site-footer-links a:hover {
  color: #f5f5f7;
}

.site-footer-sep {
  color: var(--line);
}

body.site-body.site-appearance-dark .site-footer-sep {
  color: rgba(255, 255, 255, 0.08);
}

.site-footer-copy {
  margin: 0;
}
/* —— 404 —— */
.site-error-page {
  padding: 4rem 0 5rem;
  text-align: center;
}

.site-error-inner {
  max-width: 26rem;
  margin: 0 auto;
}

.site-error-code {
  margin: 0 0 0.35rem;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(0, 0, 0, 0.08);
}

.site-error-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.site-error-desc {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.admin-nav {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
}

.admin-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-title {
  font-weight: 600;
  font-size: 1rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  background: #fafafa;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.badge-on {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-off {
  background: #f5f5f5;
  color: var(--muted);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="file"] {
  width: 100%;
  min-height: var(--touch-target-min);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
}

.form-group textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group textarea.textarea-md {
  min-height: 160px;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.form-hint {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.35rem var(--space-3);
  font-size: 0.8125rem;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* —— 后台登录：iCloud 极致暗黑拟物风格 —— */
.admin-login-body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overflow-x: hidden;
  background: #000000;
  color: #f5f5f7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html:has(body.admin-login-body) {
  overflow-x: hidden;
}

.admin-login-shell {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.admin-login-brand {
  position: absolute;
  top: 2rem;
  left: 2.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.02em;
}

.admin-login-main {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-login-main-inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-login-surface {
  background: #1c1c1e;
  border-radius: 20px;
  padding: 3rem 2.5rem 2.5rem;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.admin-login-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.admin-login-logo-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(from 180deg at 50% 50%, #ff453a 0deg, #ff9f0a 72deg, #ffd60a 144deg, #32ade6 216deg, #0a84ff 288deg, #bf5af2 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.admin-login-logo-ring::after {
  content: '';
  position: absolute;
  width: 72px;
  height: 72px;
  background: #1c1c1e;
  border-radius: 50%;
}

.admin-login-logo {
  position: relative;
  z-index: 1;
  color: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-logo svg {
  width: 36px;
  height: 36px;
}

.admin-login-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f5f5f7;
}

.admin-login-alert {
  margin-bottom: 1.5rem;
  text-align: left;
  background: rgba(255, 69, 58, 0.1);
  color: #ff453a;
  border: 1px solid rgba(255, 69, 58, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.admin-login-form.form-stack {
  gap: 0;
  width: 100%;
}

.admin-login-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
}

.admin-login-input-group input[type="text"],
.admin-login-input-group input[type="password"] {
  width: 100%;
  min-height: 3.5rem;
  padding: 1rem 1.25rem;
  font-size: 1.0625rem;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  background: #000000;
  color: #f5f5f7;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.admin-login-input-group input::placeholder {
  color: #86868b;
}

.admin-login-input-group input:focus {
  outline: none;
  border-color: #0a84ff;
  box-shadow: 0 0 0 1px #0a84ff;
}

.admin-login-links-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.admin-login-links-row a {
  color: #0a84ff;
  font-size: 0.875rem;
  text-decoration: none;
}

.admin-login-links-row a:hover {
  text-decoration: underline;
}

.admin-login-privacy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-login-privacy-icon {
  color: #0a84ff;
  margin-bottom: 0.75rem;
}

.admin-login-privacy-text {
  font-size: 0.75rem;
  color: #86868b;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.admin-login-cta {
  display: flex;
  justify-content: center;
  width: 100%;
}

.admin-login-btn {
  width: 100%;
  min-height: 3rem;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  background: #0a84ff;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.admin-login-btn:hover {
  background: #0071e3;
}

.admin-login-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  border-top: 1px solid #3a3a3c;
  background: #000000;
}

.admin-login-footer a,
.admin-login-footer span {
  color: #86868b;
  font-size: 0.75rem;
  text-decoration: none;
}

@media (max-width: 768px) {
  .admin-login-brand {
    top: 1.5rem;
    left: 1.5rem;
  }
  .admin-login-surface {
    padding: 2.5rem 1.5rem 2rem;
  }
  .admin-login-footer {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }
}
/* —— 后台：产品列表（卡片 + 快捷开关）—— */
.admin-pl {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.admin-pl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.35rem;
}

.admin-pl-title {
  margin-bottom: 0.25rem;
}

.admin-pl-desc {
  margin-top: 0.25rem;
}

.admin-pl-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: #a1a1a6;
}

.admin-pl-stat strong {
  color: #f5f5f7;
  font-weight: 600;
}

.admin-pl-new {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  border-radius: 12px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
}

.admin-pl-new-plus {
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.9;
}

.admin-pl-toolbar {
  margin-bottom: 1rem;
}

.admin-pl-search-wrap {
  position: relative;
  display: block;
  max-width: 26rem;
}

.admin-pl-search-ic {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a1a1a6;
  pointer-events: none;
  opacity: 0.75;
}

.admin-pl-search {
  width: 100%;
  padding: 0.6rem 0.85rem 0.6rem 2.45rem;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  font-size: 0.875rem;
  background: #000000;
  color: #f5f5f7;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-pl-search:hover {
  border-color: #48484a;
}

.admin-pl-search:focus {
  outline: none;
  border-color: #0a84ff;
  box-shadow: 0 0 0 1px #0a84ff;
}

.admin-pl-toolbar-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #a1a1a6;
}

.admin-pl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-pl-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1rem 1.15rem;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.admin-pl-item:hover {
  border-color: #0a84ff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.admin-pl-drag {
  background: transparent;
  border: none;
  color: #86868b;
  cursor: grab;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-pl-drag:active {
  cursor: grabbing;
}

.admin-pl-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  border: 1px solid #3a3a3c;
}

.admin-pl-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-pl-main {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-pl-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.3rem;
  min-width: 0;
}

.admin-pl-name {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f5f5f7;
  text-decoration: none;
  line-height: 1.25;
}

.admin-pl-name:hover {
  color: #0a84ff;
}

.admin-pl-ver {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0a84ff;
  background: rgba(10, 132, 255, 0.15);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.admin-pl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8125rem;
  color: #a1a1a6;
  line-height: 1.4;
}

.admin-pl-meta-sep {
  opacity: 0.45;
  user-select: none;
}

.admin-pl-slug {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  padding: 0.12rem 0.38rem;
  border-radius: 5px;
  background: #000000;
  border: 1px solid #3a3a3c;
  color: #f5f5f7;
}

.admin-pl-toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.admin-pl-tog-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.admin-pl-tog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid #3a3a3c;
  border-radius: 10px;
  background: #000000;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a1a1a6;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-pl-tog:hover {
  background: #1c1c1e;
  border-color: #0a84ff;
  color: #f5f5f7;
}

.admin-pl-tog.is-active {
  border-color: #0a84ff;
  background: rgba(10, 132, 255, 0.15);
  color: #0a84ff;
}

.admin-pl-tog:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}

.admin-pl-svg {
  flex-shrink: 0;
  display: block;
}

.admin-pl-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  margin-left: auto;
}

.admin-pl-act-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.admin-pl-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #a1a1a6;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-pl-act:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
}

.admin-pl-act--danger:hover {
  background: rgba(255, 69, 58, 0.15);
  color: #ff453a;
}

.admin-pl-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #1c1c1e;
  border: 1px dashed #3a3a3c;
  border-radius: 16px;
}

.admin-pl-empty-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f5f5f7;
}

.admin-pl-empty-desc {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: #a1a1a6;
}

@media (min-width: 900px) {
  .admin-pl-tog .admin-pl-tog-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .admin-pl-tog {
    position: relative;
    padding: 0.5rem 0.55rem;
    min-width: 2.5rem;
  }
}

@media (max-width: 899px) {
  .admin-pl-toggles {
    flex: 1 1 100%;
    padding-top: 0.65rem;
    border-top: 1px solid #3a3a3c;
    margin-top: 0.15rem;
  }

  .admin-pl-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
    padding-top: 0.5rem;
    margin-left: 0;
    border-top: 1px solid #3a3a3c;
  }
}
.admin-pl--solo .admin-pl-head {
  margin-bottom: 1rem;
}

.admin-pl--solo .admin-pl-head-text {
  max-width: 42rem;
}

.admin-settings-card {
  margin-bottom: 0;
}

.admin-settings-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.45;
}

.admin-settings-checkbox input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

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

/* —— 前台：产品详情 (iCloud Style) —— */
.detail-page {
  padding-bottom: 0;
  --detail-article-max: 48rem;
}

@media (min-width: 1024px) {
  .detail-page {
    --detail-article-max: 54rem;
  }
}

.detail-hero-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.detail-hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: var(--detail-article-max);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 1.5rem;
}

.detail-hero-nav {
  width: 100%;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

body.site-body.site-appearance-dark .detail-back {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}

.detail-back:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--fg);
}

body.site-body.site-appearance-dark .detail-back:hover {
  background: rgba(255, 255, 255, 0.12);
}

.detail-back-ic {
  font-size: 1.25rem;
  line-height: 1;
  margin-top: -2px;
}

.detail-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--detail-article-max);
  margin: 0 auto;
  box-sizing: border-box;
}

.detail-hero-icon-wrap {
  flex-shrink: 0;
  margin-bottom: 2rem;
  width: clamp(6rem, 15vw, 8rem);
  height: clamp(6rem, 15vw, 8rem);
  border-radius: 22.5%;
  overflow: hidden;
  background: linear-gradient(145deg, #f5f5f7, #ffffff);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body.site-body.site-appearance-dark .detail-hero-icon-wrap {
  background: linear-gradient(145deg, #2c2c2e, #1c1c1e);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.site-body.site-appearance-dark .detail-hero-icon-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.detail-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.detail-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.detail-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
}

.detail-version {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

body.site-body.site-appearance-dark .detail-version {
  color: #64b5ff;
  background: rgba(10, 132, 255, 0.15);
}

.detail-lead {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
}

.detail-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 28rem;
}

.detail-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .detail-hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.detail-hero-dl {
  width: 100%;
  min-height: 3.5rem;
  border-radius: 999px;
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .detail-hero-dl {
    width: auto;
    min-width: 10rem;
    padding: 0 2rem;
  }
}

.detail-hero-notify {
  width: 100%;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .detail-hero-notify {
    width: 22rem;
    flex: 0 0 auto;
  }
  
  .detail-hero-notify:focus-within {
    width: 26rem;
  }
}

.detail-hero-notify-form {
  width: 100%;
}

.detail-hero-notify-field {
  display: flex;
  align-items: stretch;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 0.35rem;
  min-height: 3.5rem;
  transition: all 0.2s ease;
}



.detail-hero-notify-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.detail-hero-notify-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  color: var(--fg);
}

.detail-hero-notify-input:focus {
  outline: none;
}

.detail-hero-notify-btn {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.detail-page-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
  padding-bottom: 4rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1100px) {
  .detail-page-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    justify-content: center;
  }

  .detail-toc-sidebar {
    flex: 0 0 240px;
    position: sticky;
    top: 5rem;
  }
  
  .detail-body {
    flex: 1;
    min-width: 0;
    max-width: var(--detail-article-max);
    margin: 0;
  }
}

@media (max-width: 1099px) {
  .detail-toc-sidebar {
    order: -1;
  }
}

.detail-toc-sidebar {
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

body.site-body.site-appearance-dark .detail-toc-sidebar {
  background: #1c1c1e;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.detail-toc-side-title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-toc-li {
  margin: 0 0 0.65rem;
}

.detail-toc-li--sub {
  padding-left: 0.75rem;
  margin-left: 0.25rem;
  border-left: 2px solid rgba(0, 113, 227, 0.15);
}

.detail-toc-li a {
  color: var(--muted);
  text-decoration: none;
  line-height: 1.45;
  font-size: 0.875rem;
  display: inline-block;
  transition: color 0.2s;
}

.detail-toc-li a:hover {
  color: var(--accent);
}

.detail-body {
  width: 100%;
  max-width: var(--detail-article-max);
  margin: 0 auto;
}

.detail-panel {
  margin-bottom: 2.5rem;
}

.detail-panel-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.site-prose-card {
  background: var(--card);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

body.site-body.site-appearance-dark .site-prose-card {
  background: #1c1c1e;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.site-prose-card .markdown-body {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.75;
  background-color: transparent;
}

.site-prose-card .markdown-body a {
  color: var(--accent);
  text-decoration: none;
}

.site-prose-card .markdown-body a:hover {
  text-decoration: underline;
}

.site-prose-card .markdown-body p {
  margin-bottom: 1.25em;
}

.site-prose-card .markdown-body h2,
.site-prose-card .markdown-body h3 {
  border-bottom: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.site-prose-card .markdown-body h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.25rem;
}

.site-prose-card .markdown-body h3 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-size: 1.125rem;
}

.site-prose-card .markdown-body ul,
.site-prose-card .markdown-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.site-prose-card .markdown-body blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(0, 113, 227, 0.05);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}

body.site-body.site-appearance-dark .site-prose-card .markdown-body blockquote {
  background: rgba(10, 132, 255, 0.1);
  border-left-color: #0a84ff;
}

.site-prose-card .markdown-body img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 1.5em auto;
}

/* 下载列表 */
.detail-dl-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

body.site-body.site-appearance-dark .detail-dl-row {
  background: rgba(255, 255, 255, 0.03);
}

@media (hover: hover) and (pointer: fine) {
  .detail-dl-row:hover {
    background: rgba(0, 113, 227, 0.05);
    transform: scale(1.01);
  }
  body.site-body.site-appearance-dark .detail-dl-row:hover {
    background: rgba(10, 132, 255, 0.1);
  }
}

.detail-dl-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.detail-dl-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.site-body.site-appearance-dark .detail-dl-icon {
  background: #2c2c2e;
  color: #64b5ff;
}

.detail-dl-text {
  min-width: 0;
}

.detail-dl-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-dl-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.detail-dl-action {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

body.site-body.site-appearance-dark .detail-dl-action {
  color: #ffffff;
  background: #0a84ff;
}

.detail-dl-row:hover .detail-dl-action {
  background: var(--accent);
  color: #ffffff;
}

body.site-body.site-appearance-dark .detail-dl-row:hover .detail-dl-action {
  background: #0071e3;
}

/* 底部下载 Dock */
.detail-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.04);
}

body.site-body.site-appearance-dark .detail-dock {
  background: rgba(28, 28, 30, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}

.detail-dock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.detail-dock-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.detail-dock-ic-wrap {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #f5f5f7, #ffffff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.site-body.site-appearance-dark .detail-dock-ic-wrap {
  background: linear-gradient(145deg, #2c2c2e, #1c1c1e);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.detail-dock-ic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-dock-text {
  min-width: 0;
}

.detail-dock-title {
  margin: 0 0 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-dock-ver {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.detail-dock-btn {
  flex-shrink: 0;
  min-width: 8rem;
  min-height: 2.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
}

.detail-bottom-space {
  height: 6rem;
}

.detail-hero-download-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: 16px;
  margin: 1.5rem auto 0;
  max-width: 28rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.detail-hero-download-notice-ic {
  color: var(--muted);
  opacity: 0.6;
}

.detail-hero-download-notice-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.detail-hero-download-notice-kicker {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.detail-hero-download-notice-text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 24rem;
}

/* —— 后台：产品编辑页（admin-pe-*）—— */
.admin-product-editor {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 6rem;
}

.admin-pe-form {
  margin: 0;
}

.admin-pe-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-pe-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #a1a1a6;
  text-decoration: none;
  border: 1px solid #3a3a3c;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-pe-back:hover {
  color: #f5f5f7;
  border-color: #636366;
  background: rgba(255, 255, 255, 0.08);
}

.admin-pe-back-ic {
  font-size: 1.25rem;
  line-height: 1;
  margin-top: -1px;
}

.admin-pe-hero-text {
  flex: 1 1 16rem;
  min-width: 0;
}

.admin-pe-title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f5f5f7;
}

.admin-pe-lead {
  margin: 0;
  font-size: 0.9375rem;
  color: #a1a1a6;
  line-height: 1.55;
}

.admin-pe-alert {
  margin-bottom: 1rem;
}

.admin-pe-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 14px;
}

.admin-pe-seg-btn {
  flex: 1 1 6rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  color: #a1a1a6;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.admin-pe-seg-btn:hover {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.06);
}

.admin-pe-seg-btn.is-active {
  color: #f5f5f7;
  background: #3a3a3c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.admin-pe-seg-btn:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}

.admin-pe-panels {
  min-width: 0;
}

.admin-pe-panel {
  min-width: 0;
}

.admin-pe-panel[hidden] {
  display: none !important;
}

.admin-pe-panel.is-active {
  animation: admin-pe-panel-in 0.2s var(--motion-ease-standard);
}

@keyframes admin-pe-panel-in {
  from {
    opacity: 0.65;
  }

  to {
    opacity: 1;
  }
}

.admin-pe-slab {
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.admin-pe-slab-head {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid #3a3a3c;
}

.admin-pe-slab-title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f5f5f7;
}

.admin-pe-slab-desc {
  margin: 0;
  font-size: 0.875rem;
  color: #a1a1a6;
  line-height: 1.5;
}

.admin-pe-inset {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem 1.5rem;
  min-width: 0;
}

.admin-pe-inset > .admin-pe-slab-desc {
  margin-top: -0.5rem;
}

.admin-pe-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
}

.admin-pe-field.admin-pe-field-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
}

.admin-pe-field.admin-pe-field-row.admin-pe-switch-stack {
  align-items: stretch;
}

.admin-pe-field-grow {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 12rem;
  min-width: 0;
}

.admin-pe-label {
  display: block;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #a1a1a6;
  line-height: 1.4;
}

.admin-pe-label-inline {
  display: inline;
  margin-right: 0.35rem;
}

.admin-pe-req {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ff9f0a;
  margin-left: 0.25rem;
}

.admin-pe-code {
  padding: 0.1rem 0.35rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: #f5f5f7;
  background: #000000;
  border: 1px solid #3a3a3c;
  border-radius: 6px;
}

.admin-pe-input,
.admin-pe-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background: #000000;
  border: 1px solid #3a3a3c;
  border-radius: 10px;
  color: #f5f5f7;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-pe-input:focus,
.admin-pe-select:focus {
  outline: none;
  border-color: #0a84ff;
  box-shadow: 0 0 0 1px #0a84ff;
}

.admin-pe-input-narrow {
  max-width: 10rem;
}

.admin-pe-input-sort {
  max-width: 8rem;
}

.admin-pe-select-compact {
  width: auto;
  min-width: 6rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
}

.admin-pe-icon-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.admin-pe-icon-preview {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #3a3a3c;
  background: #000000;
}

.admin-pe-icon-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-pe-icon-fields {
  flex: 1 1 14rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-pe-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 7rem;
  padding: 1rem 1.1rem;
  border: 1px dashed #636366;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-pe-dropzone:hover {
  border-color: #0a84ff;
  background: rgba(10, 132, 255, 0.06);
}

.admin-pe-dropzone--compact {
  min-height: 5.5rem;
  padding: 0.75rem 1rem;
}

.admin-pe-dropzone-ui {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.admin-pe-dropzone-lead {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f5f5f7;
}

.admin-pe-dropzone-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #8e8e93;
  line-height: 1.45;
}

.admin-pe-dropzone-name {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: #5ac8fa;
  word-break: break-all;
}

.admin-pe-dropzone-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.admin-pe-dropzone-progress {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.82);
  border-radius: inherit;
}

.admin-pe-dropzone-progress[hidden] {
  display: none !important;
}

.admin-pe-dropzone-progress-track {
  width: 100%;
  max-width: 12rem;
  height: 6px;
  border-radius: 999px;
  background: #3a3a3c;
  overflow: hidden;
}

.admin-pe-dropzone-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a84ff, #5ac8fa);
  transition: width 0.12s ease-out;
}

.admin-pe-dropzone-progress-pct {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a1a1a6;
}

.admin-pe-switch {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid #3a3a3c;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  flex: 1 1 14rem;
  min-width: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-pe-switch:hover {
  border-color: #636366;
  background: rgba(255, 255, 255, 0.05);
}

.admin-pe-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.admin-pe-switch-ui {
  flex-shrink: 0;
  width: 2.75rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: #3a3a3c;
  position: relative;
  transition: background 0.2s ease;
}

.admin-pe-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.5rem - 4px);
  height: calc(1.5rem - 4px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--motion-ease-emphasized);
}

.admin-pe-switch input:checked + .admin-pe-switch-ui {
  background: #34c759;
}

.admin-pe-switch input:checked + .admin-pe-switch-ui::after {
  transform: translateX(1.25rem);
}

.admin-pe-switch input:focus-visible + .admin-pe-switch-ui {
  outline: 2px solid #0a84ff;
  outline-offset: 3px;
}

.admin-pe-switch-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.admin-pe-switch-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f5f5f7;
}

.admin-pe-switch-sub {
  font-size: 0.8125rem;
  color: #8e8e93;
  line-height: 1.45;
}

.admin-pe-dl-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-pe-dl-card {
  padding: 0;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.admin-pe-dl-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #3a3a3c;
  background: rgba(255, 255, 255, 0.02);
}

.admin-pe-dl-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a1a1a6;
}

.admin-pe-dl-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-pe-dl-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  padding: 1rem 1.25rem 1.25rem;
  align-items: start;
}

.admin-pe-dl-grid > .admin-pe-field:nth-child(1) {
  grid-column: span 2;
}

.admin-pe-dl-grid > .admin-pe-field.admin-pe-field-span2 {
  grid-column: span 4;
}

.admin-pe-dl-grid > .admin-pe-field.admin-pe-field-span3 {
  grid-column: span 3;
}

.admin-pe-md-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1.5rem 1.5rem;
}

.admin-pe-details {
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.admin-pe-details + .admin-pe-details {
  margin-top: 0.25rem;
}

.admin-pe-details-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f5f5f7;
  cursor: pointer;
  list-style: none;
}

.admin-pe-details-sum::-webkit-details-marker {
  display: none;
}

.admin-pe-details-name {
  flex: 1;
  min-width: 0;
}

.admin-pe-details-state {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: #8e8e93;
  background: rgba(255, 255, 255, 0.06);
}

.admin-pe-details-state.is-on {
  color: #34c759;
  background: rgba(52, 199, 89, 0.12);
}

.admin-pe-details-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid #3a3a3c;
}

.admin-pe-details-body textarea.textarea-md {
  width: 100%;
  min-height: 200px;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-family: var(--font-mono);
  background: #000000;
  border: 1px solid #3a3a3c;
  border-radius: 10px;
  color: #f5f5f7;
  resize: vertical;
  box-sizing: border-box;
}

.admin-pe-details-body textarea.textarea-md:focus {
  outline: none;
  border-color: #0a84ff;
  box-shadow: 0 0 0 1px #0a84ff;
}

.admin-pe-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.92) 28%, #000000 100%);
  border-top: 1px solid #3a3a3c;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-shell .admin-pe-dock {
  left: 16rem;
}

@media (max-width: 900px) {
  .admin-shell .admin-pe-dock {
    left: 0;
  }

  .admin-pe-dl-grid > .admin-pe-field {
    grid-column: 1 / -1 !important;
  }
}

.admin-pe-dock-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-pe-dock-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: #8e8e93;
  flex: 1 1 12rem;
}

.admin-pe-dock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* —— 后台：上传进度模态框 —— */
.admin-pe-file-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.admin-pe-submit {
  min-width: 7rem;
  border-radius: 999px;
  font-weight: 600;
}

.admin-pe-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.admin-pe-upload-modal[hidden] {
  display: none !important;
}

html.admin-pe-upload-lock {
  overflow: hidden;
}

.admin-pe-upload-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-pe-upload-modal-panel {
  position: relative;
  width: 100%;
  max-width: 22rem;
  padding: 1.5rem 1.35rem 1.35rem;
  background: #1c1c1e;
  border-radius: 20px;
  border: 1px solid #3a3a3c;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  color: #f5f5f7;
}

.admin-pe-upload-modal-title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.admin-pe-upload-modal-text {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #a1a1a6;
  line-height: 1.45;
}

.admin-pe-upload-track {
  height: 8px;
  border-radius: 999px;
  background: #3a3a3c;
  overflow: hidden;
}

.admin-pe-upload-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a84ff, #5ac8fa);
  transition: width 0.12s ease-out;
}

.admin-pe-upload-fill.is-indeterminate {
  width: 40% !important;
  transition: none;
  animation: admin-pe-upload-indet 1.1s ease-in-out infinite;
}

@keyframes admin-pe-upload-indet {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(320%);
  }
}

.admin-pe-upload-pct {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a1a1a6;
  font-variant-numeric: tabular-nums;
}

.admin-pe-upload-err {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: #ff453a;
}

.admin-pe-upload-dismiss {
  margin-top: 1rem;
  width: 100%;
}

.admin-pe-list-head {
  align-items: flex-end;
}

.admin-pe-list-sub {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.admin-pe-table tbody tr {
  transition: background 0.15s ease;
}

.admin-pe-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mt-1 {
  margin-top: 0.5rem;
}
/* —— 后台：需求反馈列表/详情 —— */
.admin-fb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin-fb-filter-link {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #a1a1a6;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}

.admin-fb-filter-link:hover {
  background: #3a3a3c;
  color: #f5f5f7;
}

.admin-fb-filter-link.is-active {
  background: #0a84ff;
  color: #ffffff;
  border-color: #0a84ff;
}

.admin-fb-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.admin-fb-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.admin-fb-table th {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #a1a1a6;
  border-bottom: 1px solid #3a3a3c;
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.admin-fb-table td {
  padding: 1rem 1.25rem;
  color: #f5f5f7;
  border-bottom: 1px solid #3a3a3c;
  vertical-align: top;
}

.admin-fb-table tr:last-child td {
  border-bottom: none;
}

.admin-fb-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.admin-fb-title-link {
  color: #f5f5f7;
  font-weight: 500;
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
}

.admin-fb-title-link:hover {
  color: #0a84ff;
}

.admin-fb-meta {
  font-size: 0.8125rem;
  color: #86868b;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-fb-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.6875rem;
}

.admin-fb-badge--pending {
  background: rgba(255, 159, 10, 0.15);
  color: #ff9f0a;
}

.admin-fb-badge--reviewed {
  background: rgba(48, 209, 88, 0.15);
  color: #30d158;
}

.admin-fb-badge--spam {
  background: rgba(142, 142, 147, 0.15);
  color: #8e8e93;
}

.admin-fb-detail {
  max-width: 52rem;
}

.admin-fb-back-wrap {
  margin: 0 0 1.5rem;
}

.admin-fb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0a84ff;
  text-decoration: none;
}

.admin-fb-back:hover {
  text-decoration: underline;
}

.admin-fb-detail-head {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #3a3a3c;
}

.admin-fb-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: #a1a1a6;
}

.admin-fb-dl {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.75rem 1rem;
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  padding: 1.5rem;
}

.admin-fb-dl dt {
  margin: 0;
  font-weight: 600;
  color: #a1a1a6;
}

.admin-fb-dl dd {
  margin: 0;
  color: #f5f5f7;
  word-break: break-word;
}

.admin-fb-ua {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #86868b;
  background: #000000;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #3a3a3c;
}

.admin-fb-body-section {
  margin-bottom: 2rem;
}

.admin-fb-body-heading {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a1a1a6;
  margin: 0 0 1rem;
}

.admin-fb-markdown {
  padding: 1.5rem;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  color: #f5f5f7;
}

.admin-fb-raw {
  margin-bottom: 2rem;
}

.admin-fb-pre {
  margin: 0;
  padding: 1.5rem;
  background: #000000;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
  overflow: auto;
  max-height: 24rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #f5f5f7;
  font-family: var(--font-mono);
}

.admin-fb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #3a3a3c;
}

.admin-fb-action-form {
  display: inline;
}

.admin-fb-btn-del {
  color: #ff453a !important;
  border-color: #ff453a !important;
}

.admin-fb-btn-del:hover {
  background: rgba(255, 69, 58, 0.1) !important;
}

.admin-notify-section {
  margin-bottom: 2rem;
}

.admin-settings-env-hint {
  margin-top: 1rem;
  padding: 1rem;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
}

.admin-settings-pre {
  margin: 0.75rem 0 0;
  padding: 1rem;
  background: #000000;
  border: 1px solid #3a3a3c;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #f5f5f7;
  overflow-x: auto;
}

.admin-fb-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.admin-fb-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #f5f5f7;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.admin-fb-pager-btn:hover:not([disabled]) {
  background: #3a3a3c;
  color: #ffffff;
}

.admin-fb-pager-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-fb-pager-info {
  font-size: 0.875rem;
  color: #a1a1a6;
  margin: 0 1rem;
}

.detail-hero-notify-flash {
  width: 100%;
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
}

.detail-hero-cta .detail-hero-notify-flash {
  margin: 0;
}



.site-notify-msg {
  padding: 2rem 0 3rem;
}

.site-notify-msg-inner {
  max-width: 28rem;
  margin: 0 auto;
}

.site-notify-msg-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}

.site-notify-msg-text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.site-notify-msg-text--ok {
  color: #34c759;
}

.site-notify-msg-text--err {
  color: #ff3b30;
}

/* —— 后台布局（iCloud 极致暗黑拟物风格） —— */
.admin-body {
  margin: 0;
  background: #000000;
  color: #f5f5f7;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.admin-shell {
  display: flex;
  flex-direction: row;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
}

.admin-sidebar {
  flex: 0 0 16rem;
  background: #1c1c1e;
  border-right: 1px solid #3a3a3c;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  z-index: 10;
  overflow-y: auto;
}

.admin-sidebar-brand {
  margin: 0 0 2rem 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.02em;
}

.admin-sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.admin-side-link {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #a1a1a6;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.admin-side-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
}

.admin-side-link.is-active {
  background: #0a84ff;
  color: #ffffff;
  font-weight: 600;
}

.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid #3a3a3c;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-sidebar-foot .admin-side-link.subtle {
  font-size: 0.8125rem;
  color: #86868b;
  padding: 0.5rem 0.85rem;
  background: transparent;
}

.admin-sidebar-foot .admin-side-link.subtle:hover {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.05);
}

.admin-logout-form {
  margin: 0;
  display: flex;
}

.admin-logout-form button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #000000;
  overflow: hidden;
}

.admin-topbar {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2rem;
  background: rgba(28, 28, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #3a3a3c;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-breadcrumb {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f5f5f7;
}

.admin-content {
  flex: 1;
  padding: 2rem;
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-page-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f5f5f7;
}

.admin-page-desc {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  color: #a1a1a6;
  line-height: 1.5;
}

.admin-card {
  background: #1c1c1e;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid #3a3a3c;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.admin-card-title {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f5f5f7;
  border-bottom: 1px solid #3a3a3c;
  padding-bottom: 0.75rem;
}

.admin-form-wide {
  max-width: 100%;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #a1a1a6;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  background: #000000;
  border: 1px solid #3a3a3c;
  border-radius: 10px;
  color: #f5f5f7;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0a84ff;
  box-shadow: 0 0 0 1px #0a84ff;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.admin-table th {
  padding: 1rem;
  font-weight: 600;
  color: #a1a1a6;
  border-bottom: 1px solid #3a3a3c;
  background: rgba(255, 255, 255, 0.02);
}

.admin-table td {
  padding: 1rem;
  color: #f5f5f7;
  border-bottom: 1px solid #3a3a3c;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 900px) {
  .admin-shell {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .admin-sidebar-brand {
    border: none;
    margin: 0;
    padding-right: 1rem;
  }

  .admin-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .admin-sidebar-foot {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* 隐藏后台滚动条以符合 Apple 极简规范 */
html.admin-html::-webkit-scrollbar,
body.admin-body::-webkit-scrollbar,
.admin-body *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html.admin-html,
body.admin-body,
.admin-body * {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html.admin-html {
  overflow: hidden;
  background: #000000;
}

body.admin-body {
  overflow: hidden;
  margin: 0;
}

.detail-download-closed-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 2rem;
  background: var(--card);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.detail-download-closed-callout-icon {
  color: var(--muted);
  opacity: 0.6;
}

.detail-download-closed-callout-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 0.5rem;
}

.detail-download-closed-callout-text {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
  max-width: 28rem;
  line-height: 1.5;
}

body.site-body.site-appearance-dark .detail-download-closed-callout {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.site-body.site-appearance-dark .detail-hero-download-notice {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* —— 后台：文件清理 —— */
.admin-fc-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.admin-fc-empty-text {
  margin: 0;
  font-size: 0.9375rem;
  color: #a1a1a6;
}

.admin-fc-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.admin-fc-section-title {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.admin-fc-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #a1a1a6;
  cursor: pointer;
  user-select: none;
}

.admin-fc-select-all input {
  width: 1rem;
  height: 1rem;
  accent-color: #0a84ff;
}

.admin-fc-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #3a3a3c;
  border-radius: 12px;
}

.admin-fc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-fc-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #a1a1a6;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid #3a3a3c;
  white-space: nowrap;
}

.admin-fc-table td {
  padding: 0.65rem 1rem;
  color: #f5f5f7;
  border-bottom: 1px solid #3a3a3c;
  vertical-align: middle;
}

.admin-fc-table tr:last-child td {
  border-bottom: none;
}

.admin-fc-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.admin-fc-col-check {
  width: 2.75rem;
}

.admin-fc-col-preview {
  width: 4rem;
}

.admin-fc-cb {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: #0a84ff;
}

.admin-fc-thumb {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #3a3a3c;
  background: #000000;
}

.admin-fc-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #3a3a3c;
  color: #6e6e73;
  background: rgba(255, 255, 255, 0.03);
}

.admin-fc-path {
  font-size: 0.8125rem;
  word-break: break-all;
  color: #f5f5f7;
}

.admin-fc-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-fc-btn-del {
  background: #ff453a;
  border-color: #ff453a;
  color: #ffffff;
}

.admin-fc-btn-del:hover {
  background: #ff6961;
  border-color: #ff6961;
  color: #ffffff;
}

.admin-fc-btn-del:focus-visible {
  outline: 2px solid #ff453a;
  outline-offset: 2px;
}

/* —— 后台：顶栏主题切换 —— */
.admin-theme-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: #a1a1a6;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #3a3a3c;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.admin-theme-toggle:hover {
  color: #f5f5f7;
  border-color: #636366;
  background: rgba(255, 255, 255, 0.1);
}

.admin-theme-toggle:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}

.admin-theme-toggle__inner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  background: linear-gradient(145deg, #5ac8fa 0%, #0a84ff 55%, #1c1c1e 55%, #1c1c1e 100%);
}

html[data-admin-theme="light"] .admin-theme-toggle {
  color: #6e6e73;
  background: #ffffff;
  border-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-theme-toggle:hover {
  color: #1d1d1f;
  border-color: #aeaeb2;
  background: #f5f5f7;
}

html[data-admin-theme="light"] .admin-theme-toggle__inner {
  background: linear-gradient(145deg, #ffd60a 0%, #ff9f0a 45%, #f5f5f7 45%, #f5f5f7 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* —— 后台：浅色主题（与深色并列，由 html[data-admin-theme] 切换） —— */
html[data-admin-theme="dark"] {
  color-scheme: dark;
}

html[data-admin-theme="light"] {
  color-scheme: light;
}

html[data-admin-theme="light"].admin-html {
  background: #f5f5f7;
}

html[data-admin-theme="light"] body.admin-body {
  background: #f5f5f7;
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-main {
  background: #f5f5f7;
}

html[data-admin-theme="light"] .admin-sidebar {
  background: #ffffff;
  border-right-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-sidebar-brand {
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-side-link {
  color: #424245;
}

html[data-admin-theme="light"] .admin-side-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-sidebar-foot {
  border-top-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-sidebar-foot .admin-side-link.subtle {
  color: #6e6e73;
}

html[data-admin-theme="light"] .admin-sidebar-foot .admin-side-link.subtle:hover {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.04);
}

html[data-admin-theme="light"] .admin-topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-breadcrumb {
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-page-title {
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-page-desc {
  color: #6e6e73;
}

html[data-admin-theme="light"] .admin-card {
  background: #ffffff;
  border-color: #d2d2d7;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

html[data-admin-theme="light"] .admin-card-title {
  color: #1d1d1f;
  border-bottom-color: #d2d2d7;
}

html[data-admin-theme="light"] .form-group label {
  color: #6e6e73;
}

html[data-admin-theme="light"] .form-group input[type="text"],
html[data-admin-theme="light"] .form-group input[type="password"],
html[data-admin-theme="light"] .form-group input[type="email"],
html[data-admin-theme="light"] .form-group input[type="number"],
html[data-admin-theme="light"] .form-group textarea,
html[data-admin-theme="light"] .form-group select {
  background: #ffffff;
  border-color: #d2d2d7;
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-table-wrap {
  background: #ffffff;
  border-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-table th {
  color: #6e6e73;
  border-bottom-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-table td {
  color: #1d1d1f;
  border-bottom-color: #e8e8ed;
}

html[data-admin-theme="light"] .admin-table tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-seg {
  background: #ffffff;
  border-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-seg-btn {
  color: #6e6e73;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-seg-btn:hover {
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-seg-btn.is-active {
  color: #1d1d1f;
  background: #e8e8ed;
  box-shadow: none;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-slab {
  background: #ffffff;
  border-color: #d2d2d7;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-slab-head {
  border-bottom-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-slab-title {
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-slab-desc {
  color: #6e6e73;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-label {
  color: #6e6e73;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-input,
html[data-admin-theme="light"] .admin-product-editor .admin-pe-select {
  background: #ffffff;
  border-color: #d2d2d7;
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-code {
  color: #1d1d1f;
  background: #f5f5f7;
  border-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-back {
  color: #6e6e73;
  border-color: #d2d2d7;
  background: #ffffff;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-back:hover {
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-title {
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-lead {
  color: #6e6e73;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-icon-preview {
  border-color: #d2d2d7;
  background: #f5f5f7;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-dropzone {
  border-color: #aeaeb2;
  background: rgba(0, 0, 0, 0.02);
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-dropzone-lead {
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-switch {
  border-color: #d2d2d7;
  background: #f5f5f7;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-switch-title {
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-switch-sub {
  color: #6e6e73;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-details {
  border-color: #d2d2d7;
  background: #fafafa;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-details-sum {
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-details-body {
  border-top-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-details-body textarea.textarea-md {
  background: #ffffff;
  border-color: #d2d2d7;
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-dl-card {
  border-color: #d2d2d7;
  background: #fafafa;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-dl-card-top {
  border-bottom-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-dock {
  background: linear-gradient(180deg, rgba(245, 245, 247, 0) 0%, rgba(245, 245, 247, 0.96) 28%, #f5f5f7 100%);
  border-top-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-product-editor .admin-pe-dock-hint {
  color: #6e6e73;
}

html[data-admin-theme="light"] .admin-fc-empty-text {
  color: #6e6e73;
}

html[data-admin-theme="light"] .admin-fc-section-title {
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-fc-table-wrap {
  border-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-fc-table th,
html[data-admin-theme="light"] .admin-fc-table td {
  border-color: #e8e8ed;
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-fc-table tbody tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

html[data-admin-theme="light"] .admin-fc-path {
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-fc-thumb {
  border-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-fc-thumb-placeholder {
  border-color: #d2d2d7;
  color: #8e8e93;
  background: #f5f5f7;
}

/* —— EasyMDE：后台深色主题下工具栏与编辑区（app.css 须在 easymde.min.css 之后加载） —— */
html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror {
  color: #f5f5f7;
  background: #1c1c1e;
  border-color: #3a3a3c;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror-scroll {
  background: #1c1c1e;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror-gutters {
  background: #2c2c2e;
  border-right-color: #3a3a3c;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror-linenumber {
  color: #8e8e93;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror-gutter-filler,
html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror-scrollbar-filler {
  background-color: #2c2c2e;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror-cursor {
  border-left-color: #f5f5f7;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror-selected,
html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror-focused .CodeMirror-selected {
  background: rgba(10, 132, 255, 0.35) !important;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror-line::selection,
html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror-line > span::selection,
html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror-line > span > span::selection {
  background: rgba(10, 132, 255, 0.35);
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror-activeline-background {
  background: rgba(255, 255, 255, 0.04);
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-toolbar {
  background: #2c2c2e;
  border-color: #3a3a3c;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-toolbar button {
  color: #e5e5e7;
  border-color: transparent;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-toolbar button:hover,
html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-toolbar button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #636366;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-toolbar button.active {
  background: rgba(10, 132, 255, 0.28);
  border-color: #0a84ff;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-toolbar i {
  color: #e5e5e7;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-toolbar i.separator {
  border-left-color: #636366;
  border-right-color: #3a3a3c;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-statusbar {
  color: #a1a1a6;
  background: #1c1c1e;
  border-top: 1px solid #3a3a3c;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-preview {
  background: #2c2c2e;
  color: #f5f5f7;
  border-color: #3a3a3c;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-preview pre {
  background: #1c1c1e;
  color: #f5f5f7;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-preview-side {
  background: #2c2c2e;
  color: #f5f5f7;
  border-color: #3a3a3c;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .cm-s-easymde .cm-comment {
  color: #8e8e93;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .cm-s-easymde .cm-string {
  color: #ffd60a;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .cm-s-easymde .cm-link {
  color: #5ac8fa;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .cm-s-easymde .cm-header {
  color: #5ac8fa;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .cm-s-easymde .cm-quote {
  color: #a1a1a6;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .CodeMirror-fullscreen {
  background: #1c1c1e !important;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-toolbar.fullscreen {
  background: #1c1c1e !important;
  border: none;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-toolbar.fullscreen::before {
  background: linear-gradient(to right, #1c1c1e, rgba(28, 28, 30, 0)) !important;
}

html[data-admin-theme="dark"] .admin-body .EasyMDEContainer .editor-toolbar.fullscreen::after {
  background: linear-gradient(to right, rgba(28, 28, 30, 0), #1c1c1e) !important;
}

html[data-admin-theme="light"] .admin-fb-filter-link {
  color: #6e6e73;
  background: #ffffff;
  border-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-fb-filter-link:hover {
  color: #1d1d1f;
}

html[data-admin-theme="light"] .admin-fb-filter-link.is-active {
  color: #ffffff;
  background: #0071e3;
  border-color: #0071e3;
}

html[data-admin-theme="light"] .admin-fb-table-wrap {
  background: #ffffff;
  border-color: #d2d2d7;
}

html[data-admin-theme="light"] .admin-fb-table th,
html[data-admin-theme="light"] .admin-fb-table td {
  color: #1d1d1f;
  border-color: #e8e8ed;
}

html[data-admin-theme="light"] .admin-fb-title-link {
  color: #0071e3;
}

html[data-admin-theme="light"] .admin-fb-meta {
  color: #6e6e73;
}

html[data-admin-theme="light"] .admin-fb-detail {
  color: #1d1d1f;
}
