/* ========================================
 * Desktop Styles - 桌面版样式
 * 合并所有前台CSS文件，统一变量命名
 * 保持Discuz风格外观不变
 * ======================================== */

/* ===== 1. CSS 变量系统 - 统一为 --ft- 前缀 ===== */

:root {
    /* 核心配色 */
    --ft-primary: #1e7e34;
    --ft-primary-dark: #0a4220;
    --ft-primary-light: #3a9e44;

    /* 背景色 */
    --ft-bg-body: #f5f5f5;
    --ft-bg-white: #ffffff;
    --ft-bg-hover: #f9f9f9;
    --ft-bg-header: #ecfdf5;

    /* 边框色 */
    --ft-border: #cdcdcd;
    --ft-border-light: #e5e5e5;
    --ft-border-dark: #a7d7c9;
    --ft-border-hover: #b8b8b8;

    /* 文字色 */
    --ft-text-primary: #333333;
    --ft-text-secondary: #666666;
    --ft-text-muted: #999999;
    --ft-text-link: #1e7e34;
    --ft-text-link-hover: #0a4220;

    /* 功能色 */
    --ft-success: #3c9d40;
    --ft-warning: #ff9900;
    --ft-error: #ee1b2e;
    --ft-info: #0d5c2e;
    --ft-destructive: #dc2626;

    /* 字体 */
    --ft-font-family:
        "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Microsoft YaHei", sans-serif;
    --ft-font-serif: "Georgia", "Times New Roman", serif;
    --ft-font-size-xs: 11px;
    --ft-font-size-sm: 12px;
    --ft-font-size-base: 14px;
    --ft-font-size-lg: 16px;
    --ft-font-size-xl: 18px;

    /* 行高 */
    --ft-line-height-tight: 1.2;
    --ft-line-height-normal: 1.5;
    --ft-line-height-relaxed: 1.8;
    --ft-leading-normal: 1.5;
    --ft-leading-relaxed: 1.8;

    /* 圆角 */
    --ft-radius-sm: 2px;
    --ft-radius-md: 4px;
    --ft-radius-lg: 8px;
    --ft-radius-xl: 12px;
    --ft-radius-full: 9999px;

    /* 布局 */
    --ft-container-max: 1200px;
    --ft-header-height: 72px;

    /* 阴影 */
    --ft-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --ft-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --ft-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);

    /* 过渡 */
    --ft-transition-fast: 150ms ease;
    --ft-transition-normal: 200ms ease;
    --ft-transition-slow: 300ms ease;

    /* 消息页面变量 */
    --ft-card: #ffffff;
    --ft-card-hover: #f9f9f9;
    --ft-secondary: #e5e7eb;
    --ft-secondary-foreground: #374151;
    --ft-foreground: #1f2937;
    --ft-muted-foreground: #6b7280;
    --ft-muted: #f3f4f6;
    --ft-gray-50: #f9fafb;
    --ft-gray-100: #f3f4f6;
    --ft-primary-foreground: #ffffff;
    --ft-background: #f5f5f5;
    --ft-background-warm: #fef3c7;
    --ft-accent: #1e7e34;
}

/* ===== 2. 全局重置 ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
}

html {
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    line-height: 1.5;
}

body {
    font-family: var(--ft-font-family);
    font-size: var(--ft-font-size-base);
    line-height: var(--ft-line-height-normal);
    color: var(--ft-text-primary);
    background-color: var(--ft-bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 10px 0 20px 0;
}

/* ===== 3. 排版基础 ===== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 10px 0;
    font-weight: 400;
    line-height: 1.3;
    color: var(--ft-text-primary);
}

h1 {
    font-size: 24px;
}
h2 {
    font-size: 20px;
}
h3 {
    font-size: 18px;
}
h4 {
    font-size: 16px;
}

p {
    margin: 0 0 10px 0;
    line-height: var(--ft-line-height-relaxed);
}

a {
    color: var(--ft-text-link);
    text-decoration: none;
    transition: color var(--ft-transition-fast);
}

a:hover {
    color: var(--ft-text-link-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
}

caption,
th {
    text-align: left;
    font-weight: 400;
}

em,
cite,
i {
    font-style: normal;
}

label {
    cursor: pointer;
}

/* ===== 4. 表单元素基础 ===== */

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea,
select {
    padding: 6px 10px;
    border: 1px solid var(--ft-border);
    background-color: #f0fdf4;
    border-radius: var(--ft-radius-sm);
    outline: none;
    transition: border-color var(--ft-transition-fast);
    font-size: var(--ft-font-size-base);
    font-family: var(--ft-font-family);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: var(--ft-primary);
}

button {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    margin-right: 3px;
    padding: 0 15px;
    height: 28px;
    border: 1px solid #999;
    /* background: #E5E5E5; */
    cursor: pointer;
    line-height: 26px;
    font-size: 12px;
    border-radius: var(--ft-radius-sm);
    transition: all var(--ft-transition-fast);
}

button:hover {
    background: #d5d5d5;
}

/* ===== 5. 容器布局 ===== */

.wp {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

/* 引用块样式 */
blockquote {
    border-left: 4px solid #1e7e34;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #4b5563;
}

#wp {
    min-height: 400px;
}

/* ===== 6. 工具类 ===== */

.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

/* Utility classes */
.hidden {
    display: none;
}
.auth-field.hidden {
    display: none;
}
.visible {
    display: block;
}
.none {
    display: none;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.cl:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.cl {
    clear: both;
    zoom: 1;
}

.mt-10 {
    margin-top: 10px;
}
.mb-10 {
    margin-bottom: 10px;
}
.ml-10 {
    margin-left: 10px;
}
.mr-10 {
    margin-right: 10px;
}

.p-10 {
    padding: 10px;
}
.p-15 {
    padding: 15px;
}
.p-20 {
    padding: 20px;
}

/* 工具类 */
.z {
    float: left;
}
.y {
    float: right;
}
.vm {
    vertical-align: middle;
}
.vam {
    vertical-align: middle;
}
.pn {
    padding: 0;
}
.pnc {
    cursor: pointer;
}
.xi1 {
    font-size: 14px;
    color: #f00;
    font-weight: 400;
}
.xi2 {
    font-size: 12px;
}

/* 用户资料页面标题字号 */
.u_recent .xi2 {
    font-size: 14px;
}

/* 管理页面返回按钮样式 */
a.admin-back-link.xi2 {
    font-size: 12px;
    color: #1e7e34;
    text-decoration: none;
}

a.admin-back-link:hover {
    text-decoration: underline;
}

/* 咨询单编辑按钮统一样式 */
.edit-action-btn {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    background: #e5e7eb;
    color: #374151;
}

.edit-action-primary {
    background: #8b6914;
    color: white;
}

.edit-action-danger {
    background: #983535;
    color: white;
}

.xg1 {
    font-size: 12px;
    color: #999;
}

/* 桌面端隐藏移动端元信息 */
.mobile-meta-info {
    display: none;
}

/* ===== 内联字号样式提取 ===== */

/* 咨询单页面 */
.consult-unread-badge {
    font-size: 12px;
    color: #f00;
    margin-left: 8px;
}
.consult-form-button {
    font-size: 14px;
    height: auto;
    line-height: normal;
    padding: 8px 18px;
}
.consult-form-submit {
    font-size: 14px;
    height: auto;
    line-height: normal;
    padding: 8px 20px;
}
.consult-form-cancel {
    font-size: 14px;
    height: auto;
    line-height: normal;
    padding: 8px 18px;
}

/* 用户资料页面 */
.user-profile-date {
    font-size: 12px;
    color: #999;
    display: block;
}

/* 主题详情页面 */
.topic-edit-button {
    font-size: 12px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
}
.topic-post-number {
    font-size: 8px;
    color: #999;
    text-decoration: none;
}
.topic-edit-textarea {
    font-size: 14px;
    line-height: 1.5;
    font-family: inherit;
}
.topic-edit-button-small {
    font-size: 14px;
    font-weight: 400;
}
.reply-edit-button {
    font-size: 12px;
    color: #666;
    border: none;
    background: none;
    cursor: pointer;
}
.reply-post-number {
    font-size: 8px;
    color: #999;
    text-decoration: none;
}
.reply-edit-textarea {
    font-size: 14px;
    line-height: 1.5;
    font-family: inherit;
}
.reply-edit-button-small {
    font-size: 14px;
    font-weight: 400;
}

.edit-reply-mobile {
    display: none;
}

.mtn {
    margin-top: 5px;
}
.mbn {
    margin-bottom: 5px;
}
.mtm {
    margin-top: 10px;
}
.mbm {
    margin-bottom: 10px;
}
.mtw {
    margin-top: 20px;
}
.mbw {
    margin-bottom: 20px;
}
.ptn {
    padding-top: 5px;
}
.pbn {
    padding-bottom: 5px;
}
.ptm {
    padding-top: 10px;
}
.pbm {
    padding-bottom: 10px;
}

.bbda {
    border-bottom: 1px dashed #cdcdcd;
}
.bw0 {
    border: none;
}

/* ===== 7. 页面加载动画 ===== */

.page-loading {
    position: fixed;
    inset: 0;
    background-color: var(--ft-bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.page-loading.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-222 {
    color: #0d5c2e;
    width: fit-content;
    padding-bottom: 5px;
    font-weight: 400;
    font-family: monospace;
    font-size: 14px;
    overflow: hidden;
    color: #0000;
    text-shadow:
        0 0 0 #0d5c2e,
        10ch 0 0 #0d5c2e;
    background: linear-gradient(#9a6608 0 0) bottom left/0% 3px no-repeat;
    animation: loading-222 1.5s infinite;
}

.loading-222:before {
    content: "载入中...";
}

@keyframes loading-222 {
    80% {
        text-shadow:
            0 0 0 #0d5c2e,
            10ch 0 0 #0d5c2e;
        background-size: 100% 3px;
    }
    100% {
        text-shadow:
            -10ch 0 0 #0d5c2e,
            0 0 0 #0d5c2e;
    }
}

/* ===== 8. 编辑器相关 ===== */

.editor-height-300 {
    height: 300px;
}
.editor-height-400 {
    height: 400px;
}
.editor-min-height-150 {
    min-height: 150px;
}

/* ===== 9. 图片预览 ===== */

.image-preview {
    width: 100px;
    height: 100px;
    border-radius: var(--ft-radius-md);
    object-fit: cover;
    border: 1px solid var(--ft-border);
}

/* 明确指定需要限制为小尺寸的元素 */
.fl_icn img,
.avt img,
.avatar img,
.user-avatar img,
.icon,
.ico,
button img,
.btn img,
.nav img,
.xl img,
.tl img,
svg:not(.logo-img),
i:not(.logo-img) {
    max-width: 48px;
    max-height: 48px;
}

/* 发帖按钮图片不受限制 */
.y img,
.post-btn img {
    max-width: none;
    max-height: none;
    height: 33px;
}

/* ===== 10. 头像样式 ===== */

.avt img {
    padding: 2px;
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    background: #fff;
    border: 1px solid #cdcdcd;
    border-radius: 5px;
    box-sizing: border-box;
}

.avtm img {
    width: 120px;
    height: auto;
    max-width: 120px;
}

.avts img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    vertical-align: middle;
}

.avt {
    display: inline-block;
}

/* ===== 11. 模态框样式 ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-overlay[style*="display: flex"] {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-overlay > div {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

#topicSettingsModal > div {
    max-width: 400px;
    width: 400px;
}

#topicSettingsModal {
    max-width: none;
}

/* ===== 12. 顶部工具栏 ===== */

#toptb {
    background: #f2f2f2;
    border-bottom: 1px solid #cdcdcd;
    line-height: 28px;
    font-size: 12px;
}
#toptb a {
    color: #666;
}
#toptb a:hover {
    color: #333;
}

/* ===== 13. 头部 ===== */

#hd {
    background: #fff;
}
.hdc {
    padding-top: 10px;
}
.hdc h2 {
    float: left;
}
.hdc h2 a {
    font-size: 24px;
    font-weight: 400;
    color: #0a4220;
}

/* ===== 14. 主导航 ===== */

#nv {
    background: #b8860b;
    height: 40px;
    line-height: 40px;
}
#nv a {
    float: left;
    padding: 0 20px;
    color: #fff;
    font-size: 14px;
}
#nv a:hover,
#nv a.a {
    background: #8b6914;
    text-decoration: none;
}
#nv #search-btn {
    float: right;
    padding: 0 20px;
}

.breadcrumb {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.breadcrumb-container {
    margin: 10px 0;
}

.breadcrumb-item {
    display: inline-block;
}

.breadcrumb-separator {
    margin: 0 8px;
}

.breadcrumb-link {
    color: #1e7e34;
    text-decoration: none;
}

/* ===== 40. 认证页面样式 ===== */

.auth-status {
    color: #9ca3af;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
}

.logo-img {
    text-align: center;
}

.logo-img img {
    max-width: 180px;
    height: auto;
}

.auth-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.auth-title {
    text-align: center;
    color: #1f2937;
    margin: 0 0 28px 0;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 1px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 13px;
    font-weight: 400;
    color: #374151;
}

.auth-input-wrapper {
    position: relative;
    background: #f0fdf4;
    border-radius: 8px;
}

.auth-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: transparent;
}

@keyframes autofill-fix {
    0%,
    100% {
        background-color: #f0fdf4;
    }
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-internal-autofill-selected {
    background-color: #f0fdf4 !important;
    -webkit-box-shadow: 0 0 0 30px #f0fdf4 inset !important;
    -webkit-text-fill-color: #374151 !important;
    transition: background-color 5000s ease-in-out 0s !important;
    animation: autofill-fix 0s 1s forwards;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-internal-autofill-selected {
    background-color: #f0fdf4 !important;
    -webkit-box-shadow: 0 0 0 30px #f0fdf4 inset !important;
    -webkit-text-fill-color: #374151 !important;
    transition: background-color 5000s ease-in-out 0s !important;
    animation: autofill-fix 0s 1s forwards;
}

.auth-input:focus {
    border-color: #1e7e34;
    box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.12);
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-field-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.auth-input-flex {
    flex: 1;
    min-width: 0;
}

.auth-status-error {
    color: #ee1b2e;
}

.auth-status-ok {
    color: #3c9d40;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
}

.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1e7e34;
    cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: #1e7e34;
}

.auth-link {
    color: #1e7e34;
    text-decoration: none;
    font-size: 13px;
}

.auth-link:hover {
    text-decoration: underline;
    color: #0a4220;
}

.auth-btn {
    height: 44px;
    padding: 0 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.auth-btn-primary {
    background: #b8860b;
    color: #fff;
    width: 100%;
}

.auth-btn-primary:hover:not(:disabled) {
    background: #8b6914;
}

.auth-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    flex-shrink: 0;
}

.auth-btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

.auth-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* ===== 41. Profile页面样式 ===== */

.card {
    background: #fff;
    border: 1px solid #cdcdcd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.card-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 400;
}

.card-body {
    padding: 15px;
}

.card-header-primary {
    background: #ecfdf5;
    border-bottom: 2px solid #296eb4;
}

.card-title {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin: 0;
}

.card-action {
    color: #1e7e34;
    text-decoration: none;
    transition: color 0.2s;
}

.card-action:hover {
    color: #0a4220;
}

.profile-username {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin: 0 0 8px 0;
}

.profile-info {
    color: #666;
    font-size: 13px;
    margin: 0 0 4px 0;
}

.profile-group {
    color: #666;
    font-size: 13px;
    margin: 0 0 16px 0;
}

.mt-6 {
    margin-top: 24px;
}

.max-w-md {
    max-width: 448px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.inline {
    display: inline;
}

.auth-input-full {
    width: 98%;
}

/* Register页面特殊样式 */
.auth-card table th {
    text-align: right;
    width: 80px;
    padding-right: 15px;
}

.auth-title-register {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 400;
    border-bottom: 2px solid #296eb4;
    padding-bottom: 15px;
}

/* ===== 42. Config页面样式 ===== */

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: 400;
    margin-bottom: 8px;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.form-control:focus {
    border-color: #1e7e34;
    outline: none;
}

.alert-box {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.alert-box-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
}

.alert-box-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
}

.alert-box-title-warning {
    color: #92400e;
}

.alert-box-list {
    list-style-type: disc;
    padding-left: 20px;
}

.alert-box-list li {
    margin-bottom: 4px;
}

.alert-box-note {
    margin-top: 8px;
    font-size: 13px;
}

.alert-box-note-warning {
    color: #92400e;
}

.mb-4 {
    margin-bottom: 16px;
}

.space-x-2 > * + * {
    margin-left: 8px;
}

.space-y-1 > * + * {
    margin-top: 4px;
}

.rows-10 {
    min-height: 240px;
}

.justify-end {
    justify-content: flex-end;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    font-weight: 400;
    background: #f9fafb;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 24px;
    max-width: 672px;
    width: 100%;
    margin: 16px;
}

.text-gray-600 {
    color: #6b7280;
}

/* ===== 43. Consult页面样式 ===== */

.space-y-4 > * + * {
    margin-top: 16px;
}

.bg-blue-50 {
    background: #ecfdf5;
}

.text-red-500 {
    color: #ef4444;
}

.px-3 {
    padding-left: 12px;
    padding-right: 12px;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.rounded-lg {
    border-radius: 8px;
}

.w-full {
    width: 100%;
}

.block {
    display: block;
}

.text-sm {
    font-size: 14px;
}

.font-medium {
    font-weight: 400;
}

.text-gray-700 {
    color: #374151;
}

.mb-2 {
    margin-bottom: 8px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-4 {
    gap: 16px;
}

.inline-flex {
    display: inline-flex;
}

.bg-blue-600 {
    background: #8b6914;
}

.text-white {
    color: #fff;
}

.hover\:bg-blue-700:hover {
    background: #8b6914;
}

.transition-colors {
    transition: background-color 0.2s;
}

.cursor-pointer {
    cursor: pointer;
}

.mt-2 {
    margin-top: 8px;
}

.gap-3 {
    gap: 12px;
}

.pt-4 {
    padding-top: 16px;
}

.px-6 {
    padding-left: 24px;
    padding-right: 24px;
}

.bg-gray-200 {
    background: #e5e7eb;
}

.hover\:bg-gray-300:hover {
    background: #d1d5db;
}

.ml-2 {
    margin-left: 8px;
}

.p-4 {
    padding: 16px;
}

.image-thumbnail-container {
    position: relative;
    display: inline-block;
}

.image-thumbnail {
    max-width: 150px;
    max-height: 150px;
    border: 1px solid #c2d5e3;
    border-radius: 4px;
}

.image-delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background-color: #f00;
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ===== 44. Consult Index页面样式 ===== */

/* 未读消息背景色 */
.unread {
    background-color: #ffffe0;
}

.bg-gray-50 {
    background-color: #f9f9f9;
}

.renew-btn {
    font-size: 12px;
}

.position-relative {
    position: relative;
}

.width-100 {
    width: 100%;
}

.expired-label {
    margin-left: 10px;
    color: #999;
    font-size: 11px;
}

.renew-btn-margin {
    margin-left: 10px;
}

.empty-state-padding {
    padding: 60px 20px;
    text-align: center;
}

.empty-state-title {
    font-size: 14px;
    margin-bottom: 10px;
}

.empty-state-icon {
    vertical-align: middle;
    margin-right: 8px;
}

.empty-state-link {
    font-size: 12px;
}

/* ===== 45. Consult Edit页面样式 ===== */

.mtm {
    margin-top: 10px;
}

.mr5 {
    margin-right: 5px;
}

.pipe {
    padding: 0 6px;
    color: #cdcdcd;
}

.field-note {
    padding: 15px;
    background: #f5f8fa;
    border: 1px solid #c2d5e3;
    margin-bottom: 10px;
}

.input-width-98 {
    width: 98%;
}

.radio-line-height {
    line-height: 28px;
}

.radio-label-margin {
    margin-right: 20px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    line-height: 24px;
}

.image-list-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.delete-btn-red {
    background-color: #f00;
}

/* ===== 46. Consult Trash页面样式 ===== */

.text-2xl {
    font-size: 24px;
}

.font-semibold {
    font-weight: 400;
}

.text-gray-900 {
    color: #111827;
}

.bg-white {
    background: #fff;
}

.rounded-xl {
    border-radius: 12px;
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.py-12 {
    padding-top: 48px;
    padding-bottom: 48px;
}

.h-12 {
    height: 48px;
}

.w-12 {
    width: 48px;
}

.text-gray-400 {
    color: #9ca3af;
}

.divide-y > * + * {
    border-top: 1px solid #e5e7eb;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1;
}

.min-w-0 {
    min-width: 0;
}

.h-8 {
    height: 32px;
}

.w-8 {
    width: 32px;
}

.rounded-full {
    border-radius: 9999px;
}

.bg-gray-100 {
    background: #f3f4f6;
}

.shrink-0 {
    flex-shrink: 0;
}

.text-blue-600 {
    color: #1e7e34;
}

.hover\:text-blue-800:hover {
    color: #0a4220;
}

.inline-flex {
    display: inline-flex;
}

.py-1 {
    padding-top: 4px;
    padding-bottom: 4px;
}

.text-blue-700 {
    color: #0a4220;
}

.bg-blue-50 {
    background: #ecfdf5;
}

.hover\:bg-blue-100:hover {
    background: #ecfdf5;
}

.mr-1 {
    margin-right: 4px;
}

.text-red-700 {
    color: #b91c1c;
}

.bg-red-50 {
    background: #fef2f2;
}

.hover\:bg-red-100:hover {
    background: #fee2e2;
}

.p-6 {
    padding: 24px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.px-2 {
    padding-left: 8px;
    padding-right: 8px;
}

.bg-primary {
    background: #b8860b;
}

.border {
    border-width: 1px;
    border-style: solid;
}

/* ===== 47. Forum页面样式 ===== */

.forum-description {
    font-size: 12px;
}

.forum-moderator {
    font-size: 12px;
}

.forum-stats {
    font-size: 12px;
    color: #333;
}

.forum-stats-divider {
    font-size: 12px;
}

.forum-lastpost {
    font-size: 12px;
}

.empty-forum-section {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* ===== 48. Forum New Topic页面样式 ===== */

/* 标题样式 */
.mt {
    font-size: 16px;
    font-weight: 400;
    margin: 15px 0 10px 0;
    padding: 10px 15px;
    background: #f9f9f9;
    border-bottom: 1px solid #c2d5e3;
    color: #333;
}

/* 表单表格 */
.tfm {
    width: 100%;
}

.tfm th {
    width: 80px;
    text-align: right;
    vertical-align: top;
    padding: 12px 10px 12px 20px;
    font-weight: 400;
    color: #333;
    white-space: nowrap;
    line-height: 24px;
}

.tfm td {
    padding: 8px 0;
    vertical-align: top;
    line-height: 24px;
}

/* 输入框样式 */
.px {
    border: 1px solid #cdcdcd;
    padding: 6px 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 2px;
}

.px:focus {
    border-color: #1e7e34;
    box-shadow: 0 0 3px rgba(30, 126, 52, 0.2);
}

/* 提示文字 */

/* 间距 */
.ptn {
    padding-top: 10px;
}

.pbn {
    padding-bottom: 10px;
}

/* Quill 编辑器定制 - 覆盖第三方库样式 */
.ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid #cdcdcd;
    padding: 8px;
}

.ql-toolbar.ql-snow button {
    padding: 4px;
    min-height: auto;
    height: 28px;
    width: 28px;
    border: none;
    background: transparent;
    border-radius: 4px;
}

.ql-toolbar.ql-snow .ql-picker {
    height: 28px;
    border: none;
    width: auto;
}

.ql-toolbar.ql-snow .ql-picker-label {
    height: 28px;
    line-height: 28px;
    padding: 0 4px;
    border: none;
    display: flex;
    align-items: center;
}

.ql-toolbar.ql-snow .ql-picker-label svg {
    width: 18px;
    height: 18px;
    margin-right: 2px;
    vertical-align: middle;
}

.ql-toolbar.ql-snow .ql-picker.ql-header {
    width: 70px;
}

.ql-toolbar.ql-snow .ql-formats {
    margin-right: 8px;
}

.ql-toolbar.ql-snow .ql-formats:last-child {
    margin-right: 0;
}

.ql-container.ql-snow {
    border: none;
    font-family: inherit;
    font-size: 14px;
}

.ql-editor {
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
}

.ql-editor.ql-blank::before {
    color: #999999;
    font-style: normal;
}

.ql-toolbar button:hover,
.ql-toolbar button:focus,
.ql-toolbar button.ql-active,
.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow .ql-picker-label.ql-active {
    color: #1e7e34;
}

.ql-toolbar.ql-snow button.ql-active svg,
.ql-toolbar.ql-snow button:hover svg {
    fill: #296eb4;
    stroke: #296eb4;
}

.editor-container {
    border: 1px solid #cdcdcd;
    background-color: #ffffff;
}

.editor-content {
    min-height: 400px;
}

.subject-input {
    width: 100%;
    height: 40px;
    padding: 8px;
}

/* ===== 49. Layout页面样式 ===== */

.logo-img,
.logo img,
.logo {
    max-width: none;
    max-height: none;
    width: auto;
    height: 60px;
    padding-left: 7px;
}

.fl_icn img,
.avt img,
.avatar img,
.user-avatar img,
.icon,
.ico,
button img,
.btn img,
.nav img,
.xl img,
.tl img,
svg:not(.logo-img),
i:not(.logo-img) {
    max-width: 48px;
    max-height: 48px;
}

.y img,
.post-btn img {
    max-width: none;
    max-height: none;
    height: 33px;
}

.mobile-logo-padding {
    padding: 10px 0 10px 10px;
}

.logo-img-style {
    margin-left: 1em;
}

.wp-no-padding {
    padding-left: 0;
    padding-right: 0;
}

.footer-center {
    text-align: center;
    padding: 20px 0;
}

/* 容器最大宽度 */
.wp-max-width {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

/* ===== 50. Search页面样式 ===== */

.search-input-width {
    width: 100%;
}

.search-label-margin {
    margin-right: 10px;
}

.search-no-results {
    padding: 40px;
    text-align: center;
}

.search-icon-margin {
    margin-bottom: 10px;
}

/* ===== 51. Messages页面样式 ===== */

.message-list {
    border-top: 1px solid #f2f2f2;
    background: #fff;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item.unread {
    background-color: #ffffe0;
}

.message-item:hover {
    background-color: var(--ft-card-hover);
}

.message-title {
    font-size: 14px;
    font-weight: 400;
    color: #999;
    text-decoration: none;
}

.message-title:hover {
    color: #666;
}

.message-username-bold {
    font-weight: 400;
}

.unread-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background-color: #f00;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
}

.message-content-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.message-content-row .message-preview {
    flex: 1;
    margin-bottom: 0;
}

.messages-no-results {
    padding: 40px;
    text-align: center;
}

.messages-icon-margin {
    margin-bottom: 10px;
}

.message-img {
    border: 1px solid #c2d5e3;
    border-radius: 4px;
}

/* ===== 52. Messages View页面样式 ===== */

.messages-view-border {
    border: 1px solid #ccc;
}

.messages-container-padding {
    padding: 12px 16px;
}

.my-message {
    background-color: white;
}

.messageform {
    margin: 0.5em 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

/* 移动端标题容器样式 */
@media (max-width: 768px) {
    .mb-4 {
        margin-bottom: 1rem;
        border-bottom: 1px solid #ccc;
        padding-bottom: 0.5rem;
    }
}

.max-h-60vh {
    max-height: 60vh;
}

.max-h-600px {
    max-height: 600px;
}

.overflow-y-auto {
    overflow-y: auto;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.text-lg {
    font-size: 1.125rem;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p-3 {
    padding: 0.75rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.text-gray-500 {
    color: #6b7280;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.justify-end {
    justify-content: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.max-w-80 {
    max-width: 20rem;
}

.max-w-70 {
    max-width: 70%;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.rounded {
    border-radius: 0.25rem;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-secondary {
    background-color: #f0f4ff;
}

.leading-relaxed {
    line-height: 1.625;
}

.break-words {
    overflow-wrap: break-word;
}

.resize-none {
    resize: none;
}

.ml-auto {
    margin-left: auto;
}

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

.hover\:text-primary:hover {
    color: #1e7e34;
}

.mt-1 {
    margin-top: 0.25rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.expired-input {
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
}

.bg-green-500 {
    background-color: #10b981;
}

.hover\:bg-green-600:hover {
    background-color: #059669;
}

.bg-blue-500 {
    background-color: #b8860b;
}

.hover\:bg-blue-600:hover {
    background-color: #8b6914;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.fixed {
    position: fixed;
}

.inset-0 {
    inset: 0;
}

.bg-black {
    background-color: #000;
}

.bg-opacity-80 {
    opacity: 0.8;
}

.z-50 {
    z-index: 50;
}

.object-contain {
    object-fit: contain;
}

.max-w-full {
    max-width: 100%;
}

.max-h-full {
    max-height: 100%;
}

/* ===== 53. Yaofang Selector页面样式 ===== */

.text-md {
    font-size: 1rem;
}

.text-gray-800 {
    color: #1f2937;
}

.mt-5 {
    margin-top: 1.25rem;
}

.preview-pre-wrap {
    white-space: pre-wrap;
}

/* ===== 54. Admin Users页面样式 ===== */

.admin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 8px;
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 400;
    color: #111827;
    margin: 0 0 4px 0;
}

.card {
    background: #fff;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.search-section {
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafbfc;
}

.search-form {
    margin-top: 12px;
}

.form-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    color: #374151;
    background: #fff;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1e7e34;
    box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-select {
    width: 100%;
    height: 42px;
    padding: 0 32px 0 14px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    color: #374151;
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: #1e7e34;
    box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    border: none;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #b8860b;
    color: #fff;
    border: none;
    font-weight: 400;
}

.btn-primary:hover {
    background: #8b6914;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 126, 52, 0.25);
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    border: none;
    font-weight: 400;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    font-weight: 400;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-cancel {
    background: #e5e7eb;
    color: #374151;
    border: none;
    font-weight: 400;
}

.btn-cancel:hover {
    background: #d1d5db;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.text-primary {
    color: #1e7e34;
}
.text-primary-dark {
    color: #0a4220;
}
.text-link {
    color: #0d5c2e;
}
.text-gray-600 {
    color: #666;
}
.text-gray-500 {
    color: #999;
}
.text-gray-400 {
    color: #a3a3a3;
}
.text-gray-300 {
    color: #9ca3af;
}
.text-red {
    color: #dc2626;
}
.text-dark {
    color: #1f2937;
}
.text-muted {
    color: #6b7280;
}

.btn-upload {
    background-color: var(--ft-primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.btn-upload:hover {
    background-color: var(--ft-primary-dark);
}

.btn-submit {
    background-color: var(--ft-primary);
    color: white;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: var(--ft-primary-dark);
}

.editor-container {
    border: 1px solid #cdcdcd;
    background-color: #fff;
}
.quill-editor-container {
    border: 1px solid #cdcdcd;
    background-color: #fff;
}

.color-option-red {
    color: #ee1b2e;
}
.color-option-blue {
    color: #1e8a5e;
}
.color-option-green {
    color: #3c9d40;
}
.color-option-default {
    color: #333333;
}

.attach-item {
    position: relative;
    display: inline-flex;
    margin: 0 5px;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    vertical-align: top;
}
.attach-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #ddd;
}
.delete-attach-btn-image {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
}
.attach-item-file {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 5px;
    padding: 5px 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    font-size: 12px;
}
.delete-attach-btn-file {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #999;
}

.drag-handle {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: move;
}
.forum-item {
    padding: 0.375rem 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}
.forum-item.bg-gray-100 {
    background: #f9fafb;
}
.hidden-tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.0625rem 0.125rem;
    font-size: 0.7rem;
    border-radius: 9999px;
}

.recipe-info-container {
    flex: 1;
    margin-left: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.375rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.category-item:hover {
    background-color: #f9f9f9;
}
.category-name {
    flex: 1;
    color: #1f2937;
    font-size: 14px;
}
.yaofang-count {
    flex-shrink: 0;
    color: #6b7280;
    font-size: 12px;
    margin-right: 0.5rem;
}
.enter-btn {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border: none;
    background: none;
    transition: all 0.2s;
}

.recipe-item {
    display: flex;
    align-items: center;
    padding: 0.375rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.recipe-item:hover {
    background-color: #f9f9f9;
}
.recipe-name {
    flex: 1;
    color: #1f2937;
    font-size: 14px;
}
.recipe-status-tag {
    padding: 0.0625rem 0.125rem;
    font-size: 0.7rem;
    line-height: 0.8em;
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
}
.recipe-status-active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.recipe-status-inactive {
    background: #f3f4f6;
    color: #4b5563;
}
.recipe-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #374151;
    font-size: 0.875rem;
}

.quick-reply-link {
    color: #1e7e34 !important;
    text-decoration: none;
    cursor: pointer;
    margin: 0 10px;
}
.quick-reply-link:first-child {
    margin-right: 10px;
    margin-left: 0;
}
.quick-reply-link:last-child {
    margin-left: 10px;
    margin-right: 0;
}

.breadcrumb-link {
    color: #1e7e34;
    text-decoration: none;
}
.breadcrumb-link:hover {
    color: #0a4220;
}

.auth-success-title {
    margin-bottom: 8px;
    color: #111;
    font-size: 17px;
    font-weight: 400;
}
.auth-success-message {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 4px;
}
.auth-success-note {
    color: #9ca3af;
    font-size: 12px;
}
.auth-link {
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.user-list {
    padding: 16px;
}

.user-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.user-card:last-child {
    margin-bottom: 0;
}

.user-card:hover {
    border-color: #1e7e34;
    box-shadow: 0 4px 12px rgba(30, 126, 52, 0.08);
    transform: translateY(-2px);
}

.user-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 18px;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 16px;
    font-weight: 400;
    color: #111827;
    text-decoration: none;
}

.online-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #10b981;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 400;
}

.badge-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.user-dates {
    display: flex;
    gap: 12px;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f9fafb;
    font-size: 12px;
    color: #6b7280;
}

.consult-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f9fafb;
    font-size: 13px;
    color: #1e7e34;
    text-decoration: none;
    transition: all 0.2s ease;
}

.consult-link:hover {
    background: #ecfdf5;
    color: #0a4220;
}

.consult-link .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-actions {
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.user-card:hover .user-actions {
    opacity: 1;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    border-color: #1e7e34;
    color: #1e7e34;
    background: #ecfdf5;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 18px;
    font-weight: 400;
    color: #111827;
    margin: 0;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    margin-bottom: 8px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    margin-top: 24px;
    border-top: 1px solid #f3f4f6;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.md\:col-span-2 {
    grid-column: span 2 / span 2;
}

.gap-3 {
    gap: 0.75rem;
}

.highlight-green {
    background-color: #ecfdf5;
    border-color: #10b981;
}

/* ===== 55. Admin Usergroups页面样式 ===== */

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafbfc;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    background: #f9fafb;
    padding: 8px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.data-table tbody td {
    padding: 8px 20px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    font-size: 14px;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.id-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 28px;
    padding: 0 10px;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    font-family: "SF Mono", Monaco, monospace;
}

.group-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    flex-shrink: 0;
}

.badge-system {
    background: #ecfdf5;
    color: #1e7e34;
}

.badge-custom {
    background: #f3f4f6;
    color: #6b7280;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-edit:hover {
    border-color: #1e7e34;
    color: #1e7e34;
    background: #ecfdf5;
}

.btn-delete:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.card-footer {
    padding: 20px 24px;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
}

.info-box {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 14px 16px;
    background: #ecfdf5;
    border: 1px solid #c7e6d0;
    color: #0a4220;
    font-size: 13px;
    line-height: 1.5;
}

.modal-container.modal-sm {
    max-width: 420px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-help {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #fefce8;
    border: 1px solid #fef08a;
    font-size: 13px;
    color: #854d0e;
}

.space-y-5 > * + * {
    margin-top: 1.25rem;
}

.border-b-0 {
    border-bottom: none;
}

.pb-0 {
    padding-bottom: 0;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.text-red-600 {
    color: #dc2626;
}

.mb-4 {
    margin-bottom: 1rem;
}

.pt-0 {
    padding-top: 0;
}

.text-red-500 {
    color: #ef4444;
}

.bg-red-600 {
    background-color: #dc2626;
}

.hover\:bg-red-700:hover {
    background-color: #b91c1c;
}

/* ===== 56. Consult View页面样式 ===== */

.text-green-600 {
    color: #059669;
}

.gap-6 {
    gap: 1.5rem;
}

.divide-gray-200 > * + * {
    border-top-color: #e5e7eb;
}

.w-32 {
    width: 8rem;
}

.w-48 {
    width: 12rem;
}

.bg-primary-light {
    background-color: #f0f9ff;
}

.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.margin-top-20px {
    margin-top: 20px;
}

.form-control {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    color: #374151;
    background: #fff;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #1e7e34;
    box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.1);
}

.form-width-200 {
    width: 200px;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

/* ===== 57. Admin Forum Management页面样式 ===== */

.stats-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    background: #fafbfc;
    border-bottom: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.groups {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.stat-icon.forums {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
}

.stat-icon.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.stat-value {
    font-size: 24px;
    font-weight: 400;
    color: #111827;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
}

.forum-list {
    padding: 20px;
}

.forum-card {
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
    cursor: default;
}

.forum-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 版块卡片 - 群组样式 */
.forum-card.is-group {
    border-left-width: 4px;
}

.forum-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.forum-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.forum-icon-wrapper {
    flex-shrink: 0;
}

.forum-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-group {
    color: #fff;
}

.forum-info {
    flex: 1;
    min-width: 0;
}

.forum-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.tree-indent {
    color: #9ca3af;
    font-family: monospace;
    font-size: 14px;
}

.forum-name {
    font-size: 16px;
    font-weight: 400;
    color: #111827;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 400;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-hidden {
    background: #fee2e2;
    color: #991b1b;
}

.forum-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    color: #6b7280;
}

.meta-id {
    font-family: "SF Mono", Monaco, monospace;
    color: #9ca3af;
}

.forum-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.forum-card:hover .forum-actions {
    opacity: 1;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit {
    background: #ecfdf5;
    color: #1e7e34;
}

.btn-edit:hover {
    background: #d1ead8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn-delete {
    background: #fef2f2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #fee2e2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.forum-children {
    margin-top: 8px;
    padding-left: 12px;
}

.modal-container.modal-lg {
    max-width: 640px;
}

.form-select {
    appearance: none;
    padding-right: 36px;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

/* ===== 58. Admin SMTP Settings页面样式 ===== */

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.w-36 {
    width: 9rem;
}

.text-right {
    text-align: right;
}

.mr-4 {
    margin-right: 1rem;
}

.mt-2\.5 {
    margin-top: 0.625rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(30, 126, 52, 0.5);
}

.focus\:ring-blue-500:focus {
    box-shadow: 0 0 0 2px rgba(30, 126, 52, 0.5);
}

.focus\:border-blue-500:focus {
    border-color: #1e7e34;
}

.mt-1\.5 {
    margin-top: 0.375rem;
}

.pt-4 {
    padding-top: 1rem;
}

.bg-green-600 {
    background-color: #059669;
}

.hover\:bg-green-700:hover {
    background-color: #047857;
}

.bg-blue-600 {
    background-color: #8b6914;
}

.hover\:bg-blue-700:hover {
    background-color: #8b6914;
}

/* ===== 59. Admin Consult Form Config页面样式 ===== */

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(30, 126, 52, 0.5);
}

.focus\:ring-primary:focus {
    box-shadow: 0 0 0 2px rgba(30, 126, 52, 0.5);
}

.focus\:border-transparent:focus {
    border-color: transparent;
}

.font-mono {
    font-family: "SF Mono", Monaco, monospace;
}

/* ===== 60. Admin Forum Permissions页面样式 ===== */

.selection-section {
    padding: 28px 28px 24px;
    background: #fafbfc;
    border-bottom: 1px solid #e5e7eb;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
    color: #374151;
    margin-bottom: 14px;
}

.form-select-lg {
    width: 100%;
    max-width: 480px;
    height: 46px;
    padding: 0 40px 0 16px;
    border: 2px solid #d1d5db;
    font-size: 15px;
    font-weight: 400;
    color: #374151;
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-select-lg:focus {
    outline: none;
    border-color: #1e7e34;
    box-shadow: 0 0 0 4px rgba(30, 126, 52, 0.1);
}

.permission-panel {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.panel-title {
    font-size: 20px;
    font-weight: 400;
    color: #111827;
    margin: 0;
}

.permission-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    padding: 20px 28px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
}

.legend-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legend-icon.view {
    background: #d1ead8;
    color: #1e7e34;
}

.legend-icon.post {
    background: #fef3c7;
    color: #d97706;
}

.legend-icon.reply {
    background: #dcfce7;
    color: #16a34a;
}

.table-wrapper {
    overflow-x: auto;
    padding: 24px 28px;
}

.permission-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.permission-table thead th {
    background: #f9fafb;
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.col-group {
    text-align: left;
    min-width: 200px;
}

.col-permission {
    min-width: 120px;
}

.permission-table tbody tr {
    transition: all 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

.permission-table tbody tr:hover {
    background: #f9fafb;
}

.permission-table tbody tr:last-child {
    border-bottom: none;
}

.permission-table tbody td {
    padding: 10px 20px;
    vertical-align: middle;
}

.group-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.group-details {
    flex: 1;
}

.group-name {
    font-weight: 400;
    color: #111827;
    font-size: 14px;
}

.group-id {
    font-size: 12px;
    color: #9ca3af;
    font-family: "SF Mono", Monaco, monospace;
}

.checkbox-wrapper {
    display: flex;
    justify-content: center;
}

.checkbox-custom {
    position: relative;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.checkbox-custom input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 2px solid #d1d5db;
    transition: all 0.2s ease;
}

.checkbox-custom input:checked ~ .checkmark {
    background: #b8860b;
    border-color: #1e7e34;
}

.checkbox-custom input:checked ~ .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-custom:hover .checkmark {
    border-color: #1e7e34;
}

.action-bar {
    display: flex;
    align-items: center;
    padding: 20px 28px 28px;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
}

.btn-lg {
    height: 48px;
    padding: 0 28px;
    font-size: 16px;
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
}

.toast.success {
    background: #fff;
    border-left: 4px solid #10b981;
}

.toast.error {
    background: #fff;
    border-left: 4px solid #ef4444;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== 52. Forum Management样式 ===== */

.admin-page {
    padding: 16px 8px;
}

.page-title {
    font-size: 22px;
}

.search-section {
    margin-bottom: 20px;
}

/* ===== 15. 区块模型 (bm) ===== */

.bm_h {
    padding: 0 10px;
    height: 35px;
    line-height: 35px;
    background: #f2f2f2;
    border-bottom: 1px solid #cdcdcd;
    font-size: 14px;
    font-weight: 400;
}
.bm_h h2 {
    line-height: 35px;
    font-size: 14px;
}
.bm_h a {
    color: #333;
}

.bmw {
    border-left: 1px solid #c7c7c7;
    border-right: 1px solid #c7c7c7;
    border-bottom: 1px solid #c7c7c7;
}

.bm_c {
    padding: 0 10px 0 10px;
}

/* ===== 16. 表格与表单 ===== */

.tfm {
    width: 100%;
}
.tfm caption,
.tfm th,
.tfm td {
    vertical-align: top;
    padding: 7px 0;
}
.tfm th {
    padding-top: 9px;
    padding-right: 5px;
    width: 130px;
    text-align: right;
    font-weight: 400;
}

/* 表单元素 */
.px,
.pt,
select {
    border: 1px solid #999 #ccc #ccc #999;
    background: #fff;
    padding: 2px 4px;
}

.pt {
    overflow-y: auto;
}
select {
    padding: 2px;
}

/* 主按钮（蓝色）样式 */
.pnc,
a.pnc {
    cursor: pointer;
    border-color: #1e7e34;
    background: #b8860b;
    color: #fff;
    font-weight: 400;
}
.pnc:hover {
    background: #8b6914;
}

/* 必填项 */
.rq {
    color: red;
}

/* ===== 17. 提示信息 ===== */

.ntc_l {
    padding: 5px 10px;
    background: #fefee9;
}
.notice {
    clear: both;
    margin: 5px 0;
    padding: 3px 5px 3px 20px;
    background: #fefee9;
    border: 1px solid #cdcdcd;
}

/* ===== 18. 弹出菜单 ===== */

.p_pop {
    padding: 4px;
    border: 1px solid #cdcdcd;
    background: #fff;
    box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.3);
}
.p_pop a {
    display: block;
    padding: 3px 5px;
    border-bottom: 1px solid #e9f2f9;
    white-space: nowrap;
}
.p_pop a:hover {
    background: #ecfdf5;
    color: #1e7e34;
    text-decoration: none;
}

/* ===== 19. 分页 ===== */

.pg {
    padding: 10px 0;
    text-align: center;
}
.pg a,
.pg strong {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #cdcdcd;
    background: #fff;
}
.pg strong {
    background: #b8860b;
    color: #fff;
    border-color: #1e7e34;
}
.pg a:hover {
    background: #f2f2f2;
    text-decoration: none;
}

/* ===== 20. 列表样式 ===== */

/* ===== 21. 主题列表 ===== */

.tl th,
.tl td {
    padding: 8px 5px;
    border-bottom: 1px solid #f2f2f2;
}
.tl th a {
    font-weight: 400;
    color: #333;
}
.tl th a:hover {
    color: #296eb4;
}
.tl .by {
    color: #999;
    font-size: 11px;
}

/* ===== 22. 帖子内容 ===== */

.plc .pi {
    margin-bottom: 10px;
}
.plc .pi .authi {
    color: #999;
}
.plc .pi .authi a {
    color: #333;
    font-weight: 400;
}
.plc .message {
    font-size: 14px;
    line-height: 1.8;
}
.plc .message img {
    max-width: 100%;
    height: auto;
}

/* ===== 23. 快速回复 ===== */

.fastpost {
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #cdcdcd;
}
.fastpost .input {
    width: 100%;
    height: 60px;
    border: 1px solid #cdcdcd;
    padding: 5px;
}

/* ===== 24. 页脚 ===== */

#ft {
    padding: 20px 0;
    color: #999;
    font-size: 12px;
    text-align: center;
}
#ft a {
    color: #666;
}

/* ===== 25. 图标样式 ===== */

/* 所有图标统一限制大小 */
.icon,
.ico,
.icon_img,
.icon_logo {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
}

/* 导航图标 */
#nv img,
.nav img {
    width: 16px;
    height: 16px;
}

/* 按钮图标 */
.pn img,
button img {
    width: 14px;
    height: 14px;
}

/* 列表图标 */
.xl img,
.tl img {
    max-width: 48px;
    max-height: 48px;
}

/* ===== 26. 版块列表表格 ===== */

.fl_tb {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: none;
    margin: 0;
    padding: 0;
}

.fl_tb td {
    padding: 10px;
    border-bottom: 1px dashed #cdcdcd;
    vertical-align: top;
    overflow: hidden;
}

.fl_tb tr:last-child td {
    border-bottom: none;
}

.fl_icn {
    width: 60px;
    text-align: center;
    vertical-align: middle;
}

.fl_icn img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 48px;
    display: block;
    margin: 0 auto;
}

.fl_tb h2 {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 5px 0;
    padding: 0;
}

.fl_tb h2 a {
    color: #1e7e34;
    text-decoration: none;
}

.fl_tb h2 a:hover {
    color: #0a4220;
    text-decoration: underline;
}

.fl_i {
    width: 120px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.fl_i .xi2 {
    font-size: 14px;
    font-weight: 400;
    color: #333;
}

.fl_by {
    width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.fl_by cite {
    font-style: normal;
    color: #999;
    font-size: 12px;
}

.fl_by a {
    color: #1e7e34;
    text-decoration: none;
}

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

/* ===== 27. 搜索栏 ===== */

#scbar {
    background: #ecfdf5;
    border: 1px solid #cdcdcd;
    padding: 10px;
    margin-bottom: 10px;
}

#scbar form,
#scbar table {
    width: 100%;
}

#scbar td {
    vertical-align: middle;
    padding: 0 5px;
}

.scbar_txt_td {
    width: 100%;
}

.scbar_txt_td input[type="text"] {
    width: 100%;
    height: 32px;
    padding: 5px 10px;
    border: 1px solid #cdcdcd;
    font-size: 14px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}

.scbar_txt_td input[type="text"]:focus {
    border-color: #1e7e34;
}

.scbar_type_td {
    white-space: nowrap;
    font-size: 14px;
    color: #666;
}

.scbar_btn_td {
    white-space: nowrap;
}

/* ===== 28. 分页组件 ===== */

.pgs {
    margin: 15px 0;
    text-align: center;
    clear: both;
}

.pgs a:not(.pnc),
.pgs strong {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 2px;
    border: 1px solid #cdcdcd;
    background: #fff;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    border-radius: 0;
}

.pgs a:hover {
    background: #ecfdf5;
    border-color: #a7d7c9;
    color: #1e7e34;
}

.pgs strong {
    background: #b8860b;
    color: #fff;
    border-color: #1e7e34;
    font-weight: 400;
}

/* ===== 29. 面包屑导航 ===== */

#pt {
    margin-bottom: 10px;
    padding: 5px 0;
}

#pt em {
    margin-right: 5px;
    font-style: normal;
    color: #999;
    font-family: simsun, serif;
    font-weight: 400;
}

#pt a {
    color: #1e7e34;
    text-decoration: none;
}

#pt a:hover {
    color: #1e7e34;
    text-decoration: underline;
}

/* ===== 30. 帖子列表 ===== */

.pl {
    margin-bottom: 10px;
}

.pl table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border-spacing: 0;
}

.pl td {
    border: 1px solid #cdcdcd;
}

.pls {
    width: 160px;
    background: #f9f9f9;
    border-right: 1px solid #cdcdcd;
    vertical-align: top;
    padding: 0;
    overflow: hidden;
}

.pls .pi {
    margin-bottom: 10px;
}

.authi a {
    font-size: 14px;
    font-weight: 400;
    color: #1e7e34;
    text-decoration: none;
}

.authi a:hover {
    color: #1e7e34;
    text-decoration: underline;
}

.tns {
    margin: 10px 0;
    padding: 8px 0;
    border-top: 1px dashed #cdcdcd;
    border-bottom: 1px dashed #cdcdcd;
}

.tns table {
    width: 100%;
    border: none;
    margin: 0;
    padding: 0;
}

.tns th,
.tns td {
    border: none;
    padding: 2px 0;
    text-align: center;
    font-size: 11px;
    color: #999;
}

.tns th p,
.tns td p {
    margin: 0;
    color: #999;
    font-size: 11px;
}

.tns th {
    font-weight: 400;
}

.tns .xi2 {
    font-size: 12px;
    font-weight: 400;
    color: #333;
}

/* ===== 31. 帖子正文内容 ===== */

.pcb {
    line-height: 1.8;
    font-size: 14px;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pcb .t_fsz {
    margin: 0;
    padding: 0;
}

.pcb .t_fsz table {
    border: none;
    margin: 0;
    padding: 0;
    width: auto;
}

.pcb .t_f {
    padding: 0;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    border: none;
}

.pcb img {
    max-width: 200px;
    height: auto;
    margin: 5px 0;
}

.pcb a:hover img {
    border-color: #1e7e34;
}

/* 覆盖 Quill 编辑器中的图片样式 */
.ql-snow .ql-editor img {
    max-width: 60px;
    height: auto;
}

/* ===== 32. 表单样式 ===== */

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #333;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #cdcdcd;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease;
}

textarea.form-input {
    height: 6em;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #1e7e34;
}

.form-textarea {
    width: 100%;
    min-height: 150px;
    padding: 8px 10px;
    border: 1px solid #cdcdcd;
    font-size: 14px;
    color: #333;
    resize: vertical;
    box-sizing: border-box;
    border-radius: 0;
    outline: none;
    font-family: inherit;
    line-height: 1.6;
}

.form-textarea:focus {
    border-color: #1e7e34;
}

/* ===== 33. 错误提示和信息框 ===== */

.alert {
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 1px solid #cdcdcd;
    background: #fefbf2;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.alert-error {
    background: #fff2f2;
    border-color: #ffcccc;
    color: #cc0000;
}

.alert-success {
    background: #f2ffe2;
    border-color: #ccff99;
    color: #006600;
}

.alert-info {
    background: #ecfdf5;
    border-color: #a7d7c9;
    color: #1e7e34;
}

/* ===== 34. 管理后台专用 ===== */

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.admin-card {
    border: 1px solid #cdcdcd;
    background: #fff;
    padding: 15px;
    transition: all 0.2s ease;
}

.admin-card:hover {
    border-color: #1e7e34;
    box-shadow: 0 2px 8px rgba(30, 126, 52, 0.1);
}

.admin-card h3 {
    font-size: 14px;
    font-weight: 400;
    color: #1e7e34;
    margin: 0 0 10px 0;
    padding: 0;
}

.admin-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #cdcdcd;
    background: #fff;
}

.data-table thead {
    background: #ecfdf5;
}

.data-table th {
    padding: 8px 10px;
    border-bottom: 1px solid #c2d5e3;
    font-size: 12px;
    font-weight: 400;
    color: #333;
    text-align: left;
}

.data-table td {
    padding: 8px 10px;
    border-bottom: 1px dashed #cdcdcd;
    font-size: 12px;
    color: #333;
    vertical-align: middle;
}

.data-table tr:hover {
    background: #f9f9f9;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* ===== 35. 帖子列表 (forum_detail) ===== */

.th {
    background-color: #f2f2f2;
    border-bottom: 1px solid #cdcdcd;
}

.th table {
    height: 36px;
}

.th th {
    padding: 0 10px;
    font-weight: 400;
    color: #666;
    text-align: left;
}

.th .tf {
    padding: 8px 10px;
}

.th strong {
    font-weight: 400;
    font-size: 14px;
}

/* ===== 36. 快速发帖区 ===== */

#f_pst {
    margin-top: 10px;
    border: none;
}

#f_pst .bm_h h2 {
    font-size: 14px;
    font-weight: 400;
    color: #333;
}

#f_pst .pbt {
    padding-bottom: 8px;
    margin-bottom: 8px;
}

#f_pst .pt {
    width: 95%;
    min-height: 100px;
    padding: 8px;
    border: 1px solid #c2d5e3;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
    font-family: inherit;
    outline: none;
}

#f_pst .pt:focus {
    border-color: #1e7e34;
    box-shadow: 0 0 3px rgba(41, 110, 180, 0.1);
}

#f_pst .pnpost {
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px dashed #e5e5e5;
}

#f_pst .pnpost .y {
    float: right;
    line-height: 28px;
    font-size: 12px;
}

/* ===== 37. 版块头部 ===== */

.bml .bm_h {
    background-color: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 15px;
    height: auto;
    line-height: 1.5;
}

.bml .xs2 {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin: 0;
}

.bml .xs2 a {
    color: #1e7e34;
    text-decoration: none;
}

.bml .xs2 a:hover {
    color: #0a4220;
    text-decoration: underline;
}

.bml .xs1 {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

#pgt {
    margin: 10px 0;
}

#pgt img {
    vertical-align: middle;
    margin-right: 5px;
}

/* ===== 38. 帖子详情页 ===== */

#postlist {
    position: relative;
    z-index: 1;
}

.pl {
    zoom: 1;
    overflow: visible;
}

.pl table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.pls {
    width: 160px;
    background: #f5f8fa;
    border-right: 1px solid #c2d5e3;
    overflow: hidden;
    vertical-align: top;
    word-break: break-all;
}

.favatar {
    padding: 10px 10px;
}

.authi .xw1 {
    font-size: 14px;
    font-weight: 400;
    color: #1e7e34;
    text-decoration: none;
}

.authi .xw1:hover {
    color: #0a4220;
    text-decoration: underline;
}

.tns {
    margin-top: 10px;
    font-size: 12px;
    line-height: 20px;
}

.tns table {
    width: 100%;
    table-layout: auto;
}

.tns th,
.tns td {
    width: 50%;
    text-align: center;
    padding: 0;
    white-space: nowrap;
}

.tns p {
    margin: 0;
    color: #666;
}

.tns .xi2 {
    color: #1e7e34;
    font-weight: 400;
}

.favatar p em {
    font-size: 12px;
    color: #999;
    font-style: normal;
}

.xl {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    overflow: hidden;
}

.xl li {
    float: left;
    margin: 5px 0;
    margin-right: 10px;
}

.xl li a {
    color: #1e7e34;
    font-size: 12px;
    text-decoration: none;
}

.xl li a:hover {
    color: #1e7e34;
    text-decoration: underline;
}

.cp_pls {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #cdcdcd;
    clear: both;
}

.cp_pls a {
    margin-right: 8px;
    color: #1e7e34;
    font-size: 12px;
    text-decoration: none;
}

.cp_pls button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 8px;
}

.cp_pls button:hover {
    opacity: 0.7;
}

.plc {
    vertical-align: top;
    background: #fff;
    padding: 0;
}

.plc .pi {
    padding: 0 15px 5px 15px;
    border-bottom: 1px solid #e5e5e5;
    background: #f9f9f9;
    position: relative;
}

.plc strong {
    font-size: 14px;
    font-weight: 400;
}

.plc strong a {
    color: #1e7e34;
    text-decoration: none;
}

.plc strong a em {
    font-style: normal;
    font-size: 12px;
    font-family: Tahoma, Geneva, sans-serif;
}

.plc strong a sup {
    font-size: 11px;
    color: #999;
    margin-left: 2px;
}

.pti {
    margin-top: 5px;
}

.pdbt {
    margin-bottom: 5px;
}

.authi {
    font-size: 12px;
    color: #666;
    line-height: 18px;
}

.authicn {
    vertical-align: middle;
    margin-right: 3px;
}

.authi em {
    font-style: normal;
    color: #999;
}

.authi a {
    color: #666;
    text-decoration: none;
}

.authi a:hover {
    color: #1e7e34;
    text-decoration: underline;
}

.pct {
    padding: 15px;
    min-height: 100px;
}

.t_fsz {
    width: 100%;
    overflow-x: auto;
}

.t_fsz table {
    width: 100%;
    table-layout: auto;
}

.t_f {
    font-size: 14px;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.zoom {
    display: inline-block;
    margin: 5px;
    border: 1px solid #e5e5e5;
    padding: 3px;
    background: #fff;
}

.zoom:hover {
    border-color: #1e7e34;
}

.zoom img {
    max-width: 400px;
    max-height: 300px;
    display: block;
}

.attach {
    color: #1e7e34;
    text-decoration: none;
    font-size: 12px;
}

.attach:hover {
    color: #0a4220;
    text-decoration: underline;
}

.attach img {
    vertical-align: middle;
    margin-right: 3px;
}

.quote {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #c2d5e3;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.quote .q {
    margin: 0;
}

.vwthd {
    padding: 15px;
}

.ts {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.ts span {
    color: #333;
}

.ts a {
    color: #1e7e34;
    text-decoration: none;
    font-size: 12px;
}

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

.hm {
    display: none;
}

.pgs {
    margin: 15px 0;
    text-align: center;
    font-size: 12px;
}

.pgs .pg {
    display: inline-block;
    margin: 0 3px;
}

.pgs .pg a,
.pgs .pg strong,
.pgs .pg label {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid #c2d5e3;
    background: #fff;
    color: #333;
    text-decoration: none;
    margin: 0 2px;
    vertical-align: middle;
}

.pgs .pg a:hover {
    background: #f9f9f9;
    border-color: #1e7e34;
    color: #1e7e34;
}

.pgs .pg strong {
    font-weight: 400;
    background: #b8860b;
    color: #fff;
    border-color: #1e7e34;
}

.pgs .pg label input {
    width: 30px;
    border: 1px solid #c2d5e3;
    padding: 2px;
    text-align: center;
    font-size: 12px;
    vertical-align: middle;
}

.pgs .pg .prev,
.pgs .pg .next {
    font-weight: 400;
}

.pgb {
    font-size: 12px;
}
.pgb a {
    color: #1e7e34;
    text-decoration: none;
    padding: 3px 8px;
    border: none;
    background: #fff;
    display: inline-block;
}

.pgb a:hover {
    background: #f9f9f9;
    border: none;
}

#sub_forum {
    border-bottom: 1px solid #c2d5e3;
}

#sub_forum .bm_c {
    padding: 10px;
}

.sub-forum-item {
    display: inline-block;
    margin: 4px 15px 0px 15px;
    text-align: center;
}

.sub-forum-icon {
    width: 40px;
    height: 40px;
}

#pgt {
    padding-left: 0;
}

#pgt .pn.pnc {
    margin-left: 0;
    float: left;
}

#fd_page_bottom {
    padding-left: 0;
}

#fd_page_bottom .pn.pnc {
    margin-left: 0;
    float: left;
}

#threadstamp img {
    position: absolute;
    top: -30px;
    right: 170px;
}

#threadlist {
    position: relative;
    border-top: 1px solid #c7c7c7;
}

.tl_table {
    width: 100%;
}

.pin-tag {
    margin-left: 10px;
    font-size: 11px;
    font-weight: 400;
}

.threadlist-empty {
    padding: 60px 20px;
    text-align: center;
}

.threadlist-empty h3 {
    font-size: 14px;
    margin-bottom: 10px;
}

.threadlist-empty h3 img {
    vertical-align: middle;
    margin-right: 8px;
}

.threadlist-empty p {
    font-size: 12px;
}

/* ===== 39. 确认对话框样式 ===== */

.confirm-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000 !important;
}

.confirm-dialog.show {
    display: block;
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.dialog-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 400px;
    max-width: 95%;
    z-index: 10001;
}

.dialog-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px 12px 0 0;
}

.dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    color: #1f2937;
}

.dialog-body {
    padding: 20px;
}

.dialog-body p {
    margin: 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.dialog-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.dialog-btn {
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.2s;
}

.cancel-btn {
    background: #e5e7eb;
    color: #374151;
}

.cancel-btn:hover {
    background: #d1d5db;
}

.confirm-btn {
    background: #983535;
    color: white;
}

.confirm-btn:hover {
    background: #dc2626;
}

/* ===== 40. 消息页面样式 ===== */

#messageContainer {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ft-border) transparent;
}

#messageContainer::-webkit-scrollbar {
    width: 6px;
}

#messageContainer::-webkit-scrollbar-track {
    background: transparent;
}

#messageContainer::-webkit-scrollbar-thumb {
    background-color: var(--ft-border);
    border-radius: var(--ft-radius-full);
}

#messageContainer::-webkit-scrollbar-thumb:hover {
    background-color: var(--ft-border-hover);
}

.message-list {
    background-color: var(--ft-card);
    border: 1px solid var(--ft-border);
    overflow: hidden;
}

.message-item {
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid var(--ft-border);
    transition: background-color var(--ft-transition-fast);
    cursor: pointer;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item.unread {
    background-color: #fffce8;
    position: relative;
}

.message-item.unread .message-title {
    font-weight: 700;
}

.message-item.unread .message-username-bold {
    font-weight: 700;
}

.message-item.unread .message-preview {
    font-weight: 700;
}

.message-item.unread .message-time {
    font-weight: 700;
}

.message-unread-badge {
    display: inline-block !important;
    color: #f00;
    font-size: 12px;
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 128, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: normal;
}

.message-item.unread:hover {
    background-color: rgba(255, 0, 0, 0.08);
}

.message-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: var(--ft-radius-full);
    background: var(--ft-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ft-primary);
    font-weight: 400;
    font-size: 1rem;
}

.message-content {
    flex: 1;
    min-width: 0;
    align-items: flex-start;
    margin-bottom: 0.375rem;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.375rem;
}

.message-sender {
    font-weight: 400;
    color: var(--ft-foreground);
    margin-bottom: 0;
}

.message-time {
    font-size: 0.75rem;
    color: var(--ft-muted-foreground);
    flex-shrink: 0;
}

.message-subject {
    font-size: 0.9375rem;
    color: var(--ft-foreground);
    margin-bottom: 0.25rem;
    line-height: var(--ft-leading-normal);
}

.message-item.unread .message-subject {
    font-weight: 400;
}

.message-preview {
    font-size: 1rem;
    color: #0a4220;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.message-unread-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--ft-primary);
    border-radius: var(--ft-radius-full);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.unread-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 1rem;
    height: 1rem;
    background-color: var(--ft-destructive);
    border-radius: var(--ft-radius-full);
    border: 2px solid var(--ft-card);
}

.message-detail {
    background-color: var(--ft-card);
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-xl);
    overflow: hidden;
}

.message-detail-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--ft-border);
    background-color: var(--ft-gray-50);
}

.message-detail-subject {
    font-family: var(--ft-font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--ft-foreground);
    margin-bottom: 0.75rem;
}

.message-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--ft-muted-foreground);
}

.message-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.message-detail-meta-item svg {
    width: 1rem;
    height: 1rem;
}

.message-detail-body {
    padding: 1.5rem;
    font-size: 0.9375rem;
    line-height: var(--ft-leading-relaxed);
    color: var(--ft-foreground);
}

.message-detail-body p {
    margin-bottom: 1rem;
}

.message-detail-body p:last-child {
    margin-bottom: 0;
}

#messageForm {
    padding: 0;
}

#messageInput {
    width: 100%;
    box-sizing: border-box;
}

.justify-start {
    justify-content: flex-start;
}

.gap-1 {
    gap: 0.25rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.text-xxs {
    font-size: 0.625rem;
}

#messageContainer a,
#messageContainer a:visited,
#messageContainer a:link {
    color: #1e7e34;
    text-decoration: none;
}

#messageContainer a:hover {
    color: #0a4220;
    text-decoration: underline;
}

#confirm-dialog {
    display: none;
}

#confirm-dialog.show {
    display: block;
    z-index: 10000 !important;
}

.message-reply {
    padding: 1.5rem;
    border-top: 1px solid var(--ft-border);
    background-color: var(--ft-gray-50);
}

.message-reply-title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--ft-foreground);
    margin-bottom: 1rem;
}

.message-compose {
    background-color: var(--ft-card);
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-xl);
    padding: 1.5rem;
}

.message-compose-title {
    font-family: var(--ft-font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--ft-foreground);
    margin-bottom: 1.5rem;
}

.conversation-list {
    background-color: var(--ft-card);
    border: 1px solid var(--ft-border);
    border-radius: var(--ft-radius-xl);
    overflow: hidden;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid var(--ft-border);
    transition: all var(--ft-transition-fast);
    cursor: pointer;
}

.conversation-item:last-child {
    border-bottom: none;
}

.conversation-item:hover {
    background-color: var(--ft-card-hover);
}

.conversation-item.active {
    background-color: rgba(0, 83, 185, 0.1);
    border-left: 3px solid var(--ft-primary);
}

.conversation-avatar {
    position: relative;
}

.conversation-avatar .online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--ft-success);
    border: 2px solid var(--ft-card);
    border-radius: var(--ft-radius-full);
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 400;
    color: var(--ft-foreground);
}

.conversation-last-message {
    font-size: 0.875rem;
    color: var(--ft-muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.375rem;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--ft-muted-foreground);
}

.conversation-unread-count {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 400;
    line-height: 1.25rem;
    text-align: center;
    color: var(--ft-primary-foreground);
    background-color: var(--ft-primary);
    border-radius: var(--ft-radius-full);
}

.chat-messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    max-width: 80%;
}

.chat-message.sent {
    margin-left: auto;
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: var(--ft-radius-full);
    background-color: var(--ft-secondary);
    flex-shrink: 0;
    overflow: hidden;
}

.chat-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: var(--ft-radius-lg);
    font-size: 0.9375rem;
    line-height: var(--ft-leading-normal);
}

.chat-message.received .chat-bubble {
    background-color: var(--ft-secondary);
    color: var(--ft-secondary-foreground);
    border-bottom-left-radius: var(--ft-radius-sm);
}

.chat-message.sent .chat-bubble {
    background: linear-gradient(
        135deg,
        var(--ft-primary) 0%,
        var(--ft-primary-dark) 100%
    );
    color: var(--ft-primary-foreground);
    border-bottom-right-radius: var(--ft-radius-sm);
}

.chat-message-time {
    font-size: 0.6875rem;
    color: var(--ft-muted-foreground);
    margin-top: 0.25rem;
    text-align: right;
}

.chat-message.sent .chat-message-time {
    text-align: left;
}

.messages-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.messages-empty-icon {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--ft-secondary) 0%,
        var(--ft-muted) 100%
    );
    border-radius: var(--ft-radius-full);
    color: var(--ft-muted-foreground);
}

.messages-empty-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.messages-empty-title {
    font-family: var(--ft-font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--ft-foreground);
    margin-bottom: 0.5rem;
}

.messages-empty-description {
    color: var(--ft-muted-foreground);
    font-size: 0.9375rem;
    max-width: 20rem;
}

/* ===== 41. 错误页面样式 ===== */

.error-page {
    min-height: 37vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(
        135deg,
        var(--ft-background) 0%,
        var(--ft-background-warm) 100%
    );
}

.error-container {
    max-width: 32rem;
    text-align: center;
}

.error-icon {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ft-radius-full);
    color: var(--ft-primary);
}

.error-icon svg {
    width: 4rem;
    height: 4rem;
}

.error-code {
    font-family: var(--ft-font-serif);
    font-size: 6rem;
    font-weight: 400;
    line-height: 1;
    color: var(--ft-primary);
    margin-bottom: 1rem;
    background: linear-gradient(
        135deg,
        var(--ft-primary) 0%,
        var(--ft-accent) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-title {
    font-family: var(--ft-font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--ft-foreground);
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1rem;
    color: var(--ft-muted-foreground);
    line-height: var(--ft-leading-relaxed);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.error-actions .btn {
    min-width: 8rem;
}

.error-404 .error-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.error-403 .error-icon {
    background: linear-gradient(
        135deg,
        rgba(199, 62, 62, 0.1) 0%,
        rgba(184, 92, 56, 0.1) 100%
    );
    color: var(--ft-destructive);
}

.error-500 .error-icon {
    background: linear-gradient(
        135deg,
        rgba(30, 126, 52, 0.1) 0%,
        rgba(10, 66, 32, 0.1) 100%
    );
}

.error-503 .error-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.error-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
}

.error-decoration-1 {
    top: 10%;
    left: 10%;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--ft-primary) 0%, transparent 100%);
    border-radius: var(--ft-radius-full);
    filter: blur(40px);
}

.error-decoration-2 {
    bottom: 20%;
    right: 15%;
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, var(--ft-accent) 0%, transparent 100%);
    border-radius: var(--ft-radius-full);
    filter: blur(50px);
}

.error-decoration-3 {
    top: 30%;
    right: 10%;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(
        135deg,
        var(--ft-primary-light) 0%,
        transparent 100%
    );
    border-radius: var(--ft-radius-full);
    filter: blur(30px);
}

/* ===== 42. 桌面版特有样式 ===== */

/* 隐藏移动端元素 */
.mobile-logo-padding,
.mobile-header,
.mobile-menu,
.mobile-nav {
    display: none;
}

.wp {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    border-top: 1px solid #ccc;
}

/* ===== 43. 咨询单表单样式 ===== */

/* 表单字段容器 */
.form-field {
    margin-bottom: 16px;
}

/* 字段标签 */
.form-field-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

/* 文本输入框 */
.form-field-input,
.form-field-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-field-input:focus,
.form-field-textarea:focus {
    border-color: #1e7e34;
    outline: none;
}

.form-field-textarea {
    min-height: 100px;
    resize: vertical;
}

/* 说明文字 */
.form-field-info {
    background: #eff6ff;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* 选项容器 */
.form-options-wrap {
    display: flex;
    flex-wrap: wrap;
}

/* 单选/复选标签 */
.form-radio-label,
.form-checkbox-label {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    cursor: pointer;
}

.form-radio-label input,
.form-checkbox-label input {
    margin-right: 6px;
    accent-color: #1e7e34;
}

.form-radio-label span,
.form-checkbox-label span {
    font-size: 14px;
    color: #374151;
}

/* 单选组容器 */
.form-radio-group {
    display: flex;
    align-items: center;
}

/* ==========================================
模态框按钮样式修复 - 统一处理桌面和移动端
============================================ */

.admin-page .action-bar, .modal-container .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 模态框按钮样式 - 统一处理所有设备 */
.admin-page .btn, .admin-page button, .modal-container .btn, .modal-container button {
    height: auto;
    min-height: auto;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 20px;
    border-radius: 6px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .admin-page .btn, .admin-page button, .modal-container .btn, .modal-container button {
        padding: 10px 14px;
        font-size: 14px;
        line-height: 20px;
    }
}


.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    border: none;
    font-weight: 400;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    font-weight: 400;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-cancel {
    background: #e5e7eb;
    color: #374151;
    border: none;
    font-weight: 400;
}

.btn-cancel:hover {
    background: #d1d5db;
}

.admin-page .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.admin-page .btn-primary,
.modal-container .btn-primary {
    background: #b8860b;
    color: #fff;
    border: none;
    font-weight: 400;
}

.admin-page .btn-primary:hover,
.modal-container .btn-primary:hover {
    background: #8b6914;
}

.admin-page .btn-danger,
.modal-container .btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    font-weight: 400;
}

.admin-page .btn-danger:hover,
.modal-container .btn-danger:hover {
    background: #b91c1c;
}

.admin-page .btn-cancel,
.modal-container .btn-cancel {
    background: #e5e7eb;
    color: #374151;
    border: none;
    font-weight: 400;
}

.admin-page .btn-cancel:hover,
.modal-container .btn-cancel:hover {
    background: #d1d5db;
}

tr.auto-reply-post .t_f {
    color: #b8860b !important;
}
