NewHome/assets/css/common.css
2026-09-06 15:20:48 +08:00

664 lines
35 KiB
CSS
Raw 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); }
/* ============ 通用头部(品牌条 / 顶部条) ============ */
.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); }
/* ---------- 名言条 ---------- */
.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;
}
.quote-text:hover { color: var(--brand); background: var(--hover-bg); }
/* ============ 首页四大板块 ============ */
/* 首页板块区:内容放得下时填满视口剩余高度(不出现竖向滚动条),内容超高时自然滚动 */
.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: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.quick-chip {
position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 999px;
background: var(--card); border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px;
box-shadow: var(--shadow-sm); text-decoration: none;
transition: border-color .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.quick-chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow); }
.quick-chip .q-icon { font-size: 15px; line-height: 1; display: inline-flex; align-items: center; }
.quick-chip .icon-img { width: 16px; height: 16px; object-fit: contain; }
/* 快捷站点按钮 hover 备注data-note */
a.quick-chip[data-note]::after {
content: attr(data-note); position: absolute; z-index: 60; bottom: calc(100% + 8px); left: 50%;
transform: translateX(-50%) translateY(4px); width: max-content; max-width: 320px;
background: var(--tooltip-bg); color: var(--tooltip-text); font-size: 12px; line-height: 1.5;
padding: 6px 10px; border-radius: 7px; white-space: normal; word-break: break-word;
text-align: center; opacity: 0; pointer-events: none; box-shadow: var(--shadow);
transition: opacity .14s ease, transform .14s ease;
}
a.quick-chip[data-note]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
/* 通用图标 <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;
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); }
.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;
}
.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); }
/* 名言隐藏池 */
.quote-pool { display: none; }
/* ============ 页脚 ============ */
.footer { 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; }
/* 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; }
.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; }
/* 后台导航内容管理 */
.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-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%; }
.l-row .l-note { flex: 1 1 170px; min-width: 120px; }
.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; }
.add-btn { margin: 6px 0 18px; }
/* 登录页 */
.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%; }
.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; }
.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; }
}