@charset "UTF-8";
/*!
 * Enhanced Classic 22 Theme
 * Optimized for beauty and elegance
 */

/* ===== 基础重置和变量 ===== */
:root {
    --pico-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --pico-line-height: 1.7;
    --pico-font-size: 100%;
    --pico-border-radius: 0.75rem;
    --pico-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pico-spacing: 1.25rem;
    --pico-typography-spacing-vertical: 1.5rem;
    
    /* 浅色主题配色 */
    --pico-background-color: #fafbfc;
    --pico-color: #2d3748;
    --pico-primary: #667eea;
    --pico-primary-hover: #5568d3;
    --pico-secondary: #718096;
    --pico-muted-color: #a0aec0;
    --pico-muted-border-color: #e2e8f0;
    --pico-h1-color: #1a202c;
    --pico-h2-color: #2d3748;
    --pico-h3-color: #4a5568;
    --pico-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --pico-form-element-border-color: #cbd5e1;
    --pico-form-element-background-color: #fff;
    --pico-code-background-color: #f7fafc;
}

[data-theme="dark"] {
    --pico-background-color: #0f172a;
    --pico-color: #cbd5e1;
    --pico-primary: #818cf8;
    --pico-primary-hover: #a5b4fc;
    --pico-secondary: #94a3b8;
    --pico-muted-color: #64748b;
    --pico-muted-border-color: #1e293b;
    --pico-h1-color: #f8fafc;
    --pico-h2-color: #f1f5f9;
    --pico-h3-color: #e2e8f0;
    --pico-box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --pico-form-element-border-color: #334155;
    --pico-form-element-background-color: #1e293b;
    --pico-code-background-color: #1e293b;
}

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

body {
    font-family: var(--pico-font-family);
    line-height: var(--pico-line-height);
    background: linear-gradient(180deg, var(--pico-background-color) 0%, color-mix(in srgb, var(--pico-background-color), transparent 20%) 100%);
    color: var(--pico-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== 容器布局 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-thin {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== 导航栏美化 ===== */
.site-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--pico-transition);
}

[data-theme="dark"] .site-navbar {
    background: linear-gradient(135deg, #4c1d95 0%, #581c87 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.site-navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-navbar .site-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
}

.site-navbar .brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    transition: transform var(--pico-transition);
    display: inline-block;
}

.site-navbar .brand:hover {
    transform: translateY(-2px);
}

.site-navbar .brand img {
    max-height: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.site-navbar .desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.site-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.site-nav .nav-menu li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all var(--pico-transition);
    font-weight: 500;
}

.site-nav .nav-menu li a:hover,
.site-nav .nav-menu li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.site-nav input[type="search"] {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    color: #fff;
    width: 200px;
    transition: all var(--pico-transition);
}

.site-nav input[type="search"]:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    width: 250px;
}

.site-nav input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* 移动端菜单按钮 */
.nav-toggler-btn {
    display: none;
    cursor: pointer;
    color: #fff;
}

@media (max-width: 768px) {
    .nav-toggler-btn {
        display: block;
    }
    
    .site-nav #nav-toggler:checked ~ .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    
    .site-nav .nav-menu {
        display: none;
    }
}

/* ===== 主要内容区域 ===== */
main.container {
    padding: 3rem 1.5rem;
    flex: 1;
}

/* ===== 文章卡片样式 ===== */
.post {
    background: var(--pico-form-element-background-color);
    border-radius: var(--pico-border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--pico-box-shadow);
    transition: all var(--pico-transition);
    border: 1px solid var(--pico-muted-border-color);
}

.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.entry-title a {
    color: var(--pico-h2-color);
    text-decoration: none;
    transition: color var(--pico-transition);
}

.entry-title a:hover {
    color: var(--pico-primary);
}

.entry-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--pico-muted-color);
    font-size: 0.875rem;
}

.entry-meta li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.entry-meta a {
    color: var(--pico-muted-color);
    text-decoration: none;
    transition: color var(--pico-transition);
}

.entry-meta a:hover {
    color: var(--pico-primary);
}

/* ===== 文章分隔线 ===== */
.post-separator {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--pico-muted-border-color), transparent);
    margin: 3rem 0;
}

/* ===== 分页导航 ===== */
nav[aria-label="Pagination"],
.page-navigator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    list-style: none;
}

.page-navigator a {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    background: var(--pico-form-element-background-color);
    color: var(--pico-color);
    text-decoration: none;
    transition: all var(--pico-transition);
    border: 1px solid var(--pico-muted-border-color);
}

.page-navigator a:hover {
    background: var(--pico-primary);
    color: #fff;
    border-color: var(--pico-primary);
    transform: translateY(-2px);
}

.page-navigator .current a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    pointer-events: none;
}

/* ===== 文章内容样式 ===== */
.entry-content {
    line-height: 1.8;
}

.entry-content fmt {
    display: block;
}

.entry-content a {
    color: var(--pico-primary);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.entry-content a:hover {
    color: var(--pico-primary-hover);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pico-border-radius);
    margin: 1.5rem 0;
    box-shadow: var(--pico-box-shadow);
}

.entry-content pre,
.entry-content code {
    background: var(--pico-code-background-color);
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
}

.entry-content pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--pico-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--pico-muted-color);
    font-style: italic;
}

/* ===== 评论区域美化 ===== */
#comments {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
}

.comment-body {
    background: var(--pico-form-element-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--pico-transition);
}

.comment-body:hover {
    box-shadow: var(--pico-box-shadow);
    transform: translateX(4px);
}

.comment-author .avatar {
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-author cite {
    font-weight: 700;
    color: var(--pico-h2-color);
    font-style: normal;
}

.comment-meta a,
.comment-reply a {
    color: var(--pico-muted-color);
    font-size: 0.875rem;
    text-decoration: none;
}

.comment-meta a:hover,
.comment-reply a:hover {
    color: var(--pico-primary);
}

.comment-content {
    margin-top: 1rem;
    line-height: 1.7;
}

/* 评论表单 */
.respond {
    background: var(--pico-form-element-background-color);
    padding: 2rem;
    border-radius: var(--pico-border-radius);
    border: 1px solid var(--pico-muted-border-color);
    margin-top: 2rem;
}

.respond textarea,
.respond input {
    background: var(--pico-form-element-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all var(--pico-transition);
}

.respond textarea:focus,
.respond input:focus {
    border-color: var(--pico-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.respond button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--pico-transition);
}

.respond button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ===== 页脚 ===== */
.site-footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #cbd5e1;
    padding: 2rem 0;
    margin-top: auto;
}

[data-theme="dark"] .site-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.site-footer .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-footer ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color var(--pico-transition);
}

.site-footer a:hover {
    color: #fff;
}

/* ===== 搜索页面 ===== */
#s {
    max-width: 500px;
    margin: 2rem auto;
    display: block;
}

/* ===== 404 页面 ===== */
h1[style*="font-size: 4rem"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 工具类 ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--pico-muted-color);
}

.list-inline {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post,
.comment-body {
    animation: fadeInUp 0.5s ease-out;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    main.container {
        padding: 2rem 1rem;
    }
    
    .post {
        padding: 1.5rem;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--pico-background-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a4190 100%);
}
