.transform-editor-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
}

.transform-preview-area {
    border: 2px dashed #e0e3eb;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
        linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #f5f5f5;
}

.transform-preview-element {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    transition: transform 0.1s ease-out;
    flex-shrink: 0;
}

.transform-control-area {
    padding: 0 15px 0 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.transform-control-area::-webkit-scrollbar {
    width: 6px;
}

.transform-control-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.transform-control-area::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.transform-control-area::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.transform-control-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.transform-control-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.transform-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transform-section-title i {
    font-size: 20px;
}

.transform-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 8px 0;
}

.transform-input-group label {
    min-width: 140px;
    font-weight: 500;
    font-size: 14px;
    color: #555;
}

.transform-input-group input[type="range"] {
    flex: 1;
    height: 6px;
    accent-color: #2196F3;
}

.transform-input-group .transform-range-value {
    min-width: 60px;
    text-align: right;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.transform-code-section {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.transform-code-section .transform-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transform-code-section .transform-section-title i {
    font-size: 20px;
}

.transform-code-block {
    background: #263238;
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
}

.transform-code-block pre {
    margin: 0;
    color: #e2e8f0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.transform-code-block .property {
    color: #9cdcfe;
}

.transform-code-block .value {
    color: #ce9178;
}

.transform-btngroup {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.transform-tool-intro {
    margin-top: 2rem;
    padding: 1rem;
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.1);
    font-size: 13px;
    color: #666;
}

.transform-tool-usage {
    margin-top: 2rem;
    padding: 1rem;
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.1);
    font-size: 13px;
    color: #666;
    line-height: 24px;
}

.transform-tool-caution {
    margin-top: 2rem;
    padding: 1rem;
    background: #ffebee;
    border-left: 4px solid #F44336;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.1);
    font-size: 13px;
    color: #666;
    line-height: 24px;
}

.transform-tool-intro ul li,
.transform-tool-usage ol li,
.transform-tool-caution ol li {
    list-style-position: inside;
}

.transform-tool-intro h4,
.transform-tool-usage h4,
.transform-tool-caution h4 {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

/* 工具主体布局样式 */
.tool-mainbox {
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    margin: 90px auto 10px auto;
}

.tool-mainleft {
    width: 75%;
}

.tool-mainright {
    margin-left: 15px;
    width: calc(25% - 15px);
}

.tool-sectionbox {
    background: white;
    border-radius: 15px;
    padding: 30px 30px 20px 30px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    width: 100%;
}

.tool-sectionheader {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tool-sectionheader h3 {
    font-size: 13px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.tool-sectionheader h3 i {
    font-size: 17px;
    color: var(--primary-color);
    margin-right: 15px;
}

.tool-sectionheader a {
    text-decoration: none;
    color: black;
    padding: 10px;
}

.tool-sectionheader a:hover {
    color: #2196F3;
    background-color: white;
}

.tool-mainleft h2 {
    padding: 5px;
    font-size: 20px;
    text-align: center;
    margin-bottom: 30px;
}

/* 右侧栏目样式 */
.rightitem-box {
    padding: 0px 10px;
    line-height: 25px;
    font-size: 13px;
    color: rgb(109, 110, 112);
}

.rightitem-tyrow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 40px;
}

.rightitem-tyrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #666;
    margin-right: 5px;
}

.rightitem-tyrow a {
    text-decoration: none;
    color: #333;
}

.rightitem-tyrow a:hover {
    color: var(--primary-color);
}

.rightitem-tyimg {
    width: 100%;
    height: 100%;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .tool-mainbox {
        display: flex;
        justify-content: start;
        flex-wrap: wrap;
    }

    .tool-mainleft {
        width: 96%;
        margin: auto;
    }

    .tool-mainright {
        width: 96%;
        margin: auto;
    }

    .transform-editor-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .transform-preview-area {
        min-height: 300px;
    }
}