/* ===================== 全局样式 ===================== */
/* 通配符选择器：清除所有元素的默认内外边距，盒模型为border-box（宽高包含边框） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 设置全局字体：微软雅黑，无衬线字体（适配不同系统） */
    font-family: "微软雅黑", sans-serif;
}
/* 页面主体样式：背景色浅灰，文字色深灰 */
body {
    background-color: #f5f5f5;
    color: #333;
}
/* 超链接样式：无下划线，文字色绿色（品牌主色） */
a {
    text-decoration: none;
    color: #4CAF50;
}

/* ===================== 顶部导航栏样式 ===================== */
/* 导航栏容器：背景绿色，文字白色，内padding上下15px，阴影效果 */
.header {
    background-color: #4CAF50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 轻微阴影提升层次感 */
}
/* 导航栏内容容器：宽度90%，居中，弹性布局（左右对齐） */
.header .container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* 两端对齐：logo左，导航右 */
    align-items: center; /* 垂直居中 */
}
/* logo样式：字体大小24px，加粗 */
.logo {
    font-size: 24px;
    font-weight: bold;
}
/* 导航菜单：弹性布局，子元素间距30px */
.nav {
    display: flex;
    gap: 30px;
}
/* 导航菜单项：文字白色，字体16px，底部内边距5px，透明下边框（hover用） */
.nav a {
    color: white;
    font-size: 16px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}
/* 导航激活态：下边框白色 */
.nav a.active {
    border-bottom: 2px solid white;
}
/* 添加基础响应式样式 */
@media screen and (max-width: 768px) {
    /* 调整导航栏布局 */
    .header .container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }
    
    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo {
        font-size: 20px;
    }
    
    /* 调整内容区域 */
    .content {
        width: 95%;
        margin: 15px auto;
    }
    
    /* 调整板块样式 */
    .section {
        padding: 10px 0;
    }
    
    /* 调整弹窗样式 */
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    /* 调整文化展示板块 */
    .culture-card-list {
        grid-template-columns: 1fr;
    }
    
    .culture-card {
        padding: 10px;
    }
    
    .culture-card img {
        height: 150px;
    }
    
    .culture-card h3 {
        font-size: 16px;
        height: auto;
        min-height: auto;
    }
    
    .culture-card p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* 调整商品板块 */
    .goods-tab-item {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .goods-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .goods-item {
        height: auto;
    }
    
    .goods-item img {
        height: 200px;
    }
    
    .goods-info {
        padding: 12px;
    }
    
    .goods-info h3 {
        font-size: 16px;
    }
    
    .goods-info p {
        font-size: 13px;
    }
    
    /* 调整个人服务板块 */
    .mine-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }
    
    .mine-func {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mine-func-item {
        padding: 15px 10px;
    }
    
    .mine-func-item img {
        width: 40px;
        height: 40px;
    }
    
    /* 调整交流板块 */
    .qa-tab {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .qa-tab-item {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .qa-item {
        padding: 12px;
    }
    
    .qa-item h3 {
        font-size: 15px;
    }
    
    .qa-item p {
        font-size: 13px;
    }
    
    .qa-opt {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    /* 调整表单元素 */
    .form-group input, 
    .form-group textarea, 
    .form-group select {
        padding: 8px;
        font-size: 14px;
    }
    
    .ask-submit-btn {
        padding: 10px;
        font-size: 15px;
    }
    
    /* 调整推荐商品列表 */
    .recommend-list {
        grid-template-columns: 1fr;
    }
    
    .recommend-item img {
        height: 150px;
    }
    
    /* 调整定制表单 */
    .custom-form {
        padding: 20px;
    }
    
    .form-item input, 
    .form-item select, 
    .form-item textarea {
        padding: 10px;
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    /* 调整设置项目 */
    .setting-item {
        padding: 12px;
    }
    
    .setting-item span:first-child {
        font-size: 14px;
    }
    
    .setting-item span:last-child {
        font-size: 16px;
    }
}

/* 针对小屏设备进一步优化 */
@media screen and (max-width: 480px) {
    .header {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .nav a {
        font-size: 14px;
        padding: 3px 0;
    }
    
    .nav {
        gap: 10px;
    }
    
    .culture-banner {
        height: 180px;
    }
    
    .culture-story {
        padding: 15px;
    }
    
    .culture-story h2 {
        font-size: 17px;
    }
    
    .culture-story p {
        font-size: 13px;
    }
    
    .goods-tab-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .goods-info h3 {
        font-size: 15px;
    }
    
    .price-tag {
        font-size: 13px;
        padding: 4px 10px;
    }
    
    .rating {
        font-size: 13px;
    }
    
    .buy-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .recommend-title {
        font-size: 18px;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
    }
    
    .message-name {
        font-size: 13px;
    }
    
    .message-time {
        font-size: 11px;
    }
    
    .message-text {
        font-size: 13px;
    }
    
    .communicate-title {
        font-size: 18px;
    }
    
    .form-item label {
        font-size: 14px;
    }
    
    .scheme-item h3 {
        font-size: 16px;
    }
    
    .scheme-item p {
        font-size: 13px;
    }
    
    .choose-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .user-name {
        font-size: 18px;
    }
    
    .level {
        font-size: 14px;
    }
}

/* 优化触摸体验 */
@media screen and (hover: none) and (pointer: coarse) {
    /* 增加触摸目标大小 */
    .qa-tab-item,
    .goods-tab-item,
    .mine-func-item,
    .opt-btn,
    .buy-btn,
    .ask-submit-btn {
        min-height: 44px; /* 最小触摸目标44px */
        min-width: 44px;
    }
    
    .nav a {
        padding: 10px 5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
    }
    
    .cart-icon {
        width: 50px;
        height: 50px;
    }
}

/* 优化弹窗在移动端的显示 */
@media screen and (max-width: 768px) {
    .goods-detail-content {
        flex-direction: column;
    }
    
    .detail-image, .detail-info {
        min-width: 100%;
    }
    
    .detail-image img {
        height: auto;
        max-height: 40vh;
        object-fit: contain;
    }
    
    .detail-info h2 {
        font-size: 20px;
    }
    
    .detail-price {
        font-size: 20px;
    }
    
    .detail-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .detail-buy-btn, .detail-cart-btn {
        padding: 15px;
    }
    
    /* 优化编辑资料弹窗 */
    .edit-profile-content {
        width: 95%;
        padding: 20px;
    }
    
    .form-group input, .form-group select {
        padding: 10px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 15px;
        font-size: 15px;
    }
}

/* 优化购物车弹窗在移动端的显示 */
@media screen and (max-width: 768px) {
    .cart-modal {
        width: 100%;
        height: 100vh;
        position: fixed;
    }
    
    .cart-header h2 {
        font-size: 16px;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .quantity-control {
        justify-content: center;
    }
    
    .checkout-btn {
        padding: 12px;
        font-size: 15px;
    }
}

/* 个人中心页面样式 */
.mine-info {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    margin: 15px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.mine-info::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.mine-info .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background-color: white;
}

.user-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.level {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.mine-stats {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: 20px 0;
    margin: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.edit-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-profile-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.edit-profile-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

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

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ccc;
    color: white;
}

.btn-secondary:hover {
    background: #bbb;
    transform: translateY(-2px);
}

.mine-func {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 15px;
}

.mine-func-item {
    background: white;
    padding: 15px 5px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #f5f5f5;
}

.mine-func-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #f9f9f9;
}

.mine-func-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    transition: transform 0.3s;
}

.mine-func-item:hover img {
    transform: scale(1.1);
}

.mine-func-item div {
    font-size: 13px;
    color: #555;
}

.mine-settings {
    background: white;
    margin: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f5f5f5;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background-color: #f9f9f9;
}

.setting-item span:first-child {
    font-size: 15px;
    color: #333;
}

.setting-item span:last-child {
    color: #999;
    font-size: 18px;
}

/* ===================== 内容容器样式 ===================== */
/* 核心内容区：宽度90%，居中，最小高度600px（避免内容少的时候页面过短） */
.content {
    width: 90%;
    margin: 20px auto;
    min-height: 600px;
}

/* ===================== 板块通用样式 ===================== */
/* 所有板块默认隐藏 */
.section {
    display: none;
}
/* 激活的板块显示 */
.section.active {
    display: block;
}

/* ===================== 1. 文化展示板块样式 ===================== */
/* 轮播图容器：宽度100%，高度300px，溢出隐藏，圆角10px，底部外边距30px */
.culture-banner {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    margin-bottom: 30px;
}
/* 轮播图图片：宽度100%，高度100%，object-fit:cover（保持比例填充容器） */
.culture-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 文化卡片列表：网格布局，3列，间距20px，底部外边距30px */
.culture-card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列等宽 */
    gap: 20px;
    margin-bottom: 30px;
}
/* 文化卡片：白色背景，内边距15px，圆角10px，阴影，鼠标指针为手型 */
.culture-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
/* 卡片悬停效果 */
.culture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
/* 卡片图片：宽度100%，高度200px，圆角8px，底部外边距10px */
.culture-card img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 10px;
    object-fit: cover;
}
/* 卡片标题：字体18px，底部外边距5px */
.culture-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
/* 卡片描述：行高1.6，颜色浅灰，限制行数 */
.culture-card p {
    line-height: 1.6;
    color: #666;
    font-size: 14px;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 品牌故事容器：白色背景，内边距20px，圆角10px，阴影 */
.culture-story {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* 品牌故事标题：底部外边距15px，文字绿色 */
.culture-story h2 {
    margin-bottom: 15px;
    color: #4CAF50;
    font-size: 20px;
}
/* 品牌故事正文：行高1.6，文字浅灰 */
.culture-story p {
    line-height: 1.6;
    color: #666;
    font-size: 15px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .culture-banner {
        height: 200px;
        margin-bottom: 20px;
    }
    
    .culture-card-list {
        grid-template-columns: 1fr; /* 移动端改为单列布局 */
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .culture-card {
        padding: 12px;
    }
    
    .culture-card img {
        height: 150px;
    }
    
    .culture-card h3 {
        font-size: 16px;
    }
    
    .culture-card p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .culture-story {
        padding: 15px;
    }
    
    .culture-story h2 {
        font-size: 18px;
    }
    
    .culture-story p {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .culture-banner {
        height: 160px;
    }
    
    .culture-card img {
        height: 120px;
    }
    
    .culture-story h2 {
        font-size: 16px;
    }
}
/* ===================== 2. 文化交流板块样式（重点优化） ===================== */
/* 交流板块主容器：白色背景，内边距20px，圆角10px，阴影，底部外边距20px */
.communicate-wrap {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
/* 板块标题：字体20px，加粗，底部内边距10px，边框底，文字绿色 */
.communicate-title {
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #4CAF50;
    margin-bottom: 15px;
}
/* 问答分类标签容器：弹性布局，间距10px，底部外边距20px，flex-wrap换行（适配手机） */
.qa-tab {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
/* 分类标签项：内边距8px 15px，背景浅灰，圆角20px，鼠标手型 */
.qa-tab-item {
    padding: 8px 15px;
    background-color: #f1f1f1;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}
/* 分类标签激活态：背景绿色，文字白色 */
.qa-tab-item.active {
    background-color: #4CAF50;
    color: white;
}
/* 问答列表容器：间距15px */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
/* 问答项容器：背景浅灰，内边距15px，圆角8px */
.qa-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}
/* 问答问题：字体16px，加粗，底部外边距8px，颜色深灰 */
.qa-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}
/* 问答答案：行高1.6，颜色浅灰，字体14px */
.qa-item p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}
/* 问答点赞/收藏栏：弹性布局，两端对齐，顶部内边距10px，边框顶 */
.qa-opt {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}
/* 互动按钮：弹性布局，对齐，间距5px */
.opt-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* 用户提问表单容器：白色背景，内边距20px，圆角10px，阴影，底部外边距20px */
.ask-form-wrap {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
/* 表单项容器：底部外边距15px */
.form-group {
    margin-bottom: 15px;
}
/* 表单标签：块级显示，底部外边距5px，字体14px，加粗 */
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: bold;
}
/* 表单输入框/文本域：宽度100%，内边距10px，边框1px浅灰，圆角5px，字体14px */
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}
/* 文本域：高度100px，禁止resize（防止用户拖动） */
.form-group textarea {
    height: 100px;
    resize: none;
}
/* 提交按钮：宽度100%，内边距12px，背景绿色，文字白色，无边框，圆角5px，字体16px，鼠标手型 */
.ask-submit-btn {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

/* 互动留言区：白色背景，内边距20px，圆角10px，阴影 */
.message-wrap {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* 留言列表：间距15px */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}
/* 留言项：弹性布局，间距10px */
.message-item {
    display: flex;
    gap: 10px;
}
/* 留言头像：宽度40px，高度40px，圆角50%，object-fit:cover */
.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
/* 留言内容容器 */
.message-content {
    flex: 1;
}
/* 留言用户名：字体14px，加粗，底部外边距3px */
.message-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
}
/* 留言时间：字体12px，颜色浅灰，底部外边距5px */
.message-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}
/* 留言正文：字体14px，行高1.5，颜色深灰 */
.message-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* ===================== 3. 商品售卖板块样式 ===================== */
/* 商品标签栏：弹性布局，白色背景，圆角8px（仅上半部分），溢出隐藏 */
.goods-tab {
    display: flex;
    background: white;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
/* 商品标签项：内边距15px 30px，文字居中，鼠标手型，flex:1（等分宽度），底部边框3px透明 */
.goods-tab-item {
    padding: 15px 30px;
    text-align: center;
    cursor: pointer;
    flex: 1;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}
/* 商品标签激活态：底部边框绿色，文字绿色，加粗 */
.goods-tab-item.active {
    border-bottom: 3px solid #4CAF50;
    color: #4CAF50;
    font-weight: bold;
}
/* 商品标签悬停效果 */
.goods-tab-item:hover {
    background-color: #f9f9f9;
}
/* 商品内容区：白色背景，内边距20px，圆角0 0 8px 8px，阴影 */
.goods-content {
    background: white;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* 商品筛选栏 */
.goods-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.filter-left {
    display: flex;
    gap: 10px;
}
.filter-btn {
    padding: 8px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}
.filter-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
/* 商品列表：网格布局，3列，间距20px */
.goods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}
/* 商品项：边框1px浅灰，圆角8px，溢出隐藏，过渡效果 */
.goods-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.goods-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
/* 商品图片：宽度100%，高度200px，object-fit:cover */
.goods-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
    border-bottom: 1px solid #f5f5f5;
}
.goods-item:hover img {
    transform: scale(1.05);
}
/* 商品信息区：内边距15px */
.goods-info {
    padding: 15px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
/* 商品名称：字体18px，底部外边距5px */
.goods-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 商品描述：颜色浅灰，字体14px，底部外边距10px */
.goods-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 价格标签样式 */
.price-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(255, 107, 107, 0.3);
}
/* 购买按钮：内边距8px 15px，背景绿色，文字白色，无边框，圆角5px，鼠标手型 */
.goods-info .buy-btn {
    padding: 10px 15px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    transition: all 0.3s;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
    margin-top: auto;
}
.goods-info .buy-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(76, 175, 80, 0.4);
}
/* 商品评分 */
.rating {
    color: #ffa500;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}
/* 商品标签 */
.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6b35;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}
/* 心形收藏图标 */
.favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: #ddd;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
}
.favorite-icon:hover {
    color: #ff6b6b;
}
.favorite-icon.active {
    color: #ff6b6b;
}
/* 同类推荐标题 */
.recommend-title {
    font-size: 20px;
    font-weight: bold;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    color: #333;
}
/* 推荐商品列表 */
.recommend-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
/* 推荐商品项 */
.recommend-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    background: white;
}
.recommend-item:hover {
    transform: translateY(-3px);
}
.recommend-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.recommend-info {
    padding: 12px;
}
.recommend-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}
.recommend-info .price {
    color: #f44336;
    font-weight: bold;
    font-size: 16px;
}
/* 商品详情弹窗 */
.goods-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.goods-detail-modal.show {
    opacity: 1;
    visibility: visible;
}
.goods-detail-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.goods-detail-modal.show .goods-detail-content {
    transform: translateY(0);
}
.detail-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    z-index: 1001;
    background: rgba(255,255,255,0.8);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-close:hover {
    color: #333;
}
.detail-container {
    display: flex;
    flex-wrap: wrap;
}
.detail-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}
.detail-image img {
    width: 100%;
    border-radius: 8px;
}
.detail-info {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}
.detail-info h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}
.detail-price {
    font-size: 24px;
    color: #f44336;
    font-weight: bold;
    margin-bottom: 15px;
}
.detail-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.detail-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}
.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.detail-buy-btn, .detail-cart-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}
.detail-buy-btn {
    background: #4CAF50;
    color: white;
    flex: 1;
}
.detail-cart-btn {
    background: #2196F3;
    color: white;
    flex: 1;
}
.detail-buy-btn:hover {
    background: #45a049;
}
.detail-cart-btn:hover {
    background: #0b7dda;
}
/* 定制商品表单容器 */
.custom-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

/* 定制表单项 */
.form-item {
    margin-bottom: 20px;
}

/* 定制表单标签 */
.form-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

/* 定制表单输入框 */
.form-item input, 
.form-item select, 
.form-item textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #fafafa;
}

.form-item input:focus, 
.form-item select:focus, 
.form-item textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    background-color: #fff;
}

/* 优化下拉选择框样式 */
.form-item select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-right: 40px;
}

/* 定制表单提交按钮 */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(to right, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 定制方案列表 */
.scheme-list {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 定制方案项 */
.scheme-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.scheme-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

/* 定制方案标题 */
.scheme-item h3 {
    color: #4CAF50;
    margin-bottom: 12px;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

/* 定制方案正文 */
.scheme-item p {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.scheme-item p strong {
    color: #333;
}

/* 选择方案按钮 */
.choose-btn {
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(to right, #2196F3, #1e88e5);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.choose-btn:hover {
    background: linear-gradient(to right, #1e88e5, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

/* 优化文本域样式 */
.form-item textarea {
    min-height: 100px;
    resize: vertical;
}

/* ===================== 4. 个人服务板块样式 ===================== */
/* 用户信息容器：白色背景，内边距20px，圆角10px，阴影，弹性布局，对齐，间距20px，底部外边距30px */
.mine-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
/* 用户头像：宽度80px，高度80px，圆角50%，object-fit:cover */
.mine-info .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
/* 用户名：字体20px，加粗，底部外边距5px */
.mine-info .user-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
	color: #00ffff;
}
/* 用户等级：颜色绿色 */
.mine-info .level {
    color: #4CAF50;
}
/* 功能列表：网格布局，4列，间距20px */
.mine-func {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
/* 功能项：白色背景，内边距20px，圆角10px，阴影，文字居中，鼠标手型 */
.mine-func-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
}
/* 功能图标：宽度50px，高度50px，底部外边距10px */
.mine-func-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

/* ===================== 弹窗样式 ===================== */
/* 弹窗遮罩：固定定位，全屏，背景半透明黑，默认隐藏，弹性布局居中，z-index999（置顶） */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
/* 弹窗内容：白色背景，内边距20px，圆角10px，最大宽度400px，宽度90%，文字居中 */
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}
/* 弹窗按钮：顶部外边距20px，内边距8px 20px，背景绿色，文字白色，无边框，圆角5px，鼠标手型 */
.modal-content button {
    margin-top: 20px;
    padding: 8px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
/* 轮播图容器 */
.culture-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 30px;
}

.banner-container {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    min-width: 25%;
    height: 100%;
}

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

/* 轮播指示器 */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: white;
}

/* 左右切换按钮 */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

/* 添加购物车悬浮图标样式 */
.cart-icon {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background-color: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
    background-color: #ff521f;
}

.cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cart-icon img {
    width: 30px;
    height: 30px;
}

/* 购物车弹窗样式 */
.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.15);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-modal.show {
    transform: translateX(0);
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #4CAF50, #45a049);
    color: white;
}

.cart-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.close-cart {
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-cart:hover {
    background: rgba(255,255,255,0.3);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #fafafa;
}

.cart-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
    border: 1px solid #eee;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 15px;
}

.cart-item-price {
    color: #f44336;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border-radius: 4px;
    padding: 2px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.quantity-input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
    font-size: 14px;
}

.remove-item {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.remove-item:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
}

.total-price {
    font-size: 18px;
    font-weight: bold;
    color: #f44336;
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.checkout-btn {
    background: linear-gradient(to right, #ff6b35, #ff521f);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.checkout-btn:hover {
    background: linear-gradient(to right, #ff521f, #ff4300);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.empty-cart p {
    margin-bottom: 10px;
    font-size: 16px;
}

.empty-cart p:first-child {
    font-size: 24px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-cart img {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    margin-bottom: 20px;
}
