NewHome/assets/css/common.css
2026-09-14 22:06:21 +08:00

1021 lines
60 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* common.css —— 全站统一样式与组件(含昼/夜主题、响应式) */
/* ============ 主题变量 ============ */
:root, [data-theme="light"] {
--bg: #f2f5fa;
--bg-2: #e8edf5;
--card: #ffffff;
--line: #dde3ec;
--line-2: #c9d2e0;
--text: #1f2d3d;
--text-2: #3c4b61;
--text-3: #71809a;
--brand: #2563eb;
--brand-2: #1f3a5f;
--brand-ink: #ffffff;
--accent-soft: rgba(37, 99, 235, 0.10);
--hover-bg: rgba(37, 99, 235, 0.08);
--danger: #dc2626;
--ok: #16a34a;
--warn: #d97706;
--shadow: 0 4px 16px rgba(15, 30, 55, 0.08);
--shadow-sm: 0 1px 4px rgba(15, 30, 55, 0.06);
--code-bg: #f4f6fa;
--code-text: #1f2d3d;
--tooltip-bg: #1f2d3d;
--tooltip-text: #f2f5fa;
--input-bg: #ffffff;
--brand-grad: linear-gradient(135deg, #1f3a5f 0%, #2563eb 100%);
--board-tint: linear-gradient(160deg, rgba(37, 99, 235, 0.10), rgba(31, 58, 95, 0.04));
color-scheme: light;
}
[data-theme="dark"] {
--bg: #0f1520;
--bg-2: #161e2c;
--card: #1a2332;
--line: #2a3648;
--line-2: #3a4a60;
--text: #e7edf5;
--text-2: #c2ccda;
--text-3: #8fa0b6;
--brand: #60a5fa;
--brand-2: #93c5fd;
--brand-ink: #0b1220;
--accent-soft: rgba(96, 165, 250, 0.14);
--hover-bg: rgba(96, 165, 250, 0.12);
--danger: #f87171;
--ok: #4ade80;
--warn: #fbbf24;
--shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
--shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
--code-bg: #111927;
--code-text: #dbe4f0;
--tooltip-bg: #e7edf5;
--tooltip-text: #1a2332;
--input-bg: #131c2a;
--brand-grad: linear-gradient(135deg, #12233d 0%, #1d4ed8 100%);
--board-tint: linear-gradient(160deg, rgba(96, 165, 250, 0.13), rgba(18, 35, 61, 0.10));
color-scheme: dark;
}
/* ============ 基础 ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
font-family: -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
background: var(--bg);
color: var(--text);
font-size: 15px;
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
transition: background .25s ease, color .25s ease;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main.page-main { flex: 1 0 auto; padding-bottom: 24px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
button { font-family: inherit; }
/* 提示小字 */
.tip { font-size: 13px; color: var(--text-3); }
.tip code { background: var(--code-bg); color: var(--code-text); border-radius: 4px; padding: 1px 6px; }
.err-msg, .ok-msg { border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 12px 0; }
.err-msg { background: rgba(220, 38, 38, .10); color: var(--danger); }
.ok-msg { background: rgba(22, 163, 74, .12); color: var(--ok); }
.seg-check { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--text-2); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); cursor: pointer; user-select: none; }
.seg-check:hover { border-color: var(--brand); }
.seg-check input { margin: 0; }
/* ============ 按钮 ============ */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
border: 1px solid var(--line-2); background: var(--card); color: var(--text);
padding: 8px 16px; border-radius: 8px; font-size: 14px; cursor: pointer;
transition: all .15s ease; line-height: 1.4; vertical-align: middle;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); color: var(--brand-ink); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: rgba(220, 38, 38, .4); }
.btn-danger:hover { background: rgba(220, 38, 38, .1); border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 4px 10px; font-size: 13px; border-radius: 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
/* ============ 表单 ============ */
label.fl { display: block; font-size: 13px; color: var(--text-3); margin: 10px 0 4px; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=file],
select, textarea {
width: 100%; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px;
background: var(--input-bg); color: var(--text); font-size: 14px; font-family: inherit;
transition: border .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
input[type=checkbox] { accent-color: var(--brand); }
select { width: auto; min-width: 150px; }
.field-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
/* ============ 主题浮动按钮 ============ */
.theme-fab {
position: fixed; right: 18px; bottom: 22px; width: 46px; height: 46px; z-index: 1000;
border-radius: 50%; border: 1px solid var(--line-2); background: var(--card);
color: var(--text); font-size: 20px; cursor: pointer;
box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
transition: transform .2s ease, background .2s ease;
}
.theme-fab:hover { transform: scale(1.08); }
/* 返回顶部按钮:与昼夜按钮并排(靠右两枚圆钮,仅滚动后出现) */
.theme-fab.to-top {
right: 76px; opacity: 0; visibility: hidden;
transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.theme-fab.to-top.show { opacity: 1; visibility: visible; }
@media (max-width: 520px) {
.theme-fab.to-top { right: 74px; }
}
/* ============ 通用头部(品牌条 / 顶部条) ============ */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .logo {
width: 52px; height: 52px; border-radius: 12px; object-fit: contain;
background: var(--card); padding: 4px; box-shadow: var(--shadow-sm);
}
.brand .site-name { font-size: 21px; font-weight: 700; }
.brand .site-slogan { font-size: 13px; color: var(--text-3); }
.brand-sm .logo { width: 38px; height: 38px; border-radius: 9px; }
.brand-sm .site-name { font-size: 17px; }
/* ---------- 首页 Hero 展示栏 ---------- */
.hero {
background: var(--brand-grad); color: #fff;
padding: 26px 0 18px; min-height: 20vh; box-shadow: var(--shadow);
}
.hero .brand .site-name, .hero .brand .site-slogan { color: #fff; }
.hero .brand .logo { background: rgba(255, 255, 255, .95); }
.hero-inner { display: flex; flex-direction: column; gap: 14px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: rgba(255, 255, 255, .9); text-align: right; }
.hero-meta .val { font-variant-numeric: tabular-nums; font-weight: 600; color: #fff; }
.weather-box { display: flex; justify-content: center; }
.weather-box iframe { display: block; border-radius: 8px; background: transparent; max-width: 100%; }
/* 第三方天气 iframe 内容为白底,无法跨域改色:深色主题下用反色滤镜融入当前背景 */
[data-theme="dark"] .weather-box iframe { filter: invert(0.9) hue-rotate(180deg) contrast(0.92) saturate(0.9); }
/* ---------- 首页顶部组件访客信息模式hero_mode=info ---------- */
.visitor-box { display: flex; justify-content: center; }
.vb-grid {
width: 100%; max-width: 800px;
display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
background: rgba(255, 255, 255, .28);
border: 1px solid rgba(255, 255, 255, .22);
border-radius: 10px; overflow: hidden;
}
.vb-cell { background: rgba(10, 22, 44, .32); padding: 9px 16px; text-align: left; }
.vb-cell span { display: block; font-size: 11px; letter-spacing: .5px; opacity: .72; margin-bottom: 2px; }
.vb-cell b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-all; color: #fff; }
/* ---------- 首页顶部组件空白精简模式hero_mode=blank ---------- */
.hero-slim { min-height: 0; padding: 16px 0 12px; }
/* ---------- 首页顶部组件:红队/蓝队渗透测试流程模式hero_mode=red|blue动态步进 ---------- */
.ptflow { display: flex; flex-direction: column; gap: 10px; }
.ptflow-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ptflow-title { font-size: 15px; font-weight: 700; color: #fff; }
.ptflow-title .ptflow-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; letter-spacing: .5px; }
.ptflow-red .ptflow-title .ptflow-tag { background: rgba(239, 68, 68, .22); color: #fecaca; border: 1px solid rgba(239, 68, 68, .5); }
.ptflow-blue .ptflow-title .ptflow-tag { background: rgba(37, 99, 235, .22); color: #bfdbfe; border: 1px solid rgba(59, 130, 246, .5); }
.ptflow-phase { margin-left: auto; font-size: 12.5px; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.ptflow-track { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; position: relative; overflow: hidden; }
.ptflow-track::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .08) 50%, transparent 100%); animation: ptflowSweep 3.2s linear infinite; }
@keyframes ptflowSweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ptflow-step { flex: 1 1 0; min-width: 0; position: relative; padding: 9px 10px; border-radius: 10px; background: rgba(10, 22, 44, .32); border: 1px solid rgba(255, 255, 255, .18); transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease; }
.ptflow-step .ptflow-ic { font-size: 16px; display: block; line-height: 1; }
.ptflow-step b { display: block; color: #fff; font-size: 12.5px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptflow-step small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: rgba(255, 255, 255, .68); font-size: 11px; line-height: 1.35; margin-top: 2px; }
.ptflow-step.active { transform: translateY(-3px); background: rgba(10, 22, 44, .5); }
.ptflow-red .ptflow-step.active { border-color: #ef4444; box-shadow: 0 8px 22px rgba(239, 68, 68, .35); }
.ptflow-blue .ptflow-step.active { border-color: #3b82f6; box-shadow: 0 8px 22px rgba(59, 130, 246, .35); }
.ptflow-step.done { opacity: .55; }
.ptflow-step.done::after { content: '✓'; position: absolute; top: 6px; right: 8px; font-size: 10px; color: #34d399; }
@media (max-width: 767px) {
.ptflow-track { flex-wrap: wrap; }
.ptflow-step { flex: 1 1 30%; }
.ptflow-phase { margin-left: 0; }
}
/* ---------- 首页顶部组件安全态势简报hero_mode=posture数字增长 ---------- */
.js-posture .vb-cell b.js-count { color: #fff; font-variant-numeric: tabular-nums; }
/* ---------- 首页顶部组件访问趋势hero_mode=trend ---------- */
.trend-box { display: flex; flex-direction: column; gap: 10px; }
.trend-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.trend-title { font-size: 15px; font-weight: 700; color: #fff; }
.trend-sub { margin-left: auto; font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.trend-sub b { color: #fff; font-variant-numeric: tabular-nums; }
.trend-chart { display: flex; align-items: flex-end; gap: 8px; height: 132px; }
.trend-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.trend-val { font-size: 12px; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.trend-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.trend-bar { display: block; width: 62%; max-width: 34px; height: 0; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #7dd3fc, #38bdf8); box-shadow: 0 0 12px rgba(56, 189, 248, .45); animation: trendGrow .9s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes trendGrow { from { height: 0; } to { height: var(--h); } }
.trend-lbl { font-size: 11px; color: rgba(255, 255, 255, .8); margin-top: 5px; font-variant-numeric: tabular-nums; }
.trend-wk { font-size: 10.5px; color: rgba(255, 255, 255, .55); }
/* ---------- 首页顶部组件大字时钟hero_mode=clock ---------- */
.clock-box { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ch-greet { font-size: 13px; letter-spacing: 2px; color: rgba(255, 255, 255, .8); }
.ch-time { font-size: clamp(34px, 8vw, 58px); font-weight: 700; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 2px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.ch-date { font-size: 13.5px; color: rgba(255, 255, 255, .85); display: flex; gap: 10px; }
.ch-date .js-ch-week { color: rgba(255, 255, 255, .7); }
.ch-extra { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 3px; flex-wrap: wrap; }
.ch-lunar { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .85); flex-wrap: wrap; }
.ch-lunar .js-ch-lunar { letter-spacing: .5px; }
.ch-fest { display: none; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(239, 68, 68, .22); border: 1px solid rgba(239, 68, 68, .5); color: #fecaca; white-space: nowrap; }
.ch-fest.on { display: inline-block; }
.ch-count { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .85); flex-wrap: wrap; }
.ch-count .cc-label { color: rgba(255, 255, 255, .72); }
.ch-count .cc-time { font-weight: 700; color: #7dd3fc; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
/* ---------- 首页顶部组件公告滚动条hero_mode=notice ---------- */
.ticker-box { display: flex; align-items: center; gap: 10px; background: rgba(10, 22, 44, .32); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 9px 12px; overflow: hidden; }
.tk-label { flex: none; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 6px; padding: 2px 8px; letter-spacing: 1px; }
.tk-viewport { position: relative; flex: 1; overflow: hidden; white-space: nowrap; }
.tk-track { display: inline-flex; align-items: center; will-change: transform; }
.tk-item { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 13.5px; padding: 0 26px; position: relative; }
.tk-item:hover { color: #bae6fd; }
.tk-item::after { content: '·'; position: absolute; right: 0; color: rgba(255, 255, 255, .4); }
.tk-pin { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: rgba(239, 68, 68, .25); border: 1px solid rgba(239, 68, 68, .5); color: #fecaca; }
.tk-empty { font-size: 13.5px; color: rgba(255, 255, 255, .75); }
@keyframes tkScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* ---------- 首页顶部组件打字机标语hero_mode=slogan ---------- */
.slogan-box { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: clamp(16px, 2.6vw, 22px); color: #fff; }
.sg-mark { color: #7dd3fc; font-weight: 700; }
.sg-text { font-weight: 600; letter-spacing: .5px; }
.sg-caret { display: inline-block; width: 9px; height: 1.05em; background: #7dd3fc; margin-left: 2px; transform: translateY(2px); animation: sgBlink 1s steps(1) infinite; }
@keyframes sgBlink { 50% { opacity: 0; } }
@media (max-width: 767px) {
.trend-chart { height: 108px; gap: 5px; }
.trend-wk { display: none; }
.slogan-box { font-size: 16px; }
}
/* ============ 后台风控管理页 ============ */
.vis-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vis-stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.vis-stat b { display: block; font-size: 22px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.vis-stat span { font-size: 12px; color: var(--text-3); }
.v-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.v-filter input[type=text] { width: 200px; }
.v-filter input[type=text].w-s { width: 160px; }
.v-scroll { overflow-x: auto; margin-top: 4px; }
.v-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.v-tbl th, .v-tbl td { padding: 8px 10px; text-align: left; vertical-align: top; }
.v-tbl th { color: var(--text-3); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.v-tbl td { border-bottom: 1px solid var(--line); word-break: break-all; }
.v-tbl tr:last-child td { border-bottom: none; }
.v-nowrap { white-space: nowrap; }
.v-tag { display: inline-block; min-width: 44px; text-align: center; padding: 1px 8px; border-radius: 20px; font-size: 12px; border: 1px solid var(--line-2); color: var(--text-2); }
.v-tag.good { color: var(--ok); border-color: var(--ok); }
.v-tag.info { color: var(--brand); border-color: var(--brand); }
.v-tag.warn { color: var(--warn); border-color: var(--warn); }
.v-tag.bad { color: var(--danger); border-color: var(--danger); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.pager .pg-info { font-size: 13px; color: var(--text-3); margin-right: 4px; }
.bl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); }
.bl-row:first-child { border-top: none; padding-top: 0; }
.bl-rule { font-family: Consolas, Menlo, monospace; background: var(--code-bg); color: var(--code-text); border-radius: 6px; padding: 2px 9px; font-size: 13px; }
.bl-note { color: var(--text-2); flex: 1 1 140px; min-width: 100px; font-size: 13px; }
.bl-time { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.vis-ok-tip { background: rgba(22, 163, 74, .12); color: var(--ok); border-radius: 8px; padding: 7px 12px; font-size: 13px; display: inline-block; }
.vis-warn-tip { background: rgba(217, 119, 6, .12); color: var(--warn); border-radius: 8px; padding: 7px 12px; font-size: 13px; display: inline-block; }
/* ---------- 名言条 ---------- */
.quote-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.quote-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; text-align: center; }
.quote-mark { font-size: 22px; color: var(--brand); }
.quote-text {
font-size: 17px; color: var(--text-2); cursor: pointer; user-select: none;
padding: 2px 8px; border-radius: 8px;
transition: color .15s ease, background .15s ease, opacity .14s ease, transform .14s ease;
}
.quote-text:hover { color: var(--brand); background: var(--hover-bg); }
/* 点击切换名言时先淡出再淡入,避免文字瞬变 */
.quote-text.quote-fade { opacity: 0; transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .quote-text { transition: color .15s ease, background .15s ease; } }
/* ============ 首页四大板块 ============ */
/* 首页板块区:内容放得下时填满视口剩余高度(不出现竖向滚动条),内容超高时自然滚动 */
.board-section { flex: 1 0 auto; display: flex; flex-direction: column; padding: 26px 0 24px; }
.board-section > .wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* 首页快捷站点:磁贴卡片(圆形图标底 + 名称 + 备注常显,网格对齐) */
.quick-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 12px; margin-bottom: 24px; }
.quick-tile {
display: flex; align-items: center; gap: 12px; padding: 13px 14px; min-width: 0;
background: var(--card); border: 1px solid var(--line); border-radius: 14px;
text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm);
transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.quick-tile:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow); }
.q-tile-ic {
flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
font-size: 20px; line-height: 1;
}
.q-tile-ic .icon-img { width: 22px; height: 22px; object-fit: contain; }
.q-tile-b { min-width: 0; flex: 1; }
.q-tile-b b { display: block; font-size: 14.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-tile-b small {
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2;
overflow: hidden; color: var(--text-3); font-size: 12px; line-height: 1.5; margin-top: 2px; word-break: break-word;
}
/* 通用图标 <img>site_icon 输出)在各容器中的尺寸 */
.icon-img { object-fit: contain; vertical-align: middle; }
.board-icon img.icon-img { width: 30px; height: 30px; }
.boards { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.board-card {
position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 12px; background-color: var(--card); background-image: var(--board-tint);
border: 1px solid var(--line); border-radius: 16px; padding: 26px 14px; text-align: center;
box-shadow: var(--shadow-sm); color: var(--text);
transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
min-height: 230px;
}
.board-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.board-icon {
width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
font-size: 30px; color: #fff; background: var(--brand-grad); box-shadow: var(--shadow);
}
.board-name { font-size: 19px; font-weight: 700; }
/* 板块说明文案常显(取消悬停浮层后最多两行,超出截断) */
.board-hint {
font-size: 13px; color: var(--text-3); line-height: 1.5; max-width: 100%;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 首页磁贴 / 板块卡入场动画依次上浮浮现fill-mode 用 backwards动画结束后归还 :hover 位移) */
@keyframes hpRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.quick-strip .quick-tile, .boards .board-card { animation: hpRise .46s cubic-bezier(.2, .8, .25, 1) backwards; }
.quick-strip > :nth-child(1), .boards > :nth-child(1) { animation-delay: .02s; }
.quick-strip > :nth-child(2), .boards > :nth-child(2) { animation-delay: .07s; }
.quick-strip > :nth-child(3), .boards > :nth-child(3) { animation-delay: .12s; }
.quick-strip > :nth-child(4), .boards > :nth-child(4) { animation-delay: .17s; }
.quick-strip > :nth-child(5), .boards > :nth-child(5) { animation-delay: .22s; }
.quick-strip > :nth-child(6), .boards > :nth-child(6) { animation-delay: .27s; }
.quick-strip > :nth-child(7), .boards > :nth-child(7) { animation-delay: .32s; }
.quick-strip > :nth-child(8), .boards > :nth-child(8) { animation-delay: .37s; }
.quick-strip > :nth-child(n+9), .boards > :nth-child(n+9) { animation-delay: .42s; }
@media (prefers-reduced-motion: reduce) {
.quick-strip .quick-tile, .boards .board-card { animation: none; }
}
.func-card .fc-icon img.icon-img { width: 24px; height: 24px; }
/* 名言隐藏池 */
.quote-pool { display: none; }
/* ============ 页脚 ============ */
.footer { margin-top: auto; background: var(--bg-2); border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; text-align: center; }
.footer .admin-link { opacity: .65; }
.footer .admin-link:hover { opacity: 1; }
/* ============ 顶部条(导航区/其他内页) ============ */
.top-strip { background: var(--card); border-bottom: 1px solid var(--line); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; }
.nav-top { padding-top: 14px; }
/* ============ 搜索栏 ============ */
.search-zone { padding: 10vh 0 0; }
.search-zone .search-title { text-align: center; color: var(--text-3); font-size: 14px; margin: 8px 0 6px; }
.search-box {
max-width: 760px; margin: 0 auto; display: flex; align-items: center;
border: 1px solid var(--line-2); border-radius: 26px; background: var(--card);
box-shadow: var(--shadow-sm); overflow: visible; padding: 4px;
transition: border-color .15s ease, box-shadow .15s ease;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-soft); }
.engine-btn {
position: relative; display: inline-flex; align-items: center; gap: 5px;
border: none; background: transparent; color: var(--text-2); padding: 8px 14px 8px 16px;
border-radius: 22px 0 0 22px; cursor: pointer; font-size: 14px; white-space: nowrap;
}
.engine-btn:hover { background: var(--hover-bg); }
.engine-btn .arrow { font-size: 10px; opacity: .7; }
.engine-menu {
position: absolute; top: calc(100% + 6px); left: 0; margin: 0; padding: 6px; list-style: none;
background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow);
min-width: 150px; display: none; z-index: 20;
}
.engine-menu.open { display: block; }
.engine-menu li { padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.engine-menu li:hover { background: var(--hover-bg); }
.engine-menu li.active { color: var(--brand); font-weight: 600; }
.search-field { flex: 1; position: relative; display: flex; align-items: center; }
.search-field input { border: none; box-shadow: none !important; background: transparent; width: 100%; padding: 9px 34px 9px 6px; font-size: 15px; }
.search-field input:focus { border: none; }
.search-clear {
position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
width: 20px; height: 20px; border-radius: 50%; border: none; background: var(--bg-2);
color: var(--text-3); font-size: 12px; line-height: 1; cursor: pointer;
display: flex; align-items: center; justify-content: center; visibility: hidden;
}
.search-clear:hover { background: var(--line-2); color: var(--text); }
.search-go {
border: none; background: var(--brand); color: var(--brand-ink); border-radius: 20px;
padding: 9px 22px; font-size: 15px; cursor: pointer; font-weight: 600;
}
.search-go:hover { filter: brightness(1.08); }
/* ============ 导航区 ============ */
.nav-area { margin: 26px 15% 40px; }
.nav-area-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.nav-area-title { font-size: 20px; font-weight: 700; }
.nav-area-count { color: var(--text-3); font-size: 13px; }
.nav-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.nav-col { display: flex; flex-direction: column; gap: 18px; }
.nav-block {
background: var(--card); border: 1px solid var(--line); border-radius: 14px;
padding: 14px 14px 12px; box-shadow: var(--shadow-sm); break-inside: avoid;
}
.nav-block-title { font-weight: 700; font-size: 15px; margin: 0 0 10px; color: var(--brand-2); padding-left: 2px; }
.nav-block-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 36px; gap: 8px; }
.nav-btn {
position: relative; display: flex; align-items: center; justify-content: center; padding: 0 6px;
border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
color: var(--text-2); font-size: 13px; text-align: center; overflow: visible;
transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
min-width: 0; white-space: nowrap;
}
a.nav-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-1px); }
span.nav-btn.is-empty { visibility: hidden; }
span.nav-btn.is-off { opacity: .45; cursor: not-allowed; }
/* tooltip有备注按钮 hover 浮出气泡 */
a.nav-btn[data-note]::after {
content: attr(data-note); position: absolute; z-index: 60; bottom: calc(100% + 7px); left: 50%;
transform: translateX(-50%) translateY(4px); background: var(--tooltip-bg); color: var(--tooltip-text);
font-size: 12px; line-height: 1.5; padding: 5px 10px; border-radius: 7px; white-space: nowrap;
max-width: 280px; overflow: hidden; text-overflow: ellipsis;
opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .14s ease;
box-shadow: var(--shadow);
}
a.nav-btn[data-note]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
/* ============ 功能区 ============ */
.func-bar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.func-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.func-bar-title { font-size: 16px; font-weight: 700; text-align: center; flex: 0 1 auto; }
.func-bar .spacer { width: 120px; }
.sub-hero { position: relative; background: var(--brand-grad); color: #fff; text-align: center; padding: 46px 20px 40px; }
.sub-hero h1 { font-size: 26px; margin: 0 0 8px; }
.sub-hero p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 14px; }
.sub-hero .back-home { position: absolute; top: 14px; left: 18px; color: rgba(255, 255, 255, .92); font-size: 14px; }
.sub-hero .back-home:hover { color: #fff; text-decoration: underline; }
.page-body { padding: 26px 0 10px; }
/* 工具入口卡片 */
.func-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 6px 0 20px; }
.func-card {
display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line);
border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); color: var(--text);
transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.func-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.func-card .fc-icon {
width: 50px; height: 50px; flex: 0 0 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
font-size: 24px; color: var(--brand); background: var(--accent-soft);
}
.func-card .fc-name { font-weight: 700; font-size: 15px; }
.func-card .fc-desc { font-size: 13px; color: var(--text-3); margin-top: 2px; }
/* 工具卡片容器 */
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.panel-card > h2 { font-size: 17px; margin-top: 0; }
/* 更新公告(前台展示 / 后台管理共用) */
.notice-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; background: var(--card); box-shadow: var(--shadow-sm); }
.notice-item:last-child { margin-bottom: 0; }
.notice-title { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 6px; }
.notice-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }
.notice-body { line-height: 1.9; font-size: 15px; word-break: break-word; }
.notice-body a { color: var(--brand); text-decoration: underline; word-break: break-all; }
.notice-live { border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px 16px; margin-top: 12px; min-height: 24px; }
/* IO 双文本区布局 */
.io-area { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.io-box { display: flex; flex-direction: column; }
.io-box .io-label { font-size: 13px; color: var(--text-3); margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.io-box textarea { min-height: 230px; font-family: Consolas, Menlo, monospace; font-size: 13px; }
.copy-btn .btn { display: inline-flex; }
/* 工具操作行 */
.tool-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { border: none; background: var(--card); color: var(--text-2); padding: 7px 16px; cursor: pointer; font-size: 14px; }
.seg button.active { background: var(--brand); color: #fff; }
/* 密码结果 */
.pwd-results { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pwd-line { display: flex; align-items: center; gap: 10px; }
.pwd-line code { flex: 1; background: var(--code-bg); color: var(--code-text); padding: 8px 12px; border-radius: 8px; font-size: 14px; overflow-x: auto; white-space: pre; word-break: break-all; }
/* 二维码 */
.qr-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 10px; }
.qr-stage canvas, .qr-stage img { border-radius: 10px; background: #fff; padding: 8px; box-shadow: var(--shadow-sm); }
/* 数据表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.tbl th { background: var(--bg-2); font-weight: 600; }
.tbl tr:hover td { background: var(--hover-bg); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.badge-ok { background: rgba(22, 163, 74, .14); color: var(--ok); }
.badge-no { background: rgba(148, 163, 184, .16); color: var(--text-3); }
/* IP 地址处理:来源分类徽章 */
.badge-cdn { background: rgba(37, 99, 235, .14); color: var(--brand); }
.badge-priv { background: rgba(217, 119, 6, .15); color: var(--warn); }
.badge-pub { background: rgba(148, 163, 184, .16); color: var(--text-3); }
/* IP 处理结果预览(红色标记重点 IP */
.ip-pre {
font-family: Consolas, Menlo, monospace; font-size: 13px; line-height: 1.8;
background: var(--code-bg); color: var(--code-text);
border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
white-space: pre-wrap; word-break: break-all; overflow: auto; max-height: 440px;
}
.ip-pre .ip-hit, .ip-pre .ip-seg-hit { color: var(--danger); font-weight: 700; }
.ip-pre .ip-seg-hit { background: rgba(220, 38, 38, .10); border-radius: 4px; }
/* ============ 后台管理 ============ */
.admin-nav { background: var(--brand-2); color: #fff; }
.admin-nav a { color: rgba(255, 255, 255, .9); }
.admin-nav-inner { display: flex; align-items: center; gap: 18px; padding: 10px 20px; flex-wrap: wrap; }
.admin-nav-inner .sp { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.admin-nav-inner .logo { height: 30px; width: 30px; border-radius: 7px; object-fit: contain; background: #fff; padding: 2px; }
.admin-nav .brand .site-name { color: #fff; }
.admin-nav a.active { text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
/* 后台页面标题区(统一各页标题 / 说明 / 操作区) */
.admin-head {
display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap;
margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.admin-head .ah-main { min-width: 0; }
.admin-head .ah-title { font-size: 20px; font-weight: 700; margin: 0; }
.admin-head .ah-sub { margin: 6px 0 0; font-size: 13px; color: var(--text-3); line-height: 1.7; }
.admin-head .ah-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) {
.admin-head { align-items: flex-start; }
.admin-head .ah-title { font-size: 18px; }
}
.fieldset-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.fieldset-card > .fs-title { font-weight: 700; font-size: 16px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
/* 跨整行的设置卡片(内容较多的底部大卡) */
.fieldset-card.col-span-2 { grid-column: 1 / -1; }
/* 后台导航管理 */
.m-block { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.m-block-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-2); flex-wrap: wrap; }
.m-block-head input[type=text] { max-width: 320px; }
.m-block-head input.b-title { flex: 1 1 240px; width: auto; max-width: 520px; }
.m-block-head .ops { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.m-items { padding: 4px 12px 12px; }
.m-block.is-fold .m-items { display: none; }
.m-item { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr 36px; gap: 8px; align-items: center; margin-top: 8px; }
.m-item .m-del { text-align: center; }
/* 后台搜索引擎管理行 */
.e-row { display: grid; grid-template-columns: 70px 1.1fr 1.8fr 40px; gap: 8px; align-items: center; margin-top: 8px; }
/* 后台图标控件:预览框 + 文本输入 + 上传按钮 + 隐藏文件选择 */
.icon-ctl { display: flex; align-items: center; gap: 6px; flex: 0 1 250px; min-width: 170px; }
.icon-ctl .icon-preview {
width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid var(--line-2); border-radius: 8px;
background: var(--bg); color: var(--text-2); overflow: hidden;
display: flex; align-items: center; justify-content: center;
font-size: 13px; line-height: 1; white-space: nowrap; text-overflow: ellipsis;
}
.icon-ctl .icon-preview img { width: 100%; height: 100%; object-fit: contain; }
.icon-ctl .icon-input { flex: 1 1 90px; min-width: 70px; padding: 7px 9px; font-size: 13px; }
.icon-ctl .icon-upload { flex: 0 0 auto; padding: 7px 12px; font-size: 13px; }
/* 后台功能区工具管理行 / 首页快捷站点管理行flex 自适应,窄屏自动换行,避免重叠 */
.t-row, .l-row {
display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
padding: 12px 0; margin-top: 12px; border-top: 1px dashed var(--line);
}
.t-row:first-child, .l-row:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.t-row .icon-ctl, .l-row .icon-ctl { flex: 0 1 240px; }
.t-row .t-name, .l-row .l-name { flex: 1 1 120px; min-width: 90px; }
.t-row .t-desc { flex: 1 1 170px; min-width: 110px; }
.t-row .t-url, .l-row .l-url { flex: 2 1 230px; min-width: 150px; }
.t-row .t-ext { flex: 0 1 132px; min-width: 0; width: 100%; }
.t-row .t-grp { flex: 0 1 168px; min-width: 120px; }
.l-row .l-note { flex: 1 1 170px; min-width: 120px; }
/* 外部工具管理:分区分组折叠 */
.xg { border: 1px dashed var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.xg-h { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--bg-2); cursor: pointer; user-select: none; flex-wrap: wrap; row-gap: 4px; }
.xg-h .xg-arr { flex: 0 0 auto; border: none; background: none; padding: 2px 4px; font-size: 12px; color: var(--text-3); cursor: pointer; transition: transform .18s ease; }
.xg.is-fold .xg-arr { transform: rotate(-90deg); }
.xg-h .xg-name { font-weight: 600; color: var(--text-2); }
.xg-h .xg-cnt { font-size: 12px; color: var(--text-3); }
.xg-h .xg-acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.xg-h .xg-cat .t-cats { padding: 2px 8px; }
.xg-h .xg-cat label { cursor: pointer; }
.xg-h .xg-cat { display: flex; align-items: center; min-width: 0; flex: 0 0 auto; margin-left: auto; }
.xg-b { padding: 4px 14px 10px; }
.xg-b .t-row:first-child { margin-top: 8px; }
.xg.is-fold .xg-b { display: none; }
.xg.is-hide { display: none; }
.t-row.is-hide { display: none !important; }
/* 外部工具管理:筛选工具条 */
.ext-filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ext-filter select { width: auto; min-width: 130px; flex: 0 1 auto; }
.ext-filter #fKw { flex: 1 1 220px; min-width: 180px; }
.ext-stat { font-size: 13px; color: var(--text-3); white-space: nowrap; margin-left: auto; }
/* 通用拖动手柄 / 拖拽反馈 */
.drag-h {
flex: 0 0 auto; cursor: grab; user-select: none; touch-action: none;
border: none; background: none; padding: 4px 6px; font-size: 13px; line-height: 1; color: var(--text-3);
}
.drag-h:hover { color: var(--brand); }
.drag-h:active { cursor: grabbing; }
.drag-src { opacity: .4; }
.drop-target, .drag-over { border-color: var(--brand) !important; box-shadow: 0 0 0 2px var(--accent-soft) !important; }
/* 折叠头箭头(块头/分区头通用) */
.c-arr { flex: 0 0 auto; border: none; background: none; padding: 2px 6px; font-size: 12px; color: var(--text-3); cursor: pointer; transition: transform .18s ease; }
.is-fold .c-arr { transform: rotate(-90deg); }
.t-row .ops, .l-row .ops { display: flex; gap: 6px; flex: 0 0 auto; margin-left: auto; }
.t-on { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); white-space: nowrap; flex: 0 0 auto; }
/* 滑动圆条开关:内部 OFF/ON 文本,用于后台行内即时启停 */
.sw { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; cursor: pointer; user-select: none; }
.t-row .sw, .l-row .sw { flex: 0 0 auto; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sw .sw-b {
position: relative; display: inline-block; width: 58px; height: 27px; border-radius: 14px;
background: var(--line-2); overflow: hidden; transition: background .18s ease;
box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.sw .sw-t {
position: absolute; top: 0; height: 100%; line-height: 27px;
font-size: 10px; font-weight: 700; letter-spacing: .5px;
transition: opacity .15s ease; pointer-events: none;
}
.sw .sw-on { left: 6px; color: #fff; opacity: 0; }
.sw .sw-off { right: 6px; color: var(--text-3); opacity: 1; }
.sw .sw-b::after {
content: ''; position: absolute; top: 2px; left: 2px; width: 23px; height: 23px; border-radius: 50%;
background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.28); transition: left .18s ease;
}
.sw input:checked + .sw-b { background: var(--ok); }
.sw input:checked + .sw-b::after { left: 33px; }
.sw input:checked + .sw-b .sw-on { opacity: 1; }
.sw input:checked + .sw-b .sw-off { opacity: 0; }
.sw input:focus-visible + .sw-b { box-shadow: 0 0 0 2px var(--brand); }
/* 后台行内:库首页展示范围多选 */
.t-cats {
display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap;
font-size: 12px; color: var(--text-3); white-space: nowrap; flex: 0 1 auto;
border: 1px dashed var(--line-2); border-radius: 8px; padding: 4px 8px;
}
.t-cats .t-cats-t { margin-right: 3px; }
.t-cats label { display: inline-flex; align-items: center; gap: 3px; color: var(--text-2); }
.t-cats label input { margin: 0; accent-color: var(--brand); }
.add-btn { margin: 6px 0 18px; }
/* 站点风格确认弹窗(回车确认 / Esc 取消) */
.sc-overlay {
position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
padding: 20px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(2px); animation: scFade .14s ease;
}
.sc-card {
width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 14px;
box-shadow: 0 18px 50px rgba(0, 0, 0, .25); overflow: hidden; animation: scPop .16s ease;
}
.sc-head { padding: 16px 18px 0; font-size: 15px; font-weight: 700; color: var(--text); }
.sc-body { padding: 8px 18px 4px; font-size: 13.5px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.sc-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px 18px; }
.sc-foot .btn { min-width: 76px; }
@keyframes scFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes scPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
/* 插入链接弹窗(复用站点确认弹窗外观) */
.nt-dlg .sc-body { padding-top: 12px; }
.nt-dlg .sc-body .fl { display: block; margin: 10px 0 6px; }
.nt-dlg .sc-body .fl:first-child { margin-top: 0; }
.nt-dlg .sc-body input[type=text] { width: 100%; }
/* 登录页 */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-2); padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.login-card h1 { text-align: center; font-size: 20px; margin-bottom: 4px; }
.login-card .lc-sub { text-align: center; color: var(--text-3); font-size: 13px; margin-bottom: 16px; }
.login-logo { text-align: center; margin-bottom: 10px; }
.login-logo img { width: 64px; height: 64px; border-radius: 14px; }
/* 顶部 logo 占位展示 */
.logo-preview { display: flex; align-items: center; gap: 14px; margin: 8px 0; }
.logo-preview img { width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; background: #fff; }
/* ============ 响应式 ============ */
@media (max-width: 1199px) {
.nav-area { margin: 24px 5% 36px; }
}
@media (max-width: 991px) {
.form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
.hero { min-height: 0; }
.hero-top { flex-direction: column; text-align: center; }
.hero-meta { text-align: center; }
.weather-box iframe { width: 100%; }
.visitor-box .vb-grid { grid-template-columns: repeat(2, 1fr); }
.vis-stats { grid-template-columns: repeat(2, 1fr); }
.v-filter input[type=text] { width: 100%; }
.quote-inner { flex-wrap: wrap; }
.boards { grid-template-columns: repeat(2, 1fr); gap: 12px; min-height: 0; }
.nav-cols { grid-template-columns: 1fr; gap: 14px; }
.nav-area { margin: 18px 12px 30px; }
.search-zone { padding-top: 6vh; }
.search-box { flex-wrap: wrap; border-radius: 16px; padding: 6px; }
.engine-btn { border-radius: 12px; }
.search-go { border-radius: 12px; }
.search-field { order: 3; flex-basis: 100%; }
.io-area { grid-template-columns: 1fr; }
.io-box textarea { min-height: 160px; }
.m-item { grid-template-columns: 1fr; gap: 4px; }
.e-row { grid-template-columns: 1fr; gap: 4px; }
.t-row, .l-row { gap: 6px; padding: 10px 0; }
.t-row > *, .l-row > * { flex: 1 1 100%; min-width: 0; }
.icon-ctl { min-width: 0; }
.t-row .t-on, .l-row .t-on { flex: 0 0 auto; }
.t-row .ops, .l-row .ops { flex: 0 0 auto; margin-left: auto; justify-content: flex-end; }
.m-block-head input[type=text] { max-width: 100%; }
.func-bar-title { font-size: 14px; }
.func-bar .spacer { width: 60px; }
}
@media (max-width: 600px) {
.nav-block-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
.nav-btn { justify-content: flex-start; padding: 8px 12px; }
}
/* ============ 文章库(第五板块:三栏阅读区) ============ */
.art-app { display: flex; flex-direction: column; height: 100vh; min-height: 0; }
.art-topbar {
display: flex; align-items: center; gap: 8px;
padding: 10px 14px; background: var(--card);
border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.art-topbar-nav { display: flex; gap: 6px; flex: 0 0 auto; min-width: 0; }
.art-topbar-nav .btn { white-space: nowrap; }
.art-topbar-title {
flex: 1 1 auto; text-align: center; font-size: 17px; font-weight: 600;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%;
}
.art-topbar-acts { display: flex; gap: 6px; flex: 0 0 auto; min-width: 0; }
.art-topbar-acts .btn.active {
background: var(--accent-soft); border-color: var(--brand); color: var(--brand);
}
.art-note {
flex: 0 0 auto; padding: 8px 16px; text-align: center;
background: var(--accent-soft); color: var(--text-2); font-size: 13.5px;
border-bottom: 1px solid var(--line);
}
.art-frame {
flex: 1 1 auto; min-height: 0; display: flex;
--w-title: 15%; --w-toc: 15%; position: relative;
}
.art-col {
display: flex; flex-direction: column; min-height: 0;
background: var(--card); min-width: 0;
}
.art-col-title { flex: 0 0 var(--w-title, 15%); border-right: 1px solid var(--line); }
.art-col-toc { flex: 0 0 var(--w-toc, 15%); border-right: 1px solid var(--line); }
.art-col.art-col-hidden { display: none; }
/* 窄屏浮层显示态 */
@media (max-width: 860px) {
.art-col-title, .art-col-toc {
position: absolute; top: 0; bottom: 0; z-index: 40;
width: min(80%, 300px); box-shadow: var(--shadow); display: none;
}
.art-col-title { left: 0; border-right: 1px solid var(--line); }
.art-col-toc { right: 0; border-left: 1px solid var(--line); }
.art-col-title.art-col-show-mobile, .art-col-toc.art-col-show-mobile { display: flex; }
.art-gutter { display: none !important; }
}
.art-col-head {
display: flex; align-items: center; justify-content: space-between; gap: 6px;
padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--text-2);
border-bottom: 1px solid var(--line); background: var(--bg-2); flex: 0 0 auto;
}
.art-mini {
border: none; background: transparent; cursor: pointer; color: var(--text-3);
font-size: 13px; line-height: 1; padding: 3px 6px; border-radius: 5px;
}
.art-mini:hover { background: var(--hover-bg); color: var(--danger); }
.art-nav, .art-toc { overflow-y: auto; flex: 1 1 auto; min-height: 0; padding: 6px 0; }
.art-nav-part { margin: 4px 0; }
.art-nav-part-name {
padding: 5px 12px 3px; font-size: 12px; color: var(--text-3);
position: sticky; top: 0; background: var(--card); font-weight: 600;
}
.art-nav-item {
display: block; padding: 6px 12px 6px 16px; font-size: 13.5px;
color: var(--text-2); border-left: 2px solid transparent;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.art-nav-item:hover { background: var(--hover-bg); color: var(--brand); }
.art-nav-item.active {
background: var(--accent-soft); color: var(--brand); border-left-color: var(--brand);
}
.art-toc-link {
display: block; padding: 5px 14px 5px 20px; font-size: 13px; color: var(--text-2);
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative;
}
.art-toc-link:hover { color: var(--brand); background: var(--hover-bg); }
.art-toc-link.lv2 { padding-left: 30px; font-size: 12.5px; }
.art-toc-link.lv3 { padding-left: 42px; font-size: 12px; }
.art-toc-link.lv4 { padding-left: 54px; font-size: 11.5px; }
.art-gutter {
flex: 0 0 7px; cursor: col-resize; background: transparent;
position: relative; z-index: 5;
}
.art-gutter:hover, .art-gutter.dragging { background: var(--brand); opacity: .35; }
.art-body {
flex: 1 1 auto; min-width: 0; min-height: 0; overflow-y: auto;
background: var(--bg);
}
/* 正文排版Markdown 渲染区) */
.art-article { max-width: 1000px; margin: 0 auto; padding: 26px 34px 60px; }
.art-article-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.art-article-part {
display: inline-block; font-size: 12px; color: var(--brand);
background: var(--accent-soft); border-radius: 6px; padding: 2px 9px; margin-bottom: 8px;
}
.art-article-title { font-size: 26px; margin: 0 0 6px; line-height: 1.35; }
.art-article-sum { color: var(--text-3); font-size: 14px; margin: 0 0 8px; }
.art-article-meta { color: var(--text-3); font-size: 12px; }
.art-md { line-height: 1.75; font-size: 15px; color: var(--text); overflow-wrap: break-word; }
.art-md h1, .art-md h2, .art-md h3, .art-md h4, .art-md h5, .art-md h6 {
margin: 1.3em 0 .5em; line-height: 1.4;
}
.art-md h1 { font-size: 1.6em; border-bottom: 1px solid var(--line); padding-bottom: .25em; }
.art-md h2 { font-size: 1.4em; border-bottom: 1px solid var(--line); padding-bottom: .2em; }
.art-md h3 { font-size: 1.22em; }
.art-md h4 { font-size: 1.1em; }
.art-md p { margin: .6em 0; }
.art-md ul, .art-md ol { padding-left: 1.6em; margin: .5em 0; }
.art-md li { margin: .2em 0; }
.art-md blockquote {
margin: .8em 0; padding: 8px 14px; color: var(--text-2);
border-left: 4px solid var(--brand); background: var(--accent-soft); border-radius: 0 8px 8px 0;
}
.art-md code {
font-family: Consolas, Menlo, Monaco, monospace; font-size: .92em;
background: var(--code-bg); color: var(--code-text); border-radius: 4px; padding: 2px 6px;
}
.art-md pre {
background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px;
padding: 14px 16px; overflow-x: auto; line-height: 1.6;
}
.art-md pre code { background: none; padding: 0; color: var(--code-text); }
.art-md img { max-width: 100%; border-radius: 8px; margin: .4em 0; }
.art-md a { text-decoration: underline; text-underline-offset: 2px; }
.art-md table {
border-collapse: collapse; margin: .8em 0; max-width: 100%; display: block; overflow-x: auto;
}
.art-md th, .art-md td { border: 1px solid var(--line-2); padding: 6px 12px; font-size: 14px; }
.art-md th { background: var(--bg-2); }
.art-md hr { border: none; border-top: 1px solid var(--line); margin: 1.6em 0; }
/* 列表视图(先列表后阅读) */
.art-list { max-width: 1000px; margin: 0 auto; padding: 24px 26px 60px; }
.art-list-head h1 { font-size: 24px; margin: 0 0 4px; }
.art-list-head .tip { margin: 0 0 10px; }
.art-part-block { margin-top: 18px; }
.art-part-title {
font-size: 17px; color: var(--text-2); margin: 0 0 10px;
padding-left: 10px; border-left: 4px solid var(--brand);
}
.art-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.art-card {
display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
background: var(--card); border: 1px solid var(--line); border-radius: 12px;
color: var(--text); transition: all .15s ease; min-width: 0;
}
.art-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.art-card-title { font-weight: 600; font-size: 15px; }
.art-card:hover .art-card-title { color: var(--brand); }
.art-card-sum { color: var(--text-3); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-card-date { color: var(--text-3); font-size: 12px; }
@media (max-width: 600px) {
.art-cards { grid-template-columns: 1fr; }
.art-article { padding: 18px 18px 48px; }
.art-list { padding: 16px 14px 48px; }
.art-article-title { font-size: 21px; }
.art-topbar { gap: 5px; padding: 8px 8px; }
.art-topbar .btn { padding: 4px 8px; font-size: 12px; }
.art-topbar-title { font-size: 14px; }
.art-tg-txt { display: none; }
.art-topbar-nav { gap: 4px; }
}
/* ---------- 右下角 Toast 通知(后台操作成功/失败即时提示,不影响页面布局) ---------- */
.hp-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.hp-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; min-width: 220px; max-width: 100%; box-sizing: border-box; background: var(--card); color: var(--text-1); border: 1px solid var(--line-2); border-left: 4px solid var(--brand); border-radius: 12px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(15,23,42,.18); font-size: 14px; line-height: 1.55; animation: hpToastIn .26s ease; }
.hp-toast.ok { border-left-color: var(--ok); }
.hp-toast.err { border-left-color: var(--danger); }
.hp-toast .ht-ic { flex: none; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.hp-toast.ok .ht-ic { background: var(--ok); }
.hp-toast.err .ht-ic { background: var(--danger); }
.hp-toast .ht-tx { flex: 1 1 auto; min-width: 0; word-break: break-word; }
.hp-toast .ht-x { flex: none; align-self: flex-start; margin-left: 2px; padding: 0 2px; border: 0; background: none; color: var(--text-3); font-size: 16px; line-height: 1; cursor: pointer; }
.hp-toast .ht-x:hover { color: var(--danger); }
.hp-toast.hide { opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease; }
@keyframes hpToastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .hp-toasts { right: 12px; bottom: 12px; left: 12px; align-items: stretch; } .hp-toast { min-width: 0; } }
/* ---------- 后台侧边栏(原顶部分区栏改为可收缩侧栏,含“本页功能”锚点) ---------- */
body.hp-admin-side { padding-left: 232px; transition: padding-left .2s ease; }
body.hp-admin-side.hp-side-collapsed { padding-left: 68px; }
.admin-mobilebar { display: none; }
.admin-side {
position: fixed; top: 0; left: 0; bottom: 0; width: 232px; z-index: 920;
display: flex; flex-direction: column; gap: 4px;
background: var(--brand-2); color: #fff;
padding: 12px 10px 10px; overflow-y: auto; box-sizing: border-box;
transition: width .2s ease, transform .2s ease;
}
.admin-side a { color: rgba(255, 255, 255, .92); }
.as-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; border-bottom: 1px solid rgba(255, 255, 255, .16); margin-bottom: 8px; }
.as-brand { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1 1 auto; }
.as-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; padding: 2px; flex: none; }
.as-brand-tx { display: flex; flex-direction: column; min-width: 0; font-weight: 700; font-size: 14px; line-height: 1.25; }
.as-brand-tx em { font-style: normal; font-weight: 400; font-size: 11px; opacity: .7; }
.as-toggle { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.as-toggle:hover { background: rgba(255, 255, 255, .2); }
.as-toggle-ic { display: inline-block; transition: transform .2s ease; }
.as-nav { display: flex; flex-direction: column; gap: 2px; }
.as-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; white-space: nowrap; }
.as-link:hover { background: rgba(255, 255, 255, .12); }
.as-link.active { background: rgba(255, 255, 255, .2); font-weight: 700; }
.as-ic { flex: none; width: 20px; text-align: center; font-size: 15px; }
.as-sec { margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 8px; }
.as-sec-t { font-size: 11px; letter-spacing: .06em; opacity: .6; padding: 2px 10px 6px; }
.as-sec-list { display: flex; flex-direction: column; gap: 1px; }
.as-sub { display: block; padding: 6px 10px 6px 12px; border-radius: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 2px solid transparent; }
.as-sub:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.as-sub.active { background: rgba(255, 255, 255, .18); color: #fff; border-left-color: #fff; font-weight: 600; }
.as-foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 8px; }
.as-user { font-size: 13px; opacity: .78; padding: 4px 10px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-side-mask { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 919; }
/* 滚动定位到区块时预留间距(避免贴顶) */
.fieldset-card { scroll-margin-top: 18px; }
/* 收缩态:仅图标 */
body.hp-side-collapsed .as-brand-tx,
body.hp-side-collapsed .as-tx { display: none; }
body.hp-side-collapsed .admin-side { width: 68px; }
body.hp-side-collapsed .as-head { flex-direction: column; gap: 6px; }
body.hp-side-collapsed .as-link { justify-content: center; padding: 9px 0; }
body.hp-side-collapsed .as-toggle-ic { transform: rotate(180deg); }
body.hp-side-collapsed .as-sec { display: none; }
/* 小屏:侧栏改为抽屉 */
@media (max-width: 900px) {
body.hp-admin-side { padding-left: 0; }
.admin-mobilebar {
display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 921;
background: var(--brand-2); color: #fff; padding: 8px 12px;
}
.amb-btn { border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; border-radius: 8px; width: 34px; height: 30px; font-size: 15px; cursor: pointer; }
.amb-brand { display: flex; align-items: center; gap: 8px; min-width: 0; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amb-logo { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; background: #fff; padding: 1px; flex: none; }
.amb-out { margin-left: auto; color: rgba(255, 255, 255, .9); font-size: 13px; }
.admin-side { width: 240px; transform: translateX(-100%); box-shadow: 2px 0 18px rgba(0, 0, 0, .3); }
body.hp-side-open .admin-side { transform: none; }
body.hp-side-open .admin-side-mask { display: block; }
/* 小屏忽略收缩态(始终保持完整文字) */
body.hp-side-collapsed .admin-side { width: 240px; }
body.hp-side-collapsed .as-tx { display: block; }
body.hp-side-collapsed .as-brand-tx { display: flex; }
body.hp-side-collapsed .as-link { justify-content: flex-start; padding: 9px 10px; }
body.hp-side-collapsed .as-sec { display: block; }
.fieldset-card { scroll-margin-top: 66px; }
}
/* ---------- 风控管理页:筛选 / 翻页局部刷新时的轻量加载态 ---------- */
.vis-loading { opacity: .5; pointer-events: none; transition: opacity .15s ease; }