:root {
    --primary-color: #06c;
    --hover-color: #005bb8;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e2e2e2;
    --bg-color: #f5f5f5;
    --card-bg: #fff;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

textarea {
    resize: vertical;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}


/** 内容状态按钮 **/
.status-btn {
    display: inline-block;
    padding: 2px 4px;
    font-size: 10px;
    color: #fff;
    background-color: #9E9E9E;
    border-radius: 4px;
    cursor: pointer;
}

/* 待审核状态 */
.status-btn.status-0 {
    background-color: #607d8b;
}

/* 正常显示状态 */
.status-btn.status-1 {
    background-color: #37a4fb;
}

.mona-form {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.moma-form-control {
    display: block;
    position: relative;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}


.moma-form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.mona-col-flex {
    display: flex;
    gap: 12px;
}

.mona-btn {
    cursor: pointer;
    user-select: none;
    position: relative;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 28px;
    color: #64748b;
    text-shadow: none;
    white-space: nowrap;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    outline: none;
    box-shadow: 0 1.8px 0 #e2e8f0, 0 1.8px 0 #f1f5f9;
    transition: color .25s, background-color .25s, box-shadow .25s;
}


.pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination .page-item {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}

.pagination .page-item.current {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination .page-item:hover:not(.disabled):not(.current) {
    background-color: #eee;
}

.pagination .page-item.disabled,
.pagination .page-item.ellipsis {
    color: #999;
    cursor: not-allowed;
}

.pagination .page-item.prev,
.pagination .page-item.next {
    min-width: 60px;
}


.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px 16px;
}

#container {
    min-height: 600px;
}

/* 顶部导航 */
header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    font-size: 20px;
    line-height: 28px;
    font-weight: bold;
    color: #1f2937;
}

.nav-links {
    display: flex;
    gap: 24px;
    margin: 0 30px;
}

.nav-links a {
    font-size: 14px;
    color: #4b5563;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #3b82f6;
}

.nav-space {
    flex: 1;
}

.nav-btn-group {
    display: flex;
    gap: 16px;
}

.nav-btn {
    color: #4b5563;
    font-size: 14px;
}

.nav-btn:hover {
    color: #3b82f6;
}

.nav-btn-primary {
    background-color: #3b82f6;
    color: white;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.nav-btn-primary:hover {
    background-color: #2563eb;
}


.banner {
    position: relative;
    background-color: #eee;
    background: linear-gradient(135deg, #667eea 0%, #3b82f6 100%);
    background-size: auto 100%;
    background-position: center;
    padding: 20px;
    text-align: left;
    color: #fff;
    text-shadow: 0 0 5px #666;
}
/* 渐变遮罩层 */
.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15);
}
.banner .container {
    position: relative;
    z-index: 1;
}
.banner h2 {
    font-size: 24px;
    margin-bottom: 10px;
    animation: fadeUp 0.6s ease-out;
}
.banner p {
    font-size: 16px;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.2s forwards;
}

/* 动画效果 */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 主内容区 */
main {
    padding: 20px 0;
}

.forum-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.tab-buttons {
    display: flex;
    gap: 10px;
}

.tab-btn {
    padding: 5px 12px;
    font-size: 14px;
    border-radius: 3px;
    color: #4b5563;
}

.tab-btn.active {
    background-color: #dbeafe;
    color: #2563eb;
}

.thread-count {
    font-size: 14px;
    color: var(--light-text);
}

.footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 16px 0;
    margin-top: 32px;
    font-size: 14px;
    text-align: center;
    color: #6b7280;
}

.footer a {
    color: #3b82f6;
}

.footer a:hover {
    color: #2563eb
}

/* 帖子列表 */
.thread-list {
    list-style: none;
}

.thread-item {
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.thread-content {
    padding: 12px 16px;
    transition: background-color 0.2s;
    cursor: pointer;
    display: flex;
    gap: 12px;
}

.thread-content:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.thread-details {
    flex: 1;
    min-width: 0;
}

.thread-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thread-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--light-text);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.meta-icon {
    width: 12px;
    height: 12px;
}

.meta-item .mona-icon {
    font-size: 12px;
}


/** 帖子样式 */
.post-main {
    padding: 15px 15px 0;
}

.post-header {
    font-size: 15px;
    line-height: 120%;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    overflow: auto;
    padding-bottom: 10px;
}

.post-avatar {
    display: block;
    float: right;
    width: 74px;
    height: 74px;
    border-radius: 4px;
}

.post-navi {
    font-size: 14px;
    display: inline-block;
    margin-bottom: 6px;
}

.post-navi,
.post-navi a {
    color: #1e293b;
    text-decoration: none;
}

.post-title {
    font-size: 22px;
    font-weight: bold;
    line-height: 150%;
    margin: 0 0 10px 0;
    padding: 0;
    line-break: anywhere;
}

.post-infos {
    color: #475569;
    font-size: 13px;
}

.post-rate {
    text-decoration: none;
    font-size: 10px;
    line-height: 1;
    padding: 0 6px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    color: #64748b;
    display: inline-block;
    vertical-align: baseline;
    text-align: center;
}

.post-rate:hover {
    box-shadow: 0 2px 2px #e2e8f0;
}

.post-content {
    font-size: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.post-actions {
    font-size: 14px;
    line-height: 120%;
    display: flex;
    flex-wrap: wrap;
    column-gap: 12px;
    align-items: center;
    padding: 8px 0;
    background: none;
}

.post-actions button {
    position: relative;
    background: transparent;
    color: #475569;
    font-size: 12px;
    line-height: 12px;
    padding: 5px;
}

.post-actions button:hover {
    color: #1e293b;
}

.post-actions button span,
.post-actions button i {
    position: relative;
    z-index: 1;
}

.post-actions button::before {
    content: "";
    position: absolute;
    /*z-index: -1;*/
    inset: 0 -5px;
    transform: scale(0.65);
    opacity: 0;
    background-color: #ebeff4;
    background-color: rgb(226 232 240 / 70%);
    border-radius: 5px;
    transition: background-color .15s, color .15s, transform .15s, opacity .15s;
}

.post-actions button:hover::before {
    transform: scale(1);
    opacity: 1;
}

/* 回复列表 */
.reply-list {
    list-style: none;
}

.reply-item {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
}

.reply-content {
    display: flex;
    gap: 12px;
}

.sub-reply {
    padding-top: 15px;
}

.sub-reply .reply-item {
    margin-left: 65px;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-right: 0;
    border-bottom: none;
    border-left: 2px solid #eee;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reply-main {
    flex: 1;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.reply-author {
    font-size: 14px;
    font-weight: 500;
}

.reply-time {
    font-size: 12px;
    color: var(--light-text);
}

.reply-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.reply-actions {
    display: flex;
    gap: 15px;
}

.reply-action {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--light-text);
}

/* 帖子回复框 */


/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .thread-title {
        font-size: 15px;
    }

    .thread-meta {
        gap: 10px;
    }
}