/* ==========================================
   文艺清新主题 —— 个人博客样式
   ========================================== */

/* --- 字体引入 --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500&display=swap');

/* --- CSS 变量 --- */
:root {
    --bg:            #faf8f5;
    --bg-card:       #ffffff;
    --bg-warm:       #fdf6ec;
    --text:          #3d3d3d;
    --text-light:    #8c8c8c;
    --text-muted:    #b0b0b0;
    --accent:        #8B7355;
    --accent-light:  #c9b99a;
    --accent-warm:   #C17D5A;
    --green-muted:   #6B8E6B;
    --border:        #e8e0d5;
    --border-light:  #f0ebe0;
    --shadow:        0 2px 16px rgba(139, 115, 85, 0.08);
    --shadow-hover:  0 4px 24px rgba(139, 115, 85, 0.14);
    --serif:         'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'Songti SC', serif;
    --sans:          'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --radius:        12px;
    --max-width:     760px;
    --transition:    0.25s ease;
}

/* --- 全局重置 --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--serif);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.85;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent-warm);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- 顶部导航 --- */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.85);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    overflow: visible;
}

.site-title {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.site-brand {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
}

.site-slogan {
    font-family: var(--serif);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.site-nav a {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 2rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
    color: var(--accent-warm);
    border-bottom-color: var(--accent-warm);
}

/* --- 管理下拉菜单 --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
    padding: 1.25rem 0;
    margin-left: 2rem;
    cursor: pointer;
}
.nav-dropdown-label {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
    transition: color var(--transition);
    user-select: none;
}
.nav-dropdown:hover .nav-dropdown-label,
.nav-dropdown.active > .nav-dropdown-label {
    color: var(--accent-warm);
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 110px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 200;
    overflow: hidden;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: block !important;
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    color: var(--text-color) !important;
    border: none !important;
    white-space: nowrap;
    transition: background var(--transition);
}
.nav-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--accent-warm) !important;
}

/* --- 主内容区 --- */
.main-content {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

/* --- 页面标题 --- */
.page-title {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}
.page-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-light);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* --- 标签筛选 --- */
.tag-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.tag-btn {
    font-family: var(--sans);
    font-size: 0.8rem;
    padding: 0.35rem 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}
.tag-btn:hover {
    border-color: var(--accent-light);
    color: var(--accent-warm);
}
.tag-btn.active {
    background: var(--accent-warm);
    color: #fff;
    border-color: var(--accent-warm);
}

/* --- 文章卡片 --- */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    overflow: hidden;
}
.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* 文章卡片封面图 */
.article-card .card-cover {
    margin: -2rem -2rem 1.25rem -2rem;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.article-card .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.article-card:hover .card-cover img {
    transform: scale(1.05);
}

.article-card .card-date {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.article-card .card-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}
.article-card .card-title a {
    color: inherit;
}
.article-card .card-title a:hover {
    color: var(--accent-warm);
}

.article-card .card-summary {
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.card-tag {
    font-family: var(--sans);
    font-size: 0.7rem;
    padding: 0.15rem 0.7rem;
    border-radius: 12px;
    color: #fff;
    font-weight: 400;
}

.card-views {
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- 分页 --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    font-family: var(--sans);
}

.pagination button {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
}
.pagination button:hover:not(:disabled) {
    border-color: var(--accent-light);
    color: var(--accent-warm);
}
.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination .page-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- 文章详情页 --- */
.article-detail {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.article-header h1 {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.article-header .meta {
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.article-header .meta .sep {
    color: var(--border);
}

/* 文章详情封面图 */
.article-cover {
    margin: -0.5rem 0 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    display: block;
    border-radius: 8px;
    max-height: 400px;
    object-fit: cover;
}

/* --- Markdown 渲染内容 --- */
.markdown-body {
    font-family: var(--serif);
    line-height: 2;
    color: var(--text);
    word-break: break-word;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    font-family: var(--serif);
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}
.markdown-body h1 { font-size: 1.6rem; }
.markdown-body h2 { font-size: 1.35rem; }
.markdown-body h3 { font-size: 1.15rem; }

.markdown-body p {
    margin-bottom: 1.2rem;
}

.markdown-body blockquote {
    border-left: 4px solid var(--accent-light);
    padding: 0.6rem 1.2rem;
    margin: 1.2rem 0;
    background: var(--bg-warm);
    border-radius: 0 8px 8px 0;
    color: var(--text-light);
    font-style: italic;
}

.markdown-body ul, .markdown-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.markdown-body li {
    margin-bottom: 0.4rem;
}

.markdown-body code {
    font-family: 'Fira Code', 'Consolas', monospace;
    background: var(--bg-warm);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.88rem;
    color: var(--accent-warm);
}

.markdown-body pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.2rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.2rem 0;
    line-height: 1.6;
}

.markdown-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 0.85rem;
}

.markdown-body strong {
    color: var(--accent);
    font-weight: 700;
}

.markdown-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.markdown-body a {
    color: var(--accent-warm);
    border-bottom: 1px dotted var(--accent-light);
}
.markdown-body a:hover {
    border-bottom-style: solid;
}

.markdown-body img {
    border-radius: 8px;
    margin: 1rem auto;
    display: block;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
}
.markdown-body th, .markdown-body td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    text-align: left;
}
.markdown-body th {
    background: var(--bg-warm);
    font-weight: 600;
    color: var(--accent);
}

/* --- 文章底部标签 --- */
.article-footer-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.article-footer-tags .tag-item {
    font-family: var(--sans);
    font-size: 0.78rem;
    padding: 0.25rem 0.9rem;
    border-radius: 16px;
    color: #fff;
}

/* --- 返回按钮 --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    transition: color var(--transition);
}
.back-link:hover {
    color: var(--accent-warm);
}

/* --- 文章底部随机语录（打字机风格） --- */
.article-quote {
    margin-top: 2.5rem;
    padding: 1.8rem 1.5rem;
    text-align: right;
    border-top: 1px dashed var(--border);
    position: relative;
    overflow: hidden;
}

.quote-text {
    display: block;
    font-family: var(--serif);
    font-size: 0.95rem;
    line-height: 2;
    color: var(--text-light);
    font-style: italic;
    letter-spacing: 0.05em;
}

.quote-author {
    display: block;
    margin-top: 0.8rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    opacity: 0;
    animation: author-fade-in 0.6s ease forwards;
    animation-delay: 0.1s;
}

@keyframes author-fade-in {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* --- 关于页面 --- */
.about-page {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.about-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-warm));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
}

.about-page h1 {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.about-page .subtitle {
    font-family: var(--sans);
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-page .bio {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--text);
    line-height: 2;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.about-page .bio p {
    margin-bottom: 1rem;
}

.about-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.about-links a {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--text-light);
}
.about-links a:hover {
    color: var(--accent-warm);
}

/* --- 加载动画 --- */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-family: var(--serif);
}
.loading::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    border: 2px solid var(--border);
    border-top-color: var(--accent-warm);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- 空状态 --- */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
    font-family: var(--serif);
    font-size: 1rem;
}

/* --- 页脚 --- */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    text-align: center;
    padding: 1.5rem 2rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-footer .heart {
    color: var(--accent-warm);
}

/* --- 写文章表单 --- */
.write-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--serif);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.form-group label .optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-group label .hint {
    font-weight: 400;
    color: var(--accent-light);
    font-size: 0.8rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    border-color: var(--accent-warm);
    box-shadow: 0 0 0 3px rgba(193, 125, 90, 0.1);
}

.form-group textarea {
    font-family: var(--sans);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="password"]::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* 标签复选框 */
.tag-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--text-light);
    transition: all var(--transition);
    user-select: none;
}

.tag-checkbox:hover {
    border-color: var(--accent-light);
}

.tag-checkbox.checked {
    background: var(--accent-warm);
    color: #fff;
    border-color: var(--accent-warm);
}

.tag-checkbox input[type="checkbox"] {
    display: none;
}

.loading-tags {
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* 表单按钮 */
.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Markdown 编辑器工具栏 */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.toolbar-btn {
    font-family: var(--sans);
    font-size: 0.82rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--accent);
    cursor: pointer;
    transition: all var(--transition);
}

.toolbar-btn:hover {
    border-color: var(--accent-warm);
    background: var(--bg-warm);
}

.toolbar-hint {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 封面上传区域 */
.cover-upload-area {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.cover-preview {
    width: 260px;
    height: 150px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg);
    cursor: pointer;
    transition: border-color var(--transition);
    flex-shrink: 0;
}

.cover-preview:hover {
    border-color: var(--accent-light);
}

.cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-placeholder {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
}

.cover-upload-area .btn-upload-cover,
.cover-upload-area .btn-remove-cover {
    font-family: var(--sans);
    font-size: 0.82rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-upload-cover {
    background: var(--bg);
    color: var(--accent);
}

.btn-upload-cover:hover {
    border-color: var(--accent-warm);
    background: var(--bg-warm);
}

.btn-remove-cover {
    background: var(--bg);
    color: #c0392b;
}

.btn-remove-cover:hover {
    border-color: #c0392b;
    background: #fff5f5;
}

.btn-preview,
.btn-submit {
    flex: 1;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--serif);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-preview {
    background: var(--bg);
    color: var(--text-light);
    border: 1px solid var(--border);
}

.btn-preview:hover {
    border-color: var(--accent-light);
    color: var(--accent);
}

.btn-submit {
    background: var(--accent-warm);
    color: #fff;
}

.btn-submit:hover {
    background: var(--accent);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 预览面板 */
.preview-panel {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    min-height: 200px;
}

/* 消息提示 */
.form-message {
    margin-top: 1rem;
    text-align: center;
    font-family: var(--sans);
    font-size: 0.85rem;
}

.form-message.success {
    color: var(--green-muted);
}

.form-message.error {
    color: #c0392b;
}

/* --- 打赏弹窗 --- */
.donate-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.donate-overlay.show {
    display: flex;
}

.donate-modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem 2rem 2rem;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: donateFadeIn 0.3s ease;
}

@keyframes donateFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.donate-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color var(--transition);
}

.donate-close:hover {
    color: var(--accent-warm);
}

.donate-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.donate-subtitle {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.donate-qrcode {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.donate-hint {
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* --- 登录页面 --- */
.login-page {
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.login-subtitle {
    text-align: center;
    font-family: var(--sans);
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.login-form .btn-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.login-hint {
    text-align: center;
    margin-top: 1.5rem;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- 响应式 --- */
@media (max-width: 640px) {
    .main-content {
        padding: 2rem 1rem 4rem;
    }

    .article-card {
        padding: 1.25rem;
    }

    .article-detail {
        padding: 1.5rem;
    }

    .about-page {
        padding: 1.5rem;
    }

    .write-form {
        padding: 1.25rem;
    }

    .form-actions {
        flex-direction: column;
    }

    /* 移动端 header 垂直堆叠 */
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 0.75rem 0;
        gap: 0.5rem;
    }

    .site-brand {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
    }

    .site-slogan {
        font-size: 12px;
    }

    .site-nav a {
        margin-left: 0.75rem;
        font-size: 0.82rem;
    }

    .nav-dropdown {
        margin-left: 0.75rem;
    }
    .nav-dropdown-label {
        font-size: 0.82rem;
    }
    .nav-dropdown-menu a {
        font-size: 0.78rem !important;
    }

    .article-header h1 {
        font-size: 1.4rem;
    }

    .article-card .card-cover {
        height: 140px;
        margin: -1.25rem -1.25rem 1rem -1.25rem;
    }

    .cover-preview {
        width: 100%;
        height: 160px;
    }

    .article-cover img {
        max-height: 240px;
    }
}
