/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 维吾尔语字体引入 */
@font-face {
    font-family: 'ALKATIP Basma Tom';
    src: url('https://www.xjchangfu.com/ALKATIP%20Basma%20Tom.TTF') format('truetype');
    font-display: swap;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
    -webkit-tap-highlight-color: transparent;
}

/* 应用容器 */
.app-container {
    max-width: 640px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #fff;
    position: relative;
}

/* 头部导航 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
}

.header-left i {
    color: #ff6b35;
}

.search-box {
    flex: 1;
    max-width: 400px;
    margin: 0 16px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: none;
    border-radius: 20px;
    background-color: #f5f5f5;
    font-size: 14px;
    outline: none;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.header-right {
    font-size: 20px;
    color: #333;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #f5f5f5;
    padding: 4px;
    border-radius: 20px;
    font-size: 12px;
}

.lang-option {
    padding: 4px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.lang-option.active {
    background-color: #ff6b35;
    color: #fff;
    font-weight: 600;
}

.lang-option:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

/* 为维吾尔语应用特殊字体 */
[lang="ug"], .lang-option[data-lang="ug"], .bottom-nav .nav-item span[data-lang="ug"] {
    font-family: 'ALKATIP Basma Tom', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 主内容区 */
.main-content {
    padding-bottom: 60px;
}

/* 轮播图 */
.banner {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.banner-slider {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-item {
    width: 33.333%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.banner-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #fff;
    width: 20px;
    border-radius: 4px;
}

/* 优惠券模块 */
.coupon-section {
    padding: 0 16px 20px;
}

.coupon-list {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.coupon-slider {
    display: flex;
    overflow-x: auto;
    padding: 16px 0;
    gap: 12px;
    scroll-behavior: smooth;
}

.coupon-slider::-webkit-scrollbar {
    height: 4px;
}

.coupon-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.coupon-slider::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 2px;
}

.coupon-item {
    min-width: 280px;
    height: 140px;
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    position: relative;
    display: flex;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.coupon-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}

.coupon-info {
    flex: 1;
}

.coupon-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.coupon-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.coupon-valid {
    font-size: 11px;
    opacity: 0.8;
}

.coupon-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 12px;
}

.value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.condition {
    font-size: 11px;
    margin-top: 4px;
    text-align: center;
}

.coupon-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 16px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 分类导航 */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 16px;
    background-color: #fff;
    margin-bottom: 10px;
}

.category-item {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.category-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transition: transform 0.3s ease;
}

.category-item:hover i {
    transform: translateY(-3px);
}

.category-item span {
    font-size: 12px;
    color: #666;
}

/* 商家列表 */
.recommended-shops {
    padding: 0 16px;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.see-more {
    color: #999;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.shop-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.shop-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.shop-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.shop-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.shop-info {
    flex: 1;
}

.shop-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.shop-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffb400;
    font-size: 12px;
}

.shop-rating i {
    font-size: 12px;
}

.shop-tags {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #666;
}

.tag.hot {
    background-color: #ffebee;
    color: #ff4444;
}

.tag.discount {
    background-color: #e8f5e9;
    color: #4caf50;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active {
    color: #ff6b35;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    background-color: #ff4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* 商家详情页 */
.shop-detail-header {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.shop-detail-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
}

.shop-detail-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.shop-detail-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

/* 商品分类 tabs */
.product-tabs {
    display: flex;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    white-space: nowrap;
    position: sticky;
    top: 60px;
    z-index: 50;
}

.product-tab {
    padding: 16px 20px;
    font-size: 14px;
    color: #666;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.product-tab.active {
    color: #ff6b35;
    font-weight: 600;
}

.product-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: #ff6b35;
    border-radius: 2px;
}

/* 商品列表 */
.product-list {
    padding: 12px 16px;
}

.product-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

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

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

.price {
    color: #ff4444;
    font-size: 18px;
    font-weight: 600;
}

.price::before {
    content: '¥';
    font-size: 14px;
}

.add-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #ff6b35;
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.add-btn:hover {
    background-color: #ff5722;
}

/* 购物车 */
.cart-page {
    padding: 0 16px 80px;
}

.cart-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
}

.cart-empty i {
    font-size: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ff6b35;
}

.cart-product-info {
    flex: 1;
}

.cart-product-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.cart-product-price {
    color: #ff4444;
    font-size: 16px;
    font-weight: 600;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

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

.quantity {
    font-size: 14px;
    color: #333;
}

/* 购物车底部 */
.cart-bottom {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    max-width: 640px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    display: flex;
    align-items: center;
    gap: 12px;
}

.total-price {
    color: #ff4444;
    font-size: 20px;
    font-weight: 600;
}

.checkout-btn {
    padding: 10px 24px;
    background-color: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #ff5722;
}

.checkout-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 订单确认页 */
.order-confirm {
    padding: 0 16px 80px;
}

.address-section {
    background-color: #fff;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.address-info {
    display: flex;
    gap: 12px;
}

.address-icon {
    color: #ff6b35;
    font-size: 20px;
    margin-top: 2px;
}

.address-details {
    flex: 1;
}

.address-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.address-phone {
    color: #666;
    margin-bottom: 8px;
}

.address-full {
    color: #999;
    line-height: 1.4;
}

/* 支付方式 */
.payment-methods {
    background-color: #fff;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.payment-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.payment-method:last-child {
    border-bottom: none;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-icon {
    font-size: 24px;
    color: #333;
}

.payment-name {
    font-size: 16px;
    color: #333;
}

.payment-method.active .payment-radio {
    color: #ff6b35;
}

/* 个人中心 */
.profile-page {
    padding: 0 0 60px;
}

.profile-header {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 40px 16px 20px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-phone {
    font-size: 14px;
    opacity: 0.9;
}

/* 用户积分和余额 */
.user-stats {
    padding: 16px;
}

.stats-card {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px;
}

.stat-item:first-child {
    border-right: 1px solid #f0f0f0;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    margin-right: 12px;
}

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

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 会员卡样式 */
.membership-card {
    padding: 0 16px 20px;
}

.card {
    background: linear-gradient(135deg, #ff9800, #ff6b35);
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3);
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.card-badge {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 0 20px 16px;
}

.card-number {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.9;
}

.card-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.benefit-item i {
    font-size: 14px;
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    text-align: center;
}

.card-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 会员卡操作按钮 */
.membership-actions {
    display: flex;
    gap: 16px;
    padding: 0 16px 20px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn.primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.action-btn.secondary {
    background-color: #fff;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.action-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 会员卡使用注意事项 */
.membership-notice {
    padding: 0 16px 20px;
}

.notice-header {
    margin-bottom: 16px;
}

.notice-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-left: 12px;
}

.notice-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 18px;
    background: linear-gradient(to bottom, #ff6b35, #f7931e);
    border-radius: 2px;
}

.notice-content {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.notice-item {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

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

.notice-icon {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    background-color: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notice-item:nth-child(2) .notice-icon {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.notice-item:nth-child(3) .notice-icon {
    background-color: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

.notice-item:nth-child(4) .notice-icon {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.notice-item:nth-child(5) .notice-icon {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.notice-text {
    flex: 1;
}

.notice-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.notice-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 宣传员部分 */
.promoter-section {
    padding: 0 16px 20px;
}

.promoter-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.promoter-header {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.promoter-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 12px;
}

.promoter-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.promoter-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.promoter-stats {
    display: flex;
    background-color: #f5f5f5;
    padding: 16px 20px;
}

.promoter-stat {
    flex: 1;
    text-align: center;
}

.promoter-stat:first-child {
    border-right: 1px solid #e0e0e0;
}

.promoter-btn {
    width: 100%;
    background-color: #4caf50;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.promoter-btn:hover {
    background-color: #45a049;
}

/* 快捷功能 */
.quick-access {
    padding: 16px;
    background-color: #fff;
    margin-bottom: 10px;
}

/* 会员等级 */
.membership-level {
    padding: 16px;
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.level-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.level-current {
    font-size: 16px;
    font-weight: 600;
    color: #ff6b35;
    position: relative;
}

.level-current::after {
    content: '';
    position: absolute;
    top: 0;
    right: -24px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
}

.level-progress {
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.level-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.benefit-tag {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    background-color: #f5f5f5;
    color: #999;
}

.benefit-tag.active {
    background-color: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    font-weight: 500;
}

.quick-access-grid {
    display: flex;
    justify-content: space-around;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 15px 5px;
    flex: 1;
}

.quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-bottom: 8px;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    transition: transform 0.3s ease;
}

.quick-item:nth-child(2) .quick-icon {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.quick-item:nth-child(3) .quick-icon {
    background: linear-gradient(135deg, #ff9800, #ffc107);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.3);
}

.quick-item:nth-child(4) .quick-icon {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.quick-item:hover .quick-icon {
    transform: translateY(-3px);
}

.quick-text {
    font-size: 14px;
    color: #333;
}

.quick-count {
    position: absolute;
    top: 5px;
    right: calc(50% - 24px);
    background-color: #ff4444;
    color: #fff;
    font-size: 12px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-sizing: border-box;
}

/* 用户资产 */
.user-assets {
    padding: 0 16px 20px;
}

.assets-grid {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.asset-item {
    flex: 1;
    background-color: #fff;
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.asset-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.asset-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    margin: 0 auto 12px;
}

.asset-item:nth-child(2) .asset-icon {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

.asset-item:nth-child(3) .asset-icon {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
}

.asset-item:nth-child(4) .asset-icon {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
}

.asset-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.asset-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 常用工具 */
.tools-section {
    padding: 0 16px 20px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-3px);
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.tool-icon.address {
    background-color: #4caf50;
}

.tool-icon.payment {
    background-color: #2196f3;
}

.tool-icon.coupon {
    background-color: #ff9800;
}

.tool-icon.feedback {
    background-color: #9c27b0;
}

.tool-name {
    font-size: 14px;
    color: #333;
}

/* 更多功能 */
.more-section {
    padding: 0 16px 20px;
}

.feature-icon.invite {
    background-color: #ff6b35;
}

.feature-icon.help {
    background-color: #2196f3;
}

.feature-icon.about {
    background-color: #607d8b;
}

/* 最近订单 */
.recent-orders {
    padding: 0 16px 20px;
}

/* 功能列表 */

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

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

.feature-item:hover {
    background-color: #fafafa;
}

.feature-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.feature-icon.order {
    background-color: #ff6b35;
}

.feature-icon.points {
    background-color: #ff9800;
}

.feature-icon.address {
    background-color: #4caf50;
}

.feature-icon.coupon {
    background-color: #9c27b0;
}

.feature-icon.payment {
    background-color: #00bcd4;
}

.feature-icon.setting {
    background-color: #2196f3;
}

.feature-name {
    font-size: 16px;
    color: #333;
}

.feature-item i:last-child {
    color: #999;
    font-size: 12px;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-item, .product-item, .feature-item {
    animation: fadeIn 0.5s ease;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .search-box {
        max-width: none;
        margin: 0 8px;
    }
    
    .category-item {
        width: 25%;
    }
    
    .category-item i {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .shop-avatar {
        width: 50px;
        height: 50px;
    }
    
    .product-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-bottom {
        padding: 12px;
    }
    
    .checkout-btn {
        padding: 8px 20px;
    }
    
    /* Promoter页面移动端优化 */
    .promoter-overview {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .overview-card {
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(76, 175, 80, 0.2);
    }
    
    .card-header {
        padding: 16px 16px 12px;
    }
    
    .card-header h2 {
        font-size: 16px;
    }
    
    .period-selector {
        padding: 3px;
        font-size: 11px;
    }
    
    .period {
        padding: 3px 10px;
        font-size: 11px;
    }
    
    .overview-stats {
        padding: 16px 12px;
        gap: 8px;
    }
    
    .overview-stats .stat-item {
        padding: 12px 8px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* 邀请活动移动端优化 */
    .invite-activity {
        padding: 0 12px 15px;
        margin-bottom: 10px;
    }
    
    .activity-card {
        border-radius: 12px;
    }
    
    .activity-header {
        padding: 14px 16px;
    }
    
    .activity-header h2 {
        font-size: 16px;
    }
    
    .activity-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .activity-content {
        padding: 16px;
    }
    
    .activity-title {
        margin-bottom: 10px;
    }
    
    .activity-title i {
        font-size: 18px;
    }
    
    .activity-title span {
        font-size: 15px;
    }
    
    .activity-desc {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .activity-progress {
        gap: 8px;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .progress-text {
        font-size: 12px;
    }
    
    /* 推广工具移动端优化 */
    .promoter-tools {
        padding: 0 12px 15px;
        margin-bottom: 10px;
    }
    
    .tools-header {
        margin-bottom: 12px;
    }
    
    .tools-header h2 {
        font-size: 16px;
    }
    
    .tools-grid {
        gap: 10px;
    }
    
    .promoter-tools .tool-item {
        padding: 12px 0;
    }
    
    .promoter-tools .tool-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .tool-label {
        font-size: 13px;
    }
    
    /* 收益明细移动端优化 */
    .earnings-detail {
        padding: 0 12px 15px;
        margin-bottom: 10px;
    }
    
    .detail-header {
        margin-bottom: 12px;
    }
    
    .detail-header h2 {
        font-size: 16px;
    }
    
    .view-all {
        font-size: 13px;
    }
    
    .detail-item {
        padding: 12px 16px;
    }
    
    .detail-icon {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    
    .detail-title {
        font-size: 14px;
    }
    
    .detail-time {
        font-size: 11px;
    }
    
    .detail-amount {
        font-size: 16px;
    }
    
    /* 邀请排行榜移动端优化 */
    .invite-ranking {
        padding: 0 12px 20px;
    }
    
    .ranking-header {
        margin-bottom: 12px;
    }
    
    .ranking-header h2 {
        font-size: 16px;
    }
    
    .ranking-tabs {
        padding: 3px;
    }
    
    .tab {
        padding: 3px 10px;
        font-size: 11px;
    }
    
    .ranking-item {
        padding: 12px 16px;
    }
    
    .rank-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .rank-avatar {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }
    
    .rank-name {
        font-size: 14px;
    }
    
    .rank-stats {
        font-size: 12px;
    }
    
.rank-earnings {
    font-size: 15px;
}

/* 额外的移动端布局优化 */
@media (max-width: 480px) {
    /* 确保页面在移动端有适当的间距 */
    .main-content {
        padding: 5px 0 60px;
    }
    
    /* 调整头部导航样式 */
    .header {
        padding: 10px 12px;
    }
    
    .header-left {
        font-size: 15px;
    }
    
    .header-left i {
        font-size: 18px;
    }
    
    /* 优化卡片间距 */
    .promoter-overview,
    .invite-activity,
    .promoter-tools,
    .earnings-detail {
        margin-bottom: 8px;
    }
    
    /* 优化底部导航在移动端的显示 */
    .bottom-nav {
        padding: 5px 0;
        height: auto;
    }
    
    .nav-item {
        padding: 5px 0;
    }
    
    .nav-item i {
        font-size: 18px;
    }
    
    .nav-item span {
        font-size: 11px;
    }
    
    /* 确保卡片在移动端有圆角和阴影 */
    .overview-card,
    .activity-card,
    .detail-list,
    .ranking-list {
        border-radius: 10px;
        overflow: hidden;
    }
    
    /* 优化进度条在移动端的显示 */
    .progress-bar {
        height: 5px;
    }
    
    /* 优化图标大小 */
    .promoter-tools .tool-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 提示消息 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    animation: fadeInOut 2s ease;
}

/* 页脚版权信息 */
.page-footer {
    padding: 16px 0;
    background-color: transparent;
    width: 100%;
}

.copyright {
    text-align: center;
    color: rgba(0, 0, 0, 0.3);
    font-size: 12px;
    line-height: 1.5;
}

.copyright p {
    margin: 0;
    padding: 0;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* Promoter页面样式 */
/* 收益概览卡片 */
.promoter-overview {
    padding: 16px;
}

.overview-card {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.25);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px;
    color: #fff;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.period-selector {
    display: flex;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px;
}

.period {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.period.active {
    background-color: #fff;
    color: #4caf50;
    font-weight: 600;
}

.overview-stats {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    gap: 16px;
}

.overview-stats .stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 邀请活动 */
.invite-activity {
    padding: 0 16px 20px;
}

.activity-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.activity-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.activity-badge {
    background-color: #4caf50;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.activity-content {
    padding: 20px;
}

.activity-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.activity-title i {
    color: #ff6b35;
    font-size: 20px;
}

.activity-title span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.activity-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.activity-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

/* 推广工具 */
.promoter-tools {
    padding: 0 16px 20px;
}

.tools-header {
    margin-bottom: 16px;
}

.tools-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.promoter-tools .tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.promoter-tools .tool-item:hover {
    transform: translateY(-5px);
}

.promoter-tools .tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.promoter-tools .tool-icon.share-link {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

.promoter-tools .tool-icon.qr-code {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.promoter-tools .tool-icon.poster {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
}

.promoter-tools .tool-icon.stats {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
}

.tool-label {
    font-size: 14px;
    color: #333;
    text-align: center;
}

/* 收益明细 */
.earnings-detail {
    padding: 0 16px 20px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.detail-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.view-all {
    color: #999;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.detail-list {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: #f0f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4caf50;
    font-size: 16px;
    margin-right: 12px;
}

.detail-info {
    flex: 1;
}

.detail-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.detail-time {
    font-size: 12px;
    color: #999;
}

.detail-amount {
    font-size: 18px;
    font-weight: 600;
}

.detail-amount.positive {
    color: #4caf50;
}

/* 邀请排行榜 */
.invite-ranking {
    padding: 0 16px 20px;
}

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ranking-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ranking-tabs {
    display: flex;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 4px;
}

.tab {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active {
    background-color: #ff6b35;
    color: #fff;
    font-weight: 600;
}

.ranking-list {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.top-rank {
    background: linear-gradient(to right, #fff9c4, #ffffff);
}

.self-rank {
    background-color: #f0f8ff;
}

.rank-number {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
}

.top-rank .rank-number {
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: #fff;
}

.ranking-item:not(.top-rank):not(.self-rank) .rank-number {
    background-color: #f5f5f5;
    color: #999;
}

.rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

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

.self-rank .rank-avatar {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.rank-info {
    flex: 1;
}

.rank-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.rank-stats {
    font-size: 14px;
    color: #666;
}

.rank-earnings {
    font-size: 18px;
    font-weight: 600;
    color: #ff6b35;
}