/* 我的页面样式 */

.grid-title {
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f7fa;
    letter-spacing: 0.5px;
}

.function-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 10px 0;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 8px;
    background-color: transparent;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s ease;
}

.grid-item:active {
    transform: scale(0.95);
}

.grid-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
}

/* 不同功能的图标颜色 */
.grid-item[href*="cart"] .grid-icon {
    background-color: #FFF4E6;
}

.grid-item[href*="coupon"] .grid-icon {
    background-color: #FFF1F0;
}

.grid-item[href*="points"] .grid-icon {
    background-color: #FFF7E6;
}

.grid-item[href*="address"] .grid-icon {
    background-color: #E6F7FF;
}

.grid-item[href*="review"] .grid-icon {
    background-color: #F6FFED;
}

.grid-item[href*="after-sale"] .grid-icon {
    background-color: #FFF0F6;
}

.grid-item[href*="promotion"] .grid-icon {
    background-color: #F0F5FF;
}

.grid-item[href*="order-review"] .grid-icon {
    background-color: #E6F4FF;
}

.grid-item[href*="message"] .grid-icon {
    background-color: #F0F9FF;
}

.grid-item[href*="service"] .grid-icon {
    background-color: #E6FFFB;
}

.grid-item[href*="about"] .grid-icon {
    background-color: #F5F5F5;
}

.grid-item[href*="settings"] .grid-icon {
    background-color: #F5F5F5;
}

/* 申请入驻图标颜色 */
.grid-item[href*="service-apply"] .grid-icon,
.grid-item[href*="service-worker"] .grid-icon {
    background-color: #E6F7FF;
}

.grid-item[href*="designer"] .grid-icon {
    background-color: #FFF0F6;
}

.grid-item[href*="admin"] .grid-icon {
    background-color: #F0F5FF;
}

.grid-item[href*="sales"] .grid-icon {
    background-color: #FFF7E6;
}

.grid-text {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: center;
    letter-spacing: 0.2px;
}

.grid-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background-color: #FF4D4F;
    color: #fff;
    border-radius: 9px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 我的页面样式 */

/* 用户信息区 */
.user-header {
    display: flex;
    align-items: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, #1890FF 0%, #1565C0 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(24, 144, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.user-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

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

.user-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.user-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.user-phone {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 400;
}

.user-arrow {
    opacity: 0.8;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.user-header:active .user-arrow {
    transform: translateX(4px);
}

/* 订单类型标签页 */
.order-tabs {
    display: flex;
    gap: 12px;
    margin: 18px 0;
    padding: 0 4px;
}

.order-tab {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.order-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #1890FF 0%, #1565C0 100%);
    box-shadow: none;
    font-weight: 600;
}

.order-tab:active {
    transform: scale(0.98);
}

/* 订单类型区域 */
.order-type-section {
    display: none;
    margin-bottom: 0;
}

.order-type-section.active {
    display: block;
}

/* 订单状态网格 */
.order-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    position: relative;
}

.status-icon {
    margin-bottom: 8px;
}

.status-text {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}

.status-item .badge {
    position: absolute;
    top: -4px;
    right: 8px;
}

/* 钱包卡片 */
.wallet-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #1890FF 0%, #1565C0 100%);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(24, 144, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.wallet-label {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 10px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.wallet-amount {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* 区块样式 */
.section {
    background-color: #fff;
    margin-bottom: 20px;
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f7fa;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

.section-more {
    font-size: 14px;
    font-weight: 500;
    color: #1890FF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-more:active {
    color: #1565C0;
    transform: translateX(2px);
}

