 .curl-container {
     display: flex;
     flex-direction: column;
     align-items: center;
 }


@media (min-width: 1024px) {
    .curl-container {
        min-width: 720px;
    }
}

.form-group {
    width: 100%;
    max-width: 800px;
    margin-bottom: 1.2rem;
}

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

.form-input,
.form-select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: #fff;
}

/* 美化下拉选择框图标 */
.form-select {
    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='%233498db' 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 1rem center;
    background-size: 1rem;
}

.text-area {
    width: 100%;
    min-height: 120px;
    padding: 1.2rem;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    resize: vertical;
    transition: all 0.2s ease;
    background-color: #f8fafc;
    font-family: Consolas, "Courier New", monospace;
}

.text-area:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: #fff;
}

/* 按钮组优化：大屏均分占满，修复边距 */
.btn-group {
    display: flex;
    width: 100%;
    max-width: 800px;
    margin: 1.5rem 0 2rem;
}

.action-btn {
    flex: 1;
    padding: 0.9rem 0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    white-space: nowrap;
}

/* 按钮间距优化，不使用gap */
#generateBtn {
    margin-right: 1rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

#clearBtn {
    margin-right: 1rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

#copyBtn {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    color: white;
}

#generateBtn:hover, #clearBtn:hover, #copyBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    background: #fafbfc;
    border-radius: 8px;
    overflow: hidden;
}

.form-table th,
.form-table td {
    padding: 10px;
    border: 1px solid #e0e6ed;
    text-align: left;
}

.form-table input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e0e6ed;
    border-radius: 4px;
}

/* 删除行按钮样式 */
.del-row {
    padding: 6px 12px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.add-row {
    margin-top: 8px;
    padding: 6px 12px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.url-row {
    display: flex;
    width: 100%;
}
.url-row select {
    width: 120px;
    margin-right: 8px;
}
.url-row input {
    flex: 1;
}

.auth-row {
    display: flex;
    width: 100%;
}
.auth-row input {
    flex: 1;
    margin-right: 8px;
}
.auth-row input:last-child {
    margin-right: 0;
}

/* 多部分表单样式优化 */
.mp-type-select {
    width: 100%;
    min-width: 140px;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #e0e6ed;
    cursor: pointer;
    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='%233498db' 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 5px center;
    background-size: 12px;
}

.mp-type-select:focus {
    border-color: #3498db;
    outline: none;
}

.file-selector {
    width: 100%;
    padding: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* 小屏幕表格样式优化 */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }
    .action-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.8rem;
    }
    .action-btn:last-child {
        margin-bottom: 0;
    }
    .url-row {
        flex-direction: column;
    }
    .url-row select {
        width: 100%;
        margin-bottom: 8px;
    }
    .auth-row {
        flex-direction: column;
    }
    .auth-row input {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .del-row {
        padding: 4px 8px;
        font-size: 12px;
    }
    /* 小屏幕下拉框加宽 */
    .mp-type-select {
        min-width: 160px !important;
        width: 160px !important;
    }
}

@media (max-width: 528px) {
    .form-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .form-table th,
    .form-table td {
        padding: 8px 6px;
        min-width: 115px;
    }

    #multipartPanel .form-table th:nth-child(3),
    #multipartPanel .form-table td:nth-child(3) {
        min-width: 210px;
    }
}

@media (min-width: 1024px) {
    #multipartPanel .form-table th:nth-child(3),
    #multipartPanel .form-table td:nth-child(3) {
        width: 225px;
    }
}

 /** 开关样式 **/
 .option-group {
     width: 100%;
     max-width: 800px;
     margin-bottom: 20px;
     padding: 15px 20px;
     background: #f9fafb;
     border-radius: 12px;
     border: 1px solid #eef2f7;
 }

.switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #e0e6ed;
}

.switch-item:last-child {
    border-bottom: none;
}

.switch-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.sf-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.sf-switch input {
    opacity: 0;
}

.sf-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d0d7de;
    transition: .3s;
    border-radius: 24px;
    cursor: pointer;
}

.sf-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .sf-slider {
    background: #3498db;
}

input:checked + .sf-slider:before {
    transform: translateX(20px);
}
