/* 安全生产宣教平台 - 全局样式（商务简洁风） */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    color: #333;
    background: #f0f2f5;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ---------- 登录页 ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 底图自带公司名与主视觉在左侧，故 background-position 用 left center 优先保留左侧，
       避免 cover 按中心缩放时把左侧主体裁掉 */
    background: #1e3c72 url("/static/img/login-bg.jpg") left center / cover no-repeat;
    position: relative;
}
/* 遮罩仅做轻度压暗：底图自带公司名也位于左侧，压太重会把它一起吃掉。
   品牌文字的可读性改由 text-shadow 保证，而非靠压暗底图。 */
.login-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(8,24,54,.34) 0%,
        rgba(8,24,54,.22) 42%,
        rgba(8,24,54,.10) 100%);
}
.login-main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1160px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* 左侧品牌区 */
/* ---------- V1.5：登录页品牌 LOGO ---------- */
/* 尺寸由后端按形态与配置值内联下发（正方形=边长，长方形=宽度，高度等比换算），
   CSS 只负责定位与视觉效果，不参与比例计算，避免两处口径不一致 */
.brand-logo {
    margin-bottom: 22px;
}
.brand-logo-img {
    display: block;
    object-fit: contain;
    /* 底图偏暗，加浅色描边与投影保证 LOGO 可辨识 */
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, .45));
}
.brand-logo-square {
    border-radius: 8px;
}
.brand-logo-rect {
    border-radius: 4px;
}

.login-brand { flex: 1; max-width: 540px; color: #fff; }
.login-brand h1 {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 3px;
    /* 遮罩已减轻，靠更强的文字阴影保证在底图上可读 */
    text-shadow: 0 2px 10px rgba(0,0,0,.65), 0 0 22px rgba(0,0,0,.45);
}
.login-brand .sub {
    margin-top: 14px;
    font-size: 18px;
    color: rgba(255,255,255,.94);
    letter-spacing: 1px;
    text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.login-brand .line {
    width: 76px; height: 4px;
    background: #fff;
    border-radius: 2px;
    margin: 24px 0;
    opacity: .92;
}
.login-brand ul li {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,.93);
    margin-bottom: 13px;
    padding-left: 22px;
    position: relative;
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.login-brand ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 12px;
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    opacity: .8;
}

/* 右侧登录卡 */
.login-box {
    width: 400px;
    flex: 0 0 400px;
    background: rgba(255,255,255,.97);
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0,0,0,.30);
    overflow: hidden;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.login-head {
    padding: 26px 30px 16px;
    text-align: left;
}
.login-head h2 { font-size: 20px; color: #1e3c72; font-weight: 600; }
.login-head p { color: #888; font-size: 13px; margin-top: 4px; }

.login-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0 30px;
}
.login-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: all .2s;
}
.login-tabs .tab.active {
    color: #1e3c72;
    font-weight: bold;
    border-bottom-color: #1e3c72;
}

.login-form { padding: 26px 30px 30px; }
.form-item { margin-bottom: 18px; }
.form-item label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
}
.form-item .input-box { position: relative; }
.form-item input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s;
}
.form-item input:focus { border-color: #2a5298; outline: none; }
.form-item .captcha-row { display: flex; gap: 10px; }
.form-item .captcha-row input { flex: 1; }
.form-item .captcha-row img {
    height: 40px;
    width: 120px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    height: 42px;
    background: #1e3c72;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 17px;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 4px;
    transition: background .2s;
}
.login-btn:hover { background: #2a5298; }
.login-btn:disabled { background: #aaa; cursor: not-allowed; }

.login-msg {
    min-height: 20px;
    margin-top: 12px;
    text-align: center;
    color: #c0392b;
    font-size: 14px;
}
.login-tip {
    margin-top: 16px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* 窄屏 / 小窗口：品牌区收起，卡片居中 */
@media (max-width: 900px) {
    .login-main { flex-direction: column; justify-content: center; gap: 28px; padding: 28px 20px; }
    .login-brand { max-width: 460px; text-align: center; }
    .login-brand .line { margin-left: auto; margin-right: auto; }
    .login-brand h1 { font-size: 27px; }
    .login-brand ul { display: none; }
    .login-box { flex: 0 0 auto; width: 100%; max-width: 400px; }
}
@media (max-height: 620px) {
    .login-brand ul { display: none; }
    .login-brand .line { margin: 14px 0; }
}

/* ---------- 后台框架 ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 210px;
    background: #1e3c72;
    color: #c9d6e8;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.sidebar .brand {
    padding: 18px 16px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar .brand .dot {
    width: 26px; height: 26px;
    background: #fff;
    color: #1e3c72;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.sidebar .menu { flex: 1; padding: 10px 0; overflow-y: auto; }
.sidebar .menu a {
    display: block;
    padding: 12px 20px;
    color: #c9d6e8;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all .15s;
}
.sidebar .menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar .menu a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-left-color: #fff;
    font-weight: bold;
}

/* ---------- V1.4：二级菜单（公共课件） ---------- */
.sidebar .menu .menu-group { margin: 0; }
.sidebar .menu .menu-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: #c9d6e8;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    border-left: 3px solid transparent;
    transition: all .15s;
}
.sidebar .menu .menu-group-head:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar .menu .menu-group-head.open {
    color: #fff;
    background: rgba(255,255,255,.06);
    border-left-color: rgba(255,255,255,.45);
}
.sidebar .menu .menu-group-head .arrow {
    font-size: 12px;
    transition: transform .18s;
    opacity: .75;
}
.sidebar .menu .menu-group-head.open .arrow { transform: rotate(180deg); }

.sidebar .menu .menu-sub { padding: 2px 0 6px; background: rgba(0,0,0,.16); }
.sidebar .menu .menu-sub a {
    padding: 9px 20px 9px 36px;
    font-size: 13px;
    color: #b6c6dd;
    position: relative;
}
.sidebar .menu .menu-sub a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .menu .menu-sub a.active {
    background: rgba(255,255,255,.14);
    color: #fff;
    font-weight: bold;
    border-left-color: #fff;
}

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    height: 58px;
    background: #fff;
    border-bottom: 1px solid #e4e7ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}
.topbar .title { font-size: 16px; font-weight: bold; color: #1e3c72; }
.topbar .right { display: flex; align-items: center; gap: 16px; color: #666; font-size: 13px; }
.topbar .right .user { color: #333; }
.topbar .right a.logout { color: #c0392b; }

.content { flex: 1; padding: 20px 24px; overflow-y: auto; }

/* ---------- 页脚（含版本号）---------- */
.app-footer {
    flex-shrink: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid #e4e7ed;
    background: #fff;
    color: #98a2b3;
    font-size: 12px;
}
.app-footer .ver { color: #1e3c72; }

/* ---------- 卡片与统计 ---------- */
.stat-row { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-card {
    flex: 1;
    min-width: 180px;
    background: #fff;
    border-radius: 6px;
    padding: 20px 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.stat-card .label { color: #888; font-size: 13px; }
.stat-card .value {
    font-size: 28px;
    font-weight: bold;
    color: #1e3c72;
    margin-top: 6px;
}
.stat-card .unit { font-size: 13px; color: #999; font-weight: normal; margin-left: 4px; }

.panel {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin-bottom: 20px;
}
.panel-head {
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.panel-head h3 { font-size: 15px; color: #1e3c72; }
.panel-body { padding: 20px; }

/* ---------- 搜索栏 ---------- */
.search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.search-bar .field { display: flex; align-items: center; gap: 6px; }
.search-bar label { color: #555; font-size: 13px; white-space: nowrap; }
.search-bar input, .search-bar select {
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}
.search-bar input:focus, .search-bar select:focus { border-color: #2a5298; outline: none; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 16px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: all .15s;
    white-space: nowrap;
}
.btn:hover { border-color: #2a5298; color: #2a5298; }
.btn-primary { background: #1e3c72; border-color: #1e3c72; color: #fff; }
.btn-primary:hover { background: #2a5298; border-color: #2a5298; color: #fff; }
.btn-danger { color: #c0392b; border-color: #f0c8c2; }
.btn-danger:hover { background: #fdf0ee; border-color: #c0392b; color: #c0392b; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* 表格操作列链接 */
.op-link { color: #2a5298; cursor: pointer; margin-right: 8px; font-size: 13px; }
.op-link:hover { text-decoration: underline; }
.op-link.danger { color: #c0392b; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
table.data th {
    background: #fafafa;
    color: #555;
    font-weight: bold;
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid #e8e8e8;
    white-space: nowrap;
}
table.data td {
    padding: 11px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: middle;
}
table.data tr:hover td { background: #fafcff; }
table.data .empty {
    text-align: center;
    padding: 50px 0;
    color: #aaa;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.tag-green { background: #eaf7ec; color: #2e7d32; }
.tag-red { background: #fdecea; color: #c62828; }
.tag-gray { background: #f0f0f0; color: #777; }
.tag-blue { background: #e8f0fe; color: #1e3c72; }
.tag-orange { background: #fff3e0; color: #e65100; }

/* ---------- 分页 ---------- */
.pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
    color: #666;
    font-size: 13px;
}
.pager button {
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    color: #555;
}
.pager button:hover:not(:disabled) { border-color: #2a5298; color: #2a5298; }
.pager button.active { background: #1e3c72; border-color: #1e3c72; color: #fff; }
.pager button:disabled { opacity: .5; cursor: not-allowed; }
.pager input {
    width: 52px;
    height: 30px;
    text-align: center;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-family: inherit;
}

/* ---------- 弹窗 ---------- */
.mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.mask.show { display: flex; }
.dialog {
    background: #fff;
    border-radius: 6px;
    width: 560px;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.dialog.wide { width: 780px; }
.dialog-head {
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dialog-head h4 { font-size: 15px; color: #1e3c72; }
.dialog-head .close { cursor: pointer; color: #999; font-size: 20px; line-height: 1; }
.dialog-head .close:hover { color: #333; }
.dialog-body { padding: 20px; overflow-y: auto; flex: 1; }
.dialog-foot {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-row { margin-bottom: 14px; }
.form-row > label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 13px;
}
.form-row .req { color: #c0392b; margin-right: 2px; }
.form-row input[type=text], .form-row input[type=password],
.form-row input[type=number], .form-row select, .form-row textarea {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}
.form-row textarea { height: 70px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border-color: #2a5298; outline: none;
}
.form-row input[readonly], .form-row input:disabled {
    background: #f5f5f5;
    color: #888;
}
.form-row .hint { color: #999; font-size: 12px; margin-top: 4px; }
.form-row .file-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.form-row .file-line input[type=file] { font-size: 13px; }

/* ---------- 提示 ---------- */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 11px 22px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    z-index: 2000;
    display: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.toast.show { display: block; }
.toast.success { background: #2e7d32; }
.toast.error { background: #c62828; }
.toast.info { background: #1e3c72; }

/* ---------- 视频播放 ---------- */
.video-dialog .dialog { width: 880px; }
.video-box { background: #000; border-radius: 4px; overflow: hidden; }
.video-box video { width: 100%; display: block; max-height: 62vh; }
.video-info { margin-top: 14px; color: #555; font-size: 13px; }
.video-info .t { font-size: 15px; font-weight: bold; color: #333; margin-bottom: 6px; }
.video-status { margin-top: 10px; font-size: 13px; color: #2e7d32; }

/* ---------- 一企一档分类 ---------- */
.cat-block { margin-bottom: 18px; }
.cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px 4px 0 0;
    padding: 10px 16px;
}
.cat-head .name { font-weight: bold; color: #1e3c72; font-size: 14px; }
.cat-head .count { color: #888; font-size: 12px; margin-left: 8px; }

/* ---------- 空状态 ---------- */
.nodata {
    text-align: center;
    padding: 46px 0;
    color: #aaa;
    font-size: 13px;
}

/* ---------- 文本 ---------- */
.text-muted { color: #999; }
.text-center { text-align: center; }
.mt10 { margin-top: 10px; }
.mt16 { margin-top: 16px; }
.mb10 { margin-bottom: 10px; }
.nowrap { white-space: nowrap; }

/* ---------- V1.1 PDF 文档在线翻阅 ---------- */
.doc-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.doc-tb-group { display: flex; align-items: center; gap: 6px; }
.doc-tb-right { margin-left: auto; }
.doc-page-jump label { font-size: 13px; color: #555; }
.doc-page-jump input {
    width: 66px; height: 28px; padding: 0 6px;
    border: 1px solid #d9d9d9; border-radius: 3px;
    font-size: 13px; text-align: center;
}
.doc-page-jump span { font-size: 13px; color: #555; }
.doc-zoom-text { font-size: 13px; color: #1e3c72; min-width: 46px; }
.doc-page-info { font-size: 13px; color: #555; }
.doc-study-info { font-size: 13px; color: #2e7d32; }

.doc-viewer {
    position: relative;
    height: calc(100vh - 260px);
    min-height: 420px;
    overflow: auto;
    background: #f0f2f5;
    padding: 20px;
}
.doc-loading {
    padding: 60px 0;
    text-align: center;
    color: #888;
    font-size: 14px;
}
.doc-canvas-wrap {
    display: flex;
    justify-content: center;
}
.doc-canvas-wrap canvas {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    border-radius: 2px;
}

/* ---------- V1.7 弹窗版 PDF 阅读（企业端） ----------
   弹窗由 .mask 的 flex 居中；默认按弹窗比例展示，
   点「全屏」铺满视口，再点「还原」回到原弹窗比例。 */
.dialog.doc-dlg { width: 900px; max-width: 94vw; max-height: 90vh; }
/* 工具栏自带控件，弹窗 body 去掉内边距与滚动，交给阅读区自己滚 */
.dialog.doc-dlg .dialog-body { padding: 0; overflow: hidden; }

.doc-modal {
    display: flex;
    flex-direction: column;
    height: 60vh;
    min-height: 360px;
}
.doc-modal .doc-viewer {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: auto;
    background: #f0f2f5;
    padding: 16px;
}

/* 全屏态：铺满视口（50px 为 dialog-head 高度） */
.dialog.doc-dlg.doc-full {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
}
.dialog.doc-dlg.doc-full .doc-modal { height: calc(100vh - 50px); }

/* ---------- V1.3 企业端售后服务页 ---------- */
.as-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
    padding: 40px 36px 36px;
    text-align: center;
}
/* ---------- V1.5：售后服务页 LOGO（正方形 / 长方形两种展示形态） ---------- */
/* 尺寸由后端按形态 + 配置的展示尺寸下发（正方形=边长，长方形=宽度，高度等比换算），
   CSS 只负责定位与视觉，不参与比例计算，避免前后端口径不一致 */
.as-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 26px;
}
.as-logo-img {
    display: block;
    object-fit: contain;
}
/* 正方形：留圆角，视觉更贴近图标 */
.as-logo-img-square {
    border-radius: 10px;
}
/* 长方形：横向 banner 风格 */
.as-logo-img-rect {
    border-radius: 4px;
}
.as-title {
    font-size: 21px;
    font-weight: 600;
    color: #1e3c72;
    letter-spacing: 1px;
}
.as-sub {
    margin-top: 8px;
    font-size: 13px;
    color: #999;
}
.as-card {
    margin-top: 26px;
    border: 1px solid #eef1f5;
    border-radius: 5px;
    background: #fafbfc;
    padding: 6px 22px;
}
.as-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #eef1f5;
}
.as-row:last-child { border-bottom: none; }
.as-label {
    font-size: 14px;
    color: #888;
}
.as-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}
.as-value.as-phone {
    color: #1e3c72;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .5px;
}
.as-desc {
    margin-top: 22px;
    text-align: left;
    border-top: 1px dashed #e6e9ee;
    padding-top: 18px;
}
.as-desc-title {
    font-size: 14px;
    color: #1e3c72;
    margin-bottom: 8px;
    font-weight: 600;
}
.as-desc p {
    font-size: 13px;
    color: #666;
    line-height: 1.9;
    white-space: pre-wrap;
}

/* ==================== V1.2：线上培训记录报告弹窗 ==================== */
/* 按设计稿：奶白底、香槟色双线外框、圆形徽标、衬线标题、浅蓝标签列、底部波纹 */
.dialog.report-dialog {
    border: none;
    border-radius: 6px;
    width: 680px;
    max-width: 94vw;
    padding: 0;
    background: #fdfcf8;
    box-shadow: 0 14px 48px rgba(30, 60, 114, .28);
    overflow: visible;
}
/* 隐藏默认标题栏，由报告内部自绘标题 */
.dialog.report-dialog .dialog-head {
    display: none;
}
/* 内容区：不出横竖滚动条，不裁切外框 */
.dialog.report-dialog .dialog-body {
    padding: 0;
    background: transparent;
    overflow: hidden;
    flex: 0 0 auto;
    max-height: none;
}
/* 无底部按钮时不留空白 */
.dialog.report-dialog .dialog-foot {
    display: none;
}

/* 右上角关闭按钮（浮在报告纸面之上）*/
.report-wrap .report-close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 9;
    width: 30px;
    height: 30px;
    line-height: 1;
    border: 1px solid #ddd2b4;
    border-radius: 50%;
    background: rgba(253, 252, 248, .92);
    color: #9a8b62;
    font-size: 20px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    padding: 0;
    transition: all .18s;
}
.report-wrap .report-close:hover {
    background: #c9a96a;
    border-color: #c9a96a;
    color: #fff;
    transform: rotate(90deg);
}

/* 内容区：水印的定位容器 */
.report-wrap {
    position: relative;
    background: #fdfcf8;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
    max-width: 100%;
}

/* 纸面：香槟金双线外框 + 内衬细线 */
.report-wrap .report-paper {
    position: relative;
    z-index: 1;
    margin: 14px;
    padding: 30px 32px 18px;
    background: transparent;
    border: 1px solid #cdbd92;
    box-shadow:
      inset 0 0 0 1px #fdfcf8,
      inset 0 0 0 2px #e8dcbe,
      0 0 0 1px #e8dcbe;
}

/* 标题：衬线体、深墨色、宽字距（已移除顶部圆形徽标，标题独立成行）*/
.report-wrap .report-title {
    margin: 2px 0 26px;
    padding: 4px 0 18px;
    text-align: center;
    font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #1a1a1a;
    text-indent: 6px;
    border-bottom: 1px solid #e6dcc0;
}

/* 报告表格：设计稿为浅灰细框、标签列浅蓝底 */
.report-wrap .report-table {
    position: relative;
    z-index: 4;
    width: calc(100% - 52px);
    margin: 0 26px;
    border-collapse: collapse;
    background: transparent;
    table-layout: fixed;
    border: 1px solid #d3d8e0;
}
.report-wrap .report-table th,
.report-wrap .report-table td {
    padding: 13px 16px;
    font-size: 14.5px;
    line-height: 1.6;
    border: none;
    border-bottom: 1px solid #dcdfe4;
    vertical-align: middle;
}
.report-wrap .report-table tr:first-child th,
.report-wrap .report-table tr:first-child td {
    border-top: 1px solid #dcdfe4;
}
.report-wrap .report-table th {
    width: 168px;
    background: #eef2f8;
    color: #1a1a1a;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    border-right: 1px solid #dcdfe4;
}
.report-wrap .report-table td {
    background: transparent;
    color: #222;
}

/* 完成状态：绿色盾牌对勾 */
.report-wrap .rp-done {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    color: #1a1a1a;
}
.report-wrap .rp-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #1e9e4a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.report-wrap .rp-doing {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #666;
}
.report-wrap .rp-dot {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid #b9c2cf;
}

/* 底部淡青波纹装饰（SVG 曲线网格）*/
.report-wrap .report-waves {
    position: relative;
    z-index: 2;
    height: 62px;
    margin: 6px 0 -18px;
    width: 100%;
    -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 98%);
    mask-image: linear-gradient(to top, #000 40%, transparent 98%);
    pointer-events: none;
}
.report-wrap .report-waves svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 浅水印：颜色轻、不遮挡正文；层级在正文之下、底纹之上 */
.report-wrap .watermark {
    position: absolute;
    inset: -12%;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    transform: rotate(-24deg);
    opacity: .10;
}
.report-wrap .watermark .wm-item {
    flex: 0 0 33.3333%;
    color: #5a6b7d;
    font-size: 13px;
    line-height: 3.4;
    text-align: center;
    white-space: nowrap;
}

/* 正文浮在水印之上，保证可读 */
.report-wrap .report-table,
.report-wrap .report-title {
    position: relative;
    z-index: 4;
}

/* ==================== V1.5：专家模块 ==================== */
/* 管理端列表缩略图 */
.expert-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--line, #e3e8ef);
    cursor: pointer;
    display: block;
    background: #f5f7fa;
}
.expert-thumb:hover { box-shadow: 0 0 0 2px rgba(45,108,223,.28); }

/* 企业端专家卡片 */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.expert-card {
    background: #fff;
    border: 1px solid var(--line, #e3e8ef);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .18s, transform .18s;
}
.expert-card:hover {
    box-shadow: 0 6px 20px rgba(20,40,80,.10);
    transform: translateY(-2px);
}
.expert-card .cover {
    position: relative;
    padding-top: 100%;
    background: #eef2f8 center/cover no-repeat;
    cursor: pointer;
}
.expert-card .cover .ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a9b6c9;
    font-size: 34px;
    font-weight: 600;
}
.expert-card .heat-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}
.expert-card .body { padding: 12px 14px 14px; }
.expert-card .nm {
    font-size: 16px;
    font-weight: 600;
    color: #1f2d3d;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.expert-card .meta {
    font-size: 13px;
    color: #7a8699;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.expert-card .ft {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.expert-card .ft .phone {
    font-size: 13px;
    color: #2d6cdf;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 专家详情弹窗 */
.expert-detail { display: flex; gap: 20px; align-items: flex-start; }
.expert-detail .pic {
    width: 190px;
    flex: 0 0 190px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f8;
}
.expert-detail .pic img { width: 100%; display: block; }
.expert-detail .info { flex: 1; min-width: 0; }
.expert-detail .row {
    font-size: 14px;
    line-height: 1.9;
    color: #33415c;
    word-break: break-word;
}
.expert-detail .row b { color: #1f2d3d; display: inline-block; min-width: 84px; }
.expert-detail h4 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #1f2d3d;
}
.expert-detail .sect { margin-top: 12px; }
.expert-detail .sect-t {
    font-size: 13px;
    font-weight: 600;
    color: #2d6cdf;
    margin-bottom: 4px;
}
.expert-detail .sect-c {
    font-size: 13px;
    line-height: 1.85;
    color: #4a5568;
    white-space: pre-wrap;
    background: #f7f9fc;
    border-radius: 6px;
    padding: 10px 12px;
}
@media (max-width: 720px) {
    .expert-detail { flex-direction: column; }
    .expert-detail .pic { width: 100%; flex: none; }
}

/* V1.7：专家课程列表弹窗——宽度加大以容纳课程表格 */
.dialog.expert-course-dlg { width: 1100px; max-width: 95vw; }
.dialog.expert-course-dlg .dialog-body { max-height: 68vh; overflow-y: auto; }
/* 专家课程表格（弹窗内） */
.ec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ec-table th, .ec-table td { padding: 9px 10px; border-bottom: 1px solid #eef2f7; text-align: left; }
.ec-table th { background: #f6f8fb; color: #5a6b82; font-weight: 600; white-space: nowrap; }
.ec-table td { color: #333; vertical-align: middle; }
.ec-table tbody tr:hover { background: #fafbfd; }
.ec-empty { padding: 40px 0; text-align: center; color: #9aa7b8; }
