/**
* 发布站系统 - Frontend Styles
* 
* 信息发布页面表格样式、置顶动画、筛选控件、模态框等
* 
* @package Zib_Pages
* @version 3.2.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-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 {
background: #f9f9f9;
}
.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: #d32f2f;
    font-weight: 700;
}

/* 信息名称特别突出 */
.zib-pages-table tbody tr.is-pinned-glow .server-name {
    color: #d32f2f;
    font-weight: 700;
}

/* 简介文字红色 */
.zib-pages-table tbody tr.is-pinned-glow .desc-text {
    color: #d32f2f;
}

/* ============================================
   模块3: 按钮样式
   ============================================ */

.info-badge {
display: inline-flex;
align-items: center;
justify-content: center;
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: #000;
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; }
.admin-actions a:hover { color: #fff !important; }

/* 表格横向滚动容器（所有设备） */
.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;
    transition: opacity 0.2s ease;
}

/* AJAX 分页加载状态 */
.zib-pages-table-wrapper.is-loading {
    opacity: 0.6 !important;
    pointer-events: none;
}
.zib-pages-pagination-container.is-loading {
    opacity: 0.6 !important;
    pointer-events: none;
}

/* 表格横向滚动滑块样式（所有设备） */
.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;
    }
}

.text-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================
   模块4: 筛选控件
   ============================================ */

/* 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;
}


/* ============================================
   模块5: 用户链接与头像
   ============================================ */

/* 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;
}

/* 信息区用户操作区（复用工作台头像名字组件，缩小尺寸） */
.entry-user-info {
display: inline-flex;
align-items: center;
gap: 6px;
vertical-align: middle;
max-width: 100%;
}
.entry-user-info .user-avatar-wrap {
width: 26px;
height: 26px;
flex-shrink: 0;
}
.entry-user-info .user-avatar-wrap img:first-child {
width: 26px;
height: 26px;
}
.entry-user-info .user-avatar-wrap img.avatar-badge {
bottom: -3px;
right: -1px;
width: 12px;
height: 12px;
}
.entry-user-info .display-name {
font-size: 13px;
font-weight: 600;
}
/* 信息区图标缩小（会员/成就/等级等字体图标） */
.entry-user-info i {
font-size: 11px;
}

/* 用户信息折叠按钮 */
.zib-user-toggle-btn {
display: block;
width: 100%;
padding: 12px 20px;
font-size: 16px;
font-weight: 700;
background: linear-gradient(135deg, #a8d8ea 0%, #87ceeb 100%);
color: #e60012;
border: none;
border-radius: 25px;
cursor: pointer;
box-shadow: 0 2px 12px rgba(135,206,235,0.35);
letter-spacing: 1px;
transition: all 0.3s ease;
}
.zib-user-toggle-btn:hover {
background: linear-gradient(135deg, #87ceeb 0%, #5bb8d4 100%);
box-shadow: 0 4px 18px rgba(135,206,235,0.5);
transform: translateY(-1px);
}
.zib-user-toggle-btn:active {
transform: translateY(0);
box-shadow: 0 2px 8px rgba(135,206,235,0.3);
}

/* ============================================
   模块7: 移动端适配
   ============================================ */

/* ===== 移动端适配样式 ===== */

/* 筛选控件移动端适配 */
@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: 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;
max-height: 60vh !important;
overflow-y: auto !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;
}
}

/* ============================================
   用户统计区按钮样式
   ============================================ */

.zib-btn-refresh {
	background: #2ecc71 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 8px 16px !important;
	font-size: 14px !important;
	font-weight: bold !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3) !important;
	text-decoration: none !important;
	line-height: 1.4 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}
.zib-btn-refresh:hover {
	background: #27ae60 !important;
	box-shadow: 0 4px 15px rgba(46, 204, 113, 0.5) !important;
	transform: translateY(-2px) !important;
}

.zib-btn-publish {
	background: #3498db !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 8px 16px !important;
	font-size: 14px !important;
	font-weight: bold !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3) !important;
	text-decoration: none !important;
	line-height: 1.4 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}
.zib-btn-publish:hover {
	background: #2980b9 !important;
	box-shadow: 0 4px 15px rgba(52, 152, 219, 0.5) !important;
	transform: translateY(-2px) !important;
}

.zib-btn-template {
	background: #e74c3c !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 8px 16px !important;
	font-size: 14px !important;
	font-weight: bold !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3) !important;
	text-decoration: none !important;
	line-height: 1.4 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}
.zib-btn-template:hover {
	background: #c0392b !important;
	box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5) !important;
	transform: translateY(-2px) !important;
}

/* ============================================
   发布站访问统计展示
   ============================================ */
.zib-pages-visit-stats {
	margin: 20px 0;
	padding: 16px 20px;
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border: 1px solid #bae6fd;
	border-radius: 10px;
}
.zib-pages-visit-summary {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 15px;
	color: #0c4a6e;
}
.zib-pages-visit-summary .visit-icon {
	font-size: 20px;
}
.zib-pages-visit-summary .visit-total {
	font-size: 24px;
	font-weight: 700;
	color: #0369a1;
}
.zib-pages-visit-summary .visit-detail {
	font-size: 13px;
	color: #0369a1;
}
.zib-pages-visit-summary .visit-detail strong {
	color: #0c4a6e;
}
.zib-pages-visit-top {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #bae6fd;
}
.visit-top-title {
	font-size: 15px;
	font-weight: 600;
	color: #0c4a6e;
	margin-bottom: 10px;
}
.visit-top-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 8px;
}
.visit-top-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 6px;
	transition: background 0.2s;
}
.visit-top-item:hover {
	background: rgba(255, 255, 255, 1);
}
.visit-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	background: #e2e8f0;
	flex-shrink: 0;
}
.visit-rank.rank-1 { background: #fbbf24; color: #fff; }
.visit-rank.rank-2 { background: #94a3b8; color: #fff; }
.visit-rank.rank-3 { background: #d97706; color: #fff; }
.visit-name {
	flex: 1;
	font-size: 13px;
	color: #0c4a6e;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.visit-name:hover {
	color: #0369a1;
	text-decoration: underline;
}
.visit-count {
	font-size: 12px;
	color: #0369a1;
	font-weight: 600;
	flex-shrink: 0;
}
@media (max-width: 600px) {
	.visit-top-list {
		grid-template-columns: 1fr;
	}
}

