/* =========================================================
   产品说明书中心 · V4 = V1 简约体系完整回归 + 隐性打磨
   原则：不加新花样，只补细节 —— 焦点态、进度条、目录联动、
   微悬停、打印与减弱动效降级。
   ========================================================= */

/* ---------- 设计变量（与 V1 一致） ---------- */
:root {
  --primary: #2563eb;
  --primary-700: #1d4ed8;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --border: #e5e7eb;
  --border-2: #f3f4f6;
  --bg: #f6f7f9;
  --card: #ffffff;
  --green-700: #15803d;
  --green-50: #f0fdf4;
  --green-100: #bbf7d0;
  --amber-700: #b45309;
  --amber-50: #fffbeb;
  --amber-100: #fde68a;
  --red-700: #b91c1c;
  --red-50: #fef2f2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-2: 0 1px 3px rgba(16, 24, 40, .08), 0 8px 24px -12px rgba(16, 24, 40, .14);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-3); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; border: 1px solid transparent;
  transition: .15s; white-space: nowrap; user-select: none;
}
.btn svg { flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); }
.btn-outline { border-color: var(--border); background: #fff; color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--border-2); color: var(--text); }
.btn-danger-outline { border-color: var(--border); background: #fff; color: var(--red-700); }
.btn-danger-outline:hover { background: var(--red-50); border-color: #fca5a5; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- 徽标 / 状态 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.badge-amber { background: var(--amber-50); color: var(--amber-700); border: 1px solid var(--amber-100); }
.badge-gray  { background: var(--border-2); color: var(--text-2); border: 1px solid var(--border); }
.badge-blue  { background: var(--primary-50); color: var(--primary-700); border: 1px solid var(--primary-100); }

/* ---------- 表单 ---------- */
.input, .select {
  height: 38px; padding: 0 12px; width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-size: 14px; outline: none; transition: .15s;
}
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.input::placeholder { color: var(--text-3); }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }

/* ---------- 通用卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }

/* =========================================================
   前台
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 8px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.header-search { margin-left: auto; width: min(440px, 100%); position: relative; }
.header-search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: flex; }
.header-search .input { padding-left: 36px; background: var(--bg); }
.header-search .input:focus { background: #fff; }

.home-hero { padding: 36px 0 6px; }
.home-hero h1 { font-size: 24px; font-weight: 700; }
.home-hero p { color: var(--text-2); font-size: 14px; margin-top: 6px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 20px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  height: 34px; padding: 0 16px; border-radius: 999px; flex-shrink: 0;
  border: 1px solid var(--border); background: #fff; font-size: 13px; color: var(--text-2);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; }

.grid-head { color: var(--text-3); font-size: 13px; padding: 14px 2px 2px; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px; padding: 14px 0 48px;
}
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: block; transition: .2s;
}
.product-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: #d1d5db; }
.product-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.product-card .thumb svg { width: 100%; height: 100%; display: block; }
.product-card .info { padding: 13px 16px 15px; }
.product-card .name { font-weight: 600; font-size: 15px; }
.product-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; margin-top: 5px; }
.product-card .meta .pending { color: var(--amber-700); }

.empty { padding: 72px 20px; text-align: center; color: var(--text-3); }
.empty .icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--border-2); display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.empty h3 { color: var(--text); font-size: 16px; margin-bottom: 6px; }
.empty p { font-size: 14px; }
.empty .btn { margin-top: 16px; }

.site-footer { border-top: 1px solid var(--border); background: #fff; padding: 20px 0; color: var(--text-3); font-size: 13px; margin-top: auto; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer a:hover { color: var(--primary); }

.breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); padding: 16px 0 4px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #d1d5db; }

/* ---------- 产品详情页 ---------- */
.product-hero {
  display: flex; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-top: 12px;
}
.product-hero .thumb { width: 220px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--bg); }
.product-hero .thumb svg { width: 100%; height: 100%; display: block; }
.product-hero h1 { font-size: 22px; }
.product-hero .model { color: var(--text-3); font-size: 14px; margin-top: 2px; }
.product-hero .desc { color: var(--text-2); font-size: 14px; margin-top: 10px; max-width: 640px; }
.spec-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.spec-chips span { font-size: 12px; color: var(--text-2); background: var(--border-2); border-radius: 999px; padding: 3px 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.section-head h2 { font-size: 18px; font-weight: 600; }
.section-head .sub { font-size: 13px; color: var(--text-3); }

.manual-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: 48px; }
.manual-item {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; transition: .15s;
}
.manual-item:hover { border-color: var(--primary); box-shadow: var(--shadow-1); }
.manual-item .icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--primary-50); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.manual-item h3 { font-size: 15px; font-weight: 600; }
.manual-item .sub { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.manual-item .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.manual-item .tag { font-size: 12px; color: var(--text-2); border: 1px solid var(--border); padding: 1px 9px; border-radius: 999px; }
.manual-item .go { margin-left: auto; color: var(--text-3); flex-shrink: 0; display: flex; }
@media (max-width: 520px) { .manual-item .go { display: none; } }

/* ---------- 说明书详情页 ---------- */
.manual-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 28px; align-items: start; padding-bottom: 56px; }
.manual-head { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 12px; }
.manual-head h1 { font-size: 24px; line-height: 1.4; }
.manual-head .meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; margin-top: 12px; }
.manual-head .meta span { display: inline-flex; align-items: center; gap: 5px; }
.manual-head .actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* 阅读进度（2px，克制） */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; pointer-events: none; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: var(--primary); }

.toc { position: sticky; top: 84px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 14px; margin-top: 12px; }
.toc h4 { font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: .05em; margin-bottom: 8px; }
.toc a { display: block; font-size: 13px; color: var(--text-2); padding: 6px 10px; border-radius: 6px; border-left: 2px solid transparent; }
.toc a:hover { background: var(--border-2); color: var(--primary); }
.toc a.active { border-left-color: var(--primary); color: var(--primary); background: var(--primary-50); }

.toc-mobile { display: none; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; margin-bottom: 16px; }
.toc-mobile summary { padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer; }
.toc-mobile a { display: block; padding: 9px 14px; font-size: 14px; color: var(--text-2); border-top: 1px solid var(--border-2); }
.toc-mobile a:hover { color: var(--primary); }

.article { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-top: 16px; }
@media (max-width: 640px) { .article { padding: 20px 16px; } }
.article h2 { font-size: 20px; margin: 36px 0 12px; scroll-margin-top: 84px; }
.article h2:first-child { margin-top: 0; }
.article p { color: var(--text-2); margin: 10px 0; }
.article ul { padding-left: 22px; color: var(--text-2); margin: 10px 0; }
.article ul li { margin: 6px 0; }
.article figure { margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.article figure svg { width: 100%; height: auto; display: block; }
.article figcaption { padding: 9px 14px; font-size: 13px; color: var(--text-3); text-align: center; border-top: 1px solid var(--border); background: #fff; }

.callout { display: flex; gap: 10px; padding: 13px 15px; border-radius: var(--radius-sm); font-size: 14px; margin: 16px 0; border: 1px solid; line-height: 1.6; }
.callout svg { flex-shrink: 0; margin-top: 2px; }
.callout b { display: block; margin-bottom: 3px; }
.callout-info { background: var(--primary-50); border-color: #bfdbfe; color: #1e40af; }
.callout-warning { background: var(--amber-50); border-color: var(--amber-100); color: #92400e; }

.steps { display: flex; flex-direction: column; gap: 18px; margin: 18px 0; }
.step { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.step .num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.step .img { width: 176px; flex-shrink: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.step .img svg { width: 100%; height: auto; display: block; }
.step .txt { flex: 1; min-width: 220px; color: var(--text-2); padding-top: 3px; }
.step .txt b { color: var(--text); display: block; margin-bottom: 3px; }

.video-box { margin: 18px 0; border-radius: var(--radius-sm); overflow: hidden; background: #0f172a; }
.video-box .screen { aspect-ratio: 16 / 9; position: relative; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1e293b, #0f172a); }
.play-btn {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .95);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: .15s;
}
.play-btn:hover { transform: scale(1.06); }
.video-box .bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; display: flex; align-items: center; gap: 10px; color: #cbd5e1; font-size: 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.video-box .progress { flex: 1; height: 3px; background: rgba(255, 255, 255, .25); border-radius: 2px; position: relative; }
.video-box .progress::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 32%; background: #fff; border-radius: 2px; }
.video-note { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 8px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; background: #fff; }
.table th, .table td { border: 1px solid var(--border); padding: 10px 13px; text-align: left; vertical-align: top; }
.table th { background: var(--border-2); font-weight: 600; width: 190px; white-space: nowrap; }

.download-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 20px 8px; margin: 18px 0; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border-2); }
.file-row:first-child { border-top: none; }
.file-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .02em;
}
.file-icon.pdf { background: #ef4444; }
.file-icon.zip { background: #f59e0b; }
.file-icon.mp4 { background: #8b5cf6; }
.file-row .name { font-size: 14px; font-weight: 500; }
.file-row .sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.file-row .btn { margin-left: auto; flex-shrink: 0; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
@media (max-width: 1024px) {
  .manual-wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile { display: block; }
}

/* =========================================================
   后台
   ========================================================= */
.admin-body { background: var(--bg); min-height: 100vh; }
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 90; opacity: 0; pointer-events: none; transition: .2s; }
.overlay.show { opacity: 1; pointer-events: auto; }

.admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 224px; z-index: 100;
  background: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; transition: transform .2s;
}
.admin-sidebar .brand { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.admin-sidebar .brand .sub { display: block; font-size: 12px; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.admin-nav { padding: 12px; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px; font-weight: 500; margin-bottom: 2px;
}
.admin-nav a svg { flex-shrink: 0; }
.admin-nav a:hover { background: var(--border-2); color: var(--text); }
.admin-nav a.active { background: var(--primary-50); color: var(--primary); }
.admin-sidebar .foot { padding: 12px; border-top: 1px solid var(--border); }

.admin-main { margin-left: 224px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px;
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.admin-topbar h1 { font-size: 17px; font-weight: 600; }
.admin-topbar .spacer { margin-left: auto; }
.admin-burger {
  display: none; width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.admin-content { padding: 24px; width: 100%; max-width: 1240px; }
@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-2); }
  .admin-main { margin-left: 0; }
  .admin-burger { display: inline-flex; }
  .admin-content { padding: 16px; }
}

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 18px; }
.stat .num { font-size: 24px; font-weight: 700; }
.stat .num.green { color: var(--green-700); }
.stat .num.amber { color: var(--amber-700); }
.stat .label { font-size: 13px; color: var(--text-3); margin-top: 2px; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; background: var(--border-2); padding: 4px; border-radius: 10px; flex-wrap: wrap; }
.tab { padding: 7px 14px; border-radius: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.tab.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: var(--shadow-1); }
.toolbar .search { position: relative; flex: 1; min-width: 180px; max-width: 300px; }
.toolbar .search .input { padding-left: 32px; }
.toolbar .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: flex; }
.toolbar .btn { margin-left: auto; }

.table-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 780px; }
.admin-table th { padding: 11px 16px; background: var(--border-2); font-size: 12px; font-weight: 500; color: var(--text-3); text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #fafafa; }
.ta-r { text-align: right !important; }
.row-title { font-weight: 600; color: var(--text); }
.row-title:hover { color: var(--primary); }
.row-title .ver { font-weight: 400; font-size: 12px; color: var(--text-3); margin-left: 6px; }
.row-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.row-actions { display: inline-flex; gap: 2px; white-space: nowrap; }
.link-btn { padding: 6px 10px; border-radius: 6px; font-size: 13px; color: var(--text-2); }
.link-btn:hover { background: var(--primary-50); color: var(--primary); }
.link-btn.danger:hover { background: var(--red-50); color: var(--red-700); }
.col-sm { display: none; }
@media (min-width: 860px) { .col-sm { display: table-cell; } }
.thumb-sm { width: 44px; height: 44px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.thumb-sm svg { width: 100%; height: 100%; display: block; }
.cell-flex { display: flex; align-items: center; gap: 12px; }
.hint-line { font-size: 12px; color: var(--text-3); margin-top: 12px; }

/* ---------- 编辑器 ---------- */
.editor-title-input { flex: 1; min-width: 160px; height: 36px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 0 10px; font-size: 15px; font-weight: 600; background: transparent; }
.editor-title-input:hover { background: var(--border-2); }
.editor-title-input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); outline: none; }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 1024px) { .editor-grid { grid-template-columns: 1fr; } }

.insert-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.insert-bar .label { font-size: 13px; color: var(--text-3); margin-right: 2px; }
.insert-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2); background: #fff;
}
.insert-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

.blocks { display: flex; flex-direction: column; gap: 14px; }
.block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); position: relative; transition: border-color .15s; }
.block:hover { border-color: #c7d2fe; }
.block-label { position: absolute; top: 10px; left: 14px; font-size: 11px; color: var(--text-3); background: var(--border-2); padding: 2px 9px; border-radius: 999px; z-index: 2; }
.block-toolbar { position: absolute; top: 8px; right: 10px; display: flex; gap: 4px; opacity: 0; transition: .15s; z-index: 2; }
.block:hover .block-toolbar, .block:focus-within .block-toolbar { opacity: 1; }
.block-btn {
  width: 28px; height: 28px; border-radius: 6px; background: #fff;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 13px;
}
.block-btn:hover { color: var(--primary); border-color: var(--primary); }
.block-btn.danger:hover { color: var(--red-700); border-color: #fca5a5; background: var(--red-50); }
.block-body { padding: 38px 16px 16px; }
.block-body.bare { padding: 16px; padding-top: 40px; }
.editable { min-height: 44px; outline: none; color: var(--text-2); border-radius: 6px; padding: 2px 4px; }
.editable:focus { box-shadow: 0 0 0 2px var(--primary-100); background: #fafbff; }
.editable:empty::before { content: attr(data-ph); color: var(--text-3); }
.editable p { margin: 6px 0; }

.block figure { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.block figure svg { width: 100%; height: auto; display: block; }
.block .caption-input { margin-top: 10px; height: 34px; font-size: 13px; }
.block .img-acts { display: flex; gap: 4px; margin-top: 8px; }
.mini-btn { font-size: 12px; color: var(--text-2); padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border); background: #fff; }
.mini-btn:hover { color: var(--primary); border-color: var(--primary); }
.mini-btn.danger:hover { color: var(--red-700); border-color: #fca5a5; }

.step-edit { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fcfcfd; }
.step-edit .num { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 22px; }
.step-edit .img { width: 140px; flex-shrink: 0; border: 1px dashed #cbd5e1; border-radius: 6px; overflow: hidden; background: var(--bg); position: relative; }
.step-edit .img svg { width: 100%; height: auto; display: block; }
.step-edit .img .chg { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; text-align: center; padding: 3px 0; background: rgba(255,255,255,.9); color: var(--primary); }
.step-edit .txt-wrap { flex: 1; min-width: 160px; }
.step-edit .editable { min-height: 58px; }

.video-fields { display: grid; grid-template-columns: 150px 1fr; gap: 10px; margin-bottom: 12px; }
@media (max-width: 560px) { .video-fields { grid-template-columns: 1fr; } }
.video-preview { border-radius: var(--radius-sm); overflow: hidden; background: #0f172a; position: relative; }
.video-preview .screen { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1e293b, #0f172a); }
.video-preview .play-mini { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.video-preview .bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; display: flex; gap: 8px; align-items: center; color: #cbd5e1; font-size: 11px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.video-preview .progress { flex: 1; height: 3px; background: rgba(255,255,255,.25); border-radius: 2px; }
.tip-type-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.tip-type-row .select { width: 130px; height: 32px; font-size: 13px; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.panel .select, .panel .input { font-size: 14px; }
.cover-row { display: flex; gap: 12px; align-items: center; }
.cover-thumb { width: 96px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--bg); flex-shrink: 0; }
.cover-thumb svg { width: 100%; height: 100%; display: block; }
.cover-acts { display: flex; flex-direction: column; gap: 6px; }

.upload-zone {
  border: 1.5px dashed #cbd5e1; border-radius: var(--radius-sm);
  padding: 24px 16px; text-align: center; color: var(--text-3);
  font-size: 13px; background: var(--bg); cursor: pointer; transition: .15s;
}
.upload-zone:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.upload-zone svg { margin: 0 auto 8px; display: block; color: var(--text-3); }
.upload-zone strong { color: var(--primary); }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-2); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.modal-close:hover { background: var(--border-2); color: var(--text); }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: #111827; color: #fff; padding: 10px 20px; border-radius: 10px;
  font-size: 14px; opacity: 0; transition: .25s; z-index: 300; pointer-events: none;
  box-shadow: var(--shadow-2); max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 登录页 ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #eff6ff, #f8fafc 55%); padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; box-shadow: var(--shadow-2); }
.login-card .brand { justify-content: center; margin-bottom: 6px; }
.login-card .sub { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 24px; }
.login-card .btn { margin-top: 6px; }
.login-foot { text-align: center; font-size: 13px; margin-top: 18px; }
.login-foot a { color: var(--primary); }
.demo-tip { background: var(--primary-50); border: 1px solid var(--primary-100); color: #1e40af; border-radius: var(--radius-sm); font-size: 12px; padding: 9px 12px; margin-bottom: 18px; line-height: 1.6; }

/* ---------- 打印 ---------- */
@media print {
  .site-header, .site-footer, .breadcrumb, .toc, .toc-mobile, .manual-head .actions, .related-block, .download-card .btn, .video-box .bar, .progress { display: none !important; }
  body { background: #fff; }
  .article, .manual-head, .download-card { border: none; }
}

/* ---------- 降级：减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- ÔËÐа油³䣺ÕæʵͼƬ/ÊÓƵ ---------- */
.product-card .thumb img, .product-hero .thumb img, .thumb-sm img, .cover-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.article figure img { width:100%; height:auto; display:block; }
.step .img img { width:100%; height:auto; display:block; }
.video-box video, .video-box .screen iframe { width:100%; height:100%; border:0; display:block; object-fit:contain; background:#000; }
.heading-input { font-weight:600; }

/* ---------- 产品页：文档/资料 Tabs ---------- */
.doc-tabs { display:flex; gap:24px; border-bottom:1px solid var(--border); margin:28px 0 0; }
.doc-tab { padding:10px 2px; font-size:15px; font-weight:600; color:var(--text-2); border:none; border-bottom:2px solid transparent; margin-bottom:-1px; cursor:pointer; background:none; font-family:inherit; }
.doc-tab:hover { color:var(--primary); }
.doc-tab.active { color:var(--primary); border-bottom-color:var(--primary); }
.doc-tab .sub { font-weight:400; font-size:12px; color:var(--text-3); margin-left:6px; }
.empty-inline { padding:36px 16px; text-align:center; color:var(--text-3); background:#fff; border:1px dashed var(--border); border-radius:12px; margin-top:16px; }
.empty-inline h3 { font-size:15px; margin-bottom:6px; color:var(--text); }
.empty-inline p { font-size:13px; }

/* 上传区拖拽高亮 */
.upload-zone.drag { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }

/* ---------- 页面加载动画（HTML 先渲染，API 等待占位） ---------- */
.page-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 72px 0; color: var(--text-3); font-size: 14px; }
.page-loading .spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: page-spin .8s linear infinite; }
.page-loading.error { color: #dc2626; }
@keyframes page-spin { to { transform: rotate(360deg); } }
@media print { .page-loading { display: none !important; } }