/*
Theme Name: Yunduans SaaS Theme
Theme URI: #
Description: 万人资源整合平台风格的橙色侧边栏 SaaS 后台主题，基于 Yunduans.com 设计复刻
Author: Custom
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
License: Private
Text Domain: yunduans
*/

/* ─── 基础 ─────────────────────────────────────────── */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ─── 侧边栏滚动条美化 ───────────────────────────────── */
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: rgba(0,0,0,.1); }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 2px; }

/* ─── 数据表格 ───────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: #f9fafb;
  padding: 10px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fff7ed; }

/* ─── 状态 Badge ─────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 10px; border-radius: 9999px;
  font-size: 12px; font-weight: 500;
}
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-danger  { background: #fee2e2; color: #dc2626; }
.badge-warning { background: #fef9c3; color: #ca8a04; }
.badge-info    { background: #dbeafe; color: #2563eb; }
.badge-default { background: #f3f4f6; color: #6b7280; }

/* ─── 分页 ───────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 4px; }
.pagination a,
.pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  font-size: 13px; border: 1px solid #e5e7eb;
  color: #374151; text-decoration: none; transition: all .15s;
}
.pagination a:hover    { border-color: #f97316; color: #f97316; }
.pagination .current   { background: #f97316; border-color: #f97316; color: #fff; }

/* ─── WordPress 正文排版 ─────────────────────────────── */
.wp-content h2 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 .75rem; color: #1f2937; }
.wp-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 .5rem; color: #374151; }
.wp-content p  { margin-bottom: .75rem; line-height: 1.7; color: #4b5563; }
.wp-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: .75rem; }
.wp-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: .75rem; }
.wp-content li { margin-bottom: .25rem; color: #4b5563; }
.wp-content a  { color: #f97316; text-decoration: underline; }
.wp-content a:hover { color: #ea580c; }
