/* Minimalist Theme - Custom Styles */

/* 字体定义 */
:root {
    --font-serif: 'Noto Serif SC', Georgia, serif;
    --font-sans: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;

    /* 清爽天蓝配色 */
    --color-primary: #87CEEB;
    --color-primary-dark: #5BB8D4;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-bg: #ffffff;
    --color-bg-light: #f0f7ff;
    --color-bg-sidebar: #f8faff;
    --color-shadow: rgba(37, 99, 235, 0.10);
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.75;
    letter-spacing: 0.02em;
}

/* 标题样式 */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* 段落和文本 */
p {
    margin-bottom: 1.25rem;
    text-align: justify;
    hyphens: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* 链接在文章内容中 */
.prose a {
    border-bottom: 1px dotted var(--color-primary);
}

.prose a:hover {
    border-bottom-style: solid;
}

.prose .headerlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    margin-left: -1.4rem;
    margin-right: 0.2rem;
    opacity: 0;
    border-bottom: none;
    text-decoration: none;
    transform: translateY(-0.03rem);
    transition: opacity 0.2s ease, color 0.2s ease;
}

.prose .headerlink::before {
    content: '#';
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
}

.prose h1:hover .headerlink,
.prose h2:hover .headerlink,
.prose h3:hover .headerlink,
.prose h4:hover .headerlink {
    opacity: 1;
}

/* 代码块 */
code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background-color: #f3f4f6;
    border-radius: 3px;
    color: #d97706;
}

.prose pre:not(figure.highlight pre) {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.4;
}

pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* 列表 */
ul,
ol {
    margin-bottom: 1.25rem;
    margin-left: 1.5rem;
}

ul li,
ol li {
    margin-bottom: 0.5rem;
}

.post-content-card ul li,
.post-content-card ol li {
    padding-left: 0.15rem;
}

ul li::marker {
    color: var(--color-primary);
}

ol li::marker {
    color: var(--color-primary);
    font-weight: 600;
}

/* 第一处 blockquote 已移除（被后面规则覆盖，死代码） */

/* 表格 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.post-content-card table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

table thead {
    background-color: #f3f4f6;
}

table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid var(--color-border);
}

table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

table tbody tr:hover {
    background-color: #f9fafb;
}

.post-content-card table th {
    letter-spacing: 0.04em;
}

/* 图片 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
    display: block;
    position: relative;
    z-index: 0;
}

figure {
    margin: 1.5rem 0;
    text-align: center;
}

figure.highlight {
    text-align: left;
}

figcaption {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
    letter-spacing: 0.02em;
    text-align: center;
}

/* 分割线 */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin: 2rem 0;
}

/* 常见 Markdown 元素 */
.prose-headings h2:first-child {
    margin-top: 0;
}

/* 流畅的行间距 */
.prose p {
    line-height: 1.9;
}

.prose li {
    line-height: 1.9;
}

/* 响应式设计 */
@media (max-width: 640px) {
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .prose {
        font-size: 1rem;
    }
}

/* 动画和过渡 - 仅对需要过渡的元素单独设置 */
a, button, input[type="button"], input[type="submit"] {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* 按钮样式（仅 .btn 类，避免污染导航/TOC 等原生 button 元素） */
.btn,
a.button,
input[type="button"],
input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn:hover,
a.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: #0e7490;
    text-decoration: none;
}

/* 代码块语言标签 */
pre[data-lang]::before {
    content: attr(data-lang);
    position: absolute;
    top: 0.5rem;
    left: 0.75rem;
    font-size: 0.7rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.08em;
    pointer-events: none;
}

pre[data-lang] code {
    padding-top: 1.8rem;
    display: block;
}

/* 返回顶部按钮悬停 */
#back-to-top:hover {
    background-color: #0e7490;
    text-decoration: none;
}
@media print {
    body {
        background-color: white;
        max-width: 100%;
    }

    header,
    footer,
    nav,
    .no-print {
        display: none;
    }

    a {
        text-decoration: underline;
    }
}

/* 深色模式支持：系统自动 + 手动切换 html.dark */
@media (prefers-color-scheme: dark) {
    :root:not(.light) {
        --color-text: #e5e7eb;
        --color-bg: #111827;
        --color-bg-light: #1f2937;
        --color-border: #374151;
    }

    :root:not(.light) body {
        background-color: var(--color-bg);
        color: var(--color-text);
    }

    :root:not(.light) code {
        background-color: #1f2937;
        color: #fbbf24;
    }

    :root:not(.light) blockquote {
        background-color: #1f2937;
        color: #d1d5db;
    }

    :root:not(.light) table thead {
        background-color: #1f2937;
    }

    :root:not(.light) table th {
        color: #e5e7eb;
    }

    :root:not(.light) table tbody tr:hover {
        background-color: #111827;
    }
}

/* 手动暗黑模式 */
html.dark {
    --color-text: #e5e7eb;
    --color-bg: #111827;
    --color-bg-light: #1f2937;
    --color-bg-card: #1a2332;
    --color-border: #374151;
    --color-bg-sidebar: #1a2332;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-text-muted: #9ca3af;
}

html.dark aside {
    background: #1a2332 !important;
    border-color: #374151 !important;
}

html.dark aside .border-b {
    border-color: #374151 !important;
}

html.dark aside h1 {
    color: #e5e7eb !important;
}

html.dark aside p {
    color: #9ca3af !important;
}

html.dark aside nav a {
    color: #d1d5db;
}

html.dark aside nav a:hover {
    background: #1f2937 !important;
    color: #87CEEB !important;
}

html.dark aside button {
    color: #9ca3af;
}

html.dark aside button:hover {
    background-color: #1f2937 !important;
    color: #87CEEB !important;
}

/* 文章页右侧 TOC aside 暗黑模式 */
html.dark #toc-wrap-desktop {
    background: #1a2332;
    border-color: #374151 !important;
}

html.dark #toc-wrap-desktop .border-gray-200 {
    border-color: #374151 !important;
}

html.dark #toc-wrap-desktop .bg-gray-50 {
    background-color: #1f2937 !important;
}

html.dark #toc-wrap-desktop .text-gray-500 {
    color: #9ca3af !important;
}

/* 移动端 TOC 暗黑模式 */
html.dark #toc-wrap-mobile {
    border-color: #374151 !important;
}
html.dark #toc-wrap-mobile .bg-gray-50 {
    background-color: #1f2937 !important;
}
html.dark #toc-wrap-mobile .bg-white {
    background-color: #1a2332 !important;
}
html.dark #toc-wrap-mobile .border-gray-200 {
    border-color: #374151 !important;
}

html.dark body {
    background-color: var(--color-bg) !important;
    color: var(--color-text);
}

/* ========== 侧边栏天蓝风格 ========== */
aside {
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%) !important;
    border-right: 1px solid #dbeafe !important;
}

aside .border-b {
    border-color: #dbeafe !important;
}

/* 头像光晕 */
aside img.rounded-full {
    border: 3px solid #bfdbfe !important;
    box-shadow: 0 0 0 4px #eff6ff, 0 4px 16px rgba(37,99,235,0.15);
}

/* 侧边栏标题 */
aside h1 {
    color: #1e40af !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
}

aside p {
    color: #64748b !important;
    margin: 0 !important;
}

/* 侧边栏导航链接 */
aside nav a {
    color: #334155;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: none !important;
}

aside nav a:hover {
    background: linear-gradient(90deg, #eff6ff, #dbeafe) !important;
    color: #1d4ed8 !important;
    text-decoration: none;
    padding-left: 1.25rem;
}

/* 侧边栏底部按钮 */
aside button, aside .border-t a {
    color: #64748b;
    border-radius: 8px;
}

aside button:hover, aside .border-t a:hover {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    text-decoration: none;
}

/* ========== 文章返回按钮 ========== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 88px;
    height: 32px;
    padding: 0 14px;
    background: linear-gradient(135deg, #87CEEB 0%, #5BB8D4 100%);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    justify-content: center;
}

.back-btn:hover {
    box-shadow: 0 4px 16px rgba(135, 206, 235, 0.6);
    background: linear-gradient(135deg, #a0d8ef 0%, #87CEEB 100%);
    color: #ffffff;
    text-decoration: none;
}

.back-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(135, 206, 235, 0.35);
}

html.dark .back-btn {
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.25);
}

/* ========== 首页文章卡片天蓝风格 ========== */
.post-card {
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
    border-color: #bfdbfe !important;
    box-shadow: 0 4px 24px var(--color-shadow);
    transform: translateY(-2px);
}

/* 文章卡片标题链接 */
.post-card h2 a:hover {
    color: #2563eb !important;
}

/* ========== 阅读进度条颜色 ========== */
#reading-progress {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark)) !important;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 9999;
}

/* ========== TOC 天蓝高亮 ========== */
.toc-link.toc-active {
    color: #2563eb !important;
    background-color: #eff6ff !important;
    border-left-color: #2563eb !important;
}

.toc-link:hover {
    color: #2563eb !important;
    background-color: #f0f7ff !important;
}

/* ========== 标签徽章天蓝 ========== */
.prose h2 {
    border-left-color: #2563eb;
}

/* ========== Hero 背景天蓝 ========== */
.hero-bg {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f0f9ff 100%) !important;
}

html.dark .hero-bg {
    background: linear-gradient(135deg, #1e2a3a 0%, #1e3a5f 50%, #111827 100%) !important;
}

/* ========== 返回顶部按钮天蓝 ========== */
#back-to-top {
    background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
}

/* ========== 分类卡片天蓝 ========== */
.group:hover .group-hover\:text-cyan-600 {
    color: #2563eb !important;
}

/* ========== body 背景浅蓝 ========== */
body {
    background-color: #f8faff;
}

html.dark blockquote {
    background: #1f2937;
    color: #d1d5db;
    border-left-color: #87CEEB;
}

html.dark table thead {
    background-color: #1f2937;
}

html.dark table th {
    color: #e5e7eb;
}

html.dark table tbody tr:hover {
    background-color: #111827;
}

/* TOC 箭头过渡 */
.toc-arrow {
    transition: transform 0.2s ease;
}

html.dark header {
    background-color: #1a2332;
    border-color: #374151;
}

html.dark footer {
    background-color: #1a2332;
    border-color: #374151;
}

html.dark code {
    background-color: #1f2937;
    color: #fbbf24;
}

html.dark .bg-gray-50,
html.dark .bg-gray-100 {
    background-color: #1f2937 !important;
}

html.dark .bg-white {
    background-color: #111827 !important;
}

html.dark .shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

html.dark .hover\:bg-gray-50:hover {
    background-color: #1f2937 !important;
}

html.dark .divide-y > * {
    border-color: #374151;
}

html.dark .divide-gray-100 > * {
    border-color: #374151 !important;
}

html.dark .text-gray-900 {
    color: #f3f4f6 !important;
}

html.dark .text-gray-700,
html.dark .text-gray-600 {
    color: #d1d5db !important;
}

html.dark .border-gray-100,
html.dark .border-gray-200 {
    border-color: #374151 !important;
}

/* ========== TOC 目录样式 ========== */
.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin: 0;
}

.toc-item.toc-h3 {
    padding-left: 1rem;
}

.toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    color: #6b7280;
    border-radius: 10px;
    border-bottom: none;
    line-height: 1.5;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    white-space: normal;
    word-break: break-word;
}

.toc-item.toc-h3 .toc-link.toc-active {
    padding-left: calc(1rem - 2px);
}

.toc-link:hover {
    transform: translateX(2px);
}

.toc-link.toc-active {
    position: relative;
    font-weight: 600;
}

.toc-link.toc-active::before {
    content: '';
    position: absolute;
    left: 0.2rem;
    top: 0.55rem;
    bottom: 0.55rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #0ea5e9, #6366f1);
}

html.dark .toc-link {
    color: #9ca3af;
}

html.dark .toc-link:hover {
    color: #22d3ee;
    background-color: #1f2937;
}

html.dark .toc-link.toc-active {
    color: #22d3ee;
    background-color: #0f2337;
}

html.dark .toc-link.toc-active::before {
    background: linear-gradient(180deg, #38bdf8, #818cf8);
}

/* ========== 代码块复制按钮 ========== */
.pre-wrapper {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    background-color: #374151;
    color: #9ca3af;
    border: 1px solid #4b5563;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    font-weight: 500;
    line-height: 1.5;
    z-index: 10;
}

figure.highlight:hover .copy-btn,
pre:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background-color: #4b5563;
    color: #e5e7eb;
    text-decoration: none;
}

.copy-btn.copied {
    background-color: #065f46;
    color: #6ee7b7;
    border-color: #059669;
    opacity: 1;
}

.post-pager .w-4 {
    width: 1rem;
}

.pager-card {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(239, 246, 255, 0.8));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.pager-card:hover {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(224, 242, 254, 0.88));
    box-shadow: 0 16px 36px rgba(14, 165, 233, 0.12);
    transform: translateY(-2px);
}

.pager-label {
    color: #64748b;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.toc-card-body {
    scrollbar-width: thin;
    scrollbar-color: #bfdbfe transparent;
}

.toc-card-body::-webkit-scrollbar {
    width: 6px;
}

.toc-card-body::-webkit-scrollbar-thumb {
    background: #bfdbfe;
    border-radius: 999px;
}

/* ========== 文章页标题动画 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-title-fade {
    animation: fadeInUp 0.5s ease both;
}

/* ========== 页面进入动画 ========== */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: pageEnter 0.4s ease both;
}

/* ========== 文章内 h2 左竖线装饰 ========== */
.prose h2 {
    border-left: 3px solid var(--color-primary);
    padding-left: 0.75rem;
    margin-left: -0.75rem;
}

/* ========== 图片增强 ========== */
.prose img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* ========== blockquote 渐变左边框 ========== */
blockquote {
    border-left: 4px solid var(--color-primary);
    background: linear-gradient(to right, #ecf2ff, rgba(255,255,255,0.2));
    padding: 1.15rem 1.35rem;
    margin: 1.5rem 0;
    border-radius: 14px;
    font-style: italic;
    color: #4b5563;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.08);
}

/* ========== 首页 Hero 背景（合并） ========== */

/* ========== 首页 Hero 动画 ========== */
.hero-fade {
    animation: fadeInUp 0.6s ease both;
}

.hero-fade-delay {
    animation: fadeInUp 0.6s 0.15s ease both;
    opacity: 0;
}

/* ========== 代码块表格溢出与行号宽度修复 ========== */
figure.highlight {
    background-color: #1f2937;
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 14px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

figure.highlight table {
    width: 100%;
    table-layout: fixed;
    border: none !important;
    border-radius: 0 !important;
    margin: 0;
    background: transparent;
    overflow: visible;
}

figure.highlight table thead {
    background: transparent;
}

figure.highlight td,
figure.highlight th {
    border: none !important;
    padding: 0;
    vertical-align: top;
    background: transparent !important;
}

figure.highlight tbody tr:hover {
    background: transparent !important;
}

figure.highlight .gutter {
    width: 3rem;
    padding-right: 0.75rem;
    padding-left: 0.5rem;
    text-align: right;
    user-select: none;
    white-space: nowrap;
    color: #6b7280;
}

figure.highlight .code {
    padding-left: 0.75rem;
    width: calc(100% - 3rem);
}

figure.highlight pre {
    margin: 0;
    padding: 0.95rem 0;
    border-radius: 0;
    background: transparent;
    color: #e5e7eb;
    overflow: visible;
    line-height: 1.6;
}

figure.highlight .code pre {
    overflow-x: auto;
}

figure.highlight .code pre::-webkit-scrollbar,
.post-content-card pre::-webkit-scrollbar {
    height: 8px;
}

figure.highlight .code pre::-webkit-scrollbar-thumb,
.post-content-card pre::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.post-content-card pre:not(figure.highlight pre) {
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.post-content-card pre[data-lang]::before,
figure.highlight pre[data-lang]::before {
    content: attr(data-lang);
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* 消除 pre[data-lang] code 的 padding-top 对行号对齐的影响 */
figure.highlight pre[data-lang] code {
    padding-top: 0;
    display: block;
}

html.dark figure.highlight .gutter {
    color: #4b5563;
}

/* ========== 首页右侧边栏 ========== */
.tag-cloud {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background-color: #f0f7ff;
    color: #3b82f6;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: none !important;
}

.tag-cloud:hover {
    background-color: #dbeafe;
    color: #1d4ed8;
    text-decoration: none;
}

.tag-sm { font-size: 0.75rem; }
.tag-md { font-size: 0.85rem; }
.tag-lg { font-size: 0.95rem; font-weight: 500; }

html.dark .tag-cloud {
    background-color: #1e3a5f;
    color: #60a5fa;
}

html.dark .tag-cloud:hover {
    background-color: #1e40af;
    color: #93c5fd;
}

/* 首页右侧边栏暗黑模式 */
html.dark aside .bg-white,
html.dark aside.rounded-2xl {
    background-color: #1a2332 !important;
}

html.dark aside .border-gray-100 {
    border-color: #374151 !important;
}

html.dark aside .text-gray-700 {
    color: #d1d5db !important;
}

html.dark aside .text-gray-600 {
    color: #9ca3af !important;
}

html.dark aside .bg-gray-100 {
    background-color: #374151 !important;
}

html.dark aside .text-gray-500 {
    color: #6b7280 !important;
}

/* 文章信息卡暗黑模式 */
html.dark #toc-wrap-desktop ul.space-y-2 .text-gray-600 {
    color: #9ca3af !important;
}

/* ========== 首页文章列表暗黑补全 ========== */
html.dark .post-card h2 a {
    color: #f3f4f6;
}

/* ========== 移动端 header / 菜单暗黑 ========== */
html.dark header.md\:hidden {
    background-color: #111827 !important;
    border-color: #374151 !important;
}

html.dark #mobile-menu {
    background-color: #111827 !important;
    border-color: #374151 !important;
}

html.dark #mobile-menu a:hover {
    background-color: #1f2937 !important;
}

/* ========== 文章页上下篇导航暗黑 ========== */
html.dark .post-nav {
    border-color: #374151;
}

html.dark .post-nav a:hover {
    background-color: #1f2937;
}

/* ========== 移动端 TOC 暗黑补全 ========== */
html.dark #toc-wrap-mobile {
    border-color: #374151 !important;
}

html.dark #toc-wrap-mobile button {
    background-color: #1f2937 !important;
    color: #d1d5db !important;
}

/* ========== 侧边栏版权/统计暗黑 ========== */
html.dark aside .text-gray-400 {
    color: #6b7280 !important;
}

/* 时钟卡片样式 */
#sidebar-clock-date {
    font-size: 0.78rem;
    color: #94a3b8;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

#sidebar-clock-time {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

#sidebar-clock-week {
    font-size: 0.78rem;
    color: #94a3b8;
    letter-spacing: 0.15em;
    margin-top: 4px;
}

/* 时钟卡片暗黑 */
html.dark #sidebar-clock-date,
html.dark #sidebar-clock-week {
    color: #6b7280;
}

html.dark #sidebar-clock-time {
    background: linear-gradient(135deg, #87CEEB, #5BB8D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 存档/标签/分类/页面 暗黑补全 ========== */
html.dark .archive-year {
    border-color: var(--color-primary) !important;
    color: #f3f4f6 !important;
}

html.dark .archive-item:hover {
    background-color: #1f2937 !important;
}

html.dark .archive-item a {
    color: #e5e7eb;
}

html.dark .archive-item a:hover {
    color: var(--color-primary);
}

html.dark .archive-item .text-gray-500 {
    color: #6b7280 !important;
}

html.dark .archive-item .bg-gray-100 {
    background-color: #374151 !important;
    color: #9ca3af !important;
}

/* 首页文章列表简化行 */
.post-card {
    display: flex;
    align-items: center;
}

/* sidebar-bio 个人介绍 */
.sidebar-bio {
    background: transparent;
}

/* 暗黑模式：首页文章面板 */
html.dark .post-list-wrap > div {
    background-color: #111827;
}

html.dark .post-card:hover {
    background-color: #1f2937 !important;
}

html.dark .post-card time {
    color: #6b7280 !important;
}

html.dark .post-card span.text-gray-800 {
    color: #e5e7eb !important;
}

html.dark .post-list-wrap {
    background-color: #111827 !important;
}

html.dark .post-list-wrap .border-b {
    border-color: #374151 !important;
}

html.dark .post-list-wrap .divide-y > li {
    border-color: #374151 !important;
}

/* 暗黑模式：sidebar-bio */
html.dark .sidebar-bio p {
    color: #9ca3af !important;
}

/* 暗黑模式：blockquote */
html.dark blockquote {
    background: linear-gradient(to right, rgba(30,58,95,0.2), transparent);
    border-left-color: #38bdf8;
    color: #94a3b8;
}

/* 暗黑模式：footer */
html.dark footer {
    border-color: #374151;
    background-color: transparent;
}

html.dark footer p {
    color: #6b7280;
}

/* tag/category 文章列表暗黑 */
html.dark .space-y-8 article {
    border-color: #374151 !important;
}

html.dark .space-y-8 article:hover {
    background-color: #1f2937 !important;
}

html.dark .space-y-8 article h2 a {
    color: #f3f4f6;
}

html.dark .space-y-8 article h2 a:hover {
    color: var(--color-primary);
}

/* page.ejs 暗黑 */
html.dark article.max-w-4xl header {
    border-color: #374151;
}

html.dark article.max-w-4xl h1 {
    color: #f3f4f6;
}

html.dark article.max-w-4xl time {
    color: #9ca3af;
}

/* ========== 首页字体美化 ========== */

/* 首屏标识 */
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.08);
}

/* 欢迎标题 */
.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 900;
    color: #2563eb;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #0284c7 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hero-gradient 4s linear infinite;
    filter: drop-shadow(0 2px 8px rgba(99,102,241,0.18));
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    font-size: 0.72em;
    letter-spacing: 0.03em;
}

@keyframes hero-gradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@media (min-width: 640px) {
    .hero-title { font-size: 3.25rem; }
}

/* 欢迎副标题 */
.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 400;
    color: #475569;
    letter-spacing: 0.03em;
    line-height: 1.8;
}

/* 首页内容结构 */
.featured-panel,
.post-list-wrap,
.sidebar-panel,
.author-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1.5rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.featured-panel {
    position: relative;
    overflow: hidden;
}

.featured-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.18), transparent 34%),
        radial-gradient(circle at left center, rgba(14, 165, 233, 0.16), transparent 32%);
    pointer-events: none;
}

.featured-panel-inner {
    position: relative;
    z-index: 1;
}

.section-chip,
.feature-category,
.post-meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-chip {
    padding: 0.45rem 0.8rem;
    background: #0f172a;
    color: #f8fafc;
}

.feature-category {
    padding: 0.42rem 0.78rem;
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

.featured-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.1;
    color: #0f172a;
    margin: 0;
}

.featured-excerpt,
.home-post-excerpt,
.author-bio {
    color: #475569;
    line-height: 1.85;
}

.featured-excerpt {
    max-width: 48rem;
    font-size: 1rem;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 16px 34px rgba(30, 58, 138, 0.22);
}

.featured-cta::after {
    content: '->';
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.home-section-kicker {
    margin: 0 0 0.35rem;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-section-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #0f172a;
}

.home-post-card {
    position: relative;
}

.home-post-excerpt {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.75;
    max-width: 28rem;
}

.post-meta-pill {
    padding: 0.3rem 0.58rem;
    background: #f8fafc;
    color: #64748b;
}

.sidebar-clock-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92)),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 42%);
}

.clock-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.26rem 0.56rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.author-panel {
    overflow: hidden;
}

.author-panel-top {
    position: relative;
    background:
        linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.04));
}

.author-avatar {
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 1.25rem;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.18);
}

.author-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.author-job {
    margin-top: 0.2rem;
    color: #0369a1;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.author-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

.stat-label {
    color: #64748b;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* 文章列表标题 */
.post-card .post-title {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

/* 文章列表日期 */
.post-card time {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 0.04em;
}

/* 分类 badge */
.post-card .cat-badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* 暗黑模式：欢迎标题 */
html.dark .hero-title {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #38bdf8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 12px rgba(129,140,248,0.3));
}

html.dark .hero-kicker {
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.55);
    color: #7dd3fc;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22);
}

html.dark .hero-subtitle {
    color: #94a3b8;
}

html.dark .featured-panel,
html.dark .post-list-wrap,
html.dark .sidebar-panel,
html.dark .author-panel {
    background: rgba(15, 23, 42, 0.86);
    border-color: rgba(71, 85, 105, 0.45);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.28);
}

html.dark .section-chip {
    background: #e2e8f0;
    color: #0f172a;
}

html.dark .feature-category {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

html.dark .featured-title,
html.dark .home-section-title,
html.dark .author-name,
html.dark .stat-num {
    color: #f8fafc;
}

html.dark .featured-excerpt,
html.dark .home-post-excerpt,
html.dark .author-bio {
    color: #94a3b8;
}

html.dark .featured-cta {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #eff6ff;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

html.dark .home-section-kicker,
html.dark .stat-label {
    color: #94a3b8;
}

html.dark .post-meta-pill {
    background: rgba(30, 41, 59, 0.92);
    color: #94a3b8;
}

html.dark .sidebar-clock-panel {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.88)),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 42%);
}

html.dark .clock-badge {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

html.dark .author-panel-top {
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0)),
        linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.08));
}

html.dark .author-job {
    color: #7dd3fc;
}

html.dark .author-stats {
    border-top-color: rgba(71, 85, 105, 0.45);
}

@media (max-width: 767px) {
    .home-shell {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .home-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 18rem;
        gap: 2rem;
        align-items: start;
    }
}

@media (max-width: 640px) {
    .featured-title {
        font-size: 1.7rem;
    }

    .home-section-head {
        align-items: start;
        flex-direction: column;
    }
}

/* ========== 导航菜单字体美化 ========== */
.nav-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #334155;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.nav-link:hover {
    letter-spacing: 0.06em;
    color: #0369a1;
    background: linear-gradient(90deg, #eff6ff, #e0f2fe) !important;
    text-decoration: none;
    padding-left: 1.5rem;
}

/* 当前页高亮 */
.nav-link.active {
    color: #0369a1;
    background: linear-gradient(90deg, #eff6ff, #e0f2fe);
    font-weight: 600;
}

/* 暗黑模式导航 */
html.dark .nav-link {
    color: #cbd5e1;
}

html.dark .nav-link:hover {
    color: #38bdf8 !important;
    background: linear-gradient(90deg, #0f2337, #0c1a2e) !important;
}

html.dark .nav-link.active {
    color: #38bdf8;
    background: linear-gradient(90deg, #0f2337, #0c1a2e);
}

/* ========== 侧边栏个人信息区美化 ========== */
.sidebar-site-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f172a;
    line-height: 1.3;
}

.sidebar-subtitle {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-top: 0.35rem;
}

.sidebar-email {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 0.03em;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #f0f7ff;
    border-radius: 999px;
    display: inline-block;
}

.sidebar-mini-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sidebar-mini-stats span {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

/* 暗黑模式 */
html.dark .sidebar-site-title {
    color: #f1f5f9;
}

html.dark .sidebar-subtitle {
    color: #94a3b8;
}

html.dark .sidebar-email {
    background: #1e293b;
    color: #64748b;
}

html.dark .sidebar-mini-stats span {
    background: #1e293b;
    color: #94a3b8;
}

.post-shell,
.page-shell {
    position: relative;
}

.post-hero {
    padding: 2rem 2rem 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1.75rem;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 30%),
        radial-gradient(circle at left center, rgba(14, 165, 233, 0.12), transparent 28%),
        rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.post-hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.post-hero-summary {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.9;
}

#toc-wrap-mobile {
    background: rgba(255, 255, 255, 0.86);
    border-radius: 1rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

#toc-mobile-toggle {
    letter-spacing: 0.06em;
}

.post-hero::after,
.page-hero::after {
    content: '';
    display: block;
    width: 4rem;
    height: 3px;
    margin-top: 1.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
}

.post-meta-row {
    row-gap: 0.85rem;
}

.post-footer-meta {
    position: relative;
}

.post-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    color: #64748b;
}

.post-content-card,
.page-content-card,
.post-side-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1.5rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.post-content-card,
.page-content-card {
    padding: 2rem 2rem 1.5rem;
}

.post-content-card > :first-child,
.page-content-card > :first-child {
    margin-top: 0;
}

html.dark .post-content-card,
html.dark .page-content-card,
html.dark .post-side-card {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(71, 85, 105, 0.45);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.28);
}

html.dark .post-hero::after,
html.dark .page-hero::after {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
}

html.dark .post-updated {
    background: rgba(30, 41, 59, 0.9);
    color: #94a3b8;
}

html.dark .post-hero {
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 30%),
        radial-gradient(circle at left center, rgba(56, 189, 248, 0.12), transparent 28%),
        rgba(15, 23, 42, 0.82);
    border-color: rgba(71, 85, 105, 0.45);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.28);
}

html.dark .post-hero-kicker {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

html.dark .post-hero-summary {
    color: #94a3b8;
}

html.dark #toc-wrap-mobile {
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.24);
}

html.dark .pager-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.9));
    border-color: rgba(71, 85, 105, 0.5);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.24);
}

html.dark .pager-card:hover {
    background: linear-gradient(180deg, rgba(15, 35, 55, 0.96), rgba(15, 23, 42, 0.92));
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.16);
}

html.dark .pager-label {
    color: #94a3b8;
}

@media (max-width: 640px) {
    .post-back-wrap {
        top: 4.25rem;
        padding-top: 0.75rem;
    }

    .post-layout {
        gap: 1.25rem;
        padding-top: 1rem;
    }

    .post-hero {
        padding: 1.35rem 1.1rem 1.15rem;
        border-radius: 1.2rem;
    }

    .post-hero-kicker {
        margin-bottom: 0.75rem;
        font-size: 0.66rem;
    }

    .post-hero-summary {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .post-meta-row {
        gap: 0.75rem;
    }

    .post-content-card,
    .page-content-card {
        padding: 1.35rem 1.1rem 1rem;
        border-radius: 1.1rem;
    }

    .post-content-card table {
        font-size: 0.88rem;
    }

    .post-pager ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .post-pager .w-4 {
        display: none;
    }

    .pager-card-next {
        text-align: left;
    }
}

/* ========== 关于页面专属样式 ========== */
.about-shell {
    position: relative;
}

/* Hero 姓名渐变（同首页标题风格） */
.about-hero-name {
    font-family: var(--font-serif);
    font-weight: 900;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #0ea5e9 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hero-gradient 4s linear infinite;
    filter: drop-shadow(0 2px 8px rgba(99,102,241,0.15));
}

/* 职位徽章 */
.about-job-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #0369a1;
    background: linear-gradient(90deg, #e0f2fe, #eff6ff);
    border: 1px solid #bae6fd;
    border-radius: 999px;
}

/* 个人简介 */
.about-bio {
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
    color: #64748b;
}

/* 分隔线 */
.about-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.about-card {
    padding: 1.5rem 1.6rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1.5rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.about-content-card .prose > :first-child {
    margin-top: 0;
}

/* 区块标题 */
.about-section-title {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0;
}

/* 技能标签 */
.about-skill-tag {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 999px;
    border-width: 1px;
    border-style: solid;
}

/* 联系区 */
.about-contact a {
    border-bottom: none;
}

/* 暗黑模式 */
html.dark .about-hero-name {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #38bdf8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 12px rgba(129,140,248,0.3));
}

html.dark .about-job-badge {
    background: linear-gradient(90deg, #0c2a3f, #1e1b4b);
    border-color: #1e40af;
    color: #38bdf8;
}

html.dark .about-bio {
    color: #94a3b8;
}

html.dark .about-divider {
    background: linear-gradient(90deg, transparent, #374151, transparent);
}

html.dark .about-card {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(71, 85, 105, 0.45);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.28);
}

html.dark .about-section-title {
    color: #6b7280;
}

html.dark .about-skill-tag {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #9ca3af !important;
}

@media (max-width: 640px) {
    .about-card {
        padding: 1.2rem 1rem;
        border-radius: 1.1rem;
    }
}
