/* 悬浮导航组件样式 */
.floating-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    user-select: none;
    cursor: grab;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-nav.dragging {
    cursor: grabbing;
    transition: none;
}

.floating-nav.left-side {
    right: auto;
    left: 20px;
}

.floating-nav-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: white;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    min-width: 80px;
    position: relative;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-item:hover {
    background: #f8f9fa;
}

.nav-item .icon-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
}

.nav-item .item-text {
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
    color: #333;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* 获取方案弹窗样式 */
.solution-modal .modal-content {
    max-width: 480px;
    padding: 24px;
}

.solution-steps {
    display: flex;
    justify-content: space-between;
    margin: 24px 0 32px 0;
    position: relative;
}

.solution-steps::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: #e5e5e5;
    z-index: 0;
}

.solution-steps::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 60px;
    height: 2px;
    background: #ff4757;
    z-index: 1;
    transition: width 0.3s ease;
}

.solution-steps.step-1::after {
    width: 0%;
}

.solution-steps.step-2::after {
    width: 50%;
}

.solution-steps.step-3::after {
    width: 100%;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: #ff4757;
    color: white;
}

.step-item.completed .step-number {
    background: #28a745;
    color: white;
}

.step-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: #999;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step-item.active .step-title,
.step-item.completed .step-title {
    color: #333;
    font-weight: 600;
}

.step-desc {
    font-size: 12px;
    color: #999;
}

.step-item.active .step-desc,
.step-item.completed .step-desc {
    color: #666;
}

.solution-form {
    margin-top: 32px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4757;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #ff4757;
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e5e5e5;
}

.btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover:not(:disabled) {
    background: #ff3348;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 联系弹窗样式 */
.contact-modal .modal-content {
    text-align: center;
    max-width: 400px;
}

.contact-phone {
    font-size: 32px;
    font-weight: bold;
    color: #ff4757;
    margin: 24px 0;
    letter-spacing: 2px;
}

.contact-qr {
    width: 200px;
    height: 200px;
    margin: 24px auto;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
}

.qr-placeholder {
    color: #999;
    font-size: 14px;
}

.contact-tip {
    color: #666;
    margin-top: 16px;
}

/* 成功提示样式 */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-nav {
        right: 10px;
    }

    .floating-nav.left-side {
        left: 10px;
    }

    .floating-nav-container {
        padding: 6px 0px;
    }

    .nav-item {
        width: 30px;
        height: 50px;
        padding: 0;
    }

    .nav-item svg {
        width: 16px;
        height: 16px;
    }

    .modal-content {
        padding: 20px;
        margin: 16px;
        max-width: calc(100vw - 32px);
    }

    .solution-steps {
        flex-direction: column;
        gap: 20px;
    }

    .solution-steps::before {
        display: none;
    }

    .contact-phone {
        font-size: 24px;
    }

    .contact-qr {
        width: 150px;
        height: 150px;
    }

    /* 移动端 Ant Design Steps 简化样式 */
    .ant-steps-horizontal .ant-steps-item-title {
        font-size: 13px !important;
    }

    .ant-steps-horizontal .ant-steps-item-description {
        font-size: 11px !important;
    }

    .ant-steps-item-icon {
        width: 24px !important;
        height: 24px !important;
        line-height: 24px !important;
        font-size: 12px !important;
    }
}

/* 重置为标准 Ant Design Steps 样式 */
