/* 绘稿写作官网样式 —— 浅色主题，无框架依赖 */
:root {
  --bg: #f6f7f9; --card: #ffffff; --border: #e4e7ec;
  --text: #1d2433; --muted: #6b7280; --brand: #4f6bf0; --brand-dark: #3d55c8;
  --green: #12915e; --red: #d64545; --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* 首页整屏切换：页面本体不滚动，由 .fp-track 平移完成（fullpage 式） */
html:has(.fp-wrap) { overflow: hidden; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.7 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .mono { font-family: Consolas, monospace; font-size: 13px; word-break: break-all; }
.inline { display: inline; }

/* 头尾 */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 28px; }
.brand { font-weight: 800; font-size: 19px; color: var(--text); display: flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #4f8bff, #6d5df6); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; }
.brand-text i { font-style: normal; font-size: 10.5px; color: var(--muted); letter-spacing: 1px; }
.site-nav { display: flex; gap: 2px; flex: 1; }
.nav-link { color: var(--muted); padding: 8px 13px; border-radius: 8px; font-weight: 500; position: relative; }
.nav-link:hover { color: var(--brand); text-decoration: none; }
.nav-link.active { color: var(--brand); font-weight: 600; }
.nav-link.active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #6d5df6, #4f8bff); }
.nav-icon { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.nav-icon svg { width: 18px; height: 18px; }
.nav-icon:hover { background: var(--bg); color: var(--brand); text-decoration: none; }
.auth-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 18px; border-radius: 10px; background: linear-gradient(180deg, #3f3f46, #1d1d21); border: 1px solid #141416; color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.auth-pill svg { width: 15px; height: 15px; }
.auth-pill:hover { text-decoration: none; color: #fff; filter: brightness(1.06); }
.header-right { display: flex; align-items: center; gap: 8px; }
.user-chip { color: var(--muted); font-size: 13.5px; }
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 24px 0; color: var(--muted); font-size: 13px; text-align: center; }
.main { padding-top: 32px; padding-bottom: 40px; min-height: calc(100vh - 220px); }
.main-home { padding: 0; min-height: 0; }

/* ---------- 首页 v4：整屏切换（fullpage 式，滚轮/键盘/触摸一翻一整屏）+ 全宽 ---------- */
.fp-wrap { height: calc(100vh - 64px); overflow: hidden; }
.fp-track { will-change: transform; transition: transform .9s cubic-bezier(.77, 0, .175, 1); }
.panel { height: calc(100vh - 64px); position: relative; display: flex; flex-direction: column; justify-content: safe center; }
.panel > * { position: relative; z-index: 1; } /* 内容置于背景纱罩(::before)之上 */
.panel-inner { width: 100%; padding: 24px 4vw 30px; max-height: 100%; overflow-y: auto; scrollbar-width: thin; }

/* 右侧竖排圆点翻页指示（垂直居中，无背景，当前屏为竖长条） */
.panel-dots { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 20; background: transparent; border: none; box-shadow: none; }
.panel-dots button { width: 9px; height: 9px; border-radius: 999px; border: none; background: rgba(255,255,255,.85); box-shadow: 0 1px 4px rgba(23,35,61,.4); cursor: pointer; padding: 0; transition: all .25s ease; }
.panel-dots button:hover { background: #fff; }
.panel-dots button.active { height: 26px; background: linear-gradient(180deg, #6d5df6, #4f8bff); }

/* 首屏向下切换提示 */
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(23,35,61,.28); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; background: transparent; cursor: pointer; }
.scroll-hint span { width: 4px; height: 9px; border-radius: 3px; background: rgba(23,35,61,.42); animation: hintDrop 1.4s ease-in-out infinite; }
@keyframes hintDrop { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* 按钮 / 表单 / 杂项 —— 全站按钮统一：圆角矩形 10px，深色质感（颜色可随场景变） */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border-radius: 10px; border: 1px solid #141416; background: linear-gradient(180deg, #3a3a41, #232327); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); transition: filter .18s ease, transform .12s ease; }
.btn:hover { color: #fff; filter: brightness(1.18); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #3f3f46, #1d1d21); border-color: #141416; color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.18); }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:hover { color: var(--brand); filter: none; background: rgba(79,107,240,.07); }
.btn-lg { padding: 13px 30px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 5px 14px; font-size: 13px; border-radius: 8px; }
.btn-xs { padding: 2px 9px; font-size: 12px; border-radius: 6px; }
.btn.liked { border-color: var(--brand); color: var(--brand); background: #eef1fe; box-shadow: none; }
.form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 13.5px; }
.form input, .form select, .form textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid #cdd8fd; border-color: var(--brand); }
.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.alert-error { background: #fdeaea; color: var(--red); border: 1px solid #f5c9c9; }
.alert-ok { background: #e7f6ee; color: #178a56; border: 1px solid #bfe7d2; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.code-send {
  flex: 0 0 auto; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.code-send:hover { border-color: #1d1d21; }
.code-send:disabled { color: var(--muted); cursor: not-allowed; border-color: var(--border); }
.adm-check-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 14px; color: var(--text); cursor: pointer; user-select: none; }
.adm-check-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto; width: 38px; height: 22px; margin: 1px 0 0; padding: 0;
  border: none; border-radius: 999px; background: #d3d6dd; position: relative; cursor: pointer;
  transition: background .15s ease;
}
.adm-check-row input[type="checkbox"]::after {
  content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s ease;
}
.adm-check-row input[type="checkbox"]:checked { background: #1d1d21; }
.adm-check-row input[type="checkbox"]:checked::after { transform: translateX(16px); }
.adm-check-row input[type="checkbox"]:focus { outline: 2px solid #cdd8fd; outline-offset: 2px; }
.adm-check-row small { display: block; color: var(--muted); margin-top: 2px; }
.dl-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.dl-logo img { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; border: 1px solid var(--border); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #eef0f3; color: var(--muted); font-size: 12px; }
.tag-green { background: #e2f6ec; color: var(--green); }
.tag-red { background: #fdecec; color: var(--red); }
.chip { display: inline-block; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 13.5px; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { background: #fafbfc; color: var(--muted); font-weight: 500; }
.table tr:last-child td { border-bottom: none; }
h1 { font-size: 26px; } h2 { font-size: 19px; margin-top: 36px; }

/* ---------- 首页 v2（参考稿重构） ---------- */
/* 通用大按钮（首页首屏/第2屏），与全站统一：圆角矩形 10px */
.btn-pill { display: inline-flex; align-items: center; gap: 9px; padding: 12px 26px; border-radius: 10px; background: #fff; border: 1px solid #d9e4f8; color: var(--text); font-size: 15px; font-weight: 600; }
.btn-pill:hover { text-decoration: none; border-color: #b9cdf3; background: #f7faff; }
.btn-pill svg { width: 17px; height: 17px; }
.btn-pill-primary { background: linear-gradient(180deg, #3f3f46, #1d1d21); border-color: #141416; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.btn-pill-primary:hover { background: linear-gradient(180deg, #3f3f46, #1d1d21); border-color: #141416; color: #fff; filter: brightness(1.12); }
.btn-pill-outline { background: transparent; border-color: #b9cdf3; color: var(--brand); box-shadow: none; }
.btn-pill-outline:hover { color: var(--brand); background: #f0f5ff; }
.pill-arrow { margin-left: 4px; }
/* 手写体标语 */
.script-tag { font-family: "STXingkai", "华文行楷", "KaiTi", "楷体", cursive; font-size: 34px; color: #7b6cf6; margin-bottom: 10px; }
.script-en { font-family: "Segoe Script", "Comic Sans MS", "STXingkai", cursive; font-size: 19px; color: #8a7bf8; text-transform: none; }

/* Hero：第 1 屏，背景图 = public/hero-bg.jpg（换图即换文件） */
.panel-hero { background: #dcebfc url('/assets/hero-bg.jpg') no-repeat center / cover; }
.panel-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(240,247,255,.72) 0%, rgba(240,247,255,.30) 42%, rgba(240,247,255,0) 62%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: 100%; padding: 0 5vw; }
.hero-copy { max-width: 960px; }
.hero-title { font-size: 80px; line-height: 1.22; font-weight: 800; color: #17233d; margin: 0 0 26px; letter-spacing: 1px; }
.hero-title .grad { background: linear-gradient(90deg, #6d5df6, #4f8bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: #46587a; font-size: 23px; line-height: 1.8; max-width: 740px; margin: 0 0 38px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 42px; }
.hero-actions .btn-pill { padding: 18px 42px; font-size: 20px; gap: 11px; }
.hero-actions .btn-pill svg { width: 22px; height: 22px; }
.hero-actions .pill-arrow { font-size: 20px; }
.hero-feats { display: flex; gap: 16px; flex-wrap: nowrap; margin-bottom: 26px; }
/* 玻璃拟态特性卡片 */
.hf { display: flex; align-items: center; gap: 14px; padding: 13px 22px 13px 13px; border-radius: 18px; background: rgba(255,255,255,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.75); box-shadow: 0 4px 14px rgba(30,50,90,.10); transition: transform .25s ease, box-shadow .25s ease; }
.hf:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(30,50,90,.14); }
.hf-ic { width: 54px; height: 54px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin: 0; flex: none; border: 1px solid rgba(255,255,255,.9); box-shadow: inset 0 1px 3px rgba(255,255,255,.9); }
.hf:nth-child(1) .hf-ic { background: linear-gradient(135deg, #dfe9ff, #c9dcff); }
.hf:nth-child(2) .hf-ic { background: linear-gradient(135deg, #f3e8ff, #e4d2ff); }
.hf:nth-child(3) .hf-ic { background: linear-gradient(135deg, #dff5ea, #c8ecd9); }
.hf:nth-child(4) .hf-ic { background: linear-gradient(135deg, #ffedd9, #ffe0c2); }
.hf b { font-size: 18px; color: #17233d; letter-spacing: .5px; }
.hf i { font-style: normal; font-size: 14px; color: #64789c; }
.hf-txt { display: flex; flex-direction: column; gap: 2px; }
.hero-ver { font-size: 16px; color: #6b7ea0; }

/* 三屏统一背景：同一张 hero-bg.jpg，文字侧加白色渐变保证可读 */
.panel-why {
  background: #dcebfc url('/assets/hero-bg.jpg') no-repeat center / cover;
}
.panel-why::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(240,247,255,.72) 0%, rgba(240,247,255,.30) 42%, rgba(240,247,255,0) 62%);
  pointer-events: none;
}
/* 第 3 屏内容横跨整行，用均匀纱罩保证右侧文字可读 */
.panel-info::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(240,247,255,.8) 0%, rgba(240,247,255,.66) 45%, rgba(240,247,255,.58) 100%);
  pointer-events: none;
}
.why-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 36px; align-items: center; }
.why-title { font-size: 30px; font-weight: 800; color: #17233d; margin: 4px 0 12px; }
.why-sub { color: #46587a; font-size: 15px; margin: 0 0 22px; }
/* 软件界面 mockup */
.mock { background: #fff; border: 1px solid #e2eaf6; border-radius: 14px; box-shadow: 0 18px 44px rgba(46,80,150,.16); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f4f8ff; border-bottom: 1px solid #e6edf8; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe7f3; }
.mock-bar i:nth-child(1) { background: #f6a9a9; } .mock-bar i:nth-child(2) { background: #f6d6a0; } .mock-bar i:nth-child(3) { background: #a8dfbf; }
.mock-bar span { margin-left: 10px; font-size: 12px; color: #8296b5; }
.mock-body { display: grid; grid-template-columns: 108px 1fr 150px; min-height: 250px; }
.mock-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: #f8fbff; border-right: 1px solid #edf2fa; }
.mock-side span { font-size: 12px; color: #5d7398; padding: 6px 9px; border-radius: 7px; }
.mock-side span:first-child { background: #e8efff; color: var(--brand); font-weight: 600; }
.mock-main { padding: 16px 18px; }
.mock-main h4 { margin: 0 0 12px; font-size: 14.5px; color: #17233d; }
.ml { height: 8px; border-radius: 4px; background: #e8edf5; margin-bottom: 10px; }
.mock-chips { display: flex; flex-direction: column; gap: 8px; padding: 12px 10px; border-left: 1px solid #edf2fa; background: #fbfdff; }
.mc { background: #fff; border: 1px solid #e4ecf8; border-radius: 10px; padding: 8px 10px; box-shadow: 0 3px 10px rgba(46,80,150,.06); }
.mc b { display: block; font-size: 12.5px; color: #17233d; }
.mc i { font-style: normal; font-size: 10.5px; color: #8296b5; }

/* 教程 / FAQ / 关于 卡片样式 */
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.step-card b { color: var(--brand); font-size: 15px; }
.step-card p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.qa { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 10px; }
.qa summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.qa p { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature-icon { font-size: 26px; margin-bottom: 8px; }
.feature-card h3 { margin: 0 0 6px; font-size: 16px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* 第 3 屏：教程 / FAQ / 关于 */
.panel-info { background: #dcebfc url('/assets/hero-bg.jpg') no-repeat center / cover; }
.info-grid { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 3.5vw; align-items: start; }
.info-col h2 { margin-top: 0; }
.step-stack { display: flex; flex-direction: column; gap: 12px; }
.panel-info .qa { margin-bottom: 10px; }
.ann-list { margin-top: 8px; }
.ann-list h2 { margin-top: 22px; }
.ann-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.ann-title { font-weight: 600; margin-bottom: 4px; }

/* 下载 */
.dl-head {
  display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap;
  margin-top: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.dl-head h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: .5px; }
.dl-head p { margin: 0; font-size: 14px; }
.dl-head-actions { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.dl-panel {
  display: grid; grid-template-columns: 300px 1fr; margin-top: 30px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
}
.dl-info { padding: 28px 30px; border-right: 1px solid var(--border); }
.dl-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 2px; margin-bottom: 14px; }
.dl-ver { font-size: 34px; font-weight: 800; line-height: 1; margin-bottom: 22px; }
.dl-meta { margin: 0; }
.dl-meta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--border); font-size: 13.5px; }
.dl-meta dt { color: var(--muted); }
.dl-meta dd { margin: 0; font-weight: 500; }
.dl-sha summary { cursor: pointer; color: var(--brand); user-select: none; }
.dl-sha code { display: block; margin-top: 8px; padding: 8px 11px; border-radius: 8px; background: #f7f8fa; font-size: 11.5px; max-width: 260px; word-break: break-all; }
.dl-notes { padding: 28px 34px; }
.dl-sec { margin-bottom: 16px; }
.dl-sec h4 { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; }
.dl-sec ul, .dl-sec.plain ul { margin: 0; padding: 0; list-style: none; }
.dl-sec li { position: relative; padding: 3px 0 3px 17px; font-size: 14px; color: #3d4657; }
.dl-sec li::before { content: ''; position: absolute; left: 3px; top: 13px; width: 7px; height: 2px; background: #b8bfcc; }
.dl-more { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.dl-more:hover { color: var(--text); text-decoration: none; }
.dl-history { margin-top: 34px; }
.dl-history h2 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.dl-row {
  display: grid; grid-template-columns: 88px 100px 1fr 1fr auto; align-items: center; gap: 16px;
  padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.dl-row:last-child { border-bottom: 0; }
.dl-row-ver { font-weight: 700; }
.dl-none {
  margin: 30px 0 10px; padding: 60px 20px; text-align: center; color: var(--muted);
  background: #fff; border: 1px dashed var(--border); border-radius: 12px;
}
@media (max-width: 860px) {
  .dl-panel { grid-template-columns: 1fr; }
  .dl-info { border-right: 0; border-bottom: 1px solid var(--border); }
  .dl-row { grid-template-columns: 88px 90px 1fr auto; }
  .dl-row .dl-row-size { display: none; }
  .dl-head-actions { margin-left: 0; width: 100%; }
}

/* 社区 */
/* ---------- 社区 ---------- */
.co-hero {
  display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-top: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.co-hero-main { flex: 1 1 260px; }
.co-hero-main h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: .5px; }
.co-hero-main p { margin: 0; font-size: 14px; }
.co-hero-stats { display: flex; align-items: baseline; gap: 9px; font-size: 13px; padding-bottom: 3px; }
.co-hero-stats b { font-weight: 700; color: var(--text); }
.co-hero-stats i { font-style: normal; opacity: .45; }
.co-hero-cta { flex: 0 0 auto; padding-bottom: 3px; }
.co-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 18px; }
.co-cat {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 15px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 13.5px; font-weight: 500;
  transition: color .15s ease, border-color .15s ease;
}
.co-cat i { font-style: normal; font-size: 11.5px; color: #b3b9c6; }
.co-cat:hover { border-color: #b9bfcc; color: var(--text); text-decoration: none; }
.co-cat.active { background: #1d1d21; border-color: #1d1d21; color: #fff; }
.co-cat.active i { color: rgba(255,255,255,.55); }
.co-list { display: flex; flex-direction: column; gap: 10px; }
.co-post {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px;
  transition: box-shadow .15s ease;
}
.co-post:hover { box-shadow: 0 2px 10px rgba(20,25,40,.06); }
.co-post.pinned { border-left: 3px solid #d64545; }
.co-ava {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: #eef0f3; color: #59627a;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600;
}
.co-ava-sm { width: 32px; height: 32px; font-size: 14px; }
.co-main { flex: 1; min-width: 0; }
.co-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15.5px; font-weight: 600; }
.co-title a { color: var(--text); }
.co-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.co-badge { flex: 0 0 auto; padding: 1.5px 8px; border-radius: 5px; background: #f2f3f6; color: #79808f; font-size: 11.5px; font-weight: 500; }
.co-badge-red { background: #fdeeed; color: #d64545; }
.co-excerpt { margin: 5px 0 0; font-size: 13.5px; color: #8b93a5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-info { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.co-info i { font-style: normal; opacity: .5; }
.co-tag { padding: 1px 8px; border-radius: 4px; background: #f2f3f6; color: #59627a; font-size: 12px; }
.co-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; padding-top: 2px; }
.co-empty { text-align: center; color: var(--muted); padding: 56px 0; background: #fff; border: 1px dashed var(--border); border-radius: 12px; }

/* 帖子详情 */
.co-thread { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px 32px 22px; }
.co-thread-head h1 { margin: 10px 0 14px; font-size: 23px; font-weight: 700; line-height: 1.4; }
.co-author { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.co-author i { font-style: normal; opacity: .5; }
.co-thread-foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--border); }
.post-content { margin-top: 14px; }
.post-content p { margin: 0 0 12px; }
.co-like {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--muted); font-size: 13px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.co-like:hover { border-color: #1d1d21; color: var(--text); text-decoration: none; }
.co-like.liked { border-color: #1d1d21; color: var(--text); background: #f5f5f6; }
.co-like.xs { padding: 2px 10px; font-size: 12px; }
.co-like.ghost { border-color: transparent; background: transparent; }
.co-like.ghost:hover { border-color: transparent; color: var(--muted); }
.co-replies { margin-top: 28px; }
.co-replies h2 { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.co-reply {
  display: flex; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 15px 18px; margin-bottom: 10px;
}
.co-reply-main { flex: 1; min-width: 0; }
.co-reply-main .post-content { margin-top: 6px; font-size: 14.5px; }
.co-reply-head { display: flex; align-items: center; gap: 9px; }
.co-reply-head form { margin-left: auto; }
.co-editor { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-top: 22px; }
.co-editor h1 { font-size: 20px; margin: 0 0 14px; }
.co-editor .form { max-width: none; }

/* 登录注册 */
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 34px; max-width: 420px; margin: 30px auto; }
.auth-card h1 { margin-top: 0; }

/* 后台 */
.admin-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
.admin-side { display: flex; flex-direction: column; gap: 4px; }
.admin-side a { padding: 9px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.admin-side a.active, .admin-side a:hover { background: #eef1fe; color: var(--brand); text-decoration: none; }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat-num { font-size: 26px; font-weight: 700; color: var(--brand); }
.stat-label { color: var(--muted); font-size: 13px; }
/* 注意：.admin-actions 用在 <td> 上，绝不能改 display:flex（会破坏 table-cell，按钮溢出行框） */
.admin-actions { white-space: nowrap; }
.admin-actions .btn { margin: 2px 8px 2px 0; }
.admin-actions form.inline { display: inline-block; margin: 0; }

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 90px 1fr; }
  .mock-chips { display: none; }
  .site-nav { overflow-x: auto; }
}
@media (max-width: 720px) {
  .header-inner { gap: 10px; padding: 0 16px; }
  .site-nav { gap: 0; }
  .hero-title { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .admin-wrap { grid-template-columns: 1fr; }
  .co-side { display: none; }
  .brand-text i { display: none; }
}

/* ---------- 登录 / 注册：全屏沉浸式（与首页统一背景 + 居中白色卡片） ---------- */
.auth-body { margin: 0; }
.auth-stage { position: relative; min-height: 100vh; background: #dfe9f5 url('/assets/hero-bg.jpg') no-repeat center / cover; overflow: hidden; }
.auth-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(420px, 88vw);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.9); border-radius: 20px;
  box-shadow: 0 20px 50px rgba(30,50,100,.18);
  padding: 36px 38px 30px;
  display: flex; flex-direction: column;
}
.auth-close { position: absolute; right: 16px; top: 14px; width: 32px; height: 32px; border: none; background: transparent; border-radius: 50%; color: #9aa7bf; font-size: 18px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.auth-close:hover { color: #4c5f83; background: #eef2f9; }
.auth-title { margin: 0 0 8px; text-align: center; font-size: 30px; font-weight: 800; letter-spacing: 4px; color: #1f2937; }
.auth-sub { margin: 0 0 22px; text-align: center; color: #8b98b0; font-size: 13px; letter-spacing: 1px; }
.auth-tabs { display: flex; justify-content: center; gap: 44px; margin-bottom: 24px; }
.auth-tab { background: none; border: none; padding: 4px 2px 10px; font: inherit; font-size: 15.5px; color: #8b98b0; cursor: pointer; position: relative; }
.auth-tab.active { color: #4f6bf0; font-weight: 700; }
.auth-tab.active::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 28px; height: 3px; border-radius: 2px; background: #4f6bf0; }
.auth-pane { display: none; }
.auth-pane.active { display: block; }
.auth-pane-tip { text-align: center; color: #8b98b0; font-size: 13.5px; padding: 30px 0 36px; }
.auth-field { position: relative; display: block; margin-bottom: 16px; }
.auth-field[hidden] { display: none; }
.af-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #a3aec5; }
.af-ic svg { width: 100%; height: 100%; display: block; }
.auth-field input {
  width: 100%; padding: 13px 44px 13px 43px; border-radius: 12px;
  border: 1px solid #e3eaf5; background: #f5f7fb;
  font: inherit; font-size: 14.5px; line-height: 1.4; color: #1d2433;
  outline: none; transition: border-color .2s, background .2s;
}
.auth-field input::placeholder { color: #9aa7bf; }
.auth-field input:focus { border-color: #4f6bf0; background: #fff; }
.pwd-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: none; background: transparent; border-radius: 50%; color: #a3aec5; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.pwd-eye svg { width: 19px; height: 19px; }
.pwd-eye:hover { color: #4f6bf0; background: rgba(79,107,240,.08); }
/* 验证码字段：输入框 + 右侧按钮同一行（普通 auth-field 是 block，按钮会被挤到下一行、图标错位）
   必须放在 .auth-field / .auth-field input 之后，否则同优先级会被覆盖 */
.auth-field-code { display: flex; align-items: center; gap: 10px; }
.auth-field-code input { flex: 1 1 auto; width: auto; min-width: 0; padding-right: 14px; }
.auth-field-code[hidden] { display: none; }
/* 用户头像（头部用户条 + 社区作者位） */
.user-ava { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; vertical-align: -6px; margin-right: 2px; }
.ava-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
/* 注册后完善信息弹窗：头像选择器 */
.pf-ava-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 18px; }
.pf-ava {
  flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; cursor: pointer;
  border: 1.5px dashed #b9c5de; background: #f5f7fb; padding: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #8b98b0; font-size: 14px; line-height: 1.5; transition: border-color .15s, background .15s;
}
.pf-ava:hover { border-color: #4f6bf0; background: #eef2fd; }
.pf-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-ava img[hidden] { display: none; }
.pf-ava-tip { text-align: left; color: #8b98b0; font-size: 13.5px; line-height: 1.8; }
.pf-ava-tip small { display: block; font-size: 11.5px; color: #a9b4c9; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 20px; }
.auth-check { display: inline-flex; align-items: center; gap: 7px; color: #4c5f83; font-size: 13.5px; cursor: pointer; user-select: none; }
.auth-check input { width: 15px; height: 15px; accent-color: #4f6bf0; cursor: pointer; }
.auth-link { color: #4f6bf0; font-size: 13.5px; }
.auth-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 13px; border: 1px solid #141416; border-radius: 10px; cursor: pointer;
  background: linear-gradient(180deg, #3f3f46, #1d1d21);
  color: #fff; font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: 8px; text-indent: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  transition: filter .18s ease, transform .12s ease;
}
.auth-btn:hover { filter: brightness(1.12); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:disabled { opacity: .6; cursor: default; }
.auth-foot { margin: 20px 0 0; text-align: center; color: #5b6f95; font-size: 13.5px; }
.auth-foot a { color: #4f6bf0; font-weight: 600; }
.auth-card .alert { border-radius: 12px; margin-bottom: 16px; font-size: 13.5px; padding: 10px 14px; }
@media (max-width: 1100px) {
  .auth-card { background: rgba(255,255,255,.98); }
}

/* ---------- 弹窗登录 / 注册（遮罩 + 白卡片，复用 .auth-* 表单样式） ---------- */
.auth-pill { cursor: pointer; font-family: inherit; }
.auth-mask { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20,30,55,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.auth-mask.open { display: flex; animation: authFade .22s ease; }
.auth-modal {
  position: relative; width: min(420px, 94vw); max-height: 92vh; overflow: auto;
  background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.9); border-radius: 20px;
  box-shadow: 0 30px 70px rgba(20,35,80,.30);
  padding: 34px 36px 28px;
  animation: authPop .26s ease;
}
@keyframes authFade { from { opacity: 0; } }
@keyframes authPop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.auth-alert { background: #fdecec; color: #b93a3a; border: 1px solid #f3c8c8; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; }
.auth-alert.ok { background: #e7f6ee; color: #178a56; border-color: #bfe7d2; }

/* ---------- 管理后台 v2：AntD 风格独立壳（浅色侧栏 + 顶栏 + 白卡内容区） ---------- */
.adm-body { margin: 0; background: #f0f2f5; font-family: inherit-font, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
.adm-shell { display: flex; min-height: 100vh; }
.adm-side {
  position: fixed; left: 0; top: 0; bottom: 0; width: 232px; z-index: 10;
  background: #fff; border-right: 1px solid #e6eaf3;
  display: flex; flex-direction: column;
}
.adm-brand { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 20px; font-weight: 700; font-size: 15px; color: #1d2433; border-bottom: 1px solid #eef1f8; flex: none; }
.adm-logo { display: inline-flex; color: #1d1d21; }
.adm-side nav { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.adm-side nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px;
  color: #3d4a63; font-size: 14px; text-decoration: none; transition: background .15s, color .15s;
}
.adm-side nav a:hover { background: #f2f5fb; color: #1d2433; }
.adm-side nav a.active { background: linear-gradient(180deg, #3f3f46, #1d1d21); color: #fff; box-shadow: 0 4px 12px rgba(20,22,30,.25); }
.adm-ic { font-size: 16px; width: 20px; text-align: center; }
.adm-side-foot { padding: 14px 20px; border-top: 1px solid #eef1f8; display: flex; flex-direction: column; gap: 8px; }
.adm-side-foot a { color: #4c5f83; font-size: 13.5px; }
.adm-side-foot a:hover { color: #1d1d21; }
.adm-main { flex: 1; margin-left: 232px; min-width: 0; display: flex; flex-direction: column; }
.adm-top {
  height: 64px; background: #fff; border-bottom: 1px solid #e6eaf3;
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  position: sticky; top: 0; z-index: 9;
}
.adm-top h1 { margin: 0; font-size: 18px; font-weight: 700; color: #1d2433; }
.adm-userchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #f2f5fb; color: #3d4a63; font-size: 13.5px; }
.adm-content { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.adm-card { background: #fff; border: 1px solid #e9edf5; border-radius: 14px; box-shadow: 0 2px 10px rgba(30,50,100,.05); overflow: hidden; }
.adm-card-head { padding: 16px 22px 0; }
.adm-card-head h2 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; color: #1d2433; }
.adm-card-body { padding: 16px 22px 20px; }
.adm-card-actions { margin-top: 14px; display: flex; gap: 10px; }
.adm-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adm-stat {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  background: #fff; border: 1px solid #e9edf5; border-radius: 14px; box-shadow: 0 2px 10px rgba(30,50,100,.05);
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.adm-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(30,50,100,.10); }
.adm-stat-ic { width: 48px; height: 48px; border-radius: 13px; background: #f2f5fb; display: inline-flex; align-items: center; justify-content: center; font-size: 23px; flex: none; }
.adm-stat-num { font-size: 26px; font-weight: 800; color: #1d2433; line-height: 1.15; }
.adm-stat-label { font-size: 13px; color: #7d8aa5; }
.adm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.adm-latest { display: flex; flex-direction: column; gap: 8px; }
.adm-ver { font-size: 28px; font-weight: 800; color: #1d2433; }
.adm-quick { display: flex; flex-wrap: wrap; gap: 10px; }
.adm-form { max-width: 720px; }
.adm-form label { display: block; margin-bottom: 14px; color: #3d4a63; font-size: 13.5px; }
.adm-form .btn { align-self: flex-start; min-width: 110px; margin-top: 4px; }
.adm-help { display: block; margin-top: 5px; font-weight: 400; font-size: 12px; line-height: 1.5; color: #98a3b8; }
.adm-form input, .adm-form select, .adm-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 13px; border-radius: 10px;
  border: 1px solid #d9e0ee; background: #f8fafd; font: inherit; font-size: 14px; color: #1d2433;
  outline: none; transition: border-color .15s, background .15s; box-sizing: border-box;
}
.adm-form input:focus, .adm-form select:focus, .adm-form textarea:focus { border-color: #1d1d21; background: #fff; }
.adm-form-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
/* 按钮行：按钮保持自身宽度，不进网格（网格会把按钮拉伸成整列宽） */
.adm-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-form-actions .btn { margin-top: 0; }
/* 输入框 + 按钮同行：按钮底对齐输入框、宽度自适应 */
.adm-form-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.adm-form-inline label { margin-bottom: 0; }
.adm-form-inline .btn { align-self: end; margin-top: 0; padding-top: 12px; padding-bottom: 12px; }
/* 后台表格：AntD 风（灰表头 + 行悬浮） */
.adm-card .table { margin: 0; }
.adm-card .table thead th { background: #fafbfd; color: #7d8aa5; font-size: 12.5px; }
.adm-card .table tbody tr:hover td { background: #f7f9fd; }
@media (max-width: 900px) {
  .adm-side { display: none; }
  .adm-main { margin-left: 0; }
  .adm-stat-grid, .adm-grid-2 { grid-template-columns: 1fr 1fr; }
  .adm-form-row, .adm-form-inline { grid-template-columns: 1fr; }
}

/* ---------- 更新日志（原创时间轴） ---------- */
.cl-hero { text-align: center; padding: 52px 20px 4px; }
.cl-chip { display: inline-block; padding: 3px 14px; border-radius: 999px; background: #eef1fe; color: var(--brand); font-size: 11.5px; font-weight: 700; letter-spacing: 3px; }
.cl-hero h1 { margin: 14px 0 8px; font-size: 38px; font-weight: 900; letter-spacing: 1px; }
.cl-hero p { margin: 0; font-size: 14.5px; }
.cl-timeline { position: relative; max-width: 820px; margin: 34px auto 30px; padding-left: 56px; }
.cl-timeline::before { content: ''; position: absolute; left: 17px; top: 4px; bottom: 4px; width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, #6d5df6 0%, #4f8bff 34%, rgba(79,139,255,.28) 72%, rgba(228,231,236,.9) 100%); }
.cl-year { margin: 6px 0 20px; }
.cl-year span { display: inline-block; padding: 3px 15px; border-radius: 999px; background: #eef1fe; color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: 2px; }
.cl-item { position: relative; margin-bottom: 26px; }
.cl-node { position: absolute; left: -45px; top: 22px; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 3px solid #b9c6f2; }
.cl-item.latest .cl-node { width: 11px; height: 11px; left: -46px; top: 21px; border-color: #6d5df6; box-shadow: 0 0 0 5px rgba(109,93,246,.14); }
.cl-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px 18px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: box-shadow .2s ease, transform .2s ease; }
.cl-card:hover { box-shadow: 0 12px 32px rgba(23,35,61,.09); transform: translateY(-2px); }
.cl-item.latest .cl-card { border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #6d5df6, #4f8bff) border-box;
  box-shadow: 0 14px 36px rgba(79,107,240,.13); }
.cl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-ver { font-family: Consolas, monospace; font-size: 23px; font-weight: 800; line-height: 1;
  background: linear-gradient(100deg, #1d2433 20%, #4f6bf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cl-new { padding: 3px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; letter-spacing: 1px;
  background: linear-gradient(120deg, #6d5df6, #4f8bff); }
.cl-meta { margin-left: auto; }
.cl-body { margin-top: 4px; }
.cl-sec { margin-top: 15px; }
.cl-tag { display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.cl-tag-feat { background: #eef1fe; color: #3d55c8; }
.cl-tag-imp { background: #e7f6f1; color: #0f8a67; }
.cl-tag-fix { background: #fdeeed; color: #d64545; }
.cl-tag-misc { background: #f3f4f6; color: #6b7280; }
.cl-items { margin: 8px 0 0; padding: 0; list-style: none; }
.cl-items li { position: relative; padding: 3.5px 0 3.5px 19px; font-size: 14px; color: #3d4657; }
.cl-items li::before { content: ''; position: absolute; left: 3px; top: 13px; width: 8px; height: 2.5px; border-radius: 2px; background: #c3cdf5; }
.cl-none { margin: 10px 0 0; }
.cl-sha { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 10px; }
.cl-sha summary { cursor: pointer; font-size: 12.5px; color: var(--muted); user-select: none; }
.cl-sha summary:hover { color: var(--brand); }
.cl-sha code { display: block; margin-top: 8px; padding: 9px 13px; border-radius: 9px; background: #f7f8fa; }
@media (max-width: 640px) {
  .cl-timeline { padding-left: 40px; }
  .cl-node { left: -29px; }
  .cl-item.latest .cl-node { left: -30px; }
  .cl-meta { margin-left: 0; width: 100%; order: 5; }
}

/* ===== 后台用户管理：列表头像 / 编辑页 / 危险按钮 ===== */
.adm-user-cell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.adm-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: #eef0f3; }
.adm-ava-txt { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: #8a8f98; font-size: 14px; }
.btn-danger { color: #b3261e; border-color: #e6b8b4; }
.btn-danger:hover { background: #fbeeed; border-color: #b3261e; color: #b3261e; }

/* ===== 社区图文发帖 + 表情包 ===== */
.post-imgs { display: grid; gap: 8px; margin: 14px 0 4px; }
.post-imgs.n1 { grid-template-columns: minmax(0, 420px); }
.post-imgs.n2, .post-imgs.n4 { grid-template-columns: repeat(2, 1fr); }
.post-imgs.n3, .post-imgs.n5, .post-imgs.n6, .post-imgs.n7, .post-imgs.n8, .post-imgs.n9 { grid-template-columns: repeat(3, 1fr); }
.post-imgs a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #f5f6f8; }
.post-imgs img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .2s ease; }
.post-imgs a:hover img { transform: scale(1.03); }
.post-imgs.n1 img { aspect-ratio: auto; max-height: 480px; object-fit: contain; }
img.sticker { display: inline-block; height: 64px; width: auto; vertical-align: middle; margin: 2px 4px; border-radius: 6px; }
.co-imgtag { color: #7d8aa5; font-size: 12.5px; background: #f1f3f7; border-radius: 6px; padding: 1px 8px; }
.sti-wrap { position: relative; margin: -6px 0 12px; }
.sti-btn { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 5px 12px; font-size: 13px; cursor: pointer; color: #3d4a63; }
.sti-btn:hover { border-color: #b9c4da; background: #f7f9fd; }
.sti-panel { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(420px, calc(100vw - 48px)); max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(23, 35, 61, .12); padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.sti-item { border: 1px solid transparent; background: #fff; border-radius: 8px; padding: 4px; cursor: pointer; }
.sti-item:hover { border-color: var(--brand, #4f6bf0); background: #f5f7ff; }
.sti-item img { display: block; width: 100%; height: 56px; object-fit: contain; }
.np-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.np-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
/* 后台表情包网格 */
.sti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.sti-cell { border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sti-cell img { width: 72px; height: 72px; object-fit: contain; }
.sti-name { font-size: 12px; color: #7d8aa5; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 富文本编辑器 ===== */
.rich { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.rich-tb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--border); background: #fafbfc; border-radius: 12px 12px 0 0; }
.rich-tb button { border: none; background: transparent; border-radius: 6px; padding: 5px 9px; font-size: 13px; cursor: pointer; color: #3d4a63; font-family: inherit; line-height: 1.4; }
.rich-tb button:hover { background: #eceff4; }
.rich-sep { width: 1px; height: 16px; background: var(--border); margin: 0 5px; }
.rich-area { min-height: 220px; padding: 14px 16px 6px; font-size: 15px; line-height: 1.75; outline: none; color: #26324b; overflow-wrap: anywhere; }
.rich-sm .rich-area { min-height: 90px; font-size: 14.5px; }
.rich-area:empty:before { content: attr(data-placeholder); color: #9aa3b2; pointer-events: none; }
.rich .sti-wrap { position: relative; margin: 0; padding: 0 10px 10px; }
.rich .sti-panel { top: calc(100% + 6px); }
/* 富文本正文排版（编辑器产出的 HTML 直出后） */
.post-content a { color: #3556c7; text-decoration: underline; }
.post-content b, .post-content strong { font-weight: 700; }
.post-content blockquote { margin: 10px 0 12px; padding: 8px 14px; border-left: 3px solid #c8d0e0; background: #f6f8fb; border-radius: 0 8px 8px 0; color: #55617a; }
.post-content ul, .post-content ol { margin: 8px 0 12px; padding-left: 24px; }
.post-content li { margin: 3px 0; }
.post-content h3, .post-content h4 { margin: 14px 0 8px; }
.post-content code { background: #f1f3f7; border-radius: 4px; padding: 1px 6px; font-size: 13.5px; }
.post-content pre { background: #f6f8fb; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; overflow-x: auto; }
.sti-panel[hidden] { display: none; }

/* ---------- 技能广场 ---------- */
.sk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 0 16px; }
.sk-search { display: flex; gap: 8px; flex: 1 1 320px; max-width: 480px; }
.sk-search input { flex: 1; padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; }
.sk-sorts { margin: 0; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.sk-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.sk-card:hover { border-color: #b9c6ea; box-shadow: 0 4px 16px rgba(79,107,240,.08); text-decoration: none; }
.sk-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sk-name { font-weight: 700; font-size: 15px; }
.sk-ver { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: #eef1fb; color: #4f6bf0; white-space: nowrap; }
.sk-ver.mine { background: #e7f6ee; color: #1d8a4e; }
.sk-ver.hidden { background: #fdecec; color: #c0392b; }
.sk-summary { margin: 0; font-size: 13.5px; color: #4b5568; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sk-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sk-meta i { font-style: normal; color: #c3c9d4; }
.sk-detail { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px 32px; }
.sk-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.sk-detail-head h1 { margin: 0 0 8px; font-size: 24px; }
.sk-detail-head h1 small { font-size: 15px; font-weight: 500; }
.sk-detail-actions { display: flex; align-items: center; gap: 10px; }
.sk-detail-summary { font-size: 15px; color: #37415a; background: #f6f8fc; border-left: 3px solid #b9c6ea; padding: 10px 14px; border-radius: 0 8px 8px 0; }
.sk-install { margin: 14px 0 4px; padding: 10px 14px; background: #f2faf5; border: 1px dashed #bfe3cd; border-radius: 8px; }
.sk-md { margin-top: 10px; }
.sk-md h3, .sk-md h4, .sk-md h5, .sk-md h6 { margin: 18px 0 8px; line-height: 1.4; }
.sk-upload { max-width: 720px; }
.sk-upload .alert-ok a { color: #1d8a4e; font-weight: 600; }
.sk-help { margin-top: 18px; }
.sk-help pre { background: #f6f8fb; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; overflow-x: auto; margin-top: 10px; }
.btn-danger { color: #c0392b; border-color: #eac6c0; }
.btn-danger:hover { background: #fdf1ef; }

/* ---------- 多平台（Windows / macOS）下载（2026-10-16） ---------- */
.dl-plat {
  display: inline-block; padding: 3px 10px; margin-right: 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0; vertical-align: 1px;
}
.dl-plat-win { background: #eef1fe; color: #4f6bf0; }
.dl-plat-mac { background: #fdf0e6; color: #b06a2c; }
.dl-mac-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 4px; }
.dl-sha-row { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; }
.dl-sha-row code { word-break: break-all; }
.dl-panel-soon .dl-meta { margin: 0; }
