/* 首页和通用组件样式 - 基于 member-common.css 变量体系 */

/* 移动端适配 */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 8px 15px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .breadcrumbs li::after {
        margin: 0 4px;
    }
}

/* 分类标签 */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tag {
    background: var(--primary-bg);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    color: var(--primary-link);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--primary-lighter);
}

.tag.active {
    background: var(--primary-link);
    color: white;
}

:root {
    --link-color: var(--primary);
}

a {
    color: var(--link-color);
    text-decoration: none;
}
.active a{
    color: white;
}

/* 书籍列表 */
.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.book-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-info {
    padding: 1rem;
}

.book-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.book-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}
.tags .tag {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 14px;
    border-radius: 20px;
    padding: 0 10px;
    height: 26px;
    line-height: 26px;
    margin-right: 5px;
    text-shadow: 0 1px 0 rgba(0,0,0,.1);
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.tags .tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.tags .cur {
    background: var(--primary);
    color: white;
}
.tags .cur a{
    color: var(--text-inverse);
}
.book-intro {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
