/* ===== 中医四诊工具箱 全局样式 ===== */
/* 重置所有 WordPress 默认样式干扰 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f5f7fb;
    color: #1e293b;
    padding: 24px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #2c7a4d, #0f5c3a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.sub {
    color: #5b6e8c;
    font-size: 0.9rem;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    border-radius: 24px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03), 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #e9eef3;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: #cbdde6;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c7a4d;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #5b6e8c;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

/* 快捷操作栏 */
.action-bar {
    background: white;
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    border: 1px solid #eef2f8;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.btn, .btn-primary, .btn-outline {
    border: none;
    background: #f1f4f9;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #1e2a3e;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #2c7a4d;
    color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-primary:hover {
    background: #236b42;
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid #cbdde6;
    background: white;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #9eb0c2;
}

/* 表格样式 */
.table-wrapper {
    background: white;
    border-radius: 24px;
    border: 1px solid #eef2f8;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

th {
    text-align: left;
    padding: 14px 12px;
    background: #fafcff;
    border-bottom: 1px solid #e9edf2;
    color: #2c3e50;
    font-weight: 600;
}

td {
    padding: 12px;
    border-bottom: 1px solid #f0f3f8;
    vertical-align: top;
}

.badge {
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    display: inline-block;
    color: #1f4a3c;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid #cfdfed;
    background: white;
    border-radius: 8px;
    cursor: pointer;
}

.pagination button:hover:not(:disabled) {
    background: #2c7a4d;
    color: white;
    border-color: #2c7a4d;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 导航菜单 */
.main-navigation {
    background: white;
    border-radius: 40px;
    padding: 8px 20px;
    margin: 16px 0;
    border: 1px solid #eef2f8;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.nav-link {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e2a3e;
    background: #f1f4f9;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.nav-link.active {
    background: #2c7a4d;
    color: white;
}

/* 网站头部 */
.site-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.site-branding {
    text-align: center;
    margin-bottom: 16px;
}

.site-title {
    margin: 0;
}

.site-title a {
    text-decoration: none;
    background: linear-gradient(135deg, #2c7a4d, #0f5c3a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.8rem;
    font-weight: 600;
}

.site-description {
    color: #5b6e8c;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* 最近添加列表 */
#recentList > div {
    border-bottom: 1px solid #f0f3f8;
    padding: 12px 0;
}

#recentList .badge {
    margin-right: 12px;
}

/* 页脚 */
.site-footer {
    text-align: center;
    padding: 20px;
    color: #8ba0b5;
    font-size: 0.75rem;
    margin-top: 40px;
}

/* 隐藏 WordPress 管理工具栏样式干扰 */
#wpadminbar {
    z-index: 99999;
}

/* 确保容器内边距正确 */
.site-content > .container {
    padding: 20px;
}