
.converter-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .converter-container {
        min-width: 560px;
    }
}

/* 颜色开关样式 */


.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;
    width: 0;
    height: 0;
}
.sf-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d0d7de;
    transition: all 0.3s ease;
    border-radius: 24px;
}
.sf-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
input:checked + .sf-slider {
    background-color: #3498db;
}
input:checked + .sf-slider:before {
    transform: translateX(20px);
}

.input-output-group {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    width: 100%;
    max-width: 800px;
}

@media (min-width:768px) {
    .input-output-group {
        min-width: 365px;
    }
}

.text-area {
    width: 100%;
    min-height: 180px;
    padding: 1.2rem;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    resize: vertical;
    transition: all 0.2s ease;
    line-height: 1.6;
    background-color: #f8fafc;
}

.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;
    gap: 1.2rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

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

#convertBtn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    flex: 1;
}

#convertBtn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

#convertBtn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

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

#clearBtn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a52e20 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

#clearBtn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

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

#copyBtn:hover {
    background: linear-gradient(135deg, #219653 0%, #1e874b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

#copyBtn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* 占位符样式优化 */
::placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Markdown转HTML工具专属移动端适配 */
@media (max-width: 768px) {

    .btn-group {
        flex-direction: column;
        gap: 1rem;
    }

    .action-btn {
        width: 100%;
        padding: 0.8rem 1rem;
    }

    .text-area {
        min-height: 140px;
        font-size: 0.95rem;
        padding: 1rem;
    }
}