/* ================= 全局变量与重置 ================= */
:root {
    --theme-red: #c8161d;
    --theme-red-light: #fef0f0;
    --border-color: #ebeef5;
    --text-primary: #303133;
    --text-regular: #606266;
    --text-secondary: #909399;
    --bg-body: #f0f2f5;
}
body, html { margin: 0; padding: 0; font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif; height: 100vh; overflow: hidden; background-color: var(--bg-body); color: var(--text-primary); }
* { box-sizing: border-box; }
ul { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: #409eff; }

/* ================= 布局：左右结构 ================= */
.app-wrapper { display: flex; height: 100vh; width: 100vw; }

/* 侧边栏 */
.sidebar { width: 220px; background: #fff; display: flex; flex-direction: column; border-right: 1px solid var(--border-color); z-index: 10; flex-shrink: 0; }
.logo-area { height: 60px; display: flex; align-items: center; justify-content: center; background-color: #ffe6e6; color: var(--theme-red); font-size: 16px; font-weight: bold; letter-spacing: 1px; cursor: pointer; }
.menu-list { flex: 1; overflow-y: auto; padding: 10px 0; }

.menu-item { padding: 12px 20px; font-size: 14px; color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: all 0.3s;}
.menu-item:hover { color: var(--theme-red); background-color: #f9f9f9; }
.menu-item.active { background-color: var(--theme-red-light); color: var(--theme-red); border-right: 3px solid var(--theme-red); font-weight: bold; }

.sub-menu { background-color: #fafafa; }
.sub-menu .menu-item { padding: 12px 20px 12px 40px; font-size: 13px; color: var(--text-regular); border-right: none; font-weight: normal; background-color: transparent;}
.sub-menu .menu-item:hover { color: #409eff; }
.sub-menu .menu-item.active { color: #409eff; background-color: #e6f1fc; font-weight: bold; }

/* 右侧主体 */
.main-container { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

/* 顶部 Header */
.header { height: 60px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--border-color); flex-shrink: 0;}
.header-left { display: flex; align-items: center; font-size: 20px; color: var(--text-secondary); cursor: pointer; }
.header-right { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-regular); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #ddd; }

/* 内容区 Tabs */
.nav-tabs { height: 40px; background: #fff; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--border-color); flex-shrink: 0;}
.nav-tab-item { display: inline-flex; align-items: center; padding: 0 15px; height: 40px; font-size: 14px; border-bottom: 2px solid transparent; color: var(--text-regular); background: #fff; cursor: pointer;}
.nav-tab-item.active { border-bottom: 2px solid var(--theme-red); color: var(--theme-red); }

/* 内容主体 */
.page-content { flex: 1; padding: 20px; overflow-y: auto; }
.card { background: #fff; border-radius: 4px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }

/* 工具栏 */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; gap: 10px; flex-wrap: wrap;}
.toolbar-left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap;}
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;}
.toolbar input:not([class*="el-input"]), .toolbar select { padding: 8px 12px; border: 1px solid #dcdfe6; border-radius: 4px; outline: none; font-size: 13px; }
.toolbar input:not([class*="el-input"]) { width: 220px; }

/* 按钮通用样式 */
.btn { padding: 8px 15px; border-radius: 4px; font-size: 13px; cursor: pointer; outline: none; border: 1px solid #dcdfe6; background: #fff; color: #606266; transition: 0.2s;}
.btn:hover { color: #409eff; border-color: #c6e2ff; background-color: #ecf5ff; }
.btn-primary { color: #fff; background-color: #409eff; border-color: #409eff; }
.btn-primary:hover { background: #66b1ff; border-color: #66b1ff; color: #fff; }
.btn-red { background-color: #c8161d; border-color: #c8161d; color: white; }
.btn-red:hover { background-color: #a81117; border-color: #a81117; color: white; }
.btn-red:focus { background-color: #a81117; border-color: #a81117; color: white; }
.btn-outline { border-color: var(--theme-red); color: var(--theme-red); background: #fff; }
.btn-danger { color: #f56c6c; background: #fef0f0; border-color: #fbc4c4; padding: 5px 10px; font-size: 12px;}
.btn-danger:hover { background: #f56c6c; color: #fff; border-color: #f56c6c; }

/* 表格 */
.data-table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; margin-bottom: 10px;}
.data-table th, .data-table td { padding: 12px; border-bottom: 1px solid #ebeef5; text-align: left; }
.data-table th { color: var(--text-secondary); font-weight: bold; background: #fafafa; }
.data-table tr:hover { background-color: #f5f7fa; }

/* 操作列按钮 */
.action-btns { display: flex; gap: 10px; align-items: center; }
.btn-text { background: none; border: none; color: #409eff; cursor: pointer; font-size: 13px; padding: 0; }
.btn-text.highlight { color: #e6a23c; font-weight: bold; } 
.btn-text:hover { opacity: 0.8; text-decoration: underline; }

/* 分页 */
.pagination { display: flex; justify-content: flex-end; align-items: center; margin-top: 20px; font-size: 13px; color: var(--text-regular); gap: 10px; }

/* ================= 独立模块：全屏抽屉 ================= */
.full-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); z-index: 100; justify-content: flex-end; }
.full-modal-content { width: 85%; height: 100%; background: #f0f2f5; display: flex; flex-direction: column; animation: slideInRight 0.3s ease; box-shadow: -5px 0 15px rgba(0,0,0,0.1); overflow-y: auto; }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

.b-header { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 15px 25px; border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 10; }
.b-header h2 { margin: 0; font-size: 18px; color: #303133; }
.b-container { padding: 20px; flex: 1; }

.cm-footer { display: flex; justify-content: center; gap: 15px; padding: 15px 25px; border-top: 1px solid #ddd; background: #fff; position: sticky; bottom: 0; z-index: 10; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }

.b-tab-nav { display: flex; list-style: none; padding: 0; margin: 0 0 15px 0; border-bottom: 2px solid #e4e7ed; background:#fff; padding: 0 20px; }
.b-tab-nav li { padding: 12px 24px; font-size: 15px; cursor: pointer; color: #606266; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.b-tab-nav li.active { color: #409eff; border-bottom: 2px solid #409eff; font-weight: bold; }

.cm-tab-nav { display: flex; list-style: none; padding: 0; margin: 0 0 15px 0; border-bottom: 2px solid #e4e7ed; background:#fff; padding: 0 20px; justify-content: space-around; }
.cm-tab-nav li { padding: 15px 24px; font-size: 15px; cursor: pointer; color: #909399; position: relative; font-weight: bold; flex: 1; text-align: center; }
.cm-tab-nav li.active { color: #409eff; border-bottom: 2px solid #409eff; }
.cm-tab-nav li .step-num { display: inline-block; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; border: 1px solid #909399; margin-right: 8px; text-align: center; font-weight: normal; }
.cm-tab-nav li.active .step-num { border-color: #409eff; background: #409eff; color: #fff; }

.b-tab-pane, .cm-tab-pane { display: none; background: #fff; border-radius: 4px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 20px; }
.b-tab-pane.active, .cm-tab-pane.active { display: block; }

.module-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }

.info-table { table-layout: fixed; width: 100%; border-collapse: collapse; font-size: 13px; }
.info-table th, .info-table td { border: 1px solid #ebeef5; padding: 8px 10px; text-align: left; }
.info-table .bg-gray-light { background-color: #f5f7fa; text-align: center; color: #333; font-weight: 500; width: 12%; }

.table-input { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid #dcdfe6; border-radius: 2px; font-size: 13px; color: #606266; outline: none; transition: 0.2s; height: 32px; font-family: inherit;}
.table-input:focus { border-color: #409eff; }
.table-input:disabled { background-color: #f5f7fa; cursor: not-allowed; color: #909399; }
textarea.table-input { height: auto; resize: vertical; line-height: 1.5; }
select.table-input { cursor: pointer; }

.switch-wrap { position: relative; display: inline-block; width: 36px; height: 20px; vertical-align: middle; margin-top: 2px;}
.switch-wrap input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #dcdfe6; transition: .3s; border-radius: 20px; }
.switch-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2);}
.switch-wrap input:checked + .switch-slider { background-color: #409eff; }
.switch-wrap input:checked + .switch-slider:before { transform: translateX(16px); }

.required-input { background-color: #fffde6 !important; }
.input-with-star { display: flex; align-items: center; width: 100%; gap: 6px; }
.input-with-star .star { color: #f56c6c; font-weight: bold; font-family: sans-serif; font-size: 14px; margin-top: 4px;}

.text-center { text-align: center; }
.section-title { font-size: 15px; font-weight: bold; color: var(--theme-red); margin: 20px 0 10px 0; border-left: 3px solid var(--theme-red); padding-left: 8px; }

.feature-checkbox { display: inline-flex; align-items: center; border: 1px solid #dcdfe6; padding: 8px 15px; border-radius: 4px; margin: 0 10px 10px 0; color: #606266; font-size: 13px; cursor: pointer; transition: 0.2s; }
.feature-checkbox input { margin-right: 8px; cursor: pointer; }
.feature-checkbox:hover { border-color: #c6e2ff; }

/* 子弹窗样式 */
.sub-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 200; justify-content: center; align-items: center; }
.sub-modal-content { background: #fff; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); width: 800px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.sub-modal-content.large { width: 1000px; }
.sub-modal-header { padding: 12px 20px; background: #f8f8f9; border-bottom: 1px solid #ebeef5; display: flex; justify-content: space-between; align-items: center; font-weight: bold; color: #333; }
.sub-modal-header .close-btn { cursor: pointer; color: #909399; font-size: 16px; border: none; background: transparent; outline: none; }
.sub-modal-header .close-btn:hover { color: #f56c6c; }
.sub-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.sub-modal-footer { padding: 12px 20px; border-top: 1px solid #ebeef5; text-align: right; background: #fafafa; }

.search-bar { display: flex; gap: 10px; margin-bottom: 15px; align-items: center; font-size: 13px; }
.search-bar input { padding: 6px 10px; border: 1px solid #dcdfe6; border-radius: 4px; outline: none; }

.form-grid { border: 1px solid #ebeef5; border-collapse: collapse; width: 100%; font-size: 13px; }
.form-grid td { border: 1px solid #ebeef5; padding: 10px; }
.form-grid .label { background: #f8f8f9; width: 100px; text-align: center; font-weight: bold; }

.el-dropdown-link { outline: none; display: inline-flex; align-items: center; }

/* ================= 整合服务中心的特定样式 ================= */
.el-dialog__header { border-bottom: 1px solid #ebeef5; margin-right: 0; padding-bottom: 15px; }
.el-dialog__title { font-weight: bold; font-size: 16px; color: #333; }
.el-dialog__body { padding-top: 15px; }

.invite-code-box { display: inline-flex; align-items: center; background-color: #fef0f0; border: 1px solid #fbc4c4; color: #c8161d; padding: 2px 8px; border-radius: 4px; font-weight: bold; letter-spacing: 1px; font-size: 13px; }
.copy-icon { cursor: pointer; margin-left: 5px; color: #f56c6c; transition: 0.2s; }
.copy-icon:hover { color: #c8161d; transform: scale(1.1); }

.tag-matched { background-color: #f0f9eb; border-color: #e1f3d8; color: #67c23a; }
.tag-unmatched { background-color: #fef0f0; border-color: #fde2e2; color: #f56c6c; }

.add-dialog-toolbar { display: flex; gap: 15px; margin-bottom: 15px; align-items: center; padding-top: 10px; border-top: 1px solid #ebeef5; position: relative;}
.add-dialog-toolbar::before {
    content: "新增参会服务中心";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 10px;
    color: #606266;
    font-size: 14px;
}

.summary-bar {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #ebeef5;
    border-left: 4px solid #c8161d;
    display: flex;
    gap: 40px;
    font-size: 14px;
    color: #606266;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    align-items: center;
}
.summary-item .num { font-weight: bold; font-size: 20px; margin: 0 6px; }
.summary-item.report .num { color: #c8161d; }
.summary-item.sign .num { color: #67c23a; }