@charset "utf-8";
/* ============================================================
 * GDRC 人力资源档案线上服务平台 - 全站主题层
 * 风格：政府网上办事平台 + 国企商务风格
 * 设计令牌与首页(index.html)对齐，下沉到会员中心/业务页
 * 加载顺序：frontend.css → user.css → theme-gdrc.css(本文件，最高优先级)
 * ============================================================ */

:root {
    /* 主色系（与首页一致）*/
    --ink-900: #0F2847;       /* 深蓝文字 */
    --ink-800: #1A3A66;
    --primary: #2E6BC6;       /* 主色 - 明亮蓝 */
    --primary-dark: #1E5AB0;
    --primary-light: #5A8FD8;
    --primary-soft: #E8F1FB;  /* 浅蓝底 */
    --accent: #8B1538;        /* 深酒红 */
    --accent-dark: #6B0F2C;
    --accent-soft: #B03A5C;
    --gold: #C9A961;
    --gold-soft: #E5D4A3;
    --cream: #F7F4ED;
    --paper: #FCFBF7;
    --slate: #475569;
    --slate-light: #94A3B8;
    --line: #E5E2D8;

    /* 状态色（业务状态徽章）*/
    --status-pending: #94A3B8;    /* 待审核-灰 */
    --status-approved: #2E6BC6;   /* 已受理-蓝 */
    --status-rejected: #8B1538;   /* 驳回-红 */
    --status-booking: #5A8FD8;    /* 待预约/已预约-浅蓝 */
    --status-shipped: #16A34A;    /* 已寄出-绿 */
    --status-finished: #64748B;   /* 已办结-深灰 */
    --status-warning: #D97706;    /* 临期/逾期-橙 */
    --status-signed: #D97706;     /* 已签到-橙 */

    /* 基础色 */
    --bg-body: #F7F4ED;           /* 页面底色，淡米色，政府公文感 */
    --bg-card: #FFFFFF;
    --text-main: #0F2847;
    --text-muted: #64748B;
    --border: #E5E2D8;
}

/* ============================================================
 * 基础重置
 * ============================================================ */
* { -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Source Han Sans CN', sans-serif;
    color: var(--text-main);
    background: var(--bg-body);
}

a { color: var(--primary-dark); }
a:hover { color: var(--accent); }

/* ============================================================
 * 导航栏（重写 navbar，国企商务风：白底+深蓝底边+品牌字）
 * ============================================================ */
.navbar.navbar-white.navbar-fixed-top {
    background: #FFFFFF;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 12px rgba(15, 40, 71, 0.08);
    min-height: 64px;
    margin-bottom: 0;
}

.navbar-brand {
    color: var(--ink-900) !important;
    font-weight: 700;
    font-size: 18px;
    line-height: 34px;
    padding: 15px 15px 15px 0;
}
.navbar-brand img { height: 38px; display: inline-block; vertical-align: middle; }

.navbar-nav > li > a {
    color: var(--ink-800) !important;
    font-size: 15px;
    font-weight: 500;
    padding: 22px 18px;
    transition: color .2s;
}
.navbar-nav > li > a:hover,
.navbar-nav > li.open > a {
    color: var(--accent) !important;
    background: transparent !important;
}
.navbar-nav > li > a .caret { color: var(--slate-light); }

.navbar-toggle { border-color: var(--border); margin-top: 14px; }
.navbar-toggle .icon-bar { background: var(--ink-800); }

/* 用户下拉菜单 */
.dropdown-menu {
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(15, 40, 71, 0.12);
    border-radius: 6px;
    min-width: 180px;
    padding: 6px 0;
}
.dropdown-menu > li > a {
    color: var(--text-main);
    padding: 10px 18px;
    font-size: 14px;
    transition: all .15s;
}
.dropdown-menu > li > a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.dropdown-menu > li > a i.fa { width: 18px; color: var(--primary); }

.avatar-img {
    border: 2px solid var(--primary);
    transition: all .2s;
}
.avatar-img:hover { border-color: var(--accent); }

/* ============================================================
 * 内容区
 * ============================================================ */
.content {
    min-height: calc(100vh - 200px);
    padding: 32px 0;
    background: var(--bg-body);
}

.container { max-width: 1200px; }

/* ============================================================
 * 侧边栏（会员中心导航 - 重写 sidenav）
 * ============================================================ */
.sidenav .list-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 40, 71, 0.06);
    margin-bottom: 0;
}
.sidenav .list-group-heading {
    background: transparent;
    color: var(--ink-900);
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
}
.sidenav .list-group-item {
    border: none;
    border-left: 3px solid transparent;
    background: #FFFFFF;
    padding: 0;
}
.sidenav .list-group-item > a {
    display: block;
    padding: 12px 18px;
    color: var(--text-main);
    font-size: 14px;
    transition: all .15s;
}
.sidenav .list-group-item > a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.sidenav .list-group-item > a i.fa {
    width: 20px;
    color: var(--primary);
    font-size: 15px;
}
/* active 态：左侧品牌红边 */
.sidenav .list-group-item.active {
    border-left-color: var(--accent);
    background: var(--primary-soft);
}
.sidenav .list-group-item.active > a {
    color: var(--primary-dark);
    font-weight: 600;
}
.sidenav .list-group-item.active > a i.fa { color: var(--accent); }

/* 移动端抽屉保持 user.css 原逻辑，仅配色 */
.sidebar-toggle {
    color: var(--primary) !important;
}

/* ============================================================
 * 面板与卡片（panel 统一为商务卡片）
 * ============================================================ */
.panel.panel-default {
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(15, 40, 71, 0.06);
    background: var(--bg-card);
    overflow: hidden;
}
.panel.panel-default > .panel-heading {
    background: transparent;
    color: var(--ink-900);
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    font-weight: 600;
}
.panel.panel-default > .panel-body {
    padding: 24px;
}

/* 页面标题 h2.page-header */
h2.page-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
    margin: 0 0 24px;
    color: var(--ink-900);
    font-size: 22px;
    font-weight: 700;
}
h2.page-header .btn { margin-top: -4px; }

/* ============================================================
 * 公共组件：section-title（各业务页统一标题分隔）
 * ============================================================ */
.section-title {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    margin: 24px 0 16px;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 700;
}
.section-title:first-child { margin-top: 0; }
.section-title i.fa { color: var(--accent); margin-right: 6px; }

/* ============================================================
 * 表单（统一输入框、按钮、只读域）
 * ============================================================ */
.form-control {
    border-color: var(--border);
    border-radius: 5px;
    color: var(--text-main);
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 107, 198, 0.15);
}
.form-control.readonly-field,
.form-control[disabled] {
    background: var(--cream);
    color: var(--text-muted);
    cursor: not-allowed;
}
.control-label { color: var(--ink-800); font-weight: 500; }
.required-star { color: var(--accent); }

/* 按钮 */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    transition: all .15s;
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-success {
    background: var(--status-shipped);
    border-color: var(--status-shipped);
}
.btn-danger {
    background: var(--accent);
    border-color: var(--accent);
}
.btn-danger:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-warning {
    background: var(--status-warning);
    border-color: var(--status-warning);
}
.btn-default {
    border-color: var(--border);
    color: var(--ink-800);
}
.btn-default:hover {
    background: var(--cream);
    border-color: var(--slate-light);
    color: var(--ink-900);
}
.btn-link { color: var(--primary-dark); }

/* ============================================================
 * 提示框（alert 统一）
 * ============================================================ */
.alert-info {
    background: var(--primary-soft);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}
.alert-warning {
    background: #FEF3C7;
    border-color: #FCD34D;
    color: #92400E;
}
.alert-success {
    background: #D1FAE5;
    border-color: #6EE7B7;
    color: #065F46;
}
.alert-danger {
    background: #FCE7E9;
    border-color: var(--accent-soft);
    color: var(--accent-dark);
}
.notice-box {
    background: var(--cream);
    border: 1px solid var(--gold-soft);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: var(--ink-800);
    white-space: pre-line;
    line-height: 1.7;
}

/* ============================================================
 * 状态徽章（业务申请状态）
 * ============================================================ */
.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: #FFFFFF;
    font-weight: 500;
    line-height: 1.5;
}
.status-0 { background: var(--status-pending); }
.status-1 { background: var(--status-approved); }
.status-2 { background: var(--status-rejected); }
.status-3, .status-4 { background: var(--status-booking); }
.status-5, .status-6 { background: var(--status-shipped); }
.status-7, .status-9 { background: var(--status-finished); }
.status-8 { background: var(--slate-light); }
.status-10 { background: var(--status-signed); }
.status-11 { background: var(--status-shipped); }
.status-12 { background: var(--status-booking); }

/* label 兼容（后台/旧页用 .label） */
.label-warning { background: var(--status-pending); }
.label-primary { background: var(--status-approved); }
.label-danger { background: var(--status-rejected); }
.label-success { background: var(--status-shipped); }
.label-info { background: var(--status-booking); }
.label-default { background: var(--status-finished); }

/* ============================================================
 * 业务申请列表项（myapply/archive/hukou 统一卡片）
 * ============================================================ */
.list-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: var(--bg-card);
    transition: box-shadow .2s, transform .2s;
}
.list-item:hover {
    box-shadow: 0 4px 16px rgba(15, 40, 71, 0.1);
    transform: translateY(-1px);
}
.list-item .item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.list-item .apply-no {
    font-weight: 700;
    color: var(--ink-900);
    font-size: 15px;
}
.list-item .biz-name { color: var(--text-muted); font-size: 13px; }
.list-item .item-meta { color: var(--slate-light); font-size: 13px; margin-top: 6px; }

/* 移动端适配：申请卡片/筛选栏/详情信息行（myapply/archive/hukou 共用） */
@media (max-width: 767px) {
    .list-item { padding: 12px 14px; }
    /* 徽章固定右上角，左侧单号区收缩并内部折行，避免徽章单独掉行 */
    .list-item .item-head { flex-wrap: nowrap; align-items: flex-start; gap: 8px; }
    .list-item .item-head > div { flex: 1; min-width: 0; }
    .list-item .apply-no { font-size: 14px; word-break: break-all; }
    .list-item .item-meta { font-size: 12px; line-height: 2; }
    .status-badge { flex-shrink: 0; margin-top: 2px; }
    /* 筛选栏：下拉框改为块级换行，避免挤压 */
    .filter-bar .form-control { display: block; width: 100%; margin-bottom: 8px; }
    .filter-bar .btn { margin-right: 6px; }
    /* 详情页：标签取消固定宽度改为上行显示 */
    .info-label { width: auto; text-align: left; display: block; margin-bottom: -4px; }
    .info-row { margin-bottom: 14px; }
}

/* ============================================================
 * 申请详情页组件
 * ============================================================ */
.info-row { margin-bottom: 10px; line-height: 1.8; }
.info-label {
    display: inline-block;
    width: 168px;
    color: var(--text-muted);
    text-align: right;
    font-size: 13px;
    vertical-align: top;
}
.info-value { color: var(--text-main); }

/* 进度时间轴 */
/* 进度时间轴（覆盖 fastadmin.css/AdminLTE 的 .timeline 组件样式）*/
.timeline {
    list-style: none;
    padding: 0 0 0 12px;
    margin: 0 0 24px;
    position: relative;
}
/* 清除 AdminLTE .timeline:before 的灰色竖线（我们用 .timeline-item 的 border-left 画竖线）*/
.timeline:before { content: none !important; }
.timeline-item {
    position: relative;
    padding-left: 24px;
    padding-bottom: 20px;
    border-left: 2px solid var(--border);
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--slate-light);
    box-sizing: border-box;
}
.timeline-item.done::before { background: var(--status-shipped); }
.timeline-item.current::before {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(46, 107, 198, 0.2);
}
.timeline-item.rejected::before { background: var(--accent); }
.timeline-item .tl-name { font-weight: 600; color: var(--ink-900); }
.timeline-item.todo .tl-name { color: var(--slate-light); }
.timeline-item .tl-time { color: var(--slate-light); font-size: 12px; margin-left: 8px; }

/* ============================================================
 * 附件/多条目组件
 * ============================================================ */
.att-block {
    border: 1px dashed var(--slate-light);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--paper);
}
.att-item { display: inline-block; margin-right: 12px; margin-bottom: 8px; }
.item-row { margin-bottom: 8px; }
.cert-type-desc { color: #92400E; margin-top: 5px; font-size: 13px; }
.filter-bar { margin-bottom: 16px; }
.filter-bar select.form-control {
    display: inline-block;
    width: auto;
    min-width: 130px;
    height: 40px;
    line-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 10px;
    /* 用主题色三角替换浏览器默认箭头 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%),
                      linear-gradient(135deg, var(--primary) 50%, transparent 50%);
    background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 24px;
    cursor: pointer;
}
.filter-bar select.form-control::-ms-expand { display: none; }
.filter-bar select.form-control:hover {
    border-color: var(--slate-light);
}
.filter-bar select.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 107, 198, 0.15);
    outline: none;
}

/* 交付方式选项 */
.delivery-option {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .15s;
}
.delivery-option.active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

/* ============================================================
 * 页脚
 * ============================================================ */
.footer {
    background: var(--ink-900) !important;
    color: var(--slate-light) !important;
    padding: 24px 0 !important;
    border-top: 3px solid var(--accent);
}
.footer a { color: var(--gold-soft) !important; }
.footer a:hover { color: var(--gold) !important; }
.footer .copyright,
.footer .footer-bottom { color: var(--slate-light) !important; }
/* 去掉 frontend.css 给 copyright 单独设的 #393939 背景块，与 footer 融为一体 */
.footer .copyright { background: none !important; }

/* ============================================================
 * 分页
 * ============================================================ */
.pagination > li > a,
.pagination > li > span {
    color: var(--primary-dark);
    border-color: var(--border);
}
.pagination > li > a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}
.pagination > .active > a,
.pagination > .active > span {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* ============================================================
 * 模态框
 * ============================================================ */
.modal-header {
    background: var(--ink-900);
    color: #FFFFFF;
    border-radius: 6px 6px 0 0;
}
.modal-header .modal-title { font-weight: 600; }
.modal-header .close {
    color: #FFFFFF;
    opacity: 0.8;
    text-shadow: none;
}
.modal-header .close:hover { opacity: 1; }
.modal-content { border-radius: 8px; border: none; box-shadow: 0 12px 32px rgba(15,40,71,.18); }
.modal-footer { border-color: var(--border); }

/* ============================================================
 * 业务入口卡片（首页 biz-card 风格下沉，可用于业务大厅子页）
 * ============================================================ */
.biz-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: all .2s;
    height: 100%;
}
.biz-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(46, 107, 198, 0.15);
    transform: translateY(-3px);
    text-decoration: none;
}
.biz-card .biz-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 24px;
}
.biz-card .biz-name {
    font-weight: 600;
    color: var(--ink-900);
    font-size: 15px;
    margin-bottom: 4px;
}
.biz-card .biz-desc {
    font-size: 12px;
    color: var(--text-muted);
}
