/* 基础样式 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-bottom: 60px;
}

/* 表单样式 */
.form-container {
    padding: 20px;
}

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

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

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background: #0069d9;
}

/* 信息展示样式 */
.info-box {
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 我的页面样式 */
.profile-container {
    padding: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
    border-radius: 8px;
    margin-bottom: 15px;
}

.user-info .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid white;
}

/* 用户导航栏样式 */
.user-nav {
    display: flex;
    align-items: center;
    padding: 10px 15px;
}
.user-nav img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}
.notification-bell {
    position: relative;
    margin-left: 15px;
}
.notification-bell svg {
    width: 20px;
    height: 20px;
    fill: #6c757d;
}
.notification-bell .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 会员等级样式 */
.membership-level {
    margin: 5px 0;
    font-size: 14px;
}
.membership-level strong {
    color: #ff9800;
}
.membership-level .discount {
    color: #4CAF50;
    font-size: 13px;
}
.points-balance {
    margin: 5px 0;
    font-size: 14px;
}
.points-balance strong {
    color: #2196F3;
}

.user-details h3 {
    margin: 0 0 5px 0;
}

.user-details p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.show-qrcode {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.quick-actions, .wallet-section {
    display: flex;
    justify-content: space-between;
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.action-item, .wallet-item {
    text-align: center;
    flex: 1;
}

.action-item small, .wallet-item small {
    display: block;
    color: #ff6b6b;
    font-weight: bold;
}

.order-status {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.status-items {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.status-item {
    text-align: center;
    flex: 1;
}

.status-item small {
    display: block;
    color: #666;
}

.function-list {
    background: white;
    border-radius: 8px;
    padding: 0 15px;
}

.function-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

/* 二维码弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 300px;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ff6b6b;
}

/* 购物区样式 */
.shop-container {
    padding: 15px;
}

.category-nav {
    display: flex;
    overflow-x: auto;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    padding: 10px;
}

.category-item {
    padding: 8px 15px;
    white-space: nowrap;
    margin-right: 10px;
    border-radius: 15px;
    background: #f5f5f5;
}

.category-item.active {
    background: #007bff;
    color: white;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.product-item {
    background: white;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.product-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

.product-item h3 {
    margin: 8px 0;
    font-size: 14px;
}

.product-item .price {
    color: #ff6b6b;
    font-weight: bold;
    margin: 8px 0;
}

.add-to-cart {
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    width: 100%;
}

/* 购物车样式 */
.cart-container {
    padding: 15px;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.product-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.product-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.product-info h3 {
    margin: 0;
    font-size: 14px;
}

.product-info .price {
    color: #ff6b6b;
    font-weight: bold;
    margin-top: 5px;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-control button {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    font-size: 16px;
}

.quantity-control span {
    margin: 0 10px;
    min-width: 20px;
    text-align: center;
}

.cart-summary {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: right;
}

.cart-summary .total-price {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 18px;
}

.checkout-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
    width: 100%;
}

/* 消息中心样式 */
.notifications-container {
    padding: 15px;
}
.badge {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 14px;
}
.notification-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}
.filter-btn {
    padding: 8px 15px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}
.filter-btn.active {
    background: #007bff;
    color: white;
}
.notification-list {
    margin-top: 15px;
}
.notification-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #ddd;
}
.notification-item.unread {
    border-left-color: #007bff;
    background: #f8f9fa;
}
.notification-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}
.type-system { color: #6c757d; }
.type-order { color: #28a745; }
.type-promotion { color: #ffc107; }
.type-team { color: #17a2b8; }
.time {
    color: #6c757d;
}
.mark-read-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 10px;
    cursor: pointer;
}
.mark-read-btn:hover {
    background: #5a6268;
}

/* 订单结算样式 */
.checkout-container {
    padding: 15px;
}

.order-summary {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.order-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

/* 响应式设计 */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
    
    .form-container {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .profile-container {
        max-width: 600px;
        margin: 0 auto;
    }
}
