@import "//cdn.xeonsky.com/fonts/index.css?v=2";

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #f8faff;
    font-family: "鸿蒙黑体", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 4px; /* 设置滚动条宽度 */
}

::-webkit-scrollbar-thumb {
    background-color: #80808080; /* 设置滚动条颜色 */
    border-radius: 4px; /* 设置滚动条边框半径 */
}

::-webkit-scrollbar-track {
    background-color: transparent; /* 设置滚动条轨道颜色 */
}

img {
    height: 100%;
}

.app {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main {
    flex: 1;
    overflow: hidden;
}

.main .content {
    width: 100%;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 8px;
    display: flex;
}

/* 左右分栏 */
.left {
    width: 400px;
    padding: 8px;
    overflow: hidden;
    flex-shrink: 0; /* 防止左侧被压缩 */
}

.right {
    flex: 1;
    padding: 8px;
    overflow: hidden;
    overflow-y: auto;
}

.navbar {
    user-select: none;
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 16px;
}

.navbar .logo {
    cursor: pointer;
    line-height: 38px;
    border-radius: 8px;
    font-weight: bold;
    font-style: italic;
    text-align: center;
    font-size: 20px;
    height: 38px;
    color: #004080;
    font-family: "阿里妈妈数黑体", serif;
    margin: 4px 8px;
    border: 1px solid transparent;
    transition: all 0.25s;
}

.navbar .space {
    flex: 1;
}

.navbar .user {
    height: 52px;
    line-height: 52px;
    text-align: center;
    margin: 0 8px;
    max-width: 80%;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
}

.navbar .user:hover {
    text-decoration: underline #0080ff;
}

.navbar .user_avatar {
    width: 52px;
    height: 52px;
    padding: 8px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
}

.navbar .user_avatar img {
    border-radius: 8px;
}

.navbar .user_name {
    height: 36px;
    cursor: pointer;
    font-size: 15px;
    line-height: 36px;
    margin: 8px 16px;
    text-align: right;

}

.navbar .login {
    width: 128px;
    height: 36px;
    margin: 8px 16px;
    padding: 2px;
    line-height: 32px;
    text-align: center;
    border-radius: 8px;
    background-color: #ffffff20;
    cursor: pointer;
    transition: background-color 0.2s;
}

.navbar .login:hover {
    background-color: #ffffff40;
}

.input-item {
    width: 100%;
    padding: 4px 8px;
    font-size: 14px;
    overflow: hidden;
}

.input-item.flex {
    display: flex;
}

form h1 {
    padding: 8px;
    margin: 8px 0;
    line-height: 32px;
    user-select: none;
    font-family: "阿里妈妈数黑体", serif;
}

form label {
    display: block;
    font-size: 15px;
    line-height: 24px;
    padding: 0 4px;
    user-select: none;
}

/* 输入框通用样式 */
input, textarea {
    display: block;
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #cccccccc;
    border-radius: 8px;
    outline: none;
    font-family: "鸿蒙黑体", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
}

input {
    height: 36px;
    line-height: 20px;
}

textarea {
    height: 144px;
    resize: none;
    line-height: 24px;
    border-radius: 12px;
}

/* 按钮与链接通用样式 */
button, a.btn {
    user-select: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    color: #2e2e2e;
    font-size: 15px;
    line-height: 20px;
    height: 36px;
    padding: 8px 16px;
    min-width: 100px;
    border: 1px solid #cccccccc;
    border-radius: 8px;
    background-color: #ffffff;
    outline: none;
    margin-right: 4px;
    transition: background-color 0.2s;
}

button:hover, a.btn:hover {
    background-color: #f8f8f8;
}

button.primary, a.btn.primary {
    color: #ffffff;
    background-color: #0080ff;
    border: 1px solid #20a0ff;
}

button.primary:hover, a.btn.primary:hover {
    background-color: #0060cc;
}

.right .message-item {
    margin-bottom: 8px;
    padding: 16px 24px;
    cursor: pointer;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.1s;
}

.right .message-item:hover {
    background-color: #f8fafa;
}

.right .message-item .message-title {
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    line-height: 32px;
    margin-top: 8px;
    padding: 8px 0;
    border-top: 1px solid #ddd;
}

.right .message-item .message-content {
    font-size: 15px;
    overflow: hidden;
    white-space: pre;
    padding-bottom: 8px;
    word-break: break-all;
    text-wrap: wrap;
    max-height: 400px;
    color: #3c3c3c;
}

.right .message-title span {
    font-size: 12px;
    color: #808080;
}

.right .message-user {
    display: flex;
    height: 52px;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-wrap: nowrap;
    user-select: none;

}

.right .message-user .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    margin: 4px 8px 4px 0;
    flex-shrink: 0;
}

.right .message-user .info {
    flex: 1;
    overflow: hidden;
}

.right .message-user .info .nickname {
    line-height: 20px;
    margin-top: 8px;
    font-size: 15px;
    font-weight: bold;
    overflow: hidden;
}

.right .message-user .info .time {
    line-height: 20px;
    font-size: 12px;
    color: #808080;
    overflow: hidden;
}


/* 管理员操作区 */
.message-admin {
    display: flex;
    padding: 8px 0;
}

.message-admin button {
    padding: 6px;
    min-width: 80px;
    height: 32px;
}

.user-card {
    padding: 4px 12px;
}

.my {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    height: min-content;
    max-height: 100%;
    overflow: auto;
}

.my form {
    width: 480px;
    padding: 16px;
    margin: 4px;
    border: 1px solid #ddd;
    background-color: #ffffff;
    border-radius: 12px;
    display: block;
}

.my form label {
    padding: 0px;
    margin: 0px;
    height: auto;
    line-height: 24px;
    display: block;
}

.my form input {
    display: block;
    margin: 8px 0px;
}

@media (max-width: 800px) {
    .main .content {
        height: 100%;
        display: block;
        overflow: hidden;
        overflow-y: auto;
    }

    .main .content .left {
        width: 100%;
    }
}

.mx600-flex {
    display: flex;
}

@media (max-width: 600px) {
    .mx600-flex {
        display: block;
    }
}