body.weibo-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('picture/张建强卧室.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'SimSun', 'Songti SC', serif;
    position: relative;
}

body.weibo-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

/* ========== 微书应用 ========== */

.weibo-app {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.weibo-header {
    position: relative;
    padding: 40px 20px 12px;
    text-align: center;
    border-bottom: 1px solid #222;
}

.back-btn-home {
    position: absolute;
    left: 16px;
    bottom: 12px;
    font-size: 20px;
    color: #e6edf3;
    cursor: pointer;
    transition: color 0.3s;
}

.back-btn-home:hover {
    color: #fff;
}

.weibo-title {
    font-size: 18px;
    color: #e6edf3;
    letter-spacing: 4px;
}

/* ========== 聊天列表 ========== */

.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-list::-webkit-scrollbar {
    display: none;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.avatar-wrap {
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    box-sizing: border-box;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-size: 15px;
    color: #e6edf3;
    margin-bottom: 4px;
}

.chat-preview {
    font-size: 13px;
    color: #8b949e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    font-size: 11px;
    color: #555;
    flex-shrink: 0;
    margin-left: 8px;
}

/* ========== 聊天详情页 ========== */

.chat-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.chat-detail-header {
    display: flex;
    align-items: center;
    padding: 40px 16px 12px;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}

.back-btn {
    font-size: 20px;
    color: #e6edf3;
    cursor: pointer;
    margin-right: 16px;
}

.chat-detail-name {
    font-size: 16px;
    color: #e6edf3;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.chat-date {
    text-align: center;
    font-size: 12px;
    color: #555;
    margin: 24px 0 16px;
}

.msg-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.row-left {
    flex-direction: row;
    justify-content: flex-start;
}

.row-right {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.msg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.row-left .msg-avatar {
    margin-right: 10px;
}

.row-right .msg-avatar {
    margin-left: 10px;
}

.msg-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.7;
    word-wrap: break-word;
}

.row-left .msg-bubble {
    background: #1a1a1a;
    color: #c9d1d9;
    border-radius: 4px 14px 14px 14px;
}

.row-right .msg-bubble {
    background: #2a3a2a;
    color: #c9d1d9;
    border-radius: 14px 4px 14px 14px;
}

.msg-name {
    font-size: 12px;
    color: #6ca0dc;
    margin-bottom: 6px;
}

.msg-text {
    font-size: 15px;
    line-height: 1.7;
}

/* ========== 底部输入栏 ========== */

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 16px;
    border-top: 1px solid #222;
    background: #000;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #555;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.chat-input::placeholder {
    color: #555;
}

.chat-option-btn {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid #8b949e;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.chat-option-btn:hover {
    border-color: #e6edf3;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* ========== 底部导航 ========== */

.weibo-nav {
    display: flex;
    border-top: 1px solid #222;
    padding: 12px 0 16px;
    background: #000;
}

.nav-item {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.nav-item.active {
    color: #e6edf3;
}

/* ========== 个人信息页 ========== */

.profile-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
}

.profile-content::-webkit-scrollbar {
    display: none;
}

.profile-top {
    text-align: center;
    padding: 20px 0 32px;
    border-bottom: 1px solid #1a1a1a;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 16px;
}

.profile-name {
    font-size: 20px;
    color: #e6edf3;
    margin-bottom: 8px;
}

.profile-id {
    font-size: 13px;
    color: #8b949e;
}

.profile-info {
    padding: 16px 0;
    border-bottom: 1px solid #1a1a1a;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #1a1a1a;
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    font-size: 14px;
    color: #8b949e;
    flex-shrink: 0;
    margin-right: 16px;
}

.profile-value {
    font-size: 14px;
    color: #c9d1d9;
    text-align: right;
}

.profile-action {
    padding: 32px 0;
    text-align: center;
}

.profile-btn {
    padding: 12px 48px;
    background: transparent;
    border: 1px solid #8b949e;
    border-radius: 10px;
    color: #e6edf3;
    font-size: 15px;
    letter-spacing: 2px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.profile-btn:hover {
    border-color: #e6edf3;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}