/* 主布局样式 */
.configurator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.configurator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 内容区域布局 */
.config-content-area {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.configurator-layout {
    display: flex;
    gap: 30px;
}

.config-main {
    flex: 3;
    min-width: 0; /* 防止内容溢出 */
}

.config-sidebar {
    flex: 1;
    min-width: 300px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
}
/* 左侧配置表单容器 */
.config-form-container {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
/* 右侧配置清单 */
.config-summary-sidebar {
    width: 320px;
    position: sticky;
    top: 20px;
}

.summary-panel {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}
.summary-panel h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #0066cc;
    font-size: 1.2em;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .configurator-layout {
        flex-direction: column;
    }
    
    .config-sidebar {
        order: -1;
        margin-bottom: 30px;
        position: static;
    }
}

@media (max-width: 468px) {
    .config-sidebar {
        min-width: 100%;
    }
}
/* 进度条 */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.step-title {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
    transition: all 0.3s ease;
	max-width:60%;
}
.step-title.completed:after {
    content: "✓";
}
.step-connector {
    position: absolute;
    top: 16px;
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
    height: 2px;
    background-color: #e0e0e0;
    z-index: -1;
}
/* 添加动画效果 */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 102, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); }
}

.progress-step.active .step-number {
    animation: pulse 1.5s infinite;
}

.progress-step.completed .step-number:after {
  /*  content: "✓"; */
    position: absolute;
    color: white;
    font-size: 12px;
}
/* 激活状态 */
.progress-step.active .step-number {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.progress-step.active .step-title {
    color: #0066cc;
    font-weight: bold;
}

/* 已完成状态 */
.progress-step.completed .step-number {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.progress-step.completed .step-connector {
    background-color: #0066cc;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .step-title {
        font-size: 11px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .step-connector {
        top: 14px;
    }
}

/* 选项卡片 */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.option-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.option-card:hover {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.option-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.option-card h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.option-card .price {
    font-weight: bold;
    color: #e74c3c;
    margin: 0.5rem 0;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-card label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ecf0f1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.option-card input[type="radio"]:checked + label {
    background: #3498db;
    color: white;
}
/* 选项组样式 */
.option-group {
    margin-bottom: 30px;
}

.option-group h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* 单选按钮列表样式 */
.options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-item {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 200px;
    position: relative;
}

.option-item .checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: white;
    transition: all 0.2s ease;
}

.option-item .checkmark-icon {
    position: absolute;
    display: none;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3498db;
}

@keyframes checkmarkScale {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.option-item input[type="radio"]:checked ~ label .checkmark-icon {
    animation: checkmarkScale 0.3s ease-out;
}

.option-item input[type="radio"]:checked ~ label .checkmark-icon {
    display: block;
}

.option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-item label {
    display: block;
    padding: 15px 35px 15px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9f9f9;
    position: relative;
}

.option-item input[type="radio"]:checked + label {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 0 0 1px #3498db;0 0 10px rgba(52, 152, 219, 0.2);
}

.option-item label:hover {
    border-color: #3498db;
}

.option-name {
    font-weight: 500;
    color: #333;
    display: block;
    padding-right: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .option-item {
        flex: 1 1 100%;
    }
}
/* 禁用样式 */
.option-item.disabled-option label {
    background-color: #e9ecef; /* 浅灰色背景 */
    color: #6c757d; /* 灰色文本 */
    cursor: not-allowed; /* 禁用鼠标样式 */
    border-color: #ced4da;
    opacity: 0.7; /* 略微透明 */
    box-shadow: none;
	pointer-events: none;
}

.option-item.disabled-option label:hover {
    border-color: #ced4da; /* 禁用状态下 hover 保持不变 */
    box-shadow: none;
}

.option-item.disabled-option input[type="radio"]:checked + label {
    background-color: #e9ecef; /* 禁用状态下选中也保持灰色 */
    color: #6c757d;
    border-color: #ced4da;
}

.option-item.disabled-option .checkmark {
    background-color: #adb5bd; /* 禁用状态下复选框背景 */
    border-color: #adb5bd;
}

.option-item.disabled-option .checkmark-icon {
    color: #e9ecef; /* 禁用状态下复选框图标颜色 */
}

/* 选项列表 */
/* .options-list {
    margin-top: 1.5rem;
}

.option-item {
    margin-bottom: 0.75rem;
}

.option-item input[type="radio"] {
    display: none;
}

.option-item label {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item label:hover {
    border-color: #3498db;
}

.option-item input[type="radio"]:checked + label {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.option-item .name {
    font-weight: 500;
}

.option-item .price {
    float: right;
    color: #e74c3c;
    font-weight: bold;
} */

/* 摘要面板 */
.summary-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.summary-panel h3 {
    margin-bottom: 1rem;
    color: #2980b9;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

/* 配置清单项样式 */
#realtime-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#realtime-summary li {
    padding: 10px 0;
    border-bottom: 1px dashed #eb9f14;
    display: flex;
    justify-content: space-between;
}

#realtime-summary li:last-child {
    border-bottom: none;
}

#realtime-summary .label {
    font-weight: 500;
    color: #666;
}

#realtime-summary .value {
    color: #333;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.price-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    font-size: 1.2em;
    font-weight: bold;
    text-align: right;
}

.price-total strong {
    color: #e74c3c;
	overflow-wrap: break-word;
}

/* 添加悬停效果 */
#realtime-summary li:hover {
    background-color: #f9f9f9;
}

/* 导航按钮 */
.navigation-buttons {
    margin-top: 2rem;
    text-align: center;
}

.btn-prev, .btn-next, .btn-download, .btn-inquiry, .btn-inquiry-active {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-prev {
    background: #ecf0f1;
    color: #7f8c8d;
    margin-right: 1rem;
}

.btn-prev:hover {
    background: #bdc3c7;
}

.btn-next {
    background: #3498db;
    color: white;
}

.btn-next:hover {
    background: #2980b9;
}

.btn-next:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.btn-download {
    background: #2ecc71;
    color: white;
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    display: inline-block;
    margin-top: 1.5rem;
}
.btn-inquiry {
    /* background: #2ecc71; */
    color: white;
    font-size: 1.1rem;
    /*  padding: 0.9rem 2rem;*/
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 10px;
}
.btn-inquiry-active {
    /*background: #2ecc71;*/ 
    background: #441f54;
    color: white;
    font-size: 1.1rem;
    /*  padding: 0.9rem 2rem;*/
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 10px;
}
.btn-download:hover {
    background: #27ae60;
}

/* 完成消息 */
.completion-message {
    background: #e8f4fc;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.completion-message p {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .configurator-layout {
        flex-direction: column;
    }
    
    .config-sidebar {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-steps .step {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* 修改选项卡片样式 */
.option-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    display: block; /* 使整个label可点击 */
    overflow: hidden;
}

.option-card:hover {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 隐藏原生单选按钮 */
.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

/* 自定义选中指示器 */
.checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 50%;
    border: 1px solid #ddd;
}

/* 选中状态样式 */
.option-card input[type="radio"]:checked ~ .checkmark {
    background-color: #3498db;
    border-color: #2980b9;
}

.option-card input[type="radio"]:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-card input[type="radio"]:checked ~ img {
    border: 2px solid #3498db;
}

.option-card input[type="radio"]:checked ~ h3 {
    color: #3498db;
}

.option-card input[type="radio"]:checked ~ .price {
    color: #e74c3c;
    font-weight: bold;
}
/* 添加过渡效果 */
.option-card img {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 4px;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.option-card h3 {
    transition: color 0.3s ease;
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.option-card .price {
    transition: all 0.3s ease;
    font-weight: bold;
    color: #e74c3c;
    margin: 0.5rem 0;
}

/* 选中状态增强效果 */
.option-card input[type="radio"]:checked ~ .checkmark {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.option-card input[type="radio"]:checked {
    border-color: #3498db;
    box-shadow: 0 0 0 1px #3498db;
}
/* 表单控件样式 */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

select[multiple].form-control {
    height: auto;
    min-height: 120px;
    background-image: none;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

/* 工位配置容器 */
.station-configs-container {
    margin-top: 20px;
}

/* 工位配置项 */
.station-config {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

/* 工位标题栏 */
.station-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f5f5f5;
    cursor: pointer;
    user-select: none;
}

.station-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* 切换按钮 */
.toggle-config-btn {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.toggle-icon {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

/* 展开状态 */
.station-config.active .toggle-icon {
    transform: rotate(0deg);
}

/* 配置字段区域 */
.station-fields {
    padding: 15px;
    background: white;
    display: flex;
     /*flex-direction: column;8.11注释*/
    gap: 15px;
	/*8.11新增*/
	flex-wrap: wrap; 
}

.station-fields .form-group {
    margin-bottom: 0;
    	/*8.11新增*/
	flex: 1 1 45%; 
    min-width: 250px; /* 确保在小屏幕上不会过度压缩 */
}

/* 响应式调整  */
@media (max-width: 768px) {
    .station-header {
        padding: 10px 12px;
    }
    
    .station-fields {
        padding: 12px;
    }
}

.station-summary {
    margin-bottom: 8px;
}

.station-summary .station-header {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    cursor: pointer;
    border-bottom: 1px dashed #eee;
}

.station-summary .station-header:hover {
    background-color: #f5f5f5;
}

.station-summary .station-details {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
}

.station-summary .station-details li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.9em;
}

.station-summary .station-details li span:first-child {
    color: #666;
    font-weight: 500;
}

.station-summary .station-details li span:last-child {
    color: #333;
}

.toggle-station {
    font-weight: bold;
    width: 20px;
    text-align: center;
}
.muted{
	color:red;
}

@media (max-width: 768px) {
    .configurator-container {
        padding: 15px; 
    }

   
    .config-content-area,
    .configurator-layout {
        flex-direction: column;
        gap: 20px;
	align-items:normal;
    }

    .config-main {
        flex: auto; 
        width: 100%; 
    }

    .config-sidebar,
    .config-summary-sidebar {
        flex: auto; 
        width: 100%; 
        position: static; 
        margin-top: 20px; 
    }

    .config-form-container {
        padding: 20px; 
    }

    
    .progress-steps {
        flex-direction: column;
        align-items: flex-start; 
        padding: 0;
        margin-bottom: 20px;
		display: none;
    }

    .progress-step {
        width: 100%; 
        text-align: left; 
        padding-top: 0;
        padding-bottom: 10px; 
        border-bottom: 1px solid #eee;
        margin-bottom: 10px;
    }

    .progress-steps .progress-step:last-child {
        border-bottom: none; 
        margin-bottom: 0;
    }

    .progress-step .step-number {
        margin: 0 10px 0 0; 
        display: inline-block; 
        vertical-align: middle;
    }

    .progress-step .step-title {
        display: inline-block;
        vertical-align: middle;
        font-size: 0.9em; 
    }

    .progress-step .step-connector {
        display: none; 
    }

    /* 选项卡片和列表 */
    .options-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); 
        gap: 10px;
    }
    .option-card {
        padding: 12px;
        min-height: 100px;
    }
    .option-card img {
        max-width: 60px; 
    }
    .option-card h3 {
        font-size: 0.9em;
    }
    .options-list {
        gap: 8px;
    }
    .option-item {
        min-width: 100px; 
        max-width: none; 
        flex: 1 1 48%; 
    }
    .option-item label {
        padding: 10px 12px; 
        font-size: 0.9em;
    }

    .checkmark {
        height: 18px;
        width: 18px;
    }
    .checkmark-icon {
        font-size: 12px;
    }

    
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-prev, .btn-next, .btn-download {
        width: 100%; 
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .completion-message {
        padding: 25px 15px;
        font-size: 1em;
    }
    .station-header {
        padding: 10px 12px;
    }
    .station-fields {
        padding: 12px;
    }
    .station-summary .station-details {
        padding-left: 10px;
        font-size: 0.85em;
    }
}
@media (max-width: 480px) {
    .configurator-container {
        padding: 10px;
    }
    .config-form-container {
        padding: 15px;
    }
    .options-grid {
        grid-template-columns: 1fr; 
    }
    .option-item {
        flex: 1 1 100%; 
        max-width: 100%;
    }
    .option-card {
        min-height: 90px;
        padding: 10px;
    }
    .option-card img {
        max-width: 50px;
    }
    .option-card h3 {
        font-size: 0.85em;
    }
    .progress-step .step-title {
        font-size: 0.8em;
    }
}