/* CodeFlow · 页面层 */

/* ---------- 仓库页头 ---------- */
.repo-header { background: var(--bg-soft); border-bottom: 1px solid var(--border-soft); }
.repo-header-inner { max-width: 1280px; margin: 0 auto; padding: 20px 24px 0; }
.repo-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.repo-title { font-size: 20px; font-weight: 400; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.repo-title .ic { color: var(--muted); }
.repo-title a { color: var(--acc); }
.repo-title strong a { font-weight: 600; }
.repo-title .slash { color: var(--faint); }
.repo-fork-of { font-size: 12.5px; color: var(--muted); margin: 4px 0 0 26px; }
.repo-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { color: var(--text); padding: 0 12px; height: 44px; font-size: 14px; display: inline-flex; gap: 8px; align-items: center;
  border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a .ic { color: var(--muted); }
.tabs a:hover { text-decoration: none; border-bottom-color: var(--border); }
.tabs a.active { font-weight: 600; border-bottom-color: var(--acc); }
.tabs a.active .ic { color: var(--text); }
.subtabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-soft); margin: 0 0 16px; }
.subtabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.subtabs a:hover { color: var(--text); text-decoration: none; }
.subtabs a.active { color: var(--text); font-weight: 600; border-bottom-color: var(--acc); }

.code-bar { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.latest-commit { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--acc-soft);
  border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.latest-commit .msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* clone 弹层 */
.clone-pop { width: 380px; padding: 14px; }
.clone-pop .tabs-mini { display: flex; gap: 14px; border-bottom: 1px solid var(--border-soft); margin-bottom: 12px; }
.clone-pop .tabs-mini span { padding: 4px 0 8px; font-weight: 600; border-bottom: 2px solid var(--acc); font-size: 13px; }

/* 侧栏 */
.side-sec { padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.side-sec:first-child { padding-top: 0; }
.side-sec:last-child { border-bottom: none; }
.side-sec h4 { margin: 0 0 10px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.side-sec h4 a { color: var(--text); } .side-sec h4 a:hover { color: var(--acc); text-decoration: none; }
.side-meta { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 13.5px; }
.side-meta > * { display: flex; align-items: center; gap: 8px; }
.side-meta a { color: var(--muted); } .side-meta a:hover { color: var(--acc); text-decoration: none; }

.breadcrumb { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-size: 16px; }
.breadcrumb a { font-weight: 600; }
.breadcrumb .sep { color: var(--faint); margin: 0 2px; }

/* Markdown */
.md { font-size: 15px; line-height: 1.65; word-wrap: break-word; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md h1, .md h2 { border-bottom: 1px solid var(--border-soft); padding-bottom: .3em; }
.md h1 { font-size: 1.9em; } .md h2 { font-size: 1.45em; } .md h3 { font-size: 1.2em; }
.md h1, .md h2, .md h3, .md h4 { margin: 24px 0 14px; font-weight: 600; }
.md code { background: rgba(175,184,193,.2); border-radius: 6px; padding: .15em .4em; font: .86em var(--mono); }
.md pre { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 16px; overflow: auto; line-height: 1.45; }
.md pre code { background: transparent; padding: 0; font-size: 13px; }
.md blockquote { border-left: 4px solid var(--border); margin: 0 0 16px; padding: 0 1em; color: var(--muted); }
.md table { border-collapse: collapse; display: block; overflow: auto; }
.md th, .md td { border: 1px solid var(--border); padding: 6px 13px; }
.md tr:nth-child(2n) { background: var(--bg-soft); }
.md img { max-width: 100%; border-radius: 4px; }
.md ul, .md ol { padding-left: 2em; }
.md li + li { margin-top: .25em; }
.md hr { border-top: 3px solid var(--border-soft); }
.md input[type=checkbox] { margin-right: 6px; vertical-align: -2px; }

/* ---------- 列表 (Issue/PR) ---------- */
.list-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.list-toolbar .search { flex: 1; min-width: 220px; position: relative; }
.list-toolbar .search input { padding-left: 32px; }
.list-toolbar .search .ic { position: absolute; left: 10px; top: 8px; color: var(--faint); }
.issue-row { display: flex; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border-soft); align-items: flex-start; }
.issue-row:first-child { border-top: none; }
.issue-row:hover { background: #fafaf8; }
.issue-row .st { padding-top: 2px; }
.issue-row .st.open { color: var(--green); } .issue-row .st.closed { color: var(--purple); } .issue-row .st.merged { color: var(--purple); }
.issue-row .st.closed-pr { color: var(--danger); }
.issue-row .main { flex: 1; min-width: 0; }
.issue-row .title { font-weight: 600; font-size: 15px; color: var(--text); margin-right: 6px; }
.issue-row .title:hover { color: var(--acc); text-decoration: none; }
.issue-row .meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.issue-row .right { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 12px; padding-top: 2px; }
.issue-row .right a { color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }

/* ---------- 讨论时间线 ---------- */
.issue-title { font-size: 28px; font-weight: 400; margin: 0 0 8px; }
.issue-title .num { color: var(--faint); font-weight: 300; }
.issue-sub { display: flex; gap: 10px; align-items: center; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); margin-bottom: 20px; flex-wrap: wrap; }
.timeline { position: relative; }
.tl-item { display: flex; gap: 14px; margin-bottom: 18px; position: relative; }
.tl-item > .avatar { margin-top: 2px; }
.comment-box { flex: 1; min-width: 0; border: 1px solid var(--border-soft); border-radius: var(--radius); background: #fff; }
.comment-box.self { border-color: rgba(59,91,219,.35); }
.comment-head { color: var(--muted); font-size: 13.5px; padding: 8px 16px; background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft); border-radius: var(--radius) var(--radius) 0 0; display: flex; gap: 8px; align-items: center; }
.comment-box.self .comment-head { background: var(--acc-soft); border-bottom-color: rgba(59,91,219,.2); }
.comment-head strong a { color: var(--text); }
.comment-body { padding: 14px 16px; }
.tl-event { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; padding: 4px 0 18px 54px; }
.side-meta-box .item { padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border-soft); }
.side-meta-box .item:last-child { border-bottom: none; }
.side-meta-box .item-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px;
  font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.side-meta-box .item-head button { background: none; border: none; color: var(--muted); cursor: pointer; padding: 2px; }
.side-meta-box .item-head button:hover { color: var(--acc); }

/* 编辑器 (写/预览) */
.editor { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.editor:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-ring); }
.editor-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-soft); background: var(--bg-soft); border-radius: var(--radius) var(--radius) 0 0; padding: 6px 6px 0; }
.editor-tabs button { background: none; border: 1px solid transparent; border-bottom: none; padding: 6px 14px; font: 13.5px var(--sans);
  color: var(--muted); cursor: pointer; border-radius: 6px 6px 0 0; margin-bottom: -1px; }
.editor-tabs button.active { background: #fff; border-color: var(--border-soft); color: var(--text); }
.editor textarea { border: none; border-radius: 0; box-shadow: none !important; min-height: 140px; padding: 10px 12px; }
.editor .preview { padding: 12px 14px; min-height: 140px; }
.editor-foot { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px;
  border-top: 1px dashed var(--border-soft); font-size: 12px; color: var(--muted); gap: 10px; flex-wrap: wrap; }
.editor-foot label { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.editor-foot label:hover { color: var(--acc); }
.editor.drag { border-color: var(--acc); background: var(--acc-soft); }

/* 合并框 */
.merge-box { display: flex; gap: 14px; align-items: flex-start; }
.merge-box .icon-col { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.merge-box .icon-col.ok { background: var(--green); } .merge-box .icon-col.merged { background: var(--purple); }
.merge-box .icon-col.closed { background: var(--danger); }

/* ---------- 流水线 ---------- */
.pipe-graph { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: 20px; background: var(--bg-soft); }
.pipe-col { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.pipe-col-title { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.pipe-link { width: 32px; align-self: center; height: 2px; background: var(--border); margin-top: 22px; flex: none; }
.stage-chip { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 9px 12px; cursor: pointer; font: 13.5px var(--sans); text-align: left; color: var(--text); box-shadow: var(--shadow-sm); }
.stage-chip:hover { border-color: var(--border); }
.stage-chip.active { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-ring); }
.stage-chip .nm { flex: 1; } .stage-chip .tm { font-size: 12px; color: var(--faint); }
.log-panel { background: #f7f7f4; font: 12.5px/1.65 var(--mono); padding: 12px 0; overflow: auto; max-height: 560px; min-height: 240px;
  counter-reset: ln; color: #24292f; }
.log-panel .ll { padding: 0 16px 0 64px; white-space: pre-wrap; word-break: break-all; position: relative; }
.log-panel .ll::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 48px; text-align: right; color: var(--faint); user-select: none; }
.log-panel .ll:hover { background: #ececE7; }
.log-panel .ll.sys { color: var(--acc); }
.log-panel .ll.err { color: var(--danger); }
.log-panel .ll.ok { color: var(--green); }

/* ---------- 首页 ---------- */
.hero { text-align: center; padding: 88px 20px 56px; background: linear-gradient(180deg, #f1f8f6 0%, #fff 100%); border-bottom: 1px solid var(--border-soft); }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--acc); background: var(--acc-soft);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 22px; font-weight: 500; }
.hero h1 { font-size: 48px; margin: 0 0 18px; font-weight: 700; letter-spacing: -1.2px; line-height: 1.15; }
.hero h1 em { font-style: normal; color: var(--acc); }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 32px; }
.hero .btn { height: 42px; padding: 0 22px; font-size: 15px; }
.hero-code { max-width: 600px; margin: 44px auto 0; text-align: left; box-shadow: var(--shadow); border-radius: 10px; overflow: hidden; border: 1px solid var(--border-soft); }
.hero-code .bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--border-soft); align-items: center; }
.hero-code .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d6cf; display: inline-block; }
.hero-code .bar span { margin-left: 8px; font: 12px var(--mono); color: var(--muted); }
.hero-code .code-block { border: none; border-radius: 0; background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin: 48px 0; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); margin-bottom: 14px; }
.feature-grid h3 { margin: 0 0 6px; font-size: 16px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 14px; }

/* 首页 (登录后) */
.dash { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 1100px) { .dash { grid-template-columns: 1fr; } }
.dash-side h4 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; font-size: 14px; }
.repo-mini { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: 14px; }
.repo-mini a { color: var(--text); font-weight: 500; }
.repo-mini a:hover { color: var(--acc); }
.announce { background: var(--warn-soft); border-bottom: 1px solid rgba(154,103,0,.18); color: #6d4c00; font-size: 13.5px; }
.announce > div { max-width: 1280px; margin: 0 auto; padding: 9px 24px; display: flex; gap: 8px; align-items: center; }

/* 仓库卡片 */
.repo-card { display: flex; flex-direction: column; gap: 8px; }
.repo-card .name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.repo-card .desc { color: var(--muted); font-size: 13.5px; min-height: 20px; margin: 0; }
.repo-card .meta { display: flex; gap: 16px; color: var(--muted); font-size: 12.5px; align-items: center; flex-wrap: wrap; }
.repo-card .meta span { display: inline-flex; gap: 4px; align-items: center; }
.repo-list-item { padding: 22px 0; border-bottom: 1px solid var(--border-soft); }
.repo-list-item:first-child { padding-top: 4px; }

/* 个人主页 */
.profile-name { font-size: 24px; font-weight: 600; margin: 16px 0 0; line-height: 1.2; }
.profile-login { font-size: 19px; color: var(--muted); font-weight: 300; }
.profile-bio { margin: 14px 0; font-size: 15px; }

/* 登录 */
/* 登录 / 注册 / 重置密码: 内容在视口中垂直居中, 白色卡片 */
.auth-page { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-wrap { width: 100%; max-width: 400px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.auth-logo .brand-mark { width: 44px; height: 44px; border-radius: 11px; }
.auth-title { text-align: center; font-size: 22px; font-weight: 600; margin: 0 0 24px; letter-spacing: -.2px; }
.auth-title:has(+ .auth-sub) { margin-bottom: 0; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 24px; }
.auth-card { background: var(--card, #fff); border: 1px solid var(--border-soft); border-radius: 10px; padding: 28px; }
.auth-card label.field, .auth-card .field { display: block; margin-bottom: 18px; }
.auth-card .field > span, .auth-pw-head label { font-weight: 600; font-size: 13.5px; }
.auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password], .auth-card .pw-wrap input { min-height: 40px; padding: 8px 12px; font-size: 14.5px; }
.auth-pw-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.auth-pw-head a { color: var(--muted); font-weight: 400; }
.auth-pw-head a:hover { color: var(--acc-2, var(--acc)); }
.auth-submit { width: 100%; justify-content: center; min-height: 42px; margin-top: 6px; font-size: 15px; font-weight: 600; }
.auth-card .err-box { margin-bottom: 16px; }
.auth-wrap > div > .err-box { margin-bottom: 12px; }
.auth-alt { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-alt a { font-weight: 600; margin-left: 4px; }
@media (max-width: 480px) {
  .auth-page { align-items: flex-start; padding-top: 32px; }
  .auth-card { padding: 22px 18px; }
}

/* 设置布局 */
.settings-nav a { display: flex; gap: 10px; align-items: center; padding: 7px 10px; color: var(--text); border-radius: var(--radius-sm); position: relative; }
.settings-nav a .ic { color: var(--muted); }
.settings-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.settings-nav a.active { background: var(--bg-muted); font-weight: 600; }
.settings-nav a.active::before { content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: var(--acc); }
.settings-nav .grp { font-size: 12px; font-weight: 600; color: var(--muted); padding: 14px 10px 6px; }
.settings-h { font-size: 22px; font-weight: 400; padding-bottom: 8px; margin: 0 0 16px; border-bottom: 1px solid var(--border-soft); }
.settings-h.sub { font-size: 18px; margin-top: 36px; }
.danger-zone { border: 1px solid rgba(207,34,46,.35); border-radius: var(--radius); }
.danger-zone .row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--border-soft); }
.danger-zone .row:first-child { border-top: none; }

/* Release */
.release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border-soft); }
@media (max-width: 760px) { .release { grid-template-columns: 1fr; } }
.release .left { color: var(--muted); font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; }
.release h2 { margin: 0 0 6px; font-size: 24px; }
.assets { margin-top: 16px; }
.asset-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border-soft); font-size: 14px; }
.asset-row:first-child { border-top: none; }
.asset-row .nm { flex: 1; font-weight: 600; }

/* 管理后台 */
.admin-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 61px); }
.admin-side { background: var(--bg-soft); border-right: 1px solid var(--border-soft); padding: 20px 14px; }
.admin-side .title { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .4px; padding: 0 10px 10px; text-transform: uppercase; }
.admin-main { padding: 28px 36px 64px; min-width: 0; }
@media (max-width: 860px) { .admin-layout { grid-template-columns: 1fr; } .admin-main { padding: 20px; } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.stat { border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.stat .k { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 28px; font-weight: 600; margin-top: 6px; letter-spacing: -.5px; }
.stat .s { color: var(--faint); font-size: 12px; margin-top: 2px; }
.bars { display: flex; gap: 10px; align-items: flex-end; height: 140px; padding: 10px 4px 0; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar .stack { width: 100%; max-width: 38px; display: flex; flex-direction: column-reverse; gap: 2px; }
.bars .bar .stack i { display: block; border-radius: 3px; min-height: 0; }
.bars .bar .lbl { font-size: 11.5px; color: var(--faint); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.storage-type { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 18px; }
.storage-type button { text-align: left; padding: 12px 14px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius); cursor: pointer; font: 14px var(--sans); }
.storage-type button:hover { border-color: var(--acc); }
.storage-type button.active { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-ring); background: var(--acc-soft); }
.storage-type button b { display: block; margin-bottom: 2px; }
.storage-type button span { font-size: 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-all; }
.progress { height: 8px; border-radius: 8px; background: var(--bg-muted); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); }

/* ---------- 弹窗 / Toast / 页脚 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(31,35,40,.45); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px; animation: fade .12s; overflow: auto; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .15s; }
.modal.wide { max-width: 680px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
.modal-body { padding: 20px; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--border-soft); display: flex; justify-content: flex-end; gap: 8px; background: var(--bg-soft); border-radius: 0 0 12px 12px; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #1c1d1f; color: #fff; border-radius: var(--radius); padding: 10px 16px; min-width: 220px; max-width: 460px;
  box-shadow: var(--shadow); animation: slideup .2s ease; display: flex; justify-content: space-between; gap: 14px; align-items: center; font-size: 14px; }
.toast .t-ic { color: #4ac26b; display: flex; } .toast.error .t-ic { color: #ff8182; }
.toast .x { cursor: pointer; color: #8c959f; display: flex; }
@keyframes slideup { from { transform: translateY(10px); opacity: 0; } }
.footer { border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 12.5px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 28px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.footer-inner .brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.footer-links { display: flex; gap: 18px; } .footer-links a { color: var(--muted); }

/* ---------- 杂项 ---------- */
.empty { text-align: center; color: var(--muted); padding: 56px 20px; }
.empty .big { color: var(--faint); margin-bottom: 12px; display: flex; justify-content: center; }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 18px; }
.blankslate { border: 1px solid var(--border-soft); border-radius: var(--radius); }
.spin { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border-soft); border-top-color: var(--acc); border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex.wrap { flex-wrap: wrap; } .flex.gap4 { gap: 4px; } .flex.gap12 { gap: 12px; } .flex.gap16 { gap: 16px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.pointer { cursor: pointer; }
.select-ref { max-width: 240px; font-weight: 600; }
.lang-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; gap: 2px; margin-bottom: 10px; }
.lang-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.search-hit { border: 1px solid var(--border-soft); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.search-hit mark { background: #fff8c5; color: inherit; padding: 0 1px; border-radius: 2px; }
@media (max-width: 760px) {
  .topnav, .top-search { display: none; }
  .hero h1 { font-size: 32px; }
  .wrap { padding: 18px 16px 48px; }
}
