* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; background: #f0f2f5; color: #303133; font-size: 14px; }
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
button { cursor: pointer; font-family: inherit; }
#app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.app-header { height: 64px; background: linear-gradient(90deg, #1c3d6a 0%, #2b5b8d 100%); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); flex-shrink: 0; z-index: 10; }
.app-header .logo { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; }
.app-header .logo .logo-mark { width: 36px; height: 36px; background: #fff; color: #1c3d6a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.app-header .user-box { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 12px; border-radius: 4px; position: relative; }
.app-header .user-box:hover { background: rgba(255,255,255,0.1); }
.app-header .user-box .avatar { width: 32px; height: 32px; border-radius: 50%; background: #67c23a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.app-header .user-box .role-name { font-size: 12px; opacity: 0.85; }
.app-header .dropdown-menu { position: absolute; right: 0; top: 100%; margin-top: 6px; background: #fff; color: #303133; min-width: 120px; border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,0.15); padding: 6px 0; display: none; }
.app-header .user-box:hover .dropdown-menu { display: block; }
.app-header .dropdown-menu .item { padding: 8px 16px; cursor: pointer; }
.app-header .dropdown-menu .item:hover { background: #f5f7fa; color: #1c3d6a; }
.app-body { flex: 1; display: flex; overflow: hidden; }
.sidebar { width: 220px; background: #fff; border-right: 1px solid #e6e8eb; overflow-y: auto; flex-shrink: 0; }
.sidebar .menu-item { padding: 0 20px; height: 44px; display: flex; align-items: center; gap: 10px; color: #303133; cursor: pointer; border-left: 3px solid transparent; font-size: 14px; }
.sidebar .menu-item .icon { width: 18px; text-align: center; color: #909399; }
.sidebar .menu-item:hover { background: #f5f7fa; color: #1c3d6a; }
.sidebar .menu-item.active { background: #ecf3fb; color: #1c3d6a; border-left-color: #1c3d6a; font-weight: 600; }
.sidebar .menu-item.active .icon { color: #1c3d6a; }
.sidebar .submenu-title { padding: 0 20px 0 36px; height: 40px; display: flex; align-items: center; color: #606266; cursor: pointer; font-size: 13px; }
.sidebar .submenu-title:hover { color: #1c3d6a; background: #f5f7fa; }
.sidebar .submenu-title.active { color: #1c3d6a; font-weight: 600; }
.sidebar .group-title { padding: 12px 20px 6px; font-size: 11px; color: #909399; letter-spacing: 1px; }
.main-wrap { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.tags-bar { height: 34px; background: #fff; border-bottom: 1px solid #e6e8eb; display: flex; align-items: center; padding: 0 12px; gap: 6px; flex-shrink: 0; overflow-x: auto; }
.tag-item { padding: 4px 12px; border: 1px solid #dcdfe6; border-radius: 3px; font-size: 12px; color: #606266; cursor: pointer; background: #fff; }
.tag-item.active { background: #1c3d6a; color: #fff; border-color: #1c3d6a; }
.main { flex: 1; overflow: auto; padding: 16px; }
.breadcrumb { font-size: 13px; color: #606266; margin-bottom: 12px; }
.breadcrumb .sep { margin: 0 6px; color: #c0c4cc; }
.breadcrumb a:hover { color: #1c3d6a; }
.card { background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); padding: 16px; margin-bottom: 16px; }
.card-title { font-size: 15px; font-weight: 600; color: #303133; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; border-left: 3px solid #1c3d6a; padding-left: 10px; }
.card-title .more { font-size: 12px; color: #909399; font-weight: 400; cursor: pointer; }
.home-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-card { flex: 1; min-width: 200px; background: linear-gradient(135deg, #fafbff 0%, #f0f5ff 100%); border: 1px solid #e6f0ff; border-radius: 6px; padding: 16px; display: flex; align-items: center; gap: 14px; }
.stat-card .icon { width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.stat-card .icon.blue { background: linear-gradient(135deg, #4a90e2, #2b5b8d); }
.stat-card .icon.green { background: linear-gradient(135deg, #67c23a, #4e9e2a); }
.stat-card .icon.orange { background: linear-gradient(135deg, #e6a23c, #c87f1a); }
.stat-card .info .num { font-size: 22px; font-weight: 700; color: #303133; }
.stat-card .info .label { font-size: 12px; color: #909399; margin-top: 2px; }
.stat-row { display: flex; gap: 16px; margin-top: 8px; }
.stat-row > div { flex: 1; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border: 1px solid #ebeef5; border-radius: 6px; cursor: pointer; text-align: center; font-size: 12px; color: #606266; transition: all .15s; }
.quick-item:hover { color: #1c3d6a; border-color: #1c3d6a; box-shadow: 0 2px 8px rgba(28,61,106,0.1); transform: translateY(-1px); }
.quick-item .icon { width: 38px; height: 38px; border-radius: 8px; background: #ecf3fb; color: #1c3d6a; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.quick-item:hover .icon { background: #1c3d6a; color: #fff; }
.banner { background: linear-gradient(135deg, #fef4e8, #fce8d4); border: 1px solid #faecd8; color: #b8811a; padding: 10px 16px; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 13px; }
.banner .more { color: #c87f1a; cursor: pointer; }
.search-form { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 16px; }
.form-item { display: flex; align-items: center; gap: 8px; }
.form-item .label { font-size: 13px; color: #606266; white-space: nowrap; }
.form-item input, .form-item select { height: 32px; padding: 0 10px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px; background: #fff; color: #303133; outline: none; min-width: 160px; }
.form-item input:focus, .form-item select:focus { border-color: #1c3d6a; }
.form-item input.large { min-width: 280px; }
.btn { height: 32px; padding: 0 16px; border: 1px solid #dcdfe6; background: #fff; border-radius: 4px; font-size: 13px; color: #606266; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.btn:hover { color: #1c3d6a; border-color: #1c3d6a; }
.btn.primary { background: #1c3d6a; color: #fff; border-color: #1c3d6a; }
.btn.primary:hover { background: #2b5b8d; }
.btn.text { border: none; background: transparent; color: #1c3d6a; padding: 0 6px; height: auto; }
.table-wrap { background: #fff; border-radius: 4px; overflow: hidden; border: 1px solid #ebeef5; }
table.tbl { width: 100%%; border-collapse: collapse; font-size: 13px; }
table.tbl th { background: #f5f7fa; color: #303133; font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid #ebeef5; white-space: nowrap; }
table.tbl td { padding: 10px 12px; border-bottom: 1px solid #ebeef5; color: #606266; vertical-align: top; }
table.tbl tr:hover td { background: #f5f7fa; }
table.tbl tr:last-child td { border-bottom: none; }
.col-idx { width: 50px; text-align: center; color: #909399; }
.col-op { width: 80px; text-align: center; white-space: nowrap; }
.col-time { white-space: nowrap; color: #909399; }
.col-title { max-width: 280px; }
.col-content { max-width: 360px; color: #909399; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tag-status { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; line-height: 20px; }
.tag-pending { background: #fdf6ec; color: #e6a23c; border: 1px solid #faecd8; }
.tag-pass { background: #f0f9ff; color: #409eff; border: 1px solid #d9ecff; }
.tag-done { background: #f0f9eb; color: #67c23a; border: 1px solid #e1f3d8; }
.tag-running { background: #ecf5ff; color: #409eff; border: 1px solid #d9ecff; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 12px; }
.pager .info { margin-right: auto; font-size: 13px; color: #909399; }
.pager .pg-btn { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid #dcdfe6; background: #fff; border-radius: 3px; cursor: pointer; font-size: 13px; color: #606266; }
.pager .pg-btn:hover { color: #1c3d6a; border-color: #1c3d6a; }
.pager .pg-btn.active { background: #1c3d6a; color: #fff; border-color: #1c3d6a; }
.pager .pg-btn.disabled { color: #c0c4cc; cursor: not-allowed; }
.detail-header { background: #fff; padding: 16px; border-radius: 4px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.detail-header h2 { font-size: 18px; color: #303133; margin-bottom: 10px; line-height: 1.5; }
.detail-header .meta { display: flex; gap: 24px; font-size: 13px; color: #909399; align-items: center; }
.detail-header .meta .label { color: #606266; }
.section-title { font-size: 14px; font-weight: 600; color: #303133; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid #1c3d6a; display: flex; justify-content: space-between; align-items: center; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; padding: 4px 0 12px; }
.info-grid.full .row { grid-column: span 2; }
.info-grid .row { display: flex; }
.info-grid .row .label { width: 120px; color: #909399; flex-shrink: 0; font-size: 13px; }
.info-grid .row .val { color: #303133; font-size: 13px; line-height: 1.7; }
.file-item { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #f5f7fa; border: 1px solid #ebeef5; border-radius: 3px; font-size: 13px; color: #606266; }
.file-item .dl { color: #1c3d6a; cursor: pointer; margin-left: 6px; font-size: 12px; }
.timeline { padding: 8px 0 0; }
.timeline .t-item { display: flex; padding-bottom: 16px; position: relative; }
.timeline .t-item:last-child { padding-bottom: 0; }
.timeline .t-item .dot-col { width: 24px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; margin-right: 12px; position: relative; }
.timeline .t-item .dot { width: 10px; height: 10px; border-radius: 50%%; background: #1c3d6a; border: 2px solid #ecf3fb; box-shadow: 0 0 0 2px #1c3d6a; margin-top: 4px; }
.timeline .t-item.pending .dot { background: #fff; box-shadow: 0 0 0 2px #e6a23c; }
.timeline .t-item .line { flex: 1; width: 2px; background: #e6e8eb; margin-top: 6px; min-height: 30px; }
.timeline .t-item:last-child .line { display: none; }
.timeline .t-item .body { flex: 1; padding-bottom: 4px; }
.timeline .t-item .body .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.timeline .t-item .body .name { font-weight: 600; color: #303133; }
.timeline .t-item .body .role { color: #909399; font-size: 12px; }
.timeline .t-item .body .time { color: #909399; font-size: 12px; margin-left: auto; }
.timeline .t-item .body .comment { background: #f5f7fa; border-left: 3px solid #1c3d6a; padding: 6px 12px; margin-top: 6px; font-size: 13px; color: #303133; line-height: 1.6; border-radius: 2px; }
.timeline .t-item .body .stat { color: #67c23a; font-size: 12px; }
.toast { position: fixed; top: 20px; left: 50%%; transform: translateX(-50%%); background: #303133; color: #fff; padding: 10px 20px; border-radius: 4px; font-size: 13px; z-index: 9999; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.empty { text-align: center; padding: 40px; color: #c0c4cc; font-size: 13px; }
.mock-badge { position: fixed; bottom: 12px; right: 12px; background: rgba(230,162,60,0.95); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 3px; z-index: 9000; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.ai-panel { background: linear-gradient(135deg, #f5f0ff 0%, #ecf3fb 100%); border: 1px solid #d9d6f5; border-left: 4px solid #6b4cff; border-radius: 6px; padding: 16px; margin-bottom: 16px; }
.ai-panel .section-title { border-left-color: #6b4cff; color: #4a2ee0; }
.ai-summary { background: #fff; border-radius: 4px; padding: 10px 12px; margin: 10px 0 12px; font-size: 13px; color: #303133; line-height: 1.7; border-left: 3px solid #6b4cff; }
.ai-meta { display: flex; gap: 16px; font-size: 12px; color: #909399; margin-bottom: 8px; flex-wrap: wrap; }
.ai-stat { display: flex; gap: 12px; margin: 8px 0 12px; flex-wrap: wrap; }
.ai-stat .pill { padding: 4px 10px; border-radius: 12px; font-size: 12px; }
.ai-stat .pill.crit { background: #fef0f0; color: #f56c6c; border: 1px solid #fbc4c4; }
.ai-stat .pill.warn { background: #fdf6ec; color: #e6a23c; border: 1px solid #faecd8; }
.ai-stat .pill.info { background: #f0f9ff; color: #409eff; border: 1px solid #d9ecff; }
.ai-issue { background: #fff; border-radius: 4px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid #ebeef5; border-left: 3px solid #c0c4cc; }
.ai-issue.critical { border-left-color: #f56c6c; }
.ai-issue.warning { border-left-color: #e6a23c; }
.ai-issue.info { border-left-color: #409eff; }
.ai-issue .row1 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ai-issue .lvl { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 11px; line-height: 18px; color: #fff; }
.ai-issue .lvl.critical { background: #f56c6c; }
.ai-issue .lvl.warning { background: #e6a23c; }
.ai-issue .lvl.info { background: #409eff; }
.ai-issue .ititle { font-weight: 600; color: #303133; font-size: 13px; }
.ai-issue .desc { font-size: 13px; color: #606266; line-height: 1.7; margin: 4px 0 8px; }
.ai-issue .sugg { background: #f5f7fa; padding: 6px 10px; border-radius: 3px; font-size: 12px; color: #303133; line-height: 1.6; margin-top: 6px; }
.ai-issue .sugg .lbl { color: #67c23a; font-weight: 600; margin-right: 4px; }
.ai-issue .refs { margin-top: 6px; font-size: 12px; color: #909399; }
.ai-issue .refs .ref-tag { display: inline-block; background: #ecf3fb; color: #1c3d6a; padding: 1px 6px; border-radius: 2px; margin-right: 4px; margin-top: 4px; }
.ai-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; background: #fde7ff; color: #6b4cff; border: 1px solid #e3d4ff; border-radius: 10px; font-size: 11px; margin-left: 6px; }

/* Hermes 通道 */
.hermes-panel { background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 100%); border: 1px solid #c9d6f0; border-left: 4px solid #2b5b8d; border-radius: 6px; padding: 16px; margin-bottom: 16px; }
.hermes-panel .section-title { border-left-color: #2b5b8d; color: #1c3d6a; }
.hermes-desc { font-size: 13px; color: #606266; line-height: 1.7; margin: 8px 0 12px; }
.hermes-stage { padding: 10px 0; }
.hermes-flow { margin-top: 12px; padding: 12px; background: #fff; border-radius: 4px; border: 1px solid #ebeef5; }
.flow-step { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; color: #909399; border-left: 2px dotted #dcdfe6; margin-left: 10px; padding-left: 14px; }
.flow-step.done { color: #67c23a; border-left-color: #67c23a; }
.flow-step.pending { color: #e6a23c; border-left-color: #e6a23c; }
.flow-step.wait { color: #c0c4cc; }
.flow-step .step-icon { font-size: 16px; }
.hermes-result { margin-top: 12px; }
.result-card { padding: 16px; border-radius: 4px; display: flex; gap: 14px; align-items: flex-start; }
.result-card.success { background: #f0f9eb; border: 1px solid #e1f3d8; }
.result-card.fail { background: #fef0f0; border: 1px solid #fde2e2; }
.result-card .r-icon { font-size: 24px; }
.result-card .r-title { font-weight: 600; color: #303133; margin-bottom: 4px; font-size: 14px; }
.result-card .r-desc { font-size: 13px; color: #606266; line-height: 1.7; }

/* WeChat phone mockup */
.wechat-phone { width: 360px; max-width: 100%; background: #ededed; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.15); margin: 16px auto; border: 6px solid #2b2b2b; }
.phone-header { background: #1c3d6a; color: #fff; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.phone-header .ph-back, .phone-header .ph-menu { font-size: 18px; opacity: 0.9; }
.phone-body { padding: 8px; min-height: 320px; background: #ededed; }
.wechat-info-bar { text-align: center; color: #b2b2b2; font-size: 11px; padding: 6px 0; }
.wechat-card { background: #fff; border-radius: 4px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.wc-title { color: #576b95; font-size: 13px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; margin-bottom: 8px; }
.wc-header { font-size: 14px; font-weight: 600; color: #303133; margin-bottom: 10px; }
.wc-section { margin-bottom: 10px; }
.wc-section .wc-label { font-size: 12px; color: #909399; margin-bottom: 2px; }
.wc-section .wc-val { font-size: 13px; color: #303133; line-height: 1.6; }
.wc-section .wc-label.ai { color: #6b4cff; }
.wc-issues { background: #fafafa; border-left: 2px solid #e6a23c; padding: 6px 10px; border-radius: 2px; }
.wc-issue { font-size: 12px; color: #606266; line-height: 1.7; }
.wc-action { margin-top: 10px; padding: 8px 10px; background: #f5f7fa; border-radius: 3px; font-size: 12px; color: #909399; line-height: 1.7; }
.wechat-reply-bar { padding: 10px 4px 4px; display: flex; gap: 8px; justify-content: flex-end; }
.wechat-reply-bar .btn.text { padding: 4px 12px; border: 1px solid #dcdfe6; border-radius: 14px; font-size: 12px; }
.wechat-reply-bar .btn.text.agree { color: #67c23a; border-color: #67c23a; }
.wechat-reply-bar .btn.text.disagree { color: #f56c6c; border-color: #f56c6c; }
.reply-sent { padding: 8px; font-size: 12px; color: #909399; text-align: right; }

/* Hermes 架构页 */
.arch-diagram { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 4px; }
.arch-node { background: #fff; border: 1px solid #d9d6f5; border-radius: 6px; padding: 12px 14px; text-align: center; font-size: 13px; color: #303133; min-width: 120px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.arch-node small { display: block; color: #909399; font-size: 11px; margin-top: 2px; }
.arch-arrow { color: #6b4cff; font-size: 12px; padding: 0 4px; }
.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.leader-card { display: flex; gap: 12px; padding: 12px; border: 1px solid #ebeef5; border-radius: 6px; background: #fff; }
.leader-card.online { border-left: 3px solid #67c23a; }
.leader-card.offline { border-left: 3px solid #c0c4cc; opacity: 0.75; }
.leader-card .ld-avatar { width: 40px; height: 40px; border-radius: 50%; background: #1c3d6a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.leader-card .ld-info { flex: 1; }
.leader-card .ld-name { font-weight: 600; color: #303133; font-size: 14px; }
.leader-card .ld-role { color: #909399; font-weight: 400; font-size: 12px; margin-left: 6px; }
.leader-card .ld-vm { font-size: 12px; color: #6b4cff; margin-top: 2px; }
.leader-card .ld-status { font-size: 11px; margin-top: 4px; }
.leader-card .ld-status.on { color: #67c23a; }
.leader-card .ld-status.off { color: #c0c4cc; }
.hermes-log { font-size: 13px; }
.log-item { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #ebeef5; }
.log-item:last-child { border-bottom: none; }
.log-item .log-time { color: #909399; font-size: 12px; min-width: 160px; }
.log-item .log-action { color: #1c3d6a; min-width: 140px; }
.log-item .log-title { flex: 1; color: #303133; }
.log-item .log-status { color: #e6a23c; }

/* 演示讲解页 */
.explain-body { font-size: 14px; color: #303133; line-height: 1.9; }
.explain-flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; padding: 12px 4px; }
.flow-node { flex: 1; min-width: 110px; background: linear-gradient(135deg, #ecf3fb, #f5f0ff); border: 1px solid #d9d6f5; border-radius: 6px; padding: 12px 10px; text-align: center; }
.flow-node.n1 { border-color: #67c23a; }
.flow-node.n2 { border-color: #409eff; }
.flow-node.n3 { border-color: #6b4cff; }
.flow-node.n4 { border-color: #e6a23c; }
.flow-node.n5 { border-color: #1c3d6a; }
.flow-node.n6 { border-color: #6b4cff; }
.flow-node.n7 { border-color: #f56c6c; }
.flow-node .fn-icon { font-size: 22px; margin-bottom: 4px; }
.flow-node .fn-title { font-weight: 600; color: #303133; font-size: 13px; }
.flow-node .fn-sub { font-size: 11px; color: #909399; margin-top: 4px; }
.flow-arr { display: flex; align-items: center; color: #6b4cff; font-size: 18px; font-weight: 700; }
.explain-note { margin-top: 12px; padding: 10px 12px; background: #f5f7fa; border-radius: 4px; border-left: 3px solid #1c3d6a; font-size: 13px; color: #606266; line-height: 1.7; }
.kp-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #ebeef5; }
.kp-row:last-child { border-bottom: none; }
.kp-row .kp-icon { width: 36px; height: 36px; border-radius: 8px; background: #ecf3fb; color: #1c3d6a; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.kp-row .kp-title { font-weight: 600; color: #303133; font-size: 14px; margin-bottom: 4px; }
.kp-row .kp-desc { font-size: 13px; color: #606266; line-height: 1.7; }
.dual-ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dual-card { padding: 16px; border-radius: 6px; }
.dual-card.staff { background: #f0f9ff; border: 1px solid #d9ecff; }
.dual-card.leader { background: #f5f0ff; border: 1px solid #d9d6f5; }
.dual-card .dc-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; color: #fff; background: #1c3d6a; margin-bottom: 8px; }
.dual-card.leader .dc-tag { background: #6b4cff; }
.dual-card .dc-title { font-size: 16px; font-weight: 700; color: #303133; margin-bottom: 10px; }
.dual-card .dc-line { font-size: 13px; color: #606266; line-height: 1.9; }
.dual-card .dc-line b { color: #303133; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sec-card { padding: 14px; border: 1px solid #ebeef5; border-radius: 6px; background: #fff; }
.sec-card.on { border-left: 3px solid #67c23a; }
.sec-card.off { border-left: 3px solid #c0c4cc; opacity: 0.75; }
.sec-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.sec-avatar { width: 36px; height: 36px; border-radius: 50%; background: #6b4cff; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.sec-id { flex: 1; }
.sec-name { font-weight: 600; color: #303133; font-size: 14px; }
.sec-leader { color: #909399; font-weight: 400; font-size: 12px; }
.sec-meta { font-size: 12px; color: #606266; margin-top: 2px; }
.sec-meta b { color: #6b4cff; }
.sec-tags { margin-bottom: 8px; }
.sec-tag { display: inline-block; padding: 2px 8px; background: #f5f0ff; color: #6b4cff; border-radius: 10px; font-size: 11px; margin-right: 4px; margin-bottom: 4px; border: 1px solid #e3d4ff; }
.sec-bio { font-size: 12px; color: #606266; line-height: 1.7; padding-top: 8px; border-top: 1px dashed #ebeef5; }
.logic-cat { padding: 12px; background: #f5f7fa; border-radius: 4px; margin-bottom: 12px; }
.logic-cat .lc-title { font-weight: 600; color: #1c3d6a; font-size: 14px; margin-bottom: 8px; }
.logic-cat .lc-list { padding-left: 20px; }
.logic-cat .lc-list li { font-size: 13px; color: #606266; line-height: 1.9; list-style: disc; }
.demo-steps { padding-left: 24px; }
.demo-steps li { font-size: 13px; color: #303133; line-height: 2; list-style: decimal; }
@media (max-width: 800px) { .dual-ai-grid { grid-template-columns: 1fr; } }

/* 微信卡片: 秘书 AI 档案栏 + 交代任务 + 气泡 */
.sec-bar { display: flex; gap: 10px; align-items: center; background: linear-gradient(135deg, #6b4cff, #4a2ee0); color: #fff; padding: 8px 12px; border-radius: 6px; margin-bottom: 8px; }
.sec-bar .sb-avatar { width: 28px; height: 28px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.sec-bar .sb-name { font-weight: 600; font-size: 13px; }
.sec-bar .sb-tag { background: rgba(255,255,255,0.2); padding: 1px 6px; border-radius: 8px; font-size: 10px; margin-left: 4px; }
.sec-bar .sb-meta { font-size: 11px; opacity: 0.85; margin-top: 2px; }
.task-bar { margin-top: 10px; padding: 10px; background: #f5f7fa; border-radius: 4px; }
.tb-hint { font-size: 12px; color: #909399; margin-bottom: 6px; }
.tb-list { display: flex; flex-direction: column; gap: 6px; }
.tb-item { text-align: left; padding: 6px 10px; background: #fff; border: 1px solid #dcdfe6; border-radius: 14px; font-size: 12px; color: #606266; cursor: pointer; transition: all .15s; line-height: 1.5; }
.tb-item:hover { border-color: #6b4cff; color: #6b4cff; background: #f5f0ff; }
.wc-user-msg { display: flex; justify-content: flex-end; margin: 8px 0; }
.wc-ai-msg { display: flex; justify-content: flex-start; margin: 8px 0; }
.wc-bubble { max-width: 85%; padding: 8px 12px; border-radius: 6px; font-size: 13px; line-height: 1.7; word-break: break-word; }
.wc-bubble.user { background: #95ec69; color: #303133; }
.wc-bubble.ai { background: #fff; color: #303133; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.wc-bubble.ai.thinking { color: #909399; font-style: italic; display: flex; gap: 4px; align-items: center; }
.wc-bubble.ai.thinking .dot { display: inline-block; width: 5px; height: 5px; background: #909399; border-radius: 50%; animation: blink 1s infinite; }
.wc-bubble.ai.thinking .dot:nth-child(2) { animation-delay: .2s; }
.wc-bubble.ai.thinking .dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.wc-ai-meta { font-size: 10px; color: #b2b2b2; margin-top: 2px; padding-left: 4px; }

/* 秘书 AI 个性化审核面板 */
.sec-ai-panel { background: linear-gradient(135deg, #fff8e6 0%, #fff0d4 100%); border: 1px solid #f5d78b; border-left: 4px solid #e6a23c; border-radius: 6px; padding: 16px; margin-bottom: 16px; }
.sec-ai-panel .section-title { border-left-color: #e6a23c; color: #b8811a; }
.sec-ai-panel .sec-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #fff; border-radius: 4px; margin: 8px 0 12px; border: 1px solid #f5d78b; }
.sec-ai-panel .sec-head .sa-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #e6a23c, #c87f1a); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.sec-ai-panel .sec-head .sa-name { font-weight: 700; color: #303133; font-size: 14px; }
.sec-ai-panel .sec-head .sa-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; background: #fdf6ec; color: #b8811a; border: 1px solid #f5d78b; border-radius: 10px; font-size: 11px; }
.sec-ai-panel .sec-head .sa-meta { font-size: 12px; color: #909399; margin-top: 2px; }
.sec-ai-panel .sec-head .sa-perspective { margin-left: auto; padding: 4px 10px; background: #fdf6ec; border-radius: 10px; font-size: 11px; color: #b8811a; border: 1px solid #f5d78b; }
.sec-ai-panel .sec-summary { padding: 10px 12px; background: #fff; border-radius: 4px; border-left: 3px solid #e6a23c; font-size: 13px; color: #303133; line-height: 1.7; margin: 8px 0 12px; }
.sec-ai-panel .sec-stat { display: flex; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
.sec-ai-panel .sec-stat .pill { padding: 3px 10px; border-radius: 12px; font-size: 12px; }
.sec-ai-panel .sec-stat .pill.crit { background: #fef0f0; color: #f56c6c; border: 1px solid #fbc4c4; }
.sec-ai-panel .sec-stat .pill.warn { background: #fdf6ec; color: #e6a23c; border: 1px solid #faecd8; }
.sec-ai-panel .sec-stat .pill.info { background: #f0f9ff; color: #409eff; border: 1px solid #d9ecff; }
.sec-ai-panel .sec-vs { margin: 8px 0; padding: 8px 12px; background: #fff8e6; border: 1px dashed #f5d78b; border-radius: 4px; font-size: 12px; color: #909399; }
.sec-ai-panel .sec-vs b { color: #b8811a; }

/* 法规百科 wiki 页 */
.wiki-content { font-size: 14px; color: #303133; line-height: 1.8; padding: 8px 4px; }
.wiki-content h1 { font-size: 22px; color: #1c3d6a; margin: 16px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #1c3d6a; }
.wiki-content h2 { font-size: 17px; color: #1c3d6a; margin: 20px 0 10px; padding-left: 8px; border-left: 3px solid #1c3d6a; }
.wiki-content h3 { font-size: 15px; color: #303133; margin: 14px 0 8px; }
.wiki-content p { margin: 8px 0; }
.wiki-content ul, .wiki-content ol { padding-left: 24px; margin: 8px 0; }
.wiki-content li { margin: 4px 0; }
.wiki-content blockquote { border-left: 4px solid #e6a23c; padding: 8px 12px; background: #fdf6ec; color: #606266; margin: 10px 0; font-size: 13px; }
.wiki-content code { background: #f5f7fa; padding: 1px 6px; border-radius: 3px; font-family: 'Consolas', monospace; font-size: 12px; color: #c87f1a; }
.wiki-content pre { background: #f5f7fa; padding: 12px; border-radius: 4px; overflow-x: auto; font-size: 12px; }
.wiki-content pre code { background: none; padding: 0; color: #303133; }
.wiki-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.wiki-content th { background: #1c3d6a; color: #fff; padding: 8px 12px; text-align: left; font-weight: 600; }
.wiki-content td { padding: 8px 12px; border-bottom: 1px solid #ebeef5; vertical-align: top; }
.wiki-content tr:nth-child(even) td { background: #f9fafc; }
.wiki-content tr:hover td { background: #ecf3fb; }
.wiki-link { color: #1c3d6a; text-decoration: underline; cursor: pointer; padding: 0 2px; }
.wiki-link:hover { color: #6b4cff; background: #f5f0ff; }

/* 角色切换器 */
.role-switcher { display: flex; gap: 8px; margin-left: 24px; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid #dcdfe6; border-radius: 16px; font-size: 12px; color: #909399; cursor: pointer; background: #fff; transition: all .2s; }
.role-chip:hover { border-color: #1c3d6a; color: #1c3d6a; }
.role-chip.active { background: #1c3d6a; color: #fff; border-color: #1c3d6a; }
.role-chip .rc-dot { width: 6px; height: 6px; border-radius: 50%; background: #c0c4cc; }
.role-chip.active .rc-dot { background: #67c23a; box-shadow: 0 0 6px #67c23a; }

/* 起草表单 */
.draft-form { padding: 8px 0; }
.df-row { display: flex; align-items: flex-start; margin: 12px 0; gap: 12px; }
.df-row label { width: 100px; flex-shrink: 0; color: #606266; font-size: 13px; padding-top: 6px; }
.df-row .req { color: #f56c6c; }
.df-input, .df-textarea { flex: 1; padding: 6px 10px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px; font-family: inherit; }
.df-textarea { resize: vertical; min-height: 80px; }
.df-textarea.supp { min-height: 60px; }
.df-file { flex: 1; display: flex; align-items: center; gap: 12px; }
.df-hint { color: #909399; font-size: 12px; }
.draft-actions { display: flex; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed #ebeef5; }

/* 补充说明展示 */
.supp-note { padding: 12px 16px; background: #fdf6ec; border-left: 4px solid #e6a23c; border-radius: 4px; color: #303133; font-size: 14px; line-height: 1.7; }
.ai-box { margin-top: 16px; }

