/* 基础样式 - 保留必要的功能性样式 */
/* 注意：Ant Design风格的样式已移至 antd-style.css */

/* 保留一些必要的功能性样式 */
.service-modules {
    display: none;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.advanced-options-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.advanced-options-content.active {
    max-height: 1000px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

/* 保留必要的功能性样式 */
#fee-result-card {
    display: none;
}

#fee-result-card.active {
    display: block;
}

#fee2-result-card {
    display: none;
}

#fee2-result-card.active {
    display: block;
}

#fee3-result-card {
    display: none;
}

#fee3-result-card.active {
    display: block;
}

/* 造价评估结果标题居中 */
.result-title {
    text-align: center;
}

/* 价格配置管理按钮 - 左上角位置 */
#open-config-center-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    padding: 12px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

#open-config-center-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

#open-config-center-btn:hover svg {
    transform: rotate(90deg);
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    /* 防止移动端滑动时的意外选择 */
    .main-card {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* 移动端按钮优化 */
    .service-select-btn {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* 移动端卡片悬停效果调整 */
    .main-card:hover {
        transform: none; /* 移动端禁用悬停变换效果 */
    }

    /* 移动端点击反馈 */
    .main-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .service-select-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* 移动端布局优化 - 防止tab切换时的空白区域 */
    .left-column,
    .right-column {
        min-height: auto !important;
        height: auto !important;
    }

    /* 移动端两列布局改为单列 */
    .two-column-layout {
        flex-direction: column;
    }

    .two-column-layout .left-column,
    .two-column-layout .right-column {
        width: 100%;
        min-height: auto;
        margin-bottom: 1rem;
    }

    /* 符合性检查表单在移动端的优化 */
    #compliance-scale-fee-form,
    #compliance-quantity-fee-form {
        min-height: auto;
        overflow: visible;
    }

    /* 计费方式选择tab在移动端的优化 */
    .fee-mode-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .fee-mode-tab {
        flex: 1;
        min-width: 120px;
        font-size: 12px;
        padding: 8px 12px;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* 科技项目验收tab在移动端的优化 */
    #tech-scale-fee-mode-tab,
    #tech-function-fee-mode-tab {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    #tech-scale-fee-mode-tab:active,
    #tech-function-fee-mode-tab:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

#open-config-center-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

#open-config-center-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* 添加脉冲动画效果 */
#open-config-center-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

#open-config-center-btn:hover::before {
    opacity: 0.2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

/* 保留配置按钮的显示逻辑 */
.config-btn, .compliance-config-btn {
    opacity: 0;
    visibility: hidden;
}

.config-btn.show, .compliance-config-btn.show {
    opacity: 1;
    visibility: visible;
}

/* ========== 统一配置管理中心样式系统 ========== */

/* 配置模态框 */
.config-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.config-modal.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 配置面板 */
.config-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 90vw;
    max-height: 90vh;
    width: 1200px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.config-modal.show .config-panel {
    animation: slideInFromTop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 配置头部 */
.config-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.config-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.config-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 统一配置内容区域 */
.unified-config-content {
    padding: 0;
    height: 100%; /* 使用100%高度，让父容器控制滚动 */
    overflow: visible; /* 移除内层滚动条 */
    display: flex;
    flex-direction: column;
}

/* 统一配置区域内的tab内容 */
.unified-config-content .config-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--ant-padding-lg);
}

.unified-config-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.unified-config-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.unified-config-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 配置选项卡容器 */
.config-tabs {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #e1e5e9;
    padding: 0 30px;
    margin: 0;
    gap: 5px; /* 标签页之间的间距 */
}

/* 配置选项卡 */
.config-tab {
    padding: 12px 18px; /* 减小内边距 */
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px; /* 稍微减小字体 */
    font-weight: 500;
    color: #6c757d;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    position: relative;
    margin-right: 3px; /* 减小右边距 */
    white-space: nowrap;
    flex-shrink: 0; /* 防止标签页被压缩 */
}

.config-tab:hover {
    color: #495057;
    background: rgba(255, 255, 255, 0.5);
}

.config-tab.active {
    color: #667eea;
    background: white;
    box-shadow: 0 -2px 8px rgba(102, 126, 234, 0.1);
}

.config-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 配置内容区域 */
.config-content {
    background: white;
    padding: 30px;
    flex: 1;
    min-height: 0;
}

/* 配置选项卡内容 */
.config-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.config-tab-content.active {
    display: block;
}

/* 软件产品配置管理样式 */
.config-panel h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

/* 软件产品配置容器 */
.software-product-config-container {
    height: 100%;
}

.config-section {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.config-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
}

.config-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.config-row label {
    min-width: 150px;
    font-weight: 500;
    color: #495057;
}

.config-row input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 120px;
    font-size: 14px;
}

.config-row input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.config-hint {
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

.config-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.config-table th,
.config-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.config-table th {
    background-color: #e9ecef;
    font-weight: 600;
    color: #495057;
}

.coefficient-input {
    width: 80px !important;
    text-align: center;
}

.type-description {
    color: #6c757d;
    font-size: 13px;
}

/* 旧的config-actions样式已移至下方统一定义 */

.btn-primary,
.btn-secondary,
.btn-info {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #117a8b;
}

.price-preview-table {
    margin-top: 15px;
}

.price-preview-table table {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.price-preview-table th {
    background-color: #007bff;
    color: white;
}

.config-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.config-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.config-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.config-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 配置区块 */
.config-section {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.config-section h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.config-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    margin-right: 12px;
}

/* 配置表单样式 */
.config-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.config-form-group {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.config-form-group label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.config-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.config-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.config-input:hover {
    border-color: #ced4da;
}

/* 配置按钮样式 */
.config-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    justify-content: flex-end; /* 改为右对齐 */
}

.config-btn-save {
    background: #1890ff;
    color: white;
    border: 1px solid #1890ff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    justify-content: center;
}

.config-btn-save:hover {
    background: #40a9ff;
    border-color: #40a9ff;
    box-shadow: 0 2px 4px rgba(24, 144, 255, 0.2);
}

.config-btn-reset {
    background: white;
    color: #666;
    border: 1px solid #d9d9d9;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    justify-content: center;
}

.config-btn-reset:hover {
    color: #1890ff;
    border-color: #1890ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 区间输入框样式 */
.range-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.range-input {
    flex: 1;
    min-width: 0;
}

.range-separator {
    color: #666;
    font-weight: 500;
    font-size: 14px;
    flex-shrink: 0;
}

.config-btn-export,
.config-btn-import {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.config-btn-export:hover,
.config-btn-import:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.config-actions-extra {
    display: flex;
    gap: 8px;
    margin-left: 0; /* 移除自动左边距，因为父容器已经右对齐 */
}

/* 配置表格样式 */
.fee-table-wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.config-fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.config-fee-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.config-fee-table th {
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.config-fee-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    text-align: center;
}

.config-fee-table tbody tr:hover {
    background: #f8f9fa;
}

.config-fee-table tbody tr:last-child td {
    border-bottom: none;
}

/* 安全专项测试所有表格居中对齐 */
.level-protection-table th,
.level-protection-table td,
.config-fee-table th,
.config-fee-table td,
.security-price-config .config-fee-table th,
.security-price-config .config-fee-table td {
    text-align: center !important;
    vertical-align: middle !important;
}

.level-protection-table .field-editable,
.config-fee-table .field-editable {
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

/* 操作列居中对齐 */
.level-protection-table td:last-child {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 12px;
    width: 80px;
}

/* 删除按钮样式优化 - 与固定价格服务一致的悬停效果 */
.delete-row-btn {
    display: inline-block;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    color: #dc3545;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin: 0 auto;
}

.delete-row-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.05);
}

.delete-row-btn svg {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin: 0;
    stroke: currentColor;
}

/* 软件造价配置中的删除按钮样式 - 与delete-row-btn保持一致 */
.remove-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 1px solid #dc3545;
    border-radius: 4px;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin: 0 auto;
}

.remove-row:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.05);
}

.remove-row svg {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin: 0;
    stroke: currentColor;
}

/* 文本居中对齐工具类 */
.text-center {
    text-align: center !important;
}

/* 内联费用表格样式 */
.inline-fee-table {
    margin: 10px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.inline-fee-table .table-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    font-size: 14px;
}

.inline-fee-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    font-size: 13px;
}

.inline-fee-table th,
.inline-fee-table td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.inline-fee-table th {
    background: #e9ecef;
    font-weight: 600;
    color: #495057;
}

.inline-fee-table tr:last-child td {
    border-bottom: none;
}

.inline-fee-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* 动态提示样式 */
.dynamic-hint {
    color: #007bff;
    font-weight: 500;
    background: #e3f2fd;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #007bff;
    margin-top: 5px;
}

.dynamic-hint.active {
    color: #d32f2f;
    background: #ffebee;
    border-left-color: #d32f2f;
    animation: pulse 2s ease-in-out;
}

.dynamic-hint .highlight-number {
    color: #d32f2f;
    font-weight: 700;
    font-size: 1.1em;
    text-shadow: 0 0 2px rgba(211, 47, 47, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* 表单行布局 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 1rem;
}

.form-group-half {
    flex: 1;
    margin-bottom: 0;
}

/* 紧凑型表格 */
.compact-table table {
    font-size: 13px;
}

.compact-table th,
.compact-table td {
    padding: 8px 12px;
    text-align: center;
}

.compact-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

/* 计算公式样式 */
.calculation-formula {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.calculation-formula strong {
    color: #0c5460;
}

/* 表格输入框 */
.table-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.table-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* 操作按钮 - 不应用于删除按钮 */
.action-btn:not(.delete-row-btn) {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:not(.delete-row-btn):hover {
    background: #c82333;
    transform: scale(1.05);
}

/* 表格操作按钮容器 */
.table-actions {
    text-align: right !important;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* 安全专项测试配置中的表格操作按钮右对齐 */
#level-protection-config .table-actions,
#commercial-crypto-config .table-actions,
.config-tab-content .table-actions {
    text-align: right !important;
    display: block !important;
}

/* 安全专项测试配置中的配置操作按钮右对齐 */
#level-protection-config .config-actions,
#commercial-crypto-config .config-actions,
.config-tab-content .config-actions {
    justify-content: flex-end !important;
    display: flex !important;
}

/* 统一所有按钮样式 - 使用安全服务添加按钮的样式 */
.add-service-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: #1890ff !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: background-color 0.3s !important;
    margin-left: auto !important;
}

.add-service-btn:hover {
    background: #40a9ff !important;
}

/* 配置操作按钮组间距 */
.config-actions .add-service-btn {
    margin-left: 8px !important;
}

.config-actions .add-service-btn:first-child {
    margin-left: 0 !important;
}

.config-actions-extra .add-service-btn {
    margin-left: 8px !important;
}

/* 更强的选择器 - 针对具体的配置页面 */
div[id*="config"] .table-actions,
.config-tab-content .table-actions,
.config-section .table-actions {
    text-align: right !important;
    width: 100% !important;
    display: block !important;
}

div[id*="config"] .config-actions,
.config-tab-content .config-actions,
.config-section + .config-actions {
    justify-content: flex-end !important;
    display: flex !important;
    width: 100% !important;
}

/* 添加行按钮 */
.add-row-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-row-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* 输入框标签和提示样式 */
.input-label-tooltip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    min-height: 40px;
}

.input-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    position: relative;
    transition: all 0.3s ease;
}

.input-tooltip:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Tooltip 气泡样式 */
.input-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.input-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 3px;
}

.input-tooltip:hover::before,
.input-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 输入框焦点状态 */
.config-form-group.focused .config-input {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.config-form-group.focused label {
    color: #667eea;
}

/* 输入框错误状态 */
.config-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.config-form-group .config-input.error + .error-message {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.error-message {
    display: none;
}

/* ========== Toast 通知系统 ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 12px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-left: 4px solid #e9ecef;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

.toast.info {
    border-left-color: #17a2b8;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.toast.success .toast-icon {
    background: #28a745;
}

.toast.error .toast-icon {
    background: #dc3545;
}

.toast.warning .toast-icon {
    background: #ffc107;
}

.toast.info .toast-icon {
    background: #17a2b8;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #6c757d;
    background: #f8f9fa;
}

/* Toast 进度条 */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background: currentColor;
    width: 100%;
    transform: translateX(-100%);
    transition: transform linear;
}

.toast.success .toast-progress-bar {
    background: #28a745;
}

.toast.error .toast-progress-bar {
    background: #dc3545;
}

.toast.warning .toast-progress-bar {
    background: #ffc107;
}

.toast.info .toast-progress-bar {
    background: #17a2b8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    /* 中等屏幕上的风险评估选项优化 */
    .risk-assessment-types {
        gap: 8px;
    }

    .assessment-type-option {
        padding: 11px 12px;
        font-size: 13px;
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    #open-config-center-btn {
        top: 15px;
        left: 15px;
        padding: 10px;
        width: 42px;
        height: 42px;
        font-size: 13px;
        border-radius: 50%;
    }

    .config-panel {
        width: 95vw;
        max-height: 95vh;
    }

    .config-tabs {
        padding: 0 15px;
        overflow-x: auto;
        flex-wrap: nowrap; /* 移动端不换行，使用滚动 */
        gap: 3px;
    }

    .config-tab {
        padding: 10px 14px; /* 移动端更紧凑 */
        font-size: 12px;
        flex-shrink: 0;
        min-width: auto;
    }

    .config-content {
        padding: 20px;
    }

    .config-form-row {
        flex-direction: column;
        gap: 15px;
    }

    .config-actions {
        flex-direction: column;
        align-items: flex-end; /* 移动端也保持右对齐 */
    }

    .config-actions-extra {
        margin-left: 0;
        justify-content: flex-end; /* 移动端右对齐 */
    }

    /* 移动端安全专项测试配置按钮右对齐 */
    #level-protection-config .config-actions,
    #commercial-crypto-config .config-actions {
        align-items: flex-end !important;
    }

    #level-protection-config .table-actions,
    #commercial-crypto-config .table-actions {
        text-align: right !important;
    }

    .config-fee-table {
        font-size: 12px;
    }

    .config-fee-table th,
    .config-fee-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    #open-config-center-btn {
        top: 10px;
        left: 10px;
        padding: 8px;
        width: 38px;
        height: 38px;
        font-size: 12px;
        border-radius: 50%;
    }

    .config-header {
        padding: 15px 20px;
    }

    .config-header h2 {
        font-size: 18px;
    }

    .config-tabs {
        flex-direction: column;
        padding: 10px;
    }

    .config-tab {
        margin-right: 0;
        margin-bottom: 5px;
        text-align: center;
        border-radius: 6px;
    }

    .config-content {
        padding: 15px;
    }

    .config-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .config-section h3 {
        font-size: 16px;
    }

    .fee-table-wrapper {
        overflow-x: auto;
    }

    .config-fee-table {
        min-width: 500px;
    }

    /* 风险评估选项在小屏幕上的优化 */
    .risk-assessment-types {
        gap: 6px;
    }

    .assessment-type-option {
        padding: 10px 8px;
        font-size: 12px;
        min-width: 0;
        flex: 1;
        max-width: none;
    }

    .assessment-type-option span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    /* 表单行在小屏幕上的优化 */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-group-half {
        margin-bottom: 1rem;
    }

    /* 紧凑型表格在小屏幕上的优化 */
    .compact-table table {
        font-size: 12px;
    }

    .compact-table th,
    .compact-table td {
        padding: 6px 8px;
    }
}

/* 这些样式已经在上面的统一样式中定义了，移除重复 */

/* 保留反馈消息的显示逻辑 */
.config-feedback {
    opacity: 0;
    transform: translateX(100%);
}

.config-feedback.show {
    opacity: 1;
    transform: translateX(0);
}

/* 保留符合性检查表单的显示逻辑 */
#compliance-scale-fee-form,
#compliance-quantity-fee-form {
    display: none;
}

#compliance-scale-fee-form.hidden,
#compliance-quantity-fee-form.hidden {
    display: none;
}

/* 保留功能点计费表单的显示逻辑 */
#func-fee-form {
    display: none;
}

#func-fee-form.active {
    display: block;
}

/* 保留一些必要的工具提示样式 */
.tooltip-text {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 保留一些必要的动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* 保留滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 信息安全专项测试样式 */
.security-test-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.test-type-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-width: 180px;
}

.test-type-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.test-type-option input[type="radio"] {
    margin-right: 8px;
}

.test-type-option input[type="radio"]:checked + span {
    color: #007bff;
    font-weight: 500;
}

.test-type-params {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #f8f9fa;
}

.special-test-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.special-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.special-item:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.special-item input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
}

.special-item input[type="checkbox"]:checked + span {
    color: #007bff;
    font-weight: 500;
}

/* 安全服务选项卡样式 */
.security-service-tabs {
    margin-top: 15px;
}

.tab-header {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.tab-btn:hover {
    color: #007bff;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: #f8f9fa;
}

.tab-content {
    min-height: 300px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.tab-description p {
    margin: 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

/* 服务类型选择样式 */
.security-service-types,
.risk-assessment-types {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.service-type-option,
.assessment-type-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    flex: 1;
    min-width: 0;
    max-width: 200px;
    justify-content: center;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.service-type-option:hover,
.assessment-type-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.15);
}

.service-type-option input[type="radio"],
.assessment-type-option input[type="radio"] {
    margin-right: 8px;
}

.service-type-option input[type="radio"]:checked + span,
.assessment-type-option input[type="radio"]:checked + span {
    color: #007bff;
    font-weight: 600;
}

/* 选中状态的整体样式 */
.service-type-option:has(input[type="radio"]:checked),
.assessment-type-option:has(input[type="radio"]:checked) {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

/* 联系人选择器样式优化 */
.contact-selector-list {
    max-height: 400px;
    overflow-y: auto;
}

.contact-selector-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-selector-item:hover {
    border-color: #007bff;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.contact-selector-item.selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #f8fff9 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.contact-selector-item.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #28a745 0%, #20c997 100%);
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    font-size: 20px;
    color: white;
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    line-height: 1.2;
}

.contact-phone {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 2px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.contact-title {
    font-size: 12px;
    color: #868e96;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 500;
}

.contact-status {
    margin-left: 12px;
    flex-shrink: 0;
    font-size: 20px;
    color: #28a745;
}

.contact-selector-item.selected .contact-status {
    animation: checkmark-bounce 0.6s ease-out;
}

@keyframes checkmark-bounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 联系人选择器模态框优化 */
#contactSelectorModal .modal-header {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

#contactSelectorModal .modal-title {
    font-size: 18px;
}

#contactSelectorModal .modal-body {
    padding: 20px;
    background: #fafbfc;
}

/* 响应式优化 */
@media (max-width: 576px) {
    .contact-selector-item {
        padding: 12px;
        margin-bottom: 8px;
    }

    .contact-avatar {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }

    .contact-avatar i {
        font-size: 16px;
    }

    .contact-name {
        font-size: 14px;
    }

    .contact-phone {
        font-size: 13px;
    }

    .contact-title {
        font-size: 11px;
    }
}

/* 兼容性：如果浏览器不支持:has选择器，使用JavaScript添加类 */
.service-type-option.selected,
.assessment-type-option.selected {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

/* 服务参数面板样式 */
.service-type-params,
.assessment-type-params,
.dengbao-service-params {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #f8f9fa;
}

/* 等保服务类型选择样式 */
.dengbao-service-types {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* 服务说明样式 */
.service-notice {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
}

.service-notice strong {
    color: #856404;
}

/* 等保服务多选列表样式 */
.dengbao-service-list {
    margin-top: 15px;
}

.service-item {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.service-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.service-checkbox input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.service-name {
    flex: 1;
    font-weight: 500;
    color: #495057;
}

.service-price {
    color: #007bff;
    font-weight: 600;
    font-size: 14px;
}

.service-checkbox input[type="checkbox"]:checked + .service-name {
    color: #007bff;
}

.service-params {
    padding: 0 15px 15px 15px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.param-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.param-row label {
    min-width: 80px;
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.param-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.param-unit {
    color: #6c757d;
    font-size: 14px;
}

.param-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    line-height: 1.4;
}

/* 服务组合说明样式 */
.service-combination-notice {
    margin-top: 25px;
    padding: 20px;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
}

.service-combination-notice h4 {
    margin: 0 0 15px 0;
    color: #0056b3;
    font-size: 16px;
}

.service-combination-notice ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.service-combination-notice li {
    margin-bottom: 8px;
    color: #495057;
    line-height: 1.5;
}

.qualification-notice {
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
}

/* 服务管理器样式 */
.service-manager {
    margin-top: 20px;
}

.service-manager h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}



/* 添加服务样式 */
.manual-add-service {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.add-service-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.add-service-form select,
.add-service-form input {
    flex: 1;
    min-width: 150px;
}

.add-service-form button {
    white-space: nowrap;
}

/* 服务清单样式 */
.service-list {
    padding: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.empty-list {
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
    font-style: italic;
}

.service-items {
    margin-top: 15px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.service-info {
    flex: 1;
}

.service-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.service-params {
    color: #007bff;
    font-size: 14px;
    margin-bottom: 3px;
}



.service-actions {
    display: flex;
    gap: 8px;
}

.edit-service-btn,
.remove-service-btn {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.edit-service-btn {
    color: #007bff;
    border-color: #007bff;
}

.edit-service-btn:hover {
    background: #007bff;
    color: white;
}

.remove-service-btn {
    color: #dc3545;
    border-color: #dc3545;
}

.remove-service-btn:hover {
    background: #dc3545;
    color: white;
}

#clear-all-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#clear-all-btn:hover {
    background: #5a6268;
}

/* 计算按钮样式 */
.security-calculate-btn-wrapper,
.performance-calculate-btn-wrapper {
    margin-top: 12px;
    text-align: left;
}

.security-calculate-btn-wrapper .btn,
.performance-calculate-btn-wrapper .btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    min-width: 120px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 服务管理器响应式 */
    .add-service-form {
        flex-direction: column;
        align-items: stretch;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .service-actions {
        align-self: flex-end;
    }

    .security-calculate-btn-wrapper,
    .performance-calculate-btn-wrapper {
        text-align: center;
    }

    .security-calculate-btn-wrapper .btn,
    .performance-calculate-btn-wrapper .btn {
        width: 100%;
        min-width: auto;
    }

    /* 信息安全专项测试移动端优化 */
    .module-content {
        padding: 15px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .module-header h2 {
        font-size: 20px;
        margin-bottom: 15px;
        word-wrap: break-word;
    }

    .back-btn {
        padding: 8px 16px;
        font-size: 14px;
        margin-bottom: 20px;
        width: auto;
        display: inline-block;
    }

    /* 防止水平滚动 */
    body, html {
        overflow-x: hidden;
    }

    .container {
        padding: 0 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Tab导航移动端优化 */
    .tab-nav,
    .tab-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
        overflow-x: visible;
    }

    .tab-btn {
        flex: 1;
        min-width: calc(50% - 4px);
        padding: 10px 8px;
        font-size: 13px;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
    }

    /* 安全服务选项卡移动端优化 */
    .security-service-tabs {
        margin-top: 10px;
    }

    .security-service-tabs .tab-header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        border-bottom: none;
        margin-bottom: 20px;
        padding: 0;
    }

    .security-service-tabs .tab-btn {
        min-width: auto;
        width: 100%;
        margin-bottom: 0;
        padding: 14px 12px;
        border-radius: 8px;
        border: 2px solid #e9ecef;
        border-bottom: 2px solid #e9ecef;
        background: white;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .security-service-tabs .tab-btn:hover {
        border-color: #007bff;
        background: #f8f9fa;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,123,255,0.15);
    }

    .security-service-tabs .tab-btn.active {
        background: #007bff;
        color: white;
        border-color: #007bff;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    }

    /* 最后一个按钮跨两列 */
    .security-service-tabs .tab-btn:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 60%;
        margin: 0 auto;
    }

    /* 表单组件移动端优化 */
    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
        display: block;
        width: 100%;
    }

    .form-control {
        padding: 12px;
        font-size: 16px; /* 防止iOS缩放 */
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    input.form-control,
    select.form-control,
    textarea.form-control {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: white;
    }

    /* 项目基本信息移动端优化 */
    .project-info {
        padding: 15px;
        margin-bottom: 20px;
    }

    .project-info h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    /* Tab内容移动端优化 */
    .tab-content {
        min-height: auto;
    }

    .tab-description {
        padding: 12px;
        margin-bottom: 15px;
    }

    .tab-description p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* 服务参数表单移动端优化 */
    .service-params {
        padding: 15px;
    }

    .service-type-params {
        margin-top: 15px;
    }

    /* 单选框组移动端优化 */
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .radio-option {
        padding: 12px;
        margin-bottom: 8px;
    }

    /* 复选框组移动端优化 */
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    .checkbox-option {
        padding: 10px;
        margin-bottom: 6px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .module-content {
        padding: 10px;
    }

    .tab-btn {
        min-width: 100%;
        margin-bottom: 5px;
        font-size: 12px;
        padding: 8px 6px;
    }

    .security-service-tabs .tab-header {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .security-service-tabs .tab-btn {
        min-width: auto;
        width: 100%;
        margin-bottom: 0;
        padding: 12px 10px;
        font-size: 13px;
    }

    .security-service-tabs .tab-btn:nth-child(5) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }

    .form-control {
        padding: 10px;
    }

    .project-info {
        padding: 12px;
    }

    .service-params {
        padding: 12px;
    }

    .tab-description {
        padding: 10px;
        margin-bottom: 15px;
    }

    .tab-description p {
        font-size: 13px;
    }
}

/* ========== 编辑服务模态框样式 ========== */
.edit-service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.edit-service-modal.show {
    opacity: 1;
    visibility: visible;
}

.edit-service-dialog {
    background: white;
    border-radius: 12px;
    padding: 24px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
}

.edit-service-modal.show .edit-service-dialog {
    transform: scale(1) translateY(0);
}

.edit-service-header {
    margin-bottom: 20px;
}

.edit-service-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.edit-service-body {
    margin-bottom: 24px;
}

.edit-service-body label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.edit-service-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.edit-service-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.edit-service-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.edit-service-btn-cancel,
.edit-service-btn-confirm {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.edit-service-btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.edit-service-btn-cancel:hover {
    background: #e9ecef;
    color: #495057;
}

.edit-service-btn-confirm {
    background: #007bff;
    color: white;
}

.edit-service-btn-confirm:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.edit-service-btn-confirm:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .edit-service-dialog {
        margin: 20px;
        padding: 20px;
        min-width: auto;
        width: calc(100% - 40px);
    }

    .edit-service-actions {
        flex-direction: column;
    }

    .edit-service-btn-cancel,
    .edit-service-btn-confirm {
        width: 100%;
        padding: 12px;
    }
}

/* ========== 确认对话框样式 ========== */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-modal.show {
    opacity: 1;
    visibility: visible;
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    padding: 24px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
}

.confirm-modal.show .confirm-dialog {
    transform: scale(1) translateY(0);
}

.confirm-header {
    margin-bottom: 16px;
}

.confirm-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.confirm-body {
    margin-bottom: 24px;
}

.confirm-body p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-btn-cancel,
.confirm-btn-confirm {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.confirm-btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.confirm-btn-cancel:hover {
    background: #e9ecef;
    color: #495057;
}

.confirm-btn-confirm {
    background: #007bff;
    color: white;
}

.confirm-btn-confirm:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.confirm-btn-confirm.danger {
    background: #dc3545;
}

.confirm-btn-confirm.danger:hover {
    background: #c82333;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 移动端优化 */
@media (max-width: 480px) {
    .confirm-dialog {
        margin: 20px;
        padding: 20px;
        min-width: auto;
        width: calc(100% - 40px);
    }

    .confirm-actions {
        flex-direction: column;
    }

    .confirm-btn-cancel,
    .confirm-btn-confirm {
        width: 100%;
        padding: 12px;
    }
}

/* 配置信息面板样式 */
.config-info-panel {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.config-info-panel .info-content {
    color: #495057;
    line-height: 1.6;
}

.config-info-panel .info-content p {
    margin: 10px 0;
}

.config-info-panel .info-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.config-info-panel .info-content li {
    margin: 5px 0;
}

.config-info-panel .info-content strong {
    color: #343a40;
}

/* 服务ID样式 */
.service-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

/* ========== 安全服务样式 ========== */

/* 服务名称样式 */
.service-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

/* 服务类别标签样式 */
.service-category {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.category-monitor { background: #e3f2fd; color: #1976d2; }
.category-analysis { background: #f3e5f5; color: #7b1fa2; }
.category-test { background: #e8f5e8; color: #388e3c; }
.category-audit { background: #fff3e0; color: #f57c00; }
.category-emergency { background: #ffebee; color: #d32f2f; }
.category-other { background: #f5f5f5; color: #616161; }

/* 动态分配的颜色类别 */
.category-purple { background: #f3e5f5; color: #7b1fa2; }
.category-orange { background: #fff3e0; color: #f57c00; }
.category-teal { background: #e0f2f1; color: #00695c; }
.category-pink { background: #fce4ec; color: #c2185b; }
.category-indigo { background: #e8eaf6; color: #3f51b5; }
.category-cyan { background: #e0f7fa; color: #0097a7; }
.category-lime { background: #f9fbe7; color: #689f38; }
.category-amber { background: #fff8e1; color: #ff8f00; }
.category-rose { background: #fce4ec; color: #e91e63; }

/* 可编辑服务类别样式 */
.service-category-editable {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    user-select: none;
}

.service-category-editable:hover {
    opacity: 0.8;
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-edit-input {
    border: 2px solid #007bff !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-align: center !important;
    background: white !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25) !important;
}

/* 阶梯式服务信息区域 */
.tier-service-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
}

.tier-service-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-service-category label {
    font-weight: 500;
    color: #495057;
    min-width: 80px;
}

/* 通用可编辑字段样式 */
.field-editable {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
    user-select: none;
    background: #f8f9fa;
    border: 1px solid transparent;
}

.field-editable:hover {
    background: #e9ecef;
    border-color: #ced4da;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 软件产品登记配置字段样式 */
.config-field {
    min-width: 80px;
    text-align: center;
    font-weight: 500;
}

.coefficient-field {
    min-width: 60px;
    text-align: center;
    font-weight: 500;
}

/* 特别为固定费用字段增强悬停效果 */
.fixed-fee-field:hover {
    background: #e9ecef;
    border-color: #ced4da;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.field-edit-input {
    border: 2px solid #007bff !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 14px !important;
    text-align: center !important;
    background: white !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25) !important;
}

/* 范围字段样式 */
.range-display-group {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.range-field {
    min-width: 50px;
    padding: 4px 6px;
}

.range-separator {
    color: #666;
    font-weight: 500;
    font-size: 14px;
    flex-shrink: 0;
}

/* 等级显示样式 */
.level-display {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

/* 服务ID标识样式 */
.service-id-badge {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.service-id-badge.tiered {
    background: #fff3cd;
    color: #856404;
}

/* 配置管理页面样式 */
.config-section-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.add-service-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.add-service-btn:hover {
    background: #40a9ff;
}

.add-service-btn svg {
    width: 16px;
    height: 16px;
}

/* 添加阶梯式服务按钮样式 */
.add-tiered-service-btn {
    background: #52c41a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 12px;
    transition: background-color 0.3s;
}

.add-tiered-service-btn:hover {
    background: #73d13d;
}

/* 阶梯式价格服务区域样式 */
.tiered-price-service-section {
    margin-bottom: 32px;
}

.tiered-config-area {
    padding: 20px;
}

.service-selector {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-selector label {
    font-weight: 500;
    color: #333;
}

.service-selector select {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

/* 阶梯配置面板样式 */
.tier-config-panel {
    display: none;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 16px;
    background: #fafafa;
}

.tier-config-panel.active {
    display: block;
}

.tier-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tier-config-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 阶梯式服务配置头部删除按钮使用与固定价格服务一致的样式 */
.tier-config-actions .delete-row-btn {
    /* 继承通用的 delete-row-btn 和 action-btn 样式 */
}

/* 阶梯式服务价格字段样式 */
.tier-price-field {
    display: inline-block;
    min-width: 60px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tier-price-field:hover {
    background: #f5f5f5;
    border-color: #d9d9d9;
}

/* 阶梯式服务数量范围字段样式 */
.tier-range-field {
    display: inline-block;
    min-width: 40px;
    padding: 2px 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    font-weight: 500;
}

.tier-range-field:hover {
    background: #e9ecef;
    border-color: #d9d9d9;
}

/* 验收测试配置双击编辑字段样式 */
.range-field {
    display: inline-block;
    min-width: 50px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    font-weight: 500;
}

.range-field:hover {
    background: #e9ecef;
    border-color: #d9d9d9;
}

/* 建设规模区间容器居中对齐 */
.range-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rate-field {
    display: inline-block;
    min-width: 60px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    font-weight: 500;
}

.rate-field:hover {
    background: #e9ecef;
    border-color: #d9d9d9;
}

.adjustment-field {
    display: inline-block;
    min-width: 50px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    font-weight: 500;
}

.adjustment-field:hover {
    background: #e9ecef;
    border-color: #d9d9d9;
}

.config-field {
    display: inline-block;
    min-width: 80px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

.config-field:hover {
    background: #e9ecef;
    border-color: #d9d9d9;
}



/* 双击编辑输入框样式 */
.field-edit-input {
    width: 100%;
    border: 2px solid #007bff;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: inherit;
    font-family: inherit;
    background: white;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.field-edit-input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

.tier-config-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.tier-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    background: #fff7e6;
    color: #fa8c16;
}

.tier-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    background: white;
}

.tier-table th,
.tier-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e8e8e8;
}

.tier-table th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
}

.tier-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tier-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    text-align: center;
}

.tier-operator {
    color: #666;
    font-weight: 500;
}

.price-input {
    width: 100px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    text-align: center;
}

.unit-select {
    width: 120px;
    padding: 4px 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.special-tier {
    background: #fff7e6 !important;
}

.tier-description {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
}

.add-tier-btn {
    background: #1890ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
    display: block;
}

.add-tier-btn:hover {
    background: #40a9ff;
}

/* 固定价格服务区域样式 */
.fixed-price-service-section {
    position: relative;
    padding-bottom: 100px; /* 为按钮留出足够空间 */
}

/* 添加服务按钮容器 */
.add-service-btn-container {
    position: static; /* 改为静态定位，让按钮在表格下方 */
    text-align: right;
    padding: 20px 16px 0 0; /* 上边距20px，右边距16px */
}

/* 确保按钮在卡片内容变化时保持在右下角 */
.add-service-btn-container .add-service-btn {
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #666;
    transition: background-color 0.3s;
}

.modal-close:hover {
    background: #f5f5f5;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.btn {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #1890ff;
    color: white;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-secondary {
    background: white;
    color: #666;
    border-color: #d9d9d9;
}

.btn-secondary:hover {
    color: #40a9ff;
    border-color: #40a9ff;
}

/* 删除按钮样式 */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #ff4d4f;
    transition: background-color 0.3s;
}

.btn-icon:hover {
    background: #fff2f0;
}

.delete-service-btn svg {
    width: 16px;
    height: 16px;
}

/* 模板下载区域样式 */
.template-download-section {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.template-download-section h4 {
    margin: 0 0 10px 0;
    color: #28a745;
    font-size: 1.1em;
}

.download-hint {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 0.95em;
}

.template-download-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.template-download-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 2px solid #28a745;
    border-radius: 6px;
    text-decoration: none;
    color: #28a745;
    transition: all 0.3s ease;
    font-weight: 500;
}

.template-download-link:hover {
    background: #28a745;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.download-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.download-text {
    flex: 1;
}

.template-usage-hint {
    margin: 0;
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
}