* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #e8eaed;
}

.page-wrapper {
    min-height: 100vh;
    background: #fff;
}

.jimeng-container {
    display: flex;
    min-height: 100%;
}

.left-sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-right: 1px solid #e8eaed;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

.menu-title {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    padding-left: 8px;
}

.menu-item {
    width: 210px;
    height: 42px;
    display: flex;
    align-items: center;
    margin-left: 4px;
    font-weight: 700;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 6px;
    transition: all 0.3s;
}

.menu-item:hover {
    background: #f5f7fa;
    color: #333;
}

.menu-item.active {
    background: #5A63FF;
    color: #fff;
}

.menu-item svg{color: #000;}
.menu-item.active svg{color: #fff;}

.menu-icon {
    width: 18px;
    height: 18px;
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    width: 230px;
    height: 120px;
    gap: 12px;
    padding-top: 12px;
    margin-left: -6px;
    border: 1px solid #e8eaed;
}

.points-card {
    background: #ffffff;
    width: 200px;
    height: 24px;
    border-radius: 10px;
    margin: 0 auto;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-icon {
    width: 14px;
    height: 14px;
    color: #667eea;
    flex-shrink: 0;
}

.points-icon svg{
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.points-label {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

.points-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
    margin-left: -8px;
    margin-right: 8px;
}

.points-detail {
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
    flex-shrink: 0;
}

.member-card {
    background: #DCDEFF;
    border-radius: 10px;
    width: 198px;
    height: 50px;
    margin: 0 auto;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.member-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #5A63FF;
    font-weight: 500;
}

.member-detail {
    background: #5A63FF;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.points-card-x{width: 198px;height: 1px;background: #EEEEEE;margin: 0 auto;}
.user-btn {
    background: #5A63FF;
    border-radius: 30px;
    padding: 12px;
    margin-top: 16px;
    width: 230px;
    height: 54px;
    margin-left: -6px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-btn .user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.user-btn .user-avatar svg {
    width: 16px;
    height: 16px;
}

.user-btn .user-name {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.main-content {
    flex: 1;
    min-height: 100vh;
    margin-left: 250px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #F8F9FA;
}

.content-header {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 60px auto 38px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.title-section {
    width: 100%;
    text-align: center;
    flex: 1;
}

.title-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.title-section p {
    font-size: 13px;
    color: #999;
}

.history-btn {
    position: absolute;
    top: 60px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100px;
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    background: #fff;
    border-radius: 16px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #E8E8E8;
    transition: all 0.3s;
}

.history-btn:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.history-btn svg {
    width: 14px;
    height: 14px;
}

.input-section {
    width: 810px;
    height: 194px;
    background: #fff;
    border-radius: 24px;
    border: 2px solid #F1F2F2;
    overflow: visible;
    position: relative;
}



.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
}

.input-tags {
    display: flex;
    gap: 10px;
}

.input-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 92px;
    height: 32px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: #333;
    border: 1px solid #EEEEEE;
}

.input-tag svg {
    width: 16px;
    height: 16px;
    color: #000;
}

.size-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 120px;
    height: 32px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1;
    vertical-align: middle;
    border: 1px solid #EEEEEE;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.size-selector:hover {
    background: #e8eaed;
}

.size-selector svg {
    width: 14px;
    height: 14px;
    color: #000;
}

.size-divider {
    width: 1px;
    height: 14px;
    background: #ddd;
    margin-left: 8px;
    margin-right: 4px;
}

.size-value {
    color: #333;
    font-weight: 500;
}

.arrow-icon {
    width: 14px;
    height: 14px;
    color: #999;
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cost-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #3d3d3d;
}

.cost-info svg {
    width: 14px;
    height: 14px;
}

.generate-btn {
    width: 106px;
    height: 36px;
    background: #5A63FF;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal-content {
    display: none;
    position: absolute;
    top: calc(100% - 12px);
    left: 118px;
    background: #fff;
    border-radius: 12px;
    width: 318px;
    height: 262px;
    box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.1);
    z-index: 100;
}

.modal-content.show {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 10px 16px;
}

.modal-header span {
    font-size: 12px;
    color: #666;
}

.modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f7fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #e8eaed;
}

.modal-close svg {
    width: 14px;
    height: 14px;
}

.ratio-options {
    width: 302px;
    height: 54px;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    background: #F3F3F3;
    border-radius: 5px;
}

.ratio-btn {
    margin: 2px 0 0 2px;
    width: 48px;
    height: 50px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    padding-top: 10px;
    color: #666;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
}

.ratio-btn:hover{background: #E1E1E1;}

.ratio-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.ratio-btn.active {
    background: #fff;
}

.ratio-btn svg {
    width: 16px;
    height: 16px;
}

.size-row1 {
    margin: 12px 0 0 16px;
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.size-row2 {
    position: relative;
    width: 302px;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.size-row-z{width: 136px;height: 32px;background: #F3F3F3;border-radius: 6px;position: relative;flex-shrink: 0}
.size-row2-l{float: left;}
.size-row2-r{float: right;}
.size-row-z span{padding: 0 16px;line-height: 32px;font-size: 12px;}
.size-row2-svg{width: 20px;height: 20px;margin:0 -5px 0 -5px;overflow: hidden;flex-shrink: 0;background: #5A63FF;border-radius: 6px;color: #fff;display: flex;align-items: center;justify-content: center;}

.size-row2:first-child {
    font-size: 12px;
    color: #333;
}

.size-row2 input {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    line-height: 32px;
    padding-right: 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    background: #F3F3F3;
    text-align: right;
}

.size-row2 input:focus {
    border-color: #667eea;
}

.count-options {
    padding-top: 8px;
}

.count-row {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    margin-left: 16px;
}

.count-btns {
    margin: 0 auto;
    width: 298px;
    height: 54px;
    display: flex;
    background: #F3F3F3;
    border-radius: 5px;
    overflow: hidden;
}

.count-btn {
    flex: 1;
    line-height: 54px;
    text-align: center;
    width: 146px;
    height: 50px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    transition: all 0.3s;
    margin: 2px;
}

.count-btn:hover {
    background: #E1E1E1;
}

.count-btn.active {
    background: #fff;
}

.gen-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 1140px;
}

.gen-item {
    margin-bottom: 24px;
}

.gen-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.gen-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.gen-badge {
    padding: 3px 10px;
    background: #f0f2f5;
    border-radius: 8px;
    font-size: 11px;
    color: #666;
}

.gen-badge.processing-badge {
    background: #fff3cd;
    color: #856404;
}

.gen-badge.error-badge {
    background: #f8d7da;
    color: #721c24;
}

.gen-prompt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gen-images {
    margin-bottom: 16px;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-right: -24px;
    margin-bottom: -24px;
}

.image-grid > .image-item {
    margin-right: 24px;
    margin-bottom: 24px;
}

.image-item {
    width: calc(25% - 21px);
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.image-item::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    background-image: 
        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: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    overflow: hidden;
}

.image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.image-link img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: inherit;
}

.image-container.image-loading {
    background: #e8eaed;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 8px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    z-index: 10;
}

.loading-spinner-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #5A63FF, #8B5CF6);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.gen-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100px;
    height: 30px;
    background: #EBECED;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    color: #120000;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #e8eaed;
    color: #333;
}

.action-btn svg {
    width: 14px;
    height: 14px;
}

.action-btn.delete-btn:hover {
    background: #ffe0e0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.empty-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
}

.empty-icon svg {
    width: 32px;
    height: 32px;
}

.empty-state p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.empty-action {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
}

.empty-action:hover {
    color: #fff;
}

.bottom-input {
    position: fixed;
    left: 200px;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 16px 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
    z-index: 90;
}

.input-container {
    max-width: 900px;
    margin: 0 auto;
    background: #f5f7fa;
    border-radius: 12px;
    overflow: hidden;
}

.upload-wrapper {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 20;
}

.upload-bg-layer {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 48px;
    height: 62px;
    background: #EBEBEB;
    border-radius: 4px;
}

.upload-content {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 48px;
    height: 62px;
    overflow: hidden;
    cursor: pointer;
    background: #F3F3F3;
    border-radius: 4px;
    transition: width 0.2s ease;
}

.upload-content:hover {
    width: auto;
    overflow: visible;
    gap: 8px;
}

.upload-content:hover .upload-preview {
    gap: 8px;
}

.upload-content .upload-preview {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.upload-content .upload-thumb {
    width: 48px;
    height: 62px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    display: none;
}

.upload-content .upload-thumb:last-child {
    display: block;
}

.upload-content:hover .upload-thumb {
    display: block;
}

.upload-content .upload-thumb img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.upload-content .upload-thumb img.fit-height {
    height: 100%;
    width: auto;
    min-width: 100%;
}

.upload-content .upload-thumb img.fit-width {
    width: 100%;
    height: auto;
    min-height: 100%;
}

.upload-content .upload-thumb .delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.upload-content:hover .upload-thumb .delete-btn {
    display: flex;
}

.upload-content .upload-thumb .delete-btn svg {
    width: 10px;
    height: 10px;
    color: #fff;
}

.upload-fg-layer {
    width: 48px;
    height: 62px;
    flex-shrink: 0;
    background: #F3F3F3;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.upload-fg-layer:hover {
    background: #E8E8E8;
}

.upload-fg-layer svg {
    width: 20px;
    height: 20px;
    color: #898989;
}

#prompt-input {
    width: 100%;
    height: 124px;
    padding: 30px 36px;
    padding-left: 86px;
    border: none;
    background: transparent;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
}

#prompt-input::placeholder {
    color: #999;
}



.records-page {
    padding-bottom: 220px;
}

.cutout-section {
    height: 356px;
    width: 810px;
}

.cutout-status-1 {
    width: 100%;
}

.upload-box {
    width: 100%;
    background: #fff;
    border-radius: 24px;
    padding: 60px 0 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 2px solid #F1F2F2;
    position: relative;
}

#upload-trigger-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 580px;
    height: 180px;
    opacity: 0;
    cursor: pointer;
}

.upload-icon-wrapper {
    width: 72px;
    height: 72px;
    background: #F5F7FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.upload-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.upload-label {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.upload-tip {
    font-size: 12px;
    color: #999;
    margin-bottom: 40px;
}

.upload-button {
    width: 140px;
    height: 44px;
    background: #5A63FF;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.upload-hint {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

.cutout-status-2 {
    width: 100%;
}

.result-container {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 8px;
}

.image-display-box {
    width: 600px;
    height: 600px;
    background: #EBEBEB;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-container.processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container.processing::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.image-container.cutout-processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container.cutout-processing::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.display-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.action-panel {
    width: 200px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.action-button {
    width: 148px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.retry-button {
    margin-bottom: 400px;
    background: #FAFAFA;
    border: 1px solid #EEEEEE;
    color: #3D3D3D;
    border-radius: 12px;
    font-weight: 700;
}

.retry-button:hover {
    background: #E8EAED;
}

.action-button.disabled {
    opacity: 0.5;
    background: #F5F5F5 !important;
    color: #999999 !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* 确认提示框样式 */
.cutout-confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.cutout-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.cutout-modal-content {
    position: relative;
    width: 520px;
    height: 300px;
    background: #fff;
    border-radius: 20px;
    margin: auto;
    margin-top: calc(50vh - 150px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cutout-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
}

.cutout-modal-message {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
    text-align: center;
}

.cutout-modal-buttons {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.cutout-modal-btn {
    width: 140px;
    height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.cutout-cancel-btn {
    background: #E8EAED;
    color: #666;
}

.cutout-cancel-btn:hover {
    background: #DADCE0;
}

.cutout-confirm-btn {
    background: #5B7FFF;
    color: #fff;
}

.cutout-confirm-btn:hover {
    background: #4A6DE5;
}

.upload-site-button {
    background: #FF6B6B;
    color: #fff;
}

.upload-site-button:hover {
    background: #ee5a5a;
}

.download-button {
    background: #5A63FF;
    color: #fff;
}

.download-button:hover {
    background: #4a53ef;
}

.result-section {
    width: 100%;
    max-width: 900px;
    margin-top: 40px;
}

.image-comparison {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.image-box {
    width: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.image-label {
    background: #F5F7FA;
    padding: 10px 16px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.image-content {
    width: 350px;
    height: 350px;
    background: #F5F7FA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-image {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.loading-text {
    font-size: 14px;
    color: #999;
    margin-top: 12px;
}

.error-text {
    font-size: 14px;
    color: #e74c3c;
    margin-top: 12px;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.result-actions .action-btn {
    width: 120px;
    height: 40px;
    font-size: 13px;
}

.result-actions .download-btn {
    background: #5A63FF;
    color: #fff;
}

.result-actions .download-btn:hover {
    background: #4a53ef;
    color: #fff;
}

.detail-page {
    display: flex;
    padding: 0 !important;
    min-width: 1440px;
    background: #F8F9FA;
    margin-left: 0 !important;
    align-items: flex-start !important;
}

.detail-container {
    display: flex;
    width: 100%;
}

.detail-left-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 30px 510px 30px 40px;
}

.detail-left {
    width: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-header-new {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.detail-prompt-new {
    width: 100%;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.detail-badges-new {
    display: flex;
    gap: 8px;
    flex: 1;
}

.detail-badge-new {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    border: 1px solid #EEEEEE;
}

.detail-download-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #5A63FF;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.detail-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 99, 255, 0.4);
}

.detail-download-btn svg {
    width: 14px;
    height: 14px;
}

.detail-images-new {
    margin-bottom: 20px;
    width: 100%;
}

.main-image-box-new {
    position: relative;
    margin-bottom: 20px;
    width: 850px;
}

.image-nav-left,
.image-nav-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.image-nav-left svg,
.image-nav-right svg {
    width: auto;
    height: auto;
}

.image-nav-left {
    left: 48px;
}

.image-nav-right {
    right: 48px;
}

.image-nav-left:hover,
.image-nav-right:hover {
    background: #fff;
    border-color: #5A63FF;
    color: #5A63FF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.main-image-container-new {
    width: 850px;
    height: 700px;
    background: #EBEBEB;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image-link-new {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.main-image-link-new img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnails-box-new {
    display: flex;
    gap: 16px;
    width: 850px;
    justify-content: center;
}

.thumbnail-item-new {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.thumbnail-container-new {
    width: 100%;
    height: 100%;
    background: #EBEBEB;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.thumbnail-container-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #5A63FF;
}

.thumbnail-container-new.active {
    border-color: #5A63FF;
}

.thumbnail-container-new.thumbnail-loading-new {
    background: #e8eaed;
}

.thumbnail-container-new img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.loading-spinner-small {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.detail-right {
    width: 470px;
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e8eaed;
}

.detail-right-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
}

.detail-right-bottom {
    margin-top: auto;
}

.detail-right-header-new {
    margin: 28px 0 0 52px;
    font-size: 26px;
    font-weight: 700;
    color: #333;
}

.detail-r-x{
    width: 380px;
    height: 2px;
    background: linear-gradient( 151deg, #414141 0%, rgba(216,216,216,0) 100%);
    border-radius: 5px 0px 0px 5px;
    margin: 16px 0 28px 52px;
}

.detail-actions-grid {
    margin-left: 52px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-grid-btn {
    width: 144px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 20px;
    background: #fff;
    border: 1px solid #E8EAED;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.action-grid-btn:hover {
    border-color: #5A63FF;
    color: #5A63FF;
    box-shadow: 0 4px 12px rgba(90, 99, 255, 0.15);
}

.action-grid-btn span {
    font-size: 16px;
    color: #3D3D3D;
    font-weight: 700;
}
.detail-agbt{width: 20px;height: 20px;background: #D8D8D8;border-radius: 50%;}

.detail-right-input {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #E8EAED;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.detail-right-input #prompt-input-detail {
    width: 100%;
    height: 80px;
    padding: 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    resize: none;
    outline: none;
    font-family: inherit;
}

.detail-right-input #prompt-input-detail::placeholder {
    color: #999;
}

.detail-right-input .count-btns {
    margin: 0 auto;
    width: 298px;
    height: 54px;
    display: flex;
    background: #F3F3F3;
    border-radius: 5px;
    overflow: hidden;
}

.detail-right-input .count-btn {
    flex: 1;
    line-height: 54px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    transition: all 0.3s;
    margin: 2px;
}

.detail-right-input .count-btn:hover {
    background: #E1E1E1;
}

.detail-right-input .count-btn.active {
    background: #fff;
}


.points-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.points-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 660px;
    height: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.points-modal-header {
    display: flex;
    align-items: center;
    padding: 30px 0 12px 32px;
    position: relative;
}

.points-modal-header svg {
    margin-right: 8px;
}

.points-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.points-modal-balance {
    margin-left: 16px;
    font-size: 14px;
    color: #666;
}

.points-modal-balance #modal-points-value {
    font-weight: 600;
    color: #5A63FF;
}

.points-modal-body {
    flex: 1;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.points-modal-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 596px;
    height: 48px;
    background: #F8F9FA;
    border-radius: 16px;
    margin-bottom: 8px;
    padding: 0;
}

.points-tab {
    margin-left: 28px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.points-tab-right {
    margin-right: 36px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.points-modal-list {
    width: 596px;
    max-height: 304px;
    overflow-y: auto;
    padding-right: 24px;
    box-sizing: border-box;
}

.points-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.points-list-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    padding-left: 28px;
}

.points-list-item:last-child {
    border-bottom: none;
}

.points-item-content {
    flex: 1;
}

.points-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.points-item-time {
    font-size: 12px;
    color: #999;
}

.points-item-value {
    width: 56px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #3D3D3D;
}

.points-item-value.positive {
    color: #5A63FF;
}

.points-item-value.negative {
    color: #3D3D3D;
}

.points-modal-footer {
    padding: 6px 0 18px 24px ;
    display: flex;
    justify-content: center;
    align-items: center;
}

.points-modal-content {
    display: flex;
    align-items: center;
}

.points-modal-tip {
    font-size: 12px;
    color: #999;
}

.points-modal-rule {
    font-size: 12px;
    color: #999;
    text-decoration: underline;
}

.points-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #999;
    font-size: 14px;
}

/* 会员购买弹窗 */
.vip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.vip-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1060px;
    height: 700px;
    background: #fff;
    border-radius: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vip-modal-close {
    position: absolute;
    right: 54px;
    top: 42px;
    width: 30px;
    height: 30px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.vip-modal-close svg {
    width: 30px;
    height: 30px;
}

.vip-modal-header {
    height: 148px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 8px;
}

.vip-modal-title {
    font-size: 30px;
    font-weight: 700;
    color: #3D3D3D;
    margin-bottom: 4px;
}

.vip-modal-subtitle {
    font-size: 14px;
    color: #999;
}

.vip-modal-cards {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 40px 40px;
}

.vip-card {
    width: 320px;
    height: 500px;
    border: 1px solid #E8EAED;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    transition: all 0.3s;
}

.vip-card-active {
    border: 2px solid #5A63FF;
}

.vip-card-body {
    padding: 28px 28px 24px;
}

.vip-card-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-card-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.vip-card-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #5A63FF;
    color: #fff;
    font-size: 12px;
    border-radius: 10px;
    font-weight: 500;
}

.vip-card-desc {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.vip-card-price {
    margin: 32px 0 16px;
    display: flex;
    align-items: baseline;
}

.vip-price-symbol {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.vip-price-value {
    font-size: 52px;
    color: #333;
    font-weight: 700;
    line-height: 1;
}

.vip-price-unit {
    font-size: 14px;
    color: #999;
    margin-left: 4px;
}

.vip-card-bonus-box {
    padding: 8px 0 12px 12px;
    background: #F5F7FA;
    border-radius: 8px;
}

.vip-card-bonus-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.vip-card-bonus-line svg {
    flex-shrink: 0;
}

.vip-card-bonus-text {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.vip-card-perks {
    margin-top: 24px;
}

.vip-perks-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.vip-perks-text {
    font-size: 12px;
    line-height: 20px;
    color: #666;
}

.vip-card-btn {
    margin: 0 28px 24px;
    width: calc(100% - 56px);
    height: 44px;
    background: #5A63FF;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.vip-card-btn:hover {
    background: #4A53EF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 99, 255, 0.35);
}

.vip-loading,
.vip-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    color: #999;
    font-size: 14px;
}

/* 支付弹窗 */
.pay-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.pay-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 880px;
    height: 700px;
    background: #fff;
    border-radius: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pay-modal-close {
    position: absolute;
    right: 28px;
    top: 28px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f7fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    z-index: 10;
}

.pay-modal-close:hover {
    background: #e8eaed;
}

.pay-modal-close svg {
    width: 14px;
    height: 14px;
}

.pay-modal-header {
    height: 140px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 46px;
    flex-shrink: 0;
}

.pay-modal-title {
    font-size: 30px;
    font-weight: 700;
    color: #333;
}

.pay-modal-body {
    flex: 1;
    padding: 0 30px 40px;
    display: flex;
    flex-direction: column;
}

.pay-order-info {
    width: 820px;
    height: 100px;
    background: #F6F7FA;
    border-radius: 14px;
    padding: 20px 24px;
    box-sizing: border-box;
}

.pay-order-row {
    display: flex;
    align-items: center;
}

.pay-order-header {
    margin-bottom: 8px;
}

.pay-order-label {
    font-size: 14px;
    color: #747B92;
    flex: 1;
}

.pay-order-col {
    font-size: 14px;
    color: #747B92;
    width: 116px;
    text-align: left;
}

.pay-order-data .pay-order-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.pay-order-data .pay-order-col {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.pay-order-amount {
    width: 96px !important;
}

.pay-order-note {
    font-size: 12px;
    color: #999;
    margin: 12px 0 0 24px;
}

.pay-qrcode-area {
    display: flex;
    align-items: center;
    margin: 160px 0 0 28px;
}

.pay-qrcode-box {
    width: 208px;
    height: 208px;
    border: 1px solid #F1F2F2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-qrcode-placeholder {
    width: 188px;
    height: 188px;
    border-radius: 6px;
    background: #F5F7FA;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    overflow: hidden;
}

.pay-qrcode-placeholder img {
    display: block;
}

.pay-amount-section {
    padding:50px 0 0 26px;
}

.pay-amount-label {
    font-size: 14px;
    color: #999;
    margin:10px 0 4px 0;
}

.pay-amount-value {
    font-size: 40px;
    font-weight: 700;
    color: #5A63FF;
    line-height: 1;
}

.pay-amount-symbol {
    font-size: 16px;
    font-weight: 600;
    margin-right: 2px;
}

.pay-amount-note {
    font-size: 12px;
    color: #999;
    margin-top: 50px;
}

.pay-agreement-link {
    color: #333;
    text-decoration: none;
}

.pay-method-tip {
    width: 208px;
    margin: 4px 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
}

/* 支付成功弹窗 */
#success-modal {
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

#success-modal-overlay {
    z-index: 10001;
}

.pay-success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pay-success-icon {
    width: 92px;
    height: 92px;
    margin-bottom: 32px;
}

.pay-success-text {
    font-size: 30px;
    font-weight: 700;
    color: #3D3D3D;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* @media (max-width: 768px) {
    .left-sidebar {
        width: 112px;
        padding: 14px 4px;
    }
    
    .sidebar-header h1,
    .menu-title,
    .menu-item span,
    .points-card,
    .member-card,
    .user-name {
        display: none;
    }
    
    .menu-item {
        justify-content: center;
        padding: 10px;
    }
    
    .main-content {
        margin-left: 112px;
        padding-bottom: 180px;
    }
    
    .bottom-input {
        left: 112px;
    }
    
    .hero-section h2 {
        font-size: 24px;
    }
    
    .image-item {
        width: calc(50% - 5px);
    }
} */
