/**
* Zib Pages Plugin - Frontend Styles
* 
* 信息发布页面表格样式、置顶动画、筛选控件、模态框等
* 
* @package Zib_Pages
* @version 1.0.0
*/

/* ============================================
用户统计卡片样式
============================================ */

/* ============================================
   模块1: 用户统计卡片
   - 渐变背景卡片样式
   - 用户信息展示
   - 发布/置顶/刷新统计
   - 响应式布局
   ============================================ */

.user-stats-card {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 12px;
padding: 16px;
margin-bottom: 20px;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
overflow: visible;
}
.user-info-header {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 14px;
margin-bottom: 12px;
}
.user-avatar-link { flex-shrink: 0; }
.user-info-text { flex: 1; min-width: 0; text-align: center; }
.user-name-row {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.user-name {
font-size: 16px;
font-weight: bold;
}
/* 用户统计区用户名（子比主题函数返回的.display-name） */
.user-info-header .display-name {
font-size: 16px;
font-weight: bold;
}
.fabu-button {
flex-shrink: 0;
}
.fabu-button .but {
background: #e74c3c;
color: #fff;
border: none;
padding: 6px 12px;
border-radius: 4px;
font-size: 12px;
font-weight: bold;
text-decoration: none;
transition: all 0.2s;
}
.fabu-button .but:hover {
background: #c0392b;
}

.vip-badge {
padding: 2px 8px;
border-radius: 10px;
font-size: 11px;
font-weight: bold;
}
.vip-badge.admin { background: #e74c3c; color: #fff; }
.vip-badge.diamond { background: #3498db; color: #fff; }
.vip-badge.gold { background: #f39c12; color: #fff; }
.vip-badge.normal { background: rgba(255,255,255,0.2); color: #fff; }

.user-stats-row {
display: flex;
flex-wrap: nowrap;
justify-content: center;
gap: 20px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: thin;
scrollbar-color: rgba(255,255,255,0.3) transparent;
scroll-snap-type: x mandatory;
overscroll-behavior-x: contain;
-ms-overflow-style: none;
}
.user-stats-row::-webkit-scrollbar {
height: 6px;
}
.user-stats-row::-webkit-scrollbar-track {
background: rgba(255,255,255,0.1);
border-radius: 3px;
}
.user-stats-row::-webkit-scrollbar-thumb {
background: rgba(255,255,255,0.3);
border-radius: 3px;
}
.stat-item {
background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.10) 100%);
padding: 8px 14px 6px;
border-radius: 14px;
min-width: 180px;
flex: 1;
text-align: center;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
border: 1px solid rgba(255,255,255,0.15);
}

/* 移动端统计卡片横向滚动 */
@media (max-width: 768px) {
.user-stats-row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    scroll-behavior: smooth;
    scroll-padding-left: 0;
    -webkit-scroll-snap-type: x proximity;
    scroll-snap-type: x proximity;
}
/* 确保第一个卡片左边有空间 */
.stat-item:first-child {
    margin-left: 8px !important;
}
/* 最后一个卡片右边有空间 */
.stat-item:last-child {
    margin-right: 8px !important;
}
.stat-item {
    min-width: 240px !important;
    max-width: 240px !important;
    width: 240px !important;
    flex: none !important;
    flex-shrink: 0 !important;
    padding: 12px 14px 8px !important;
    scroll-snap-align: start !important;
    text-align: left !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
}
.stat-title {
    font-size: 14px !important;
}
.stat-total {
    font-size: 13px !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.stat-total b {
    font-size: 20px !important;
}
.stat-detail {
    font-size: 12px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
}
.stat-header {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-bottom: 8px;
padding-bottom: 6px;
border-bottom: 2px solid rgba(255,215,0,0.4);
}
.stat-header i {
color: #ffd700;
font-size: 16px;
}
.stat-title {
color: #fff;
font-size: 15px;
font-weight: bold;
letter-spacing: 1px;
}
.stat-total {
color: rgba(255,255,255,0.95);
font-size: 14px;
margin-bottom: 4px;
line-height: 1.3;
}
.stat-total b {
color: #ffd700;
font-size: 24px;
font-weight: bold;
margin: 0 4px;
text-shadow: 0 2px 8px rgba(255,215,0,0.5);
}
.stat-detail {
color: rgba(255,255,255,0.8);
font-size: 14px;
margin-top: 4px;
}
.stat-row {
display: flex;
align-items: center;
gap: 8px;
margin-top: 2px;
font-size: 13px;
padding: 1px 0;
line-height: 1.2;
}
.stat-row .label {
color: rgba(255,255,255,0.75);
font-size: 14px;
}
.stat-row .value {
color: #fff;
font-weight: 600;
font-size: 15px;
}
.stat-row .badge {
padding: 2px 6px;
border-radius: 12px;
font-size: 11px;
font-weight: bold;
margin-left: auto;
}
.stat-row .badge.permanent {
background: rgba(46, 204, 113, 0.35);
color: #2ecc71;
border: 1px solid rgba(46, 204, 113, 0.6);
font-weight: bold;
}
.stat-row .badge.countdown {
background: rgba(241, 196, 15, 0.35);
color: #f1c40f;
border: 1px solid rgba(241, 196, 15, 0.6);
font-weight: bold;
}
.stat-row .badge.daily {
background: rgba(231, 76, 60, 0.2);
color: #e74c3c;
border: 1px solid rgba(231, 76, 60, 0.5);
font-weight: bold;
}
.stat-row.system .label { color: rgba(46, 204, 113, 0.8); }
.stat-row.purchased .label { color: rgba(241, 196, 15, 0.8); }
.stat-row.used .label { color: rgba(180, 200, 220, 0.9); }
.stat-row.remaining .label { color: rgba(231, 76, 60, 0.9); }
.badge.instant {
background: rgba(155, 89, 182, 0.35);
color: #9b59b6;
border: 1px solid rgba(155, 89, 182, 0.6);
font-weight: bold;
}
.c-red { color: #ff6b6b; }

@media (max-width: 576px) {
.user-stats-card { padding: 12px; }
.user-info-header { gap: 10px; margin-bottom: 10px; }
.user-avatar-wrap { width: 36px; height: 36px; }
.user-name { font-size: 14px; }
.user-stats-row { gap: 10px; }
.stat-total { font-size: 14px; }
.stat-total b { font-size: 24px; }
.stat-row { font-size: 13px; gap: 6px; }
.stat-row .badge { font-size: 11px; padding: 3px 6px; }
}

/* ============================================
   模块2: 模态框定位修复
   - 居中显示修正
   - 适配子比主题模态框
   ============================================ */

.zib-modal-box, .zib-modal-overlay .zib-modal-box, .zib-modal-wrap, .zib-modal, .m-box, .m-mask .m-box, .zib-modal-overlay {
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
bottom: auto !important;
right: auto !important;
position: fixed !important;
}
.zib-modal-overlay, .zib-modal, .m-mask {
display: flex !important;
align-items: center !important;
justify-content: center !important;
position: fixed !important;
}
.zib-modal-box, .m-box {
margin: 0 auto !important;
}
/* ============================================
   模块3: 信息列表表格
   - 表格布局与边框
   - 表头样式
   - 单元格样式
   - 置顶火焰特效
   ============================================ */

/* 搜索框提示文字样式 */
#zib-filter-search::placeholder {
font-size: 11px;
}
#zib-filter-search::-webkit-input-placeholder {
font-size: 11px;
}
#zib-filter-search::-moz-placeholder {
font-size: 11px;
}
#zib-filter-search::-ms-input-placeholder {
font-size: 11px;
}

.zib-pages-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
.zib-pages-table thead tr {
background: #e8f4fd;
border-top: 1px solid #000;
} 
.zib-pages-table thead th {
font-weight: 900;
font-size: 18px;
padding: 8px 3px;
color: #1a1a1a;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-right: 1px solid #000;
border-top: 1px solid #000;
background: #e8f4fd;
height: 40px;
line-height: 24px;
}
.zib-pages-table thead th:last-child {
  border-right: 1px solid #000;
}
.zib-pages-table thead th:first-child {
  border-left: 1px solid #000;
}
/* 表尾样式（与表头一致） */
.zib-pages-table tfoot tr {
background: #e8f4fd;
border-top: 1px solid #000;
}
.zib-pages-table tfoot th {
font-weight: 900;
font-size: 18px;
padding: 8px 3px;
color: #1a1a1a;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
background: #e8f4fd;
height: 40px;
line-height: 24px;
}
.zib-pages-table tfoot th:last-child {
  border-right: 1px solid #000;
}
.zib-pages-table tfoot th:first-child {
  border-left: 1px solid #000;
}
.zib-pages-table tbody tr {
background: #fff;
border-bottom: 1px solid #000;
transition: all 0.2s ease;
}
.zib-pages-table tbody tr:first-child {
border-top: 1px solid #000;
}
.zib-pages-table tbody tr:hover {
box-shadow: none;
}
.zib-pages-table tbody td {
padding: 8px 3px;
text-align: center;
vertical-align: middle;
overflow: hidden;
border-right: 1px solid #000;
font-size: 14px;
font-weight: 600;
color: #333;
}
.zib-pages-table tbody td:first-child {
  border-left: 1px solid #000;
}
.zib-pages-table tbody td:last-child {
  border-right: 1px solid #000;
}
/* ===== 置顶样式 - 强烈突出显示 ===== */
/* 设计理念：通过明暗对比和视觉重量突出置顶信息 */
.zib-pages-table tbody tr.is-pinned-glow {
    /* 深黄色背景 + 深色文字 - 强对比 */
    background: #ffeb3b;
    
    /* 所有文字加粗 */
    font-weight: 700;
}

/* 置顶行单元格样式 */
.zib-pages-table tbody tr.is-pinned-glow td {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 15px;
}

/* 信息名称特别突出 */
.zib-pages-table tbody tr.is-pinned-glow .server-name {
    color: #d32f2f;
    font-size: 16px;
    font-weight: 900;
}

/* 简介文字加粗 */
.zib-pages-table tbody tr.is-pinned-glow .desc-text {
    color: #333;
    font-weight: 600;
}

/* ============================================
   模块4: 按钮样式
   - 下载/详情/注册按钮
   - QQ客服链接
   - 操作按钮交互效果
   ============================================ */

.info-badge {
display: inline-flex;
align-items: center;
justify-content: center;
background: transparent;
color: #555;
padding: 0;
border-radius: 0;
font-size: 13px;
font-weight: normal;
white-space: nowrap;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
border: none;
}
.server-name { font-size: 14px; font-weight: bold; color: #333; }

.desc-text {
display: block;
font-size: 13px;
color: #666;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}

.action-btn {
padding: 3px 10px;
font-size: 13px;
font-weight: bold;
border-radius: 4px;
display: inline-flex;
align-items: center;
white-space: nowrap;
margin: 1px;
line-height: 1.4;
}
.btn-download { background: #eef4ff; color: #2d6eff; }
.btn-download:hover { background: #2d6eff; color: #fff; }
.btn-detail { background: #fff3e0; color: #e65100; }
.btn-detail:hover { background: #e65100; color: #fff; }
.btn-register { background: #e8f5e9; color: #2e7d32; }
.btn-register:hover { background: #2e7d32; color: #fff; }

/* QQ Link */
.qq-link {
padding: 3px 10px;
font-size: 13px;
font-weight: bold;
border-radius: 4px;
display: inline-flex;
align-items: center;
white-space: nowrap;
text-decoration: none;
background: #e8f5e9;
color: #2e7d32;
transition: all 0.2s;
}
.qq-link:hover {
background: #2e7d32;
color: #fff;
}


/* Admin Actions */
.admin-actions {
display: none;
font-size: 12px;
margin-top: 4px;
}
.zib-pages-table tbody tr:hover .admin-actions {
display: block;
}
.admin-actions a { margin: 0 4px; }

/* 表格横向滚动容器（所有设备） */
.zib-pages-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.3) transparent;
}

/* 表格横向滚动滑块样式（所有设备） */
.zib-pages-table-wrapper::-webkit-scrollbar {
    height: 6px;
}
.zib-pages-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}
.zib-pages-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
}
.zib-pages-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}

/* 移动端顶部滑块指示器 */
.zib-pages-table-scroll-indicator {
    display: none;
}

@media (max-width: 768px) {
    .zib-pages-table-scroll-indicator {
        display: block;
        height: 6px;
        background: rgba(0,0,0,0.1);
        border-radius: 3px;
        position: sticky;
        top: 0;
        z-index: 10;
        overflow: hidden;
    }
    .zib-pages-table-scroll-indicator::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 30%;
        background: rgba(0,0,0,0.3);
        border-radius: 3px;
        transition: left 0.05s ease, width 0.05s ease;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
.zib-pages-table {
    min-width: 800px; /* 确保表格宽度足够，不会被压缩 */
}
/* 表头保持显示，但调整字体大小 */
.zib-pages-table thead th {
    font-size: 14px !important;
    padding: 8px 6px !important;
}
/* 表尾样式（与表头一致） */
.zib-pages-table tfoot th {
    font-size: 14px !important;
    padding: 8px 6px !important;
}
/* 单元格内容优化 */
.zib-pages-table tbody td {
    padding: 6px 8px !important;
    font-size: 13px !important;
}
/* 转跳网址按钮缩小 */
.action-btn {
    padding: 2px 6px !important;
    font-size: 11px !important;
    margin: 1px !important;
    line-height: 1.3 !important;
}
.admin-actions { display: block; }
}

.text-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================
   模块5: 筛选控件
   - 分类筛选下拉
   - 搜索框
   - 响应式布局
   ============================================ */

/* Filter Bar */
.zib-pages-filter {
    background: #e8f4fd;
    border-radius: 8px;
    padding: 12px 15px;
    border: 2px solid #3498db;
    margin-bottom: 15px;
}
.zib-pages-filter span,
.zib-pages-filter select,
.zib-pages-filter input {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
/* 搜索框placeholder单独设小 */
.zib-pages-filter input::placeholder {
    font-size: 14px;
}


.badge.daily {
background: rgba(231, 76, 60, 0.2);
color: #e74c3c;
border: 1px solid rgba(231, 76, 60, 0.5);
font-weight: bold;
}

/* ============================================
   模块6: 用户链接与头像
   - 条目作者链接
   - 用户统计区头像
   - 徽章显示
   ============================================ */

/* Entry Author Link (用户操作区头像+名字) */
.entry-author-link {
display: inline-flex;
align-items: center;
text-decoration: none;
font-weight: 600;
}
.entry-author-link:hover {
opacity: 0.85;
}
/* 用户操作区用户名（子比主题函数返回的.display-name） */
.entry-author-link .display-name {
font-size: 13px;
}

/* 用户操作区整块单元格渐变背景 */
.user-ops-cell {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
background-clip: padding-box !important;  /* 不遮住边框 */
}
.entry-avatar {
position: relative;
width: 26px;
height: 26px;
margin-right: 5px;
overflow: visible;
flex-shrink: 0;
}
.entry-avatar img:first-child {
width: 26px;
height: 26px;
border-radius: 50%;
}
.entry-avatar img.avatar-badge {
position: absolute;
bottom: -4px;
right: -4px;
width: 14px;
height: 14px;
}
.entry-author-name {
font-size: 13px;
white-space: nowrap;
}

/* User Stats Card Avatar (用户统计区头像) */
.user-avatar-wrap {
position: relative;
width: 36px;
height: 36px;
overflow: visible;
}
.user-avatar-wrap img:first-child {
width: 36px;
height: 36px;
border-radius: 50%;
}
.user-avatar-wrap img.avatar-badge {
position: absolute;
bottom: -10px;
right: -2px;
width: 16px;
height: 16px;
}

/* ============================================
   模块7: 跑马灯公告
   - 渐变彩虹文字
   - 滚动动画
   ============================================ */

/* 跑马灯公告样式 */
.announcement-marquee {
margin-bottom: 10px;
}
.announcement-text {
margin: 0;
background: -webkit-linear-gradient(left, #ffffff, #ff0000 6.25%, #ff7d00 12.5%, #ffff00 18.75%, #00ff00 25%, #00ffff 31.25%, #0000ff 37.5%, #ff00ff 43.75%, #ffff00 50%, #ff0000 56.25%, #ff7d00 62.5%, #ffff00 68.75%, #00ff00 75%, #00ffff 81.25%, #0000ff 87.5%, #ff00ff 93.75%, #ffff00 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 200% 100%;
animation: announcement-gradient 2s infinite linear;
}
@keyframes announcement-gradient {
0% { background-position: 0 0; }
100% { background-position: -100%, 0; }
}

/* ============================================
   模块8: 移动端适配
   - 筛选控件响应式
   - 表格移动端布局
   - 统计卡片响应式
   ============================================ */

/* ===== 移动端适配样式 ===== */

/* 筛选控件移动端适配 */
@media (max-width: 768px) {
/* 筛选区域支持横向滚动 */
.zib-pages-filter {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    padding-bottom: 8px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(0,0,0,0.3) transparent !important;
}
/* 滑块样式 */
.zib-pages-filter::-webkit-scrollbar {
    height: 6px !important;
}
.zib-pages-filter::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1) !important;
    border-radius: 3px !important;
}
.zib-pages-filter::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3) !important;
    border-radius: 3px !important;
}
/* 隐藏中间标题，避免遮挡控件 */
.zib-pages-filter > div[style*="position:absolute"] {
    display: none;
}
/* 筛选控件容器 */
.zib-pages-filter > div[style*="display:flex"] {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: auto !important;
}
/* 确保所有筛选元素不换行 */
.zib-pages-filter span,
.zib-pages-filter select,
.zib-pages-filter input,
.zib-pages-filter button,
.zib-pages-filter a {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
/* 搜索框固定宽度 */
#zib-filter-search {
    width: 140px !important;
    min-width: 140px !important;
}
/* 下拉框固定宽度 */
#zib-filter-category {
    width: 120px !important;
    min-width: 120px !important;
}
}

/* 用户信息头部按钮移动端适配 */
@media (max-width: 576px) {
.user-info-header {
flex-wrap: wrap;
}
.fabu-buttons {
width: 100%;
justify-content: center;
margin-top: 8px;
}
.fabu-buttons .but {
padding: 8px 16px;
font-size: 13px;
}
}

/* 跑马灯公告移动端适配 */
@media (max-width: 576px) {
.announcement-marquee {
padding: 8px !important;
margin-bottom: 8px;
}
.announcement-text {
font-size: 16px !important;
}
marquee {
padding: 0;
}
}

/* 后台模态框移动端适配 */
@media (max-width: 768px) {
#edit-modal > div,
#export-modal > div,
#import-modal > div,
#clear-data-modal > div {
width: 95% !important;
max-width: 95% !important;
min-width: auto !important;
padding: 20px !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
}
}

/* 表格移动端操作按钮优化 */
@media (max-width: 768px) {
.zib-pages-table tbody td {
border-bottom: 1px solid #f0f0f0;
padding: 10px;
}
.action-btn {
padding: 4px 12px;
margin: 2px;
}
}

/* ============================================
   弹窗移动端全面适配
   - 前端购买弹窗
   - 后台管理弹窗
   - 表单控件优化
   - 按钮触摸优化
   ============================================ */

/* 移动端弹窗容器 */
@media (max-width: 768px) {
/* 子比主题模态框容器 */
.modal-body {
padding: 15px !important;
}

.modal-header {
padding: 15px !important;
font-size: 16px !important;
}

/* 支付方式选择区域 */
.payment-method-radio {
min-height: 48px !important;
padding: 12px 16px !important;
font-size: 15px !important;
}

.payment-method-radio .em12 {
font-size: 20px !important;
}

/* 支付金额显示框 */
.muted-box.padding-h10 {
padding: 12px !important;
font-size: 15px !important;
}

.muted-box .em14 {
font-size: 18px !important;
}

/* 不足提示 */
.muted-box a.but {
padding: 10px !important;
font-size: 14px !important;
}

/* 支付按钮 */
button.initiate-pay {
min-height: 48px !important;
font-size: 16px !important;
padding: 12px 20px !important;
}

/* 底部操作按钮 */
.modal-body .flex.mt10 {
flex-direction: column !important;
gap: 10px !important;
}

.modal-body .flex.mt10 > a,
.modal-body .flex.mt10 > button {
width: 100% !important;
min-height: 48px !important;
font-size: 15px !important;
padding: 12px 16px !important;
margin: 0 !important;
}

/* 下拉选择框 */
select {
min-height: 44px !important;
font-size: 16px !important;
padding: 10px 12px !important;
}

/* 输入框 */
input[type="text"],
input[type="number"],
input[type="url"] {
min-height: 44px !important;
font-size: 16px !important;
padding: 10px 12px !important;
}

/* 文本域 */
textarea {
font-size: 16px !important;
padding: 10px 12px !important;
}

/* 限购提示框 */
.modal-body .text-center {
padding: 15px !important;
font-size: 15px !important;
line-height: 1.6 !important;
}

/* 价格显示 */
.pay-price-text {
font-size: 16px !important;
}

.pay-price-text .px12 {
font-size: 14px !important;
}

/* 管理员操作提示 */
.muted-box .c-yellow {
font-size: 14px !important;
line-height: 1.5 !important;
padding: 10px !important;
}

/* 信息详情展示 */
.muted-box.padding-h6 {
padding: 12px !important;
}

.muted-box .em14 {
font-size: 17px !important;
}

/* 复选框 */
input[type="checkbox"] {
width: 20px !important;
height: 20px !important;
min-height: 20px !important;
}

/* 单选按钮 */
input[type="radio"] {
width: 20px !important;
height: 20px !important;
min-height: 20px !important;
}
}

/* 小屏幕手机优化 */
@media (max-width: 576px) {
.modal-body {
padding: 12px !important;
}

.modal-header {
padding: 12px !important;
font-size: 15px !important;
margin-bottom: 10px !important;
}

/* 支付方式按钮更紧凑 */
.payment-method-radio {
min-height: 44px !important;
padding: 10px 12px !important;
font-size: 14px !important;
}

/* 支付按钮 */
button.initiate-pay {
min-height: 44px !important;
font-size: 15px !important;
padding: 10px 16px !important;
}

/* 底部按钮 */
.modal-body .flex.mt10 > a,
.modal-body .flex.mt10 > button {
min-height: 44px !important;
font-size: 14px !important;
padding: 10px 14px !important;
}

/* 信息展示 */
.muted-box .em14 {
font-size: 16px !important;
}

/* 标签文字 */
.muted-2-color {
font-size: 14px !important;
}

/* ============================================
   子比主题弹窗关闭按钮优化
   - 确保移动端有关闭按钮
   ============================================ */

/* 移动端弹窗头部关闭按钮 */
@media (max-width: 768px) {
/* 确保关闭按钮可见 */
.modal-header .close,
.modal-header .modal-close,
.modal .close-btn {
display: block !important;
opacity: 1 !important;
visibility: visible !important;
min-width: 44px !important;
min-height: 44px !important;
font-size: 24px !important;
line-height: 44px !important;
}

/* 底部弹出弹窗的关闭按钮 */
.modal-bottom .close,
.modal-bottom .modal-close {
position: absolute !important;
top: 10px !important;
right: 10px !important;
z-index: 10 !important;
}

/* 弹窗内容最大高度 */
.modal-body {
max-height: 80vh !important;
overflow-y: auto !important;
}

/* 底部弹出弹窗优化 */
.modal-bottom {
max-height: 85vh !important;
border-radius: 12px 12px 0 0 !important;
}
}

@media (max-width: 576px) {
/* 小屏幕弹窗头部 */
.modal-header .close,
.modal-header .modal-close {
font-size: 22px !important;
min-width: 40px !important;
min-height: 40px !important;
line-height: 40px !important;
}
}

/* ============================================
   后台管理弹窗移动端适配
   - WordPress后台专用
   ============================================ */

@media (max-width: 768px) {
/* 后台模态框标题 */
#edit-modal h2,
#export-modal h2,
#import-modal h2,
#clear-data-modal h2 {
font-size: 15px !important;
margin-bottom: 15px !important;
}

/* 后台模态框内容区域 */
#edit-modal > div,
#export-modal > div,
#import-modal > div,
#clear-data-modal > div {
max-height: 80vh !important;
overflow-y: auto !important;
}

/* 后台表单标签 */
#edit-modal label,
#export-modal label,
#import-modal label {
font-size: 14px !important;
margin-bottom: 8px !important;
}

/* 后台输入框 */
#edit-modal input[type="text"],
#edit-modal input[type="url"],
#edit-modal input[type="datetime-local"],
#export-modal input,
#import-modal input {
font-size: 16px !important;
min-height: 44px !important;
padding: 10px 12px !important;
}

/* 后台下拉框 */
#edit-modal select,
#export-modal select,
#import-modal select {
font-size: 16px !important;
min-height: 44px !important;
padding: 10px 12px !important;
}

/* 后台按钮 */
#edit-modal button,
#export-modal button,
#import-modal button,
#clear-data-modal button {
min-height: 44px !important;
font-size: 15px !important;
padding: 10px 20px !important;
}

/* 后台按钮区域 */
#edit-modal .text-right,
#export-modal .text-right,
#import-modal .text-right,
#clear-data-modal .text-right {
text-align: center !important;
}

#edit-modal .text-right button,
#export-modal .text-right button,
#import-modal .text-right button {
margin: 5px !important;
}

/* 用户搜索结果 */
#user-search-results {
max-height: 150px !important;
}

/* 日期范围输入 */
#export-modal .flex,
#import-modal .flex {
flex-direction: column !important;
gap: 10px !important;
}

#export-modal .flex input,
#import-modal .flex input {
width: 100% !important;
}

/* 清空数据复选框 */
#clear-data-modal input[type="checkbox"] {
width: 20px !important;
height: 20px !important;
margin-right: 8px !important;
}

#clear-data-modal label {
font-size: 14px !important;
padding: 8px 0 !important;
}
}

@media (max-width: 576px) {
/* 后台模态框更紧凑 */
#edit-modal > div,
#export-modal > div,
#import-modal > div,
#clear-data-modal > div {
padding: 15px !important;
}

#edit-modal h2,
#export-modal h2,
#import-modal h2,
#clear-data-modal h2 {
font-size: 14px !important;
}

/* 后台输入框 */
#edit-modal input,
#export-modal input,
#import-modal input {
font-size: 15px !important;
min-height: 40px !important;
}

/* 后台按钮 */
#edit-modal button,
#export-modal button,
#import-modal button,
#clear-data-modal button {
min-height: 40px !important;
font-size: 14px !important;
padding: 8px 16px !important;
}
}

