/* 兴趣爱好页面样式 */
.hobbies-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* 兴趣分类导航 */
.hobbies-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hobbies-nav button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hobbies-nav button:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.hobbies-nav button.active {
    background-color: #00a8ff;
    color: #fff;
}

/* 兴趣展示网格 */
.hobbies-grid {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
}

.hobby-category {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.hobby-category h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #00a8ff;
    padding-bottom: 0.5rem;
}

.hobby-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hobby-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hobby-item:hover {
    transform: translateY(-10px);
}

.hobby-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hobby-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hobby-item:hover .hobby-image img {
    transform: scale(1.1);
}

.hobby-info {
    padding: 1.5rem;
}

.hobby-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.hobby-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hobby-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hobby-stats span {
    background-color: #f0f7ff;
    color: #0066cc;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* 兴趣发展计划 */
.hobbies-plan {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.hobbies-plan h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.plan-item:hover {
    transform: translateY(-5px);
}

.plan-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.plan-item h3 {
    color: #00a8ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.plan-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-item li {
    color: #666;
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    text-align: left;
}

.plan-item li::before {
    content: "•";
    color: #00a8ff;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* 动画效果 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hobby-category:nth-child(1) { animation-delay: 0.1s; }
.hobby-category:nth-child(2) { animation-delay: 0.2s; }
.hobby-category:nth-child(3) { animation-delay: 0.3s; }
.hobby-category:nth-child(4) { animation-delay: 0.4s; }

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .hobbies-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .hobbies-nav button {
        width: 100%;
    }

    .hobby-items {
        grid-template-columns: 1fr;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .hobby-info h3 {
        font-size: 1.1rem;
    }

    .hobbies-plan h2 {
        font-size: 1.5rem;
    }
}

/* 悬停效果 */
.hobby-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.hobby-stats span:hover {
    background-color: #d0e8ff;
}

/* 装饰效果 */
.hobby-category::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #00a8ff, transparent);
    margin-top: 3rem;
}

.hobby-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 168, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.hobby-item:hover::before {
    opacity: 1;
}

/* 动态效果 */
.plan-item {
    position: relative;
    overflow: hidden;
}

.plan-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.plan-item:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
} 