/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #f5f5f7;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 120px;
    background-color: #f5f5f7;
    display: flex;
    flex-direction: column;
}

/* 个人资料头部 */
.profile-header {
    background-color: #ffffff;
    padding: 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    object-fit: cover;
}

.name-company-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 16px;
    flex: 1;
    overflow: hidden;
}

.user-name {
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-company {
    font-size: 14px;
    color: #666666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

.register-prompt {
    font-size: 16px;
    color: #007aff;
    font-weight: bold;
}

.user-badge {
    font-size: 10px;
    background-color: #4a1c13;
    color: #ffc300;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* 主要内容区域 */
.content-area {
    width: 100%;
    flex: 1;
}

/* 卡片通用样式 */
.card {
    width: 100%;
    background-color: #ffffff;
    padding: 30px 16px;
    margin: 0;
}

/* 积点卡 */
.points-card {
    background-color: #ffc300;
}

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

.inner-card img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.points-text {
    flex: 1;
    overflow: hidden;
}

.points-text .title {
    font-size: 14px;
    font-weight: bold;
    display: block;
}

.points-text .desc {
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* 余额信息 */
.balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.balance {
    display: flex;
    align-items: center;
}

.balance .label {
    font-size: 12px;
}

.balance .amount {
    font-size: 20px;
    font-weight: bold;
    margin: 0 16px;
}

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

.wallet-link {
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    border-radius: 30px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wallet-link:active {
    background-color: rgba(0, 0, 0, 0.2);
}

/* 快速链接 */
.quick-links {
    display: flex;
    gap: 30px;
}

.link-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

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

.link-item > div {
    display: flex;
    flex-direction: column;
}

.link-item .title {
    font-size: 16px;
    font-weight: bold;
    display: block;
}

.link-item .desc {
    font-size: 12px;
    color: #888888;
    display: block;
    margin-top: 4px;
}

/* 功能列表 */
.card-list {
    padding-left: 16px;
    padding-right: 16px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.list-item:active {
    background-color: #f8f8f8;
}

.list-item .arrow {
    color: #888888;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #888888;
    cursor: pointer;
    transition: color 0.3s;
}

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

.nav-item.active {
    color: #333333;
    font-weight: bold;
}

.nav-item:active {
    opacity: 0.7;
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}
