.it-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.it-header {
    text-align: center;
    margin-bottom: 30px;
}

.it-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.it-desc {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.it-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.it-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    color: #555;
    transition: all 0.25s ease;
    font-weight: 500;
}

.it-tab:hover {
    border-color: #ff0044;
    color: #ff0044;
    background: #f0f3ff;
}

.it-tab.active {
    border-color: #ff0044;
    background: #ff0044;
    color: #fff;
}

.it-tab-icon {
    font-size: 18px;
}

.it-panels {
    min-height: 400px;
}

.it-panel {
    display: none;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.it-panel.active {
    display: block;
}

.it-panel-header {
    margin-bottom: 24px;
}

.it-panel-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.it-panel-header p {
    color: #888;
    font-size: 13px;
    margin: 0;
}

.it-upload-area {
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
    position: relative;
}

.it-upload-area:hover,
.it-upload-area.dragover {
    border-color: #ff0044;
    background: #f0f3ff;
}

.it-upload-inner {
    pointer-events: none;
}

.it-upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.it-upload-area p {
    font-size: 16px;
    color: #333;
    margin: 0 0 6px;
}

.it-upload-hint {
    font-size: 12px;
    color: #999;
}

.it-preview-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.it-preview-box {
    flex: 1;
    min-width: 250px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
}

.it-preview-box h3 {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px;
    font-weight: 600;
}

.it-preview-img {
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.it-preview-img img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 6px;
    object-fit: contain;
}

.it-arrow {
    font-size: 28px;
    color: #ff0044;
    align-self: center;
    font-weight: bold;
}

.it-info {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    line-height: 1.6;
}

.it-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-top: 20px;
}

.it-control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.it-control-group label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.it-control-group select,
.it-control-group input[type="number"],
.it-control-group input[type="url"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    min-width: 120px;
    outline: none;
    transition: border-color 0.2s;
}

.it-control-group select:focus,
.it-control-group input:focus {
    border-color: #ff0044;
}

.it-control-group input[type="range"] {
    width: 150px;
    accent-color: #ff0044;
}

.it-control-group input[type="color"] {
    width: 40px;
    height: 32px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.it-btn {
    padding: 9px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.it-btn-primary {
    background: #ff0044;
    color: #fff;
}

.it-btn-primary:hover {
    background: #3a56d4;
}

.it-btn-success {
    background: #10b981;
    color: #fff;
}

.it-btn-success:hover {
    background: #059669;
}

.it-btn-reset {
    background: #f1f3f5;
    color: #555;
}

.it-btn-reset:hover {
    background: #e2e6ea;
}

.it-crop-container {
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.it-crop-container img {
    max-width: 100%;
    display: block;
}

.it-crop-preview {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
}

.it-crop-preview h3 {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px;
}

.it-grid-preview {
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
}

.it-grid-preview h3 {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px;
}

.it-grid-results {
    margin-top: 24px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.it-grid-results h3 {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px;
}

.it-grid-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.it-grid-item {
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.it-grid-item img {
    max-width: 100%;
    border-radius: 4px;
    display: block;
}

.it-grid-item-actions {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.it-grid-item-actions button {
    padding: 4px 10px;
    font-size: 11px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.it-grid-item-actions button:hover {
    background: #ff0044;
    color: #fff;
    border-color: #ff0044;
}

.it-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 16px;
    align-items: center;
}

.it-toolbar-group {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0 8px;
    border-right: 1px solid #e0e0e0;
}

.it-toolbar-group:last-child {
    border-right: none;
}

.it-tool-btn {
    width: 36px;
    height: 36px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.it-tool-btn:hover {
    border-color: #ff0044;
    background: #f0f3ff;
}

.it-tool-btn.active {
    border-color: #ff0044;
    background: #ff0044;
}

.it-toolbar-props {
    gap: 12px;
}

.it-prop-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #555;
}

.it-prop-item label {
    white-space: nowrap;
}

.it-prop-item input[type="color"] {
    width: 30px;
    height: 26px;
}

.it-prop-item input[type="range"] {
    width: 80px;
}

.it-editor-canvas-wrap {
    background: #e8e8e8;
    border-radius: 10px;
    overflow: auto;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.it-editor-canvas-wrap canvas {
    display: block;
}

.it-screenshot-mode {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.it-mode-btn {
    padding: 8px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
    font-weight: 500;
}

.it-mode-btn:hover {
    border-color: #ff0044;
    color: #ff0044;
}

.it-mode-btn.active {
    border-color: #ff0044;
    background: #ff0044;
    color: #fff;
}

.it-screenshot-note {
    margin-top: 12px;
    font-size: 12px;
    color: #888;
}

.it-screenshot-note p {
    margin: 0;
}

.it-paste-area {
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    background: #fafbfc;
    transition: all 0.3s;
}

.it-paste-area.active {
    border-color: #ff0044;
    background: #f0f3ff;
}

.it-screenshot-result {
    margin-top: 24px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.it-screenshot-result h3 {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px;
}

.cropper-view-box,
.cropper-face {
    border-radius: 0;
}

.cropper-view-box {
    outline: 2px solid #ff0044;
    outline-color: rgba(67, 97, 238, 0.75);
}

.cropper-line {
    background-color: #ff0044;
}

.cropper-point {
    background-color: #ff0044;
    width: 8px !important;
    height: 8px !important;
    opacity: 1;
}

.it-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: it-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes it-spin {
    to { transform: rotate(360deg); }
}

.it-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    animation: it-slide-in 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.it-toast-success { background: #10b981; }
.it-toast-error { background: #ef4444; }
.it-toast-info { background: #ff0044; }

@keyframes it-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
    .it-container {
        padding: 16px 12px 40px;
    }

    .it-title {
        font-size: 22px;
    }

    .it-tabs {
        gap: 4px;
    }

    .it-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .it-panel {
        padding: 16px;
        border-radius: 12px;
    }

    .it-preview-row {
        flex-direction: column;
    }

    .it-arrow {
        transform: rotate(90deg);
        align-self: center;
    }

    .it-controls {
        gap: 8px;
    }

    .it-control-group select,
    .it-control-group input[type="number"] {
        min-width: 100px;
    }

    .it-control-group input[type="range"] {
        width: 120px;
    }

    .it-editor-toolbar {
        gap: 4px;
        padding: 8px;
    }

    .it-toolbar-group {
        padding: 0 4px;
    }

    .it-grid-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .it-screenshot-mode {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .it-tab-text {
        display: none;
    }

    .it-tab {
        padding: 10px 14px;
    }

    .it-tab-icon {
        font-size: 20px;
    }
}
