/* ===== 全局 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
    background: #f3f5f9;
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: #fff;
    width: 400px;
    max-width: 92vw;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 10px 40px rgba(30, 40, 70, .08);
}

h1 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}

.sub {
    text-align: center;
    color: #98a5b3;
    font-size: 13px;
    margin-bottom: 28px;
}

/* ===== 表单 ===== */
.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-size: 13px;
    color: #6b7a8c;
    margin-bottom: 6px;
}

.field label .opt { color: #a8b3bf; }

.field input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e1e6ee;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fafbfd;
}

.field input:focus {
    border-color: #4f7cff;
    box-shadow: 0 0 0 3px rgba(79, 124, 255, .12);
    background: #fff;
}

.hint {
    font-size: 12px;
    color: #98a5b3;
    margin-top: 5px;
    display: none;
}

.hint.show { display: block; color: #e67e22; }

button.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f7cff, #6a5cff);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: opacity .2s;
    margin-top: 6px;
}

button.btn:hover { opacity: .9; }

.foot {
    text-align: center;
    font-size: 13px;
    color: #98a5b3;
    margin-top: 22px;
}

.foot a { color: #4f7cff; text-decoration: none; }

/* ===== 提示条 ===== */
.alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
}

.alert.error { background: #fdecec; color: #d63031; }
.alert.success { background: #e8f8ef; color: #16a34a; }

/* ===== 个人中心 ===== */
.profile-card {
    width: 460px;
    max-width: 92vw;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(30, 40, 70, .08);
}

.profile-head {
    background: linear-gradient(135deg, #4f7cff, #6a5cff);
    padding: 44px 36px 56px;
    text-align: center;
    color: #fff;
}

.avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 600;
    border: 3px solid rgba(255, 255, 255, .5);
}

.profile-head .name { font-size: 20px; font-weight: 600; }

.profile-head .uid {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    background: rgba(255, 255, 255, .2);
    padding: 4px 14px;
    border-radius: 999px;
    letter-spacing: 1px;
}

.profile-body { padding: 0 36px 36px; }

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4px;
    border-bottom: 1px solid #f0f2f6;
    font-size: 14px;
}

.info-row:last-of-type { border-bottom: none; }

.info-row .k { color: #98a5b3; }
.info-row .v { color: #2c3e50; font-weight: 500; }
.info-row .v.empty { color: #c3ccd6; font-weight: 400; }

.logout-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 11px;
    text-align: center;
    border: 1px solid #e1e6ee;
    border-radius: 10px;
    color: #98a5b3;
    text-decoration: none;
    font-size: 14px;
    transition: all .2s;
}

.logout-btn:hover { border-color: #d63031; color: #d63031; }
