/*
 * 技术作品集展示网站 - 主样式表
 * 简约技术风，响应式适配
 */

/* ========== 变量与重置 ========== */
:root {
    --color-primary: #2563eb;
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --color-bg-card: #ffffff;
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-light: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --header-height: 60px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部导航 ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    font-weight: 700;
    font-size: 18px;
}

.site-logo:hover {
    color: var(--color-primary);
}

.logo-icon {
    font-size: 22px;
    color: var(--color-primary);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--color-text);
    background: var(--color-border-light);
}

.nav-item.active {
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.08);
}

.nav-admin {
    font-size: 16px;
    margin-left: 4px;
}

.nav-login, .nav-register {
    font-weight: 600;
}
.nav-login {
    color: var(--color-primary);
}
.nav-register {
    background: var(--color-primary);
    color: white !important;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
}
.nav-register:hover {
    background: var(--color-primary-dark);
    color: white !important;
}

/* 用户菜单 */
.nav-user-menu {
    position: relative;
    margin-left: 4px;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.nav-user-btn:hover {
    background: var(--color-primary-dark);
}

.user-avatar {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 10px;
    height: 10px;
    background: white;
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    transform: rotate(45deg);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--color-bg-light);
}

.user-dropdown-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.user-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.user-dropdown-username {
    font-size: 12px;
    color: var(--color-text-light);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
}

.user-dropdown-item:hover {
    background: var(--color-border-light);
    color: var(--color-text);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 4px 0;
}

.user-dropdown-logout {
    color: var(--color-danger);
}

.user-dropdown-logout:hover {
    background: #fef2f2;
    color: var(--color-danger);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== 主内容区 ========== */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 80px);
    padding-bottom: 40px;
}

/* ========== 首页 Hero ========== */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #f0fdf4 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 24px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: var(--shadow-lg);
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

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

/* ========== 分类快捷入口 ========== */
.section {
    padding: 48px 0;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.section-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.category-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* ========== 作品卡片列表 ========== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.post-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 40px;
    overflow: hidden;
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    padding: 20px;
}

.post-category-badge {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--color-primary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.post-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .post-excerpt {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-light);
    padding-top: 12px;
    border-top: 1px solid var(--color-border-light);
}

/* ========== 作品详情页 ========== */
.post-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.post-detail-header {
    margin-bottom: 32px;
}

.post-detail-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.post-detail-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    line-height: 1.8;
}

.post-detail-content img {
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.post-detail-content h2 { font-size: 22px; margin: 28px 0 14px; }
.post-detail-content h3 { font-size: 18px; margin: 24px 0 12px; }
.post-detail-content p { margin-bottom: 12px; }
.post-detail-content ul, .post-detail-content ol { margin: 12px 0; padding-left: 24px; }
.post-detail-content code {
    background: var(--color-bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
}
.post-detail-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.6;
}
.post-detail-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.post-detail-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--color-border-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--color-text-secondary);
}
.post-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.post-detail-content th, .post-detail-content td {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    text-align: left;
    font-size: 14px;
}
.post-detail-content th {
    background: var(--color-bg-light);
    font-weight: 600;
}

/* ========== 分页导航 ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-danger {
    background: var(--color-danger);
    color: white;
    border-color: var(--color-danger);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border-color: var(--color-border);
}

.btn-ghost:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-text);
}

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-sans);
    transition: var(--transition);
    background: white;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-help {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ========== 管理后台 ========== */
.admin-container {
    padding: 24px 0;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
    overflow-x: auto;
}

.admin-tab {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.admin-tab:hover {
    color: var(--color-text);
}

.admin-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.admin-table th {
    background: var(--color-bg-light);
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
}

.admin-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--color-border-light);
}

.admin-actions {
    display: flex;
    gap: 6px;
}

.admin-table .post-title-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 模态框 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    font-size: 20px;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--color-border-light);
    color: var(--color-text);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
}

/* ========== 富文本编辑器区域 ========== */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.editor-toolbar button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.editor-toolbar button:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.editor-toolbar .sep {
    width: 1px;
    background: var(--color-border);
    margin: 4px 6px;
}

.editor-area {
    min-height: 300px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 15px;
    line-height: 1.8;
    outline: none;
}

.editor-area:focus {
    border-color: var(--color-primary);
}

.editor-area img {
    max-width: 100%;
    cursor: pointer;
}

/* ========== 图片上传区域 ========== */
.image-upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.image-upload-area:hover {
    border-color: var(--color-primary);
    background: rgba(37, 99, 235, 0.02);
}

.image-upload-area .upload-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.image-upload-area p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.image-preview-item:hover .remove-btn {
    opacity: 1;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--color-text);
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* ========== 提示消息 ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: #1e293b;
    color: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 3000;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }

/* ========== 底部 ========== */
.site-footer {
    background: white;
    border-top: 1px solid var(--color-border);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* ========== 分类页头部 ========== */
.category-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    padding: 60px 0 40px;
    text-align: center;
}

.category-hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-hero p {
    font-size: 15px;
    color: var(--color-text-secondary);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 12px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }

    .site-nav.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .post-detail-content {
        padding: 20px;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }

    .modal {
        max-width: 100%;
        margin: 10px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 22px;
    }

    .section-title {
        font-size: 18px;
    }
}

/* ========== 统计卡片 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

/* ========== 设置页面 ========== */
.settings-form {
    max-width: 600px;
}

/* ========== 筛选栏 ========== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-bar .form-input {
    max-width: 300px;
}

/* ========== 最新作品展示区 ========== */
.latest-posts {
    margin-top: 20px;
}
