/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}
a {
    text-decoration: none;
    }
body {
    background-color: #f8faf8;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 40px;
}

.nav {
    display: flex;
}

.nav-item {
    margin-left: 20px;
    font-size: 16px;
    color: #666;
    padding: 5px 0;
    position: relative;
}

.nav-item.active {
    color: #e74c3c;
    font-weight: bold;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e74c3c;
}

/* 主要内容 */
.main-content {
    padding-bottom: 70px;
}

/* 轮播图 */
.banner {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-dots {
    position: absolute;
    bottom: 10px;
    right: 15px;
    display: flex;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin-left: 5px;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

/* 快捷入口 */
.quick-actions {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    background-color: white;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.action-text {
    font-size: 14px;
    color: #666;
}

/* 推荐产品 */
.section-title {
    font-size: 18px;
    font-weight: bold;
    padding: 15px 20px;
    color: #333;
}

.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.product-info {
    padding: 10px;
    position: relative;
}

.product-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.product-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.product-price {
    font-size: 16px;
    color: #e74c3c;
    font-weight: bold;
}

.add-to-cart {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* 门店信息 */
.store-info {
    margin-top: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.store-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.store-details p {
    margin-bottom: 10px;
    font-size: 14px;
}

/* 底部导航 */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.footer-nav {
    display: flex;
    justify-content: space-around;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.footer-text {
    font-size: 12px;
    color: #666;
}

.footer-item.active .footer-icon,
.footer-item.active .footer-text {
    color: #e74c3c;
}

/* 我的页面特定样式 */
.my-page {
    padding-bottom: 80px;
}

/* 用户信息区域 */
.user-profile {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #e74c3c;
    color: white;
    position: relative;
    margin-bottom: 15px;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 18px;
    margin-bottom: 5px;
}

.user-level {
    font-size: 14px;
    opacity: 0.9;
}

.user-points {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.points-value {
    font-size: 18px;
    font-weight: bold;
}

.points-label {
    font-size: 12px;
    opacity: 0.8;
}

/* 功能入口 */
.my-features {
    background-color: white;
    border-radius: 10px;
    margin: 0 15px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    font-size: 20px;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.feature-text {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.feature-arrow {
    font-size: 20px;
    color: #999;
}

/* 最近订单 */
.recent-orders {
    background-color: white;
    border-radius: 10px;
    margin: 0 15px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.order-list {
    margin-top: 15px;
}

.order-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.order-number {
    color: #666;
}

.order-status {
    color: #e74c3c;
    font-weight: bold;
}

.order-content {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.order-product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 10px;
    object-fit: cover;
}

.order-product-info {
    flex: 1;
}

.order-product-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.order-product-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.order-date {
    font-size: 12px;
    color: #666;
}

.order-price {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
}

.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.order-action-btn {
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background-color: white;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.order-action-btn:active {
    background-color: #f5f5f5;
}

.view-all-orders {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    border: none;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.view-all-orders:active {
    background-color: #eee;
}

/* 简化版导航 */
.nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: #666;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
}

.nav-item.active {
    color: #e74c3c;
    font-weight: bold;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e74c3c;
}