/* ============ 全局基础 ============ */
:root { --sidebar-bg: #1e293b; --page-bg: #f5f7fa; --card-radius: 10px; --text-1: #303133; --text-2: #606266; --text-3: #909399; --border: #ebeef5; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: var(--text-1); background: var(--page-bg); -webkit-font-smoothing: antialiased; }
a { color: var(--el-color-primary); text-decoration: none; }
#app { min-height: 100vh; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c9cdd4; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

.fade-page-enter-active, .fade-page-leave-active { transition: opacity .15s ease, transform .15s ease; }
.fade-page-enter-from { opacity: 0; transform: translateY(6px); }
.fade-page-leave-to { opacity: 0; }

/* ============ 布局 ============ */
.layout-container { height: 100vh; }
.layout-loading { height: 100vh; }
.nav-aside { width: 192px; background: var(--sidebar-bg, #1e293b); display: flex; flex-direction: column; overflow: hidden; flex-shrink: 0; position: relative; }
.nav-logo { height: 72px; display: flex; align-items: center; gap: 10px; padding: 0 20px; cursor: pointer; text-decoration: none; }
.nav-logo__img { max-width: 150px; max-height: 36px; object-fit: contain; }
.nav-logo__badge { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #38a8f8, #22c1dd); flex-shrink: 0; box-shadow: 0 4px 12px rgba(56, 168, 248, .35); }
.nav-logo__text { color: var(--sidebar-text, #e2e8f0); font-size: 16px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-menu { flex: 1; overflow-y: auto; padding: 12px 12px 20px; }
.nav-menu::-webkit-scrollbar { width: 4px; }
.nav-menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 2px; }
.nav-item { display: flex; align-items: center; height: 38px; padding: 0 14px; margin: 2px 0; border-radius: 8px; color: var(--sidebar-text, rgba(255, 255, 255, .7)); font-size: 14px; text-decoration: none; transition: all .15s ease; position: relative; cursor: pointer; user-select: none; }
.nav-item:hover { background: color-mix(in srgb, var(--el-color-primary, #409EFF) 10%, transparent); color: var(--sidebar-text, rgba(255, 255, 255, .95)); }
.nav-item.active { background: color-mix(in srgb, var(--el-color-primary, #409EFF) 16%, transparent); color: var(--el-color-primary, #60a5fa); font-weight: 500; }
.nav-item.active:before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--el-color-primary, #60a5fa); }
.nav-item__icon { font-size: 15px; margin-right: 10px; opacity: .75; transition: opacity .15s ease; }
.nav-item:hover .nav-item__icon, .nav-item.active .nav-item__icon { opacity: 1; }
.nav-group { margin-top: 20px; }
.nav-group__label { padding: 0 14px; margin-bottom: 6px; font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--sidebar-text, #ffffff) 62%, transparent); letter-spacing: 2px; text-transform: uppercase; }
.nav-group .nav-item { padding-left: 22px; }
.nav-footer { padding: 12px 24px; display: flex; align-items: center; gap: 6px; }
.nav-footer__version { color: color-mix(in srgb, var(--sidebar-text, #ffffff) 55%, transparent); font-size: 11px; }
.edition-tag { display: inline-block; font-size: 10px; font-weight: 600; line-height: 1; padding: 3px 8px; border-radius: 8px; letter-spacing: .5px; }
.edition-flagship { background: linear-gradient(135deg, #f5a524, #d97706); color: #fff; border: 1px solid rgba(217, 119, 6, .35); }
.edition-premium { background: linear-gradient(135deg, var(--el-color-primary), var(--el-color-primary-dark-2)); color: #fff; }

.main-wrap { flex-direction: column; min-width: 0; }
.header { display: flex; align-items: center; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); z-index: 10; padding: 0 20px; }
.header-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.header-title { flex-shrink: 0; font-size: 16px; font-weight: 600; color: var(--text-1); }
.header-tip { color: var(--text-3); }
.header-center { flex: none; display: flex; margin-left: auto; margin-right: 12px; min-width: 0; }
.compliance-pill { height: 30px; padding: 0 12px; display: flex; align-items: center; gap: 6px; border: 1px solid #f5dab1; border-radius: 15px; background: #fdf6ec; color: #8c5a11; font-size: 12px; line-height: 1; white-space: nowrap; cursor: default; }
.compliance-pill__icon { flex-shrink: 0; font-size: 14px; color: #e6a23c; }
.compliance-pill__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compliance-tip { max-width: 360px; }
.header-right { display: flex; align-items: center; flex-shrink: 0; gap: 4px; }
.expire-text { font-size: 12px; color: #e6a23c; margin-right: 12px; background: #fdf6ec; padding: 3px 8px; border-radius: 4px; }
.expire-text.danger { color: #f56c6c; background: #fef0f0; }
.global-task-progress { display: flex; align-items: center; gap: 8px; padding: 4px 12px; background: #ecf5ff; border-radius: 4px; font-size: 13px; color: var(--el-color-primary); }
.global-task-progress .loading-icon { animation: rotate 1s linear infinite; }
.global-task-progress .task-text { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes rotate { 0% { transform: rotate(0); } to { transform: rotate(360deg); } }
.user-info { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; cursor: pointer; outline: none; margin-left: 8px; color: var(--text-1); font-size: 14px; }
.user-info .user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar { background: var(--el-color-primary); color: #fff; font-size: 13px; }
.help-btn { color: #606266 !important; font-size: 14px; margin-right: 4px; }
.help-popover .help-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f2f3f5; }
.help-popover .help-label { color: #909399; font-size: 13px; }
.help-popover .help-value { color: #303133; font-size: 13px; }
.main-content { background: var(--page-bg); padding: 20px; overflow-y: auto; height: calc(100vh - 60px); }
.ann-time { color: var(--text-3); font-size: 12px; margin-left: 8px; }
.ann-content { margin-top: 12px; max-height: 50vh; overflow: auto; line-height: 1.8; }
.done-box { text-align: center; padding: 10px 0; }
.done-box p { font-size: 15px; margin: 12px 0 0; }
.dialog-foot-tip { float: left; color: var(--text-3); font-size: 13px; line-height: 32px; }
.dialog-foot-tip b { color: var(--el-color-primary); }

/* ============ 通用页面元素 ============ */
.page { min-height: 100%; }
.page-card { background: #fff; border-radius: var(--card-radius); padding: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); margin-bottom: 16px; }
.page-card--flush { padding: 0; overflow: hidden; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head__left { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.page-head__title { margin: 0; font-size: 18px; font-weight: 600; color: var(--text-1); display: flex; align-items: center; gap: 8px; }
.page-head__count { font-size: 12px; font-weight: 500; color: var(--el-color-primary); background: var(--el-color-primary-light-9); border-radius: 10px; padding: 2px 8px; }
.page-head__desc { color: var(--text-3); font-size: 13px; }
.page-head__right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-head__back { font-size: 18px; }
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .el-form-item { margin-bottom: 0; margin-right: 0; }
.batch-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; margin-bottom: 12px; background: var(--el-color-primary-light-9); border: 1px solid var(--el-color-primary-light-7); border-radius: 6px; font-size: 13px; color: var(--text-2); }
.batch-bar b { color: var(--el-color-primary); }
.pager { display: flex; justify-content: flex-end; padding-top: 16px; }
.form-tip { font-size: 12px; color: var(--text-3); line-height: 1.6; margin-top: 4px; width: 100%; }
.text-muted { color: var(--text-3); }
.text-success { color: #67c23a; }
.text-danger { color: #f56c6c; }
.text-warning { color: #e6a23c; }
.text-primary { color: var(--el-color-primary); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; align-items: center; gap: 8px; }
.flex-1 { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1280px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.section-title { font-size: 15px; font-weight: 600; color: var(--text-1); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.section-title small { font-weight: 400; color: var(--text-3); font-size: 12px; }
.tag-pick { cursor: pointer; margin: 0 6px 6px 0; }
.el-table { --el-table-header-bg-color: #f8fafc; }
.el-table th.el-table__cell { color: #475569; font-weight: 600; }
.el-dialog__body { padding-top: 10px; }
.tip-box { background: #f4f8ff; border: 1px solid #d9ecff; border-radius: 8px; padding: 12px 16px; color: #4a6075; font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
.tip-box--warning { background: #fdf6ec; border-color: #f5dab1; color: #8c5a11; }
.tip-box b { color: var(--text-1); }

.empty-block { padding: 48px 20px; text-align: center; color: var(--text-3); }
.empty-block__icon { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: #f2f4f8; display: flex; align-items: center; justify-content: center; color: #c0c4cc; }
.empty-block__text { font-size: 14px; color: var(--text-2); }
.empty-block__desc { font-size: 13px; margin-top: 6px; line-height: 1.7; }
.empty-block__actions { margin-top: 16px; }

.stat-card { background: #fff; border-radius: var(--card-radius); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.stat-card__icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-card__body { min-width: 0; flex: 1; }
.stat-card__label { font-size: 13px; color: var(--text-3); }
.stat-card__value { font-size: 26px; font-weight: 700; color: var(--text-1); margin-top: 4px; line-height: 1.2; }
.stat-card__value small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.stat-card__sub { font-size: 12px; color: var(--text-3); margin-top: 6px; }

.platform-icon-wrap { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.platform-icon { border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.platform-icon--text { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; line-height: 1; }
.platform-icon__name { font-size: 13px; }

/* ============ 图片选择器 ============ */
.picker-bar { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; }
.picker-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; min-height: 240px; max-height: 52vh; overflow: auto; }
.picker-item { position: relative; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #f5f7fa; }
.picker-item img { width: 100%; height: 96px; object-fit: cover; display: block; }
.picker-item__name { font-size: 12px; padding: 4px 6px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-item.active { border-color: var(--el-color-primary); }
.picker-item__check { position: absolute; top: 6px; right: 6px; color: var(--el-color-primary); font-size: 20px; background: #fff; border-radius: 50%; }
.picker-grid .empty-block { grid-column: 1 / -1; }

/* ============ 富文本 ============ */
.rich-editor { border: 1px solid #dcdfe6; border-radius: 6px; background: #fff; overflow: hidden; }
.rich-editor__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid #ebeef5; background: #fafbfc; }
.rich-editor__toolbar button { border: none; background: transparent; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 13px; color: #475569; min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.rich-editor__toolbar button:hover, .rich-editor__toolbar button.on { background: #e8f0fe; color: var(--el-color-primary); }
.rich-editor__toolbar .sep { width: 1px; height: 18px; background: #e4e7ed; margin: 0 4px; }
.rich-editor__count { margin-left: auto; font-size: 12px; color: var(--text-3); }
.rich-editor__body { padding: 16px 20px; outline: none; overflow-y: auto; max-height: 70vh; }
.rich-editor__body:empty:before { content: attr(data-placeholder); color: #c0c4cc; }
.rich-editor__source { width: 100%; border: none; outline: none; padding: 12px; font-family: Menlo, Consolas, monospace; font-size: 12px; resize: vertical; }
.article-content { font-size: 15px; line-height: 1.85; color: #333; word-break: break-word; }
.article-content h1 { font-size: 22px; margin: 18px 0 12px; }
.article-content h2 { font-size: 19px; margin: 20px 0 10px; padding-left: 10px; border-left: 4px solid var(--el-color-primary); }
.article-content h3 { font-size: 16px; margin: 16px 0 8px; }
.article-content p { margin: 8px 0; }
.article-content img { max-width: 100%; border-radius: 6px; }
.article-content blockquote { margin: 10px 0; padding: 8px 14px; border-left: 4px solid #dcdfe6; background: #f8f9fb; color: #606266; }
.article-content table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.article-content th, .article-content td { border: 1px solid #e4e7ed; padding: 6px 10px; }
.article-content code { background: #f3f4f6; padding: 1px 5px; border-radius: 3px; }

/* ============ 登录页 ============ */
.login-container { --brand-1: #38a8f8; --brand-2: #22c1dd; position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #0b1e3a, #123055 45%, #14476b); overflow: hidden; }
.bg-decor { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 12s ease-in-out infinite; }
.blob-1 { width: 480px; height: 480px; top: -140px; left: -120px; background: radial-gradient(circle, #38a8f8 0%, transparent 70%); }
.blob-2 { width: 420px; height: 420px; bottom: -120px; right: -100px; background: radial-gradient(circle, #22c1dd 0%, transparent 70%); animation-delay: -4s; }
.blob-3 { width: 300px; height: 300px; top: 55%; left: 12%; background: radial-gradient(circle, #06b6d4 0%, transparent 70%); animation-delay: -8s; }
@keyframes float { 0%, to { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.06); } }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, .8), transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, .8), transparent 75%); }
.login-box { position: relative; z-index: 1; width: 460px; padding: 52px 48px 32px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .5); border-radius: 20px; box-shadow: 0 24px 60px rgba(10, 18, 50, .45), 0 2px 8px rgba(10, 18, 50, .2); animation: card-in .5s ease-out; }
@keyframes card-in { 0% { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.login-header { text-align: center; margin-bottom: 32px; }
.brand-badge { width: 56px; height: 56px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 16px; background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%); box-shadow: 0 8px 20px rgba(56, 168, 248, .4); }
.brand-badge svg { width: 30px; height: 30px; }
.login-logo { max-width: 200px; max-height: 60px; object-fit: contain; margin-bottom: 12px; }
.login-header h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: 1px; background: linear-gradient(135deg, #123055, #38a8f8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.login-welcome { margin-top: 10px; color: #8a94a6; font-size: 15px; }
.login-form .el-input__wrapper { border-radius: 10px; padding: 4px 14px; background: #f6f8fc; box-shadow: 0 0 0 1px #e3e8f2 inset; transition: box-shadow .2s, background .2s; }
.login-form .el-input__wrapper:hover { box-shadow: 0 0 0 1px #b9c6e8 inset; }
.login-form .el-input__wrapper.is-focus { background: #fff; box-shadow: 0 0 0 2px var(--brand-1) inset; }
.login-form .el-form-item { margin-bottom: 22px; }
.login-options { display: flex; justify-content: space-between; margin: -6px 0 14px; }
.login-btn { width: 100%; height: 48px; font-size: 16px; letter-spacing: 4px; border: none; border-radius: 10px; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); box-shadow: 0 8px 20px rgba(56, 168, 248, .35); transition: transform .15s, box-shadow .15s; }
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(56, 168, 248, .45); background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); }
.login-secure { text-align: center; margin-top: 22px; color: #a0aabb; font-size: 12px; }
.login-secure span { display: inline-flex; align-items: center; gap: 4px; }
.login-copyright { text-align: center; margin-top: 10px; color: #b5bdca; font-size: 12px; }
.captcha-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.captcha-img { position: relative; border-radius: 8px; overflow: hidden; background: #eef2f7; user-select: none; }
.captcha-img > img:first-child { display: block; width: 100%; height: 100%; }
.captcha-piece { position: absolute; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }
.captcha-refresh { position: absolute; top: 8px; right: 8px; color: #fff; font-size: 18px; cursor: pointer; background: rgba(0, 0, 0, .3); border-radius: 50%; padding: 4px; }
.captcha-track { position: relative; height: 40px; background: #f2f4f8; border: 1px solid #e3e8f2; border-radius: 20px; user-select: none; }
.captcha-track__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 20px; background: rgba(56, 168, 248, .18); }
.captcha-track__text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #8a94a6; }
.captcha-handle { position: absolute; top: -1px; width: 44px; height: 40px; border-radius: 20px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: center; cursor: grab; color: #38a8f8; font-size: 18px; }
.captcha-track.success .captcha-handle { background: #67c23a; color: #fff; }
.captcha-track.success .captcha-track__fill { background: rgba(103, 194, 58, .2); }
.captcha-track.fail .captcha-handle { background: #f56c6c; color: #fff; }

/* ============ 公共报告页 ============ */
.public-page { min-height: 100vh; background: linear-gradient(180deg, #0f2a4a 0, #0f2a4a 260px, #f5f7fa 260px); padding: 32px 20px 60px; }
.public-inner { max-width: 1100px; margin: 0 auto; }
.public-hero { color: #fff; margin-bottom: 24px; }
.public-hero h1 { margin: 0 0 8px; font-size: 26px; }
.public-hero p { margin: 0; opacity: .75; font-size: 14px; }
