:root {
  --ink: #26221c;
--vermilion: #8c2f28;
--paper: #f5f1e8;
--paper-deep: #ece5d3;
--paper-deep-deep: #eddbac;
--serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--paper);
color: var(--ink);
}
.site-layout {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.site-content {
flex: 1 0 auto;
}
.site-footer {
flex-shrink: 0;
}
/* ===== 页头 ===== */
.site-header {
position: sticky;
top: 0;
z-index: 100;
position: relative;
display: flex;
align-items: center;
gap: 24px;
padding: 0 24px;
background: var(--paper);
border-bottom: 1px solid var(--paper-deep);
height: 64px;
line-height: 64px;
}
.site-brand {
display: flex;
align-items: baseline;
gap: 8px;
color: var(--ink);
white-space: nowrap;
flex-shrink: 1;
min-width: 0;
text-overflow: ellipsis;
}
.site-brand-star {
height: 28px;
width: auto;
align-self: center;
}
.site-brand-name {
font-family: var(--serif);
font-size: 22px;
font-weight: 700;
letter-spacing: 4px;
color: var(--vermilion);
}
.site-brand-sub {
font-size: 12px;
color: #8a7f6a;
letter-spacing: 2px;
}
.site-menu {
flex: 1;
min-width: 0;
justify-content: flex-end;
background: transparent;
border-bottom: none;
}
.lang-switch {
flex-shrink: 0;
}
/* 右侧操作容器，简繁+汉堡 */
.header-actions {
margin-left: auto;
display: flex;
align-items: center;
gap:16px;
min-width:0;
overflow: hidden;
flex-shrink: 0;
}
/* 汉堡按钮 */
.hamburger-btn {
display: none;
background: transparent;
border: none;
font-size: 24px;
cursor: pointer;
color: var(--ink);
padding: 0;
flex-shrink: 0;
}
/* 移动端下拉菜单 */
.mobile-menu-dropdown {
display: none;
position:absolute;
top:64px;
left:0;
right:0;
background-color: var(--paper-deep);
border-bottom:1px solid var(--paper-deep-deep);
z-index:200;
}
.mobile-menu-dropdown ul {
margin:0;
padding:0 16px;
list-style:none;
}
.mobile-menu-dropdown li a {
display:block;
padding:0px 0;
font-size:16px;
color:var(--text);
text-decoration:none;
border-bottom:1px solid var(--paper-deep-deep);
}
.mobile-menu-dropdown li:last-child a {
border-bottom:none;
}
.mobile-menu-dropdown li.active a {
color:var(--primary);
}
.mobile-menu-dropdown.open {
display:block;
}
/* ===== 内容区 ===== */
.site-content {
width: 100%;
}
.page-section {
max-width: 1080px;
margin: 0 auto;
padding: 40px 24px;
}
.section-heading {
margin-bottom: 24px;
text-align: center;
}
.section-heading h2 {
font-family: var(--serif);
letter-spacing: 6px;
}
/* ===== 首页 Hero ===== */
.hero {
background:
    radial-gradient(circle at 20% 20%, rgba(140, 47, 40, 0.25), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(196, 150, 63, 0.2), transparent 50%),
    var(--ink);
color: #f3ede0;
text-align: center;
padding: 96px 24px;
}
.hero-mark {
letter-spacing: 8px;
color: #c4963f;
margin-bottom: 16px;
font-size: 14px;
}
.hero-title {
font-family: var(--serif);
color: #f3ede0 !important;
letter-spacing: 6px;
margin-bottom: 16px !important;
}
.hero-slogan {
color: #cfc4ac !important;
font-size: 16px;
letter-spacing: 2px;
}
.hero-actions {
margin-top: 32px;
display: flex;
gap: 16px;
justify-content: center;
}
/* ===== 栏目入口卡片 ===== */
.section-entry {
display: block;
height: 100%;
padding: 32px;
background: #fffdf7;
border: 1px solid var(--paper-deep);
border-radius: 8px;
transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.section-entry:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(38, 34, 28, 0.12);
}
.section-entry-icon {
font-size: 28px;
color: var(--vermilion);
}
.section-entry h3 {
font-family: var(--serif);
font-size: 20px;
letter-spacing: 4px;
margin: 12px 0 8px;
color: var(--ink);
}
.section-entry p {
margin: 0;
color: #7a7060;
}
/* ===== 文章卡片 ===== */
.article-card-link {
display: block;
height: 100%;
}
.article-card {
height: 100%;
background: #fffdf7;
}
.article-card-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.article-card-title {
font-family: var(--serif);
font-size: 18px;
margin: 4px 0 8px;
color: var(--ink);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* ===== 文章详情 ===== */
.article-page {
max-width: 820px;
}
.back-link {
display: inline-block;
margin-bottom: 16px;
color: var(--vermilion);
}
.article-title {
font-family: var(--serif);
letter-spacing: 2px;
}
.article-meta {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 24px;
}
h1 {
font-size: 34px !important;
}
/* ===== Markdown 正文 ===== */
.md-body {
font-size: 16px;
line-height: 1.9;
}
.md-body h1,
.md-body h2,
.md-body h3,
.md-body h4 {
font-family: var(--serif);
letter-spacing: 2px;
}
.md-body table {
width: 100%;
border-collapse: collapse;
margin: 16px 0;
display: block;
overflow-x: auto;
}
.md-body th,
.md-body td {
border: 1px solid var(--paper-deep);
padding: 8px 12px;
text-align: left;
white-space: nowrap;
}
.md-body th {
background: var(--paper-deep);
}
.md-body blockquote {
border-left: 4px solid var(--vermilion);
background: #fffdf7;
margin: 16px 0;
padding: 8px 16px;
color: #6b5f4d;
}
.md-body img {
display: block;
max-width: 100%;
height: auto;
margin: 16px auto;
}
/* ===== 页脚 ===== */
.site-footer {
background: var(--ink);
color: #b8ad97;
padding: 40px 24px;
}
.site-footer-inner {
max-width: 1080px;
margin: 0 auto;
text-align: center;
display: flex;
flex-direction: column;
gap: 16px;
}
.site-footer-name {
font-family: var(--serif);
font-size: 18px;
letter-spacing: 4px;
color: #f3ede0;
}
.site-footer-slogan {
font-size: 13px;
}
.site-footer-links {
display: flex;
justify-content: center;
gap: 24px;
flex-wrap: wrap;
}
.site-footer-links a {
color: #b8ad97;
}
.site-footer-links a:hover {
color: #f3ede0;
}
.site-footer-copy {
font-size: 12px;
color: #8a7f6a;
}
.site-footer-copy a {
color: #8a7f6a;
}
/* ===== 移动端 ===== */
@media (max-width: 768px) {
.site-header {
gap: 12px;
padding: 0 16px;
  }
.site-menu {
display: none !important;
  }
.hamburger-btn {
display:block;
  }
.hero {
padding: 64px 20px;
  }
.hero-title {
font-size: 26px !important;
letter-spacing: 3px;
  }
}
/* 超小屏幕降级，防止汉堡按钮跑出屏幕 */
@media (max-width: 360px) {
.site-header {
gap: 8px;
padding: 0 12px;
}
.site-brand-name {
font-size: 18px;
letter-spacing:2px;
}
.header-actions {
gap:8px;
}
.segmented-item {
padding:0 7px;
}
}
/* ===== antd 组件外观复刻 ===== */
:root {
--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
--text: rgba(0, 0, 0, 0.88);
--text-desc: rgba(0, 0, 0, 0.45);
--primary: #8c2f28;
--primary-hover: #994d45;
--primary-active: #661b18;
}
/* --- 全局链接 --- */
a {
color: var(--primary);
text-decoration: none;
background-color: transparent;
outline: none;
cursor: pointer;
transition: color 0.3s;
}
a:hover {
color: var(--primary-hover);
}
a:active {
color: var(--primary-active);
}
/* --- 图标 --- */
.anticon {
display: inline-flex;
align-items: center;
line-height: 0;
vertical-align: -0.125em;
}
.anticon svg {
display: inline-block;
width: 1em;
height: 1em;
fill: currentColor;
}
/* --- 导航菜单 --- */
.site-menu {
display: flex;
margin: 0;
padding: 0;
list-style: none;
font-family: var(--font-sans);
font-size: 14px;
}
.site-menu li {
position: relative;
margin: 0 4px;
padding: 0 16px;
cursor: pointer;
}
.site-menu li a::before {
content: "";
position: absolute;
top: -18px;
bottom: -18px;
left: 0;
right: 0;
}
.site-menu li a {
position: relative;
display: inline-block;
color: var(--text);
text-decoration: none;
transition: color 0.3s;
}
.site-menu li a::after {
position: absolute;
left: 0;
right: 0;
bottom: 10px;
border-bottom: 2px solid transparent;
transition: border-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
content: '';
}
.site-menu li:hover a::after,
.site-menu li.active a::after {
border-bottom-color: var(--primary);
}
.site-menu li:hover a,
.site-menu li.active a {
color: var(--primary);
}
/* --- 简繁切换 Segmented --- */
.segmented {
display: inline-block;
padding: 2px;
background: var(--paper);
border-radius: 6px;
font-family: var(--font-sans);
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
white-space: nowrap;
line-height: 28px;
vertical-align: middle;
flex-shrink: 0;
}
.segmented-item {
display: inline-block;
min-height: 28px;
line-height: 28px;
padding: 0 11px;
border-radius: 4px;
color: rgba(0, 0, 0, 0.65);
text-decoration: none;
cursor: pointer;
transition: color 0.2s;
}
.segmented-item:not(.selected):hover {
color: var(--text);
background: rgba(0, 0, 0, 0.06);
}
.segmented-item.selected {
background: #ffffff;
color: var(--text);
box-shadow:
0 1px 2px 0 rgba(0, 0, 0, 0.05),
0 1px 6px -1px rgba(0, 0, 0, 0.03),
0 2px 4px 0 rgba(0, 0, 0, 0.03);
cursor: default;
}
/* --- 按钮 Button --- */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
height: 32px;
padding: 0 15px;
font-family: var(--font-sans);
font-size: 14px;
line-height: 1.5714;
border-radius: 6px;
border: 1px solid transparent;
cursor: pointer;
white-space: nowrap;
text-decoration: none;
transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.btn-lg {
height: 40px;
font-size: 16px;
line-height: 1.5;
border-radius: 8px;
}
.btn-primary {
background: var(--primary);
color: #ffffff;
box-shadow: 0 2px 0 rgba(51, 15, 3, 0.25);
}
.btn-primary:hover {
background: #a66e65;
color: #ffffff;
}
.btn-primary:active {
background: var(--primary-active);
color: #ffffff;
}
.btn-ghost {
background: transparent;
border-color: #ffffff;
color: #ffffff;
}
.btn-ghost:hover {
color: var(--primary-hover);
border-color: var(--primary-hover);
}
.btn-ghost:active {
color: var(--primary-active);
border-color: var(--primary-active);
}
/* --- 卡片 Card --- */
.article-card {
border: 1px solid #f0f0f0;
border-radius: 8px;
transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.article-card-link {
text-decoration: none;
}
.article-card-link:hover .article-card {
border-color: transparent;
box-shadow:
0 1px 2px -2px rgba(0, 0, 0, 0.16),
0 3px 6px 0 rgba(0, 0, 0, 0.12),
0 5px 12px 4px rgba(0, 0, 0, 0.09);
}
.article-card-body {
padding: 24px;
font-family: var(--font-sans);
font-size: 14px;
line-height: 1.5714;
color: var(--text);
}
.article-card-summary {
color: var(--text-desc);
display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
/* --- 标签 Tag --- */
.tag {
display: inline-block;
margin-inline-end: 8px;
padding-inline: 7px;
font-family: var(--font-sans);
font-size: 12px;
line-height: 20px;
white-space: nowrap;
color: var(--text);
background: #f5f5f5;
border: 1px solid transparent;
border-radius: 4px;
}
.tag-red {
background: #fff1f0;
color: #cf1322;
}
/* --- 次要文字 Typography secondary --- */
.text-secondary {
color: var(--text-desc);
font-family: var(--font-sans);
font-size: 14px;
}
/* --- 栅格 Row Col --- */
.row {
display: flex;
flex-wrap: wrap;
margin: -12px;
}
.col {
width: 100%;
padding: 12px;
}
@media (min-width: 576px) {
.col-sm-12 {
width: 50%;
  }
}
@media (min-width: 768px) {
.col-md-12 {
width: 50%;
  }
}
@media (min-width: 992px) {
.col-lg-8 {
width: 33.3333%;
  }
}
/* --- 标题 Typography Title --- */
.article-title {
font-weight: 600;
margin-bottom: 0.5em;
line-height: 1.2105;
color: var(--text);
}
.section-heading h2 {
font-size: 30px;
line-height: 1.2667;
font-weight: 600;
margin-bottom: 0.5em;
color: var(--text);
}
.section-heading p {
color: var(--text-desc);
font-family: var(--font-sans);
font-size: 14px;
}
/* --- Markdown正文 Typography --- */
.md-body {
color: var(--text);
font-family: var(--font-sans);
}
.md-body h1,
.md-body h2,
.md-body h3,
.md-body h4 {
font-weight: 600;
margin-bottom: 0.5em;
color: var(--text);
}
.md-body h2 {
font-size: 30px;
line-height: 1.2667;
}
.md-body h3 {
font-size: 24px;
line-height: 1.3333;
}
.md-body h4 {
font-size: 20px;
line-height: 1.4;
}
.md-body p + h1,
.md-body p + h2,
.md-body p + h3,
.md-body p + h4,
.md-body ul + h1,
.md-body ul + h2,
.md-body ul + h3,
.md-body ul + h4,
.md-body ol + h1,
.md-body ol + h2,
.md-body ol + h3,
.md-body ol + h4,
.md-body blockquote + h1,
.md-body blockquote + h2,
.md-body blockquote + h3,
.md-body blockquote + h4,
.md-body table + h2,
.md-body table + h3,
.md-body img + h2,
.md-body img + h3 {
margin-top: 1.2em;
}
.md-body p {
margin-bottom: 1em;
}
.md-body ul,
.md-body ol {
margin: 0 0 1em;
padding: 0;
}
.md-body ul {
list-style-type: circle;
}
.md-body ul ul {
list-style-type: disc;
}
.md-body ol {
list-style-type: decimal;
}
.md-body ul li,
.md-body ol li {
margin-inline: 20px 0;
padding-inline: 4px 0;
}
.md-body a {
color: var(--primary);
}
.md-body a:hover {
color: var(--primary-hover);
}
/* --- Empty --- */
.empty {
margin: 32px 0;
text-align: center;
font-family: var(--font-sans);
font-size: 14px;
color: rgba(0, 0, 0, 0.25);
}
.empty svg {
margin-bottom: 8px;
}
/* --- Result 404 --- */
.result {
padding: 48px 32px;
text-align: center;
font-family: var(--font-sans);
}
.result-icon {
margin-bottom: 24px;
}
.result-icon svg {
width: 252px;
height: 294px;
}
.result-title {
color: var(--text);
font-size: 24px;
line-height: 1.3333;
margin-bottom: 8px;
}
.result-subtitle {
color: var(--text-desc);
font-size: 14px;
margin-bottom: 24px;
}
/* --- 其余 antd 细节 --- */
.site-footer-brand {
display: flex;
flex-direction: column;
gap: 10px;
}
.hero-title {
font-weight: 600;
line-height: 1.2105;
}
.hero-slogan {
font-family: var(--font-sans);
}
