/* 我的页面样式 */

.page {
    background-color: #f5f5f5;
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom));
}

/* 顶部区域 */
.my-header {
    position: relative;
    height: 3.6rem;
    overflow: hidden;
    background: #2563eb;
}

.user-card {
    position: relative;
    padding: 0.4rem 0.3rem;
    padding-top: calc(env(safe-area-inset-top) + 0.6rem);
}

.user-info {
    position: relative;
}

.avatar {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
}

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

.user-detail {
    margin-left: 0.3rem;
    color: #fff;
    flex: 1;
}

.user-name {
    font-size: 0.36rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.user-id {
    font-size: 0.24rem;
    opacity: 0.8;
}

.member-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,215,0,0.9);
    color: #8b4513;
    padding: 0.06rem 0.16rem;
    border-radius: 0.2rem;
    font-size: 0.22rem;
    font-weight: 500;
    margin-top: 0.1rem;
}

.member-badge .badge-icon {
    margin-right: 0.06rem;
}

.setting-btn {
    width: 0.6rem;
    height: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.4rem;
    text-decoration: none;
    color: #fff;
}

/* 资产卡片 */
.asset-card {
    margin-top: -0.6rem;
    position: relative;
    z-index: 10;
}

.asset-list {
    padding: 0.1rem 0;
}

.asset-item {  /* 兼容旧代码 */
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 0.2rem 0.04rem;
}
.asset-value { font-size: 0.26rem; font-weight: 600; color: #2563eb; }
.asset-label { font-size: 0.24rem; color: #999; }

/* ===== 新布局：金额主区 + 小入口区 ===== */
.asset-money-row {
    align-items: center;
    padding: 0.24rem 0;
}
.asset-money-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 0.04rem 0.08rem;
}
.asset-money-value {
    font-size: 0.4rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.08rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}
.asset-money-label {
    font-size: 0.22rem;
    color: #888;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.asset-money-divider {
    width: 1px;
    height: 0.6rem;
    background: #ececec;
    flex-shrink: 0;
}

/* 下方小入口 */
.asset-mini-row {
    border-top: 1px solid #f0f0f0;
    padding: 0.12rem 0;
}
.asset-mini-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    text-decoration: none;
    color: #444;
    font-size: 0.24rem;
    padding: 0.06rem 0.04rem;
}
.asset-mini-icon { font-size: 0.28rem; line-height: 1; }
.asset-mini-label { color: #666; }
.asset-mini-value { color: #2563eb; font-weight: 600; min-width: 0.4rem; text-align: left; }

/* 功能入口 */
.func-section {
    /* spacing handled by .card */
}

.func-list {
    display: flex;
    padding: 0.1rem 0;
}

.func-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 0.15rem 0;
}

.func-icon {
    width: 0.9rem;
    height: 0.9rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.4rem;
    margin-bottom: 0.12rem;
}

.func-text {
    font-size: 0.24rem;
    color: #666;
}

/* 订单区域 */
.order-section {
    /* spacing handled by .card */
}

.section-header {
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 0.1rem;
}

.section-title {
    font-size: 0.3rem;
    font-weight: 500;
    color: #333;
}

.more-link {
    font-size: 0.24rem;
    color: #999;
    text-decoration: none;
}

.order-tabs {
    display: flex;
    padding: 0.2rem 0;
}

.order-tabs .order-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 0.15rem 0;
}

.order-icon {
    width: 0.9rem;
    height: 0.9rem;
    background: #f8f8f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.4rem;
    margin-bottom: 0.12rem;
}

.order-tab-item .order-text {
    font-size: 0.24rem;
    color: #666;
}

/* 服务列表 */
.service-section,
.more-section {
    /* spacing handled by .card */
}

.service-list {
    margin-top: 0.1rem;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 0.28rem 0;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f8f8f8;
}

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

.item-icon {
    width: 0.5rem;
    font-size: 0.36rem;
    margin-right: 0.24rem;
}

.item-text {
    flex: 1;
    font-size: 0.28rem;
}

.item-desc {
    color: #2563eb;
    font-size: 0.24rem;
    margin-left: auto;
    margin-right: 0.1rem;
}

.item-arrow {
    color: #ccc;
    font-size: 0.28rem;
}

/* 底部导航 — 用 common.css 统一样式 */

/* 卡片通用样式 */
.card {
    background: #fff;
    border-radius: 0.16rem;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
    margin-bottom: 0.24rem;
    padding: 0.3rem;
}

/* grid布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.2rem 0;
}
.grid-item-text {
    font-size: 0.24rem;
    color: #666;
}
