/* 全局样式 */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fffbf7; /* 浅米色背景 */
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 通用组件 */
.btn-outline {
    display: inline-block;
    padding: 8px 25px;
    border: 1px solid #a0522d;
    border-radius: 20px;
    color: #a0522d;
    text-decoration: none;
    font-size: 14px;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: #a0522d;
    color: white;
}

.sub-heading {
    color: #a0522d; /* 棕红色 */
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.main-heading {
    font-size: 28px;
    font-weight: 800;
    margin: 10px 0 20px 0;
    color: #333;
}

.center-heading {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #333;
}

.description {
    font-size: 12px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

/* 占位图样式 */
.placeholder-img {
    background-color: #eee;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
    border: 1px solid #ddd;
    min-height: 200px;
}

/* 头部样式 */
header {
    margin-bottom: 60px;
    padding-top: 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 60px; /* Logo 很大 */
    font-weight: bold;
    color: #a0522d;
    font-family: 'SimHei', 'Microsoft YaHei', sans-serif; /* 尽量用粗体黑体模拟 */
    letter-spacing: 2px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    margin-right: 35px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a:last-child {
    margin-right: 0;
}

.main-nav a.active {
    color: #a0522d;
    font-weight: bold;
}

/* 模拟 About Us 下方的笑脸弧线 */
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 8px;
    border-bottom: 3px solid #a0522d;
    border-radius: 50%;
}

.favorite-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.heart-icon {
    font-size: 16px;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
}

.user-actions a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #d2b48c; /* 占位色 */
    overflow: hidden;
    /* 如果有头像图片，可以添加 img 样式 */
}

.btn-personal {
    border: 1px solid #333;
    background-color: white;
    padding: 8px 20px;
    border-radius: 20px;
    color: #333;
    transition: all 0.3s;
}

.btn-personal:hover {
    background-color: #333;
    color: white;
}

.search-container {
    display: flex;
    justify-content: center;
}

.search-bar {
    background-color: #d2b49c; /* 稍深的浅棕色 */
    width: 100%;
    max-width: 800px; /* 宽搜索框 */
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(255,255,255,0.5);
    border: 1px solid rgba(160, 82, 45, 0.2); /* 淡淡的边框 */
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
}

.search-icon {
    font-size: 24px;
    color: #555;
    cursor: pointer;
    opacity: 0.7;
}

/* 特性区块样式 (About, Recipe, Life) */
.feature-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 40px;
}

.feature-section.left-text {
    flex-direction: row;
}

.feature-section.right-text {
    flex-direction: row; /* 默认图片在左，文字在右 */
}

/* 调整图片和文字的顺序 */
.feature-section.right-text .images-container {
    order: 1;
}
.feature-section.right-text .text-content {
    order: 2;
}

.feature-section.left-text .text-content {
    order: 1;
}
.feature-section.left-text .images-container {
    order: 2;
}


.text-content {
    flex: 1;
    max-width: 450px;
}

.images-container {
    flex: 1;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.image-wrapper {
    width: 180px;
    height: 240px;
    border-radius: 15px;
    padding: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.image-wrapper img {
    border-radius: 10px;
    height: 100%;
    object-fit: cover;
}

/* 图片错位效果 */
.offset-down {
    margin-top: 40px;
}

/* 团队样式 */
.team-section {
    margin-bottom: 80px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.team-member {
    aspect-ratio: 1;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 地址样式 */
.address-section {
    margin-bottom: 80px;
}

.pink-bg {
    background-color: #fff0f0; /* 浅粉色背景 */
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.map-container {
    max-width: 600px;
    height: 200px; /* 调整地图高度 */
    margin: 0 auto 20px;
    background: #e6e6fa;
    border-radius: 10px;
    overflow: hidden;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
}

.dot.active {
    background-color: #a0522d;
}

/* 联系我们样式 */
.contact-section {
    margin-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.contact-item {
    padding: 20px;
}

.contact-img-box {
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 10px;
    box-sizing: border-box;
}

.contact-desc {
    font-size: 12px;
    color: #333;
    margin-bottom: 5px;
}

.contact-email {
    font-size: 12px;
    color: #a0522d;
    font-weight: bold;
    cursor: pointer;
}

/* 页脚样式 */
footer {
    border-top: 1px solid #eee;
    padding-top: 40px;
    padding-bottom: 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #a0522d;
}

.social-icons {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-form input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 200px;
    background-color: #f9f9f9;
}

.subscribe-form button {
    padding: 8px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    font-size: 12px;
}

.copyright {
    font-size: 10px;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Pizza Details 页面样式 */
.detail-header {
    margin-bottom: 60px;
}
/* Create Recipe 页面样式 */
.create-recipe-container {
    max-width: 800px;
    margin: 0 auto 80px;
}

.page-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 40px;
}

.recipe-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-section {
    margin-bottom: 40px;
}

.section-label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    border-left: 4px solid #a0522d;
    padding-left: 10px;
}

/* 封面上传 */
.cover-upload-box {
    width: 100%;
    height: 300px;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.cover-upload-box:hover {
    border-color: #a0522d;
    background-color: #fffbf7;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.upload-text {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 12px;
}

/* 表单控件 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box; /* 确保 padding 不撑大宽度 */
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #a0522d;
}

.large-input {
    font-size: 18px;
    padding: 15px;
    font-weight: bold;
}

textarea.form-input {
    resize: vertical;
}

/* 表单行布局 */
.form-row {
    display: flex;
    gap: 20px;
}

.col-3 {
    flex: 1;
}

/* 食材清单 */
.ingredient-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.ing-name-input {
    flex: 2;
}

.ing-qty-input {
    flex: 1;
}

.remove-row {
    font-size: 20px;
    color: #ccc;
    cursor: pointer;
    padding: 5px;
}

.remove-row:hover {
    color: #ff4d4f;
}

.btn-add-row {
    width: 100%;
    padding: 12px;
    background: white;
    border: 2px dashed #ddd;
    border-radius: 10px;
    color: #a0522d;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-row:hover {
    border-color: #a0522d;
    background-color: #fffbf7;
}

/* 步骤编辑 */
.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: #a0522d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content textarea {
    margin-bottom: 10px;
}

.step-upload-small {
    width: 100px;
    height: 100px;
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

.step-upload-small:hover {
    border-color: #a0522d;
    color: #a0522d;
}

/* 底部按钮 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.btn-submit {
    padding: 12px 40px;
    background-color: #a0522d;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #8b4513;
}

.btn-draft {
    padding: 12px 30px;
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-draft:hover {
    border-color: #999;
    color: #333;
}
/* Profile 页面样式 */
.profile-header-section {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.profile-card {
    background: white;
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 5px;
    border: 2px dashed #a0522d; /* 装饰性边框 */
}

.profile-avatar-large .avatar-img {
    width: 100%;
    height: 100%;
    background-color: #d2b48c;
    border-radius: 50%;
    overflow: hidden;
}

.profile-name {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin: 0 0 10px;
}

.profile-bio {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background-color: #eee;
}

.btn-edit-profile {
    display: inline-block;
    padding: 10px 30px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-edit-profile:hover {
    background-color: #555;
}

.profile-content-section {
    max-width: 1000px;
    margin: 0 auto 80px;
}

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.tab-item {
    padding-bottom: 15px;
    text-decoration: none;
    color: #999;
    font-weight: 500;
    position: relative;
    font-size: 16px;
}

.tab-item.active {
    color: #333;
    font-weight: bold;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #a0522d;
    border-radius: 3px 3px 0 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.profile-food-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

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

.p-card-img {
    height: 200px;
    background-color: #f0f0f0;
}

.p-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-card-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.p-card-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px;
    color: #333;
}

.p-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

.p-card-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.small-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #d2b48c;
}

.add-new-card {
    border: 2px dashed #ddd;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.add-new-card:hover {
    border-color: #a0522d;
    background: rgba(160, 82, 45, 0.05);
    transform: translateY(-5px);
}

.add-new-content {
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.plus-icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: #ccc;
}

.add-new-card:hover .plus-icon,
.add-new-card:hover .add-new-content {
    color: #a0522d;
}

.intro-section {
    margin-bottom: 80px;
    padding: 0 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 30px;
}

.intro-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.intro-text {
    flex: 1;
}

.intro-video {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #a0522d;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.ingredients-section {
    margin-bottom: 80px;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.ingredient-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ing-img-box {
    width: 100px;
    height: 100px;
    background-color: #ccc;
    margin-bottom: 10px;
    object-fit: cover;
    border-radius: 10px;
}

.ing-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.ing-weight {
    font-size: 14px;
    color: #a0522d;
    font-weight: bold;
}

.practice-section {
    margin-bottom: 80px;
    max-width: 1000px;
    margin: 0 auto 80px;
}

.practice-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.practice-item {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* 偶数项反转布局 (可选，如果图片都是右边则不需要) */
/* .practice-item:nth-child(even) {
    flex-direction: row-reverse;
} */
/* 根据图片，所有步骤图片都在右边 */

.practice-text {
    flex: 1;
}

.step-title {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
}

.practice-img {
    flex: 1;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.practice-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Food Reviews 页面样式 */
.review-section {
    margin-bottom: 60px;
    padding: 0 20px;
}

.recommended-slider {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.slider-image-container {
    width: 100%;
    height: 400px; /* 大图高度 */
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.full-width-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot.active-brown {
    background-color: #a0522d;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.food-item, .food-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Home cooked food 圆形样式 */
.food-img-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.food-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Western food, Soup, Dessert 卡片样式 */
.food-item-card {
    background: transparent;
}

.card-img-box {
    width: 100%;
    aspect-ratio: 1; /* 正方形容器 */
    background: #ccc; /* 灰色背景模拟图片中的卡片底色 */
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    /* 图片中是灰色背景加上卡通人物，这里用占位符模拟 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 10px 0 5px;
}

.read-more-small {
    font-size: 12px;
    color: #a0522d;
    text-decoration: none;
}

/* 深色页脚 */
.footer-wrapper {
    width: 100%;
}

.dark-footer {
    background-color: #a67c52; /* 深棕色背景，尝试匹配图片 */
    color: white;
    margin-top: 80px;
    padding-bottom: 0;
}

/* 调整深色页脚内部样式 */
.dark-footer footer {
    border-top: none;
    padding-top: 40px;
    padding-bottom: 40px;
}

.dark-footer .footer-logo {
    color: white;
}

.dark-footer .social-icons {
    color: white;
}

.dark-footer .social-icons span {
    background: rgba(255,255,255,0.2);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.dark-footer .subscribe-form input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.dark-footer .subscribe-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.dark-footer .subscribe-form button {
    background: white;
    color: #a0522d;
    border: none;
    font-weight: bold;
}

.dark-footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
}

/* Shop 页面样式 */
.shop-hero {
    margin-bottom: 60px;
}

.shop-banner {
    display: flex;
    background-color: #fdf5e6;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
}

.banner-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-title {
    font-size: 40px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-desc {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.btn-shop-now {
    display: inline-block;
    padding: 15px 40px;
    background-color: #a0522d;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    width: fit-content;
    transition: background-color 0.3s;
}

.btn-shop-now:hover {
    background-color: #8b4513;
}

.banner-image {
    flex: 1;
    background-color: #e6e6e6;
    position: relative;
}

.shop-filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-tabs {
    display: flex;
    gap: 15px;
}

.filter-item {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    background-color: #f5f5f5;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-item.active, .filter-item:hover {
    background-color: #333;
    color: white;
}

.filter-sort select {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    outline: none;
    color: #333;
    background-color: white;
    margin-left: 10px;
}

.shop-products-section {
    margin-bottom: 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-img-box {
    height: 250px;
    background-color: #f9f9f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-box img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.badge-new, .badge-sale {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.badge-new {
    background-color: #4caf50;
}

.badge-sale {
    background-color: #ff5722;
}

.product-info {
    padding: 20px;
}

.product-rating {
    font-size: 12px;
    color: #ffc107;
    margin-bottom: 8px;
    font-weight: bold;
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-brand {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: #a0522d;
}

.product-old-price {
    font-size: 14px;
    color: #ccc;
    text-decoration: line-through;
    margin-left: 5px;
    font-weight: normal;
}

.btn-add-cart {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background-color: #a0522d;
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

.page-num.active, .page-num:hover {
    background-color: #333;
    color: white;
}

.page-next {
    margin-left: 10px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 1000px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-banner {
        flex-direction: column;
        height: auto;
    }
    .banner-image {
        height: 200px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shop-filter-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .filter-tabs {
        flex-wrap: wrap;
    }
}
