﻿
:root {
	--color-primary: #5bc0eb;
	--color-primary-dark: #2980b9;
	--color-border: #e0e0e0;
	--color-text: #555;
	--color-text-dark: #1c1c1c;
	--color-text-muted: #999;
	--color-bg: #ffffff;
	--color-bg-soft: #f7f9fb;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.8;
	color: var(--color-text);
	background: var(--color-bg-soft);
}
a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { color: var(--color-primary); }

.site-header {
	background: #1a1a2e;
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 100;
}
.header-inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand-name { font-size: 18px; font-weight: 700; color: #fff; }
.main-nav { display: flex; gap: 24px; align-items: center; }
.main-nav a {
	font-size: 15px; color: #fff; font-weight: 600; text-decoration: none;
	padding: 4px 0; border-bottom: 2px solid transparent; transition: all .2s;
}
.main-nav a:hover, .main-nav a.active {
	color: #5bc0eb; border-bottom-color: var(--color-primary);
}
.theme-toggle {
	background: none; border: none; cursor: pointer; font-size: 18px;
	padding: 4px 8px; border-radius: 6px; transition: background .2s;
}
.theme-toggle:hover { background: rgba(0,0,0,.05); }

.container { max-width: 860px; margin: 0 auto; padding: 40px 24px; }
main h1 {
	font-size: 28px; font-weight: 700; color: var(--color-text-dark);
	margin: 0 0 20px;
	background: linear-gradient(135deg, #5bc0eb, #2980b9);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
main h2 { font-size: 22px; color: var(--color-text-dark); margin: 30px 0 12px; }
main p { margin: 0 0 16px; }

.postlist { list-style: none; }
.postlist-item {
	background: #fff; border: 1px solid var(--color-border); border-radius: 10px;
	padding: 20px 24px; margin-bottom: 16px;
}
.postlist-link {
	font-size: 19px; font-weight: 700; color: var(--color-text-dark);
	text-decoration: none; display: block; margin-bottom: 6px;
}
.postlist-link:hover { color: var(--color-primary-dark); }
.postlist-date { font-size: 13px; color: var(--color-text-muted); }

table { border-collapse: collapse; width: 100%; margin: 16px 0; }
th, td { border: 1px solid var(--color-border); padding: 8px 12px; text-align: center; }

.site-footer {
	background: #1a1a2e; border-top: 1px solid var(--color-border);
	text-align: center; padding: 20px; font-size: 13px; color: var(--color-text-muted);
}
.site-footer a { color: var(--color-text-muted); }
.site-footer a:hover { color: var(--color-primary-dark); }

/* 暗黑模式 */
html.dark {
	--color-primary: #5bc0eb;
	--color-primary-dark: #7dd3f5;
	--color-border: #333;
	--color-text: #bbb;
	--color-text-dark: #eee;
	--color-text-muted: #777;
	--color-bg: #1a1a2e;
	--color-bg-soft: #12121f;
}
html.dark body { background: var(--color-bg-soft); }
html.dark .site-header { background: #16162a; border-color: #333; }
html.dark .postlist-item { background: #1e1e32; border-color: #333; }
html.dark .site-footer { background: #16162a; border-color: #333; }
html.dark .brand-name {color: #eee;
	font-weight: 700;}
html.dark .main-nav a {color: #bbb;
	font-weight: 600;}
html.dark main h1 { color: #eee; }

@media (max-width: 600px) {
	.header-inner { flex-direction: column; gap: 10px; }
	.container { padding: 20px 16px; }
	main h1 { font-size: 22px; }
}
	
.theme-toggle {
	background: none; border: none; cursor: pointer; padding: 6px;
	border-radius: 8px; color: var(--color-text); transition: all .2s;
	display: flex; align-items: center;
}
.theme-toggle:hover { background: rgba(0,0,0,.06); }

/* 关于/隐私政策页面卡片样式 */
.policy-card {
	background: #fff; border: 1px solid var(--color-border); border-radius: 10px;
	padding: 24px 28px; margin-bottom: 14px; display: flex; gap: 16px;
}
.policy-num {
	flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
	background: var(--color-primary); color: #fff; display: flex; align-items: center;
	justify-content: center; font-weight: 700; font-size: 14px;
}
html.dark .policy-card { background: #1e1e32; border-color: #333; }
html.dark .policy-num { background: var(--color-primary); }
.breadcrumb {
	font-size: 13px; color: var(--color-text-muted); margin-bottom: 16px;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary-dark); }

/* 返回顶部按钮 */
.back-to-top {
	position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
	border-radius: 50%; background: #1a1a2e; color: #fff; border: none;
	cursor: pointer; font-size: 20px; display: none; align-items: center; justify-content: center;
	box-shadow: 0 2px 10px rgba(0,0,0,.2); z-index: 999; transition: all .3s;
}
.back-to-top:hover { background: #2980b9; transform: translateY(-2px); }
.back-to-top.show { display: flex; }
/* 代码块样式 */
pre {
	background: #f5f5f5; border: 1px solid var(--color-border); border-radius: 8px;
	padding: 16px; overflow-x: auto; margin: 16px 0; font-size: 14px; line-height: 1.6;
}
code {
	font-family: "Consolas", "Monaco", "Courier New", monospace;
}
pre code {
	background: none; padding: 0; white-space: pre-wrap; word-wrap: break-word;
}
html.dark pre { background: #1e1e32; border-color: #333; }