/* 个人中心样式 - 测试空文件 */

/* 暂时完全空白 */

/* 个人中心样式 - 基于正常滚动结构 */
.user-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-radius: 10px;
    position: relative;
    margin-bottom: 15px;
}

.user-actions {
    position: absolute;
    top: 15px;
    right: 15px;
}

.user-actions .btn {
    margin-left: 8px;
    font-size: 12px;
    padding: 5px 12px;
}

.avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
}

/* 头像容器样式 */
.avatar-container {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    border: 3px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: cover;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.avatar-upload-overlay {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: #007bff;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.avatar-upload-overlay:hover {
    background: #0056b3;
}

.avatar-upload-overlay i {
    color: white;
    font-size: 14px;
}

.user-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

.user-details {
    opacity: 0.9;
    margin-top: 8px;
}

.detail-item {
    margin-bottom: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-item i {
    font-size: 12px;
    width: 14px;
    text-align: center;
    opacity: 0.7;
}

.location-info i {
    color: #28a745;
}

.device-info i {
    color: #17a2b8;
}

.login-info i {
    color: #6c757d;
}

.info-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    overflow: hidden;
}

.info-card-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #2c3e50;
}

.info-card-body {
    padding: 20px;
}

.progress-custom {
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: #e9ecef;
}

.progress-custom .progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #6c757d;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
}

.feature-btn {
    margin: 2px;
    min-width: 80px;
    font-size: 12px;
    padding: 8px 10px;
    white-space: nowrap;
    flex: 1;
}

.activity-item {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-time {
    color: #6c757d;
    font-size: 12px;
    min-width: 50px;
    flex-shrink: 0;
}

/* 活动链接样式 */
.activity-link {
    text-decoration: none;
    color: #0d6efd; /* Bootstrap的primary蓝色 */
    cursor: pointer;
    transition: color 0.2s ease;
}

.activity-link:hover {
    color: #0b5ed7; /* 悬停时的深蓝色 */
    text-decoration: underline;
}

/* 设置弹窗样式 */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: all 0.3s ease;
}

.settings-modal.show {
    opacity: 1;
    visibility: visible;
}

.settings-content {
    background: #ffffff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.settings-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.settings-header h4 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.form-group {
    padding: 0 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.gender-options {
    display: flex;
    gap: 12px;
}

.gender-option {
    flex: 1;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8f9fa;
}

.gender-option:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.gender-option.selected {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.gender-option input[type="radio"] {
    display: none;
}

.btn-group {
    padding: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #3498db;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}


.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* 等级链接样式 */
.stat-value.text-primary {
    transition: all 0.2s ease;
}

.stat-value.text-primary:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* 移除复杂的等级样式，保持简单原始样式 */

/* 出生日期输入容器样式 */
.birth-input-container {
    position: relative;
}

.birth-input-container .form-control {
    margin-bottom: 8px;
}

.birth-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.birth-hint .text-success {
    color: #28a745 !important;
    font-weight: 500;
}

.birth-hint .text-warning {
    color: #ffc107 !important;
    font-weight: 500;
}

.birth-hint .text-muted {
    color: #6c757d !important;
}


/* 爱秀区域左右布局样式 */
.aixiu-profile-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.aixiu-image-section {
    flex-shrink: 0;
    text-align: center;
}

.aixiu-preview-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 3px solid #dee2e6;
    object-fit: cover;
    transition: transform 0.2s;
}

.aixiu-preview-img:hover {
    transform: scale(1.05);
}


.aixiu-info-section {
    flex: 1;
    padding-left: 10px;
}

.aixiu-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.aixiu-detail-item:last-child {
    margin-bottom: 0;
}

.aixiu-detail-label {
    color: #6c757d;
    margin-right: 8px;
    min-width: 40px;
    flex-shrink: 0;
}

.aixiu-detail-value {
    color: #495057;
    font-weight: 500;
}

/* 头像上传模态框样式 */
.avatar-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.avatar-upload-modal.show {
    opacity: 1;
    visibility: visible;
}

.avatar-upload-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.avatar-preview-container {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.avatar-preview {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    border: 3px solid #e9ecef;
    object-fit: cover;
    display: none;
}

.upload-placeholder {
    width: 200px;
    height: 200px;
    border: 3px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 48px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.upload-placeholder:hover {
    border-color: #007bff;
    color: #007bff;
}

.upload-info {
    margin: 15px 0;
    font-size: 14px;
    color: #6c757d;
}

.upload-progress {
    display: none;
    margin: 15px 0;
}

/* 移动端优化 */
@media (max-width: 576px) {
    .birth-input-container .form-control {
        font-size: 16px;
    }
    
    
    /* 娱乐区域移动端优化 */
    .info-card-body .d-flex.flex-nowrap.gap-2 {
        gap: 0.25rem;
    }
    
    .info-card-body .d-flex.flex-nowrap.gap-2 a {
        min-width: 0;
        flex: 1;
    }
    
    .info-card-body .d-flex.flex-nowrap.gap-2 .p-3 {
        padding: 0.4rem 0.2rem;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .info-card-body .d-flex.flex-nowrap.gap-2 .fw-bold {
        font-size: 0.75rem;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .info-card-body .d-flex.flex-nowrap.gap-2 .fs-4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .info-card-body .d-flex.flex-nowrap.gap-2 .text-center {
        width: 100%;
    }
}

/* 超小屏幕进一步优化 */
@media (max-width: 360px) {
    .info-card-body .d-flex.flex-nowrap.gap-2 .fw-bold {
        font-size: 0.7rem;
    }
    
    .info-card-body .d-flex.flex-nowrap.gap-2 .fs-4 {
        font-size: 1rem !important;
    }
    
    .info-card-body .d-flex.flex-nowrap.gap-2 .p-3 {
        padding: 0.3rem 0.1rem;
        min-height: 55px;
    }
}

/* 头像上传模态框样式 */
.avatar-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.avatar-upload-modal.show {
    opacity: 1;
    visibility: visible;
}

.avatar-upload-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 450px;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.close-btn-top {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 20;
}

.close-btn-top:hover {
    background: #e9ecef;
    color: #495057;
}

.upload-area {
    padding: 50px 30px 80px 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-grow: 1;
}

.upload-placeholder {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
}

.upload-placeholder:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    color: #007bff;
}

.upload-placeholder i {
    color: #6c757d;
    margin-bottom: 16px;
}

.upload-placeholder:hover i {
    color: #007bff;
}

.upload-placeholder p {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
}


.preview-area {
    text-align: center;
    padding: 20px;
}

.preview-area img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.preview-info {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.preview-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #495057;
}

.upload-progress {
    padding: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8f9fa;
    flex-shrink: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0 0 12px 12px;
    z-index: 20;
}

.modal-footer .btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background-color: #545b62;
}

.modal-footer .btn-primary {
    background-color: #007bff;
    color: white;
}

.modal-footer .btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
}

.modal-footer .btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 头像预览模态框样式 */
.avatar-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.avatar-preview-backdrop {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.avatar-preview-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: default;
    transition: transform 0.3s ease;
}

.avatar-preview-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.avatar-preview-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 新版用户名片样式 - 简约清爽版 */
.user-profile-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.profile-header {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.profile-header .user-actions {
    display: flex;
    gap: 10px;
}

.profile-content {
    display: flex;
    padding: 0 20px 25px 20px;
    gap: 20px;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar .user-avatar-container {
    position: relative;
}

.profile-avatar .user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 3px solid #dee2e6;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    color: #495057;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.user-name-section {
    margin-bottom: 12px;
}

.user-name-id-line {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #2c3e50;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.2;
}

.user-id-bracket {
    font-size: 16px;
    color: #6c757d;
    font-weight: 400;
    margin-left: 2px;
}

.user-basic-info {
    margin-bottom: 15px;
}

.user-basic-info .detail-item {
    margin-bottom: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    min-height: 20px;
    overflow: hidden;
}

.detail-label {
    color: #6c757d;
    margin-right: 5px;
    min-width: 35px;
    flex-shrink: 0;
}

.detail-value {
    color: #495057;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.level-simple-display {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #495057;
}

.level-simple-display #userLevel {
    font-weight: 600;
}

.level-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    transition: transform 0.2s;
}

.level-stars:hover {
    transform: scale(1.05);
}

.level-stars .star-image {
    width: 18px;
    height: 18px;
}

.level-pill-badge {
    display: inline-block;
    min-width: 68px;
    text-align: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

/* 财产信息简化显示样式 */
.finance-simple-display {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #495057;
}

.finance-balance {
    font-weight: 600;
    color: #2c3e50;
}

.finance-balance a.finance-balance-link {
    color: #007bff;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.finance-balance a.finance-balance-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.finance-divider {
    color: #6c757d;
    font-weight: 400;
}

.finance-bank-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.finance-bank-link:hover {
    color: #20c997;
    text-decoration: underline;
}

/* 桌面端显示优化 */
@media (min-width: 768px) {
    .profile-header .user-actions {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .profile-header .user-actions .btn {
        display: inline-block !important;
    }
    
    .profile-content {
        padding: 0 25px 30px 25px;
        gap: 25px;
    }
    
    .profile-avatar .user-avatar {
        width: 110px;
        height: 110px;
    }
    
    .user-name-id-line {
        font-size: 22px;
    }
    
    .user-id-bracket {
        font-size: 18px;
    }
    
    .user-basic-info {
        max-width: 350px;
    }
    
    .aixiu-profile-layout {
        gap: 25px;
    }
    
    .aixiu-preview-img {
        width: 110px;
        height: 110px;
    }
    
    .level-simple-display {
        font-size: 18px;
        gap: 18px;
    }
    
    .finance-simple-display {
        font-size: 18px;
        gap: 18px;
    }
}

/* 平板端适配 */
@media (min-width: 577px) and (max-width: 767px) {
    .profile-content {
        gap: 20px;
        padding: 0 20px 25px 20px;
    }
    
    .user-basic-info {
        max-width: 320px;
    }
    
    .aixiu-profile-layout {
        gap: 18px;
    }
}

/* 移动端响应式适配 */
@media (max-width: 576px) {
    .profile-content {
        flex-direction: row;
        align-items: flex-start;
        padding: 0 15px 20px 15px;
        gap: 15px;
    }
    
    .profile-avatar .user-avatar {
        width: 85px;
        height: 85px;
    }
    
    .user-name-id-line {
        font-size: 18px;
        display: inline-block;
        white-space: nowrap;
    }
    
    .user-id-bracket {
        font-size: 14px;
    }
    
    .user-basic-info {
        max-width: none;
        width: 100%;
    }
    
    .aixiu-profile-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }
    
    .aixiu-image-section {
        text-align: left;
    }
    
    .aixiu-info-section {
        padding-left: 8px;
    }
    
    .aixiu-preview-img {
        width: 85px;
        height: 85px;
    }
    
    .level-simple-display {
        justify-content: flex-start;
        gap: 12px;
        font-size: 15px;
    }
    
    .finance-simple-display {
        justify-content: flex-start;
        gap: 12px;
        font-size: 15px;
    }
    
    .profile-header {
        padding: 12px 15px;
    }
    
    .profile-header .user-actions .btn {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* 隐私设置样式 */
.privacy-settings {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.privacy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.privacy-item:last-child {
    margin-bottom: 0;
}

.privacy-label {
    font-weight: 500;
    color: #495057;
    min-width: 50px;
}

.privacy-controls {
    display: flex;
    gap: 15px;
}

.privacy-option {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #6c757d;
    transition: color 0.2s;
}

.privacy-option:hover {
    color: #495057;
}

.privacy-option input[type="radio"] {
    margin: 0;
} 
