/* ========================================
 * Simple Styles - 简易版样式（移动端）
 * 极简响应式设计
 * ======================================== */

/* ===== 模态框样式（所有屏幕尺寸） ===== */
.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;
}

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

.modal-overlay.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-overlay > div {
    background: white;
}

.modal-container {
    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);
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    z-index: 10001;
}

/* 移动端咨询单标题截短 */
.consult-title {
    max-width: 370px; /* 约17个字符宽度 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Admin页面样式 ===== */
.admin-page {
    padding: 16px 8px;
}

/* 移动端表格列间距 */
.data-table td {
    padding-right: 12px;
}

/* 移动端编辑按钮样式 */
.edit-btn {
    background: none;
    border: none;
    color: #1e7e34;
    font-size: 14px;
    padding: 0 8px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 移动端分类和药方名称字号 */
.category-name,
.recipe-name {
    font-size: 17px !important;
    -webkit-text-size-adjust: 100%;
}

/* 引用块样式 */
blockquote {
    border-left: 2px solid #adbcb0;
    margin-left: 0.5rem;
    padding-left: 0.5em;
    color: #a3a3a3;
}

/* 移动端表单元素字号 */
.form-input,
.form-select {
    font-size: 17px;
}

/* 用户管理搜索框高度 */
.search-form .form-input,
.search-form .form-select {
    height: 43px;
}

/* 移动端用户资料标题省略 */
.u_recent .xi2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 20em;
}

/* 移动端用户管理信息灰色 */
.user-list .meta-item,
.user-list .date-badge {
    color: #999;
}

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

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

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

/* 移动端进入按钮图标样式 */
.enter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.enter-btn img {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    max-width: 1.25rem;
}

/* 移动端模态框样式 - 模仿 trash.php 的确认对话框 */
.modal-container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: calc(100% - 32px);
    width: 100%;
    border-radius: 12px;
    margin: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 移动端确认对话框宽度 */
.dialog-content {
    max-width: 95%;
    width: 95%;
}

/* 移动端药方分类列表项高度缩小 */
.category-item {
    padding: 0.1rem 0.75rem !important;
}

/* 移动端药方列表项高度缩小 */
.recipe-item {
    padding: 0.1rem 0.75rem !important;
}

/* 移动端版块列表项高度缩小 */
.forum-item {
    padding: 0 0;
}

/* 移动端隐藏桌面端专属按钮 */
.desktop-only {
    display: none;
}

/* 移动端缩小拖拽手柄宽度 */
.forum-item .drag-handle {
    width: 1.5rem !important;
    height: 1.5rem !important;
}

/* 移动端缩小下拉列表字号和行距 */
select {
    font-size: 14px !important;
    padding: 0.375rem 0.5rem !important;
}

/* 桌面端权限表格行高 */
.permission-table td {
    padding: 0.2rem 0.75rem;
}

button {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    margin-right: 3px;
    padding: 5px 15px;
}

/* 移动端 admin 按钮样式 */
.admin-page .btn,
.admin-page button,
.modal-container .btn,
.modal-container button {
    height: auto;
    min-height: auto;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

/* 移动端按钮容器使用 flexbox */
.admin-page .action-bar,
.modal-container .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.admin-page .btn-secondary:first-child,
.modal-container .btn-secondary:first-child {
    margin-left: 0;
    margin-right: 8px;
}

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

.btn-primary:hover {
    background: #8b6914;
}

.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,
.modal-container .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

/* ===== 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: #e8f5e9;

    /* 边框色 */
    --ft-border: #cdcdcd;
    --ft-border-light: #e5e5e5;
    --ft-border-dark: #a8d5ba;
    --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: #1e8a5e;
    --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-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: #15803d;
}

/* ===== 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;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif; /* 与Discuz完全一致 */
    line-height: 130%; /* 与Discuz一致 */
    color: var(--ft-text-primary);
    background-color: var(--ft-bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 17px; /* 基础字号，与Discuz简易版匹配 */
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    line-height: 1.3;
    color: var(--ft-text-primary);
    font-size: 17px; /* 与body一致，防止浏览器默认字号覆盖 */
}

a {
    color: #0d5c2e; /* 使用更深的蓝色 */
    text-decoration: none;
    transition: color var(--ft-transition-fast);
    font-weight: 400; /* 粗体 */
}

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

.logo-img {
    height: 40px;
    text-align: center;
}

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

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;
    color: #a3a3a3;
}

label {
    cursor: pointer;
}

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

.search-form {
    margin-bottom: 7px;
}

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"]:-webkit-autofill,
input[type="text"]:-webkit-autofill:hover,
input[type="text"]:-webkit-autofill:focus,
input[type="text"]:-internal-autofill-selected,
input[type="password"]:-webkit-autofill,
input[type="password"]:-webkit-autofill:hover,
input[type="password"]:-webkit-autofill:focus,
input[type="password"]:-internal-autofill-selected,
input[type="email"]:-webkit-autofill,
input[type="email"]:-webkit-autofill:hover,
input[type="email"]:-webkit-autofill:focus,
input[type="email"]:-internal-autofill-selected {
    background-color: #f0fdf4 !important;
    -webkit-box-shadow: 0 0 0 30px #f0fdf4 inset !important;
    -webkit-text-fill-color: #333 !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

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);
}

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

.wp {
    width: 100%;
}

#wp {
    min-height: 400px;
}

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

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

/* 工具类 */
.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;
}

.z {
    float: left;
}
.y {
    float: right;
}
.vm {
    vertical-align: middle;
}
.vm * {
    vertical-align: middle;
}
.hm {
    text-align: center;
}

/* Discuz 字号类 */
.xs0 {
    font-size: 12px;
} /* 超小字号，约0.75倍 */
.xi1 {
    font-size: 18px;
    color: #f60;
} /* 橙色文字，约1.125倍 */
.xi2 {
    font-size: 17px;
    color: #0d5c2e;
} /* 蓝色链接，使用更深的蓝色 */
.xi3 {
    font-size: 14px;
    color: #0d5c2e;
} /* 蓝色链接，使用更深的蓝色 */
.xw0 {
    font-weight: 400;
} /* 正常字重 */
.xw1 {
    font-weight: 400;
} /* 普通字重 */
.xg1,
.xg1 a {
    color: #999;
} /* 灰色文字 */
.xg2 {
    color: #666;
} /* 深灰色文字 */

.user-profile-date {
    color: #999;
    font-size: 17px;
}

.cl {
    clear: both;
}
.cl::after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.none {
    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. 头像样式 ===== */

.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;
}

/* ===== 8. 区块模型 ===== */

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

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

.bm_c {
    padding: 10px;
}

/* ===== 9. 表单元素 ===== */

.px,
.pt,
select {
    border: 1px solid #999 #ccc #ccc #999;
    background: #fff;
    padding: 2px 4px;
    line-height: 17px;
}
.px {
    height: 36px;
}
.pt {
    overflow-y: auto;
}
select {
    padding: 2px;
}

.pn {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    margin-right: 3px;
    padding: 0 15px;
    height: 28px;
    border: 1px solid #999;
    background: #e5e5e5;
    cursor: pointer;
}
.pn {
    cursor: pointer;
}
.pnc,
a.pnc {
    border-color: #145a2e;
    background: #b8860b;
    border: 1px solid var(--ft-border);
    color: #fff;
    font-weight: 400;
    padding: 4px 15px;
}

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

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

/* ===== 11. 统一分页器 ===== */

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

.xl li {
    margin: 5px 0;
}
.xl li a {
    color: #333;
}

/* ===== 13. 版块列表表格 - 移动端样式在媒体查询中 ===== */

/* ===== 14. 搜索栏 ===== */

#scbar {
    background: #e8f5e9;
    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: 40px;
    padding: 8px 10px;
    border: 1px solid #cdcdcd;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}

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

.scbar_type_td {
    white-space: nowrap;
    color: #666;
}

.scbar_btn_td {
    white-space: nowrap;
}

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

#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 {
    color: #666;
    text-decoration: none;
}

/* ===== 17. 帖子列表 - 移动端样式在媒体查询中 ===== */

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

.pcb {
    line-height: 1.8;
    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;
    line-height: 1.3;
    color: #333;
    border: none;
}

.pcb img {
    max-width: 600px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 5px 0;
}

.expired-input {
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 12px;
    width: 120px;
    z-index: 1000;
    position: relative;
}

/* 确保日历控件可见 */
.expired-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5);
}

.expired-input::-webkit-inner-spin-button {
    display: none;
}

.pcb a img {
    border: 1px solid #cdcdcd;
}

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

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

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

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

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

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

html body input:-webkit-autofill,
html body input:-webkit-autofill:hover,
html body input:-webkit-autofill:focus,
html body input:-internal-autofill-selected,
html body input[type="text"]:-webkit-autofill,
html body input[type="text"]:-webkit-autofill:hover,
html body input[type="text"]:-webkit-autofill:focus,
html body input[type="text"]:-internal-autofill-selected,
html body input[type="password"]:-webkit-autofill,
html body input[type="password"]:-webkit-autofill:hover,
html body input[type="password"]:-webkit-autofill:focus,
html body input[type="password"]:-internal-autofill-selected,
html body input[type="email"]:-webkit-autofill,
html body input[type="email"]:-webkit-autofill:hover,
html body input[type="email"]:-webkit-autofill:focus,
html body input[type="email"]:-internal-autofill-selected,
html body .form-input:-webkit-autofill,
html body .form-input:-webkit-autofill:hover,
html body .form-input:-webkit-autofill:focus,
html body .form-input:-internal-autofill-selected {
    -webkit-box-shadow: 0 0 0 2000px #f0fdf4 inset !important;
    -webkit-text-fill-color: #333 !important;
    background-color: #f0fdf4 !important;
    background-image: none !important;
    color: #333 !important;
    transition:
        background-color 0s 86400s,
        color 0s 86400s;
    filter: none !important;
}

html body input:-webkit-autofill::first-line,
html body input[type="text"]:-webkit-autofill::first-line,
html body input[type="password"]:-webkit-autofill::first-line,
html body input[type="email"]:-webkit-autofill::first-line,
html body .form-input:-webkit-autofill::first-line {
    color: #333 !important;
}

html body input:-internal-autofill-previewed,
html body input:-internal-autofill-selected {
    background-color: #f0fdf4 !important;
    background-image: none !important;
    color: #333 !important;
}

/* 强制覆盖 Chrome 的自动填充样式 */
@supports (-webkit-touch-callout: none) {
    html body input:-webkit-autofill,
    html body input:-webkit-autofill:hover,
    html body input:-webkit-autofill:focus,
    html body input:-internal-autofill-selected {
        background-color: #f0fdf4 !important;
        background-image: none !important;
        color: #333 !important;
    }
}

/* 使用 CSS 变量来覆盖自动填充样式 */
html body input {
    --webkit-autofill-bg: #f0fdf4;
}

html body input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--webkit-autofill-bg, #f0fdf4) inset !important;
    -webkit-text-fill-color: #333 !important;
}

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

.form-textarea {
    width: 100%;
    min-height: 150px;
    padding: 8px 10px;
    border: 1px solid #cdcdcd;
    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;
}

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

.alert {
    padding: 10px 15px;
    margin-bottom: 10px;
    border: 1px solid #cdcdcd;
    background: #fefbf2;
    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: #e8f5e9;
    border-color: #a8d5ba;
    color: #1e7e34;
}

/* ===== 21. 页首、页脚 ===== */
.mobile-logo-padding {
    display: block;
    padding: 10px;
    border-bottom: 4px solid #1c6b38;
}

/* 移动端头部布局 */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 移动端菜单 */
.mobile-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

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

/* 移动端主导航菜单 */
.mobile-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 5px;
    text-align: center;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav a {
    color: #0d5c2e;
    text-decoration: none;
    font-weight: 400;
    padding: 5px 5px;
    white-space: nowrap;
}

.mobile-nav a.active {
    color: #0d5c2e;
    background: #e9ecef;
    border-radius: 4px;
}

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

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

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

#f_pst .bm_h h2 {
    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 #a8d5ba;
    resize: vertical;
    line-height: 1.6;
    font-family: inherit;
    outline: none;
}

#f_pst .pt:focus {
    border-color: #1e7e34;
    box-shadow: 0 0 3px rgba(30, 126, 52, 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;
}

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

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

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

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

.bml .xs2 a {
    color: var(--ft-primary);
    text-decoration: none;
    font-weight: 400;
}

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

#pgt {
    margin: 10px 0;
}

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

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

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

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

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    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);
    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-weight: 400;
    color: #1f2937;
}

.dialog-body {
    padding: 20px;
}

.dialog-body p {
    margin: 0;
    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 {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 400;
    transition: background 0.2s;
}

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

.cancel-btn {
    background: #e5e7eb;
    color: #374151;
    border: none;
    cursor: pointer;
    line-height: 26px;
}

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

.confirm-btn {
    background: #dc2626;
    color: white;
    border: none;
    cursor: pointer;
    line-height: 26px;
}

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

#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 {
    background-color: var(--ft-border);
    border-radius: var(--ft-radius-full);
}

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

.message-item {
    display: block !important;
    padding: 12px;
    border-bottom: 1px solid var(--ft-border-light);
    transition: background-color var(--ft-transition-fast);
    background-color: rgba(0, 83, 185, 0.02);
}

.message-item > div {
    display: block !important;
    width: 100% !important;
}

.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-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: var(--ft-radius-full);
    background-color: var(--ft-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-avatar-placeholder {
    color: var(--ft-muted-foreground);
}

.message-avatar-placeholder svg {
    width: 1.5rem;
    height: 1.5rem;
}

.message-content-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.message-preview {
    color: #0d5c2e;
    display: block;
    margin-bottom: 4px;
    width: 100%;
    font-size: 17px;
}

.message-header {
    display: block !important;
    margin-bottom: 8px;
}

.message-header a {
    display: inline !important;
    margin-left: 0 !important;
}

.message-header span.message-unread-badge {
    display: block !important;
    margin-left: 0 !important;
    margin-top: 4px;
}

.message-unread-badge {
    display: 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-title {
    margin-bottom: 0;
    margin-right: 0;
    color: #999;
    display: block;
    font-weight: 400;
}

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

.message-time {
    margin-bottom: 0;
    color: #999;
    display: block !important;
    width: 100%;
}

.message-container {
    justify-content: flex-start;
    border-bottom: 1px solid #e5e5e5;
}

.message-container:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.message-container.my-message > div > div:last-child {
    background-color: transparent;
}

.my-message {
    background-color: rgb(252, 252, 252);
}

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

.mb-4 {
    margin-bottom: 1rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
}

.message-container .text-gray-500 {
    color: #999;
}

.messages-container-padding {
    max-height: 75vh;
    min-height: 60vh;
}

#messageInput {
    min-height: 60px;
    padding: 8px;
}

.btn-secondary {
    white-space: nowrap;
    color: #0d5c2e;
}

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

/* ===== 10. 按钮样式 ===== */

.message-content {
    flex: 1;
    min-width: 0;
}

.message-sender {
    font-weight: 400;
    color: var(--ft-foreground);
}

.message-item.unread .message-sender {
    font-weight: 400;
    color: var(--ft-primary);
}

.message-subject {
    color: var(--ft-foreground);
    margin-bottom: 0.25rem;
    line-height: var(--ft-leading-normal);
}

.message-item.unread .message-subject {
    font-weight: 400;
}

.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-weight: 400;
    color: var(--ft-foreground);
    margin-bottom: 0.75rem;
}

.message-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    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;
    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;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

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

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

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

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

.flex-1 {
    flex: 1;
}

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

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

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

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

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

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

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

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

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

.rounded {
    border-radius: 0.25rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-xxs {
    font-size: 0.625rem;
}

#messageContainer a,
#messageContainer a:visited,
#messageContainer a:link {
    color: #1e7e34;
    text-decoration: none;
}

#messageContainer a {
    color: var(--ft-primary);
    text-decoration: none;
}

#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-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-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 {
    padding: 12px;
    border-bottom: 1px solid var(--ft-border-light);
    transition: background-color var(--ft-transition-fast);
}

.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 {
    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 {
    color: var(--ft-muted-foreground);
}

.conversation-unread-count {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    font-weight: 400;
    line-height: 1.25rem;
}

.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);
    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 {
    color: var(--ft-muted-foreground);
    margin-top: 0.25rem;
    text-align: right;
}

/* ===== 27. Quill 编辑器工具栏图标大小修复 ===== */
.ql-snow .ql-toolbar button svg,
.ql-toolbar button svg,
.ql-snow.ql-toolbar button svg,
.ql-toolbar.ql-snow button svg {
    height: 18px;
    width: 18px;
    max-height: 18px;
    max-width: 18px;
}

.ql-toolbar.ql-snow {
    padding: 0;
}

.ql-toolbar button,
.ql-toolbar.ql-snow button {
    margin-top: 0;
}

/* 移动端隐藏头像 */
/* .vm {
    display: none;
} */

/* 隐藏楼号 */
#postnum,
a[id^="postnum"] {
    display: none;
}

/* 移动端隐藏右侧容器（楼号容器） */
.plc .pi > div:last-child {
    display: none;
}

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

.edit-reply-mobile {
    display: inline-block;
}

.reply-edit-button {
    font-size: 12px;
    color: #666;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 400;
}

.reply-edit-button-small {
    font-size: 14px;
    font-weight: 400;
    padding: 6px 12px;
}

.topic-edit-button {
    font-size: 12px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
}

.topic-edit-button-small {
    font-size: 14px;
    font-weight: 400;
    padding: 6px 12px;
}

/* 桌面端隐藏移动端编辑链接 - not needed since entire file is mobile-only */

/* 咨询单列表移动端样式 */
/* 隐藏图标列 */
.tl_table .icn {
    display: none;
}

/* 隐藏作者、回复、最后回复列 */
.tl_table .by,
.tl_table .num {
    display: none;
}

/* 移动端元信息样式 */
.mobile-meta-info {
    font-size: 17px;
    color: #999;
    margin-top: 4px;
    display: block;
}

/* 消息页面移动端样式 */
.messages-container-padding {
    max-height: 75vh !important;
    min-height: 60vh !important;
}

#messageForm {
    padding: 8px !important;
}

#messageInput {
    min-height: 60px !important;
    padding: 8px !important;
}

.text-xs.text-gray-400 {
    color: #999 !important;
}

.plus-31days {
    color: #1e7e34;
    text-decoration: none;
    margin-left: 8px;
}

.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-weight: 400;
    color: var(--ft-foreground);
    margin-bottom: 0.5rem;
}

.messages-empty-description {
    color: var(--ft-muted-foreground);
    max-width: 20rem;
}

/* ===== 27. 错误页面样式 ===== */

.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-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-weight: 400;
    color: var(--ft-foreground);
    margin-bottom: 1rem;
}

.error-description {
    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(59, 130, 246, 0.1) 0%,
        rgba(0, 83, 185, 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);
}

/* ===== 28. 移动端简易版特有样式 ===== */

/* 容器全宽 */
.wp,
#wp {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
}

/* 隐藏桌面端元素 */
#toptb,
#hd,
#pt {
    display: none;
}

/* 面包屑导航移动端样式 */
.breadcrumb-container {
    padding: 10px 7px;
    border: 1px solid #ccc;
    margin-bottom: 0.5em;
}

/* 隐藏置顶标识 */
.mobile-hide {
    display: none;
}

/* 隐藏咨询单列表图标 */
.tl td.icn {
    display: none;
}

/* 隐藏论坛标题容器 */
.bm.bml.pbn {
    display: none;
}

/* 页脚简化 */
#ft .y p {
    text-align: center;
    padding: 15px 10px;
}

/* 版块表格 - 由各页面自行控制 */

/* 编辑器移动端样式 */
.editor-content {
    min-height: 350px;
}
.fl_i,
.fl_by {
    display: none;
}

.xg1,
.xg2 {
    color: #999;
    margin-top: 6px;
}

/* 帖子列表容器 */
.tl {
    margin: 0;
}
.tl table {
    display: block;
}
.tl thead {
    display: none;
}
.tl tbody {
    display: flex;
    flex-direction: column;
}
.tl tr {
    display: block;
    border-bottom: 1px solid #eee;
    background: #fff;
    padding-left: 0.5em;
}
.tl .icn {
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}
.tl .icn img {
    width: 16px;
    height: 16px;
}
.tl .xst {
    line-height: 1.5;
    display: inline;
    vertical-align: middle;
}

.tl .xst.font-bold {
    font-weight: bold;
}
.tl th,
.tl td:not(.icn):not(.o):not(.by):not(.num) {
    display: inline-block;
    width: auto;
    padding: 4px 0;
}

.tl td.icn {
    display: none;
}

.tl .tps {
    margin-left: 24px;
}
.tl .by,
.tl .num {
    display: none;
}

/* 帖子详情容器 */
.pl table {
    display: block;
}
.pl tbody {
    display: flex;
    flex-direction: column;
}
.pl tr {
    display: block;
    background: #fff;
    overflow: hidden;
}
.pls {
    display: block;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    padding: 10px 12px;
}
.favatar {
    padding: 0;
}
.tns,
.xl {
    display: none;
}
.plc {
    display: block;
    padding: 18px 8px 0px 7px;
}
.pct {
    min-height: auto;
    padding: 4px 0;
}
.pcb {
    line-height: 1.7;
}
.pcb img {
    max-width: 100%;
    height: auto;
}

/* 表格表单转块级 */
.tfm {
    display: block;
    width: 100%;
}
.tfm tbody {
    display: block;
}
.tfm tr {
    display: block;
    margin-bottom: 15px;
}
.tfm th {
    display: none;
}
.tfm td {
    display: block;
    width: 100%;
    padding: 0;
}

/* 输入控件 */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select,
.px,
.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 4px;
}

/* 确保 textarea 与 input 一样宽 */
textarea.form-input {
    width: 100%;
    box-sizing: border-box;
}

.pnc {
    width: auto;
}

.pipe {
    display: inline;
}
.pgs {
    margin: 15px 0;
    text-align: center;
}
.pgs a,
.pgs strong,
.pg a,
.pg strong {
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0 3px;
    margin: 2px;
}

/* 搜索栏 */
#scbar {
    padding: 10px;
}
#scbar form {
    flex-direction: column;
}
#scbar input[type="text"] {
    width: 100%;
    min-height: 44px;
    margin-bottom: 8px;
}
#scbar button {
    width: 100%;
    min-height: 44px;
}

/* 提示框 */
.alert,
.alert-error,
.alert-success,
.alert-info {
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 4px;
}

/* 认证页 */
.auth-container {
    padding: 10px;
}
.auth-card {
    padding: 20px 15px;
    border-radius: 8px;
}
.auth-title {
    margin-bottom: 20px;
    text-align: center;
}

.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;
}

.auth-btn-secondary:hover:not(:disabled) {
    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;
}
.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);
}

.bg-white {
    background-color: #fff;
}
.border-gray {
    border-color: #cdcdcd;
}
.edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
}
.quick-reply-link {
    color: #1e7e34;
    text-decoration: none;
    cursor: pointer;
    margin: 0 10px;
}

.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 {
    color: #1f2937;
}
.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 {
    color: #1f2937;
}
.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;
}

.auth-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.consult-item {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* 发帖表单 */
#f_pst {
    margin: 10px 0;
}
#f_pst .pt {
    width: 100%;
    min-height: 120px;
}
#f_pst .pnpost .y {
    float: none;
    text-align: center;
    margin-top: 10px;
}

/* 触摸优化 - 仅限导航/按钮类链接 */
#nv a,
.pn a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
}

a {
    color: #1e7e34;
}
.bm_h .o,
.cp_pls {
    display: none;
}

/* 论坛首页 - 蓝底标题 + 纯版块名列表 */
div.bm.bmw.fl div.bm_h {
    background: #b8860b;
    border-bottom: none;
    padding: 0 12px;
    height: 36px;
    line-height: 36px;
}

div.bm.bmw.fl div.bm_h h2 {
    line-height: 36px;
    font-weight: 400;
    margin: 0;
    color: #fff;
}

div.bm.bmw.fl div.bm_h h2 a {
    color: #fff;
    text-decoration: none;
}

div.bm.bmw.fl {
    border: none;
    background: transparent;
}
div.bm.bmw.fl div.bm_c {
    padding: 0;
    background: #fff;
}
div.bm.bmw.fl table.fl_tb {
    width: 100%;
    table-layout: auto;
    border: none;
}
div.bm.bmw.fl table.fl_tb td {
    padding: 0;
    border: none;
    background: #fff;
    vertical-align: middle;
}
div.bm.bmw.fl table.fl_tb tbody tr {
    border: none;
}

div.bm.bmw.fl table.fl_tb td.fl_icn,
div.bm.bmw.fl table.fl_tb td.fl_i,
div.bm.bmw.fl table.fl_tb td.fl_by {
    display: none;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

div.bm.bmw.fl table.fl_tb td:nth-child(2) {
    padding: 2px 12px;
    display: block;
    width: auto;
}

div.bm.bmw.fl table.fl_tb h2 {
    font-weight: 400;
    margin: 0;
    padding: 3px 0;
    line-height: 1.4;
}

div.bm.bmw.fl table.fl_tb h2 a {
    color: #0d5c2e; /* 使用更深的蓝色 */
    text-decoration: none;
    display: block;
    padding: 0;
    line-height: 1.25;
}

div.bm.bmw.fl .forum-description,
div.bm.bmw.fl .forum-moderator {
    display: none;
}

/* 移动端子版块图标缩小 */
#sub_forum .sub-forum-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* 移动端 consult-form 页面布局 */
#consultContainer {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 140px);
}

#consultContainer .bg-white {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#consultContainer form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#consultContainer form > div:first-child {
    flex: 1;
    min-height: 200px;
}

#consultContainer textarea {
    min-height: 200px;
    max-height: calc(100vh - 200px);
    height: auto;
    width: 100%;
}

#consultContainer .pt-4 {
    flex-shrink: 0;
    padding: 16px 0;
}

/* ===== 咨询单表单样式 ===== */

/* 表单字段容器 */
.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;
}

tr.auto-reply-post .t_f {
    color: #b8860b !important;
}
