.seaai-ecommerce-container {
    min-height: calc(100vh - 145px);
    width: 100%;
    padding: 0;
}

.seaai-ecommerce-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.seaai-tabs-left {
    display: flex;
}

.seaai-tab-btn {
    padding: 10px 24px;
    margin-left: 15px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.seaai-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.seaai-tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.seaai-workspace-inner {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: start;
}

.seaai-left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.seaai-panel-header {
     margin-right: 40px;
}

.seaai-ecommerce-mode-content {
    display: none;
}

.seaai-ecommerce-mode-content.active {
    display: block;
}

.seaai-options-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.seaai-option-group h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.seaai-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.seaai-radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.seaai-radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.seaai-radio-label {
    font-size: 0.9rem;
    color: var(--text-main);
}

.seaai-input {
    cursor: text;
}

.seaai-select:focus, .seaai-input:focus, .seaai-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.seaai-generate-btn {
    width: 100%;
    padding: 14px 24px;
    margin-top: 10px;
    color: #fff;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-weight: 600;
}

.seaai-generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.seaai-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.seaai-spinner {
    animation: seaai-spin 1s linear infinite;
}

@keyframes seaai-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.seaai-right-panel { 
    min-height: 600px; 
    padding-left: 50px;
}

.seaai-result-section {
    height: 100%;
}

.seaai-result-grid {
    display: grid; 
}

.seaai-result-item {
    position: relative; 
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.seaai-result-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seaai-download-btn {
    width: 26px;
    height: 26px; 
    right: 47px;
    top: 15px; 
    background:#fff;
}

.seaai-download-btn svg {
    width: 11px;
    margin-top: 3px;
}

.seaai-progress-section {
    padding: 40px 20px;
}

.seaai-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.seaai-progress-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
}

.seaai-progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.seaai-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seaai-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.seaai-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .seaai-workspace {
        padding: 0 16px;
    } 
}

.seaai-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seaai-history-item-current {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.seaai-history-list > .seaai-history-item-current {
    width: 300px;
    aspect-ratio: 3 / 4;
}

.seaai-history-prompt {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.seaai-history-progress {
    width: 100%;
}

@media (max-width: 768px) {
    .seaai-result-grid {
        grid-template-columns: 1fr;
    }
}


.seaai-result-tabs {
    display: none;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.seaai-result-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s ease;
}

.seaai-result-tab:hover {
    color: var(--text-main);
}

.seaai-result-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.seaai-empty-message {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    grid-column: 1 / -1;
}

/* 提示词编辑面板 */
.seaai-prompt-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.seaai-prompt-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 30%; 
    max-width: 2800px;
    min-width: 260px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.seaai-prompt-modal-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.seaai-prompt-modal-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

#seaai-prompt-editor {
    width: 100%;
    height: 60vh;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    
}

#seaai-prompt-editor:focus {
    outline: none;
    border-color: #667eea;
}

.seaai-prompt-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.seaai-btn-primary {
    background: #667eea;
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.seaai-btn-primary[disabled] {
  background: #c0c4cc;  
  color: #909399;       
  cursor: not-allowed;  
  opacity: 0.7; 
}

.seaai-btn-primary:not([disabled]):hover {
    background: #5568d3;
}

.seaai-btn-secondary {
    background: #f5f5f5;
    color: #333;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.seaai-btn-secondary:hover {
    background: #e5e5e5;
}

/* 多组文案模态框 */
.seaai-prompt-modal-content.seaai-multi {
    width: 60%;
    max-width: 900px;
}

#seaai-multi-prompt-section {
    max-height: 65vh;
    overflow-y: auto;
    margin-bottom: 15px;
}

.seaai-multi-group-item {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 16px;
    padding: 16px;
    background: #fafafa;
}

.seaai-multi-group-header {
    margin-bottom: 12px;
}

.seaai-multi-group-index {
    font-weight: 600;
    font-size: 14px;
    color: #667eea;
    background: #eef0ff;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
}

.seaai-multi-group-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.seaai-multi-group-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.seaai-multi-group-textarea {
    flex: 1;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
}

.seaai-multi-group-textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* 文案修改面板 */
.seaai-text-modify-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.seaai-text-modify-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 65%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
}

.seaai-text-modify-modal-content h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #333;
}

.seaai-text-modify-modal-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.seaai-text-modify-panel-item {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.seaai-text-modify-panel-left {
    flex: 0 0 40%;
    max-width: 40%;
}

.seaai-text-modify-panel-left img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    object-fit: contain;
    max-height: 50vh;
}

.seaai-text-modify-panel-right {
    flex: 1;
    min-width: 0;
}

#seaai-text-modify-textarea {
    width: 100%;
    height: 100%;
    min-height: 300px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

#seaai-text-modify-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.seaai-text-modify-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .seaai-text-modify-modal-content {
        width: 95%;
        padding: 20px;
    }

    .seaai-text-modify-panel-item {
        flex-direction: column;
    }

    .seaai-text-modify-panel-left {
        flex: 0 0 auto;
        max-width: 100%;
    }

    #seaai-text-modify-textarea {
        min-height: 200px;
    }
}
