body {
    margin: 0;
    padding: 0;
    background: #fbfbfb;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    min-height: 100vh;
}
.forum-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #fff;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
    padding: 20px 0px;
}
.forum-back-btn {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
    display: inline-block;
    font-size: 16px;
    color: #4a6edb;
    text-decoration: none;
    background: #f0f4ff;
    border-radius: 6px;
    padding: 10px 14px;
    transition: background 0.2s;
    vertical-align: middle;
}
.forum-back-btn:hover {
    background: #dbe8ff;
    color: #1a3fa6;
}
.forum-header-main {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    font-size: 24px;
    font-weight: bold;
    color: #222;
    align-items: center;
}
.forum-desc {
    font-size: 13px;
    color: #888;
    font-weight: normal;
    margin-top: 2px;
}
.forum-wall {
    column-count: 3;
    column-gap: 32px;
    max-width: 1200px;
    margin: 40px auto 250px auto;
    padding: 0 20px;
}
.forum-card {
    display: block; /* 取消flex，防止高度撑满 */
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
    max-width: 400px;
    min-width: 260px;
    margin-bottom: 32px;
    break-inside: avoid; /* 防止卡片被拆分到两列 */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 5px #e1e1e1;
}
.forum-card-overflow-mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(0,0,0,0.50) 60%, #fff 100%);
    pointer-events: none;
    border-radius: 0 0 12px 12px;
}
.forum-user {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    margin-bottom: 6px;
}
.forum-time {
    color: #bbb;
    font-size: 12px;
    font-weight: normal;
    margin-left: 8px;
}
.forum-content {
    font-size: 15px;
    color: #222;
    margin-bottom: 16px;
    line-height: 1.6;
}
.forum-actions {
    display: flex;
    gap: 18px;
    color: #888;
    font-size: 15px;
    margin-bottom: 10px;
}
.forum-comments {
    position: relative;
    margin-top: 6px;
}
.forum-comment {
    background: #f9fafb;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
    line-height: 1.5;
}
.forum-comment b {
    color: #333;
}
.forum-comment b + span {
    color: #bbb;
    font-size: 12px;
    margin-left: 4px;
}
.forum-link{
    color: #444;
    font-size: 14px;
    margin: 5 12px;
    text-decoration: none;
}
/* .forum-comments-mask {
    position: relative;
    margin-top: -18px;
    padding-top: 24px;
    border-radius: 0 0 7px 7px;
    background: linear-gradient(to bottom, rgba(247,250,255,0) 0%, rgba(247,250,255,0.9) 60%, #f7faff 100%);
    text-align: center;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    z-index: 2;
} */
.forum-input-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 -2px 12px 0 rgba(0,0,0,0.04);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 32px 0;
    z-index: 10;
    border-radius: 36px 36px 0 0;
}
.forum-input-bar-inner {
    background: #fbfbfb;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 12px 18px 22px 18px;
    min-width: 700px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.1);
    position: relative;
}
.forum-input-bar label {
    color: #b0b0bc;
    font-size: 18px;
    margin-right: 18px;
    font-weight: 400;
}
.forum-input-bar input[type="text"] {
    flex: 1;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    background: #fff;
    color: #222;
    margin-right: 10px;
    transition: border 0.2s;
}
.forum-input-bar input[type="text"]::placeholder {
    color: #bbb;
    font-size: 16px;
}
.forum-input-bar .forum-input-btn {
    height: 38px;
    min-width: 38px;
    width: 38px;
    border-radius: 50%;
    border: none;
    background: #e6f0ff;
    color: #4a6edb;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.forum-input-bar .forum-input-btn:hover {
    background: #c8e0ff;
}
.forum-input-bar .forum-input-extra button:hover {
    background: #52525a;
    color: #fff;
}
.forum-input-limit {
    position: absolute;
    left: 18px;
    bottom: 4px;
    color: #bbb;
    font-size: 12px;
    user-select: none;
    margin: 0 8px;
}

/* 弹窗遮罩 */
.forum-modal-mask {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
}
/* 弹窗主体 */
.forum-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    z-index: 1001;
    width: 950px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.forum-modal-inner {
    width: 100%;
    padding: 32px 32px 24px 32px;
    position: relative;
    box-sizing: border-box;
}
.forum-modal-title {
    font-size: 20px;
    font-weight: bold;
    display: block;
}
.forum-modal-close {
    position: absolute;
    right: 18px; top: 18px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}
.forum-modal-body {
    margin-top: 28px;
}
.forum-modal-label {
    font-size: 15px;
    margin-bottom: 8px;
}
.forum-modal-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 18px;
    box-sizing: border-box;
    outline: none;
    transition: border 0.2s;
}
.forum-modal-input:focus {
    border-color: #4a6edb;
}
.forum-modal-input[readonly] {
    background: #f5f5f5;
    color: #888;
    cursor: not-allowed;
}
.forum-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}
.forum-modal-btn {
    padding: 8px 22px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background 0.2s, color 0.2s;
}
.forum-modal-btn-cancel {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
}
.forum-modal-btn-cancel:hover {
    background: #f5f5f5;
}
.forum-modal-btn-send {
    background: #222;
    color: #fff;
    border: none;
}
.forum-card-content{
    padding: 15px 10px;
    border-radius: 10px;
    background-color: #f9fafb;
}
.forum-card-comments-list{
    padding: 15px 0;
    max-height: 200px;
    overflow-y: auto;
}
.forum-card-comments-list .no-comments {
    text-align: center;
    color: #bbb;
    font-size: 14px;
}
.forum-modal-btn-send:hover {
    background: #444;
}
.forum-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #4a6edb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    user-select: none;
    box-shadow: 0 2px 8px rgba(74,110,219,0.08);
}
.forum-card-comments-title {
    text-align: left;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 10px 0 10px 0;
}
.forum-card-modal-user-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 5px;
}
.forum-card-modal-username {
    font-weight: bold;
    font-size: 16px;
}
.forum-card-modal-time {
    color: #bbb;
    font-size: 12px;
}
.forum-card-fence{
    width: 100%;
    height: 1px;
    background-color: #cfcfcf;
    margin: 10px 0;
}
.forum-card-comment-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
    padding: 0 2px 8px 2px;
}
.forum-card-comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e6f0ff;
    color: #4a6edb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    user-select: none;
    margin-top: 2px;
}
.forum-card-comment-input {
    flex: 1;
    min-height: 65px;
    max-height: 190px;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
    padding: 8px 14px;
    font-size: 15px;
    outline: none;
    background: #fff;
    color: #222;
    resize: vertical;
    transition: border 0.2s;
}
.forum-card-comment-input::placeholder {
    color: #bbb;
    font-size: 15px;
}
.forum-card-comment-btn {
    height: 38px;
    min-width: 90px;
    border-radius: 8px;
    border: none;
    background: #888;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin-left: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.forum-card-comment-btn:hover {
    background: #4a6edb;
}
