/* ========== HR 模块独立布局样式 ========== */

/* 重置 body：无壁纸背景、无三栏布局 */
.hr-body {
    background: #0f0f1a !important;
    background-image: none !important;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #d0d0d0;
    min-height: 100vh;
}

/* 覆盖 base.html 的容器布局 */
.hr-body .container,
.hr-body .right-panel,
.hr-body .left-panel {
    display: none !important;
}

/* ========== 主布局：左侧导航 + 右侧内容 ========== */
.hr-layout {
    display: flex;
    padding-top: 52px; /* nav height */
    min-height: 100vh;
}

/* 左侧导航 */
.hr-sidebar {
    width: 220px;
    min-width: 220px;
    background: #12122a;
    padding: 20px 0;
    border-right: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 52px;
    height: calc(100vh - 52px);
    overflow-y: auto;
}

.hr-sidebar-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 20px;
    margin-bottom: 12px;
}

.hr-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
}

.hr-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
}

.hr-nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.8);
}

.hr-nav-item.active {
    background: rgba(79,111,191,0.15);
    color: #93b0e8;
    font-weight: 500;
}

/* 右侧内容区 */
.hr-main {
    flex: 1;
    padding: 28px 36px;
    overflow-y: auto;
    max-width: 1200px;
}

/* 页面标题 */
.hr-page-header {
    margin-bottom: 28px;
}
.hr-page-header h2 {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}
.hr-page-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

/* ========== 功能卡片网格（/hr 首页） ========== */
.hr-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hr-card {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none;
    transition: all 0.2s;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hr-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

.hr-card-accent {
    width: 3px;
    height: 40px;
    border-radius: 2px;
    margin-right: 14px;
    flex-shrink: 0;
}

.hr-card-body { flex: 1; min-width: 0; }
.hr-card-title {
    font-size: 15px; font-weight: 500; color: #e0e0e0; margin-bottom: 4px;
}
.hr-card-desc {
    font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.4;
}

.hr-card-arrow {
    flex-shrink: 0;
    color: rgba(255,255,255,0.15);
    transition: all 0.2s;
}
.hr-card:hover .hr-card-arrow { color: rgba(255,255,255,0.35); }

/* ========== 响应式 ========== */
@media (max-width: 960px) {
    .hr-card-grid { grid-template-columns: repeat(2, 1fr); }
    .hr-main { padding: 20px; }
}
@media (max-width: 720px) {
    .hr-card-grid { grid-template-columns: 1fr; }
    .hr-sidebar { width: 180px; min-width: 180px; }
    .hr-main { padding: 16px; }
}
@media (max-width: 560px) {
    .hr-layout { flex-direction: column; }
    .hr-sidebar {
        width: 100%; min-width: unset; height: auto; position: static;
        flex-direction: row; padding: 10px; overflow-x: auto; border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .hr-sidebar-title { display: none; }
    .hr-nav { flex-direction: row; gap: 4px; }
    .hr-nav-item { padding: 7px 12px; font-size: 12px; white-space: nowrap; }
    .hr-nav-item svg { display: none; }
}

/* ========== 全局表单元素暗色模式 ========== */
.hr-body select,
.hr-body input[type=text],
.hr-body input[type=email],
.hr-body input[type=number],
.hr-body input[type=search],
.hr-body input[type=date],
.hr-body textarea {
    background-color: #2a2a3a;
    color: #e0e0e0;
    border: 1px solid #444;
    outline: none;
}

.hr-body select:focus,
.hr-body input[type=text]:focus,
.hr-body input[type=email]:focus,
.hr-body input[type=number]:focus,
.hr-body input[type=search]:focus,
.hr-body input[type=date]:focus,
.hr-body textarea:focus {
    border-color: #666;
    box-shadow: none;
}

.hr-body select option {
    background-color: #2a2a3a;
    color: #e0e0e0;
}

.hr-body ::placeholder {
    color: #888;
}

/* 不覆盖 range / checkbox / file / button / 上传区域 */
