/* 页面banner样式 */
.page-banner {
    margin-top: 80px;
    position: relative;
    height: 400px;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    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);
}

.banner-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

/* 分类导航样式 */
.category-nav {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
    z-index: 90;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.category-nav li {
    padding: 10px 30px;
    margin: 0 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.category-nav li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #e60012;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.category-nav li.active {
    color: #e60012;
}

.category-nav li.active::after {
    width: 80%;
}

/* 糕点展示样式 */
.snacks-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.snack-category {
    display: none;
}

.snack-category.active {
    display: block;
}

.snack-item {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.snack-item:hover {
    transform: translateY(-5px);
}

.snack-image {
    width: 400px;
    position: relative;
    overflow: hidden;
}

.snack-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.snack-image:hover img {
    transform: scale(1.05);
}

.rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
}

.stars {
    color: #ffd700;
}

.snack-info {
    flex: 1;
    padding: 30px;
}

.snack-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.brief {
    color: #666;
    margin-bottom: 20px;
}

.details {
    display: none;
    margin: 20px 0;
}

.details h4 {
    font-size: 18px;
    color: #333;
    margin: 15px 0 10px;
}

.process ol {
    padding-left: 20px;
    color: #666;
}

.video-demo {
    margin-top: 20px;
}

.video-demo video {
    width: 100%;
    max-width: 500px;
    border-radius: 5px;
}

.show-more {
    display: inline-block;
    padding: 8px 20px;
    background: #e60012;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.show-more:hover {
    background: #cc0000;
}

/* 动画效果 */
.snack-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 