@charset "utf-8";

/* ========================================
   纯白笔记 - Pure White Notes
   Prain 博客主题
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg: #ffffff;
	--bg-soft: #fafafa;
	--bg-hover: #f5f5f5;
	--text: #2c2c2c;
	--text-secondary: #888888;
	--text-muted: #bbbbbb;
	--border: #eeeeee;
	--border-light: #f2f2f2;
	--accent: #3b3b3b;
	--accent-light: #666666;
	--shadow: 0 1px 3px rgba(0,0,0,0.04);
	--radius: 8px;
	--radius-sm: 4px;
	--gap: 24px;
	--max-width: 1120px;
	--sidebar-width: 280px;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg-soft);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--text);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--accent-light);
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

input, textarea, button {
	font-family: inherit;
	font-size: inherit;
}

input, textarea {
	color: var(--text);
	outline: none;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	transition: border-color 0.2s;
	background: #fff;
	width: 100%;
}

input:focus, textarea:focus {
	border-color: var(--accent-light);
}

input::placeholder, textarea::placeholder {
	color: var(--text-muted);
}

button {
	cursor: pointer;
}

/* ---------- Header ---------- */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-light);
}

.header-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 20px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 17px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
}

.logo svg {
	color: var(--accent);
	flex-shrink: 0;
}

.logo:hover {
	color: var(--text);
}

/* Nav */
.nav {
	display: flex;
	align-items: center;
	gap: 2px;
}

.nav a {
	padding: 6px 14px;
	font-size: 14px;
	color: var(--text-secondary);
	border-radius: var(--radius-sm);
	transition: all 0.2s;
	white-space: nowrap;
}

.nav a:hover {
	color: var(--text);
	background: var(--bg-hover);
}

.nav .nav-write {
	color: #fff;
	background: var(--accent);
	border-radius: var(--radius-sm);
}

.nav .nav-write:hover {
	background: var(--accent-light);
	color: #fff;
}

.nav .nav-del:hover {
	color: #e74c3c;
	background: #fef2f2;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: none;
	padding: 6px;
}

.menu-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: all 0.2s;
}

/* ---------- Main ---------- */
.main {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 30px 20px 60px;
	min-height: calc(100vh - 156px);
}

.main > .layout,
.main > .layout-single {
	min-height: calc(100vh - 220px);
}

/* Layout */
.layout {
	display: flex;
	gap: var(--gap);
	align-items: flex-start;
}

.layout-single {
	flex-direction: column;
	width: 100%;
	max-width: 780px;
	margin: 0 auto;
	padding: 0;
}

.layout-single .article,
.layout-single .comments {
	width: 100%;
}

.content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.timeline {
	flex: 1;
}

/* ---------- Section Header ---------- */
.section-header {
	margin-bottom: 28px;
}

.section-header h2 {
	font-size: 22px;
	font-weight: 600;
	color: var(--text);
}

.section-sub {
	font-size: 14px;
	color: var(--text-secondary);
	margin-top: 6px;
}

.section-sub strong {
	color: var(--text);
	font-weight: 600;
}

/* ========================================
   Timeline - 笔记时间线
   ======================================== */
.timeline {
	position: relative;
	padding-left: 0;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 15px;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--border);
}

.timeline-item {
	position: relative;
	padding-left: 48px;
	margin-bottom: 0;
}

.timeline-item:last-child .timeline-card {
	border-bottom: none;
}

.timeline-dot {
	position: absolute;
	left: 15px;
	top: 28px;
	width: 9px;
	height: 9px;
	background: #fff;
	border: 2px solid var(--border);
	border-radius: 50%;
	transform: translateX(-50%);
	transition: all 0.3s;
	z-index: 1;
}

.timeline-item:hover .timeline-dot {
	background: var(--accent);
	border-color: var(--accent);
	box-shadow: 0 0 0 4px rgba(59,59,59,0.08);
}

.timeline-item.top .timeline-dot {
	background: var(--accent);
	border-color: var(--accent);
}

.timeline-card {
	padding: 22px 0;
	border-bottom: 1px solid var(--border-light);
	transition: all 0.2s;
}

.timeline-item:hover .timeline-card {
	background: transparent;
}

.timeline-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.timeline-category a {
	font-size: 12px;
	color: var(--accent);
	background: #f5f5f5;
	padding: 2px 10px;
	border-radius: 20px;
	transition: all 0.2s;
}

.timeline-category a:hover {
	background: var(--accent);
	color: #fff;
}

.timeline-date {
	font-size: 13px;
	color: var(--text-muted);
}

.timeline-title {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.5;
	margin-bottom: 10px;
}

.timeline-title a {
	color: var(--text);
	transition: color 0.2s;
}

.timeline-title a:hover {
	color: var(--accent-light);
}

.top-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	color: var(--accent);
	background: #f0f0f0;
	padding: 1px 8px;
	border-radius: 3px;
	margin-right: 8px;
	vertical-align: middle;
}

.timeline-stats {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: var(--text-muted);
}

.timeline-stats span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.timeline-stats svg {
	flex-shrink: 0;
}

.timeline-item.private .timeline-title a {
	color: #888;
}

/* ---------- Empty State ---------- */
.empty-state {
	text-align: center;
	padding: 80px 20px;
	color: var(--text-muted);
}

.empty-state svg {
	margin-bottom: 16px;
}

.empty-state p {
	font-size: 15px;
}

/* ---------- Sidebar ---------- */
.sidebar {
	flex: 0 0 var(--sidebar-width);
	width: var(--sidebar-width);
	position: sticky;
	top: 80px;
}

.widget {
	background: #fff;
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 16px;
	border: 1px solid var(--border-light);
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-light);
}

/* Profile widget */
.profile {
	text-align: center;
}

.avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	margin-bottom: 12px;
}

.profile-name {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 4px;
}

.profile-intro {
	font-size: 13px;
	color: var(--text-secondary);
	margin-bottom: 18px;
	line-height: 1.5;
}

.profile-stats {
	display: flex;
	justify-content: center;
	gap: 0;
	border-top: 1px solid var(--border-light);
	border-bottom: 1px solid var(--border-light);
	padding: 14px 0;
	margin-bottom: 18px;
}

.stat-item {
	flex: 1;
	text-align: center;
}

.stat-item + .stat-item {
	border-left: 1px solid var(--border-light);
}

.stat-num {
	font-size: 18px;
	font-weight: 600;
	color: var(--text);
	line-height: 1.2;
}

.stat-label {
	font-size: 11px;
	color: var(--text-muted);
	margin-top: 4px;
}

/* Search */
.search-form {
	display: flex;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	overflow: hidden;
	transition: border-color 0.2s;
}

.search-form:focus-within {
	border-color: var(--accent-light);
}

.search-form input {
	border: none;
	border-radius: 0;
	padding: 10px 14px;
	flex: 1;
	min-width: 0;
}

.search-form button {
	background: none;
	border: none;
	padding: 10px 14px;
	color: var(--text-muted);
	transition: color 0.2s;
	flex-shrink: 0;
}

.search-form button:hover {
	color: var(--accent);
}

/* Tag list */
.widget-list {
	list-style: none;
}

.widget-list li {
	margin: 0;
}

.widget-list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	font-size: 14px;
	color: var(--text-secondary);
	border-bottom: 1px solid var(--border-light);
	transition: all 0.2s;
}

.widget-list li:last-child a {
	border-bottom: none;
}

.widget-list a:hover {
	color: var(--text);
	padding-left: 4px;
}

.widget-list .count {
	font-size: 12px;
	color: var(--text-muted);
	background: var(--bg-soft);
	padding: 1px 8px;
	border-radius: 10px;
}

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag {
	font-size: 13px;
	color: var(--text-secondary);
	background: var(--bg-soft);
	padding: 4px 12px;
	border-radius: 20px;
	transition: all 0.2s;
}

.tag:hover {
	background: var(--accent);
	color: #fff;
}

/* ---------- Paging ---------- */
.paging {
	display: flex;
	justify-content: center;
	gap: 4px;
	padding: 32px 0 0;
}

.paging a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	font-size: 14px;
	color: var(--text-secondary);
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	transition: all 0.2s;
}

.paging a:hover {
	color: var(--text);
	background: #fff;
	border-color: var(--border);
}

.paging a.paging-active {
	color: #fff;
	background: var(--accent);
	border-color: var(--accent);
	font-weight: 500;
}

.paging .paging-disabled {
	color: var(--text-muted) !important;
	cursor: not-allowed;
	pointer-events: none;
	opacity: 0.5;
}

.paging .paging-ell {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	color: var(--text-muted);
}

/* ========================================
   Article Page
   ======================================== */
.article {
	background: #fff;
	border-radius: var(--radius);
	border: 1px solid var(--border-light);
	padding: 48px;
	min-height: 400px;
}

.article-header {
	margin-bottom: 40px;
}

.article-category {
	display: inline-block;
	font-size: 12px;
	color: var(--accent);
	background: var(--bg-soft);
	padding: 3px 12px;
	border-radius: 20px;
	margin-bottom: 16px;
	transition: all 0.2s;
}

.article-category:hover {
	background: var(--accent);
	color: #fff;
}

.article-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--text);
	margin-bottom: 14px;
}

.article-meta {
	font-size: 14px;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: 8px;
}

.meta-sep {
	color: var(--border);
}

/* Article body */
.article-body {
	font-size: 16px;
	line-height: 1.85;
	color: var(--text);
	word-wrap: break-word;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
	margin: 32px 0 16px;
	font-weight: 600;
	color: var(--text);
}

.article-body h2 { font-size: 22px; }
.article-body h3 { font-size: 18px; }

.article-body p {
	margin-bottom: 16px;
}

.article-body blockquote {
	margin: 20px 0;
	padding: 16px 20px;
	background: var(--bg-soft);
	border-left: 3px solid var(--accent);
	color: var(--text-secondary);
	font-style: italic;
}

.article-body pre {
	background: var(--bg-soft);
	padding: 20px;
	border-radius: var(--radius-sm);
	overflow-x: auto;
	margin: 20px 0;
	font-size: 14px;
	line-height: 1.6;
}

.article-body code {
	font-family: "SF Mono", "Fira Code", "Consolas", monospace;
	background: var(--bg-soft);
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 0.9em;
}

.article-body pre code {
	background: none;
	padding: 0;
}

.article-body img {
	border-radius: var(--radius-sm);
	margin: 20px 0;
}

.article-body a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.article-body a:hover {
	color: var(--accent-light);
}

.article-body ul,
.article-body ol {
	margin: 16px 0;
	padding-left: 24px;
}

.article-body li {
	margin-bottom: 8px;
}

.article-body hr {
	border: none;
	border-top: 1px solid var(--border-light);
	margin: 32px 0;
}

.article-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 14px;
}

.article-body th,
.article-body td {
	border: 1px solid var(--border);
	padding: 10px 14px;
	text-align: left;
}

.article-body th {
	background: var(--bg-soft);
	font-weight: 600;
}

/* Article nav */
.article-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--border-light);
}

.article-prev,
.article-next {
	flex: 1;
	max-width: 48%;
	padding: 16px 20px;
	border-radius: var(--radius-sm);
	background: var(--bg-soft);
	transition: all 0.2s;
}

.article-next {
	text-align: right;
}

.article-prev:hover,
.article-next:hover {
	background: var(--bg-hover);
}

.nav-label {
	display: block;
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 4px;
}

.nav-title {
	font-size: 14px;
	color: var(--text);
	font-weight: 500;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ========================================
   Comments
   ======================================== */
.comments {
	background: #fff;
	border-radius: var(--radius);
	border: 1px solid var(--border-light);
	padding: 40px 48px;
	margin-top: 20px;
}

.comments-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 24px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border-light);
}

.comments-title span {
	color: var(--text-muted);
	font-weight: 400;
}

/* Comment form */
.comment-form-wrap {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--border-light);
}

.comment-form-title {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 16px;
}

.comment-fields {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.comment-field {
	flex: 1;
}

.comment-field input {
	width: 100%;
}

.comment-form-wrap textarea {
	resize: vertical;
	min-height: 90px;
}

.comment-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.vcode-wrap {
	display: flex;
	align-items: center;
	gap: 0;
}

.vcode-img {
	height: 40px;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	border: 1px solid var(--border);
	border-right: none;
	cursor: pointer;
}

.vcode-input {
	width: 90px !important;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.btn-submit {
	padding: 10px 24px;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s;
	margin-left: auto;
}

.btn-submit:hover {
	background: var(--accent-light);
}

.comment-replys {
	margin-left: 12px;
	font-size: 13px;
}

.comment-replys span {
	display: inline-block;
	color: var(--accent-light);
	border: 1px solid var(--accent-light);
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s;
}

.comment-replys span:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* Comment list */
.comment-list {
	list-style: none;
}

.comment-list li {
	padding: 16px 0;
	border-bottom: 1px solid var(--border-light);
}

.comment-list li:last-child {
	border-bottom: none;
}

.comment-list .comment-list {
	margin-left: 32px;
	margin-top: 8px;
}

.comment-user {
	color: var(--accent);
	font-weight: 500;
}

.comment-admin > .comment-title .comment-user {
	color: #e74c3c;
}

.comment-time {
	color: var(--text-muted);
	font-size: 12px;
	margin-left: 10px;
}

.comment-title a {
	color: #e74c3c;
	font-size: 12px;
	margin-left: 10px;
}

.comment p {
	margin-top: 6px;
	color: var(--text-secondary);
	line-height: 1.6;
}

.comment-reply {
	color: var(--text-muted);
	cursor: pointer;
	font-size: 12px;
}

.comment-reply:hover {
	color: var(--accent);
}

/* ========================================
   Login Page
   ======================================== */
.login-page {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: calc(100vh - 200px);
}

.login-card {
	background: #fff;
	border-radius: 12px;
	border: 1px solid var(--border-light);
	padding: 48px 40px;
	width: 100%;
	max-width: 400px;
	text-align: center;
}

.login-icon {
	color: var(--text-secondary);
	margin-bottom: 16px;
}

.login-card h2 {
	font-size: 22px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 6px;
}

.login-desc {
	font-size: 14px;
	color: var(--text-secondary);
	margin-bottom: 28px;
}

.login-form input {
	margin-bottom: 12px;
	padding: 12px 16px;
	font-size: 15px;
}

.vcode-row {
	display: flex;
	gap: 0;
	margin-bottom: 12px;
}

.vcode-row input {
	margin-bottom: 0;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.vcode-row .vcode-img {
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	height: 44px;
}

.btn-login {
	width: 100%;
	padding: 12px;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-weight: 500;
	margin-top: 8px;
	transition: all 0.2s;
}

.btn-login:hover {
	background: var(--accent-light);
}

/* ========================================
   Prompt Page
   ======================================== */
.prompt-page {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: calc(100vh - 200px);
}

.prompt-card {
	background: #fff;
	border-radius: 12px;
	border: 1px solid var(--border-light);
	padding: 48px 40px;
	text-align: center;
	max-width: 420px;
	width: 100%;
}

.prompt-icon {
	color: var(--accent);
	margin-bottom: 16px;
}

.prompt-card h2 {
	font-size: 20px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 12px;
}

.prompt-msg {
	font-size: 15px;
	color: var(--text-secondary);
	margin-bottom: 20px;
	line-height: 1.6;
}

.prompt-countdown {
	font-size: 14px;
	color: var(--text-muted);
}

.prompt-countdown span {
	color: var(--accent);
	font-weight: 600;
}

.prompt-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 8px;
}

.prompt-btn {
	padding: 8px 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 14px;
	color: var(--text-secondary);
	background: #fff;
	transition: all 0.2s;
}

.prompt-btn:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.prompt-btn-primary {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

.prompt-btn-primary:hover {
	background: var(--accent-light);
	border-color: var(--accent-light);
	color: #fff;
}

/* ---------- Footer ---------- */
.footer {
	border-top: 1px solid var(--border-light);
	background: #fff;
}

.footer-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: var(--text-muted);
}

.footer a {
	color: var(--text-secondary);
}

.footer a:hover {
	color: var(--text);
}

.footer-sep {
	margin: 0 6px;
	color: var(--border);
}

/* ========================================
   Alert Popup
   ======================================== */
.alert {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.alert-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.15);
}

.alert-box {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.12);
	width: 340px;
	overflow: hidden;
}

.alert-content {
	padding: 28px 24px;
	font-size: 15px;
	color: var(--text);
	text-align: center;
}

.alert-footer {
	display: flex;
	border-top: 1px solid var(--border-light);
}

.alert-footer > div {
	flex: 1;
	padding: 14px;
	text-align: center;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s;
}

.alert-cancel {
	color: var(--text-secondary);
}

.alert-cancel:hover {
	background: var(--bg-hover);
}

.alert-confirm {
	color: #fff;
	background: var(--accent);
}

.alert-confirm:hover {
	background: var(--accent-light);
}

/* ========================================
   Responsive - 移动端适配
   ======================================== */
@media (max-width: 768px) {
	:root {
		--sidebar-width: 100%;
	}

	/* Header */
	.nav {
		display: none;
		position: absolute;
		top: 56px;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		padding: 8px 0;
		border-bottom: 1px solid var(--border-light);
		box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	}

	.nav.open {
		display: flex;
	}

	.nav a {
		padding: 12px 20px;
		border-radius: 0;
		width: 100%;
	}

	.menu-toggle {
		display: flex;
	}

	/* Layout */
	.layout {
		flex-direction: column-reverse;
	}

	.layout-single {
		flex-direction: column;
	}

	.main {
		padding: 20px 16px 40px;
	}

	/* Timeline */
	.timeline::before {
		left: 12px;
	}

	.timeline-item {
		padding-left: 38px;
	}

	.timeline-dot {
		left: 12px;
		top: 24px;
		width: 8px;
		height: 8px;
	}

	.timeline-card {
		padding: 16px 0;
	}

	.timeline-title {
		font-size: 16px;
	}

	/* Sidebar */
	.sidebar {
		position: static;
		flex: 0 0 100%;
		width: 100%;
	}

	/* Article */
	.article {
		padding: 24px 20px;
	}

	.article-title {
		font-size: 22px;
	}

	.article-nav {
		flex-direction: column;
	}

	.article-prev,
	.article-next {
		max-width: 100%;
	}

	/* Comments */
	.comments {
		padding: 24px 20px;
	}

	.comment-fields {
		flex-direction: column;
	}

	.comment-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.btn-submit {
		margin-left: 0;
	}

	/* Footer */
	.footer-inner {
		flex-direction: column;
		gap: 6px;
		text-align: center;
		padding: 16px;
	}

	/* Login */
	.login-card {
		padding: 36px 24px;
		margin: 0 16px;
	}

	/* Prompt */
	.prompt-card {
		margin: 0 16px;
		padding: 36px 24px;
	}
}

/* ========================================
   Animations
   ======================================== */
.ani-in { animation: fadeIn 0.4s ease; }
.ani-out { animation: fadeOut 0.4s ease; }
.ani-up-in { animation: slideUp 0.4s ease; }

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes fadeOut {
	from { opacity: 1; }
	to { opacity: 0; }
}

@keyframes slideUp {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Print */
@media print {
	.header, .footer, .sidebar, .comments, .article-nav { display: none; }
	.main { padding: 0; }
	.article { border: none; padding: 0; }
}