/* ========== 用户中心页面 - PC仪表盘风格 ========== */

/* ========== 主布局：侧边栏 + 内容区 ========== */
.uc-main {
    display: flex;
    min-height: calc(100vh - 80px);
    padding-top: 80px;
    background: #f5f7fa;
}

/* ========== 左侧边栏 ========== */
.uc-sidebar {
    width: 260px;
    min-height: calc(100vh - 80px);
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

/* 用户信息区 */
.uc-profile {
    padding: 32px 24px 24px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}

.uc-profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.uc-profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}

.uc-avatar-edit {
    position: absolute;
    bottom: 0;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary, #226AFF);
    color: #fff;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.uc-avatar-edit:hover {
    background: var(--color-primary-dark, #1a54cc);
}

.uc-avatar-edit svg {
    width: 14px;
    height: 14px;
}

.uc-profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

.uc-profile-code {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.uc-profile-code svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary, #226AFF);
}

.uc-profile-code strong {
    color: #374151;
    font-weight: 600;
}

/* VIP标识 */
.uc-vip-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    color: #f59e0b;
    font-size: 13px;
    font-weight: 600;
}

.uc-vip-badge svg {
    width: 16px;
    height: 16px;
}

/* 侧边栏导航 */
.uc-sidebar-nav {
    flex: 1;
    padding: 16px 12px;
}

.uc-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.uc-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.uc-nav-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.uc-nav-item.active {
    background: #eff6ff;
    color: var(--color-primary, #226AFF);
}

.uc-nav-item.active svg {
    color: var(--color-primary, #226AFF);
}

/* 侧边栏底部 */
.uc-sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid #f3f4f6;
}

.uc-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    background: none;
    border: none;
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.uc-logout-btn:hover {
    background: #fef2f2;
}

.uc-logout-btn svg {
    width: 20px;
    height: 20px;
}

/* ========== 右侧内容区 ========== */
.uc-content {
    flex: 1;
    padding: 24px 32px;
    max-width: 1100px;
}

/* ========== 统计条 ========== */
.uc-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.uc-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.uc-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.uc-stat-card-clickable {
    cursor: pointer;
    position: relative;
}

.uc-stat-card-clickable:hover {
    box-shadow: 0 4px 16px rgba(34, 106, 255, 0.12);
    border-color: rgba(34, 106, 255, 0.15);
}

.uc-stat-arrow {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    margin-left: auto;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}

.uc-stat-card-clickable:hover .uc-stat-arrow {
    color: var(--color-primary, #226AFF);
    transform: translateX(2px);
}

.uc-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uc-stat-icon svg {
    width: 24px;
    height: 24px;
}

.uc-stat-icon-balance {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.uc-stat-icon-coupon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.uc-stat-icon-points {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
}

.uc-stat-icon-income {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.uc-stat-info {
    display: flex;
    flex-direction: column;
}

.uc-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.uc-stat-label {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ========== 快捷操作 ========== */
.uc-quick-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.uc-quick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.uc-quick-item:hover {
    border-color: var(--color-primary, #226AFF);
    color: var(--color-primary, #226AFF);
    box-shadow: 0 2px 8px rgba(34,106,255,0.1);
}

.uc-quick-item svg {
    width: 18px;
    height: 18px;
}

/* ========== 通用Section ========== */
.uc-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.uc-section-header {
    margin-bottom: 20px;
}

.uc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.uc-section-title svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary, #226AFF);
}

/* ========== 包裹状态列表（横向卡片行） ========== */
.uc-package-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.uc-package-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 160px;
    flex: 1;
    max-width: calc(25% - 9px);
}

.uc-package-item:hover {
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.uc-package-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.uc-package-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.uc-package-info {
    display: flex;
    flex-direction: column;
}

.uc-package-count {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.uc-package-label {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ========== 订单状态列表 ========== */
.uc-order-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.uc-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 160px;
    flex: 1;
    max-width: calc(25% - 9px);
}

.uc-order-item:hover {
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.uc-order-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.uc-order-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.uc-order-info {
    display: flex;
    flex-direction: column;
}

.uc-order-count {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.uc-order-label {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ========== 服务列表 ========== */
.uc-service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.uc-service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #f9fafb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    min-width: 140px;
    flex: 1;
    max-width: calc(25% - 9px);
}

.uc-service-item:hover {
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.uc-service-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.uc-service-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.uc-service-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* 加载占位 */
.uc-loading-placeholder {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
    font-size: 14px;
    width: 100%;
}

/* ========== 未登录提示弹窗 ========== */
.login-required-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.login-required-modal.show {
    display: flex;
}

.login-required-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.login-required-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-width: 400px;
    width: 90%;
}

.login-required-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #93c5fd, #226aff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.login-required-icon svg {
    width: 40px;
    height: 40px;
}

.login-required-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.login-required-desc {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 32px;
}

.login-required-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ========== 移动端提示弹窗 ========== */
.uc-mobile-tip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
}

.uc-mobile-tip-modal.show {
    opacity: 1;
    visibility: visible;
}

.uc-mobile-tip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
}

.uc-mobile-tip-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 32px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.uc-mobile-tip-modal.show .uc-mobile-tip-content {
    transform: translateY(0) scale(1);
}

.uc-mobile-tip-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.uc-mobile-tip-icon svg {
    width: 36px;
    height: 36px;
    color: var(--color-primary, #226AFF);
}

.uc-mobile-tip-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
}

.uc-mobile-tip-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 28px;
}

.uc-mobile-tip-actions {
    display: flex;
    justify-content: center;
}

.uc-mobile-tip-btn {
    padding: 10px 40px;
    border-radius: 10px;
    background: var(--color-primary, #226AFF);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.uc-mobile-tip-btn:hover {
    background: var(--color-primary-dark, #1a54cc);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 106, 255, 0.3);
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .uc-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .uc-package-item,
    .uc-order-item {
        max-width: calc(33.33% - 8px);
    }

    .uc-service-item {
        max-width: calc(33.33% - 8px);
    }
}

@media (max-width: 992px) {
    .uc-sidebar {
        width: 220px;
    }

    .uc-content {
        padding: 20px 24px;
    }

    .uc-package-item,
    .uc-order-item {
        max-width: calc(50% - 6px);
    }

    .uc-service-item {
        max-width: calc(50% - 6px);
    }
}

@media (max-width: 768px) {
    .uc-main {
        flex-direction: column;
    }

    .uc-sidebar {
        width: 100%;
        min-height: auto;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .uc-sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 8px 12px;
        gap: 4px;
    }

    .uc-nav-item {
        white-space: nowrap;
        padding: 8px 14px;
        margin-bottom: 0;
    }

    .uc-sidebar-footer {
        display: none;
    }

    .uc-content {
        padding: 16px;
    }

    .uc-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .uc-stat-card {
        padding: 14px;
    }

    .uc-stat-value {
        font-size: 18px;
    }

    .uc-quick-bar {
        flex-wrap: wrap;
    }

    .uc-quick-item {
        flex: 1;
        min-width: calc(50% - 6px);
        justify-content: center;
    }

    .uc-package-item,
    .uc-order-item,
    .uc-service-item {
        max-width: calc(50% - 6px);
        min-width: calc(50% - 6px);
    }

    .uc-profile {
        padding: 20px 16px 16px;
    }

    .uc-profile-avatar img {
        width: 60px;
        height: 60px;
    }

    .uc-profile-name {
        font-size: 16px;
    }

    .login-required-content {
        padding: 32px 24px;
    }

    .login-required-actions {
        flex-direction: column;
    }

    .login-required-actions .btn {
        width: 100%;
    }
}
