优化网站
This commit is contained in:
1 parent
9bb6e6a41e
commit
0e7265481f
22 files changed
+1071
-238
No files matched your search
+116
-18
@@ -184,6 +184,89 @@ select { width: auto; min-width: 150px; }
|
||||
/* ---------- 首页顶部组件:空白精简模式(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; }
|
||||
@@ -221,9 +304,12 @@ select { width: auto; min-width: 150px; }
|
||||
.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;
|
||||
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; } }
|
||||
|
||||
/* ============ 首页四大板块 ============ */
|
||||
/* 首页板块区:内容放得下时填满视口剩余高度(不出现竖向滚动条),内容超高时自然滚动 */
|
||||
@@ -253,8 +339,6 @@ select { width: auto; min-width: 150px; }
|
||||
/* 通用图标 <img>(site_icon 输出)在各容器中的尺寸 */
|
||||
.icon-img { object-fit: contain; vertical-align: middle; }
|
||||
.board-icon img.icon-img { width: 30px; height: 30px; }
|
||||
.board-section .section-title { text-align: center; font-size: 22px; margin-bottom: 6px; }
|
||||
.board-section .section-sub { text-align: center; color: var(--text-3); font-size: 14px; margin-bottom: 18px; }
|
||||
.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;
|
||||
@@ -275,21 +359,22 @@ select { width: auto; min-width: 150px; }
|
||||
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;
|
||||
}
|
||||
.func-card .fc-icon img.icon-img { width: 24px; height: 24px; }
|
||||
|
||||
/* 板块展开说明浮层 */
|
||||
.board-panel {
|
||||
position: absolute; top: 6px; bottom: 6px; width: 52%; z-index: 5;
|
||||
background: var(--card); border: 1px solid var(--brand); border-radius: 16px;
|
||||
padding: 24px 26px; box-shadow: var(--shadow); pointer-events: none;
|
||||
opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .18s ease, transform .18s ease;
|
||||
display: flex; flex-direction: column; justify-content: center;
|
||||
/* 首页磁贴 / 板块卡入场动画:依次上浮浮现(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; }
|
||||
}
|
||||
.board-panel.visible { opacity: 1; transform: none; }
|
||||
.board-panel.panel-left { left: 0; }
|
||||
.board-panel.panel-right { right: 0; }
|
||||
.board-panel-title { font-size: 20px; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
|
||||
.board-panel-desc { font-size: 15px; color: var(--text-2); }
|
||||
.func-card .fc-icon img.icon-img { width: 24px; height: 24px; }
|
||||
|
||||
/* 名言隐藏池 */
|
||||
.quote-pool { display: none; }
|
||||
@@ -474,6 +559,20 @@ a.nav-btn[data-note]:hover::after { opacity: 1; transform: translateX(-50%) tran
|
||||
.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; }
|
||||
@@ -638,7 +737,6 @@ a.nav-btn[data-note]:hover::after { opacity: 1; transform: translateX(-50%) tran
|
||||
.v-filter input[type=text] { width: 100%; }
|
||||
.quote-inner { flex-wrap: wrap; }
|
||||
.boards { grid-template-columns: repeat(2, 1fr); gap: 12px; min-height: 0; }
|
||||
.board-panel { width: 100%; }
|
||||
.nav-cols { grid-template-columns: 1fr; gap: 14px; }
|
||||
.nav-area { margin: 18px 12px 30px; }
|
||||
.search-zone { padding-top: 6vh; }
|
||||
|
||||
Reference in new issue
Block a user