.engine-item {
    transition: transform .3s, box-shadow .3s, opacity .3s;
    opacity: .9;
    transform: translateY(10px);
    position: relative
}

.engine-item.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .3s, transform .3s
}

.engine-item.dragging {
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    border: 1px dashed #007cba;
    background-color: #f8f8f8;
    z-index: 100
}

.engine-item.expanded {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08)
}

.engine-header {
    cursor: pointer;
    transition: background-color .3s
}

.engine-header:hover {
    background-color: #f8f9fa
}

.engine-content {
    transition: height .3s, opacity .3s, padding .3s
}

.add-engine-btn,
.add-model-btn,
.button-primary,
.button-secondary,
.delete-engine,
.delete-model,
.edit-engine {
    transition: transform .2s, box-shadow .2s, background-color .2s
}

.add-engine-btn:hover,
.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1)
}

.add-engine-btn:active,
.button-primary:active,
.button-secondary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1)
}

.button-pressed {
    transform: translateY(1px)
}

.delete-engine:hover,
.delete-model:hover {
    color: #dc3545;
    transform: translateY(-1px)
}

.input-focus {
    border-color: #007cba !important;
    box-shadow: 0 0 0 1px #007cba !important
}

.engine-content input[type=text],
.engine-content select,
.engine-content textarea,
.model-content input[type=text],
.model-content select {
    transition: border-color .3s, box-shadow .3s
}

.engine-content input[type=text]:focus,
.engine-content select:focus,
.engine-content textarea:focus,
.model-content input[type=text]:focus,
.model-content select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 0
}

.drag-handle {
    cursor: move;
    transition: color .3s
}

.drag-handle:hover {
    color: #2271b1
}

.admin-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .8);
    z-index: 999
}

.submitting {
    pointer-events: none;
    opacity: .7;
    animation: 1.5s ease-in-out infinite pulse
}

@keyframes pulse {

    0%,
    100% {
        opacity: .7
    }

    50% {
        opacity: 1
    }
}

.admin-status {
    margin-top: 8px;
    border-left: 4px solid
}

.admin-status.success-message {
    background-color: #ecf8ed;
    color: #116329;
    border-color: #116329
}

.admin-status.error-message {
    background-color: #fcf2f2;
    color: #cf222e;
    border-color: #cf222e
}

.toggle-checkbox {
    transition: background-color .3s
}

.aitoutou-modal-content,
.toggle-checkbox:checked+.toggle-switch {
    transition: transform .3s
}

.model-item {
    transition: transform .3s, box-shadow .3s, opacity .3s;
    opacity: 0;
    animation: .4s forwards fadeInUp
}

.aitoutou-modal,
.icon-preview img {
    transition: opacity .3s
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width:768px) {
    .engine-item {
        padding: 10px
    }

    .engine-header {
        padding: 8px
    }
}

.test-result {
    margin-top: 8px;
    padding: 4px 0
}

.testing {
    color: #666;
    display: flex;
    align-items: center
}

.loading-dots {
    display: inline-block;
    margin-left: 4px
}

.loading-dots:after {
    content: '.';
    animation: 1.5s steps(5, end) infinite dots
}

@keyframes dots {

    0%,
    20% {
        content: '.'
    }

    20%,
    40% {
        content: '..'
    }

    40%,
    60% {
        content: '...'
    }

    60%,
    80% {
        content: '....'
    }

    100%,
    80% {
        content: '.....'
    }
}

.test-success {
    color: #46b450;
    font-weight: 500
}

.test-error {
    color: #dc3232;
    font-weight: 500
}

.engine-item.visible {
    display: block !important;
    opacity: 1 !important
}

.engine-item.expanded .engine-header {
    background-color: #f0f7fc;
    border-bottom-color: #c7d7e3
}

.aitoutou-settings-wrap {
    margin: 20px 0
}

.aitoutou-tabs-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    margin-top: 20px
}

.aitoutou-tab-link,
.aitoutou-tabs-nav {
    margin: 0;
    display: flex;
    position: relative
}

.aitoutou-tabs-nav {
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap
}

.aitoutou-tab-link {
    padding: 12px 15px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    border-right: 1px solid #ddd;
    transition: .3s;
    align-items: center;
    white-space: nowrap
}

.aitoutou-tab-link:focus {
    box-shadow: none;
    outline: 0
}

.aitoutou-tab-link .dashicons {
    margin-right: 6px;
    opacity: .8;
    transition: .3s
}

.aitoutou-tab-link:hover {
    background: #f1f1f1;
    color: #0073aa
}

.aitoutou-tab-link:hover .dashicons {
    opacity: 1;
    transform: translateY(-1px)
}

.aitoutou-tab-link.active {
    background: #fff;
    color: #0073aa;
    margin-bottom: -1px;
    border-bottom: 1px solid #fff;
    position: relative
}

.aitoutou-tab-link.active:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0073aa;
    display: block
}

.aitoutou-tab-link.active .dashicons {
    opacity: 1
}

.aitoutou-tabs-content {
    padding: 0;
    position: relative
}

.aitoutou-tab-panel {
    display: none;
    padding: 0;
    position: relative
}

.aitoutou-tab-panel.active {
    display: block;
    animation: .3s forwards fadeInRight
}

.aitoutou-tab-header {
    padding: 20px 20px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px
}

.icon-preview,
.icon-upload-container {
    margin-bottom: 10px
}

.aitoutou-tab-header h2 {
    margin-top: 0;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0073aa
}

.aitoutou-tab-content {
    padding: 0 20px 20px
}

.aitoutou-tab-panel .form-table th {
    padding-left: 0
}

.aitoutou-settings-wrap .submit {
    margin: 20px;
    padding: 0;
    text-align: right
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@media (max-width:782px) {
    .aitoutou-tab-link {
        padding: 10px;
        font-size: 13px
    }

    .aitoutou-tab-link .dashicons {
        margin-right: 3px;
        font-size: 18px
    }
}

@media (max-width:600px) {

    .aitoutou-tab-link,
    .aitoutou-tab-link.active {
        border-bottom: 1px solid #ddd
    }

    .aitoutou-tabs-nav {
        flex-direction: column
    }

    .aitoutou-tab-link {
        border-right: none
    }

    .aitoutou-tab-link.active:after {
        top: 0;
        left: 0;
        width: 3px;
        height: 100%;
        right: auto
    }
}

.icon-preview {
    width: 100px;
    height: 100px;
    border: 1px dashed #ccc;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.icon-preview img {
    max-width: 100%;
    max-height: 100%;
    display: block
}

.no-icon {
    color: #999;
    font-style: italic
}

.upload-icon {
    margin-right: 8px !important
}

.remove-icon {
    color: #d63638 !important
}

.remove-icon:hover {
    background-color: #f8d7da !important;
    border-color: #d63638 !important
}

.upload-icon:hover+.remove-icon+.icon-preview img {
    opacity: .8
}

.media-modal-content .media-frame-title h1 {
    font-size: 18px
}

.media-modal-content .attachment-preview {
    background: #f8f8f8
}

/* 助手引擎管理样式 */
.assistant-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    opacity: 0.9;
    transform: translateY(10px);
    position: relative;
}

.assistant-item.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s;
}

.assistant-item.dragging {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px dashed #007cba;
    background-color: #f8f8f8;
    z-index: 100;
}

.assistant-item.expanded {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.assistant-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    background-color: #f5f7f8;
    transition: background-color 0.3s;
}

.assistant-header:hover {
    background-color: #f8f9fa;
}

.assistant-header h3 {
    margin: 0;
    flex-grow: 1;
    font-size: 16px;
    color: #23282d;
}

.assistant-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assistant-content {
    padding: 15px;
    background-color: #fff;
    transition: height 0.3s, opacity 0.3s, padding 0.3s;
}

.edit-assistant,
.delete-assistant {
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.delete-assistant:hover {
    color: #dc3545;
    transform: translateY(-1px);
}

.assistants-list {
    margin-bottom: 20px;
}

.undeletable-badge {
    background-color: #ebf5fa;
    color: #0073aa;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    border: 1px solid #c7d7e3;
    margin-right: 8px;
}

.new-assistant .assistant-header {
    background-color: #e6f6e8;
    border-bottom-color: #c3e6c7;
}

#add-new-assistant {
    margin-top: 10px;
}

.assistant-item[data-id="default"],
.assistant-item[data-id="custom"] {
    background-color: #f8f9fb;
    border-left: 3px solid #2271b1;
}

.assistant-item[data-id="default"] .drag-handle,
.assistant-item[data-id="custom"] .drag-handle {
    opacity: 0.5;
    cursor: not-allowed;
}

.assistant-item[data-id="default"] .assistant-header,
.assistant-item[data-id="custom"] .assistant-header {
    background-color: #eef2f9;
}

/* 短代码预览区域样式 */
.shortcode-preview {
    margin-top: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.shortcode-preview code {
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: "SF Mono", Monaco, "Cascadia Code", Consolas, monospace;
    font-size: 13px;
    color: #d63384;
    border: 1px solid #e0e0e0;
    flex: 1;
    min-width: 200px;
}

.shortcode-preview .copy-shortcode {
    flex-shrink: 0;
}

/* 助手模板选择样式 */
select[name*="[template]"],
select[name*="_template"] {
    min-width: 300px;
}

/* 短代码输入框样式 */
input[name*="[shortcode]"],
input[name*="_shortcode"] {
    max-width: 300px;
}

/* ==================== 极简新风格模板 - 参考案例配置样式 ==================== */
.clean-examples-config {
    background-color: #f8f9fa;
    border-left: 3px solid #667eea;
}

.clean-examples-config th {
    padding-top: 20px;
    vertical-align: top;
}

.clean-examples-list {
    margin-bottom: 12px;
}

.clean-example-config-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.clean-example-config-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.example-config-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.example-icon-input {
    width: 60px !important;
    text-align: center;
    font-size: 18px !important;
    padding: 5px !important;
}

.example-title-input {
    flex: 1;
}

.example-content-input {
    width: 100%;
    resize: vertical;
    min-height: 60px;
}

.remove-example-item {
    color: #d63638 !important;
    flex-shrink: 0;
}

.remove-example-item:hover {
    background-color: #f8d7da !important;
    border-color: #d63638 !important;
}

.add-clean-example,
.add-new-clean-example {
    background-color: #667eea !important;
    border-color: #667eea !important;
    color: #fff !important;
}

.add-clean-example:hover,
.add-new-clean-example:hover {
    background-color: #5a6fd6 !important;
    border-color: #5a6fd6 !important;
}

/* 模板选择下拉框高亮 */
.assistant-template-select option[value="clean"] {
    color: #667eea;
    font-weight: 600;
}

/* 新助手参考案例配置 */
.new-clean-examples-config {
    background-color: #f0f7f0;
    border-left: 3px solid #46b450;
}

.new-clean-examples-config th {
    padding-top: 20px;
    vertical-align: top;
}

/* 响应式调整 */
@media (max-width: 782px) {
    .example-config-row {
        flex-wrap: wrap;
    }

    .example-icon-input {
        width: 50px !important;
    }

    .example-title-input {
        flex: 1;
        min-width: 150px;
    }

    .remove-example-item {
        width: 100%;
        margin-top: 8px;
    }
}

/* ==================== 案例详细编辑器模态框 ==================== */
.example-editor-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.example-editor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.example-editor-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    /* 移除 max-height 限制，让容器根据内容自适应 */
    max-height: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
    /* 关键：让容器本身处理滚动 */
    overflow: visible;
    /* 确保模态框在视口内，上下都有边距 */
    margin: 20px auto;
    flex-shrink: 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.example-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    flex-shrink: 0;
}

.example-editor-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.example-editor-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-editor-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.example-editor-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.example-editor-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    min-height: 100%;
}

/* 左侧编辑区域 */
.example-editor-form {
    padding: 24px;
    border-right: 1px solid #e0e0e0;
}

.editor-section {
    margin-bottom: 28px;
}

.editor-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.form-row input[type="text"],
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-row input[type="text"]:focus,
.form-row textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.tab-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600 !important;
}

.prompt-label { color: #FF6B9D; }
.result-label { color: #3B82F6; }
.effect-label { color: #22C55E; }

/* 样式配置 */
.style-config-row {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.color-picker-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-group label {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.color-picker-group input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
}

.color-value {
    font-family: monospace;
    font-size: 12px;
    color: #888;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.preset-colors {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-label {
    font-size: 13px;
    color: #666;
}

.color-preset {
    width: 36px;
    height: 36px;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.color-preset:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 右侧预览区域 */
.example-editor-preview {
    padding: 24px;
    background: #f8f9fa;
}

.preview-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.preview-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.preview-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.preview-header {
    padding: 12px 16px;
    text-align: center;
}

.preview-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-content-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
}

.preview-col {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.col-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.col-icon {
    font-size: 16px;
}

.col-body {
    padding: 12px;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 底部按钮 */
.example-editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.example-editor-footer .button {
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.example-editor-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.example-editor-save:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
}

.example-editor-save:active {
    transform: translateY(0);
}

.example-editor-cancel {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #666 !important;
}

.example-editor-cancel:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
}

/* 案例列表项样式更新 */
.clean-example-config-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.clean-example-config-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.1);
}

.example-drag-handle {
    color: #ccc;
    font-size: 14px;
    cursor: move;
    padding: 0 4px;
    user-select: none;
}

.example-icon-display {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.example-title-display {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.example-actions {
    display: flex;
    gap: 8px;
}

.edit-example-detailed {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    color: #fff !important;
}

.edit-example-detailed:hover {
    opacity: 0.9;
}

/* 保存成功动画 */
@keyframes savedPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.saved-animation {
    animation: savedPulse 0.5s ease;
    border-color: #667eea !important;
}

/* 模态框打开时允许页面滚动，从而带动模态框移动 */
body.modal-open {
    /* 不阻止 body 滚动，让整个页面可以滚动 */
    overflow: auto !important;
    position: relative !important;
}

/* 确保 WordPress 后台不会阻止滚动 */
html.wp-toolbar body.modal-open {
    overflow: auto !important;
    position: relative !important;
}

/* 模态框使用 absolute 定位，跟随页面滚动 */
body.modal-open .example-editor-modal {
    overflow: visible !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-height: 100% !important;
    height: auto !important;
    z-index: 100000;
}

/* 强制模态框容器可滚动 */
body.modal-open .example-editor-modal .example-editor-container {
    max-height: none !important;
    margin: 20px auto !important;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .example-editor-modal {
        padding: 10px;
    }

    .example-editor-container {
        width: 95%;
        max-height: none;
    }

    .example-editor-layout {
        grid-template-columns: 1fr;
    }

    .example-editor-form {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .example-editor-preview {
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .example-editor-modal {
        padding: 0;
        align-items: flex-start;
    }

    .example-editor-container {
        width: 100%;
        max-height: none;
        height: auto;
        min-height: 100vh;
        border-radius: 16px 16px 0 0;
        margin: 20px 0 0 0;
    }

    .example-editor-header {
        padding: 12px 16px;
    }

    .example-editor-header h3 {
        font-size: 16px;
    }

    .example-editor-form {
        padding: 16px;
    }

    .example-editor-preview {
        padding: 16px;
        max-height: 300px;
    }

    .preview-content-three-col {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .example-editor-footer {
        padding: 12px 16px;
    }

    .example-editor-footer .button {
        padding: 12px 24px;
        font-size: 16px;
        flex: 1;
        text-align: center;
    }

    .style-config-row {
        flex-direction: column;
        gap: 12px;
    }

    .editor-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .example-editor-container {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .example-editor-body {
        max-height: calc(100vh - 130px);
    }

    .form-row {
        margin-bottom: 12px;
    }

    .form-row input[type="text"],
    .form-row textarea {
        padding: 12px;
        font-size: 16px; /* 防止iOS缩放 */
    }
}