Files
jiang13-forum/frontend/src/styles/global.css
freefire 060b7707cb 支持公开用户主页、帖子图缩略图与编辑器图组排版。
新增用户签名与活动统计、图片灯箱;正文按需生成缩略图;TipTap 支持多图分组与环绕排版,并注入站点标题避免刷新闪烁。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-01 12:29:50 +08:00

6870 lines
144 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.
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 210 20% 98%;
--foreground: 222 47% 11%;
--card: 0 0% 100%;
--card-foreground: 222 47% 11%;
--popover: 0 0% 100%;
--popover-foreground: 222 47% 11%;
--primary: 152 72% 36%;
--primary-foreground: 0 0% 100%;
--secondary: 210 20% 96%;
--secondary-foreground: 222 47% 11%;
--muted: 210 20% 96%;
--muted-foreground: 215 16% 47%;
--accent: 152 45% 95%;
--accent-foreground: 152 72% 28%;
--destructive: 0 84% 60%;
--destructive-foreground: 0 0% 100%;
--border: 214 20% 91%;
--input: 214 20% 91%;
--ring: 152 72% 36%;
--radius: 0.375rem;
/* 兼容旧样式里的文本色变量 */
--color-text-1: hsl(var(--foreground));
--color-text-2: hsl(215 16% 35%);
--color-text-3: hsl(var(--muted-foreground));
--color-text-4: hsl(215 12% 65%);
--color-fill-3: hsl(210 20% 94%);
}
.dark {
--background: 240 6% 10%;
--foreground: 0 0% 95%;
--card: 240 5% 13%;
--card-foreground: 0 0% 95%;
--popover: 240 5% 13%;
--popover-foreground: 0 0% 95%;
--primary: 152 58% 46%;
--primary-foreground: 0 0% 100%;
--secondary: 240 4% 16%;
--secondary-foreground: 0 0% 95%;
--muted: 240 4% 16%;
--muted-foreground: 240 5% 65%;
--accent: 152 30% 14%;
--accent-foreground: 152 58% 55%;
--destructive: 0 63% 45%;
--destructive-foreground: 0 0% 95%;
--border: 240 4% 18%;
--input: 240 4% 18%;
--ring: 152 58% 46%;
--color-text-1: hsl(var(--foreground));
--color-text-2: hsl(240 5% 75%);
--color-text-3: hsl(var(--muted-foreground));
--color-text-4: hsl(240 5% 50%);
--color-fill-3: hsl(240 4% 20%);
}
}
/* 姜十三论坛 - 清新现代主题 */
:root {
/* 中文优先字体栈:避免 Inter 等西文字体回退导致中文发虚 */
--j13-font-family:
"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
"Source Han Sans SC", "Noto Sans SC", "WenQuanYi Micro Hei",
system-ui, -apple-system, "Segoe UI", sans-serif;
--j13-green: #18a058;
--j13-green-hover: #138f4c;
--j13-green-bg: rgba(24, 160, 88, 0.08);
--j13-green-soft: #edfbf3;
--j13-border: #e8edf2;
--j13-border-light: #f0f3f7;
--j13-sidebar-w: 210px;
--j13-aside-w: 280px;
--j13-header-h: 56px;
--j13-max-w: 1400px;
--j13-article-read-w: 820px;
/* 层次:浅灰画布 → 工作区底 → 白色/淡色区块 */
--j13-bg-page: #f5f7fa;
--j13-bg-workspace: #f8fafc;
--j13-bg-surface: #ffffff;
--j13-bg-block: #ffffff;
--j13-bg-block-muted: #f1f4f8;
--j13-bg-block-accent: #f0faf5;
--j13-shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04);
--j13-shadow-card: 0 2px 8px rgba(15, 23, 42, 0.05);
/* 板块色标8 色槽,按 board id 取模) */
--board-0-color: #18a058;
--board-0-bg: rgba(24, 160, 88, 0.1);
--board-1-color: #3498db;
--board-1-bg: rgba(52, 152, 219, 0.1);
--board-2-color: #9b59b6;
--board-2-bg: rgba(155, 89, 182, 0.1);
--board-3-color: #e67e22;
--board-3-bg: rgba(230, 126, 34, 0.1);
--board-4-color: #e74c3c;
--board-4-bg: rgba(231, 76, 60, 0.1);
--board-5-color: #1abc9c;
--board-5-bg: rgba(26, 188, 156, 0.1);
--board-6-color: #6366f1;
--board-6-bg: rgba(99, 102, 241, 0.1);
--board-7-color: #f59e0b;
--board-7-bg: rgba(245, 158, 11, 0.12);
}
.dark {
--j13-green: #23c36b;
--j13-green-hover: #1fb35f;
--j13-green-bg: rgba(35, 195, 107, 0.12);
--j13-green-soft: rgba(35, 195, 107, 0.08);
--j13-border: #2e2e32;
--j13-border-light: #262629;
--j13-bg-page: #141416;
--j13-bg-workspace: #18181b;
--j13-bg-surface: #1f1f23;
--j13-bg-block: #232328;
--j13-bg-block-muted: #1c1c20;
--j13-bg-block-accent: rgba(35, 195, 107, 0.06);
--j13-shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.2);
--j13-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.28);
--board-0-color: #23c36b;
--board-0-bg: rgba(35, 195, 107, 0.14);
--board-1-color: #5dade2;
--board-1-bg: rgba(93, 173, 226, 0.14);
--board-2-color: #bb86fc;
--board-2-bg: rgba(187, 134, 252, 0.14);
--board-3-color: #f0a050;
--board-3-bg: rgba(240, 160, 80, 0.14);
--board-4-color: #ff7b72;
--board-4-bg: rgba(255, 123, 114, 0.14);
--board-5-color: #3dd6b5;
--board-5-bg: rgba(61, 214, 181, 0.14);
--board-6-color: #818cf8;
--board-6-bg: rgba(129, 140, 248, 0.14);
--board-7-color: #fbbf24;
--board-7-bg: rgba(251, 191, 36, 0.14);
}
.dark .app-shell {
background:
radial-gradient(ellipse 70% 45% at 50% -10%, rgba(35, 195, 107, 0.08), transparent 70%),
var(--j13-bg-page);
}
* { box-sizing: border-box; }
html {
/* 预留滚动条槽位,避免页面切换时因滚动条出现/消失导致布局抖动 */
scrollbar-gutter: stable;
/* 覆盖 Arco 默认 antialiasedWindows 下用 ClearType 渲染中文更清晰 */
-webkit-font-smoothing: auto;
-moz-osx-font-smoothing: auto;
font-family: var(--j13-font-family);
text-rendering: optimizeLegibility;
}
html, body, #root {
height: 100%;
margin: 0;
}
body {
font-family: var(--j13-font-family);
font-size: 14px;
line-height: 1.5;
color: var(--color-text-1);
background: var(--j13-bg-page);
overflow: hidden;
}
a { color: var(--j13-green); text-decoration: none; }
a:hover { text-decoration: underline; }
.app-shell {
height: 100%;
max-height: 100dvh;
display: flex;
flex-direction: column;
overflow: hidden;
background:
radial-gradient(ellipse 70% 45% at 50% -10%, rgba(24, 160, 88, 0.07), transparent 70%),
var(--j13-bg-page);
}
/* 顶栏 + 主体共用同一宽度容器,顶满高度、直角外框 */
.app-frame {
flex: 1;
min-height: 0;
height: 100%;
max-width: var(--j13-max-w);
width: 100%;
margin: 0 auto;
display: flex;
flex-direction: column;
overflow: hidden;
border-left: 1px solid var(--j13-border);
border-right: 1px solid var(--j13-border);
background: var(--j13-bg-surface);
}
.app-header {
height: var(--j13-header-h);
flex-shrink: 0;
z-index: 100;
background: var(--j13-bg-surface);
border-bottom: 1px solid var(--j13-border);
}
.header-inner {
height: 100%;
width: 100%;
padding: 0 20px;
display: flex;
align-items: center;
gap: 20px;
}
.header-brand {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
border: none;
background: none;
padding: 4px 0;
cursor: pointer;
color: inherit;
font: inherit;
}
.header-brand:hover .header-logo-text { color: var(--j13-green); }
.header-logo-mark {
width: 34px;
height: 34px;
border-radius: 10px;
background: linear-gradient(135deg, var(--j13-green) 0%, #34c471 100%);
color: #fff;
font-weight: 700;
font-size: 17px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 8px rgba(26, 127, 75, 0.28);
flex-shrink: 0;
object-fit: cover;
}
img.header-logo-mark,
img.logo-mark,
img.admin-topbar-mark,
img.site-brand-logo-img {
background: transparent;
box-shadow: none;
padding: 0;
color: transparent;
}
.header-logo-text {
font-size: 15px;
font-weight: 600;
letter-spacing: 0.02em;
transition: color 0.15s;
}
.header-search-wrap {
flex: 1;
min-width: 0;
max-width: 420px;
display: flex;
align-items: center;
gap: 8px;
height: 36px;
padding: 0 14px;
border-radius: 999px;
background: var(--j13-bg-block-muted);
border: 1px solid var(--j13-border-light);
transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.header-search-wrap:focus-within {
background: var(--j13-bg-surface);
border-color: color-mix(in srgb, var(--j13-green) 30%, transparent);
box-shadow: 0 0 0 3px var(--j13-green-bg);
}
.header-search-icon {
flex-shrink: 0;
font-size: 15px;
color: var(--color-text-3);
}
.header-search-input {
flex: 1;
min-width: 0;
border: none;
outline: none;
background: transparent;
font-size: 14px;
color: var(--color-text-1);
font-family: inherit;
}
.header-search-input::placeholder { color: var(--color-text-4); }
.header-search-input::-webkit-search-cancel-button { display: none; }
.header-search-clear {
flex-shrink: 0;
width: 20px;
height: 20px;
border: none;
border-radius: 50%;
background: var(--color-fill-3);
color: var(--color-text-3);
font-size: 14px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
transition: background 0.15s, color 0.15s;
}
.header-search-clear:hover {
background: var(--color-fill-4);
color: var(--color-text-1);
}
.header-actions {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
margin-left: auto;
}
.header-compose-btn {
display: inline-flex;
align-items: center;
gap: 6px;
height: 34px;
padding: 0 16px;
border: none;
border-radius: 999px;
background: var(--j13-green);
color: #fff;
font-size: 13px;
font-weight: 500;
font-family: inherit;
cursor: pointer;
transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
box-shadow: 0 2px 6px rgba(26, 127, 75, 0.22);
}
.header-compose-btn:hover {
background: var(--j13-green-hover);
box-shadow: 0 3px 10px rgba(26, 127, 75, 0.3);
}
.header-compose-btn:active { transform: scale(0.97); }
.header-action-group {
display: flex;
align-items: center;
gap: 4px;
padding: 3px;
border-radius: 999px;
background: var(--j13-bg-block-muted);
border: 1px solid var(--j13-border-light);
}
.header-icon-btn {
width: 32px;
height: 32px;
border: none;
border-radius: 50%;
background: transparent;
color: var(--color-text-2);
font-size: 16px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s, color 0.15s;
}
.header-icon-btn:hover {
background: var(--color-fill-3);
color: var(--color-text-1);
}
.header-user-btn {
width: 32px;
height: 32px;
border: none;
border-radius: 50%;
padding: 0;
cursor: pointer;
overflow: hidden;
background: var(--j13-green);
display: flex;
align-items: center;
justify-content: center;
transition: box-shadow 0.15s, transform 0.1s;
}
@media (hover: hover) {
.header-user-btn:hover {
box-shadow: 0 0 0 2px var(--j13-green-bg), 0 0 0 3px var(--j13-green);
}
}
.header-user-btn:focus-visible {
box-shadow: 0 0 0 2px var(--j13-green-bg), 0 0 0 3px var(--j13-green);
}
/* 鼠标点击打开/关闭下拉后 focus 会回到按钮,隐藏默认 outline 与 hover 同款高亮 */
.header-user-btn:focus:not(:focus-visible) {
outline: none;
box-shadow: none;
}
.header-user-avatar {
width: 100%;
height: 100%;
object-fit: cover;
}
.header-user-initial {
color: #fff;
font-size: 14px;
font-weight: 600;
}
.header-login-btn {
height: 32px;
padding: 0 14px;
border: none;
border-radius: 999px;
background: transparent;
color: var(--j13-green);
font-size: 13px;
font-weight: 500;
font-family: inherit;
cursor: pointer;
transition: background 0.15s;
}
.header-login-btn:hover { background: var(--j13-green-bg); }
.header-auth-slot {
display: inline-block;
width: 32px;
height: 32px;
border-radius: 50%;
flex-shrink: 0;
}
.header-auth-slot--loading {
background: var(--color-fill-3);
}
.app-body {
flex: 1;
display: flex;
min-height: 0;
width: 100%;
overflow: hidden;
background: var(--j13-bg-surface);
}
.sidebar {
width: var(--j13-sidebar-w);
flex-shrink: 0;
border-right: 1px solid var(--j13-border-light);
background: var(--j13-bg-surface);
overflow-y: auto;
padding: 12px 0;
}
.sidebar-section {
padding: 4px 12px 8px;
font-size: 11px;
font-weight: 600;
color: var(--color-text-3);
}
.sidebar-nav {
display: flex;
flex-direction: column;
gap: 2px;
padding: 0 8px;
}
.sidebar-nav-item {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
margin: 0;
padding: 0 12px;
height: 36px;
border: none;
border-radius: 6px;
background: transparent;
color: var(--color-text-1);
font-size: 14px;
cursor: pointer;
text-align: left;
transition: background 0.15s, color 0.15s;
}
.sidebar-nav-item:hover {
background: var(--j13-bg-block-muted);
}
.sidebar-nav-item.active {
background: var(--j13-green-bg);
color: var(--j13-green);
font-weight: 600;
}
.sidebar-nav-item svg {
width: 16px;
height: 16px;
flex-shrink: 0;
}
.sidebar-nav-item__meta {
margin-left: auto;
color: var(--color-text-4);
font-size: 12px;
}
.sidebar-nav-item--board .sidebar-board-icon {
opacity: 0.88;
}
.sidebar-nav-item--board.active .sidebar-board-icon {
opacity: 1;
}
.sidebar-nav-item--board.active.sidebar-nav-item--board-0 { background: var(--board-0-bg); color: var(--board-0-color); }
.sidebar-nav-item--board.active.sidebar-nav-item--board-1 { background: var(--board-1-bg); color: var(--board-1-color); }
.sidebar-nav-item--board.active.sidebar-nav-item--board-2 { background: var(--board-2-bg); color: var(--board-2-color); }
.sidebar-nav-item--board.active.sidebar-nav-item--board-3 { background: var(--board-3-bg); color: var(--board-3-color); }
.sidebar-nav-item--board.active.sidebar-nav-item--board-4 { background: var(--board-4-bg); color: var(--board-4-color); }
.sidebar-nav-item--board.active.sidebar-nav-item--board-5 { background: var(--board-5-bg); color: var(--board-5-color); }
.sidebar-nav-item--board.active.sidebar-nav-item--board-6 { background: var(--board-6-bg); color: var(--board-6-color); }
.sidebar-nav-item--board.active.sidebar-nav-item--board-7 { background: var(--board-7-bg); color: var(--board-7-color); }
.sidebar-board-icon--0 { color: var(--board-0-color); }
.sidebar-board-icon--1 { color: var(--board-1-color); }
.sidebar-board-icon--2 { color: var(--board-2-color); }
.sidebar-board-icon--3 { color: var(--board-3-color); }
.sidebar-board-icon--4 { color: var(--board-4-color); }
.sidebar-board-icon--5 { color: var(--board-5-color); }
.sidebar-board-icon--6 { color: var(--board-6-color); }
.sidebar-board-icon--7 { color: var(--board-7-color); }
.sidebar-section--boards {
margin-top: 8px;
}
.sidebar-actions {
padding: 12px;
border-top: 1px solid var(--j13-border);
margin-top: 8px;
}
/* 标签云(右栏) */
.widget-card-icon--tags {
color: #2a9d8f;
}
.widget-card--tags .widget-card-body--tags {
padding: 10px 12px 14px;
background:
radial-gradient(ellipse 90% 70% at 10% 0%, color-mix(in srgb, var(--j13-green) 10%, transparent), transparent 55%),
radial-gradient(ellipse 70% 60% at 95% 100%, rgba(42, 157, 143, 0.08), transparent 50%),
var(--j13-bg-block);
}
.tag-cloud {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 7px 8px;
min-height: 72px;
}
.tag-cloud--skeleton {
justify-content: flex-start;
gap: 8px;
}
.skeleton--tag-cloud {
border-radius: 8px;
}
.tag-cloud-empty {
width: 100%;
padding: 12px 4px;
text-align: center;
font-size: 12px;
color: var(--color-text-4);
}
.tag-cloud-item {
--tag-fg: var(--color-text-2);
--tag-bg: var(--j13-bg-block-muted);
--tag-bd: var(--j13-border-light);
display: inline-flex;
align-items: baseline;
gap: 4px;
max-width: 100%;
margin: 0;
padding: 4px 10px;
border: 1px solid var(--tag-bd);
border-radius: 8px;
background: var(--tag-bg);
color: var(--tag-fg);
line-height: 1.3;
letter-spacing: 0.01em;
cursor: pointer;
transform-origin: center;
transition:
transform 0.18s ease,
background 0.18s ease,
border-color 0.18s ease,
color 0.18s ease,
box-shadow 0.18s ease;
word-break: break-word;
}
.tag-cloud-item__name {
max-width: 9em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tag-cloud-item__count {
font-size: 0.72em;
font-weight: 600;
opacity: 0.55;
font-variant-numeric: tabular-nums;
}
/* 热度档位 */
.tag-cloud-item--w0 { font-size: 11.5px; font-weight: 450; opacity: 0.82; }
.tag-cloud-item--w1 { font-size: 12.5px; font-weight: 500; }
.tag-cloud-item--w2 { font-size: 13.5px; font-weight: 560; }
.tag-cloud-item--w3 { font-size: 15px; font-weight: 650; }
.tag-cloud-item--w4 {
font-size: 16.5px;
font-weight: 700;
letter-spacing: -0.01em;
box-shadow: 0 1px 0 color-mix(in srgb, var(--tag-fg) 12%, transparent);
}
/* 色调错落(绿 / 青 / 琥珀 / 蓝灰 / 玫褐 / 橄黄,避开紫系) */
.tag-cloud-item--t0 {
--tag-fg: #1f7a4d;
--tag-bg: color-mix(in srgb, #18a058 12%, var(--j13-bg-block));
--tag-bd: color-mix(in srgb, #18a058 22%, var(--j13-border-light));
}
.tag-cloud-item--t1 {
--tag-fg: #0f766e;
--tag-bg: color-mix(in srgb, #2a9d8f 14%, var(--j13-bg-block));
--tag-bd: color-mix(in srgb, #2a9d8f 24%, var(--j13-border-light));
}
.tag-cloud-item--t2 {
--tag-fg: #b45309;
--tag-bg: color-mix(in srgb, #f59e0b 14%, var(--j13-bg-block));
--tag-bd: color-mix(in srgb, #f59e0b 26%, var(--j13-border-light));
}
.tag-cloud-item--t3 {
--tag-fg: #1d4e89;
--tag-bg: color-mix(in srgb, #3b82c4 13%, var(--j13-bg-block));
--tag-bd: color-mix(in srgb, #3b82c4 24%, var(--j13-border-light));
}
.tag-cloud-item--t4 {
--tag-fg: #9a3412;
--tag-bg: color-mix(in srgb, #ea580c 12%, var(--j13-bg-block));
--tag-bd: color-mix(in srgb, #ea580c 24%, var(--j13-border-light));
}
.tag-cloud-item--t5 {
--tag-fg: #4d7c0f;
--tag-bg: color-mix(in srgb, #84cc16 13%, var(--j13-bg-block));
--tag-bd: color-mix(in srgb, #84cc16 24%, var(--j13-border-light));
}
/* 轻微错位,打破整齐栅格感 */
.tag-cloud-item--r1 { transform: translateY(1px) rotate(-0.6deg); }
.tag-cloud-item--r2 { transform: translateY(-1px) rotate(0.7deg); }
.tag-cloud-item--r3 { transform: translateY(0.5px) rotate(-0.4deg); }
.tag-cloud-item--r4 { transform: translateY(-0.5px) rotate(0.5deg); }
.tag-cloud-item:hover {
z-index: 1;
transform: translateY(-2px) scale(1.04);
border-color: color-mix(in srgb, var(--tag-fg) 45%, var(--tag-bd));
box-shadow: 0 4px 12px color-mix(in srgb, var(--tag-fg) 14%, transparent);
}
.tag-cloud-item.active {
transform: translateY(-1px) scale(1.03);
color: #fff;
background: var(--tag-fg);
border-color: transparent;
box-shadow: 0 3px 10px color-mix(in srgb, var(--tag-fg) 28%, transparent);
}
.tag-cloud-item.active .tag-cloud-item__count {
opacity: 0.8;
color: #fff;
}
.dark .widget-card--tags .widget-card-body--tags {
background:
radial-gradient(ellipse 90% 70% at 10% 0%, color-mix(in srgb, var(--j13-green) 16%, transparent), transparent 55%),
radial-gradient(ellipse 70% 60% at 95% 100%, rgba(42, 157, 143, 0.12), transparent 50%),
var(--j13-bg-block);
}
.dark .tag-cloud-item--t0 { --tag-fg: #6ee7a8; --tag-bg: rgba(24, 160, 88, 0.16); --tag-bd: rgba(24, 160, 88, 0.32); }
.dark .tag-cloud-item--t1 { --tag-fg: #5eead4; --tag-bg: rgba(42, 157, 143, 0.16); --tag-bd: rgba(42, 157, 143, 0.32); }
.dark .tag-cloud-item--t2 { --tag-fg: #fbbf24; --tag-bg: rgba(245, 158, 11, 0.14); --tag-bd: rgba(245, 158, 11, 0.3); }
.dark .tag-cloud-item--t3 { --tag-fg: #7dd3fc; --tag-bg: rgba(59, 130, 196, 0.16); --tag-bd: rgba(59, 130, 196, 0.32); }
.dark .tag-cloud-item--t4 { --tag-fg: #fdba74; --tag-bg: rgba(234, 88, 12, 0.14); --tag-bd: rgba(234, 88, 12, 0.3); }
.dark .tag-cloud-item--t5 { --tag-fg: #bef264; --tag-bg: rgba(132, 204, 22, 0.14); --tag-bd: rgba(132, 204, 22, 0.3); }
/* 文章目录树(详情左栏) */
.sidebar--outline {
display: flex;
flex-direction: column;
gap: 4px;
}
.sidebar-outline-back {
margin: 0 8px 4px;
width: calc(100% - 16px);
color: var(--color-text-2);
}
.article-outline {
display: flex;
flex-direction: column;
min-height: 0;
flex: 1;
}
.article-outline-head {
display: flex;
align-items: center;
gap: 5px;
margin-top: 4px;
}
.article-outline-head svg {
opacity: 0.7;
}
.article-outline-empty {
margin: 0;
padding: 8px 16px 16px;
font-size: 12px;
color: var(--color-text-4);
line-height: 1.5;
}
.article-outline-nav {
display: flex;
flex-direction: column;
gap: 1px;
padding: 0 8px 16px;
}
.article-outline-item {
display: block;
width: 100%;
margin: 0;
padding: 7px 10px;
border: none;
border-radius: 6px;
background: transparent;
color: var(--color-text-2);
font-size: 13px;
line-height: 1.4;
text-align: left;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
border-left: 2px solid transparent;
transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.article-outline-item:hover {
background: var(--j13-bg-block-muted);
color: var(--color-text-1);
}
.article-outline-item.active {
background: var(--j13-green-bg);
color: var(--j13-green);
font-weight: 600;
border-left-color: var(--j13-green);
}
.article-outline-item--l2 { padding-left: 18px; font-size: 12.5px; }
.article-outline-item--l3 { padding-left: 26px; font-size: 12px; color: var(--color-text-3); }
.article-outline-item--l4,
.article-outline-item--l5,
.article-outline-item--l6 { padding-left: 34px; font-size: 12px; color: var(--color-text-3); }
.article-outline-item--l3.active,
.article-outline-item--l4.active,
.article-outline-item--l5.active,
.article-outline-item--l6.active {
color: var(--j13-green);
}
.post-detail-content .post-heading-anchor {
scroll-margin-top: 16px;
}
.post-detail-toc-mobile {
margin: 0 0 16px;
padding: 10px 12px;
border: 1px solid var(--j13-border-light);
border-radius: 10px;
background: var(--j13-bg-block-muted);
}
.post-detail-toc-mobile > summary {
cursor: pointer;
font-size: 13px;
font-weight: 600;
color: var(--color-text-2);
list-style: none;
}
.post-detail-toc-mobile > summary::-webkit-details-marker {
display: none;
}
.post-detail-toc-mobile .article-outline-head {
display: none;
}
.post-detail-toc-mobile .article-outline-nav {
padding: 8px 0 0;
}
.post-detail-toc-mobile .article-outline-item {
white-space: normal;
}
.main-content {
flex: 1;
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
/* 与左栏、顶栏同色,避免露出外层画布灰底 */
background: var(--j13-bg-surface);
}
/* 主内容 + 右栏:与左栏同色,整块平铺 */
.content-workspace {
flex: 1;
display: flex;
min-width: 0;
min-height: 0;
overflow: hidden;
background: var(--j13-bg-surface);
}
.aside-panel {
width: var(--j13-aside-w);
flex-shrink: 0;
border-left: 1px solid var(--j13-border-light);
overflow-y: auto;
padding: 0;
display: flex;
flex-direction: column;
background: var(--j13-bg-surface);
}
.aside-panel-inner {
display: flex;
flex-direction: column;
gap: 10px;
padding: 12px;
flex: 1;
}
@media (max-width: 1100px) { .aside-panel { display: none; } }
/* 窄屏社区动态抽屉(替代隐藏的右侧栏) */
.aside-drawer-root,
.sidebar-drawer-root {
position: fixed;
inset: 0;
z-index: 95;
}
.aside-drawer-backdrop {
position: absolute;
inset: 0;
border: none;
padding: 0;
background: rgba(15, 23, 42, 0.35);
cursor: pointer;
}
.aside-drawer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: min(360px, 92vw);
background: var(--j13-bg-surface);
border-left: 1px solid var(--j13-border);
display: flex;
flex-direction: column;
box-shadow: -8px 0 24px rgba(15, 23, 42, 0.12);
animation: aside-drawer-in 0.2s ease;
}
/* 手机端左侧导航抽屉(替代隐藏的左侧栏) */
.sidebar-drawer {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: min(300px, 86vw);
background: var(--j13-bg-surface);
border-right: 1px solid var(--j13-border);
display: flex;
flex-direction: column;
box-shadow: 8px 0 24px rgba(15, 23, 42, 0.12);
animation: sidebar-drawer-in 0.2s ease;
}
.sidebar-drawer-body {
display: flex;
flex-direction: column;
}
.sidebar-drawer-body .sidebar {
display: block;
width: 100%;
border-right: none;
flex: 1;
min-height: 0;
}
@keyframes aside-drawer-in {
from { transform: translateX(12px); opacity: 0.6; }
to { transform: translateX(0); opacity: 1; }
}
@keyframes sidebar-drawer-in {
from { transform: translateX(-12px); opacity: 0.6; }
to { transform: translateX(0); opacity: 1; }
}
.aside-drawer-head {
height: var(--j13-header-h);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 12px 0 16px;
border-bottom: 1px solid var(--j13-border);
font-size: 14px;
font-weight: 600;
background: var(--j13-bg-surface);
}
.aside-drawer-body {
flex: 1;
min-height: 0;
overflow-y: auto;
}
@media (prefers-reduced-motion: reduce) {
.aside-drawer,
.sidebar-drawer { animation: none; }
}
@media (max-width: 768px) {
.app-frame { border-left: none; border-right: none; }
.sidebar { display: none; }
.header-inner { padding: 0 12px; gap: 10px; }
.header-search-wrap { max-width: none; }
.header-compose-btn { width: 34px; padding: 0; justify-content: center; }
.feed-banner-row { flex-direction: row; gap: 10px; }
}
.page-wrap {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
display: flex;
flex-direction: column;
scrollbar-width: none;
-ms-overflow-style: none;
padding: 12px;
}
/* 首页 Feed仅列表区域滚动避免与 page-wrap 双滚动 */
.page-wrap--feed {
overflow: hidden;
}
/* 回到顶部:贴合 app-frame 右缘,低于顶栏 / dialog */
.back-to-top {
position: fixed;
right: max(16px, calc((100vw - min(100vw, var(--j13-max-w))) / 2 + 16px));
bottom: 28px;
z-index: 90;
width: 42px;
height: 42px;
padding: 0;
border: 1px solid var(--j13-border);
border-radius: 50%;
background: var(--j13-bg-surface);
color: var(--j13-green);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--j13-shadow-card);
opacity: 0;
visibility: hidden;
pointer-events: none;
transform: translateY(10px);
transition:
opacity 0.2s ease,
transform 0.2s ease,
visibility 0.2s ease,
background 0.15s ease,
color 0.15s ease,
border-color 0.15s ease,
box-shadow 0.15s ease;
}
.back-to-top--visible {
opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateY(0);
}
.back-to-top:hover {
background: var(--j13-green);
color: #fff;
border-color: var(--j13-green);
box-shadow: 0 3px 12px rgba(26, 127, 75, 0.28);
}
.back-to-top:active {
transform: scale(0.96);
}
@media (max-width: 768px) {
.back-to-top {
right: 14px;
bottom: 20px;
width: 40px;
height: 40px;
}
}
@media (prefers-reduced-motion: reduce) {
.back-to-top {
transition: opacity 0.15s ease, visibility 0.15s ease;
transform: none;
}
.back-to-top--visible {
transform: none;
}
.back-to-top:active {
transform: none;
}
}
.feed-panel {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
border: 1px solid var(--j13-border-light);
border-radius: 12px;
background: var(--j13-bg-block);
box-shadow: var(--j13-shadow-card);
overflow: hidden;
}
.page-wrap::-webkit-scrollbar {
display: none;
}
.virtual-list-wrap,
.post-list-scroll {
flex: 1;
overflow: auto;
min-height: 0;
scrollbar-width: none;
-ms-overflow-style: none;
}
.virtual-list-wrap::-webkit-scrollbar,
.post-list-scroll::-webkit-scrollbar {
display: none;
}
.feed-list-footer {
display: flex;
justify-content: center;
align-items: center;
padding: 12px 16px 16px;
}
.feed-list-footer--end {
font-size: 12px;
color: var(--color-text-3);
padding: 10px 12px;
}
.feed-list-footer--pagination {
border-top: 1px solid var(--j13-border-light);
margin-top: 4px;
}
.feed-pagination {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px 16px;
width: 100%;
flex-wrap: wrap;
}
.feed-pagination__meta {
margin: 0;
font-size: 12px;
color: var(--color-text-3);
white-space: nowrap;
min-width: 4.5rem;
}
.feed-pagination__meta strong {
font-weight: 600;
color: var(--color-text-2);
font-variant-numeric: tabular-nums;
}
.feed-pagination__pages {
display: flex;
align-items: center;
justify-content: center;
gap: 2px;
flex: 1;
min-width: 0;
}
.feed-pagination__nav,
.feed-pagination__page {
display: inline-flex;
align-items: center;
justify-content: center;
height: 30px;
min-width: 30px;
padding: 0 6px;
border: none;
border-radius: 7px;
background: transparent;
color: var(--color-text-2);
font-family: inherit;
font-size: 13px;
font-variant-numeric: tabular-nums;
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.feed-pagination__nav:hover:not(:disabled),
.feed-pagination__page:hover:not(:disabled) {
background: var(--j13-bg-block-muted);
color: var(--color-text-1);
}
.feed-pagination__page.is-active {
background: var(--j13-green-bg);
color: var(--j13-green);
font-weight: 600;
cursor: default;
}
.feed-pagination__nav:disabled,
.feed-pagination__page:disabled:not(.is-active) {
opacity: 0.35;
cursor: not-allowed;
}
.feed-pagination__gap {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
color: var(--color-text-4);
font-size: 13px;
user-select: none;
}
.feed-pagination__jump {
display: inline-flex;
align-items: center;
gap: 6px;
margin: 0;
padding: 2px 8px 2px 10px;
border-radius: 8px;
background: var(--j13-bg-block-muted);
border: 1px solid transparent;
transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.feed-pagination__jump:focus-within {
background: var(--j13-bg-surface);
border-color: color-mix(in srgb, var(--j13-green) 30%, transparent);
box-shadow: 0 0 0 3px var(--j13-green-bg);
}
.feed-pagination__jump-label,
.feed-pagination__jump-suffix {
font-size: 12px;
color: var(--color-text-3);
white-space: nowrap;
}
.feed-pagination__jump-input {
width: 2.4rem;
height: 24px;
border: none;
outline: none;
background: transparent;
text-align: center;
font-family: inherit;
font-size: 13px;
color: var(--color-text-1);
font-variant-numeric: tabular-nums;
}
.feed-pagination__jump-input:disabled {
opacity: 0.5;
}
@media (max-width: 640px) {
.feed-pagination {
justify-content: center;
}
.feed-pagination__meta {
width: 100%;
text-align: center;
min-width: 0;
}
.feed-pagination__pages {
flex: 1 1 100%;
order: 1;
}
.feed-pagination__jump {
order: 2;
}
}
.page-inner { padding: 20px 24px; max-width: 720px; }
.page-inner-wide { padding: 20px 24px; }
.page-inner-wide--profile { max-width: 820px; }
.page-title { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.page-desc { font-size: 13px; color: var(--color-text-3); margin: 0 0 20px; }
.content-surface {
background: var(--j13-bg-block);
border: 1px solid var(--j13-border-light);
border-radius: 12px;
box-shadow: var(--j13-shadow-soft);
overflow: hidden;
}
.feed-panel .content-surface {
background: transparent;
border: none;
border-radius: 0;
box-shadow: none;
}
.section-card {
background: var(--j13-bg-block);
border: 1px solid var(--j13-border-light);
border-radius: 12px;
box-shadow: var(--j13-shadow-soft);
padding: 20px;
margin-bottom: 16px;
}
.section-card-title {
font-size: 15px;
font-weight: 600;
margin: 0 0 16px;
padding-bottom: 12px;
border-bottom: 1px solid var(--j13-border-light);
}
.feed-top {
flex-shrink: 0;
border-bottom: 1px solid var(--j13-border-light);
background: var(--j13-bg-block);
position: relative;
}
.feed-top::after {
content: '';
position: absolute;
left: 16px;
right: 16px;
bottom: 0;
height: 1px;
background: linear-gradient(90deg, var(--j13-green) 0%, transparent 55%);
opacity: 0.35;
pointer-events: none;
}
@media (min-width: 900px) {
.feed-top:not(:has(.feed-head--solo)) {
display: flex;
align-items: center;
gap: 16px;
padding: 6px 16px;
}
.feed-top:not(:has(.feed-head--solo)) .feed-head {
padding: 0;
flex-shrink: 0;
}
.feed-top:not(:has(.feed-head--solo)) .feed-toolbar {
padding: 0;
flex: 1;
min-width: 0;
}
}
.feed-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 8px 16px 6px;
}
.feed-head--solo {
padding-bottom: 8px;
}
.feed-head__title {
display: flex;
align-items: baseline;
gap: 10px;
min-width: 0;
flex: 1;
}
.feed-head h2 {
margin: 0;
font-size: 15px;
font-weight: 600;
white-space: nowrap;
}
.feed-head__meta {
font-size: 12px;
color: var(--color-text-3);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.feed-head__stats {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
}
.feed-stat-chip {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
border-radius: 999px;
font-size: 11px;
color: var(--color-text-3);
background: var(--j13-bg-block-muted);
white-space: nowrap;
}
.feed-stat-chip svg {
width: 12px;
height: 12px;
color: var(--j13-green);
opacity: 0.85;
}
.feed-stat-chip strong {
color: var(--j13-green);
font-weight: 600;
}
.feed-head__meta strong {
color: var(--j13-green);
font-weight: 600;
}
.feed-head__dot {
margin: 0 4px;
opacity: 0.55;
}
.feed-head__clear {
flex-shrink: 0;
border: none;
background: transparent;
padding: 0;
font-size: 12px;
color: var(--j13-green);
cursor: pointer;
font-family: inherit;
}
.feed-head__clear:hover {
text-decoration: underline;
}
.feed-toolbar {
display: flex;
align-items: center;
gap: 10px;
padding: 0 16px 8px;
}
.feed-toolbar__spacer {
flex: 1;
min-width: 0;
}
.feed-toolbar__count {
flex-shrink: 0;
font-size: 12px;
color: var(--color-text-3);
white-space: nowrap;
}
/* 兼容旧类名,避免其他页面引用失效 */
.feed-banner {
padding: 8px 16px;
border-bottom: 1px solid var(--j13-border-light);
}
.feed-banner-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.feed-banner-title { flex: 1; min-width: 0; }
.feed-banner h2 { margin: 0; font-size: 15px; font-weight: 600; }
.feed-banner p { margin: 0; font-size: 12px; color: var(--color-text-3); line-height: 1.45; }
.feed-stats {
display: flex;
flex-wrap: wrap;
gap: 8px 12px;
margin-top: 6px;
font-size: 12px;
color: var(--color-text-3);
}
.feed-stats strong { color: var(--j13-green); font-weight: 600; }
.feed-action-slot {
display: inline-block;
width: 88px;
height: 28px;
border-radius: 4px;
background: var(--color-fill-3);
}
.feed-actions {
min-height: 28px;
}
.mobile-board-bar {
display: none;
padding: 8px 12px;
gap: 8px;
overflow-x: auto;
border-bottom: 1px solid var(--j13-border);
background: var(--j13-bg-surface);
}
@media (max-width: 768px) { .mobile-board-bar { display: flex; } }
.board-chip {
flex-shrink: 0;
padding: 4px 12px;
border-radius: 16px;
font-size: 13px;
font-family: inherit;
color: inherit;
border: 1px solid var(--j13-border-light);
background: var(--j13-bg-block);
cursor: pointer;
transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.board-chip:focus-visible {
outline: 2px solid var(--j13-green);
outline-offset: 2px;
}
.board-chip.active {
background: var(--j13-green-bg);
border-color: transparent;
color: var(--j13-green);
font-weight: 600;
}
.board-chip.active.board-chip--0 { background: var(--board-0-bg); color: var(--board-0-color); }
.board-chip.active.board-chip--1 { background: var(--board-1-bg); color: var(--board-1-color); }
.board-chip.active.board-chip--2 { background: var(--board-2-bg); color: var(--board-2-color); }
.board-chip.active.board-chip--3 { background: var(--board-3-bg); color: var(--board-3-color); }
.board-chip.active.board-chip--4 { background: var(--board-4-bg); color: var(--board-4-color); }
.board-chip.active.board-chip--5 { background: var(--board-5-bg); color: var(--board-5-color); }
.board-chip.active.board-chip--6 { background: var(--board-6-bg); color: var(--board-6-color); }
.board-chip.active.board-chip--7 { background: var(--board-7-bg); color: var(--board-7-color); }
/* 帖子排序栏:与左侧栏 active 样式保持一致 */
.feed-sort-bar {
display: flex;
align-items: center;
gap: 2px;
flex: 1;
min-width: 0;
overflow-x: auto;
scrollbar-width: none;
}
.feed-sort-bar::-webkit-scrollbar { display: none; }
.feed-sort-tab {
display: inline-flex;
align-items: center;
gap: 5px;
height: 28px;
padding: 0 10px;
border: none;
border-radius: 6px;
background: transparent;
color: var(--color-text-2);
font-family: inherit;
font-size: 12px;
cursor: pointer;
flex-shrink: 0;
white-space: nowrap;
transition: background 0.15s, color 0.15s;
}
.feed-sort-tab:hover {
background: var(--j13-bg-block-muted);
color: var(--color-text-1);
}
.feed-sort-tab.active {
background: var(--j13-green-bg);
color: var(--j13-green);
font-weight: 600;
}
.feed-sort-tab svg {
width: 14px;
height: 14px;
flex-shrink: 0;
}
@media (max-width: 768px) {
.feed-head {
flex-wrap: wrap;
padding: 8px 12px 6px;
}
.feed-head__meta,
.feed-head__stats { display: none; }
.feed-toolbar {
padding: 0 12px 8px;
}
.page-wrap {
padding: 0;
}
.feed-panel {
border: none;
border-radius: 0;
box-shadow: none;
}
}
.post-list-bar {
display: flex;
justify-content: space-between;
padding: 10px 20px;
font-size: 13px;
color: var(--color-text-3);
border-bottom: 1px solid var(--j13-border-light);
}
.post-row {
display: flex;
align-items: flex-start;
gap: 12px;
width: 100%;
padding: 12px 20px;
border: none;
border-bottom: 1px solid var(--j13-border-light);
border-radius: 0;
background: transparent;
color: inherit;
font: inherit;
text-align: left;
cursor: pointer;
transition: background 0.15s, box-shadow 0.15s;
position: relative;
}
.post-row::before {
content: '';
position: absolute;
left: 0;
top: 8px;
bottom: 8px;
width: 3px;
border-radius: 0 3px 3px 0;
background: var(--j13-green);
opacity: 0;
transition: opacity 0.15s;
}
.post-row:hover {
background: var(--j13-bg-block-accent);
}
.post-row:hover::before,
.post-row:focus-visible::before {
opacity: 1;
}
.post-row:focus-visible {
outline: none;
background: var(--j13-bg-block-accent);
box-shadow: inset 0 0 0 2px var(--j13-green-bg);
}
.post-row:hover .post-title,
.post-row:focus-visible .post-title {
color: var(--j13-green);
}
.post-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: var(--j13-green);
color: #fff;
font-size: 14px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
overflow: hidden;
box-shadow: 0 0 0 2px var(--j13-bg-block), 0 0 0 3px var(--j13-border);
transition: box-shadow 0.15s;
}
.post-row:hover .post-avatar,
.post-row:focus-visible .post-avatar {
box-shadow: 0 0 0 2px var(--j13-bg-block), 0 0 0 3px var(--j13-green);
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-body { flex: 1; min-width: 0; }
.post-title {
font-size: 14px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-bottom: 4px;
color: var(--color-text-1);
transition: color 0.15s;
}
.post-pinned-icon {
display: inline-block;
vertical-align: -0.15em;
flex-shrink: 0;
color: #e53935;
stroke-width: 1.5;
}
.post-meta { font-size: 12px; color: var(--color-text-3); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-stats {
display: flex;
gap: 8px;
flex-shrink: 0;
padding-top: 2px;
}
.post-stat {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 8px;
border-radius: 999px;
font-size: 11px;
color: var(--color-text-3);
background: var(--j13-bg-block-muted);
transition: background 0.15s, color 0.15s;
}
.post-stat svg {
width: 12px;
height: 12px;
flex-shrink: 0;
}
.post-row:hover .post-stat,
.post-row:focus-visible .post-stat {
background: var(--j13-green-bg);
color: var(--j13-green);
}
.post-stat--zero {
opacity: 0.55;
}
/* 板块色标 Badge */
.board-badge {
display: inline-flex;
align-items: center;
padding: 1px 7px;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
line-height: 1.5;
white-space: nowrap;
}
.board-badge--0 { background: var(--board-0-bg); color: var(--board-0-color); }
.board-badge--1 { background: var(--board-1-bg); color: var(--board-1-color); }
.board-badge--2 { background: var(--board-2-bg); color: var(--board-2-color); }
.board-badge--3 { background: var(--board-3-bg); color: var(--board-3-color); }
.board-badge--4 { background: var(--board-4-bg); color: var(--board-4-color); }
.board-badge--5 { background: var(--board-5-bg); color: var(--board-5-color); }
.board-badge--6 { background: var(--board-6-bg); color: var(--board-6-color); }
.board-badge--7 { background: var(--board-7-bg); color: var(--board-7-color); }
/* 板块管理:图标 / 色标选择器 */
.board-manage-dialog {
max-width: 520px;
}
.board-appearance-picker__preview {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
}
.board-appearance-picker__preview-icon {
width: 36px;
height: 36px;
border-radius: 8px;
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--j13-bg-block-muted);
}
.board-appearance-picker__preview-icon svg {
width: 20px;
height: 20px;
}
.board-appearance-picker__preview-hint {
font-size: 12px;
color: var(--color-text-3);
}
.board-icon-grid {
display: grid;
grid-template-columns: repeat(8, 1fr);
gap: 6px;
}
.board-icon-option {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
aspect-ratio: 1;
border: 1px solid var(--j13-border-light);
border-radius: 8px;
background: var(--j13-bg-block);
color: var(--color-text-2);
cursor: pointer;
transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.board-icon-option svg {
width: 18px;
height: 18px;
}
.board-icon-option:hover {
border-color: var(--j13-green);
background: var(--j13-bg-block-muted);
}
.board-icon-option--active {
border-color: var(--j13-green);
background: var(--j13-green-bg);
color: var(--j13-green);
}
.board-icon-option__auto {
font-size: 12px;
font-weight: 700;
color: var(--color-text-3);
}
.board-color-grid {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.board-color-option {
width: 28px;
height: 28px;
border-radius: 50%;
border: 2px solid transparent;
cursor: pointer;
flex-shrink: 0;
transition: transform 0.12s, box-shadow 0.12s;
}
.board-color-option:hover {
transform: scale(1.08);
}
.board-color-option--active {
box-shadow: 0 0 0 2px var(--j13-bg-block), 0 0 0 3px var(--j13-green);
}
.board-color-option--auto {
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--j13-bg-block-muted);
font-size: 11px;
font-weight: 700;
color: var(--color-text-3);
}
.board-color-option--0 { background: var(--board-0-color); }
.board-color-option--1 { background: var(--board-1-color); }
.board-color-option--2 { background: var(--board-2-color); }
.board-color-option--3 { background: var(--board-3-color); }
.board-color-option--4 { background: var(--board-4-color); }
.board-color-option--5 { background: var(--board-5-color); }
.board-color-option--6 { background: var(--board-6-color); }
.board-color-option--7 { background: var(--board-7-color); }
.board-table-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 8px;
background: var(--j13-bg-block-muted);
}
.board-table-icon svg {
width: 18px;
height: 18px;
}
/* 帖子列表骨架屏 */
@keyframes skeleton-shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
.skeleton {
background: linear-gradient(
90deg,
var(--j13-bg-block-muted) 0%,
var(--j13-bg-block) 45%,
var(--j13-bg-block-muted) 90%
);
background-size: 200% 100%;
animation: skeleton-shimmer 1.5s ease-in-out infinite;
border-radius: 6px;
}
.post-row--skeleton {
pointer-events: none;
cursor: default;
}
.post-row--skeleton::before {
display: none;
}
.post-row--skeleton:hover {
background: transparent;
}
.skeleton--avatar {
width: 36px;
height: 36px;
border-radius: 50%;
flex-shrink: 0;
}
.skeleton--title {
height: 14px;
margin-bottom: 8px;
max-width: 100%;
}
.skeleton-meta-row {
display: flex;
align-items: center;
gap: 8px;
}
.skeleton--badge {
width: 52px;
height: 18px;
border-radius: 4px;
flex-shrink: 0;
}
.skeleton--meta {
height: 12px;
width: 56px;
flex-shrink: 0;
}
.skeleton--meta-short {
width: 72px;
}
.skeleton--stat {
width: 36px;
height: 22px;
border-radius: 999px;
}
.skeleton--feed-title {
width: 96px;
height: 18px;
margin-bottom: 10px;
}
.skeleton--stat-chip {
width: 72px;
height: 22px;
border-radius: 999px;
}
.feed-toolbar--skeleton {
pointer-events: none;
}
.skeleton--sort-tab {
width: 72px;
height: 28px;
border-radius: 8px;
}
.skeleton--count {
width: 56px;
height: 14px;
margin-left: auto;
}
.sidebar-nav-item--skeleton {
pointer-events: none;
cursor: default;
gap: 10px;
}
.sidebar-nav-item--skeleton:hover {
background: transparent;
}
.skeleton--sidebar-icon {
width: 18px;
height: 18px;
border-radius: 4px;
flex-shrink: 0;
}
.skeleton--sidebar-label {
height: 12px;
flex: 1;
max-width: 120px;
}
.widget-item--skeleton {
pointer-events: none;
cursor: default;
}
.widget-item--skeleton:hover {
background: transparent;
}
.skeleton--widget-rank {
width: 18px;
height: 18px;
border-radius: 4px;
flex-shrink: 0;
}
.skeleton--widget-avatar {
width: 22px;
height: 22px;
border-radius: 50%;
flex-shrink: 0;
}
.skeleton--widget-title {
height: 12px;
flex: 1;
min-width: 0;
}
.skeleton--widget-time {
width: 36px;
height: 10px;
flex-shrink: 0;
}
.empty-state {
text-align: center;
padding: 60px 24px;
color: var(--color-text-3);
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.empty-feed {
text-align: center;
padding: 48px 24px;
color: var(--color-text-3);
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.empty-state-icon,
.empty-feed-icon,
.comment-empty-icon {
display: block;
color: var(--color-text-4);
margin-bottom: 4px;
opacity: 0.9;
}
.comment-empty-icon {
margin: 0 auto 8px;
}
.empty-feed-hint {
margin: 0;
font-size: 12px;
color: var(--color-text-4);
}
.empty-feed-actions {
display: flex;
justify-content: center;
gap: 8px;
margin-top: 12px;
}
.projects-list .project-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
padding: 16px 18px;
border-bottom: 1px solid var(--color-border);
}
.projects-list .project-row:last-child {
border-bottom: none;
}
.project-row-body {
min-width: 0;
flex: 1;
}
.project-row-title {
margin: 0 0 6px;
font-size: 15px;
font-weight: 600;
color: var(--color-text);
}
.project-row-desc {
margin: 0 0 8px;
font-size: 13px;
line-height: 1.5;
color: var(--color-text-2);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.project-row-meta {
display: flex;
flex-wrap: wrap;
gap: 12px;
font-size: 12px;
color: var(--color-text-3);
}
.project-row-link {
display: inline-flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
font-size: 13px;
color: var(--color-primary);
text-decoration: none;
white-space: nowrap;
padding-top: 2px;
}
.project-row-link:hover {
text-decoration: underline;
}
.projects-pager {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
margin-top: 16px;
}
.projects-pager-info {
font-size: 13px;
color: var(--color-text-3);
}
.admin-entry-desc {
font-size: 13px;
color: var(--color-text-3);
margin: 0 0 12px;
}
.sidebar-section--spaced {
margin-top: 8px;
}
.error-boundary {
padding: 24px;
text-align: center;
}
.error-boundary-msg {
color: var(--color-text-3);
font-size: 13px;
margin: 8px 0 16px;
}
.auth-footer {
text-align: center;
margin-top: 16px;
font-size: 13px;
color: var(--color-text-3);
}
.post-detail-loading {
display: flex;
align-items: center;
justify-content: center;
padding: 60px;
flex: 1;
}
.post-detail-page {
display: flex;
flex-direction: column;
min-height: 0;
gap: 16px;
padding: 16px 20px 24px;
background: var(--j13-bg-workspace);
}
.post-detail-header {
padding: 16px 20px 20px;
background: var(--j13-bg-surface);
border: 1px solid var(--j13-border-light);
border-radius: 12px;
box-shadow: var(--j13-shadow-card);
flex-shrink: 0;
}
.post-detail-nav {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.post-detail-board-tag { margin: 0 !important; }
.post-detail-head { margin-bottom: 12px; }
.post-detail-title {
font-size: 20px;
font-weight: 600;
margin: 0 0 12px;
line-height: 1.45;
word-break: break-word;
}
.post-detail-author-row {
display: flex;
align-items: center;
gap: 10px;
}
.post-avatar-lg {
width: 40px;
height: 40px;
font-size: 16px;
}
.post-detail-author-info {
display: flex;
flex-direction: column;
gap: 2px;
}
.post-detail-author-name {
font-size: 14px;
font-weight: 600;
color: var(--color-text-1);
}
.post-detail-meta-line {
font-size: 12px;
color: var(--color-text-3);
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
}
.post-detail-locked-tag {
display: inline-flex;
align-items: center;
gap: 3px;
margin-left: 6px;
color: hsl(var(--destructive));
font-size: 11px;
}
.post-detail-edit-hint {
font-size: 12px;
color: var(--color-text-3);
align-self: center;
}
.post-revision-overlay {
position: fixed;
inset: 0;
z-index: 100;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
.post-revision-overlay--fullscreen {
padding: 0;
}
.post-revision-panel {
background: hsl(var(--background));
border-radius: 12px;
width: min(1080px, 100%);
height: min(88vh, 900px);
display: flex;
flex-direction: column;
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
overflow: hidden;
}
.post-revision-panel--fullscreen {
width: 100%;
height: 100%;
max-height: none;
border-radius: 0;
}
.post-revision-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px 16px;
border-bottom: 1px solid var(--j13-border-light);
flex-shrink: 0;
}
.post-revision-head-left {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.post-revision-head-left h3 {
font-size: 15px;
font-weight: 600;
margin: 0;
}
.post-revision-head-sub {
font-size: 12px;
color: var(--color-text-3);
padding-left: 8px;
border-left: 1px solid var(--j13-border-light);
}
.post-revision-head-actions {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.post-revision-view-tabs {
display: flex;
gap: 2px;
background: hsl(var(--muted));
border-radius: 8px;
padding: 3px;
}
.post-revision-tab {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 5px 10px;
border: none;
background: none;
border-radius: 6px;
font-size: 12px;
color: var(--color-text-2);
cursor: pointer;
white-space: nowrap;
}
.post-revision-tab:hover {
color: var(--color-text-1);
}
.post-revision-tab.active {
background: hsl(var(--background));
color: var(--color-text-1);
font-weight: 500;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.post-revision-icon-btn {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: none;
background: none;
border-radius: 8px;
cursor: pointer;
color: var(--color-text-3);
}
.post-revision-icon-btn:hover {
background: hsl(var(--muted));
color: var(--color-text-1);
}
.post-revision-loading,
.post-revision-empty {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 48px 24px;
color: var(--color-text-3);
font-size: 14px;
}
.post-revision-body {
display: flex;
flex: 1;
min-height: 0;
overflow: hidden;
}
.post-revision-sidebar {
width: 260px;
flex-shrink: 0;
display: flex;
flex-direction: column;
border-right: 1px solid var(--j13-border-light);
min-height: 0;
}
.post-revision-sidebar-label {
padding: 10px 14px 6px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--color-text-3);
}
.post-revision-list {
list-style: none;
margin: 0;
padding: 4px 8px;
overflow-y: auto;
flex: 1;
min-height: 0;
}
.post-revision-item {
display: flex;
flex-direction: column;
gap: 4px;
width: 100%;
text-align: left;
padding: 10px 12px;
border: none;
background: none;
border-radius: 8px;
cursor: pointer;
font-size: 13px;
margin-bottom: 2px;
}
.post-revision-item:hover,
.post-revision-item.active {
background: hsl(var(--muted));
}
.post-revision-item-head {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.post-revision-item-num {
font-size: 11px;
font-weight: 600;
color: var(--color-text-3);
}
.post-revision-item-title {
font-weight: 500;
color: var(--color-text-1);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.post-revision-item-meta {
font-size: 11px;
color: var(--color-text-3);
}
.post-revision-badge {
font-size: 10px;
padding: 1px 6px;
border-radius: 4px;
background: hsl(var(--primary) / 0.12);
color: hsl(var(--primary));
font-weight: 500;
}
.post-revision-badge--none {
background: hsl(var(--muted));
color: var(--color-text-3);
}
.post-revision-current {
padding: 12px 14px;
border-top: 1px solid var(--j13-border-light);
background: hsl(var(--muted) / 0.4);
flex-shrink: 0;
}
.post-revision-current-label {
display: block;
font-size: 11px;
color: var(--color-text-3);
margin-bottom: 4px;
}
.post-revision-current-title {
font-size: 13px;
font-weight: 500;
color: var(--color-text-1);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.post-revision-main {
flex: 1;
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
}
.post-revision-main-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px 20px;
border-bottom: 1px solid var(--j13-border-light);
flex-shrink: 0;
}
.post-revision-main-editor {
font-size: 14px;
font-weight: 600;
color: var(--color-text-1);
margin-right: 8px;
}
.post-revision-main-time {
font-size: 12px;
color: var(--color-text-3);
}
.post-revision-scroll {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
min-height: 0;
padding: 16px 20px 24px;
-webkit-overflow-scrolling: touch;
}
/* Diff 视图 */
.revision-diff-view {
display: flex;
flex-direction: column;
gap: 20px;
}
.revision-diff-section h4 {
font-size: 12px;
font-weight: 600;
color: var(--color-text-3);
text-transform: uppercase;
letter-spacing: 0.04em;
margin: 0 0 8px;
}
.revision-diff-block {
padding: 12px 14px;
background: hsl(var(--muted) / 0.35);
border-radius: 8px;
font-size: 14px;
line-height: 1.6;
word-break: break-word;
}
.revision-diff-inline del {
background: hsl(0 70% 95%);
color: hsl(0 60% 35%);
text-decoration: line-through;
border-radius: 2px;
padding: 0 2px;
}
.revision-diff-inline ins {
background: hsl(140 60% 93%);
color: hsl(140 50% 28%);
text-decoration: none;
border-radius: 2px;
padding: 0 2px;
}
.revision-diff-unchanged {
color: var(--color-text-3);
font-size: 13px;
}
.revision-diff-stats {
display: flex;
gap: 8px;
margin-bottom: 8px;
}
.revision-diff-stat {
font-size: 11px;
padding: 2px 8px;
border-radius: 4px;
font-weight: 500;
}
.revision-diff-stat--add {
background: hsl(140 60% 93%);
color: hsl(140 50% 28%);
}
.revision-diff-stat--del {
background: hsl(0 70% 95%);
color: hsl(0 60% 35%);
}
.revision-diff-pre {
margin: 0;
font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
font-size: 13px;
line-height: 1.55;
border: 1px solid var(--j13-border-light);
border-radius: 8px;
overflow: hidden;
}
.revision-diff-line {
display: flex;
padding: 1px 0;
white-space: pre-wrap;
word-break: break-word;
}
.revision-diff-line--add {
background: hsl(140 60% 95%);
}
.revision-diff-line--del {
background: hsl(0 70% 96%);
}
.revision-diff-line--same {
background: hsl(var(--background));
}
.revision-diff-gutter {
flex-shrink: 0;
width: 24px;
text-align: center;
color: var(--color-text-3);
user-select: none;
font-size: 12px;
}
.revision-diff-line--add .revision-diff-gutter { color: hsl(140 50% 40%); }
.revision-diff-line--del .revision-diff-gutter { color: hsl(0 60% 45%); }
.revision-diff-text {
flex: 1;
padding-right: 12px;
}
.revision-diff-line--add .revision-diff-text { color: hsl(140 45% 22%); }
.revision-diff-line--del .revision-diff-text {
color: hsl(0 55% 30%);
text-decoration: line-through;
}
/* 完整版本视图 */
.revision-full-view h4 {
font-size: 18px;
font-weight: 600;
margin: 0 0 8px;
line-height: 1.4;
}
.revision-full-tags {
font-size: 13px;
color: var(--color-text-3);
margin: 0 0 16px;
}
@media (max-width: 768px) {
.post-revision-overlay:not(.post-revision-overlay--fullscreen) {
padding: 0;
align-items: stretch;
}
.post-revision-panel:not(.post-revision-panel--fullscreen) {
width: 100%;
height: 100%;
border-radius: 0;
}
.post-revision-head {
flex-wrap: wrap;
}
.post-revision-head-actions {
width: 100%;
justify-content: space-between;
}
.post-revision-view-tabs {
flex: 1;
}
.post-revision-tab-label {
display: none;
}
.post-revision-tab.active .post-revision-tab-label {
display: inline;
}
.post-revision-body {
flex-direction: column;
}
.post-revision-sidebar {
width: 100%;
max-height: 180px;
border-right: none;
border-bottom: 1px solid var(--j13-border-light);
}
.post-revision-current {
display: none;
}
}
.post-detail-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 12px;
}
.post-detail-actions {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 12px;
margin-top: 28px;
padding-top: 20px;
border-top: 1px solid var(--j13-border-light);
/* 防止正文绕排 float 把操作栏卷到图片旁 */
clear: both;
position: relative;
}
.post-detail-content {
font-size: 15.5px;
line-height: 1.8;
word-break: break-word;
color: var(--color-text-1);
letter-spacing: 0.01em;
/* 建立 BFC把浮动图限制在正文容器内 */
display: flow-root;
}
.post-detail-content h1,
.post-detail-content h2,
.post-detail-content h3,
.post-detail-content h4,
.post-detail-content h5,
.post-detail-content h6 {
font-weight: 700;
line-height: 1.35;
letter-spacing: -0.02em;
color: var(--color-text-1);
margin: 1.55em 0 0.65em;
}
.post-detail-content > :first-child,
.post-detail-content h1:first-child,
.post-detail-content h2:first-child,
.post-detail-content h3:first-child,
.post-detail-content h4:first-child,
.post-detail-content h5:first-child,
.post-detail-content h6:first-child {
margin-top: 0;
}
.post-detail-content h1 {
font-size: 1.7em;
padding-bottom: 0.35em;
border-bottom: 1px solid var(--j13-border-light);
}
.post-detail-content h2 {
font-size: 1.4em;
padding-bottom: 0.28em;
border-bottom: 1px solid var(--j13-border-light);
}
.post-detail-content h3 { font-size: 1.22em; }
.post-detail-content h4 { font-size: 1.1em; }
.post-detail-content h5 { font-size: 1em; }
.post-detail-content h6 {
font-size: 0.92em;
color: var(--color-text-2);
font-weight: 600;
}
.post-detail-content ul,
.post-detail-content ol {
margin: 0 0 1em;
padding-left: 1.55em;
}
.post-detail-content ul {
list-style-type: disc;
}
.post-detail-content ol {
list-style-type: decimal;
}
.post-detail-content li {
display: list-item;
margin-bottom: 0.35em;
padding-left: 0.15em;
}
.post-detail-content li::marker {
color: var(--color-text-3);
}
.post-detail-content li > ul,
.post-detail-content li > ol {
margin-top: 0.35em;
margin-bottom: 0;
}
.post-detail-content hr {
margin: 1.75em 0;
border: none;
height: 1px;
background: linear-gradient(90deg, transparent, var(--j13-border), transparent);
}
/* 会员专属内容区块 */
.post-detail-content members-only,
.post-detail-content .post-members-only {
display: block;
margin: 16px 0;
border-radius: 0;
overflow: visible;
}
/* 已登录:降噪,仅左边框暗示专属段落 */
.post-detail-content .post-members-only--visible {
border: none;
border-left: 3px solid rgba(24, 160, 88, 0.45);
background: transparent;
box-shadow: none;
padding: 2px 0 2px 14px;
}
.post-detail-content .post-members-only__badge {
display: none;
}
.post-detail-content .post-members-only__body {
padding: 0;
}
.post-detail-content .post-members-only__body--empty {
color: var(--color-text-4);
font-style: italic;
}
/* 游客:流内嵌条,避免大卡片占屏 */
.post-detail-content .post-members-only--locked {
position: relative;
border: 1px solid rgba(24, 160, 88, 0.22);
border-left: 3px solid rgba(24, 160, 88, 0.55);
border-radius: 8px;
background: var(--j13-bg-surface);
overflow: hidden;
}
.post-detail-content .post-members-only__locked-wrap {
position: relative;
min-height: 0;
}
.post-detail-content .post-members-only__gate {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px 14px;
padding: 12px 14px;
text-align: left;
}
.post-detail-content .post-members-only__gate-icon {
width: 32px;
height: 32px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
background: rgba(24, 160, 88, 0.1);
color: var(--j13-green);
border: none;
margin: 0;
box-shadow: none;
}
.post-detail-content .post-members-only__gate-text {
flex: 1 1 160px;
min-width: 0;
}
.post-detail-content .post-members-only__gate-title {
margin: 0;
font-size: 13px;
font-weight: 600;
color: var(--color-text-1);
}
.post-detail-content .post-members-only__gate-desc {
margin: 2px 0 0;
font-size: 12px;
color: var(--color-text-3);
line-height: 1.4;
max-width: none;
}
.post-detail-content .post-members-only__gate-actions {
display: inline-flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}
.post-detail-content .post-members-only__gate-btn {
padding: 6px 14px;
border: none;
border-radius: 6px;
background: var(--j13-green);
color: #fff;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: background 0.15s;
}
.post-detail-content .post-members-only__gate-btn:hover {
background: var(--j13-green-hover);
}
.post-detail-content .post-members-only__gate-link {
padding: 0;
border: none;
background: none;
color: var(--j13-green);
font-size: 12px;
font-weight: 600;
cursor: pointer;
text-decoration: underline;
text-underline-offset: 2px;
}
.post-detail-content .post-members-only__gate-link:hover {
color: var(--j13-green-hover);
}
.dark .post-detail-content .post-members-only--visible {
border-left-color: rgba(35, 195, 107, 0.5);
background: transparent;
box-shadow: none;
}
.dark .post-detail-content .post-members-only--locked {
border-color: rgba(35, 195, 107, 0.25);
border-left-color: rgba(35, 195, 107, 0.55);
background: var(--j13-bg-surface);
}
.dark .post-detail-content .post-members-only__gate {
background: transparent;
}
.article-editor-tools-members {
display: inline-flex;
align-items: center;
gap: 6px;
margin-left: 4px;
}
.article-editor-tools-sep {
display: inline-block;
width: 1px;
height: 20px;
background: var(--j13-border-light);
flex-shrink: 0;
}
.article-editor-tools .article-tool-btn--members {
color: var(--j13-green);
}
.article-editor-tools .article-tool-btn--members:hover,
.article-editor-tools .article-tool-btn--members.active {
background: var(--j13-green-bg);
color: var(--j13-green-hover);
}
.post-members-only__unwrap-btn {
margin-left: 0;
padding: 2px 8px;
border: none;
border-radius: 12px;
background: transparent;
color: var(--color-text-3);
font-size: 11px;
font-weight: 500;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 3px;
transition: background 0.12s, color 0.12s;
}
.post-members-only__unwrap-btn:hover {
background: var(--j13-bg-block-muted);
color: var(--color-text-2);
}
.post-members-only__badge-actions {
margin-left: auto;
display: inline-flex;
align-items: center;
gap: 4px;
}
.post-members-only__remove-btn {
padding: 2px 8px;
border: none;
border-radius: 12px;
background: transparent;
color: var(--color-text-3);
font-size: 11px;
font-weight: 500;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 3px;
transition: background 0.12s, color 0.12s;
}
.post-members-only__remove-btn:hover {
background: rgba(220, 38, 38, 0.1);
color: #dc2626;
}
.editor-members-only--empty .post-members-only__remove-btn {
color: #dc2626;
background: rgba(220, 38, 38, 0.08);
}
.post-detail-content strong,
.post-detail-content b {
font-weight: 700;
color: var(--color-text-1);
}
.post-detail-content em,
.post-detail-content i {
font-style: italic;
}
.post-detail-content img {
max-width: 100%;
height: auto;
border-radius: 10px;
margin: 0.75em 0;
box-shadow: var(--j13-shadow-soft);
/* 非绕排图通栏显示,避免挤进左侧浮动图旁边 */
display: block;
clear: both;
}
.post-detail-content img.post-content-img--zoomable {
cursor: zoom-in;
transition: box-shadow 0.15s, transform 0.15s;
}
.post-detail-content img.post-content-img--zoomable:hover {
box-shadow: 0 4px 18px rgba(15, 23, 42, 0.14);
}
.post-detail-content img.post-content-img--zoomable:focus-visible {
outline: 2px solid var(--j13-green);
outline-offset: 3px;
}
/* 帖子图片灯箱 */
.image-lightbox {
position: fixed;
inset: 0;
z-index: 220;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
}
.image-lightbox-backdrop {
position: absolute;
inset: 0;
border: none;
padding: 0;
margin: 0;
background: rgba(8, 12, 20, 0.88);
cursor: zoom-out;
}
.image-lightbox-close {
position: absolute;
top: 16px;
right: 16px;
z-index: 2;
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
border: none;
border-radius: 999px;
background: rgba(255, 255, 255, 0.12);
color: #fff;
cursor: pointer;
transition: background 0.15s;
}
.image-lightbox-close:hover {
background: rgba(255, 255, 255, 0.22);
}
.image-lightbox-stage {
position: relative;
z-index: 1;
max-width: min(96vw, 1400px);
max-height: 90vh;
display: flex;
align-items: center;
justify-content: center;
}
.image-lightbox-img {
max-width: 100%;
max-height: 90vh;
width: auto;
height: auto;
object-fit: contain;
border-radius: 8px;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
user-select: none;
}
.image-lightbox-hint {
position: absolute;
bottom: 18px;
left: 50%;
transform: translateX(-50%);
z-index: 1;
margin: 0;
font-size: 12px;
color: rgba(255, 255, 255, 0.55);
pointer-events: none;
}
@media (max-width: 768px) {
.image-lightbox {
padding: 12px;
}
.image-lightbox-hint {
display: none;
}
}
.post-detail-content p { margin: 0 0 1em; }
.post-detail-content p:last-child { margin-bottom: 0; }
.post-detail-content a {
color: var(--j13-green);
text-decoration: underline;
text-underline-offset: 2px;
text-decoration-color: color-mix(in srgb, var(--j13-green) 35%, transparent);
}
.post-detail-content a:hover {
text-decoration-color: var(--j13-green);
}
.post-detail-content blockquote {
margin: 1.1em 0;
padding: 0.75em 1em;
border-left: 3px solid var(--j13-green);
background: color-mix(in srgb, var(--j13-green) 6%, var(--j13-bg-block-muted));
color: var(--color-text-2);
border-radius: 0 10px 10px 0;
}
.post-detail-content blockquote p:last-child { margin-bottom: 0; }
.post-detail-content table {
width: 100%;
margin: 1.1em 0;
border-collapse: collapse;
font-size: 14px;
overflow: hidden;
border: 1px solid var(--j13-border-light);
border-radius: 10px;
display: block;
overflow-x: auto;
}
.post-detail-content th,
.post-detail-content td {
padding: 10px 12px;
border-bottom: 1px solid var(--j13-border-light);
text-align: left;
vertical-align: top;
}
.post-detail-content th {
background: var(--j13-bg-block-muted);
font-weight: 600;
white-space: nowrap;
}
.post-detail-content tr:last-child td { border-bottom: none; }
.post-detail-content pre,
.post-detail-content code,
.post-detail-content .md-codeblock {
font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, 'Liberation Mono', monospace;
}
.post-detail-content :not(pre) > code {
padding: 0.15em 0.45em;
font-size: 0.88em;
background: color-mix(in srgb, var(--j13-green) 8%, var(--j13-bg-block-muted));
color: color-mix(in srgb, var(--j13-green) 55%, var(--color-text-1));
border-radius: 5px;
border: 1px solid color-mix(in srgb, var(--j13-green) 12%, var(--j13-border-light));
}
/* 代码块外壳 */
.post-detail-content .md-codeblock {
margin: 1.15em 0;
border: 1px solid var(--j13-border-light);
border-radius: 12px;
background: #0f1419;
overflow: hidden;
box-shadow: var(--j13-shadow-soft);
}
.post-detail-content .md-codeblock__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 8px 12px;
background: #161b22;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.post-detail-content .md-codeblock__lang {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.45);
}
.post-detail-content .md-codeblock__copy {
padding: 3px 10px;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 6px;
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.72);
font-size: 12px;
line-height: 1.4;
cursor: pointer;
transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.post-detail-content .md-codeblock__copy:hover {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}
.post-detail-content .md-codeblock__copy.is-copied {
border-color: color-mix(in srgb, var(--j13-green) 50%, transparent);
color: #7ee2a8;
}
.post-detail-content .md-codeblock__pre,
.post-detail-content pre {
margin: 0;
padding: 14px 16px;
background: transparent;
border-radius: 0;
overflow-x: auto;
color: #e6edf3;
font-size: 13px;
line-height: 1.65;
tab-size: 2;
}
.post-detail-content .md-codeblock__pre code,
.post-detail-content pre code {
padding: 0;
background: transparent;
border: none;
border-radius: 0;
color: inherit;
font-size: inherit;
white-space: pre;
}
/* 未包壳的遗留 pre兜底 */
.post-detail-content > pre {
margin: 1.15em 0;
padding: 14px 16px;
background: #0f1419;
border: 1px solid var(--j13-border-light);
border-radius: 12px;
color: #e6edf3;
overflow-x: auto;
}
/* highlight.js token深色代码块 */
.post-detail-content .hljs-comment,
.post-detail-content .hljs-quote { color: #8b949e; font-style: italic; }
.post-detail-content .hljs-keyword,
.post-detail-content .hljs-selector-tag,
.post-detail-content .hljs-addition { color: #ff7b72; }
.post-detail-content .hljs-string,
.post-detail-content .hljs-meta .hljs-string,
.post-detail-content .hljs-attribute { color: #a5d6ff; }
.post-detail-content .hljs-number,
.post-detail-content .hljs-literal,
.post-detail-content .hljs-variable,
.post-detail-content .hljs-template-variable { color: #79c0ff; }
.post-detail-content .hljs-title,
.post-detail-content .hljs-section,
.post-detail-content .hljs-name { color: #d2a8ff; }
.post-detail-content .hljs-type,
.post-detail-content .hljs-class .hljs-title { color: #ffa657; }
.post-detail-content .hljs-built_in,
.post-detail-content .hljs-params { color: #ffa657; }
.post-detail-content .hljs-attr,
.post-detail-content .hljs-symbol,
.post-detail-content .hljs-bullet { color: #7ee787; }
.post-detail-content .hljs-meta,
.post-detail-content .hljs-deletion { color: #ffa198; }
.post-detail-content .hljs-regexp,
.post-detail-content .hljs-link { color: #a5d6ff; }
.post-detail-content .hljs-emphasis { font-style: italic; }
.post-detail-content .hljs-strong { font-weight: 700; }
.dark .post-detail-content .md-codeblock {
background: #0b0d10;
border-color: #2a2f36;
}
.dark .post-detail-content .md-codeblock__head {
background: #12151a;
}
/* 评论区 — 独立卡片板块 */
.comment-section {
display: flex;
flex-direction: column;
background: var(--j13-bg-surface);
border: 1px solid var(--j13-border-light);
border-radius: 12px;
box-shadow: var(--j13-shadow-card);
flex-shrink: 0;
overflow: hidden;
}
.comment-section-bar {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 20px 12px;
font-size: 15px;
font-weight: 600;
flex-shrink: 0;
border-bottom: 1px solid var(--j13-border-light);
}
/* 标题下方装饰横条hover 时绿色高亮段向右延伸 */
.comment-section-bar::after {
content: '';
position: absolute;
bottom: -1px;
left: 20px;
width: 36px;
height: 2px;
background: var(--j13-green);
border-radius: 1px;
transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.comment-section:hover .comment-section-bar::after {
width: 52px;
}
.comment-section-title { color: var(--color-text-1); }
.comment-section-count {
font-size: 13px;
font-weight: 400;
color: var(--color-text-3);
}
.floor-jump-tools {
display: flex;
align-items: center;
gap: 4px;
}
.comment-list-area {
display: flex;
flex-direction: column;
}
.comment-empty {
text-align: center;
padding: 48px 24px;
color: var(--color-text-3);
}
.comment-empty p { margin: 0; font-size: 13px; }
/* 回复栏(旧版保留兼容) */
.reply-bar {
padding: 12px 20px 16px;
border-top: 1px solid var(--j13-border-light);
background: var(--j13-bg-block-muted);
flex-shrink: 0;
}
/* Waline 风格评论输入框 */
.comment-box-wrap {
padding: 16px 20px;
border-bottom: 1px solid var(--j13-border-light);
background: var(--j13-bg-surface);
flex-shrink: 0;
}
.comment-box-wrap.inline {
padding: 12px 0 4px;
border-bottom: none;
background: transparent;
}
.comment-box-wrap.inline .comment-box-avatar,
.comment-box-wrap.inline .comment-box-avatar-img,
.comment-box-wrap.inline .comment-box-avatar-placeholder {
width: 32px;
height: 32px;
font-size: 13px;
}
.waline-comment-reply-btn.cancel {
color: #e74c3c;
}
.waline-comment-reply-btn.cancel:hover {
color: #c0392b;
}
.comment-box {
display: flex;
gap: 12px;
align-items: flex-start;
}
.comment-box-avatar { flex-shrink: 0; }
.comment-box-avatar-img,
.comment-box-avatar-placeholder {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
}
.comment-box-avatar-placeholder {
display: flex;
align-items: center;
justify-content: center;
background: var(--j13-green);
color: #fff;
font-size: 16px;
font-weight: 600;
}
.comment-box-avatar-placeholder.guest {
background: var(--color-fill-3);
color: var(--color-text-3);
}
.comment-box-main {
flex: 1;
min-width: 0;
}
.comment-box-reply-hint {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
color: var(--j13-green);
margin-bottom: 8px;
}
.comment-box-reply-cancel {
border: none;
background: none;
color: var(--color-text-3);
cursor: pointer;
font-size: 12px;
padding: 0;
}
.comment-box-reply-cancel:hover { color: var(--color-text-1); }
.comment-box-input-wrap {
position: relative;
border: 1px solid var(--j13-border-light);
border-radius: 10px;
background: var(--j13-bg-block);
transition: border-color 0.2s, background 0.2s;
}
.comment-box-input-wrap:focus-within {
border-color: rgb(var(--primary-6));
}
.comment-box-input-wrap.private-mode {
background: var(--j13-bg-block-muted);
border-color: var(--j13-border);
}
.comment-box-textarea {
display: block;
width: 100%;
min-height: 72px;
max-height: 200px;
padding: 10px 48px 10px 12px;
border: none;
outline: none;
resize: vertical;
font-size: 14px;
line-height: 1.6;
font-family: inherit;
color: var(--color-text-1);
background: transparent;
box-sizing: border-box;
}
.comment-box-textarea::placeholder { color: var(--color-text-4); }
.comment-box-send {
position: absolute;
right: 8px;
bottom: 8px;
width: 32px;
height: 32px;
border: none;
border-radius: 50%;
background: #27c;
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
transition: background 0.15s, opacity 0.15s;
}
.comment-box-send:hover:not(:disabled) { background: #1a9bd8; }
.comment-box-send:disabled { opacity: 0.45; cursor: not-allowed; }
.comment-box-guest-fields {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px 10px;
margin-top: 8px;
}
.comment-box-guest-field {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.comment-box-guest-label {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--color-text-3);
}
.comment-box-guest-required,
.comment-box-guest-optional {
font-style: normal;
font-size: 11px;
line-height: 1;
padding: 2px 6px;
border-radius: 4px;
}
.comment-box-guest-required {
color: rgb(var(--danger-6));
background: color-mix(in srgb, rgb(var(--danger-6)) 12%, transparent);
}
.comment-box-guest-optional {
color: var(--color-text-4);
background: var(--color-fill-2);
}
.comment-box-guest-hint {
grid-column: 1 / -1;
margin: 0;
font-size: 12px;
color: var(--color-text-4);
line-height: 1.5;
}
.comment-box-guest-input {
height: 32px;
padding: 0 10px;
border: 1px solid var(--j13-border);
border-radius: 6px;
font-size: 13px;
color: var(--color-text-1);
background: var(--color-bg-1);
outline: none;
transition: border-color 0.2s;
}
.comment-box-guest-input:focus { border-color: rgb(var(--primary-6)); }
.comment-box-guest-input::placeholder { color: var(--color-text-4); }
.comment-box-toolbar {
display: flex;
align-items: center;
gap: 16px;
margin-top: 8px;
}
.comment-box-owo {
border: none;
background: none;
padding: 2px 6px;
font-size: 13px;
font-weight: 600;
color: var(--color-text-2);
cursor: pointer;
border-radius: 4px;
transition: background 0.15s, color 0.15s;
}
.comment-box-owo:hover,
.comment-box-owo.active {
background: rgba(39, 204, 255, 0.12);
color: #27c;
}
.comment-box-private {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: var(--color-text-3);
cursor: pointer;
user-select: none;
}
/* 表情面板 */
.emoji-picker {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 2px;
margin-top: 8px;
padding: 10px;
border: 1px solid #dcdfe6;
border-radius: 8px;
background: var(--color-bg-1);
max-height: 200px;
overflow-y: auto;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.emoji-picker-item {
border: none;
background: none;
font-size: 20px;
line-height: 1;
padding: 4px;
cursor: pointer;
border-radius: 4px;
transition: background 0.1s;
}
.emoji-picker-item:hover,
.emoji-picker-item:focus-visible,
.emoji-picker-item--active {
background: var(--color-fill-2);
outline: none;
}
.emoji-picker-item:focus-visible {
box-shadow: inset 0 0 0 2px var(--j13-green);
}
/* Waline 嵌套评论列表 — 与正文共用 .page-wrap 滚动 */
.waline-comment {
display: flex;
gap: 12px;
padding: 16px 20px;
border-bottom: 1px solid var(--j13-border-light);
}
.waline-comment.nested {
padding: 12px 0 0;
border-bottom: none;
}
.waline-comment.highlight {
animation: floor-highlight 2s ease-out;
}
@keyframes floor-highlight {
0%, 30% { background: var(--j13-green-bg); }
100% { background: transparent; }
}
.waline-replies {
margin-top: 8px;
}
.waline-comment.nested .waline-comment-avatar {
width: 32px;
height: 32px;
font-size: 13px;
}
.waline-comment-avatar {
flex-shrink: 0;
width: 40px;
height: 40px;
border-radius: 50%;
overflow: hidden;
background: var(--j13-green);
color: #fff;
font-size: 16px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
}
.waline-comment-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.waline-comment-avatar.guest {
background: var(--color-fill-3);
color: var(--color-text-3);
}
.waline-comment-main { flex: 1; min-width: 0; }
.waline-comment-head {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 6px;
}
.waline-comment-author {
font-size: 14px;
font-weight: 600;
color: var(--color-text-1);
text-decoration: none;
}
a.waline-comment-author:hover { color: var(--j13-green); }
.waline-comment-bubble {
padding: 10px 14px;
background: var(--j13-bg-block-muted);
border-radius: 10px;
font-size: 14px;
line-height: 1.65;
color: var(--color-text-1);
word-break: break-word;
}
.waline-reply-at {
display: block;
color: #27c;
font-weight: 600;
margin-bottom: 4px;
line-height: 1.5;
}
.waline-comment-private-mask {
padding: 14px 16px;
text-align: center;
font-size: 13px;
color: #999;
line-height: 1.5;
border-radius: 8px;
background: repeating-linear-gradient(
-45deg,
#f6f6f6,
#f6f6f6 8px,
#ececec 8px,
#ececec 16px
);
}
.waline-comment-bubble .floor-body {
font-size: inherit;
line-height: inherit;
word-break: break-word;
}
.floor-body {
font-size: 14px;
line-height: 1.65;
word-break: break-word;
}
.waline-comment-bubble .quote-block {
margin: 6px 0;
background: var(--j13-bg-block);
}
.waline-comment-meta {
display: flex;
align-items: center;
gap: 16px;
margin-top: 8px;
font-size: 12px;
color: var(--color-text-3);
}
.waline-comment-date {
display: flex;
align-items: center;
gap: 4px;
}
.waline-comment-reply-btn {
display: flex;
align-items: center;
gap: 4px;
border: none;
background: none;
padding: 0;
font-size: 12px;
color: var(--color-text-3);
cursor: pointer;
transition: color 0.15s;
}
.waline-comment-reply-btn:hover { color: var(--j13-green); }
.waline-comment-edited {
color: var(--color-text-4);
}
.waline-comment-edit {
margin-top: 4px;
}
.waline-comment-edit-input {
width: 100%;
min-height: 72px;
padding: 10px 12px;
border: 1px solid var(--j13-border);
border-radius: 8px;
background: var(--j13-bg-surface);
color: var(--color-text-1);
font-size: 14px;
line-height: 1.6;
resize: vertical;
}
.waline-comment-edit-input:focus {
outline: none;
border-color: var(--j13-green);
}
.waline-comment-edit-actions {
display: flex;
justify-content: flex-end;
gap: 12px;
margin-top: 8px;
}
.post-action-guest {
opacity: 0.78;
}
@media (max-width: 768px) {
.comment-box-wrap { padding: 12px 14px; }
.comment-box-guest-fields { grid-template-columns: 1fr; }
.emoji-picker { grid-template-columns: repeat(8, 1fr); }
.waline-comment { padding: 12px 14px; }
}
.mention { color: var(--j13-green); font-weight: 600; }
.quote-block {
border-left: 3px solid var(--j13-green);
padding: 8px 12px;
margin: 6px 0 8px;
background: var(--j13-bg-block-muted);
font-size: 13px;
color: var(--color-text-3);
border-radius: 0 8px 8px 0;
line-height: 1.5;
white-space: pre-wrap;
word-break: break-word;
}
.quote-block.clickable {
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
}
.quote-block.clickable:hover {
background: var(--j13-green-bg);
border-left-color: var(--j13-green-hover);
}
@media (max-width: 768px) {
.post-detail-page { padding: 12px 14px 20px; gap: 12px; }
.post-detail-header { padding: 12px 14px 16px; }
.post-detail-title { font-size: 17px; }
.post-detail-actions { margin-top: 20px; padding-top: 16px; gap: 10px; }
.comment-section-bar { padding: 12px 14px 10px; }
.comment-section-bar::after { left: 14px; width: 32px; }
.comment-section:hover .comment-section-bar::after { width: 46px; }
}
.widget-card {
background: var(--j13-bg-block);
border: 1px solid var(--j13-border-light);
border-radius: 10px;
box-shadow: var(--j13-shadow-soft);
margin-bottom: 0;
overflow: hidden;
flex-shrink: 0;
}
.widget-card-head {
display: flex;
align-items: center;
gap: 6px;
padding: 10px 14px 8px;
font-size: 13px;
font-weight: 600;
border-bottom: 1px solid var(--j13-border-light);
background: var(--j13-bg-block-muted);
color: var(--color-text-2);
}
.widget-card-icon {
width: 15px;
height: 15px;
flex-shrink: 0;
}
.widget-card-icon--hot { color: #e74c3c; }
.widget-card-icon--notice { color: #3498db; }
.widget-card-body { padding: 6px 14px 12px; }
.widget-card--about {
display: flex;
flex-direction: column;
border-bottom: none;
min-height: 72px;
}
.widget-card--about .widget-card-body {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 20px 16px;
}
.widget-about-text {
margin: 0;
font-size: 12px;
color: var(--color-text-3);
line-height: 1.65;
}
.widget-about-text strong {
display: block;
margin-bottom: 4px;
color: var(--j13-green);
font-size: 13px;
}
.widget-item {
width: 100%;
padding: 7px 0;
font-size: 13px;
font-family: inherit;
color: inherit;
text-align: left;
cursor: pointer;
border: none;
border-bottom: 1px solid var(--j13-border-light);
background: transparent;
display: flex;
align-items: center;
gap: 8px;
border-radius: 4px;
transition: background 0.12s, color 0.12s;
}
.widget-item:last-child { border-bottom: none; }
.widget-item:hover,
.widget-item:focus-visible {
color: var(--j13-green);
background: var(--j13-bg-block-accent);
padding-left: 6px;
padding-right: 6px;
margin-left: -6px;
margin-right: -6px;
}
.widget-item:focus-visible {
outline: 2px solid var(--j13-green);
outline-offset: 1px;
}
.widget-item-title {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.widget-item-avatar {
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--j13-green);
color: #fff;
font-size: 11px;
font-weight: 600;
display: inline-flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex-shrink: 0;
}
.widget-item-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.widget-item-time {
font-size: 11px;
color: var(--color-text-4);
flex-shrink: 0;
}
.widget-rank {
min-width: 20px;
height: 20px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 4px;
font-size: 11px;
font-weight: 700;
color: var(--color-text-3);
background: var(--j13-bg-block-muted);
flex-shrink: 0;
}
.widget-rank--1 {
color: #fff;
background: linear-gradient(135deg, #e74c3c, #c0392b);
}
.widget-rank--2 {
color: #fff;
background: linear-gradient(135deg, #e67e22, #d35400);
}
.widget-rank--3 {
color: #fff;
background: linear-gradient(135deg, #f1c40f, #e67e22);
}
.widget-empty {
font-size: 13px;
color: var(--color-text-3);
padding: 8px 0;
}
.widget-empty--inline {
padding: 0;
}
.profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.profile-header-card {
position: relative;
display: grid;
grid-template-columns: auto 1fr;
grid-template-areas:
"avatar info"
"stats stats";
align-items: start;
gap: 20px 24px;
padding: 24px;
margin-bottom: 16px;
background: var(--j13-bg-block);
border: 1px solid var(--j13-border-light);
border-radius: 12px;
box-shadow: var(--j13-shadow-soft);
transition: border-color 0.2s, box-shadow 0.2s;
}
.profile-header-card > .profile-avatar-btn { grid-area: avatar; }
.profile-header-card > .profile-header-info { grid-area: info; }
.profile-header-card > .profile-stat-grid { grid-area: stats; }
/* 避免隐藏的 file input 占用 grid 单元格 */
.profile-header-card > input[type="file"] {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.profile-header-card--dragover {
border-color: color-mix(in srgb, var(--j13-green) 50%, var(--j13-border-light));
box-shadow: 0 0 0 3px color-mix(in srgb, var(--j13-green) 15%, transparent);
}
.profile-drop-overlay {
position: absolute;
inset: 0;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
border-radius: 12px;
background: color-mix(in srgb, var(--j13-green) 12%, var(--j13-bg-block));
color: var(--j13-green);
font-size: 14px;
font-weight: 500;
pointer-events: none;
}
.profile-avatar-btn {
flex-shrink: 0;
padding: 0;
border: none;
background: none;
cursor: pointer;
border-radius: 50%;
line-height: 0;
}
.profile-avatar-btn:disabled {
cursor: not-allowed;
}
.profile-avatar-lg {
position: relative;
width: 88px; height: 88px; border-radius: 50%;
background: var(--j13-green); color: #fff;
font-size: 32px; font-weight: 600;
display: flex; align-items: center; justify-content: center;
overflow: hidden;
transition: box-shadow 0.2s;
}
.profile-avatar-lg--pending {
box-shadow: 0 0 0 3px color-mix(in srgb, var(--j13-green) 40%, transparent);
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.45);
color: #fff;
opacity: 0;
transition: opacity 0.2s;
}
.profile-avatar-btn:hover .profile-avatar-overlay,
.profile-avatar-btn:focus-visible .profile-avatar-overlay {
opacity: 1;
}
.profile-avatar-btn:disabled .profile-avatar-overlay {
opacity: 1;
}
.profile-header-info {
flex: 1;
min-width: 0;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
}
.profile-header-main {
min-width: 0;
}
.profile-name-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 4px;
}
.profile-display-name {
margin: 0;
font-size: 22px;
font-weight: 600;
line-height: 1.3;
}
.profile-username {
font-size: 13px;
color: var(--color-text-3);
}
.profile-id-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.profile-id-chip {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 10px;
border-radius: 999px;
background: color-mix(in srgb, var(--j13-green) 10%, var(--j13-bg-surface));
color: var(--j13-green);
font-size: 12px;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.profile-id-copy {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 8px;
border: 1px solid var(--j13-border-light);
border-radius: 6px;
background: var(--j13-bg-surface);
color: var(--color-text-3);
font-size: 12px;
cursor: pointer;
transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.profile-id-copy:hover {
border-color: var(--j13-green);
color: var(--j13-green);
}
.profile-meta-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 8px 16px;
margin: 14px 0 0;
}
.profile-meta-list dt {
margin: 0;
font-size: 11px;
color: var(--color-text-4);
letter-spacing: 0.02em;
}
.profile-meta-list dd {
margin: 2px 0 0;
font-size: 13px;
color: var(--color-text-2);
word-break: break-all;
}
.profile-avatar-tip {
margin: 10px 0 0;
font-size: 12px;
color: var(--color-text-3);
line-height: 1.4;
}
.profile-signature {
margin: 12px 0 0;
font-size: 13px;
line-height: 1.55;
color: var(--color-text-2);
white-space: pre-wrap;
word-break: break-word;
}
.profile-signature--empty {
color: var(--color-text-4);
font-style: italic;
}
.profile-form-divider {
height: 1px;
margin: 24px 0;
background: var(--j13-border-light);
}
.profile-posts-heading {
display: flex;
align-items: center;
gap: 8px;
margin: 8px 0 12px;
}
.profile-header-card--public .profile-stat-grid {
grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}
/* 全站用户链接 */
.user-link {
color: inherit;
text-decoration: none;
transition: color 0.12s;
}
.user-link:hover,
.user-link:focus-visible {
color: var(--j13-green);
}
.user-link--static {
cursor: default;
}
.user-link--avatar-only {
flex-shrink: 0;
}
a.user-link--avatar-only:hover,
a.user-link--avatar-only:focus-visible {
color: #fff;
outline: none;
}
.post-meta-user {
font-weight: 500;
}
.post-detail-author-name.user-link {
font-size: inherit;
font-weight: 600;
}
.waline-comment-author.user-link {
font-weight: 600;
}
.widget-item--comment {
cursor: default;
}
.widget-item--comment:hover {
color: inherit;
}
.widget-item-comment-main {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: 8px;
margin: 0;
padding: 0;
border: none;
background: transparent;
color: inherit;
font: inherit;
text-align: left;
cursor: pointer;
}
.widget-item-comment-main:hover .widget-item-title,
.widget-item-comment-main:focus-visible .widget-item-title {
color: var(--j13-green);
}
a.widget-item-avatar.user-link {
text-decoration: none;
}
.post-revision-editor-link {
font-weight: 500;
}
.profile-stat-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
padding-top: 4px;
border-top: 1px solid var(--j13-border-light);
}
.profile-stat {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: 12px 8px;
border: 1px solid transparent;
border-radius: 10px;
background: var(--j13-bg-surface);
color: var(--color-text-3);
font: inherit;
cursor: default;
transition: border-color 0.15s, background 0.15s, color 0.15s;
}
button.profile-stat {
cursor: pointer;
}
button.profile-stat:hover {
border-color: color-mix(in srgb, var(--j13-green) 35%, var(--j13-border-light));
color: var(--j13-green);
background: color-mix(in srgb, var(--j13-green) 6%, var(--j13-bg-surface));
}
.profile-stat strong {
font-size: 18px;
font-weight: 700;
color: var(--color-text-1);
font-variant-numeric: tabular-nums;
line-height: 1.2;
}
button.profile-stat:hover strong {
color: var(--j13-green);
}
.profile-stat span {
font-size: 12px;
}
.profile-tabs {
display: flex;
gap: 4px;
margin: 4px 0 16px;
padding: 4px;
border: 1px solid var(--j13-border-light);
border-radius: 12px;
background: var(--j13-bg-block);
overflow-x: auto;
}
.profile-tab {
flex: 1;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-width: 0;
padding: 10px 12px;
border: none;
border-radius: 8px;
background: transparent;
color: var(--color-text-3);
font-size: 13px;
font-weight: 500;
cursor: pointer;
white-space: nowrap;
transition: background 0.15s, color 0.15s;
}
.profile-tab:hover {
color: var(--color-text-1);
background: var(--j13-bg-surface);
}
.profile-tab.active {
color: var(--j13-green);
background: color-mix(in srgb, var(--j13-green) 10%, var(--j13-bg-surface));
box-shadow: var(--j13-shadow-soft);
}
.profile-tab-count {
min-width: 1.4em;
padding: 0 6px;
border-radius: 999px;
background: color-mix(in srgb, var(--j13-green) 14%, transparent);
font-size: 11px;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.profile-panel {
margin-bottom: 24px;
}
.profile-avatar-actions {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.profile-avatar-hint {
font-size: 13px;
color: var(--color-text-3);
white-space: nowrap;
}
.profile-form {
display: flex;
flex-direction: column;
gap: 16px;
}
.profile-form-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding-top: 4px;
}
.profile-form-footer--end {
justify-content: flex-end;
}
.profile-form-hint {
font-size: 12px;
color: var(--color-text-3);
line-height: 1.4;
}
@media (max-width: 640px) {
.profile-header-card {
grid-template-columns: 1fr;
grid-template-areas:
"avatar"
"info"
"stats";
justify-items: center;
text-align: center;
padding: 20px 16px;
}
.profile-header-info {
flex-direction: column;
align-items: center;
width: 100%;
}
.profile-name-row {
justify-content: center;
}
.profile-id-row {
justify-content: center;
}
.profile-meta-list {
width: 100%;
text-align: left;
}
.profile-stat-grid {
width: 100%;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-form-footer {
flex-direction: column;
align-items: stretch;
}
.profile-form-hint {
text-align: center;
}
}
/* 头像裁剪弹窗 */
.avatar-crop-dialog {
max-width: 420px;
padding: 20px;
}
.avatar-crop-stage {
position: relative;
width: 100%;
height: 280px;
border-radius: 8px;
overflow: hidden;
background: #111;
}
.avatar-crop-loading {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.avatar-crop-zoom {
display: flex;
align-items: center;
gap: 12px;
padding: 4px 0;
}
.avatar-crop-zoom-label {
flex-shrink: 0;
font-size: 13px;
color: var(--color-text-3);
width: 32px;
}
.avatar-crop-zoom input[type='range'] {
flex: 1;
height: 4px;
accent-color: var(--j13-green);
cursor: pointer;
}
.admin-entry-card {
border-color: color-mix(in srgb, var(--j13-green) 25%, var(--j13-border));
background: var(--j13-bg-block-accent);
}
/* 通用懒加载占位:非 Feed 页勿用首页鱼骨骨架 */
.page-loader {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
flex: 1;
min-height: 200px;
padding: 48px 24px;
box-sizing: border-box;
}
.page-loader--viewport {
min-height: 100dvh;
height: 100%;
background: var(--j13-bg-page);
}
.auth-page {
height: 100%;
min-height: 100dvh;
overflow-y: auto;
display: flex;
align-items: center;
justify-content: center;
background: var(--j13-bg-page);
padding: 24px;
}
.auth-box {
width: 100%;
max-width: 400px;
background: var(--j13-bg-surface);
border: 1px solid var(--j13-border);
border-radius: 12px;
box-shadow: var(--j13-shadow-card);
padding: 32px;
}
.auth-box .logo-mark {
width: 48px; height: 48px; border-radius: 12px;
background: var(--j13-green); color: #fff;
font-size: 22px; font-weight: 700;
display: flex; align-items: center; justify-content: center;
margin: 0 auto 16px;
object-fit: cover;
}
.auth-box h1 { text-align: center; font-size: 20px; margin: 0 0 4px; }
.auth-box .subtitle { text-align: center; font-size: 13px; color: var(--color-text-3); margin-bottom: 24px; }
.auth-captcha-row {
display: flex;
gap: 10px;
align-items: stretch;
}
.auth-captcha-row input {
flex: 1;
min-width: 0;
}
.auth-captcha-img {
flex-shrink: 0;
width: 120px;
height: 40px;
padding: 0;
border: 1px solid var(--j13-border);
border-radius: 8px;
background: var(--j13-bg-page);
cursor: pointer;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
color: var(--color-text-3);
}
.auth-captcha-img img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.auth-captcha-img:hover {
border-color: var(--j13-green);
}
.auth-code-btn {
flex-shrink: 0;
min-width: 108px;
height: 40px;
}
.auth-hint {
margin: 0;
font-size: 12px;
color: var(--color-text-3);
line-height: 1.5;
}
/* 发帖页 — 与帖子详情同套工作区语言 */
.app-body--compose {
background: var(--j13-bg-workspace);
}
.content-workspace--compose {
background: var(--j13-bg-workspace);
}
.main-content--compose {
overflow-y: auto;
overflow-x: hidden;
background: var(--j13-bg-workspace);
}
.compose-page {
/* 与 .compose-header 实际高度对齐,供编辑器工具栏 sticky 偏移 */
--compose-header-sticky-h: 57px;
flex: 1;
display: flex;
flex-direction: column;
min-height: min(100%, 100vh - var(--j13-header-h));
overflow: visible;
background: var(--j13-bg-workspace);
}
.compose-page--empty {
align-items: center;
justify-content: center;
}
.compose-empty-card {
text-align: center;
padding: 48px 40px;
background: var(--j13-bg-surface);
border: 1px solid var(--j13-border);
border-radius: 16px;
box-shadow: var(--j13-shadow-card);
max-width: 400px;
}
.compose-empty-icon {
width: 56px;
height: 56px;
margin: 0 auto 20px;
border-radius: 14px;
background: var(--j13-green-bg);
color: var(--j13-green);
display: flex;
align-items: center;
justify-content: center;
}
.compose-empty-card h2 {
margin: 0 0 8px;
font-size: 18px;
font-weight: 600;
}
.compose-empty-card p {
margin: 0 0 24px;
font-size: 14px;
color: var(--color-text-3);
line-height: 1.5;
}
.compose-primary-btn,
.compose-ghost-btn {
padding: 10px 24px;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
border: none;
transition: background 0.15s, transform 0.1s;
}
.compose-primary-btn {
background: var(--j13-green);
color: #fff;
}
.compose-primary-btn:hover { background: var(--j13-green-hover); }
.compose-ghost-btn {
background: var(--j13-bg-block-muted);
color: var(--color-text-2);
}
.compose-canvas {
flex: 1;
display: flex;
flex-direction: column;
min-height: min(100%, 100vh - var(--j13-header-h));
/* 富文本:接近阅读宽度;源码双栏时拉宽 */
max-width: 1120px;
width: 100%;
margin: 0 auto;
padding: 16px 20px 24px;
transition: max-width 0.2s ease;
}
.compose-page:has(.article-editor--markdown) .compose-canvas {
max-width: min(1560px, 100%);
}
.compose-shell {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
background: var(--j13-bg-surface);
border: 1px solid var(--j13-border-light);
border-radius: 12px;
box-shadow: var(--j13-shadow-card);
overflow: visible;
}
.compose-header {
position: sticky;
top: 0;
z-index: 40;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px 20px;
flex-shrink: 0;
background: var(--j13-bg-surface);
border-bottom: 1px solid var(--j13-border-light);
border-radius: 12px 12px 0 0;
}
.compose-header-left {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.compose-header-title {
margin: 0;
font-size: 15px;
font-weight: 600;
color: var(--color-text-1);
line-height: 1.3;
white-space: nowrap;
}
.compose-back {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
border: 1px solid var(--j13-border);
border-radius: 8px;
background: var(--j13-bg-surface);
color: var(--color-text-2);
font-size: 13px;
cursor: pointer;
transition: border-color 0.15s, color 0.15s, background 0.15s;
flex-shrink: 0;
}
.compose-back:hover {
border-color: var(--j13-green);
color: var(--j13-green);
background: var(--j13-green-bg);
}
.compose-publish-btn {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 8px 16px;
border: none;
border-radius: 8px;
background: var(--j13-green);
color: #fff;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background 0.15s, opacity 0.15s;
}
.compose-publish-btn:hover:not(:disabled) {
background: var(--j13-green-hover);
}
.compose-publish-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.compose-header-actions {
display: inline-flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}
.compose-draft-hint {
font-size: 12px;
color: var(--color-text-3);
max-width: 220px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.compose-edit-window {
color: var(--color-text-3);
font-weight: 400;
}
.compose-context {
display: flex;
flex-direction: column;
gap: 10px;
padding: 14px 20px;
border-bottom: 1px solid var(--j13-border-light);
background: var(--j13-bg-surface);
}
.compose-context-row {
display: flex;
align-items: flex-start;
gap: 12px;
min-width: 0;
}
.compose-context-label {
flex-shrink: 0;
width: 32px;
margin-top: 6px;
font-size: 12px;
font-weight: 500;
color: var(--color-text-3);
}
.compose-context-row--tags .compose-context-label {
margin-top: 9px;
}
.compose-context-row--tags .compose-tags-field {
flex: 1;
min-width: 0;
}
.compose-board-pills {
display: flex;
flex-wrap: wrap;
gap: 8px;
min-width: 0;
}
.compose-board-pill {
padding: 5px 12px;
border: 1px solid var(--j13-border);
border-radius: 999px;
background: var(--j13-bg-block-muted);
color: var(--color-text-2);
font-size: 13px;
line-height: 1.3;
cursor: pointer;
transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.compose-board-pill:hover {
border-color: var(--j13-green);
color: var(--j13-green);
background: var(--j13-green-bg);
}
.compose-board-pill.active {
background: var(--j13-green);
border-color: var(--j13-green);
color: #fff;
font-weight: 500;
}
.compose-tags-field {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 6px 12px;
border: 1px solid var(--j13-border);
border-radius: 8px;
background: var(--j13-bg-block-muted);
min-width: 0;
max-width: 100%;
cursor: text;
transition: border-color 0.15s, background 0.15s;
}
.compose-tags-field:focus-within {
border-color: var(--j13-green);
background: var(--j13-bg-surface);
}
.compose-tags-field--disabled {
opacity: 0.6;
cursor: not-allowed;
}
.compose-tags-icon {
color: var(--color-text-4);
flex-shrink: 0;
margin-top: 5px;
}
.compose-tags-chips {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
flex: 1;
min-width: 0;
}
.compose-tag-chip {
position: relative;
display: inline-flex;
align-items: center;
max-width: 100%;
height: 26px;
padding: 0 10px;
border-radius: 999px;
background: var(--j13-green-bg);
color: var(--j13-green);
font-size: 12px;
font-weight: 500;
line-height: 1;
}
.compose-tag-chip-label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 140px;
}
.compose-tag-chip-remove {
position: absolute;
top: -5px;
right: -5px;
width: 16px;
height: 16px;
padding: 0;
border: 1px solid var(--j13-bg-surface);
border-radius: 50%;
background: var(--color-text-2);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
opacity: 0;
transform: scale(0.85);
pointer-events: none;
transition: opacity 0.12s ease, transform 0.12s ease, background 0.12s ease;
}
.compose-tag-chip:hover .compose-tag-chip-remove,
.compose-tag-chip:focus-within .compose-tag-chip-remove {
opacity: 1;
transform: scale(1);
pointer-events: auto;
}
.compose-tag-chip-remove:hover {
background: #e53935;
}
.compose-tag-chip-remove:focus-visible {
opacity: 1;
transform: scale(1);
pointer-events: auto;
outline: 2px solid var(--j13-green);
outline-offset: 1px;
}
/* 触控设备无悬停:始终显示删除按钮 */
@media (hover: none) {
.compose-tag-chip-remove {
opacity: 0.85;
transform: scale(1);
pointer-events: auto;
}
}
.compose-tags-input {
flex: 1;
min-width: 96px;
height: 26px;
border: none;
background: transparent;
outline: none;
font-size: 13px;
font-family: inherit;
color: var(--color-text-1);
padding: 0 2px;
}
.compose-tags-input::placeholder {
color: var(--color-text-4);
}
.compose-document {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
padding: 0 0 0;
}
.compose-title {
width: 100%;
margin: 0;
padding: 20px 24px 12px;
border: none;
background: transparent;
font-size: 24px;
font-weight: 600;
line-height: 1.35;
letter-spacing: -0.01em;
color: var(--color-text-1);
outline: none;
}
.compose-title::placeholder {
color: var(--color-text-4);
font-weight: 500;
}
.compose-subtitle {
margin-top: 8px;
font-size: 13px;
color: var(--color-text-3);
}
.compose-subtitle strong {
color: var(--j13-green);
font-weight: 500;
}
/* 文章编辑器 */
.article-editor {
flex: 1;
display: flex;
flex-direction: column;
border-top: 1px solid var(--j13-border-light);
}
.article-editor-bar {
position: sticky;
/* 停在发布栏下方,避免与 .compose-header 重叠 */
top: var(--compose-header-sticky-h, 0px);
z-index: 30;
display: flex;
align-items: center;
gap: 12px;
margin: 0;
padding: 8px 16px;
flex-shrink: 0;
flex-wrap: wrap;
background: var(--j13-bg-surface);
border-bottom: 1px solid var(--j13-border-light);
box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
/* 即时气泡提示(替代原生 title */
.ui-tooltip {
position: relative;
display: inline-flex;
}
.ui-tooltip-bubble {
position: absolute;
z-index: 50;
pointer-events: none;
opacity: 0;
visibility: hidden;
width: max-content;
background: var(--j13-bg-surface);
border: 1px solid var(--j13-border);
border-radius: 8px;
box-shadow: var(--j13-shadow-card);
transition: opacity 0.1s ease, transform 0.1s ease, visibility 0.1s;
}
.ui-tooltip-bubble--compact {
padding: 5px 10px;
}
.ui-tooltip-bubble--rich {
min-width: 148px;
max-width: 220px;
padding: 7px 12px;
}
.ui-tooltip-bubble__title {
display: block;
font-size: 12px;
font-weight: 500;
line-height: 1.4;
color: var(--color-text-1);
}
.ui-tooltip-bubble--compact .ui-tooltip-bubble__title {
white-space: nowrap;
}
.ui-tooltip-bubble__hint {
display: block;
margin-top: 3px;
font-size: 11px;
line-height: 1.45;
color: var(--color-text-3);
}
.ui-tooltip-bubble--bottom {
top: calc(100% + 8px);
}
.ui-tooltip-bubble--top {
bottom: calc(100% + 8px);
}
.ui-tooltip-bubble--center.ui-tooltip-bubble--bottom {
left: 50%;
transform: translateX(-50%) translateY(-2px);
}
.ui-tooltip-bubble--center.ui-tooltip-bubble--top {
left: 50%;
transform: translateX(-50%) translateY(2px);
}
.ui-tooltip-bubble--start.ui-tooltip-bubble--bottom,
.ui-tooltip-bubble--start.ui-tooltip-bubble--top {
left: 0;
transform: translateY(-2px);
}
.ui-tooltip-bubble--end.ui-tooltip-bubble--bottom,
.ui-tooltip-bubble--end.ui-tooltip-bubble--top {
right: 0;
left: auto;
transform: translateY(-2px);
}
.ui-tooltip:hover .ui-tooltip-bubble,
.ui-tooltip:focus-within .ui-tooltip-bubble {
opacity: 1;
visibility: visible;
}
.ui-tooltip:hover .ui-tooltip-bubble--center.ui-tooltip-bubble--bottom,
.ui-tooltip:focus-within .ui-tooltip-bubble--center.ui-tooltip-bubble--bottom {
transform: translateX(-50%) translateY(0);
}
.ui-tooltip:hover .ui-tooltip-bubble--center.ui-tooltip-bubble--top,
.ui-tooltip:focus-within .ui-tooltip-bubble--center.ui-tooltip-bubble--top {
transform: translateX(-50%) translateY(0);
}
.ui-tooltip:hover .ui-tooltip-bubble--start.ui-tooltip-bubble--bottom,
.ui-tooltip:hover .ui-tooltip-bubble--start.ui-tooltip-bubble--top,
.ui-tooltip:hover .ui-tooltip-bubble--end.ui-tooltip-bubble--bottom,
.ui-tooltip:hover .ui-tooltip-bubble--end.ui-tooltip-bubble--top,
.ui-tooltip:focus-within .ui-tooltip-bubble--start.ui-tooltip-bubble--bottom,
.ui-tooltip:focus-within .ui-tooltip-bubble--start.ui-tooltip-bubble--top,
.ui-tooltip:focus-within .ui-tooltip-bubble--end.ui-tooltip-bubble--bottom,
.ui-tooltip:focus-within .ui-tooltip-bubble--end.ui-tooltip-bubble--top {
transform: translateY(0);
}
.article-editor-tools {
display: flex;
align-items: center;
gap: 2px;
flex-wrap: wrap;
}
.article-tool-btn {
width: 32px;
height: 32px;
display: inline-flex;
align-items: center;
justify-content: center;
border: none;
border-radius: 6px;
background: transparent;
color: var(--color-text-2);
font-size: 13px;
cursor: pointer;
transition: background 0.12s, color 0.12s;
}
.article-tool-btn:hover {
background: var(--j13-bg-block-muted);
color: var(--j13-green);
}
.article-tool-btn.active {
background: rgba(24, 160, 88, 0.12);
color: var(--j13-green);
}
.article-tool-btn strong {
font-size: 12px;
font-weight: 700;
}
.article-editor-body {
flex: 1;
display: flex;
flex-direction: column;
min-height: 280px;
}
/* 编辑面板 */
.article-editor-pane {
display: flex;
flex: 1;
min-height: 320px;
border: none;
border-radius: 0;
overflow: hidden;
background: transparent;
box-shadow: none;
}
.article-editor-pane--source {
min-height: 320px;
border: 1px solid var(--j13-border-light);
border-radius: 12px;
background: var(--j13-bg-block);
}
/* 编辑器选区:淡色高亮,避免浏览器默认深蓝 */
.article-editor-scroll ::selection,
.article-editor-markdown-input::selection {
background: color-mix(in srgb, var(--j13-green) 24%, #d6e8f0);
color: inherit;
}
.article-prosemirror ::selection {
background: color-mix(in srgb, var(--j13-green) 24%, #d6e8f0);
color: inherit;
}
.article-prosemirror .ProseMirror-selectednode {
outline: 2px solid color-mix(in srgb, var(--j13-green) 45%, transparent);
outline-offset: 2px;
}
.dark .article-editor-scroll ::selection,
.dark .article-editor-markdown-input::selection,
.dark .article-prosemirror ::selection {
background: color-mix(in srgb, var(--j13-green) 35%, #2a3f50);
color: inherit;
}
.article-editor-scroll {
flex: 1;
min-width: 0;
overflow: auto;
background: transparent;
}
.article-editor-pane--source .article-editor-scroll {
background: var(--j13-bg-block);
}
.article-editor-content {
flex: 1;
display: flex;
flex-direction: column;
}
.article-editor-content .tiptap,
.article-prosemirror {
flex: 1;
min-height: 360px;
padding: 16px 24px 32px;
outline: none;
font-size: 15.5px;
line-height: 1.7;
}
/* 源码双栏:充分利用加宽画布 */
.article-editor--markdown .article-editor-body {
min-height: 480px;
}
.compose-page:has(.article-editor--markdown) .article-editor-markdown {
min-height: min(70vh, 720px);
}
.article-prosemirror p.is-editor-empty:first-child::before {
color: var(--color-text-4);
content: attr(data-placeholder);
float: left;
height: 0;
pointer-events: none;
user-select: none;
}
/* 空文档占位段落不参与选区高亮,避免 Ctrl+A 后出现幽灵蓝条 */
.article-prosemirror p.is-editor-empty::selection,
.article-prosemirror p.is-editor-empty *::selection {
background: transparent;
}
.article-prosemirror.ProseMirror-focused p.is-editor-empty::selection {
background: transparent;
}
.article-prosemirror a {
color: var(--j13-green);
text-decoration: underline;
text-underline-offset: 2px;
}
.article-prosemirror img {
max-width: 100%;
height: auto;
border-radius: 8px;
margin: 12px 0;
}
/* —— 图组:多图并排 / 宫格 —— */
.image-group {
margin: 1.25em 0;
border-radius: 12px;
}
.image-group__toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 8px;
padding: 6px 8px;
border: 1px solid var(--j13-border-light);
border-radius: 10px;
background: var(--j13-bg-block-muted);
}
.image-group__toolbar-label {
font-size: 12px;
font-weight: 600;
color: var(--color-text-3);
}
.image-group__toolbar-actions {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.image-group__layout-btn {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
border: 1px solid transparent;
border-radius: 6px;
background: transparent;
color: var(--color-text-3);
font-size: 12px;
cursor: pointer;
transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.image-group__layout-btn:hover {
color: var(--j13-green);
background: color-mix(in srgb, var(--j13-green) 8%, transparent);
}
.image-group__layout-btn.is-active {
color: var(--j13-green);
border-color: color-mix(in srgb, var(--j13-green) 35%, transparent);
background: color-mix(in srgb, var(--j13-green) 10%, transparent);
}
.image-group--selected {
outline: 2px solid color-mix(in srgb, var(--j13-green) 45%, transparent);
outline-offset: 3px;
}
.image-group__grid,
.image-group[data-image-group]:not(:has(.image-group__toolbar)) {
display: grid;
gap: 8px;
}
/*
* TipTap React NodeView 会在 contentDOM 内再包一层 div
* 若不打通则 grid 只有一个子项,编辑态会一直竖排。
*/
.article-prosemirror .image-group__grid > div {
display: contents;
}
.image-group--cols-2 .image-group__grid,
.image-group--cols-2[data-image-group]:not(:has(.image-group__toolbar)) {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.image-group--cols-3 .image-group__grid,
.image-group--cols-3[data-image-group]:not(:has(.image-group__toolbar)) {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.image-group--cols-4 .image-group__grid,
.image-group--cols-4[data-image-group]:not(:has(.image-group__toolbar)) {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.image-group__grid img,
.image-group__grid .ProseMirror-selectednode,
.image-group[data-image-group]:not(:has(.image-group__toolbar)) > img {
width: 100%;
max-width: none;
height: auto;
aspect-ratio: 1 / 1;
object-fit: cover;
margin: 0;
border-radius: 10px;
box-shadow: var(--j13-shadow-soft);
}
.article-prosemirror .image-group__grid img {
margin: 0;
max-width: none;
}
/* 单图展示形态 */
.post-detail-content img.article-img--wide,
.article-prosemirror img.article-img--wide {
width: 100%;
max-width: min(100%, 960px);
margin-left: auto;
margin-right: auto;
display: block;
clear: both;
float: none;
}
.post-detail-content img.article-img--float-left,
.article-prosemirror img.article-img--float-left {
float: left;
clear: none;
display: block;
width: min(42%, 280px);
max-width: 42%;
/* 顶对齐:无上边距,避免图顶高于/错位文字 */
margin: 0 1em 0.75em 0;
shape-outside: margin-box;
}
.post-detail-content img.article-img--float-right,
.article-prosemirror img.article-img--float-right {
float: right;
clear: none;
display: block;
width: min(42%, 280px);
max-width: 42%;
margin: 0 0 0.75em 1em;
shape-outside: margin-box;
}
/*
* 绕排后首段与图顶视觉对齐:
* 正文 line-height: 1.8 会让字面落在行框中部,看起来比图顶更低。
* 上移半行距;中间若夹空段落也一并照顾。
*/
.post-detail-content img.article-img--float-left + p,
.post-detail-content img.article-img--float-right + p,
.article-prosemirror img.article-img--float-left + p,
.article-prosemirror img.article-img--float-right + p,
.post-detail-content img.article-img--float-left + p:is(:empty, :has(> br:only-child)) + p,
.post-detail-content img.article-img--float-right + p:is(:empty, :has(> br:only-child)) + p,
.article-prosemirror img.article-img--float-left + p:is(:empty, :has(> br:only-child)) + p,
.article-prosemirror img.article-img--float-right + p:is(:empty, :has(> br:only-child)) + p {
margin-top: calc((1em - 1.8em) / 2);
}
/* 图组内图片参与宫格,不要 clear/通栏 block 打散 */
.post-detail-content .image-group img,
.article-prosemirror .image-group img {
clear: none;
float: none;
}
.post-detail-content .image-group,
.article-prosemirror .image-group {
clear: both;
}
/* 写到绕排图下方:双空行触发,并以 data-clear-float 持久化(源码往返可保留) */
.post-detail-content .article-clear-float,
.article-prosemirror .article-clear-float,
.post-detail-content [data-clear-float],
.article-prosemirror [data-clear-float] {
clear: both;
}
.article-prosemirror {
display: flow-root;
}
@media (max-width: 640px) {
.image-group--cols-3 .image-group__grid,
.image-group--cols-3[data-image-group]:not(:has(.image-group__toolbar)),
.image-group--cols-4 .image-group__grid,
.image-group--cols-4[data-image-group]:not(:has(.image-group__toolbar)) {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.image-group__layout-btn span {
display: none;
}
.post-detail-content img.article-img--float-left,
.post-detail-content img.article-img--float-right,
.article-prosemirror img.article-img--float-left,
.article-prosemirror img.article-img--float-right {
float: none;
width: 100%;
max-width: 100%;
margin: 0.75em 0;
}
}
.editor-members-only.post-members-only--visible {
border: none;
border-left: 3px solid rgba(24, 160, 88, 0.5);
background: rgba(24, 160, 88, 0.04);
border-radius: 0 8px 8px 0;
overflow: hidden;
box-shadow: none;
padding: 0;
}
.editor-members-only .post-members-only__badge {
display: flex;
align-items: center;
flex-wrap: nowrap;
gap: 6px;
margin: 0;
padding: 6px 12px;
border-bottom: none;
border-radius: 0;
background: transparent;
color: var(--j13-green);
font-size: 12px;
font-weight: 600;
width: 100%;
}
.editor-members-only .post-members-only__badge-icon {
display: inline-flex;
align-items: center;
justify-content: center;
}
.editor-members-only .post-members-only__body {
padding: 0 12px 12px;
min-height: 48px;
background: transparent;
}
.editor-members-only .post-members-only__body p.is-empty::before,
.editor-members-only .post-members-only__body[data-placeholder]:empty::before {
content: attr(data-placeholder);
color: var(--color-text-4);
font-style: italic;
pointer-events: none;
float: left;
height: 0;
}
.dark .editor-members-only .post-members-only__body {
background: transparent;
}
.editor-members-only {
margin: 16px 0;
}
.editor-members-only--selected {
background: rgba(24, 160, 88, 0.07);
box-shadow: inset 0 0 0 1px rgba(24, 160, 88, 0.28);
}
.article-editor-status {
position: sticky;
bottom: 0;
z-index: 30;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin: 0;
padding: 10px 20px;
border-top: 1px solid var(--j13-border-light);
background: var(--j13-bg-surface);
box-shadow: none;
font-size: 12px;
color: var(--color-text-4);
flex-shrink: 0;
border-radius: 0 0 12px 12px;
}
.article-editor-status-meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
min-width: 0;
}
.article-editor-wordcount {
font-variant-numeric: tabular-nums;
color: var(--color-text-3);
font-weight: 500;
}
.article-editor-mode-label {
color: var(--color-text-4);
}
.article-editor-status-sep {
color: var(--color-text-4);
opacity: 0.55;
}
.article-editor-status-actions {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.article-editor-view-btn {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5px 10px;
border: 1px solid var(--j13-border-light);
border-radius: 6px;
background: var(--j13-bg-block-muted);
color: var(--color-text-2);
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: background 0.12s, border-color 0.12s, color 0.12s;
flex-shrink: 0;
}
.article-editor-view-btn:hover {
border-color: var(--j13-green);
color: var(--j13-green);
background: var(--j13-green-bg);
}
.article-editor-view-btn.active {
border-color: rgba(24, 160, 88, 0.4);
color: var(--j13-green);
background: rgba(24, 160, 88, 0.1);
}
.article-editor--fullscreen {
position: fixed;
inset: 0;
z-index: 120;
margin: 0 !important;
padding: 12px 24px 0;
background: var(--j13-bg-surface);
border-top: none;
}
.article-editor--fullscreen .article-editor-bar {
top: 0;
margin: 0 auto;
padding: 6px 8px;
}
.article-editor--fullscreen .article-editor-status {
margin: 0 -24px;
padding: 10px 24px 14px;
border-radius: 0;
}
/* 全屏富文本:工具栏与编辑区同宽居中 */
.article-editor--fullscreen.article-editor--rich .article-editor-bar {
width: 100%;
max-width: var(--j13-article-read-w);
margin: 0 auto;
}
.article-editor--fullscreen .article-editor-body {
min-height: 0;
flex: 1;
}
/* 全屏富文本:编辑区居中,宽度对齐帖子正文阅读区 */
.article-editor--fullscreen.article-editor--rich .article-editor-body {
overflow-y: auto;
padding: 20px 0 0;
background: var(--j13-bg-workspace);
}
.article-editor--fullscreen.article-editor--rich .article-editor-pane {
width: 100%;
max-width: var(--j13-article-read-w);
margin: 0 auto;
min-height: calc(100vh - 176px);
border-radius: 14px;
background: var(--j13-bg-surface);
border: 1px solid var(--j13-border-light);
box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.article-editor--fullscreen .article-editor-scroll,
.article-editor--fullscreen .article-editor-content .tiptap,
.article-editor--fullscreen .article-prosemirror {
min-height: calc(100vh - 220px);
}
.article-editor--fullscreen .article-editor-markdown {
min-height: calc(100vh - 176px);
}
.article-editor--fullscreen .article-editor-markdown-input,
.article-editor--fullscreen .article-editor-markdown-preview,
.article-editor--fullscreen .article-editor-pane--source {
min-height: calc(100vh - 220px);
}
.article-editor-tools--markdown {
display: flex;
align-items: center;
gap: 8px;
}
.article-editor-tools--markdown-hint {
font-size: 12px;
color: var(--color-text-3);
}
.article-link-dialog__footer {
gap: 8px;
}
.article-editor-markdown {
flex: 1;
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 0;
min-height: 420px;
padding: 0;
border-top: none;
}
.article-editor--markdown .article-editor-pane--source {
border: none;
border-radius: 0;
border-right: 1px solid var(--j13-border-light);
}
.article-editor--markdown .article-editor-markdown-preview {
border: none;
border-radius: 0;
}
.article-editor-markdown-input {
display: block;
width: 100%;
min-height: 100%;
padding: 14px 16px 20px;
border: none;
outline: none;
resize: none;
font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
font-size: 13px;
line-height: 1.65;
color: var(--color-text-1);
background: transparent;
}
.article-editor-markdown-preview {
display: flex;
flex-direction: column;
min-height: 320px;
background: var(--j13-bg-surface);
border: 1px solid var(--j13-border);
border-radius: 10px;
overflow: hidden;
}
.article-editor-markdown-preview-label {
padding: 8px 16px;
border-bottom: 1px solid var(--j13-border-light);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--color-text-4);
flex-shrink: 0;
}
.article-editor-markdown-preview-body {
flex: 1;
padding: 14px 16px;
overflow-y: auto;
}
@media (max-width: 768px) {
.compose-page {
--compose-header-sticky-h: 53px;
}
.compose-canvas {
padding: 10px 12px 20px;
}
.compose-shell {
border-radius: 10px;
}
.compose-header {
padding: 10px 12px;
gap: 8px;
border-radius: 10px 10px 0 0;
}
.compose-draft-hint {
display: none;
}
.compose-back span {
display: none;
}
.compose-back {
padding: 6px 8px;
}
.compose-context {
padding: 12px;
gap: 8px;
}
.compose-context-row {
flex-direction: column;
gap: 6px;
}
.compose-context-label,
.compose-context-row--tags .compose-context-label {
margin-top: 0;
width: auto;
}
.compose-title {
font-size: 20px;
padding: 14px 14px 8px;
}
.article-editor--fullscreen {
padding: 8px 12px 0;
}
.article-editor--fullscreen .article-editor-bar {
margin: 0;
padding: 8px 0;
}
.article-editor-markdown {
grid-template-columns: 1fr;
grid-template-rows: minmax(240px, 1fr) minmax(240px, 1fr);
}
.article-editor--markdown .article-editor-pane--source {
border-right: none;
border-bottom: 1px solid var(--j13-border-light);
}
.article-editor-pane--source {
min-height: 240px;
}
.article-editor--fullscreen.article-editor--rich .article-editor-pane {
max-width: none;
margin: 0;
}
.article-editor-bar {
padding: 8px 10px;
}
.article-editor-content .tiptap,
.article-prosemirror {
min-height: 280px;
padding: 12px 14px 20px;
}
.article-editor-status {
padding: 10px 12px;
flex-wrap: wrap;
align-items: flex-start;
border-radius: 0 0 10px 10px;
}
.article-editor--fullscreen .article-editor-status {
margin: 0 -12px;
padding: 10px 12px;
border-radius: 0;
}
.article-editor-status-actions {
width: 100%;
justify-content: flex-end;
}
.compose-tags-field {
min-width: 0;
}
}
/* 路由懒加载占位已改为 FeedPageSkeleton保留类名兼容 */
/* ========== React 管理后台 ========== */
.admin-shell { min-height: 100vh; background: hsl(var(--background)); }
.admin-topbar {
display: flex; align-items: center; justify-content: space-between;
height: 56px; padding: 0 20px; border-bottom: 1px solid var(--j13-border);
background: hsl(var(--card));
}
.admin-topbar-brand { display: flex; align-items: center; gap: 10px; }
.admin-topbar-mark {
width: 32px; height: 32px; border-radius: 8px; background: var(--j13-green);
color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
object-fit: cover; flex-shrink: 0;
}
.admin-brand-preview {
display: flex;
align-items: center;
gap: 14px;
padding: 14px 16px;
margin-bottom: 16px;
border: 1px solid var(--j13-border-light);
border-radius: 10px;
background: var(--j13-bg-block-muted);
}
.admin-brand-preview-mark {
width: 48px; height: 48px; border-radius: 12px;
background: var(--j13-green); color: #fff;
font-size: 22px; font-weight: 700;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.admin-brand-preview-logo {
width: 48px; height: 48px; border-radius: 12px;
object-fit: cover; flex-shrink: 0;
}
.admin-brand-upload-row {
display: flex;
align-items: center;
gap: 8px;
}
.admin-brand-upload-row input[type="file"] {
flex: 1;
min-width: 0;
}
.admin-topbar-title { font-size: 14px; font-weight: 600; line-height: 1.2; }
.admin-topbar-sub { font-size: 12px; color: hsl(var(--muted-foreground)); }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-topbar-user { font-size: 13px; color: hsl(var(--muted-foreground)); }
.admin-link-btn {
display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
color: var(--j13-green); background: none; border: none; cursor: pointer;
}
.admin-body { display: flex; height: calc(100vh - 56px); overflow: hidden; }
.admin-sidebar {
width: 200px; flex-shrink: 0; padding: 16px 10px; border-right: 1px solid var(--j13-border);
background: hsl(var(--card)); overflow-y: auto;
}
.admin-nav-item {
display: flex; align-items: center; gap: 8px; width: 100%;
padding: 9px 12px; margin-bottom: 2px; border-radius: 8px; font-size: 13px;
color: hsl(var(--muted-foreground)); text-decoration: none; transition: background .15s, color .15s;
}
.admin-nav-item:hover { background: var(--j13-green-bg); color: var(--j13-green); }
.admin-nav-item.active { background: var(--j13-green-bg); color: var(--j13-green); font-weight: 600; }
.admin-main { flex: 1; min-width: 0; min-height: 0; padding: 24px; overflow-y: auto; }
.admin-page-head { margin-bottom: 20px; }
.admin-page-head h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.admin-page-head p { font-size: 13px; color: hsl(var(--muted-foreground)); }
.admin-stat-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 12px; margin-bottom: 20px;
}
.admin-stat-card {
padding: 16px; border-radius: 10px; border: 1px solid var(--j13-border); background: hsl(var(--card));
}
.admin-stat-value { font-size: 24px; font-weight: 700; color: var(--j13-green); }
.admin-stat-label { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 4px; }
.admin-card {
border: 1px solid var(--j13-border); border-radius: 10px; background: hsl(var(--card));
margin-bottom: 16px; overflow-x: auto;
}
.admin-card-body { padding: 16px 20px 20px; }
.admin-card-head {
display: flex; align-items: center; justify-content: space-between;
padding: 12px 16px; border-bottom: 1px solid var(--j13-border); font-weight: 600; font-size: 14px;
}
.admin-card-desc { padding: 12px 16px 0; font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.5; }
.admin-card .admin-card-desc + button { margin: 12px 16px 16px; }
.admin-form-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
padding: 12px 16px 16px;
font-size: 13px;
}
.admin-form-row label { color: hsl(var(--muted-foreground)); white-space: nowrap; }
/* ========== 系统设置页 ========== */
.admin-settings-page {
max-width: 880px;
padding-bottom: 24px;
}
.admin-settings-tabs {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-bottom: 20px;
padding-bottom: 0;
border-bottom: 1px solid var(--j13-border);
}
.admin-settings-tab {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 10px 14px;
margin-bottom: -1px;
border: none;
border-bottom: 2px solid transparent;
background: none;
font-size: 13px;
font-weight: 500;
color: hsl(var(--muted-foreground));
cursor: pointer;
transition: color .15s, border-color .15s;
}
.admin-settings-tab:hover { color: hsl(var(--foreground)); }
.admin-settings-tab.active {
color: var(--j13-green);
border-bottom-color: var(--j13-green);
}
.admin-settings-panel { display: flex; flex-direction: column; gap: 0; }
.admin-settings-card { margin-bottom: 0; }
.admin-settings-card-badge {
font-size: 12px;
font-weight: 500;
color: hsl(var(--muted-foreground));
padding: 2px 8px;
border-radius: 999px;
background: hsl(var(--muted) / 0.45);
}
.admin-settings-sections { display: flex; flex-direction: column; gap: 20px; }
.admin-settings-section-head h3 {
font-size: 13px;
font-weight: 600;
margin-bottom: 2px;
}
.admin-settings-section-head p {
font-size: 12px;
color: hsl(var(--muted-foreground));
line-height: 1.45;
margin-bottom: 10px;
}
.admin-settings-table {
border: 1px solid var(--j13-border);
border-radius: 8px;
overflow: hidden;
background: hsl(var(--background));
}
.admin-settings-row {
display: grid;
grid-template-columns: 140px 140px 1fr;
align-items: center;
gap: 8px 16px;
padding: 10px 14px;
border-bottom: 1px solid var(--j13-border);
font-size: 13px;
}
.admin-settings-row:last-child { border-bottom: none; }
.admin-settings-row-label {
color: hsl(var(--foreground));
font-weight: 500;
}
.admin-settings-row-input {
display: flex;
align-items: center;
gap: 8px;
}
.admin-settings-input {
width: 88px;
height: 32px;
padding-top: 0;
padding-bottom: 0;
}
.admin-settings-unit {
font-size: 12px;
color: hsl(var(--muted-foreground));
white-space: nowrap;
}
.admin-settings-row-hint {
font-size: 12px;
color: hsl(var(--muted-foreground));
}
/* 设置表内紧凑开关(勿复用 .admin-mail-switch其绝对定位会破坏后台布局 */
.admin-settings-switch {
position: relative;
display: inline-flex;
align-items: center;
justify-content: flex-start;
width: 40px;
height: 24px;
padding: 0;
border: none;
background: transparent;
cursor: pointer;
flex-shrink: 0;
}
.admin-settings-switch-ui {
position: relative;
display: block;
width: 40px;
height: 24px;
border-radius: 999px;
background: hsl(var(--muted-foreground) / 0.28);
transition: background .18s;
}
.admin-settings-switch-ui::after {
content: '';
position: absolute;
top: 3px;
left: 3px;
width: 18px;
height: 18px;
border-radius: 50%;
background: #fff;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
transition: transform .18s;
}
.admin-settings-switch.is-on .admin-settings-switch-ui {
background: var(--j13-green);
}
.admin-settings-switch.is-on .admin-settings-switch-ui::after {
transform: translateX(16px);
}
.admin-settings-switch:focus-visible {
outline: 2px solid var(--j13-green);
outline-offset: 2px;
border-radius: 999px;
}
.admin-settings-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 16px;
padding: 14px 16px;
border: 1px solid var(--j13-border);
border-radius: 10px;
background: hsl(var(--card));
}
.admin-settings-bar p {
margin: 0;
font-size: 12px;
color: hsl(var(--muted-foreground));
line-height: 1.45;
max-width: 420px;
}
.admin-settings-bar-actions {
display: flex;
gap: 8px;
flex-shrink: 0;
flex-wrap: wrap;
}
.admin-settings-check {
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 13px;
cursor: pointer;
}
.admin-settings-row-input--wide {
flex: 1;
min-width: 0;
}
.admin-settings-input--text {
width: 100%;
max-width: 360px;
}
.admin-settings-select {
height: 36px;
min-width: 220px;
max-width: 360px;
width: 100%;
border: 1px solid hsl(var(--border));
border-radius: 8px;
background: hsl(var(--background));
padding: 0 10px;
font-size: 13px;
}
/* ========== 邮件设置表单 ========== */
.admin-mail-panel .admin-settings-card {
margin-bottom: 0;
}
.admin-mail-status {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 500;
color: hsl(var(--muted-foreground));
padding: 3px 10px;
border-radius: 999px;
background: hsl(var(--muted) / 0.5);
}
.admin-mail-status.is-on {
color: var(--j13-green);
background: rgba(24, 160, 88, 0.1);
}
.admin-mail-status-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: currentColor;
opacity: 0.55;
}
.admin-mail-status.is-on .admin-mail-status-dot {
opacity: 1;
box-shadow: 0 0 0 3px rgba(24, 160, 88, 0.18);
}
.admin-mail-body {
display: flex;
flex-direction: column;
gap: 20px;
}
.admin-mail-switch {
position: relative;
display: flex;
align-items: flex-start;
gap: 12px;
padding: 14px 16px;
border: 1px solid var(--j13-border);
border-radius: 10px;
background: var(--j13-bg-block-muted, hsl(var(--muted) / 0.35));
cursor: pointer;
}
.admin-mail-switch input {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
opacity: 0;
pointer-events: none;
}
.admin-mail-switch-ui {
position: relative;
flex-shrink: 0;
width: 40px;
height: 24px;
margin-top: 1px;
border-radius: 999px;
background: hsl(var(--muted-foreground) / 0.28);
transition: background .18s;
}
.admin-mail-switch-ui::after {
content: '';
position: absolute;
top: 3px;
left: 3px;
width: 18px;
height: 18px;
border-radius: 50%;
background: #fff;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
transition: transform .18s;
}
.admin-mail-switch:has(input:checked) .admin-mail-switch-ui {
background: var(--j13-green);
}
.admin-mail-switch:has(input:checked) .admin-mail-switch-ui::after {
transform: translateX(16px);
}
.admin-mail-switch:has(input:focus-visible) .admin-mail-switch-ui {
outline: 2px solid var(--j13-green);
outline-offset: 2px;
}
.admin-mail-switch-copy {
display: flex;
flex-direction: column;
gap: 4px;
min-width: 0;
}
.admin-mail-switch-copy strong {
font-size: 13px;
font-weight: 600;
color: hsl(var(--foreground));
}
.admin-mail-switch-copy small {
font-size: 12px;
line-height: 1.45;
color: hsl(var(--muted-foreground));
}
.admin-mail-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px 16px;
}
.admin-mail-field {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.admin-mail-field--span2 {
grid-column: 1 / -1;
}
.admin-mail-field label {
font-size: 12px;
font-weight: 600;
color: hsl(var(--foreground));
}
.admin-mail-field-hint {
font-size: 11px;
color: hsl(var(--muted-foreground));
}
.admin-mail-field input,
.admin-mail-select {
width: 100%;
height: 36px;
}
.admin-mail-select {
border: 1px solid hsl(var(--border));
border-radius: 8px;
background: hsl(var(--background));
padding: 0 10px;
font-size: 13px;
color: hsl(var(--foreground));
}
.admin-mail-select:focus {
outline: none;
border-color: var(--j13-green);
box-shadow: 0 0 0 3px rgba(24, 160, 88, 0.15);
}
.admin-mail-test {
display: flex;
flex-direction: column;
gap: 10px;
padding: 14px 16px;
border: 1px dashed var(--j13-border);
border-radius: 10px;
background: hsl(var(--background));
}
.admin-mail-test-head {
display: flex;
flex-direction: column;
gap: 2px;
}
.admin-mail-test-head strong {
font-size: 13px;
font-weight: 600;
}
.admin-mail-test-head span {
font-size: 12px;
color: hsl(var(--muted-foreground));
line-height: 1.4;
}
.admin-mail-test-row {
display: flex;
gap: 10px;
align-items: center;
}
.admin-mail-test-row input {
flex: 1;
min-width: 0;
height: 36px;
}
.admin-mail-test-row button {
flex-shrink: 0;
}
.admin-oidc-url {
display: block;
margin-top: 8px;
padding: 10px 12px;
border-radius: 8px;
background: hsl(var(--muted) / 0.55);
font-size: 12.5px;
word-break: break-all;
line-height: 1.45;
}
.admin-oauth-list {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 8px;
}
.admin-oauth-row {
display: flex;
gap: 12px;
align-items: flex-start;
justify-content: space-between;
padding: 12px;
border: 1px solid hsl(var(--border));
border-radius: 10px;
}
.admin-oauth-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
flex-shrink: 0;
}
@media (max-width: 640px) {
.admin-mail-grid {
grid-template-columns: 1fr;
}
.admin-mail-field--span2 {
grid-column: auto;
}
.admin-mail-test-row {
flex-direction: column;
align-items: stretch;
}
.admin-oauth-row {
flex-direction: column;
}
}
.admin-settings-filter-body { display: flex; flex-direction: column; gap: 12px; }
.admin-settings-filter-tip {
margin: 0;
font-size: 12px;
color: hsl(var(--muted-foreground));
line-height: 1.5;
}
.admin-settings-filter-tip code,
.admin-settings-backup-name code {
font-size: 11px;
background: hsl(var(--muted));
padding: 1px 5px;
border-radius: 4px;
}
.admin-settings-filter-textarea {
min-height: 320px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 13px;
line-height: 1.55;
resize: vertical;
}
.admin-settings-info { display: flex; flex-direction: column; gap: 0; }
.admin-settings-info-row {
display: grid;
grid-template-columns: 88px 1fr;
gap: 12px 16px;
padding: 10px 0;
border-bottom: 1px solid var(--j13-border);
font-size: 13px;
}
.admin-settings-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.admin-settings-info-row:first-child { padding-top: 0; }
.admin-settings-info-row dt { color: hsl(var(--muted-foreground)); }
.admin-settings-info-row dd { margin: 0; word-break: break-all; }
.admin-settings-info-row dd code {
font-size: 12px;
background: hsl(var(--muted));
padding: 2px 6px;
border-radius: 4px;
}
.admin-settings-backup-body {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.admin-settings-backup-body > p {
margin: 0;
font-size: 13px;
color: hsl(var(--muted-foreground));
line-height: 1.5;
}
.admin-settings-backup-name { font-size: 12px !important; }
@media (max-width: 640px) {
.admin-settings-row {
grid-template-columns: 1fr;
gap: 6px;
padding: 12px 14px;
}
.admin-settings-row-hint { padding-left: 0; }
.admin-settings-bar {
flex-direction: column;
align-items: stretch;
}
.admin-settings-bar p { max-width: none; }
.admin-settings-info-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 768px) {
.admin-body {
height: calc(100dvh - 56px);
}
.admin-main {
padding: 16px;
}
.admin-topbar {
padding: 0 12px;
gap: 8px;
}
.admin-topbar-brand {
gap: 8px;
min-width: 0;
}
.admin-topbar-sub { display: none; }
.admin-dl {
grid-template-columns: 1fr;
}
}
/* 后台窄屏导航抽屉(与前台 aside-drawer 同范式) */
.admin-nav-drawer-root {
position: fixed;
inset: 0;
z-index: 95;
}
.admin-nav-drawer {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: min(280px, 88vw);
background: hsl(var(--card));
border-right: 1px solid var(--j13-border);
display: flex;
flex-direction: column;
box-shadow: 8px 0 24px rgba(15, 23, 42, 0.12);
animation: admin-nav-drawer-in 0.2s ease;
}
@keyframes admin-nav-drawer-in {
from { transform: translateX(-12px); opacity: 0.6; }
to { transform: translateX(0); opacity: 1; }
}
.admin-nav-drawer-head {
height: 56px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 12px 0 16px;
border-bottom: 1px solid var(--j13-border);
font-size: 14px;
font-weight: 600;
}
.admin-nav-drawer-body {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 12px 10px;
}
@media (prefers-reduced-motion: reduce) {
.admin-nav-drawer { animation: none; }
}
.admin-page-head-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 16px;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--j13-border); }
.admin-table th { font-weight: 600; color: hsl(var(--muted-foreground)); background: hsl(var(--muted) / 0.3); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table-email { max-width: 200px; word-break: break-all; }
.admin-table-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.admin-empty { padding: 32px; text-align: center; color: hsl(var(--muted-foreground)); font-size: 13px; }
.admin-text-link {
background: none; border: none; padding: 0; color: var(--j13-green); cursor: pointer; font-size: inherit;
}
.admin-text-link:hover { text-decoration: underline; }
.admin-search-bar { display: flex; gap: 8px; margin-bottom: 16px; max-width: 480px; }
.admin-pagination {
display: flex; align-items: center; justify-content: center; gap: 12px;
padding: 12px; border-top: 1px solid var(--j13-border); font-size: 13px;
}
.admin-dl { padding: 16px; display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 13px; }
.admin-dl dt { color: hsl(var(--muted-foreground)); }
.admin-dl dd code { font-size: 12px; background: hsl(var(--muted)); padding: 2px 6px; border-radius: 4px; }