/* ========================================
   Anya & Kimo - 博客列表页样式
   
   从 blog/index.html 内联 <style> 提取。
   包含：搜索栏、文章卡片、分页、空状态、加载动画。
   ======================================== */

/* 主内容区（避开固定导航栏） */
.main {
    position: relative;
    z-index: 1;
    padding-top: 64px;
}

/* ========================================
   Hero 标题
   ======================================== */

.blog-hero,
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.blog-hero .hero-title,
.hero .hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero .hero-subtitle,
.hero .hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   搜索和筛选栏
   ======================================== */

.filter-bar {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.search-box:focus {
    border-color: var(--pink);
    box-shadow: 0 0 20px rgba(255, 126, 179, 0.2);
}

.search-box::placeholder {
    color: var(--text-secondary);
}

.filter-select {
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    cursor: pointer;
    min-width: 140px;
}

.filter-select:focus {
    border-color: var(--pink);
}

/* ========================================
   文章列表
   ======================================== */

.article-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    gap: 24px;
}

.article-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--pink);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.article-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-card:hover .article-title {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.article-category {
    padding: 4px 12px;
    background: rgba(255, 126, 179, 0.15);
    border-radius: 20px;
    color: var(--pink);
    font-weight: 600;
}

.article-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.article-tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   空状态
   ======================================== */

.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ========================================
   分页
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 24px;
}

.page-btn {
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: var(--pink);
}

.page-btn.active {
    background: var(--accent);
    border-color: transparent;
}

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

/* ========================================
   加载动画
   ======================================== */

.loading {
    text-align: center;
    padding: 60px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

/* ========================================
   博客页页脚（兼容 .footer 类名，与全局 footer 元素不冲突）
   ======================================== */

.footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}

.footer a {
    color: var(--pink);
    text-decoration: none;
}

/* ========================================
   响应式
   ======================================== */

@media (max-width: 768px) {
    .blog-hero .hero-title {
        font-size: 32px;
    }

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