:root {
    --color-text: #333;
    --color-text-inverse: #fff;
    --color-bg-page: #f5f5f5;
    --color-bg-surface: #fff;
    --color-bg-active: #f7faff;
    --color-border: #e5e5e5;
    --color-primary: #1054ff;
}


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
a:focus,
a:focus-visible{
    outline: none;
    box-shadow: none;
}
header{
    display: flex;
    justify-content: space-between;
    height: 85px;
    align-items: center;
    padding: 0 20px;
    background-color: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
}
.header_actions{
    display: flex;
    align-items: center;
    gap: 16px;
}
.header_invite_btn{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px 0 14px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff8a3d 0%, #ff4d6d 55%, #e0317a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 77, 109, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.header_invite_btn::before{
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: inviteShine 3s ease-in-out infinite;
}
.header_invite_btn:hover{
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.45);
}
.header_invite_btn:active{
    transform: translateY(0);
}
.header_invite_icon{
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #fff;
}
.header_invite_text{
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.header_invite_badge{
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
@keyframes inviteShine{
    0%, 70%, 100%{
        left: -120%;
    }
    85%{
        left: 140%;
    }
}
.invite_modal_overlay{
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.invite_modal_overlay.is-visible{
    opacity: 1;
    visibility: visible;
}
.invite_modal{
    width: 100%;
    max-width: 400px;
    padding: 28px 24px 22px;
    border-radius: 16px;
    background: var(--color-bg-surface);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}
.invite_modal_overlay.is-visible .invite_modal{
    transform: translateY(0) scale(1);
}
.invite_modal_icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff0e6 0%, #ffe0ec 100%);
    color: #ff4d6d;
}
.invite_modal_icon svg{
    width: 28px;
    height: 28px;
}
.invite_modal_title{
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
}
.invite_modal_desc{
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    text-align: center;
}
.invite_modal_actions{
    display: flex;
    gap: 12px;
}
.invite_modal_btn{
    flex: 1;
    height: 42px;
    border: none;
    border-radius: 21px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.invite_modal_btn:hover{
    opacity: 0.92;
}
.invite_modal_btn:active{
    transform: scale(0.98);
}
.invite_modal_btn_primary{
    background: linear-gradient(135deg, #1054ff 0%, #3d7bff 100%);
    color: #fff;
}
.invite_modal_btn_secondary{
    background: var(--color-bg-page);
    color: var(--color-text);
}
.invite_toast{
    position: fixed;
    top: 96px;
    left: 50%;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 40px);
    padding: 12px 20px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.invite_toast.is-visible{
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.invite_toast svg{
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #4ade80;
}
.invite_toast span{
    color: #fff;
}
.login{
    display: flex;
}
.login_box_item{
    display: flex;
    background: var(--color-primary);
    height: 40px;
    align-items: center;
    border-radius: 20px;
}
.login_box_item a{
    display: block;
    color: var(--color-text-inverse);
    text-decoration: none;
}
.login_box_item a:first-child{
    padding-left: 20px;
    padding-right: 10px;
}
.login_box_item a:last-child{
    padding-left: 10px;
    padding-right: 20px;
}
.login_box_user{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: 20px;
    background: var(--color-bg-page);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.login_box_user:hover,
.login_box_dropdown.is-open .login_box_user{
    background: var(--color-bg-active);
}
.login_box_avatar{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.login_box_nickname{
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: var(--color-text);
}
.login_box_arrow{
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: #999;
    transition: transform 0.2s;
}
.login_box_dropdown.is-open .login_box_arrow{
    transform: rotate(180deg);
}
.login_box_dropdown{
    position: relative;
}
.login_box_menu{
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 100;
}
.login_box_dropdown.is-open .login_box_menu{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.login_box_menu a{
    display: block;
    padding: 10px 16px;
    color: var(--color-text);
    text-decoration: none;
    transition: background-color 0.2s;
}
.login_box_menu a:hover{
    background: var(--color-bg-active);
    color: var(--color-primary);
}
main{
    display: flex;
    height: calc(100vh - 85px);
    background-color: var(--color-bg-page);
    justify-content: space-between;
}
nav{
    display: flex;
    flex-direction: column;
    height: calc(100vh - 85px);
    width: 220px;
    background-color: var(--color-bg-surface);
    border-right: 1px solid var(--color-border);
    padding: 20px;
}
.nav_item{
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background-color: var(--color-bg-surface);
}
.nav_item a{
    display: flex;
    color: var(--color-text);
    height: 56px;
    align-items: center;
    padding-left: 20px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
}
.nav_item a img{
    width: 24px;
    height: 24px;
    margin-right: 5px;
}
.nav_item a .nav_icon_collection{
    filter: brightness(0);
}
.nav_item a.active{
    background-color: var(--color-bg-active);
    color: #000;
}
.nav_item a:hover{
    color: var(--color-primary);
}
nav > section{
    margin-top: auto;
}
nav .section_item h2{
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 8px;
}
nav .site-beian{
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
}
nav .site-beian a{
    color: #b0b0b0;
    text-decoration: none;
    font-size: 11px;
}
nav .site-beian a:hover{
    color: #999;
}
.content{
    display: flex;
    flex-direction: column;
    height: calc(100vh - 85px);
    width: calc(100% - 220px);
    background-color: var(--color-bg-surface);
}
.content_item{
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 20px;
    overflow-y: auto;
}
.section_header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section_title{
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}
.section_more{
    font-size: 14px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}
.section_more:hover{
    color: var(--color-primary);
}
.work_section{
    margin-top: 30px;
}
.collection_section{
    margin-top: 0;
}
.tags_section{
    margin-top: 0;
}
.tags_section .task_page_header{
    margin-top: 0;
}
.collection_section .task_page_header{
    margin-top: 0;
}
.template_section + .template_section{
    margin-top: 30px;
}
.template_list{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    list-style: none;
}
.template_item{
    min-width: 0;
    background-color: var(--color-bg-page);
    border-radius: 8px;
    overflow: hidden;
}
.template_card{
    display: block;
    text-decoration: none;
    color: inherit;
}
.template_thumb{
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--color-bg-page);
}
.template_thumb img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.template_title{
    margin: 10px;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.template_page_count{
    font-size: 14px;
    color: #999;
}
.template_section .pagination{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 10px;
    padding: 0;
    list-style: none;
}
.template_section .pagination > li{
    display: inline-flex;
}
.template_section .pagination > li > a,
.template_section .pagination > li > span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    background-color: var(--color-bg-page);
    transition: color 0.2s ease, background-color 0.2s ease;
}
.template_section .pagination > li > a:hover{
    color: var(--color-primary);
    background-color: var(--color-bg-active);
}
.template_section .pagination > .active > span{
    color: var(--color-text-inverse);
    background-color: var(--color-primary);
    font-weight: 500;
}
.template_section .pagination > .disabled > span{
    color: #ccc;
    cursor: not-allowed;
}
.work_list{
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.work_column{
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.work_item{
    flex-shrink: 0;
}
.work_item+.work_item{
    margin-top: 16px;
}
.work_fill{
    flex-shrink: 0;
    background-color: var(--color-bg-page);
    border-radius: 8px;
}
.work_item+.work_fill{
    margin-top: 16px;
}
.work_empty{
    width: 100%;
    padding: 60px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}
.work_card{
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-bg-page);
    cursor: pointer;
}
.work_card_link{
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}
.work_img{
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}
.work_ref{
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}
.work_ref_img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.work_ref_count{
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 6px 0 0 0;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}
.work_hover{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 12px 52px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.65) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.work_card:hover .work_hover{
    opacity: 1;
}
.work_author{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.work_avatar{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}
.work_nickname{
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-inverse);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.work_stats{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    pointer-events: auto;
}
.work_stat{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}
.work_stat_btn{
    border: none;
    background: none;
    padding: 2px 4px;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}
.work_stat_btn:hover{
    background-color: rgba(255, 255, 255, 0.15);
}
.work_stat_btn:disabled{
    opacity: 0.6;
    cursor: not-allowed;
}
.work_stat_btn.is-active{
    color: #fff;
}
.work_collect_btn.is-active .work_stat_icon{
    filter: none;
}
.work_like_btn.is-active .work_stat_icon{
    filter: none;
}
.work_stat_num{
    line-height: 1;
    color: #fff;
}
.work_stat_icon{
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
}
.work_btn{
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 24px);
    height: 32px;
    border: none;
    border-radius: 16px;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.work_card:hover .work_btn{
    opacity: 1;
    pointer-events: auto;
}
.work_btn:hover{
    opacity: 0.9;
}
.work_section .pagination{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 10px;
    padding: 0;
    list-style: none;
}
.work_section .pagination > li{
    display: inline-flex;
}
.work_section .pagination > li > a,
.work_section .pagination > li > span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    background-color: var(--color-bg-page);
    transition: color 0.2s ease, background-color 0.2s ease;
}
.work_section .pagination > li > a:hover{
    color: var(--color-primary);
    background-color: var(--color-bg-active);
}
.work_section .pagination > .active > span{
    color: var(--color-text-inverse);
    background-color: var(--color-primary);
    font-weight: 500;
}
.work_section .pagination > .disabled > span{
    color: #ccc;
    cursor: not-allowed;
}

/* ---------- 创作页 AI 图像生成 ---------- */
.create_page{
    height: 100%;
    padding: 0 !important;
}
.create_layout{
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
    height: 100%;
    min-height: calc(100vh - 85px - 40px);
}
@media (max-width: 960px){
    .create_layout{
        grid-template-columns: 1fr;
        min-height: auto;
    }
}
.create_form_col{
    padding: 28px 24px;
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
    background: var(--color-bg-surface);
}
.create_result_col{
    padding: 28px 32px;
    overflow-y: auto;
    background: linear-gradient(160deg, #fafbff 0%, #f5f7fa 100%);
}
.create_form_head{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.create_title{
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.create_badge{
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(16, 84, 255, 0.08);
    border-radius: 12px;
}
.create_field{
    margin-bottom: 22px;
}
.create_field label{
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}
.create_hint{
    font-weight: 400;
    color: #aaa;
    font-size: 12px;
}
.create_field textarea{
    width: 100%;
    min-height: calc(1.6em * 3 + 24px);
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-page);
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    overflow-y: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.create_field textarea:focus{
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg-surface);
    box-shadow: 0 0 0 3px rgba(16, 84, 255, 0.1);
}
.create_char_count{
    text-align: right;
    font-size: 11px;
    color: #bbb;
    margin-top: 6px;
}
.create_char_count.warn{ color: #e6a23c; }
.create_char_count.over{ color: #f56c6c; }
.create_upload_zone{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border: 1.5px dashed #d0d5dd;
    border-radius: 12px;
    background: var(--color-bg-page);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.create_upload_zone:hover,
.create_upload_zone.dragover{
    border-color: var(--color-primary);
    background: rgba(16, 84, 255, 0.03);
}
.create_upload_zone.has_images{
    padding: 14px;
    flex-direction: row;
    gap: 8px;
}
.create_upload_zone.has_images .create_upload_icon,
.create_upload_zone.has_images .create_upload_text,
.create_upload_zone.has_images .create_upload_sub{
    display: none;
}
.create_upload_zone.has_images::after{
    content: '+ 继续添加';
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 500;
}
.create_upload_icon svg{
    width: 28px;
    height: 28px;
    color: #bbb;
    margin-bottom: 8px;
}
.create_upload_text{
    font-size: 13px;
    font-weight: 500;
    color: #666;
}
.create_upload_sub{
    font-size: 11px;
    color: #bbb;
    margin-top: 4px;
}
.create_preview_list{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.create_preview_item{
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.create_preview_item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.create_preview_item button{
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.create_preview_item:hover button{
    opacity: 1;
}
.create_ratio_grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.create_ratio_btn{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg-page);
    font-size: 12px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.15s ease;
}
.create_ratio_btn:hover{
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.create_ratio_btn.active{
    border-color: var(--color-primary);
    background: rgba(16, 84, 255, 0.06);
    color: var(--color-primary);
    font-weight: 600;
}
.create_ratio_icon{
    font-size: 16px;
    line-height: 1;
    opacity: 0.6;
}
.create_ratio_btn.active .create_ratio_icon{
    opacity: 1;
}
.create_stepper{
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-bg-page);
}
.create_step_btn{
    width: 40px;
    height: 38px;
    border: none;
    background: transparent;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.create_step_btn:hover:not(:disabled){
    background: rgba(16, 84, 255, 0.06);
    color: var(--color-primary);
}
.create_step_btn:disabled{
    color: #ddd;
    cursor: not-allowed;
}
.create_step_val{
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 38px;
    font-size: 15px;
    font-weight: 600;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}
.create_submit_btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    margin-top: 6px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1054ff 0%, #3d7bff 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 84, 255, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.create_submit_btn,
.create_submit_btn .create_btn_text{
    color: #fff;
}
.create_submit_btn:hover:not(:disabled){
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 84, 255, 0.35);
}
.create_submit_btn:active:not(:disabled){
    transform: translateY(0);
}
.create_submit_btn:disabled{
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.create_spinner{
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: create_spin 0.7s linear infinite;
    display: none;
}
.create_submit_btn.loading .create_spinner{ display: block; }
.create_submit_btn.loading .create_btn_text{ display: none; }
@keyframes create_spin{
    to{ transform: rotate(360deg); }
}
.create_result_head{
    margin-bottom: 20px;
}
.create_result_title{
    font-size: 16px;
    font-weight: 600;
    color: #444;
}
.create_empty,
.create_loading{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100% - 60px);
    text-align: center;
    gap: 8px;
}
.create_empty_compact{
    min-height: 120px;
}
.create_empty_icon{
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(16, 84, 255, 0.06);
    margin-bottom: 8px;
}
.create_empty_icon svg{
    width: 36px;
    height: 36px;
    color: var(--color-primary);
    opacity: 0.5;
}
.create_empty_title{
    font-size: 16px;
    font-weight: 600;
    color: #888;
}
.create_empty_sub{
    font-size: 13px;
    color: #bbb;
}
.create_loading_ring{
    width: 48px;
    height: 48px;
    border: 3px solid #e8ecf4;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: create_spin 0.9s linear infinite;
    margin-bottom: 8px;
}
.create_loading_title{
    font-size: 15px;
    font-weight: 600;
    color: #666;
}
.create_loading_hint{
    font-size: 13px;
    color: #bbb;
}
.create_task_id{
    font-size: 11px;
    color: #ccc;
    margin-top: 10px;
    font-family: monospace;
}
.create_error{
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    color: #ef4444;
    font-size: 14px;
    margin-bottom: 16px;
}
.create_gallery{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.create_gallery_item{
    border-radius: 14px;
    overflow: hidden;
    background: var(--color-bg-surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.create_gallery_item:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}
.create_gallery_img_wrap{
    position: relative;
    overflow: hidden;
}
.create_gallery_img_wrap img{
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
    background: #eee;
}
.create_gallery_overlay{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.create_gallery_item:hover .create_gallery_overlay{
    opacity: 1;
}
.create_gallery_dl,
.create_gallery_view{
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.create_gallery_dl{
    background: var(--color-primary);
    color: #fff;
}
.create_gallery_view{
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}
.create_gallery_dl:hover,
.create_gallery_view:hover{
    opacity: 0.85;
}
.create_gallery_caption{
    padding: 12px 14px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    word-break: break-all;
}

/* 任务列表 */
.task_section{
    width: 100%;
}
.task_page_header{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}
.task_page_title{
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}
.task_page_desc{
    margin-top: 6px;
    font-size: 13px;
    color: #999;
}
.task_page_count{
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    background: var(--color-bg-page);
}

/* 作品标签页 */
.tags_filter_panel{
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
}
.tags_filter_group,
.tags_sort_group{
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.tags_filter_label{
    flex-shrink: 0;
    width: 40px;
    padding-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #999;
}
.tags_filter_list,
.tags_sort_list{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}
.tags_filter_item,
.tags_sort_item{
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 16px;
    background: var(--color-bg-page);
    color: var(--color-text);
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.tags_filter_item:hover,
.tags_sort_item:hover{
    background: var(--color-bg-active);
    color: var(--color-primary);
}
.tags_filter_item.is-active,
.tags_sort_item.is-active{
    background: var(--color-primary);
    color: var(--color-text-inverse);
}
.nav_icon_tags{
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 5px;
}
.task_empty_icon_tags{
    color: #ccc;
}
.task_empty_icon_tags svg{
    display: block;
}

.task_list{
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.task_card{
    display: flex;
    gap: 20px;
    padding: 16px;
    border-radius: 14px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.task_card:hover{
    border-color: rgba(16, 84, 255, 0.25);
    box-shadow: 0 8px 24px rgba(16, 84, 255, 0.08);
    transform: translateY(-1px);
}
.task_card_pending{
    border-left: 3px solid #1054ff;
}
.task_card_success{
    border-left: 3px solid #18a058;
}
.task_card_failed{
    border-left: 3px solid #e74c3c;
}
.task_card_cover{
    flex-shrink: 0;
}
.task_thumb{
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f5f5 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.task_thumb img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.task_thumb.is-pending img{
    opacity: 0.45;
    filter: blur(1px);
}
.task_thumb_loading{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.35);
}
.task_thumb_loading::after{
    content: '';
    width: 28px;
    height: 28px;
    border: 2px solid rgba(16, 84, 255, 0.15);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: task_spin 0.8s linear infinite;
}
@keyframes task_spin{
    to{
        transform: rotate(360deg);
    }
}
.task_card_body{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.task_card_head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.task_card_tags{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.task_status{
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.task_status_pending{
    color: #1054ff;
    background: rgba(16, 84, 255, 0.1);
}
.task_status_success{
    color: #18a058;
    background: rgba(24, 160, 88, 0.1);
}
.task_status_failed{
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}
.task_status_synced{
    color: #1054ff;
    background: rgba(16, 84, 255, 0.1);
}
.task_card_actions{
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}
.task_sync_btn{
    height: 34px;
    padding: 0 16px;
    border: none;
    border-radius: 17px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1054ff 0%, #3d7bff 100%);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.task_sync_btn:hover{
    opacity: 0.92;
}
.task_sync_btn:active{
    transform: scale(0.98);
}
.task_sync_btn:disabled{
    opacity: 0.6;
    cursor: not-allowed;
}
.task_sync_modal .invite_modal_desc{
    margin-bottom: 16px;
}
.task_sync_field{
    margin-bottom: 22px;
}
.task_sync_label{
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}
.task_sync_input{
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg-page);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.task_sync_input:focus{
    border-color: rgba(16, 84, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(16, 84, 255, 0.12);
}
.task_date{
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}
.task_prompt{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
    word-break: break-word;
}
.task_error{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #c0392b;
    background: rgba(231, 76, 60, 0.06);
    word-break: break-word;
}
.task_error_label{
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.12);
}
.task_card_meta{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
}
.task_meta_item{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--color-bg-page);
}
.task_meta_label{
    font-size: 12px;
    color: #999;
}
.task_meta_value{
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}
.task_refund_refunded{
    color: #18a058;
}
.task_refund_not-refunded{
    color: #e74c3c;
}
.task_empty{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 24px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fafbff 0%, var(--color-bg-page) 100%);
    border: 1px dashed var(--color-border);
}
.task_empty_icon{
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(16, 84, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231054ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center / 36px no-repeat;
}
.task_empty_icon_collection{
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 84, 255, 0.08);
}
.task_empty_icon_collection img{
    width: 36px;
    height: 36px;
    filter: invert(27%) sepia(89%) saturate(2451%) hue-rotate(214deg) brightness(97%) contrast(101%);
}
.task_empty_title{
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}
.task_empty_desc{
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
    text-align: center;
}
.task_empty_btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 28px;
    border-radius: 20px;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(16, 84, 255, 0.25);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.task_empty_btn:hover{
    opacity: 0.92;
    transform: translateY(-1px);
}
.task_section .pagination{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 10px;
    padding: 0;
    list-style: none;
}
.task_section .pagination > li{
    display: inline-flex;
}
.task_section .pagination > li > a,
.task_section .pagination > li > span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    background-color: var(--color-bg-page);
    transition: color 0.2s ease, background-color 0.2s ease;
}
.task_section .pagination > li > a:hover{
    color: var(--color-primary);
    background-color: var(--color-bg-active);
}
.task_section .pagination > .active > span{
    color: var(--color-text-inverse);
    background-color: var(--color-primary);
    font-weight: 500;
}
.task_section .pagination > .disabled > span{
    color: #ccc;
    cursor: not-allowed;
}

/* ---------- 作品详情页 ---------- */
.work_detail_section{
    padding: 0 0  0 30px;
}
.work_detail_layout{
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.work_detail_gallery{
    flex: 1;
    min-width: 0;
    height: calc(100vh - 125px);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: flex-start;
    z-index: 1;
}
.work_detail_slider{
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-height: 0;
}
.work_detail_viewport{
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--color-bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
}
.work_detail_track{
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}
.work_detail_slide{
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.work_detail_slide img{
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
    background-color: var(--color-bg-page);
}
.work_detail_nav{
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background-color: var(--color-bg-surface);
    color: var(--color-text);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.work_detail_nav:hover{
    background-color: var(--color-bg-active);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.work_detail_dots{
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-shrink: 0;
}
.work_detail_dot{
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background-color: #d9d9d9;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.work_detail_dot.is-active{
    background-color: var(--color-primary);
    transform: scale(1.2);
}
.work_detail_thumbs{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    flex-shrink: 0;
}
.work_detail_thumb{
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.work_detail_thumb.is-active{
    border-color: var(--color-primary);
}
.work_detail_thumb img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.work_detail_info{
    width: 360px;
    flex-shrink: 0;
    height: calc(100vh - 125px);
    padding: 0;
    border-radius: 12px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: flex-start;
    overflow: hidden;
}
.work_detail_info_body{
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 24px 24px;
}
.work_detail_info_footer{
    flex-shrink: 0;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-surface);
}
.work_detail_title{
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    word-break: break-word;
}
.work_detail_author{
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}
.work_detail_avatar{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.work_detail_author_meta{
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.work_detail_nickname{
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.work_detail_date{
    font-size: 13px;
    color: #999;
}
.work_detail_block{
    margin-top: 20px;
}
.work_detail_label{
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}
.work_detail_prompt{
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    word-break: break-word;
    white-space: pre-wrap;
}
.work_detail_ref_list{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.work_detail_ref_item{
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.work_detail_ref_item img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.work_detail_stats{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.work_detail_stats_overlay{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0;
    padding: 20px 16px 14px;
    border: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}
.work_detail_stats_overlay .work_detail_stat{
    pointer-events: auto;
    flex-direction: row;
    gap: 8px;
}
.work_detail_stats_overlay .work_detail_stat_value,
.work_detail_stats_overlay .work_detail_stat_label{
    color: var(--color-text-inverse);
}
.work_detail_stats_overlay .work_detail_stat_label{
    color: rgba(255, 255, 255, 0.85);
}
.work_detail_stats_overlay .work_detail_stat_icon_use{
    color: var(--color-text-inverse);
}
.work_detail_stats_overlay .work_detail_stat_btn img.work_detail_stat_icon,
.work_detail_stats_overlay .work_detail_stat_static img.work_detail_stat_icon{
    filter: none;
}
.work_detail_stats_overlay .work_detail_stat_btn:hover{
    background-color: rgba(255, 255, 255, 0.15);
}
.work_detail_stats_overlay .work_detail_stat_static:hover{
    background-color: transparent;
}
.work_detail_stats_overlay .work_detail_stat_btn.is-active .work_detail_stat_value,
.work_detail_stats_overlay .work_detail_stat_btn.is-active .work_detail_stat_label{
    color: #fff;
}
.work_detail_like_btn .work_detail_stat_value,
.work_detail_like_btn .work_detail_stat_label,
.work_detail_collect_btn .work_detail_stat_value,
.work_detail_collect_btn .work_detail_stat_label,
.work_detail_like_btn.is-active .work_detail_stat_value,
.work_detail_like_btn.is-active .work_detail_stat_label,
.work_detail_collect_btn.is-active .work_detail_stat_value,
.work_detail_collect_btn.is-active .work_detail_stat_label{
    color: #fff;
}
.work_detail_stats_overlay .work_detail_collect_btn.is-active img.work_detail_stat_icon{
    filter: none;
}
.work_detail_stats_overlay .work_detail_like_btn.is-active img.work_detail_stat_icon{
    filter: none;
}
.work_detail_stat{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.work_detail_stat_btn{
    border: none;
    background: none;
    padding: 8px 4px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}
.work_detail_stat_btn:hover{
    background-color: var(--color-bg-active);
}
.work_detail_stat_btn:active{
    transform: scale(0.97);
}
.work_detail_stat_btn:disabled{
    opacity: 0.6;
    cursor: not-allowed;
}
.work_detail_stat_static{
    cursor: default;
}
.work_detail_stat_static:hover{
    background-color: transparent;
}
.work_detail_stat_static:active{
    transform: none;
}
.work_detail_like_btn.is-active .work_detail_stat_value,
.work_detail_like_btn.is-active .work_detail_stat_label,
.work_detail_collect_btn.is-active .work_detail_stat_value,
.work_detail_collect_btn.is-active .work_detail_stat_label{
    color: #fff;
}
.work_detail_stat_btn img.work_detail_stat_icon{
    filter: brightness(0) saturate(100%) invert(62%);
}
.work_detail_collect_btn.is-active img.work_detail_stat_icon{
    filter: none;
}
.work_detail_like_btn.is-active img.work_detail_stat_icon{
    filter: none;
}
.work_detail_stat_icon{
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.work_detail_stat_icon_use{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.work_detail_stats_overlay .work_detail_stat_body{
    align-items: flex-start;
    text-align: left;
}
.work_detail_stat_body{
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.work_detail_stat_value{
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}
.work_detail_stat_label{
    font-size: 12px;
    color: #999;
}
.work_detail_tags{
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.work_detail_tag_group{
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.work_detail_tag_title{
    font-size: 12px;
    color: #999;
}
.work_detail_tag_list{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.work_detail_tag{
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 14px;
    background-color: var(--color-bg-active);
    color: var(--color-primary);
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.work_detail_tag:hover{
    opacity: 0.85;
}
.work_detail_btn{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin-top: 0;
    border-radius: 22px;
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.work_detail_btn:hover{
    opacity: 0.9;
}

@media (max-width: 768px){
    .tags_filter_group,
    .tags_sort_group{
        flex-direction: column;
        gap: 10px;
    }
    .tags_filter_label{
        width: auto;
        padding-top: 0;
    }
    .task_page_header{
        flex-direction: column;
        align-items: flex-start;
    }
    .task_card{
        flex-direction: column;
        gap: 14px;
    }
    .task_thumb{
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
    .task_card_head{
        flex-direction: column;
        align-items: flex-start;
    }
    .work_detail_layout{
        flex-direction: column;
        gap: 20px;
    }
    .work_detail_gallery{
        position: static;
        height: auto;
        min-height: 70vh;
    }
    .work_detail_slider{
        flex: none;
        min-height: 70vh;
    }
    .work_detail_slide img{
        height: auto;
        max-height: 70vh;
    }
    .work_detail_info{
        width: 100%;
        height: auto;
        position: static;
        overflow: visible;
    }
    .work_detail_info_body{
        overflow-y: visible;
        padding: 24px 24px 0;
    }
    .work_detail_info_footer{
        padding: 16px 24px 24px;
    }
    .work_detail_nav{
        width: 34px;
        height: 34px;
    }
    .work_detail_stats{
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .work_detail_stats_overlay{
        gap: 16px;
        padding: 16px 12px 12px;
    }
    .work_detail_stats_overlay .work_detail_stat_value{
        font-size: 16px;
    }
    .work_detail_stats_overlay .work_detail_stat_label{
        font-size: 11px;
    }
}