/* 用户个人主页 */
.user-profile-head {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.6rem;
}

.user-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #fde6d2;
    background: #fde6d2;
}

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

.user-profile-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.35rem;
    color: #4a3c35;
    font-size: 1.35rem;
}

.user-profile-title {
    padding: 0.05rem 0.5rem;
    border-radius: 20px;
    background: #fff3e6;
    color: #d35400;
    font-size: 0.72rem;
    font-weight: 500;
}

.user-profile-bio {
    margin: 0 0 0.45rem;
    color: #8a7a72;
    font-size: 0.88rem;
    line-height: 1.7;
    word-break: break-word;
}

.user-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    color: #a99a92;
    font-size: 0.76rem;
}

.user-profile-section-title {
    margin: 0 0 0.8rem;
    color: #5a4a42;
    font-size: 1rem;
}

.user-profile-edit textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid #f0e6dc;
    border-radius: 11px;
    background: #fdfaf7;
    color: #5a4a42;
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.7;
    resize: vertical;
}

.user-profile-edit textarea:focus {
    outline: none;
    border-color: #e67e22;
    background: #fff;
}

.user-profile-edit-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.user-profile-edit-foot > span {
    color: #b3a59d;
    font-size: 0.74rem;
}

.user-profile-edit-foot .btn {
    padding: 0.45rem 1rem;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    font-family: inherit;
    font-size: 0.84rem;
    cursor: pointer;
}

.user-profile-messages {
    display: flex;
    flex-direction: column;
}

.user-profile-message {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px dashed #f2e9e1;
    color: #5a4a42;
    text-decoration: none;
    font-size: 0.86rem;
    line-height: 1.7;
    word-break: break-word;
}

.user-profile-message:last-child {
    border-bottom: none;
}

.user-profile-message:hover {
    color: #e67e22;
}

.user-profile-message small,
.user-profile-message time {
    display: block;
    margin-top: 0.15rem;
    color: #b3a59d;
    font-size: 0.72rem;
}

.user-profile-empty {
    color: #b3a59d;
    font-size: 0.86rem;
    margin: 0;
}

body.dark-mode .user-profile-name,
body.dark-mode .user-profile-section-title,
body.dark-mode .user-profile-message {
    color: #eee;
}

body.dark-mode .user-profile-message {
    border-color: #333;
}

body.dark-mode .user-profile-edit textarea {
    background: #1d1d1d;
    border-color: #3a3a3a;
    color: #eee;
}

@media (max-width: 600px) {
    .user-profile-head {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }

    .user-profile-name,
    .user-profile-meta {
        justify-content: center;
    }
}

/* 登录记录 */
.login-record-list { display: flex; flex-direction: column; }
.login-record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed #f2e9e1;
}
.login-record-item:last-child { border-bottom: none; }
.login-record-item strong { display: block; color: #5a4a42; font-size: 0.84rem; font-weight: 500; }
.login-record-item span { color: #a99a92; font-size: 0.74rem; }
.login-record-item time { color: #b3a59d; font-size: 0.72rem; white-space: nowrap; }
body.dark-mode .login-record-item strong { color: #eee; }
body.dark-mode .login-record-item { border-color: #333; }

/* 简介快捷编辑 */
.user-profile-bio-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}
.user-profile-bio-row .user-profile-bio {
    flex: 1;
    margin: 0;
}
.bio-edit-btn {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0e2d5;
    border-radius: 50%;
    background: #fffaf5;
    color: #b08f79;
    cursor: pointer;
    transition: all 0.2s ease;
}
.bio-edit-btn .icon { width: 14px; height: 14px; }
.bio-edit-btn:hover { border-color: #e67e22; color: #d35400; background: #fff3e6; }

.bio-inline-form {
    display: none;
    margin: 0.5rem 0 0.7rem;
}
.bio-inline-form.show { display: block; }
.bio-inline-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 64px;
    padding: 0.65rem 0.8rem;
    border: 1.5px solid #f0e6dc;
    border-radius: 10px;
    background: #fdfaf7;
    color: #5a4a42;
    font-family: inherit;
    font-size: 0.86rem;
    line-height: 1.7;
    resize: vertical;
}
.bio-inline-form textarea:focus { outline: none; border-color: #e67e22; background: #fff; }
.bio-inline-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.45rem;
}
.bio-inline-foot > span {
    margin-right: auto;
    color: #b3a59d;
    font-size: 0.72rem;
}
.bio-inline-foot .btn {
    padding: 0.38rem 0.85rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}
.bio-inline-foot .btn-primary { background: linear-gradient(135deg, #e67e22, #d35400); color: #fff; }
.bio-inline-foot .btn-secondary { background: #f5f1ed; color: #6b5b53; }
body.dark-mode .bio-edit-btn { background: #2a2a2a; border-color: #3a3a3a; color: #bbb; }
body.dark-mode .bio-inline-form textarea { background: #1d1d1d; border-color: #3a3a3a; color: #eee; }

/* 举报用户 */
.report-user-btn {
    margin-top: 10px;
    padding: 7px 14px;
    border: 1px solid #e6c7b8;
    border-radius: 8px;
    background: #fff7f2;
    color: #b45309;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all .18s ease;
}
.report-user-btn:hover { border-color: #d35400; background: #fff1e6; }
.report-user-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(38, 27, 20, .48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility 0s linear .22s;
}
.report-user-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .22s ease;
}
.report-user-dialog {
    width: min(460px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #f0e0d2;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(50, 32, 20, .22);
    opacity: 0;
    transform: translateY(18px) scale(.97);
    transition: opacity .22s ease, transform .22s cubic-bezier(.2, .75, .25, 1);
}
.report-user-modal.show .report-user-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.report-user-head { display:flex; align-items:center; justify-content:space-between; padding:16px 18px 12px; border-bottom:1px solid #f3e8de; }
.report-user-head h3 { margin:0; color:#4a3c35; font-size:16px; }
.report-user-close { border:0; background:transparent; color:#9a8576; font-size:22px; line-height:1; cursor:pointer; }
.report-user-form { padding:14px 18px 18px; }
.report-user-tip { margin:0 0 10px; color:#7b6a5f; font-size:12.5px; }
.report-user-reasons { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:10px; }
.report-user-reasons label { display:flex; align-items:center; gap:6px; padding:8px 10px; border:1px solid #eadccf; border-radius:8px; color:#5a4a42; font-size:12.5px; cursor:pointer; }
.report-user-reasons input { accent-color:#e67e22; }
.report-user-form textarea { width:100%; box-sizing:border-box; padding:9px 10px; border:1px solid #e6d7c9; border-radius:8px; background:#fffdfb; color:#4d3d33; font-family:inherit; font-size:13px; resize:vertical; }
.report-user-form textarea:focus { outline:none; border-color:#e67e22; box-shadow:0 0 0 3px rgba(230,126,34,.12); }
.report-user-foot { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }

body.dark-mode .report-user-btn { background:#2a211b; border-color:#4a382b; color:#f0b27a; }
body.dark-mode .report-user-dialog { background:#202020; border-color:#383838; }
body.dark-mode .report-user-head { border-bottom-color:#383838; }
body.dark-mode .report-user-head h3 { color:#eee; }
body.dark-mode .report-user-tip { color:#aaa; }
body.dark-mode .report-user-reasons label { background:#262626; border-color:#3a3a3a; color:#ccc; }
body.dark-mode .report-user-form textarea { background:#181818; border-color:#3a3a3a; color:#ddd; }

@media (max-width: 520px) {
    .report-user-reasons { grid-template-columns: 1fr; }
}

/* 举报弹窗底部按钮 */
.report-user-foot .btn {
    appearance: none;
    padding: 8px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.report-user-foot .btn:active { transform: translateY(1px); }
.report-user-foot .btn-secondary {
    background: #fdf8f3;
    border-color: #e9dacd;
    color: #7b6557;
}
.report-user-foot .btn-secondary:hover {
    background: #fff2e6;
    border-color: #e2b98e;
    color: #b45309;
}
.report-user-foot .btn-primary {
    background: linear-gradient(135deg, #ee8a32, #e06f14);
    border-color: #e07a1f;
    color: #fff;
    box-shadow: 0 5px 14px rgba(224, 111, 20, .24);
}
.report-user-foot .btn-primary:hover {
    background: linear-gradient(135deg, #f39a45, #d9660f);
    border-color: #d9660f;
    box-shadow: 0 7px 18px rgba(224, 111, 20, .32);
    transform: translateY(-1px);
}

body.dark-mode .report-user-foot .btn-secondary {
    background: #2a2a2a;
    border-color: #414141;
    color: #ccc;
}
body.dark-mode .report-user-foot .btn-secondary:hover {
    background: #333;
    border-color: #7a5a3c;
    color: #f0b27a;
}
body.dark-mode .report-user-foot .btn-primary {
    background: linear-gradient(135deg, #e67e22, #cf6d12);
    border-color: #cf6d12;
    color: #fff;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .32);
}
body.dark-mode .report-user-foot .btn-primary:hover {
    background: linear-gradient(135deg, #f08a2b, #e67e22);
    border-color: #e67e22;
}

/* 官方认证：头像金边、金色 V、认证文字 */
.user-profile-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
}

.user-profile-avatar-wrap .user-profile-avatar {
    width: 100%;
    height: 100%;
    display: block;
}

.user-profile-avatar-wrap.is-verified .user-profile-avatar {
    border: 0;
    box-shadow:
        0 0 0 3px #fffdfb,
        0 0 0 5.5px #ffd24a,
        0 8px 22px rgba(255, 196, 40, 0.24);
}

.user-profile-v-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 23px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid #ffd24a;
    background: rgba(255, 253, 248, 0.94);
    color: #ffe082;
    line-height: 1;
    box-shadow: 0 0 9px rgba(255, 196, 40, 0.35), 0 3px 8px rgba(160, 120, 20, 0.18);
}

.user-profile-v-badge svg {
    width: 11px;
    height: 11px;
    display: block;
}

.user-profile-verification {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 7px;
    margin: 0 0 0.6rem;
    color: #ffd24a;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.5;
}

.user-profile-verification-text {
    color: #ffd24a;
    text-shadow: 0 0 10px rgba(255, 196, 40, 0.22);
}

.user-profile-verification-v {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: transparent;
    color: #ffe082;
    border: 1.5px solid rgba(255, 214, 82, 0.92);
    box-shadow: 0 0 9px rgba(255, 196, 40, 0.22);
}

.user-profile-verification-v svg {
    width: 11px;
    height: 11px;
    display: block;
}

body.dark-mode .user-profile-v-badge {
    background: rgba(32, 32, 32, 0.94);
    border-color: #ffd24a;
}

body.dark-mode .user-profile-avatar-wrap.is-verified .user-profile-avatar {
    box-shadow:
        0 0 0 3px #202020,
        0 0 0 5.5px #ffd24a,
        0 8px 22px rgba(255, 196, 40, 0.18);
}

body.dark-mode .user-profile-verification,
body.dark-mode .user-profile-verification-text {
    color: #ffd76a;
}

body.dark-mode .user-profile-verification-v {
    color: #ffe9a3;
    border-color: rgba(255, 224, 120, 0.85);
}
