* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航 */
.top-nav {
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 414px;
    margin: 0 auto;
}

/* 主容器 */
.container {
    max-width: 414px;
    margin: 0 auto;
    padding: 10px;
}

/* 用户信息区域 */
.user-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.user-info {
    display: flex;
    align-items: center;
    padding: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.user-details {
    flex: 1;
}

.user-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.user-level {
    font-size: 13px;
    color: #666;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-actions a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

/* 会员信息 */
.vip-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    padding: 15px;
}

.vip-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vip-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-title {
    font-weight: bold;
    font-size: 16px;
}

.vip-exp {
    background: rgba(255,255,255,0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.vip-desc {
    font-size: 13px;
    margin-top: 8px;
}

/* 统计数据区域 */
.stats-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

/* 交易区域 */
.trade-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.trade-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.trade-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.trade-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    position: relative;
}

.trade-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.trade-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.trade-label {
    font-size: 12px;
    text-align: center;
}

/* 推荐区域 */
.recommend-section {
    margin-bottom: 10px;
}

.recommend-card {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 15px;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.recommend-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.recommend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.recommend-content {
    flex: 1;
}

.recommend-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.recommend-desc {
    font-size: 13px;
    margin-bottom: 10px;
}

.recommend-link {
    font-size: 13px;
    color: #1a1a2e;
    text-decoration: none;
}

/* 回收区域 */
.recycle-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.recycle-items {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.recycle-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 13px;
}

.recycle-tag {
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
}

.recycle-more {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    margin-left: auto;
}

/* 功能入口区域 */
.features-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-label {
    font-size: 12px;
    text-align: center;
}

/* 活动区域 */
.activities-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 70px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.activities-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.activity-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.activity-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.activity-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.activity-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-badge {
    background: #ff4757;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
}

.activity-arrow {
    font-size: 14px;
    color: #999;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    max-width: 414px;
    margin: 0 auto;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
}

.nav-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #4facfe;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .container {
        padding: 8px;
    }
    
    .user-info {
        padding: 12px;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
    }
    
    .trade-icon {
        width: 36px;
        height: 36px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .activity-icon {
        width: 40px;
        height: 40px;
    }
}