/* =========================================================
   「我的」页面
   头部账号态 / 数据概览 / 会员入口 / 商城订单 / 服务菜单
   ========================================================= */

.profile-header {
    display: flex; align-items: center; padding: 30px 20px 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-color) 100%);
}
.profile-avatar {
    width: 64px; height: 64px; border-radius: 50%; background: var(--accent-gold);
    color: #fff; display: flex; justify-content: center; align-items: center;
    font-size: 28px; font-weight: bold; margin-right: 16px;
    box-shadow: 0 4px 10px rgba(185, 154, 107, 0.3);
    border: 2px solid #fff; position: relative; flex-shrink: 0;
}
.profile-avatar.is-guest { background: #C9C4BA; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06); }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 20px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.profile-id { font-size: 12px; color: var(--text-light); }
.profile-badge {
    font-size: 10px; font-weight: 700; color: var(--vip-text);
    background: var(--vip-gradient); padding: 2px 7px; border-radius: 8px;
    letter-spacing: 0.5px; display: none;
}
.profile-badge.show { display: inline-block; }
.profile-settings {
    width: 36px; height: 36px; border-radius: 50%; background: #FFFFFF;
    display: flex; justify-content: center; align-items: center;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
    cursor: pointer; flex-shrink: 0;
}
.profile-settings svg { width: 20px; height: 20px; color: var(--text-sub); }

/* 未登录提示条 */
.profile-guest {
    display: none; margin: 0 20px 16px; padding: 14px 16px;
    background: #FFFFFF; border: 1px dashed var(--border-color); border-radius: 12px;
    align-items: center; justify-content: space-between; gap: 12px;
}
.profile-guest.show { display: flex; }
.profile-guest p { font-size: 12px; color: var(--text-sub); line-height: 1.6; }
.profile-guest button {
    flex-shrink: 0; border: none; background: var(--accent-dark); color: #fff;
    font-family: inherit; font-size: 12px; font-weight: 600;
    padding: 8px 16px; border-radius: 16px; cursor: pointer;
}

/* 数据概览 */
.stats-grid { display: flex; gap: 12px; padding: 0 20px; margin-bottom: 20px; }
.stat-card {
    flex: 1; background: #FFFFFF; border-radius: 12px; padding: 16px 12px;
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; align-items: center; cursor: pointer;
}
.stat-card:active { background: #FBF9F5; }
.stat-num { font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.stat-label { font-size: 11px; color: var(--text-light); }
.stat-progress {
    width: 100%; height: 4px; background: #EBE7DF; border-radius: 2px; margin-top: 8px; overflow: hidden;
}
.stat-progress-bar { height: 100%; background: var(--accent-gold); border-radius: 2px; width: 45%; }

/* 会员卡片 */
.profile-vip-card {
    margin: 0 20px 24px; border-radius: 14px; padding: 20px;
    background: linear-gradient(135deg, #33312E, #1A1816); color: #F2D89E;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); cursor: pointer;
    border: 1px solid rgba(212, 184, 126, 0.3); position: relative; overflow: hidden;
}
.profile-vip-card::after {
    content: 'VIP'; position: absolute; right: -10px; bottom: -20px;
    font-size: 80px; font-family: 'STKaiti', serif; opacity: 0.05; font-weight: bold;
}
.profile-vip-card.is-member { border-color: rgba(212, 184, 126, 0.6); }
.vip-left h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: #F2D89E; }
.vip-left p { font-size: 12px; color: rgba(255,255,255,0.6); }
.vip-right-btn {
    background: var(--vip-gradient); color: var(--vip-text);
    padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700;
    flex-shrink: 0; white-space: nowrap;
}

/* 商城与订单 */
.mall-orders {
    margin: 0 20px 24px; background: #FFFFFF; border-radius: 14px;
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); padding: 16px;
}
.mall-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mall-header h3 { font-size: 15px; font-weight: 700; }
.mall-header span { font-size: 12px; color: var(--text-light); cursor: pointer; display: flex; align-items: center; }
.order-icons { display: flex; justify-content: space-around; }
.order-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; position: relative; }
.order-icon { width: 32px; height: 32px; color: var(--text-sub); }
.order-label { font-size: 11px; color: var(--text-main); }
.order-badge {
    position: absolute; top: -4px; right: -6px; background: var(--accent-red); color: white;
    font-size: 9px; padding: 1px 5px; border-radius: 8px; font-weight: normal; transform: scale(0.9);
}

/* 服务菜单 */
.menu-group-title {
    font-size: 11px; color: var(--text-light); letter-spacing: 1px;
    margin: 0 24px 8px;
}
.menu-list {
    margin: 0 20px 24px; background: #FFFFFF; border-radius: 14px;
    border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); overflow: hidden;
}
.menu-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px; border-bottom: 1px solid #F5F2EC; cursor: pointer;
}
.menu-item:active { background: #FBF9F5; }
.menu-item:last-child { border-bottom: none; }
.menu-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.menu-icon { width: 20px; height: 20px; color: var(--accent-gold); flex-shrink: 0; }
.menu-text { font-size: 14px; color: var(--text-main); font-weight: 600; }
.menu-desc { font-size: 11px; color: var(--text-light); margin-left: 8px; }
.menu-arrow { width: 16px; height: 16px; color: var(--text-light); flex-shrink: 0; }
.menu-count {
    font-size: 11px; color: var(--accent-gold); background: rgba(185,154,107,0.1);
    padding: 2px 8px; border-radius: 10px; margin-left: 8px;
}

.profile-foot { text-align: center; font-size: 11px; color: var(--text-light); margin: 4px 0 12px; letter-spacing: 0.5px; }
