/* AI鎹㈣绯荤粺 - 鍓嶅彴鏍峰紡 - MXAI椋庢牸 - 娣辫壊涓婚涓夋爮甯冨眬 */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at 15% 0%, rgba(88, 101, 242, 0.2), transparent 45%), radial-gradient(circle at 85% 0%, rgba(14, 165, 233, 0.18), transparent 50%), #030712;
    color: #fff;
    overflow-x: hidden;
    overflow-y: hidden;
}

html,
body {
    height: 100%;
    width: 100%;
}

body.has-ai-outfit-fullbleed {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

body.has-ai-outfit-fullbleed {
    --wp--custom--ast-container-width: 100vw !important;
    --wp--custom--ast-content-width-size: 100vw !important;
    --wp--custom--ast-wide-width-size: 100vw !important;
    --ast-normal-container-width: 100vw !important;
    --ast-narrow-container-width: 100vw !important;
}

body.has-ai-outfit-fullbleed .ast-container,
body.has-ai-outfit-fullbleed .ast-container [class*="ast-col"],
body.has-ai-outfit-fullbleed .ast-plain-container,
body.has-ai-outfit-fullbleed .ast-page-builder-template,
body.has-ai-outfit-fullbleed .ast-container .ast-row,
body.has-ai-outfit-fullbleed .ast-container .ast-row>*,
body.has-ai-outfit-fullbleed .entry-content,
body.has-ai-outfit-fullbleed .entry-content[data-ast-blocks-layout] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.has-ai-outfit-fullbleed .entry-content[data-ast-blocks-layout]>*,
body.has-ai-outfit-fullbleed .entry-content>*,
body.has-ai-outfit-fullbleed .wp-block-group,
body.has-ai-outfit-fullbleed .wp-block-group__inner-container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 纭繚 entry-content 鏈韩涔熶笉闄愬埗瀹藉害 */
body.has-ai-outfit-fullbleed .entry-content[data-ast-blocks-layout] {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.has-ai-outfit-fullbleed #page,
body.has-ai-outfit-fullbleed .site,
body.has-ai-outfit-fullbleed .site-content,
body.has-ai-outfit-fullbleed .entry-content,
body.has-ai-outfit-fullbleed .wp-site-blocks {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {

    html,
    body,
    body.has-ai-outfit-fullbleed {
        overflow-y: auto !important;
    }

    body.has-ai-outfit-fullbleed #page,
    body.has-ai-outfit-fullbleed .site,
    body.has-ai-outfit-fullbleed .site-content,
    body.has-ai-outfit-fullbleed .entry-content,
    body.has-ai-outfit-fullbleed .wp-site-blocks {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }
}

body.has-ai-outfit-fullbleed .entry-content .ai-outfit-shell,
body.has-ai-outfit-fullbleed .ai-outfit-shell {
    width: 100vw !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: 0 !important;
    transform: none !important;
}

body.has-ai-outfit-fullbleed .ai-outfit-wrapper {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 闅愯棌椤甸潰鏍囬 */
body.has-ai-outfit-fullbleed .entry-header,
body.has-ai-outfit-fullbleed .entry-title {
    display: none !important;
}

/* 瑕嗙洊 WordPress admin bar 鐨勫唴鑱旀牱寮?*/
html.has-ai-outfit-fullbleed {
    margin-top: 0 !important;
}

body.has-ai-outfit-fullbleed.admin-bar,
body.has-ai-outfit-fullbleed {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 闅愯棌鎴栬皟鏁?WordPress admin bar 鍜屾墍鏈夐《閮ㄥ厓绱?*/
body.has-ai-outfit-fullbleed.admin-bar #wpadminbar,
body.has-ai-outfit-fullbleed #wpadminbar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    visibility: hidden !important;
}

body.has-ai-outfit-fullbleed.admin-bar #page,
body.has-ai-outfit-fullbleed #page {
    margin-top: 0 !important;
    padding-top: 0 !important;
    min-height: 100vh !important;
}

/* 闅愯棌涓婚 header */
body.has-ai-outfit-fullbleed #masthead,
body.has-ai-outfit-fullbleed .site-header,
body.has-ai-outfit-fullbleed header:not(.entry-header),
body.has-ai-outfit-fullbleed .ast-header-wrap,
body.has-ai-outfit-fullbleed .main-header-bar,
body.has-ai-outfit-fullbleed .ast-builder-header,
body.has-ai-outfit-fullbleed .ast-desktop-header,
body.has-ai-outfit-fullbleed .ast-mobile-header {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 纭繚 site-content 浠庨《閮ㄥ紑濮?*/
body.has-ai-outfit-fullbleed .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 纭繚 ast-container 娌℃湁椤堕儴闂磋窛 */
body.has-ai-outfit-fullbleed .ast-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 纭繚 primary 鍜?main 娌℃湁椤堕儴闂磋窛 */
body.has-ai-outfit-fullbleed #primary,
body.has-ai-outfit-fullbleed .content-area,
body.has-ai-outfit-fullbleed .site-main,
body.has-ai-outfit-fullbleed main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 纭繚椤堕儴瀵艰埅鏍忚创杈?*/
body.has-ai-outfit-fullbleed .ai-outfit-topbar {
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    max-width: none !important;
    position: relative;
    top: 0 !important;
}

body.has-ai-outfit-fullbleed,
body.has-ai-outfit-fullbleed #page,
body.has-ai-outfit-fullbleed .site,
body.has-ai-outfit-fullbleed .site-content,
body.has-ai-outfit-fullbleed .ast-container,
body.has-ai-outfit-fullbleed main,
body.has-ai-outfit-fullbleed .site-main,
body.has-ai-outfit-fullbleed .content-area,
body.has-ai-outfit-fullbleed .page-content,
body.has-ai-outfit-fullbleed .wp-site-blocks,
body.has-ai-outfit-fullbleed .wp-block-template-part,
body.has-ai-outfit-fullbleed #primary,
body.has-ai-outfit-fullbleed #content {
    width: 100%;
    max-width: none;
}

body.has-ai-outfit-fullbleed #primary,
body.has-ai-outfit-fullbleed #content,
body.has-ai-outfit-fullbleed .entry-content,
body.has-ai-outfit-fullbleed .entry-content>*,
body.has-ai-outfit-fullbleed .container,
body.has-ai-outfit-fullbleed .wrap,
body.has-ai-outfit-fullbleed .elementor-section,
body.has-ai-outfit-fullbleed .elementor-container,
body.has-ai-outfit-fullbleed .wp-block-group,
body.has-ai-outfit-fullbleed .wp-block-group__inner-container,
body.has-ai-outfit-fullbleed .wp-block-post-content,
body.has-ai-outfit-fullbleed .wp-block-post-template,
body.has-ai-outfit-fullbleed .post-inner,
body.has-ai-outfit-fullbleed .alignwide,
body.has-ai-outfit-fullbleed .alignfull,
body.has-ai-outfit-fullbleed .container-fluid,
body.has-ai-outfit-fullbleed .row,
body.has-ai-outfit-fullbleed .ast-container,
body.has-ai-outfit-fullbleed .ast-row,
body.has-ai-outfit-fullbleed .col,
body.has-ai-outfit-fullbleed .site-inner,
body.has-ai-outfit-fullbleed .wp-block-column,
body.has-ai-outfit-fullbleed .wp-block-columns {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 婊氬姩鏉℃牱寮?- 缁嗙嚎鏍峰紡 */
.ai-outfit-sidebar::-webkit-scrollbar,
.ai-outfit-sidebar *::-webkit-scrollbar,
.sidebar-content::-webkit-scrollbar,
.ai-outfit-main::-webkit-scrollbar,
.ai-outfit-main *::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.ai-outfit-gallery::-webkit-scrollbar,
.ai-outfit-gallery *::-webkit-scrollbar,
.gallery-content::-webkit-scrollbar,
.gallery-content *::-webkit-scrollbar,
.works-grid::-webkit-scrollbar,
.works-grid *::-webkit-scrollbar {
    width: 1px !important;
}

.ai-outfit-sidebar::-webkit-scrollbar-track,
.ai-outfit-sidebar *::-webkit-scrollbar-track,
.sidebar-content::-webkit-scrollbar-track,
.ai-outfit-main::-webkit-scrollbar-track,
.ai-outfit-main *::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track,
.ai-outfit-gallery::-webkit-scrollbar-track,
.ai-outfit-gallery *::-webkit-scrollbar-track,
.gallery-content::-webkit-scrollbar-track,
.gallery-content *::-webkit-scrollbar-track,
.works-grid::-webkit-scrollbar-track,
.works-grid *::-webkit-scrollbar-track {
    background: transparent !important;
}

.ai-outfit-sidebar::-webkit-scrollbar-thumb,
.ai-outfit-sidebar *::-webkit-scrollbar-thumb,
.sidebar-content::-webkit-scrollbar-thumb,
.ai-outfit-main::-webkit-scrollbar-thumb,
.ai-outfit-main *::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb,
.ai-outfit-gallery::-webkit-scrollbar-thumb,
.ai-outfit-gallery *::-webkit-scrollbar-thumb,
.gallery-content::-webkit-scrollbar-thumb,
.gallery-content *::-webkit-scrollbar-thumb,
.works-grid::-webkit-scrollbar-thumb,
.works-grid *::-webkit-scrollbar-thumb {
    background: #3d3d3d !important;
    border-radius: 0 !important;
}

.ai-outfit-sidebar::-webkit-scrollbar-thumb:hover,
.ai-outfit-sidebar *::-webkit-scrollbar-thumb:hover,
.sidebar-content::-webkit-scrollbar-thumb:hover,
.ai-outfit-main::-webkit-scrollbar-thumb:hover,
.ai-outfit-main *::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover,
.ai-outfit-gallery::-webkit-scrollbar-thumb:hover,
.ai-outfit-gallery *::-webkit-scrollbar-thumb:hover,
.gallery-content::-webkit-scrollbar-thumb:hover,
.gallery-content *::-webkit-scrollbar-thumb:hover,
.works-grid::-webkit-scrollbar-thumb:hover,
.works-grid *::-webkit-scrollbar-thumb:hover {
    background: #4d4d4d !important;
}

.ai-outfit-shell {
    min-height: 100vh;
    padding: 0 !important;
    margin-top: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    position: relative;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    left: auto !important;
    right: auto !important;
    top: 0 !important;
}

.ai-outfit-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
    overflow: hidden;
    max-width: 100vw;
    gap: 0 !important;
}

.ai-outfit-wrapper.sidebar-collapsed .sidebar-toggle-text {
    display: none;
}

/* 椤堕儴瀵艰埅鏍?*/
.ai-outfit-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #1a1a1a;
    border-bottom: 1px solid #2d2d2d;
    height: 50px;
    flex-shrink: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    gap: 24px;
    align-items: center;
}

/* 椤堕儴瀵艰埅鏍忎腑鐨凩ogo */
.topbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

.topbar-logo .logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #5865f2;
}

.topbar-logo .logo-flame {
    width: 18px;
    height: 18px;
}

.topbar-logo .logo-subtitle {
    font-size: 11px;
    color: #949ba4;
}

.topbar-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-right: 16px;
    transition: color 0.3s;
}

.topbar-link:hover {
    color: #8b5cf6;
}

.topbar-link::after {
    content: '鈻?;
 position: absolute;
    right: 0;
    top: 0;
    font-size: 10px;
    color: #6b7280;
}

.topbar-center {
    display: flex;
    gap: 20px;
    align-items: center;
}

.topbar-notice,
.topbar-update {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8b5cf6;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.topbar-notice:hover,
.topbar-update:hover {
    opacity: 0.8;
}

.notice-icon,
.update-icon {
    width: 18px;
    height: 18px;
    color: #8b5cf6;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 14px;
}

.user-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

/* 涓诲竷灞€ - 涓夋爮 */
.ai-outfit-layout {
    display: flex;
    flex: 1;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    background: #1a1a1a;
    height: calc(100vh - 50px);
    min-height: calc(100vh - 50px);
    max-height: calc(100vh - 50px);
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px !important;
    box-sizing: border-box;
    position: relative;
}

/* 宸︿晶瀵艰埅鏍?- 娣辫壊涓婚 */
.ai-outfit-sidebar {
    width: 260px;
    background: #1e1f22;
    color: #949ba4;
    padding: 0;
    flex-shrink: 0;
    border-right: 1px solid #2d2d2d;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease;
    overflow: hidden;
}

.ai-outfit-sidebar.collapsed {
    width: 80px;
}

/* 渚ц竟鏍忓唴瀹瑰尯鍩熷彲婊氬姩 */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0 8px 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-footer {
    border-top: 1px solid #2d2d2d;
    padding: 12px 16px;
    background: #1b1c1f;
    flex-shrink: 0;
}

.sidebar-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #2d2d2d;
    background: #232429;
    color: #949ba4;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: #2d2d2d;
    color: #fff;
}

.sidebar-toggle-icon {
    width: 18px;
    height: 18px;
    border: 1px solid currentColor;
    border-radius: 4px;
    position: relative;
}

.sidebar-toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.sidebar-toggle-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 8px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s;
}

.ai-outfit-sidebar.collapsed .sidebar-toggle-icon::before {
    opacity: 0;
}

.ai-outfit-sidebar.collapsed .sidebar-content {
    padding: 12px 6px;
}

.ai-outfit-sidebar.collapsed .nav-section-title,
.ai-outfit-sidebar.collapsed .nav-sublist,
.ai-outfit-sidebar.collapsed .nav-item span,
.ai-outfit-sidebar.collapsed .logo-subtitle,
.ai-outfit-sidebar.collapsed .sidebar-toggle-text,
.ai-outfit-sidebar.collapsed .nav-divider {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
    overflow: hidden;
}

.ai-outfit-sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 10px;
}

.ai-outfit-sidebar.collapsed .sidebar-toggle {
    justify-content: center;
}


.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #5865f2;
}

.logo-flame {
    width: 18px;
    height: 18px;
}

.logo-subtitle {
    font-size: 11px;
    color: #949ba4;
    margin-left: auto;
}

.sidebar-nav {
    padding: 0 8px;
}

.nav-divider {
    height: 1px;
    background: #2d2d2d;
    margin: 8px 0;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-title {
    font-size: 11px;
    color: #80848e;
    padding: 8px 8px 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.nav-sublist {
    padding: 0;
    margin: 4px 0;
    background: transparent;
    border-radius: 0;
}

.nav-sublist-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid transparent;
    background: #1e1f25;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    cursor: pointer;
    gap: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-sublist-toggle:hover {
    background: #272932;
    border-color: #2f3240;
}

.nav-sublist-arrow {
    width: 14px;
    height: 14px;
    transform: rotate(0deg);
    transition: transform 0.2s;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 999px;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding: 6px 0 6px 14px;
}

.nav-sublist.collapsed .nav-links {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.nav-sublist.collapsed .nav-sublist-arrow {
    transform: rotate(-90deg);
}

.nav-leaf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 5px;
    background: #26272c;
    color: #a1a7b4;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.nav-leaf:hover {
    background: #32343c;
    color: #fff;
}

.nav-leaf.active {
    background: linear-gradient(135deg, #5865f2, #7c3aed);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.nav-subsection {
    padding-left: 8px;
    margin-top: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: #949ba4;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: all 0.2s;
    font-size: 14px;
    position: relative;
}

.nav-item:hover {
    background: #2d2d2d;
    color: #fff;
}

.nav-item.active {
    background: #5865f2;
    color: #fff;
    font-weight: 500;
}

.nav-icon {
    width: 18px;
    height: 18px;
    color: currentColor;
    flex-shrink: 0;
}

.nav-item span {
    flex: 1;
}

.nav-arrow {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    margin-left: auto;
}

/* 涓棿鎿嶄綔鏍?- 娣辫壊鑳屾櫙 */
.ai-outfit-main {
    flex: 0 0 auto !important;
    width: 420px !important;
    max-width: 420px !important;
    min-width: 420px !important;
    background: #1a1a1a;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 椤甸潰澶撮儴鍥哄畾 */
.ai-outfit-header {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    background: #1a1a1a;
    padding: 16px 16px 0 16px;
    margin-bottom: 0;
}

/* 涓诲唴瀹瑰尯鍙粴鍔紙澶撮儴涓嬫柟锛?*/
.main-content {
    max-width: 420px !important;
    width: 420px !important;
    min-width: 420px !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding: 16px !important;
    background: #1a1a1a;
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    -webkit-overflow-scrolling: touch;
    height: 0;
    /* 寮哄埗flex瀛愬厓绱犺绠楅珮搴?*/
}

.main-content>* {
    max-width: 100%;
    box-sizing: border-box;
}

/* 纭繚鎵€鏈夊唴閮ㄥ厓绱犻兘姝ｇ‘瀵归綈锛屾病鏈夐澶栫殑margin瀵艰嚧绌虹櫧 */
.main-content .ai-outfit-notice,
.main-content .ai-outfit-models,
.main-content .ai-outfit-upload,
.main-content .ai-outfit-submit,
.main-content .ai-outfit-result {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 纭繚鐖跺鍣ㄤ笉闄愬埗 main-content 鐨勫搴?*/
.ai-outfit-main {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-right: 16px !important;
    width: 420px !important;
    max-width: 420px !important;
    min-width: 420px !important;
}

.ai-outfit-main>.main-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* 澶撮儴鏍峰紡宸插湪涓婇潰瀹氫箟锛岃繖閲屽彧淇濈暀缁嗚妭鏍峰紡 */

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-button {
    background: none;
    border: none;
    color: #949ba4;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.back-button:hover {
    color: #5865f2;
}

.ai-outfit-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* 閫氱煡鏍峰紡 - 鍥哄畾鍦ㄥご閮ㄤ笅鏂?*/
.ai-outfit-notice {
    background: #2d2d2d;
    border: 1px solid #3d3d3d;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.ai-outfit-notice p {
    margin: 0;
    font-size: 13px;
    color: #949ba4;
    line-height: 1.5;
}

/* 妯″瀷閫夋嫨鏍峰紡 */
.ai-outfit-models {
    margin-bottom: 16px;
}

.model-tabs {
    display: flex;
    gap: 0;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.model-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #888;
    position: relative;
    font-weight: 500;
    min-width: 0;
}

.model-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.model-tab.active {
    background: #046bd2;
    color: #fff;
}

.badge-new {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4444;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 1;
}

/* 闅愯棌涓嶉渶瑕佺殑閮ㄥ垎 */
.clothing-type-selector,
.example-images {
    display: none !important;
}

/* 涓婁紶鍖哄煙鏍峰紡 - 鍗曞垪甯冨眬锛屽拰鍥?涓€鏍峰ぇ */
.ai-outfit-upload {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.upload-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.upload-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.upload-area {
    border: 2px dashed #3d3d3d;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    min-height: 200px;
    height: 200px;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d2d2d;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #5865f2;
    background: #3d3d3d;
}

.upload-area.dragover {
    border-color: #5865f2;
    background: #4d4d4d;
    transform: scale(1.01);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upload-icon {
    width: 32px;
    height: 32px;
    color: #6b7280;
    margin-bottom: 8px;
}

.upload-placeholder p {
    margin: 0;
    font-size: 14px;
    color: #949ba4;
    font-weight: 500;
}

.upload-placeholder small {
    color: #6b7280;
    font-size: 12px;
}

.upload-area.has-image {
    padding: 10px;
    min-height: 200px;
    height: 200px;
    max-height: 200px;
}

.upload-area.has-image .upload-placeholder {
    display: none;
}

.upload-area .preview-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: default;
    object-fit: contain;
    display: block;
}

/* 涓婁紶鎿嶄綔鎸夐挳 */
.upload-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.upload-action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    color: #fff;
}

.upload-action-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.upload-action-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.upload-change-btn:hover {
    color: #5865f2;
}

.upload-delete-btn:hover {
    color: #ff4444;
}

/* 鎻愪氦鍖哄煙鏍峰紡 */
.ai-outfit-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.credits-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #949ba4;
    font-weight: 500;
}

.lightning-icon {
    width: 16px;
    height: 16px;
    color: #fbbf24;
}

.cost-value {
    font-weight: 600;
    color: #5865f2;
    margin: 0 2px;
}

.generate-button {
    flex: 1;
    max-width: 180px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: #fff;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(88, 101, 242, 0.3);
}

.generate-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #4752c4 0%, #3c45a5 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(88, 101, 242, 0.4);
}

.generate-button:active:not(:disabled) {
    transform: translateY(0);
}

.generate-button:disabled {
    background: #3d3d3d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 绉诲姩绔繘搴﹀崰浣嶅崱 */
.mobile-progress-placeholder {
    grid-column: span 2;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #1f1f1f;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

/* 鍙充晶灞曠ず鏍?- 娣辫壊鑳屾櫙 */
.ai-outfit-gallery {
    flex: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 380px;
    background: #1a1a1a;
    border-left: none !important;
    margin: 0 !important;
    padding-right: 0 !important;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    box-sizing: border-box;
    position: relative;
}

/* 澶勭悊缁撴灉鍖哄煙寤朵几鍒版渶鍙宠竟 */
.ai-outfit-gallery .ai-outfit-result {
    margin-right: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.gallery-tabs {
    display: flex;
    border-bottom: 1px solid #2d2d2d;
    padding: 0 12px 0 0 !important;
    background: #1a1a1a;
    position: relative;
    z-index: 10;
    justify-content: flex-start;
    flex-shrink: 0;
    height: auto;
}

.gallery-tab {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.gallery-tab:hover {
    color: #5865f2;
}

.gallery-tab.active {
    color: #5865f2;
    border-bottom-color: #5865f2;
}

.mobile-records-toolbar {
    display: none;
    padding: 12px 16px;
    background: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 15;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.mobile-records-toolbar .mobile-back-creation-btn {
    width: 100%;
    border: 1px solid #5865f2;
    background: transparent;
    color: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.gallery-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden !important;
    padding: 12px;
    padding-right: 0 !important;
    padding-left: 12px !important;
    background: #1a1a1a;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-right: 0 !important;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.gallery-panel {
    display: none;
    flex: 1;
    overflow: visible;
    min-height: 0;
}

.gallery-panel.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: visible;
    position: relative;
}

.works-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: min-content !important;
    grid-auto-flow: row !important;
    gap: 12px;
    overflow: visible;
    padding-right: 0;
    min-height: 0;
    flex: 1;
    align-content: start;
    width: 100%;
    max-height: none;
}

/* 寮哄埗瑕嗙洊鎵€鏈夊彲鑳界殑4鍒楄缃?- 浣跨敤鏇撮珮浼樺厛绾?*/
.works-grid[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: min-content !important;
    grid-auto-flow: row !important;
}

.work-item {
    background: #2d2d2d;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #3d3d3d;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    grid-column: span 1 !important;
    height: auto !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.work-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-color: #5865f2;
}

.work-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #1a1a1a;
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.work-images::after {
    content: '与效果对比';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
    z-index: 2;
    left: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    z-index: 1;
}

.work-image-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.work-image-clickable:hover {
    opacity: 0.9;
}

/* 鍥剧墖鏀惧ぇ妯℃€佹 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10002;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* 绉诲姩绔ā鎬佹鏍峰紡 */
@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
        padding: 20px;
    }

    .image-modal-img {
        max-height: 85vh;
    }

    .image-modal-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.6);
        border: none;
        width: 40px;
        height: 40px;
    }
}

.work-info {
    padding: 10px;
    background: #2d2d2d;
}

.work-user {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.work-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #5865f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.work-user span {
    flex: 1;
}

.work-prompt {
    font-size: 11px;
    color: #949ba4;
    line-height: 1.4;
    word-break: break-word;
}

.work-prompt-label {
    color: #6b7280;
}

.no-works {
    text-align: center;
    padding: 50px 20px;
    color: #6b7280;
    font-size: 13px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

/* 缁撴灉鍖哄煙鏍峰紡 */
.ai-outfit-result {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 30px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* 鍦ㄤ綔鍝佸箍鍦哄尯鍩熶腑鐨勫鐞嗙粨鏋滄牱寮?- 寤朵几鍒版渶鍙宠竟 */
.gallery-content .ai-outfit-result {
    margin-top: 0;
    margin-bottom: 20px;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 30px 0 30px 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    border-radius: 0 !important;
}

.gallery-content .ai-outfit-result .result-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

.gallery-content .ai-outfit-result .result-image-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.gallery-content .ai-outfit-result .result-image-container .result-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    object-fit: contain;
}


.ai-outfit-result h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.processing {
    text-align: center;
    padding: 40px;
}

.processing p {
    font-size: 16px;
    color: #9ca3af;
    margin-top: 16px;
}

.spinner {
    border: 4px solid #3d3d3d;
    border-top: 4px solid #8b5cf6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.image-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.compare-item {
    text-align: center;
}

.compare-item h4 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.compare-item img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 澶勭悊缁撴灉鍥剧墖瀹瑰櫒 - 鍙樉绀哄鐞嗗悗鐨勫浘鐗?*/
.result-image-container {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
}

.result-image-container .result-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: block;
    box-sizing: border-box;
    object-fit: contain;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.result-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    background: #8b5cf6;
    color: #fff;
    transition: all 0.3s;
}

.result-actions button:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.ai-outfit-login-required {
    padding: 40px;
    text-align: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-size: 16px;
    color: #9a3412;
}

.error-message {
    padding: 20px;
    background: #fee;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    text-align: center;
}

/* 鍝嶅簲寮忚璁?- 妗岄潰绔繚鎸佷袱鍒楃綉鏍?*/
@media (min-width: 769px) {
    .works-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-auto-columns: 1fr !important;
        grid-auto-flow: row !important;
    }

    .work-item {
        grid-column: span 1 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 1400px) {
    .ai-outfit-gallery {
        width: 350px;
    }
}

@media (max-width: 1100px) {
    .ai-outfit-shell {
        padding: 20px;
    }
}

@media (max-width: 900px) {
    .ai-outfit-shell {
        padding: 12px;
    }

    .ai-outfit-wrapper {
        border-radius: 16px;
    }
}

@media (max-width: 1200px) {
    .ai-outfit-sidebar {
        width: 200px;
    }

    .ai-outfit-gallery {
        width: 300px;
    }
}

@media (max-width: 968px) {
    .ai-outfit-layout {
        flex-direction: column;
    }

    .ai-outfit-sidebar {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    .ai-outfit-gallery {
        width: 100%;
        border-left: none;
        border-top: 1px solid #2d2d2d;
        max-height: 500px;
    }

    .ai-outfit-upload {
        grid-template-columns: 1fr;
    }

    .topbar-left {
        display: none;
    }

    .topbar-center {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {

    html,
    body,
    body.has-ai-outfit-fullbleed {
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .ai-outfit-shell {
        padding: 0;
    }

    .ai-outfit-wrapper {
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    /* 闅愯棌椤堕儴瀵艰埅鏍忕殑宸﹀彸閮ㄥ垎 */
    .ai-outfit-topbar {
        display: none;
    }

    /* 闅愯棌渚ц竟鏍忓拰鐢诲粖 */
    .ai-outfit-sidebar,
    .ai-outfit-gallery {
        display: none !important;
    }

    /* 涓诲唴瀹瑰尯鍏ㄥ */
    .ai-outfit-layout {
        flex-direction: column;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .ai-outfit-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        border-right: none;
    }

    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        padding: 16px;
    }

    /* 绉诲姩绔《閮ㄥ鑸?*/
    .ai-outfit-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #1a1a1a;
        padding: 12px 16px;
        margin: -16px -16px 16px -16px;
        border-bottom: 1px solid #2d2d2d;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .back-button {
        background: transparent;
        border: none;
        color: #fff;
        font-size: 20px;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
    }

    .ai-outfit-header h2 {
        font-size: 16px;
        margin: 0;
    }

    /* 椤堕儴鏍囩鍒囨崲 */
    .mobile-tabs {
        display: flex !important;
        gap: 8px;
        margin-bottom: 16px;
        background: #1a1a1a;
        padding: 4px;
        border-radius: 8px;
    }

    .mobile-tab {
        flex: 1;
        padding: 8px 16px;
        background: transparent;
        border: none;
        color: #888;
        font-size: 14px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .mobile-tab.active {
        background: #046bd2;
        color: #fff;
    }

    /* 闅愯棌妗岄潰绔€氱煡 */
    .ai-outfit-notice {
        display: none;
    }

    /* 妯″瀷閫夋嫨鏍囩缁?- 妗岄潰绔牱寮?*/
    .model-tabs {
        display: flex;
        gap: 0;
        margin-bottom: 20px;
        background: #1a1a1a;
        border-radius: 8px;
        padding: 4px;
        overflow-x: auto;
    }

    .model-tabs::-webkit-scrollbar {
        height: 1px;
    }

    .model-tab {
        flex: 1;
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
        position: relative;
        background: transparent;
        border: none;
        color: #888;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
        min-width: 0;
    }

    .model-tab.active {
        background: #046bd2;
        color: #fff;
    }

    .badge-new {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #ff4444;
        color: #fff;
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: bold;
        z-index: 1;
    }

    /* 鏈嶈绫诲瀷閫夋嫨 */
    .clothing-type-selector {
        display: block !important;
        margin-bottom: 20px;
    }

    .clothing-type-selector h3 {
        font-size: 16px;
        margin-bottom: 12px;
        color: #fff;
    }

    .clothing-types {
        display: flex;
        gap: 8px;
    }

    .clothing-type-btn {
        flex: 1;
        padding: 10px 16px;
        background: #2a2a2a;
        border: 1px solid #3a3a3a;
        color: #888;
        border-radius: 8px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .clothing-type-btn.active {
        background: #046bd2;
        border-color: #046bd2;
        color: #fff;
    }

    /* 涓婁紶鍖哄煙 */
    .upload-section {
        margin-bottom: 20px;
    }

    .upload-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
        color: #fff;
    }

    .upload-area {
        min-height: 120px;
        padding: 20px 16px;
        border-radius: 12px;
    }

    .upload-icon {
        width: 24px;
        height: 24px;
    }

    .upload-placeholder p {
        font-size: 13px;
    }

    .upload-placeholder small {
        font-size: 11px;
    }

    /* 绀轰緥鍥剧墖鍖哄煙 */
    .example-images {
        display: block !important;
        margin-bottom: 20px;
    }

    .example-images h3 {
        font-size: 16px;
        margin-bottom: 12px;
        color: #fff;
    }

    .example-images-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .example-images-grid::-webkit-scrollbar {
        height: 1px;
    }

    .example-image-item {
        flex-shrink: 0;
        width: 100px;
        height: 100px;
        border-radius: 8px;
        overflow: hidden;
        border: 2px solid transparent;
        cursor: pointer;
        transition: all 0.2s;
    }

    .example-image-item.active {
        border-color: #046bd2;
    }

    .example-image-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 搴曢儴鎿嶄綔鏍?*/
    .ai-outfit-submit {
        position: fixed;
        bottom: 60px;
        left: 0;
        right: 0;
        background: #1a1a1a;
        padding: 12px 16px;
        border-top: 1px solid #2d2d2d;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 100;
    }

    .credits-display {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #888;
        font-size: 14px;
    }

    .lightning-icon {
        width: 18px;
        height: 18px;
        color: #9b51e0;
    }

    .generate-button {
        flex: 1;
        max-width: none;
        margin-left: 12px;
        padding: 12px 24px;
        font-size: 16px;
    }

    .mobile-progress-placeholder {
        grid-column: span 1;
    }

    .mobile-progress-placeholder .spinner {
        width: 28px;
        height: 28px;
        border-width: 3px;
    }

    .mobile-progress-placeholder-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mobile-progress-placeholder-title {
        font-size: 14px;
        font-weight: 600;
        color: #fff;
    }

    .mobile-progress-placeholder-desc {
        font-size: 12px;
        color: #9ca3af;
    }

    .mobile-progress-placeholder .progress-bar {
        margin-top: 4px;
    }

    .mobile-progress-placeholder .progress-percentage {
        font-size: 12px;
        color: #9ca3af;
        text-align: right;
    }

    /* 搴曢儴瀵艰埅鏍?*/
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #1a1a1a;
        border-top: 1px solid #2d2d2d;
        display: flex !important;
        justify-content: space-around;
        padding: 8px 0;
        z-index: 1000;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 4px 12px;
        color: #888;
        font-size: 12px;
        text-decoration: none;
        transition: color 0.2s;
    }

    .mobile-nav-item.active {
        color: #046bd2;
    }

    .mobile-nav-item svg {
        width: 24px;
        height: 24px;
    }

    /* 涓哄簳閮ㄥ鑸爮鐣欏嚭绌洪棿 */
    .main-content {
        padding-bottom: 140px;
    }

    /* 绉诲姩绔粨鏋滃尯鍩?*/
    .ai-outfit-result-mobile {
        background: #2d2d2d;
        border-radius: 8px;
        padding: 20px;
        margin-top: 24px;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .ai-outfit-result-mobile h3 {
        margin-top: 0;
        margin-bottom: 16px;
        font-size: 16px;
        font-weight: 600;
        color: #fff;
    }

    .ai-outfit-result-mobile .result-content {
        width: 100%;
    }

    .ai-outfit-result-mobile .processing {
        text-align: center;
        padding: 30px 20px;
    }

    .ai-outfit-result-mobile .processing p {
        font-size: 14px;
        color: #9ca3af;
        margin-top: 12px;
    }

    .ai-outfit-result-mobile .spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .ai-outfit-result-mobile .result-image-container {
        width: 100%;
        margin-bottom: 16px;
    }

    .ai-outfit-result-mobile .result-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        display: block;
        box-sizing: border-box;
        object-fit: contain;
    }

    .ai-outfit-result-mobile .result-actions {
        display: flex;
        gap: 12px;
        margin-top: 16px;
    }

    .ai-outfit-result-mobile .result-actions button {
        flex: 1;
        padding: 10px 16px;
        font-size: 14px;
    }

    .image-compare {
        grid-template-columns: 1fr;
    }

    .works-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
        width: 100% !important;
    }

    .ai-outfit-layout.mobile-show-records .mobile-records-toolbar {
        display: block;
        position: relative;
        top: auto;
        box-shadow: none;
        padding: 8px 0 12px;
    }

    .ai-outfit-layout.mobile-show-records .ai-outfit-main {
        display: none !important;
    }

    .ai-outfit-layout.mobile-show-records .ai-outfit-gallery {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        padding: 0 16px 120px 16px;
        box-sizing: border-box;
        overflow: visible !important;
    }

    .ai-outfit-layout.mobile-show-records .gallery-tabs {
        display: flex !important;
        margin-bottom: 12px;
    }

    .ai-outfit-layout.mobile-show-records .gallery-content {
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .ai-outfit-layout.mobile-show-records .gallery-panel {
        display: none !important;
    }

    .ai-outfit-layout.mobile-show-records .gallery-panel.active {
        display: flex !important;
    }
}


.work-item-progress .progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

.progress-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #046bd2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.progress-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    max-width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #046bd2, #5b9bd5);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.work-item-failed {
    border-color: #ff4444;
}

.work-item-failed .progress-text {
    color: #ff4444;
}

/* ============================================
   作品广场 & 我的作品 重构样式
   ============================================ */

/* 通用卡片样式 */
.work-item {
    background: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #3d3d3d;
    transition: transform 0.2s, box-shadow 0.2s;
}

.work-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #5865f2;
}

/* ==============================================
   作品广场和我的作品 - 重构样式
   ============================================== */

/* 画廊标签栏 */
.gallery-tabs {
    display: flex;
    gap: 0;
    background: #1a1d2e;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.gallery-tab {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-tab:hover {
    color: #fff;
}

.gallery-tab.active {
    background: #5865f2;
    color: #fff;
}

/* 画廊内容 */
.gallery-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.gallery-panel {
    display: none;
}

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

/* ==============================================
   作品广场 - 2列网格布局
   ============================================== */
.works-grid-plaza {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
    padding: 4px;
}

.work-card-plaza {
    background: #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2d2d2d;
    transition: all 0.3s ease;
}

.work-card-plaza:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #5865f2;
}

/* 图片对比容器 */
.work-images-wrapper {
    width: 100%;
    background: #0f0f0f;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.work-image-compare {
    display: flex;
    width: 100%;
    height: 280px;
    /* 固定高度，横向对比 */
    position: relative;
}

.work-image-half {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.work-image-half:first-child {
    border-right: 2px solid #2d2d2d;
}

.work-image-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 完整显示图片，保持比例 */
    background: #1a1a1a;
    /* 背景色 */
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.work-image-half img:hover {
    opacity: 0.9;
}

/* 图片标签 - 原图/处理后 */
.work-image-half .work-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* 卡片信息区域 */
.work-card-info {
    padding: 16px;
    background: #1a1a1a;
}

.work-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.work-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd166, #f1c40f);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

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

.work-prompt-section {
    margin-top: 8px;
}

.work-prompt-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 500;
}

.work-prompt-text {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
    /* 不限制行数，完整显示 */
}

/* ==============================================
   我的作品 - 列表布局
   ============================================== */
.works-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.work-card-mine {
    background: #1a1d2e;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #2d3348;
    transition: all 0.3s ease;
}

.work-card-mine:hover {
    border-color: #5865f2;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
}

/* 卡片头部 */
.work-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.work-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.work-type-tag {
    background: #4f46e5;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 6px;
}

.work-date-time {
    color: #6b7280;
    font-size: 13px;
}

.delete-work-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-work-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.delete-work-btn svg {
    flex-shrink: 0;
}

/* 横向图片布局 */
.work-images-horizontal {
    display: flex;
    gap: 2px;
    width: 100%;
    background: #0f0f0f;
    border-radius: 12px;
    overflow: hidden;
    height: 320px;
    /* 增加高度 */
}

.work-image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

.work-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 完整显示，保持比例 */
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.work-image-container img:hover {
    opacity: 0.9;
}

.work-label-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* 无作品提示 */
.no-works {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 15px;
}

/* ==============================================
   图片放大模态框
   ============================================== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==============================================
   响应式设计
   ============================================== */

/* 平板 */
@media (max-width: 1024px) {
    .works-grid-plaza {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .work-images-horizontal {
        height: 240px;
    }
}

/* 手机 */
@media (max-width: 768px) {
    .gallery-tabs {
        margin-bottom: 16px;
    }

    .gallery-tab {
        padding: 10px 16px;
        font-size: 14px;
    }

    /* 作品广场 - 移动端保持2列 */
    .works-grid-plaza {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 2px;
    }

    .work-card-plaza {
        border-radius: 10px;
    }

    .work-card-info {
        padding: 12px;
    }

    .work-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .work-user-name {
        font-size: 13px;
    }

    .work-prompt-label {
        font-size: 11px;
    }

    .work-prompt-text {
        font-size: 12px;
    }

    /* 我的作品 - 移动端优化 */
    .work-card-mine {
        padding: 12px;
    }

    .work-header-left {
        gap: 8px;
    }

    .work-type-tag {
        font-size: 12px;
        padding: 3px 10px;
    }

    .work-date-time {
        font-size: 12px;
    }

    .delete-work-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    .work-images-horizontal {
        height: 180px;
    }

    .work-label-overlay {
        font-size: 11px;
        padding: 4px 10px;
        top: 8px;
        left: 8px;
    }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .works-grid-plaza {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .work-images-horizontal {
        height: 160px;
    }
}

/* ==============================================
   滚动条样式
   ============================================== */
.gallery-content::-webkit-scrollbar {
    width: 6px;
}

.gallery-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.gallery-content::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 3px;
}

.gallery-content::-webkit-scrollbar-thumb:hover {
    background: #4d4d4d;
}