/* ==================== Wiki 主题 - Clean White 极简风格 ==================== */
/* 改造自: Notion, GitBook, Confluence */
/* Last updated: 2025-10-04 15:30 */

:root {
    /* Clean White 标准配色 */
    --wiki-primary: #007bff;        /* 蓝色链接 */
    --wiki-text: #333;              /* 深色文字 */
    --wiki-text-light: #868e96;     /* 浅灰文字 */
    --wiki-bg: #fff;                /* 白色背景 */
    --wiki-bg-secondary: #f8f8f8;   /* 浅灰背景 */
    --wiki-bg-code: #f5f5f5;        /* 代码背景 */
    --wiki-border: #eee;            /* 边框 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--wiki-text);
    background-color: var(--wiki-bg);
}

/* ==================== Header - Clean White 风格 ==================== */
.site-header {
    background-color: var(--wiki-bg);
    border-bottom: 1px solid var(--wiki-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wiki-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo::before {
    display: none;
}

.site-nav ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.site-nav a {
    color: var(--wiki-text);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem;
}

.site-nav a:hover {
    color: var(--wiki-primary);
}

/* ==================== Hero - Clean White 风格 ==================== */
.site-intro {
    background-color: var(--wiki-bg);
    padding: 4rem 2rem 3rem;
    text-align: center;
    border-bottom: 1px solid var(--wiki-border);
}

.site-intro::after {
    display: none;
}

.site-intro h1 {
    font-size: 2.5rem;
    color: var(--wiki-text);
    margin-bottom: 1rem;
    font-weight: 700;
}

.site-description {
    font-size: 1.125rem;
    color: var(--wiki-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==================== 文章网格 - Clean White 风格 ==================== */
.recent-articles,
.wiki-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.recent-articles h2,
.list-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--wiki-text);
    padding-left: 0;
    text-align: center;
}

.recent-articles h2::before,
.list-header h1::before {
    display: none;
}

.list-description {
    text-align: center;
    color: var(--wiki-text-light);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

/* 文章卡片 - Clean White 极简风格 */
.article-card {
    background-color: var(--wiki-bg);
    padding: 1.5rem;
    border: 1px solid var(--wiki-border);
    overflow: hidden;
}

.article-card::before {
    display: none;
}

.article-card:hover {
}

.article-card a {
    text-decoration: none;
    color: inherit;
}

.article-card h2,
.article-card h3 {
    font-size: 1.375rem;
    color: var(--wiki-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-card a:hover h2,
.article-card a:hover h3 {
    color: #0056b3;
    text-decoration: underline;
}

.card-category {
    display: inline-block;
    color: var(--wiki-text-light);
    padding: 0;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.card-category::before {
    content: "#";
    margin-right: 2px;
}

.card-summary {
    color: var(--wiki-text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.article-card time {
    color: var(--wiki-text-light);
    font-size: 0.875rem;
    font-weight: 400;
}

/* ==================== 文章详情页 - Clean White 风格 ==================== */
.wiki-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-title {
    font-size: 2.25rem;
    color: var(--wiki-text);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--wiki-border);
}

.article-category {
    color: var(--wiki-text-light);
    padding: 0;
    font-weight: 500;
    font-size: 0.9375rem;
}

.article-category::before {
    content: "#";
    margin-right: 2px;
}

.last-updated {
    color: var(--wiki-text-light);
    font-size: 0.875rem;
    margin-left: auto;
}

/* 目录 TOC - Clean White 风格 */
.toc {
    background-color: var(--wiki-bg-secondary);
    border-left: 3px solid var(--wiki-border);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.toc h2 {
    font-size: 1rem;
    color: var(--wiki-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.toc ul {
    list-style: none;
    margin-left: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--wiki-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc a::before {
    display: none;
}

.toc a:hover {
    color: var(--wiki-primary);
}

/* 文章内容 - Clean White 风格 */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--wiki-text);
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wiki-text);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--wiki-border);
}

.article-content h2::before {
    display: none;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--wiki-text);
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 3px solid var(--wiki-border);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: var(--wiki-bg-secondary);
    color: var(--wiki-text-light);
}

.article-content code {
    background-color: var(--wiki-bg-code);
    color: var(--wiki-text);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: "Fira Code", "Consolas", monospace;
    font-size: 0.9em;
}

.article-content pre {
    background-color: #f5f5f5;
    color: var(--wiki-text);
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
    line-height: 1.5;
    border: 1px solid var(--wiki-border);
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* 信息框 - Clean White 风格 */
.article-content .info-box {
    background-color: var(--wiki-bg-secondary);
    border-left: 3px solid var(--wiki-primary);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

/* 内链 - Clean White 蓝色链接风格 */
.internal-link {
    display: inline-block;
    color: var(--wiki-primary);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--wiki-border);
    margin: 1.5rem 0;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9375rem;
}

.internal-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.internal-link::before {
    display: none;
}

/* 标签 - Clean White 风格 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--wiki-border);
}

.tags-label {
    color: var(--wiki-text-light);
    font-weight: 500;
    font-size: 0.875rem;
}

.tag {
    color: var(--wiki-text-light);
    padding: 0.25rem 0;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tag::before {
    content: "#";
    margin-right: 2px;
}

.tag:hover {
    color: var(--wiki-primary);
}

/* Footer - Clean White 风格 */
.site-footer {
    background-color: var(--wiki-bg);
    color: var(--wiki-text-light);
    padding: 2.5rem 0;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid var(--wiki-border);
}

.site-footer a {
    color: var(--wiki-primary);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
    .site-intro h1 { font-size: 2rem; }
    .articles-grid { grid-template-columns: 1fr; }
    .article-title { font-size: 1.75rem; }
    .article-content { font-size: 1rem; }
}
