html,
body {
    min-height: 100%;
}

body {
    background-color: #f7f8fa;
    color: #1f2329;
    overflow-y: auto;
}

.outer {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.mcp-page-shell {
    display: flex;
    flex: 1;
    width: 80%;
    min-width: 1200px;
    margin: 80px auto 15px;
    background: #f7f8fa;
    align-items: flex-start;
}

.mcp-sidebar {
    position: fixed;
    width: 240px;
    background: #fff;
    border-right: 1px solid #f0f0f0;
    padding: 24px 0;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.02);
}

.mcp-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px 24px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.mcp-sidebar-logo span {
    font-size: 16px;
    font-weight: 600;
    color: #1f2329;
}

.mcp-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}

.mcp-sidebar-menu li {
    margin-bottom: 4px;
}

.mcp-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mcp-sidebar-menu a:hover {
    background: #f5f7fa;
    color: #1677ff;
    border-left-color: #e6f4ff;
    text-decoration: none;
}

.mcp-sidebar-menu a.active {
    background: #e6f4ff;
    color: #1677ff;
    font-weight: 500;
    border-left-color: #1677ff;
}

.mcp-sidebar-menu svg {
    flex-shrink: 0;
}

.mcp-main-container {
    flex: 1;
    min-width: 0;
    padding: 22px 0 20px 264px;
    overflow: visible;
}

.mcp-page-header {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.mcp-page-title {
    font-size: 32px;
    font-weight: 600;
    color: #1f2329;
    margin-bottom: 12px;
}

.mcp-page-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

.mcp-empty {
    padding: 48px 0;
    color: #999;
    text-align: center;
    grid-column: 1 / -1;
}

a {
    text-decoration: none;
}

footer {
    z-index: 10 !important;
}

/* ========= 工具列表弹窗（查看参数/查看详情）统一样式 ========= */
.return-param-modal {
    padding: 20px 26px 22px;
    background: #fff;
    color: #17324d;
    font-family: "微软雅黑", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 13px;
}

.return-param-layer {
    border-radius: 22px !important;
    overflow: hidden;
}

.return-param-layer .layui-layer-title {
    height: 62px;
    line-height: 62px;
    padding: 0 56px 0 26px;
    border-bottom: 1px solid #e8eef5;
    background: #fff;
    color: #0b5d8d;
    font-size: 20px;
    font-weight: 700;
}

.return-param-layer .layui-layer-setwin {
    top: 23px;
    right: 26px;
    display: block !important;
}

.return-param-layer .layui-layer-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(80vh - 62px);
}

.return-param-summary {
    background: #f5f8fc;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.return-param-summary .summary-item + .summary-item {
    margin-top: 6px;
}

.return-param-summary .summary-label {
    display: inline-block;
    color: #17324d;
    font-weight: 700;
    min-width: 76px;
    vertical-align: top;
}

.return-param-summary .summary-value {
    display: inline-block;
    color: #17324d;
    width: calc(100% - 84px);
    word-break: break-all;
}

.param-section {
    margin-top: 18px;
}

.param-section-title {
    color: #0f3654;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.return-param-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.return-param-table th,
.return-param-table td {
    padding: 11px 0;
    border: none;
    border-bottom: 1px solid #e6edf3;
    text-align: left;
    word-break: break-all;
    line-height: 20px;
}

.return-param-table th {
    color: #0f3654;
    font-weight: 700;
}

.return-param-table th:nth-child(1) {
    width: 300px;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: 700;
}

.return-param-table td:nth-child(1) {
    width: 300px;
    padding-left: 10px;
    padding-right: 10px;
    font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
}

.return-param-table tbody tr:last-child td {
    border-bottom: 1px solid #e6edf3;
}

.return-param-table .empty {
    text-align: center;
    color: #8aa0b5;
    padding: 26px 0;
    font-family: "微软雅黑", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
    font-weight: 400 !important;
}

.return-param-footer-tip {
    margin-top: 22px;
    padding: 9px 12px;
    background: #f8fbff;
    border-radius: 12px;
    color: #435a70;
    font-size: 12px;
    line-height: 20px;
}

/* ========= 批量订阅弹窗（iframe）统一风格 ========= */
.mcp-popup-layer {
    border-radius: 22px !important;
    overflow: hidden;
}

.mcp-popup-layer .layui-layer-title {
    height: 62px;
    line-height: 62px;
    padding: 0 56px 0 26px;
    border-bottom: 1px solid #e8eef5;
    background: #fff;
    color: #0b5d8d;
    font-size: 20px;
    font-weight: 700;
}

.mcp-popup-layer .layui-layer-setwin {
    top: 23px;
    right: 26px;
    display: block !important;
}

.mcp-popup-layer .layui-layer-content {
    background: #fff;
    overflow: hidden !important; /* iframe 弹窗由内部页面负责滚动 */
}
