/* ========== 首页特有样式 ========== */

/* 站点头部 */
.site-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.site-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.site-slogan {
    font-size: 1.1rem;
    color: var(--muted);
    font-style: normal;
    margin-top: 0.8rem;
}

/* 分类区块 */
.section {
    margin-top: 2.5rem;
}

/* 书籍列表 */
.book-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

/* 单个列表项 */
.book-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--sidebar-bg);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.book-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: var(--accent);
}

/* 封面图片 */
.book-thumb {
    width: 90px;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--blockquote-bg);
    flex-shrink: 0;
}

/* 右侧文字区域 */
.book-details {
    flex: 1;
    min-width: 0;
}
.book-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}
.book-author {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}
.book-intro {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部版权 */
.site-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.8;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .book-thumb {
        width: 70px;
        height: 95px;
    }
    .book-title {
        font-size: 1rem;
    }
    .book-author {
        font-size: 0.8rem;
    }
    .book-intro {
        font-size: 0.75rem;
    }
}