/* ========== 个人中心页样式 ========== */
.user-page {
    padding: 20px 0 40px;
    min-height: 800px;
}

.user-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
}

/* 左侧菜单 */
.user-side {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.user-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.user-info::before, .user-info::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.user-info::before {
    width: 120px;
    height: 120px;
    top: -40px;
    left: -30px;
}

.user-info::after {
    width: 80px;
    height: 80px;
    bottom: -20px;
    right: -20px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    border: 2px solid #fff;
    position: relative;
    z-index: 1;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.user-level {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

.user-level i {
    color: #FFD700;
}

.side-menu {
    padding: 8px 0;
}

.menu-group {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.menu-group:last-child {
    border-bottom: none;
}

.menu-group h4 {
    color: var(--text-3);
    font-size: 12px;
    padding: 4px 20px;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    color: var(--text-1);
    font-size: 13px;
    transition: all 0.2s;
    position: relative;
}

.menu-item i {
    color: var(--text-3);
    font-size: 16px;
    width: 18px;
}

.menu-item:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.menu-item:hover i {
    color: var(--primary);
}

.menu-item.active {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}

.menu-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.menu-item.active i {
    color: var(--primary);
}

/* 右侧 */
.user-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.card-head h3 {
    font-size: 17px;
    color: var(--text-1);
    font-weight: 700;
}

.more {
    color: var(--text-3);
    font-size: 13px;
    transition: color 0.2s;
}

.more:hover {
    color: var(--primary);
}

/* 欢迎卡 */
.welcome-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 30px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(45, 212, 167, 0.25);
}

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

.welcome-info h2 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 700;
}

.welcome-info > p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.level-bar {
    background: rgba(255, 255, 255, 0.25);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
    max-width: 480px;
}

.level-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.welcome-actions {
    display: flex;
    gap: 12px;
}

.welcome-actions .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.welcome-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.welcome-actions .btn-outline {
    background: transparent;
    color: #fff;
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.welcome-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.welcome-visual {
    position: relative;
    width: 180px;
    height: 140px;
    flex-shrink: 0;
}

.v-1, .v-2 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.v-1 {
    width: 100px;
    height: 100px;
    top: 0;
    right: 30px;
}

.v-2 {
    width: 70px;
    height: 70px;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
}

.visual-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    color: rgba(255, 215, 0, 0.9);
    z-index: 2;
}

/* 订单类型 */
.order-types {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.order-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 0;
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
}

.order-type:hover {
    background: var(--primary-bg);
}

.ot-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.2s;
}

.order-type:hover .ot-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.order-type span {
    color: var(--text-1);
    font-size: 13px;
}

.ot-badge {
    position: absolute;
    top: 8px;
    right: 30%;
    background: var(--secondary);
    color: #fff;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    font-style: normal;
    padding: 0 5px;
    font-weight: 600;
}

/* 订单列表 */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.order-head {
    background: var(--bg-soft);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-2);
}

.order-time {
    color: var(--text-2);
}

.order-no {
    color: var(--text-3);
}

.order-status {
    margin-left: auto;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.wait {
    color: var(--warning);
    background: #FFF8E1;
}

.order-status.done {
    color: var(--primary);
    background: var(--primary-bg);
}

.order-body {
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.order-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.order-img i {
    font-size: 40px;
}

.order-info {
    flex: 1;
}

.order-info h4 {
    font-size: 14px;
    color: var(--text-1);
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.5;
}

.order-attrs {
    color: var(--text-3);
    font-size: 12px;
}

.order-price {
    text-align: right;
    margin-right: 20px;
}

.price-real {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 700;
}

.price-orig {
    color: var(--text-3);
    font-size: 12px;
    text-decoration: line-through;
}

.order-foot {
    background: var(--bg-soft);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.order-total {
    color: var(--text-2);
}

.order-total em {
    font-style: normal;
    color: var(--secondary);
    font-weight: 700;
    font-size: 16px;
    margin: 0 4px;
}

.order-actions {
    display: flex;
    gap: 8px;
}

.btn-ghost, .order-actions .btn-primary {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--text-2);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.order-actions .btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    font-weight: 600;
}

.order-actions .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* 资产 */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.asset-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    cursor: pointer;
}

.asset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.asset-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.asset-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asset-info span {
    color: var(--text-3);
    font-size: 12px;
}

.asset-info strong {
    color: var(--text-1);
    font-size: 20px;
    font-weight: 700;
}
