* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial;
    background: #f5f7fa;
    color: #222;
}

.container {
    max-width: 960px;
    margin: 40px auto;
}

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

h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.btn {
    background: #1677ff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn:hover {
    background: #135edc;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.card a {
    color: #1677ff;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.meta {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

label {
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.nav a {
    margin-left: 12px;
    color: #1677ff;
    text-decoration: none;
}

.nav a:hover {
    text-decoration: underline;
}

.form-box {
    max-width: 400px;
    margin: 80px auto;
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.form-box h1 {
    font-size: 20px;
    margin-top: 0;
}

.error {
    color: #d93026;
    font-size: 13px;
    margin-bottom: 12px;
}

.badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
}

.badge-top {
    background: #1677ff;
}

.badge-hot {
    background: #fa541c;
}

.badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
}

.badge-top {
    background: #1677ff;
}

.badge-hot {
    background: #fa541c;
}

/* 管理员紫色徽章 */
.badge-admin {
    background: #722ed1;
}

/* 原有样式保持不变... */

/* 用户头像 */
.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #1677ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
}

/* 帖子内图片 */
.post-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    margin: 16px 0;
}

/* 个人主页缩略图 */
.user-post-thumb {
    max-width: 120px;
    max-height: 80px;
    border-radius: 4px;
    object-fit: cover;
    margin-top: 8px;
}

.badge-level {
    background: linear-gradient(135deg,#1677ff,#52c41a);
    color:#fff;
    font-size:12px;
    padding:2px 8px;
    border-radius:10px;
    font-weight:bold;
}