/* 个人中心样式 - 测试空文件 */

/* 暂时完全空白 */

/* 个人中心样式 - 基于正常滚动结构 */
.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;
}

/* 商城区域：仅两个入口时保持左对齐，不要把中间拉空 */
.profile-shop-row {
    justify-content: flex-start;
}

.profile-shop-row > a.profile-shop-link {
    flex: 0 0 auto;
}

.profile-shop-row > a.profile-shop-link .p-3 {
    min-width: 106px;
}

.profile-shop-row .fw-bold {
    white-space: nowrap;
    font-size: 14px;
}

.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;
}

/* 设置弹窗内可点击项统一蓝色风格，减少“像普通文字”的误判 */
.settings-content a {
    color: #0d6efd;
    text-decoration: underline;
}

.settings-content a:hover {
    color: #0a58ca;
}

.settings-content .btn-outline-primary,
.settings-content .btn-outline-secondary {
    color: #0d6efd;
    border: 1px solid #0d6efd;
    background: #eef4ff;
}

.settings-content .btn-outline-primary:hover,
.settings-content .btn-outline-secondary:hover,
.settings-content .btn-outline-primary:focus,
.settings-content .btn-outline-secondary:focus {
    color: #ffffff;
    border-color: #0d6efd;
    background: #0d6efd;
}

.settings-content .btn-outline-primary:disabled,
.settings-content .btn-outline-secondary:disabled {
    color: #7aa7f9;
    border-color: #c7dbff;
    background: #f5f9ff;
}

/* 设置弹窗输入框增强：更明显的边框与层级 */
.settings-content .form-control {
    min-height: 46px;
    border: 1.5px solid #bfd4ff;
    background: #f7fbff;
    color: #1f2d3d;
}

.settings-content .form-control:hover {
    border-color: #86b7fe;
    background: #ffffff;
}

.settings-content .form-control:focus {
    border-color: #0d6efd;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.16);
}

.settings-content .form-control[readonly] {
    background: #eef4ff;
    border-color: #cfe2ff;
    color: #23395d;
}

.settings-content .form-control::placeholder {
    color: #7a8aa0;
}

.settings-content .input-group .form-control {
    border-right-color: #9ec5fe;
}

.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 #cfe2ff;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f5f9ff;
    color: #0d6efd;
}

.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;
}


/* 基本资料区域左右布局样式 */
.profile-meta-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.profile-meta-image {
    flex-shrink: 0;
    text-align: center;
}

.profile-meta-preview-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 3px solid #dee2e6;
    object-fit: cover;
    transition: transform 0.2s;
}

.profile-meta-preview-img:hover {
    transform: scale(1.05);
}


.profile-meta-info {
    flex: 1;
    padding-left: 10px;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.profile-meta-item:last-child {
    margin-bottom: 0;
}

.profile-meta-label {
    color: #6c757d;
    margin-right: 8px;
    min-width: 40px;
    flex-shrink: 0;
}

.profile-meta-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.profile-shop-row a.profile-shop-link {
        flex: 0 0 auto;
    }
    
    .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: flex-start;
    min-height: auto;
}

.user-name-section {
    margin-bottom: 12px;
}

.user-name-id-line {
    font-size: 19px;
    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: 15px;
    color: #6c757d;
    font-weight: 400;
    margin-left: 2px;
}

.user-basic-info {
    margin-bottom: 15px;
}

.user-basic-info .detail-item {
    margin-bottom: 8px;
    font-size: 12px;
}

.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 {
    position: relative;
    display: inline-block;
    min-width: 62px;
    text-align: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.level-pill-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.level-tier-1 {
    color: #ffffff;
    background: linear-gradient(135deg, #3b4252, #1f2937);
    border-color: rgba(148, 163, 184, 0.35);
}

.level-tier-2 {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: rgba(147, 197, 253, 0.45);
}

.level-tier-3 {
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #047857);
    border-color: rgba(110, 231, 183, 0.45);
}

.level-tier-4 {
    color: #ffffff;
    background: linear-gradient(135deg, #b45309, #92400e);
    border-color: rgba(251, 191, 36, 0.5);
}

.level-tier-5 {
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border-color: rgba(196, 181, 253, 0.5);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.18), 0 4px 10px rgba(91, 33, 182, 0.18);
}

.level-tier-6 {
    color: #06202a;
    background: linear-gradient(135deg, #67e8f9, #22d3ee 45%, #0891b2);
    border-color: rgba(34, 211, 238, 0.65);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.2), 0 6px 14px rgba(8, 145, 178, 0.22);
}

.level-tier-6::after {
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 100%);
    transform: translateX(-120%);
    animation: levelShimmer 3.2s linear infinite;
}

.level-tier-7 {
    color: #fff7ed;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 45%, #9a3412 100%);
    border-color: rgba(251, 146, 60, 0.8);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.24), 0 8px 16px rgba(154, 52, 18, 0.28);
    animation: levelPulseSoft 2.4s ease-in-out infinite;
}

.level-tier-8 {
    color: #ffffff;
    background: linear-gradient(130deg, #db2777 0%, #a21caf 40%, #7c3aed 70%, #2563eb 100%);
    border-color: rgba(244, 114, 182, 0.72);
    background-size: 180% 180%;
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25), 0 10px 18px rgba(91, 33, 182, 0.3);
    animation: levelGradientShift 3.8s ease-in-out infinite;
}

.level-tier-9 {
    color: #ffffff;
    background: linear-gradient(120deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7, #ef4444);
    background-size: 260% 260%;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 22px rgba(99, 102, 241, 0.38);
    animation: levelGradientShift 4.6s ease-in-out infinite, levelPulseSoft 2.1s ease-in-out infinite;
}

.level-tier-9::after {
    background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.42) 45%, transparent 80%);
    transform: translateX(-130%);
    animation: levelShimmer 2.2s linear infinite;
}

.level-tier-10 {
    color: #f8fafc;
    background: radial-gradient(circle at 20% 20%, #6366f1 0%, #312e81 35%, #111827 70%, #020617 100%);
    border-color: rgba(129, 140, 248, 0.85);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35), 0 0 18px rgba(99, 102, 241, 0.45), 0 10px 24px rgba(15, 23, 42, 0.5);
    animation: levelPulseStrong 1.9s ease-in-out infinite;
}

.level-tier-10::after {
    background: conic-gradient(from 0deg, transparent 0deg, rgba(129, 140, 248, 0.6) 80deg, transparent 150deg, rgba(56, 189, 248, 0.5) 220deg, transparent 310deg);
    mix-blend-mode: screen;
    opacity: 0.75;
    animation: levelRotate 3.8s linear infinite;
}

@keyframes levelShimmer {
    to {
        transform: translateX(130%);
    }
}

@keyframes levelPulseSoft {
    0%, 100% {
        transform: translateY(0);
        box-shadow: inherit;
    }
    50% {
        transform: translateY(-1px);
    }
}

@keyframes levelPulseStrong {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-1px) scale(1.03);
    }
}

@keyframes levelGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes levelRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .level-pill-badge,
    .level-pill-badge::after {
        animation: none !important;
        transition: none !important;
    }
}

/* 财产信息简化显示样式 */
.finance-simple-display {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    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: #dc3545;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.finance-bank-link:hover {
    color: #c82333;
    text-decoration: underline;
}

.profile-quickline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #495057;
    white-space: nowrap;
    overflow-x: auto;
}

.profile-quick-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.profile-quick-item--level .level-stars {
    margin-left: 2px;
}

.profile-quick-value {
    color: #2c3e50;
    font-weight: 600;
}

.profile-quick-sep {
    color: #6c757d;
    font-weight: 400;
}

.profile-hidden-level {
    display: none;
}

/* 桌面端显示优化 */
@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: 20px;
    }
    
    .user-id-bracket {
        font-size: 16px;
    }
    
    .user-basic-info {
        max-width: 350px;
    }
    
    .profile-meta-layout {
        gap: 25px;
    }
    
    .profile-meta-preview-img {
        width: 110px;
        height: 110px;
    }
    
    .level-simple-display {
        font-size: 18px;
        gap: 18px;
    }
    
    .finance-simple-display {
        font-size: 17px;
        gap: 16px;
    }

    .profile-quickline {
        font-size: 17px;
        gap: 10px;
    }
}

/* 平板端适配 */
@media (min-width: 577px) and (max-width: 767px) {
    .profile-content {
        gap: 20px;
        padding: 0 20px 25px 20px;
    }
    
    .user-basic-info {
        max-width: 320px;
    }
    
    .profile-meta-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: 17px;
        display: inline-block;
        white-space: nowrap;
    }
    
    .user-id-bracket {
        font-size: 14px;
    }
    
    .user-basic-info {
        max-width: none;
        width: 100%;
    }
    
    .profile-meta-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }
    
    .profile-meta-image {
        text-align: left;
    }
    
    .profile-meta-info {
        padding-left: 8px;
    }
    
    .profile-meta-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: 14px;
    }

    .profile-quickline {
        font-size: 14px;
        gap: 8px;
    }
    
    .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;
}

