/* 兴趣爱好页面样式 */
.hobby-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 头部横幅 */
.hero {
    position: relative;
    height: 400px;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 8px;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 分类导航 */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active {
    background: #1e88e5;
    color: #fff;
}

/* 爱好网格 */
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hobby-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-5px);
}

.hobby-image {
    height: 200px;
    overflow: hidden;
}

.hobby-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hobby-card:hover .hobby-image img {
    transform: scale(1.1);
}

.hobby-info {
    padding: 1.5rem;
}

.hobby-info h3 {
    margin-bottom: 1rem;
    color: #333;
}

.hobby-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hobby-meta {
    display: flex;
    gap: 1rem;
    color: #999;
    font-size: 0.9rem;
}

.hobby-meta span {
    display: flex;
    align-items: center;
}

.hobby-meta i {
    margin-right: 0.5rem;
}

/* 成就展示 */
.achievements {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.achievements h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.achievements ul {
    list-style: none;
    padding-left: 1rem;
}

.achievements li {
    position: relative;
    margin-bottom: 0.5rem;
    color: #666;
}

.achievements li::before {
    content: "•";
    color: #1e88e5;
    position: absolute;
    left: -1rem;
}

/* 图片预览 */
.image-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

.preview-content {
    max-width: 90%;
    max-height: 90%;
}

.preview-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hobby-container {
        padding: 1rem;
    }

    .category-nav {
        flex-wrap: wrap;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
} 