/* ===================================================================
   ClearLove 插件社区 · 云端官网样式
   清新现代绿色主题；动画仅使用 淡入 / 缩放 / 旋转 / 渐变流动，
   不使用任何「元素上浮」效果。
   =================================================================== */
:root {
  --g-1: #10b981;
  --g-2: #34d399;
  --g-3: #059669;
  --cyan: #22d3ee;
  --bg: #f2faf6;
  --card: #ffffff;
  --text: #0f1f1a;
  --muted: #6b8079;
  --border: #e2efe9;
  --soft: rgba(16, 185, 129, .1);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 18px rgba(15, 60, 45, .06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
code { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 12.5px; background: var(--soft); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 11.5px; word-break: break-all; }
.empty { color: var(--muted); text-align: center; padding: 18px 0; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }
.hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }

/* ---------------- 背景装饰（纯缩放/流动，无位移） ---------------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(16, 185, 129, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}
.glow {
  position: fixed; z-index: -2; pointer-events: none;
  width: 46vw; height: 46vw; border-radius: 50%;
  filter: blur(90px); opacity: .5;
  animation: glowPulse 12s ease-in-out infinite;
}
.glow-a { top: -14vw; left: -10vw; background: radial-gradient(circle, rgba(52, 211, 153, .55), transparent 68%); }
.glow-b { bottom: -18vw; right: -12vw; background: radial-gradient(circle, rgba(34, 211, 238, .38), transparent 68%); animation-delay: 4s; }
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: .42; }
  50% { transform: scale(1.18); opacity: .62; }
}

/* ---------------- 顶部导航 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 22px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--g-1), var(--cyan));
  box-shadow: 0 4px 14px rgba(16, 185, 129, .35);
}
.brand-mark.sm { width: 26px; height: 26px; border-radius: 8px; }
.brand-text { font-size: 16px; letter-spacing: .3px; }
.topnav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.topnav a { color: #3d5850; transition: color .18s; }
.topnav a:hover { color: var(--g-1); }
.topnav a.active { color: var(--g-1); font-weight: 600; }
.topnav .nav-plain { padding: 0 2px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 14px; cursor: pointer; transition: box-shadow .2s, background .2s, color .2s, border-color .2s, filter .2s;
  background: var(--border); color: var(--text);
}
.btn:hover { filter: brightness(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--g-1), var(--g-3));
  color: #fff; box-shadow: 0 6px 20px rgba(16, 185, 129, .28);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(16, 185, 129, .4); }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--g-2); color: var(--g-3); }
.btn-danger-ghost { background: #fff; border-color: #f3d4d9; color: #d84a5f; }
.btn-block { width: 100%; }

/* 分块上传进度条 */
.progress { height: 10px; background: var(--border); border-radius: 999px; overflow: hidden; margin: 6px 0 6px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--g-1), var(--g-3)); border-radius: 999px; transition: width .2s; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.mini-btn {
  display: inline-flex; align-items: center; padding: 4px 10px; font-size: 12px;
  border-radius: 8px; border: 1px solid var(--border); background: #fff;
  color: var(--text); cursor: pointer; transition: border-color .18s, color .18s;
}
.mini-btn:hover { border-color: var(--g-2); color: var(--g-3); }
.mini-btn.danger { color: #d84a5f; border-color: #f3d4d9; }
.mini-link { color: var(--g-3); font-size: 13px; }
.mini-link:hover { color: var(--g-1); }
.icon-btn { background: none; border: 0; font-size: 20px; cursor: pointer; color: inherit; padding: 4px; }

/* ---------------- 首页 Hero ---------------- */
.page { max-width: 1140px; margin: 0 auto; padding: 0 20px 60px; }
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px;
  align-items: center; padding: 64px 0 52px;
}
.hero-inner { animation: fadeIn .7s ease both; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: var(--soft); color: var(--g-3); border: 1px solid rgba(16, 185, 129, .22);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--g-1);
  animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 50% { opacity: .7; box-shadow: 0 0 0 6px rgba(16,185,129,0); } }
.hero-title { font-size: 42px; line-height: 1.28; margin: 18px 0 14px; letter-spacing: -.5px; }
.hero-title .grad {
  background: linear-gradient(100deg, var(--g-1), var(--cyan), var(--g-2), var(--g-1));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { from { background-position: 0 0; } to { background-position: 220% 0; } }
.hero-sub { font-size: 16px; color: var(--muted); max-width: 560px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions.center { justify-content: center; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 34px; max-width: 560px; }
.hstat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 10px; text-align: center; box-shadow: var(--shadow);
  animation: fadeIn .8s ease both;
}
.hstat b { display: block; font-size: 22px; color: var(--g-3); }
.hstat span { font-size: 12px; color: var(--muted); }

.hero-visual { display: flex; align-items: center; justify-content: center; }

/* ---------------- 区块 ---------------- */
.section { padding: 38px 0; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.3px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.section-head p { margin: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 16px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  transition: border-color .22s, box-shadow .22s;
}
.feature:hover { border-color: var(--g-2); box-shadow: 0 6px 26px rgba(16, 185, 129, .14); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; color: var(--g-3);
  background: var(--soft); transition: transform .22s;
}
.feature:hover .feature-icon { transform: scale(1.1); }
.feature h3 { margin: 14px 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; }

.cta-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, .1), rgba(34, 211, 238, .12));
  border: 1px solid rgba(16, 185, 129, .2); border-radius: 22px;
  padding: 40px 26px; text-align: center;
}
.cta-box h2 { margin: 0 0 8px; font-size: 24px; }
.cta-box p { margin: 0 0 22px; color: var(--muted); }

/* ---------------- 插件卡片 ---------------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 16px; }
.pcard {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
  transition: border-color .22s, box-shadow .22s;
}
.pcard:hover { border-color: var(--g-2); box-shadow: 0 6px 26px rgba(16, 185, 129, .15); }
.pcard-head { display: flex; align-items: center; gap: 12px; }
.pcard-icon {
  width: 44px; height: 44px; flex: none; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--g-1), var(--cyan));
}
.pcard-icon.lg { width: 58px; height: 58px; font-size: 24px; border-radius: 16px; }
.pcard-title h3 { margin: 0; font-size: 16px; }
.pcard-title h3 a:hover { color: var(--g-3); }
.pcard-meta { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.pcard-desc { flex: 1; margin: 12px 0; color: #465b53; font-size: 13.5px; min-height: 40px; }
.pcard-foot {
  display: flex; align-items: center; gap: 14px;
  padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted);
}
.stat-inline { display: inline-flex; align-items: center; gap: 4px; }
.pcard-foot .mini-link { margin-left: auto; }
.tag-soft {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  background: var(--soft); color: var(--g-3); font-size: 12px;
}
.tag-app {
  display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px;
  background: #e8f0ff; color: #2f6bd8;
}
.tag-lite {
  display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px;
  background: var(--soft); color: var(--g-3);
}
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--border); color: #47605a; }
.tag.ok { background: #e5f8ef; color: #10805a; }
.tag.warn { background: #fdf3e3; color: #c47a1d; }
.tag.danger { background: #fdeef1; color: #d84a5f; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 999px; background: #ef5b74; color: #fff; font-size: 11px;
}

/* ---------------- 列表 / 筛选 ---------------- */
.page-head { padding: 30px 0 18px; }
.page-head.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.page-title { font-size: 26px; margin: 0 0 4px; letter-spacing: -.3px; }
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.filter-bar input[type=search] { flex: 1; min-width: 180px; }
.filter-bar input, .filter-bar select { margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 24px 0 0; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 5px 14px; border-radius: 999px; font-size: 13px;
  background: #fff; border: 1px solid var(--border); color: var(--muted);
  transition: background .18s, color .18s, border-color .18s;
}
.chip.active { background: linear-gradient(135deg, var(--g-1), var(--g-3)); color: #fff; border-color: transparent; }

/* ---------------- 详情 ---------------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 12px; font-size: 16px; }
.card h3:not(:first-child) { margin-top: 20px; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 24px; }
.detail-title { display: flex; align-items: center; gap: 16px; }
.detail-title h1 { margin: 0 0 4px; font-size: 25px; }
.detail-title p { margin: 0; font-size: 13.5px; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.side-card { position: sticky; top: 76px; }
.version-list { list-style: none; margin: 0; padding: 0; }
.version-list li { padding: 11px 0; border-bottom: 1px dashed var(--border); }
.version-list li:last-child { border-bottom: 0; }
.v-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.steps-list { margin: 0; padding-left: 20px; color: #465b53; font-size: 14px; }
.steps-list li { margin: 7px 0; }
.code {
  background: #0f2a22; color: #b9f2d8; border-radius: var(--radius-sm);
  padding: 16px; font-size: 12.5px; line-height: 1.7; overflow-x: auto;
  font-family: ui-monospace, Consolas, Menlo, monospace; white-space: pre;
}
.doc-h { font-size: 17px; margin: 0 0 10px; }

/* ---------------- 表格 ---------------- */
.table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { background: #f6fbf9; font-weight: 600; white-space: nowrap; }
.table tbody tr { transition: background .18s; }
.table tbody tr:hover { background: #f7fdfa; }
.cell-content { max-width: 240px; word-break: break-word; }
.ops { display: flex; flex-wrap: wrap; gap: 6px; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.kv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv-table th { text-align: left; width: 150px; color: var(--muted); font-weight: 500; padding: 9px 0; }
.kv-table td { padding: 9px 0; }

/* ---------------- 表单 ---------------- */
input[type=text], input[type=password], input[type=email], input[type=search],
input[type=file], select, textarea {
  width: 100%; margin-top: 5px; padding: 10px 12px; font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); outline: none; font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus { border-color: var(--g-2); box-shadow: 0 0 0 3px var(--soft); }
input[disabled] { background: #f6f8f7; color: var(--muted); }
textarea { resize: vertical; }
label { display: block; margin: 12px 0; font-size: 14px; color: #465b53; }
.check-row { display: flex; align-items: center; gap: 8px; }
.check-row input { width: auto; margin: 0; }
.form-card { padding: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.form-err { color: #c0392b; font-size: 13.5px; background: #fdeef1; padding: 9px 14px; border-radius: var(--radius-sm); }
.form-ok { color: #10805a; font-size: 13.5px; background: #e5f8ef; padding: 9px 14px; border-radius: var(--radius-sm); }

/* ---------------- 登录 / 注册 ---------------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.auth { max-width: 420px; width: 100%; padding: 28px; margin: 40px auto; animation: scaleIn .5s ease both; }
.auth-title { margin: 0 0 4px; font-size: 21px; text-align: center; }
.auth-sub { text-align: center; margin: 0 0 8px; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.auth-alt a { color: var(--g-3); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }

/* ---------------- 控制台（开发者 / 管理员） ---------------- */
.console-body { background: var(--bg); }
.console-wrap { max-width: 1140px; margin: 0 auto; padding: 22px 20px 60px; display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: start; }
.side { position: sticky; top: 76px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a {
  padding: 9px 14px; border-radius: var(--radius-sm); font-size: 14px;
  color: #465b53; transition: background .18s, color .18s;
}
.side-nav a:hover { background: #fff; color: var(--g-3); }
.side-nav a.active { background: linear-gradient(135deg, var(--g-1), var(--g-3)); color: #fff; }
.console-main { min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 20px 12px; margin: 0; }
.stat-num { font-size: 25px; font-weight: 700; color: var(--g-3); }
.stat-num.warn { color: #e08a2e; }
.stat span { font-size: 13px; color: var(--muted); }

/* 管理员 Shell */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 216px; z-index: 50;
  background: #0f2a22; color: #cfe6dc; display: flex; flex-direction: column;
  transition: transform .22s ease;
}
.side-brand { display: flex; align-items: center; gap: 9px; padding: 16px 18px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-nav.dark a { color: #cfe6dc; }
.side-nav.dark a:hover { background: rgba(255,255,255,.08); color: #fff; }
.side-nav.dark a.active { background: linear-gradient(135deg, var(--g-1), var(--cyan)); color: #05201a; }
.side-foot { padding: 12px; display: flex; justify-content: space-between; font-size: 13px; border-top: 1px solid rgba(255,255,255,.08); }
.side-foot a { color: #cfe6dc; }
.admin-top {
  position: sticky; top: 0; z-index: 40; margin-left: 216px;
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.admin-title { font-weight: 600; font-size: 14px; }
.admin-main { margin-left: 216px; padding: 22px; max-width: 1180px; }

/* ---------------- 柱状图 ---------------- */
.chart { display: flex; align-items: flex-end; gap: 12px; height: 190px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.chart-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.chart-bar {
  width: 60%; min-height: 4px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--g-2), var(--g-1));
  transition: height .6s cubic-bezier(.2, .8, .3, 1), filter .2s;
}
.chart-col:hover .chart-bar { filter: brightness(1.06); }
.chart-label { font-size: 11.5px; color: var(--muted); }
.chart-sub { font-size: 10.5px; color: var(--muted); }
.chart-val { font-size: 12px; font-weight: 600; color: var(--g-3); }

/* ---------------- 页脚 ---------------- */
.footer { border-top: 1px solid var(--border); background: rgba(255,255,255,.7); }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 24px 20px 34px; text-align: center; }
.footer-brand { margin: 0 0 4px; font-size: 13.5px; color: #465b53; }

/* ---------------- 官网首页：产品预览 / 快速开始 / 架构 / FAQ ---------------- */
.link-more { color: var(--g-3); font-size: 14px; align-self: center; transition: color .18s; }
.link-more:hover { color: var(--g-1); }

.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--g-2); }

/* 产品预览（纯 CSS 模拟界面，不依赖图片） */
.mock {
  width: 100%; max-width: 372px; background: #fff; border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(15, 60, 45, .13);
  animation: scaleIn .8s ease both;
}
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f7fcfa; border-bottom: 1px solid var(--border); }
.mock-dots { display: inline-flex; gap: 5px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: #dfeae5; }
.mock-dots i:nth-child(1) { background: #ffb3c1; }
.mock-dots i:nth-child(2) { background: #ffd9a0; }
.mock-dots i:nth-child(3) { background: #a8e6c8; }
.mock-url { font-size: 11.5px; color: var(--muted); }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.mock-card { border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: #fff; box-shadow: var(--shadow); }
.mock-card.alt { background: #f9fdfb; }
.mock-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mock-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--g-1), var(--cyan)); }
.mock-avatar.g { background: linear-gradient(135deg, var(--cyan), var(--g-2)); }
.mock-line { height: 7px; border-radius: 4px; background: #e8f2ee; }
.mock-line.w50 { width: 50%; }
.mock-line.w40 { width: 40%; }
.mock-text { margin: 0 0 8px; font-size: 11.5px; line-height: 1.55; color: #4a615a; }
.mock-media { height: 60px; margin-bottom: 8px; border-radius: 9px; background: linear-gradient(135deg, rgba(16, 185, 129, .18), rgba(34, 211, 238, .24)); }
.mock-foot { font-size: 11px; color: var(--muted); }
.mock-heart { color: var(--g-1); }

/* 快速开始 */
.section-head.center { text-align: center; }
.quickstart { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; align-items: start; }
.cmd-box { background: #0e2a22; border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 34px rgba(9, 40, 31, .22); }
.cmd-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #8fd9bd; font-size: 12.5px; }
.cmd-body { margin: 0; padding: 16px; color: #b9f2d8; font-size: 12.5px; line-height: 1.85; font-family: ui-monospace, Consolas, Menlo, monospace; overflow-x: auto; }
.copy-btn {
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #cdeee0;
  font-size: 12px; padding: 3px 10px; border-radius: 7px; cursor: pointer;
  transition: background .18s, border-color .18s;
}
.copy-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .32); }
.step-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step-card { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); transition: border-color .2s; }
.step-card:hover { border-color: var(--g-2); }
.step-num {
  flex: none; width: 26px; height: 26px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--g-1), var(--cyan));
}
.step-card h3 { margin: 2px 0 4px; font-size: 15px; }
.step-card p { margin: 0; font-size: 13px; color: var(--muted); }

/* 架构 */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.tech-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.tech-item:hover { border-color: var(--g-2); box-shadow: 0 6px 26px rgba(16, 185, 129, .14); }
.tech-item h3 { margin: 0 0 8px; font-size: 15px; color: var(--g-3); }
.tech-item p { margin: 0; font-size: 13.5px; color: var(--muted); }
.tech-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.tbadge { padding: 5px 13px; border-radius: 999px; font-size: 12.5px; background: #fff; border: 1px solid var(--border); color: #46605a; }

/* 生态入口 */
.eco-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.eco-link { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: border-color .2s; }
.eco-link:hover { border-color: var(--g-2); }
.eco-link b { font-size: 15px; }
.eco-link span { font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 18px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--g-1); font-size: 19px; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }

/* ---------------- 视频教程（B 站 iframe 嵌入） ---------------- */
.video-frame {
  position: relative; width: 100%; max-width: 900px; margin: 0 auto;
  aspect-ratio: 16 / 9; background: #0b1a16; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(15, 60, 45, .16);
  animation: fadeIn .7s ease both;
}
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; max-width: 900px; margin: 18px auto 0;
}
.video-ticks { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.video-ticks li { font-size: 13.5px; color: var(--text); }
@media (max-width: 620px) {
  .video-foot { flex-direction: column; align-items: flex-start; }
  .video-ticks { flex-direction: column; gap: 2px; }
}

/* ---------------- 真实界面展示（截图来自 /static/picture/） ---------------- */
.mock-shot { display: block; }
.mock-shot img { width: 100%; height: auto; }
.mock-shot:hover img { filter: saturate(1.06); }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.shot-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: border-color .22s, box-shadow .22s;
  animation: fadeIn .7s ease both;
}
.shot-card:hover { border-color: var(--g-2); box-shadow: 0 10px 34px rgba(16, 185, 129, .16); }
.shot-card:hover .shot-img img { transform: scale(1.03); }
.shot-img {
  display: block; overflow: hidden; background: #f7fcfa;
  aspect-ratio: 16 / 10;
}
.shot-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform .35s ease, filter .35s ease;
}
.shot-cap { display: flex; flex-direction: column; gap: 2px; padding: 13px 16px 15px; }
.shot-cap b { font-size: 14.5px; }
.shot-cap i { font-style: normal; font-size: 12.5px; color: var(--muted); }

.mobile-show {
  display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center;
  margin-top: 26px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow);
}
.mobile-txt h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.3px; }
.mobile-txt p { margin: 0 0 14px; color: var(--muted); font-size: 14px; max-width: 480px; }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { display: flex; align-items: flex-start; gap: 9px; padding: 4px 0; font-size: 13.5px; color: var(--text); }
.tick-list li::before {
  content: '✓'; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--soft); color: var(--g-3); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.mobile-shot {
  display: block; width: 236px; border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden; box-shadow: 0 16px 44px rgba(15, 60, 45, .14);
  transition: box-shadow .25s;
}
.mobile-shot:hover { box-shadow: 0 20px 54px rgba(16, 185, 129, .22); }
.mobile-shot img { width: 100%; height: auto; }

@media (max-width: 760px) {
  .mobile-show { grid-template-columns: 1fr; padding: 22px 18px; }
  .mobile-shot { margin: 0 auto; width: 210px; }
}

/* ---------------- 动画 ---------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .glow, .pill .dot, .hero-title .grad, .auth, .mock { animation: none !important; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 30px; }
  .hero-visual { display: none; }
  .quickstart { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .console-wrap { grid-template-columns: 1fr; }
  .side { position: static; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .grid-2col { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .admin-top, .admin-main { margin-left: 0; }
}
@media (max-width: 620px) {
  .hero-title { font-size: 30px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 10px 14px; }
  .topnav { gap: 10px; font-size: 13px; }
  .topnav a:nth-child(3) { display: none; }
  .page { padding: 0 14px 44px; }
  .chart { height: 150px; gap: 6px; }
  .chart-sub { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
