:root {
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #888888;
    --brand-color: #ffc300;
    --header-height: 80px;
    --bottom-nav-height: 60px;
}

/* 手机版基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-color: #e8e8e8; /* 浅灰色背景，与内容区域形成对比 */
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 页面容器 - 手机版 */
.page-container {
    padding-bottom: var(--bottom-nav-height);
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background-color: var(--bg-color);
}

/* 手机版简化头部 */
.profile-header {
    background-color: var(--bg-color);
    display: flex;
    padding-right: 15px;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    height: 50px;
}

/* 会员卡片内的用户信息 */
.points-card .user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.user-details {
    margin-left: 12px;
    flex: 1;
}

.points-card .user-name {
    font-size: 18px;
    font-weight: 600;
    display: block;
    color: #333;
}

.points-card .user-badge {
    font-size: 11px;
    background-color: rgba(74, 28, 19, 0.9);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 4px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    touch-action: manipulation;
}

/* 主体内容区 */
.content-area {
    padding: 15px;
    padding-top: 65px; /* 适应简化头部的高度 */
    padding-bottom: calc(15px + var(--bottom-nav-height));
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 会员卡片区 */
.points-card {
    background-color: var(--brand-color);
    border-radius: 12px;
}

.points-card .inner-card {
    background-color: rgba(255,255,255,0.8);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.points-card img {
    width: 45px;
    height: 45px;
}

.points-text h4 {
    font-size: 15px;
    font-weight: 600;
}

.points-text p {
    font-size: 12px;
    color: var(--text-secondary);
}

.balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.balance .label {
    font-size: 12px;
    color: var(--text-secondary);
}

.balance .amount {
    font-size: 22px;
    font-weight: bold;
    margin: 0 8px;
}

.balance .payment-tag {
    font-size: 10px;
    background-color: #333;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.wallet-link {
    font-size: 12px;
    background-color: rgba(0,0,0,0.1);
    padding: 6px 12px;
    border-radius: 15px;
    white-space: nowrap;
}

/* 快捷入口 */
.quick-links {
    display: flex;
    gap: 15px;
}

.link-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.link-item img {
    width: 40px;
    height: 40px;
}

.link-item h4 {
    font-size: 16px;
    font-weight: 600;
}

.link-item p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 功能列表 */
.card-list {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.card-list .list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 15px;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.list-item span:last-child {
    color: var(--text-secondary);
    font-size: 16px;
}

/* 手机版底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 49.5%;
    transform: translateX(-50%);
    width: 100%;
    height: var(--bottom-nav-height);
    background-color: var(--card-bg);
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-secondary);
    flex: 1;
    height: 100%;
}

.nav-item img {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* 响应式调整 - 仅针对不同尺寸的手机 */
@media screen and (min-width: 375px) {
    .user-avatar {
        width: 55px;
        height: 55px;
    }
    
    .user-name {
        font-size: 19px;
    }
}

@media screen and (max-width: 320px) {
    .user-avatar {
        width: 45px;
        height: 45px;
    }
    
    .user-name {
        font-size: 16px;
    }
    
    .balance .amount {
        font-size: 18px;
    }
}
