/* 我的页面样式 - 响应式设计 */

.user-page {
    background: #f5f7fa;
    min-height: 100vh;
    padding-bottom: 100px;
}

/* 顶部设置按钮 */
.user-header {
    background: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.user-settings-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.settings-icon {
    width: 24px;
    height: 24px;
    display: block;
}

@media (min-width: 400px) {
    .settings-icon {
        width: 28px;
        height: 28px;
    }
}

/* 设置下拉菜单 */
.settings-dropdown {
    position: absolute;
    top: 100%;
    right: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 140px;
    display: none;
    z-index: 100;
}

.settings-dropdown.show {
    display: block;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.settings-item:hover {
    background: #f5f5f5;
}

.settings-item-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* 用户信息区域 */
.user-profile {
    background: #fff;
    padding: 10px 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

@media (min-width: 400px) {
    .user-avatar {
        width: 65px;
        height: 65px;
    }
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.user-id-row {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

@media (min-width: 400px) {
    .user-id-row {
        font-size: 13px;
    }
}

.user-copy {
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.user-copy-icon {
    width: 16px;
    height: 16px;
    display: block;
}

/* 钱包区域 */
.wallet-section {
    background: #fff;
    margin: 10px;
    padding: 15px;
    border-radius: 12px;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wallet-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.wallet-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #3b82f6;
    border-radius: 2px;
}

.wallet-refresh {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

@media (min-width: 400px) {
    .wallet-refresh {
        font-size: 13px;
    }
}

.wallet-card {
    background: linear-gradient(135deg, #3b5998 0%, #4a6fa5 100%);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    margin-bottom: 15px;
}

.wallet-label {
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.9;
}

.wallet-balance {
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 400px) {
    .wallet-balance {
        font-size: 36px;
    }
}

.wallet-balance::after {
    content: '›';
    font-size: 24px;
    opacity: 0.8;
}

@media (min-width: 400px) {
    .wallet-balance::after {
        font-size: 30px;
    }
}

.wallet-actions {
    display: flex;
    justify-content: space-around;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 15px;
}

.wallet-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.wallet-action-icon {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 新版钱包模块 */
.wallet-section-new {
    background: #fff;
    margin: 10px;
    padding: 15px;
    border-radius: 12px;
}

.wallet-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wallet-title-new {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.wallet-refresh-new {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.refresh-icon {
    width: 16px;
    height: 16px;
}

.wallet-card-new {
    background: linear-gradient(135deg, #3b5998 0%, #4a6fa5 100%);
    border-radius: 12px;
    overflow: hidden;
}

.wallet-balance-area {
    padding: 20px;
    text-align: center;
    color: #fff;
    background: linear-gradient(180deg, #162c7d, #2f63b8);
}

.wallet-balance-label {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}

.eye-icon-svg {
    width: 16px;
    height: 16px;
    display: block;
}

.arrow-icon {
    width: 18px;
    height: 18px;
    display: block;
    margin-left: 4px;
}

.wallet-balance-value {
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

@media (min-width: 400px) {
    .wallet-balance-value {
        font-size: 36px;
    }
}

.wallet-actions-new {
    display: flex;
    background: #fff;
    padding: 12px 0;
}

.wallet-action-new {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.wallet-icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-icon-wrapper svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wallet-divider {
    width: 1px;
    background: #e5e7eb;
}

/* 今日收益 */
.stats-section {
    background: #fff;
    margin: 10px;
    padding: 15px;
    border-radius: 12px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stats-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.stats-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #3b82f6;
    border-radius: 2px;
}

.stats-date {
    color: #666;
}

.stats-refresh {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

.refresh-icon-small {
    width: 16px;
    height: 16px;
    display: block;
}

@media (min-width: 400px) {
    .stats-refresh {
        font-size: 13px;
    }
    .refresh-icon-small {
        width: 18px;
        height: 18px;
    }
}

.stats-grid {
    display: flex;
    justify-content: space-around;
}

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

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

@media (min-width: 400px) {
    .stat-value {
        font-size: 28px;
    }
}

.stat-label {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.stat-label::after {
    content: '›';
}

@media (min-width: 400px) {
    .stat-label {
        font-size: 13px;
    }
}

/* 更多服务 */
.services-section {
    background: #fff;
    margin: 10px;
    padding: 15px;
    border-radius: 12px;
}

.services-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
}

.services-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #3b82f6;
    border-radius: 2px;
}

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

@media (max-width: 375px) {
    .services-grid {
        gap: 10px;
    }
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #3b5998;
}

.service-icon-img {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (min-width: 400px) {
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }

    .service-icon-img {
        width: 45px;
        height: 45px;
    }
}

.service-text {
    font-size: 12px;
    color: #666;
}

@media (min-width: 400px) {
    .service-text {
        font-size: 13px;
    }
}
