/* ========== 作品详情页专用样式 ========== */

/* --- 页面容器（与 xgt-profile-wrap 配合） --- */
.works-detail-page {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    background: transparent;
}

.works-detail-wrap {
    position: relative;
}

/* --- 面包屑导航 --- */
.navbar {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.navbar a {
    color: #64748b;
    text-decoration: none;
}
.navbar a:hover {
    color: #409eff;
}
.navbar i {
    font-style: normal;
    color: #cbd5e1;
}
.navbar span {
    color: #091d2e;
}

/* --- 主布局：左右分栏 --- */
.modeldetail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 20px;
}

/* --- 左侧内容区 --- */
.modeldetail .left {
    position: relative;
    background-color: #fff;
    width: calc(100% - 300px);
    border: 1px solid #e8edf3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px -4px rgba(54, 163, 247, 0.1);
}

.modeldetail .left .title {
    font-size: 28px;
    font-weight: 700;
    color: #091d2e;
    line-height: 1.4;
    max-width: 800px;
    text-align: center;
    padding: 32px 24px 16px;
    margin: 0 auto;
    box-sizing: border-box;
}

.modeldetail .left .infoflex {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #A4A9B1;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.modeldetail .left .infoflex .logobox {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #313336;
}

.modeldetail .left .infoflex .logobox .icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.modeldetail .left .infoflex .logobox .tit {
    font-size: 14px;
    font-weight: 500;
    color: #313336;
    margin: 0;
}

.modeldetail .left .infoflex .viewbtn,
.modeldetail .left .infoflex .datebtn,
.modeldetail .left .infoflex .likebtn,
.modeldetail .left .infoflex .favbtn,
.modeldetail .left .infoflex .tagsbtn {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.modeldetail .left .infoflex .viewbtn i,
.modeldetail .left .infoflex .likebtn i,
.modeldetail .left .infoflex .favbtn i {
    font-size: 14px;
}

.modeldetail .left .infoflex .likebtn,
.modeldetail .left .infoflex .favbtn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.modeldetail .left .infoflex .likebtn:hover,
.modeldetail .left .infoflex .likebtn.on,
.modeldetail .left .infoflex .favbtn:hover,
.modeldetail .left .infoflex .favbtn.on {
    color: #409eff;
}

.modeldetail .left .infoflex .divider {
    color: #999;
    margin: 0 8px;
}

.modeldetail .left .infoflex .tagsbtn .tag-item {
    color: #666;
}

.modeldetail hr {
    width: 100%;
    height: 0.5px;
    background: #EAEDF3;
    border: none;
    margin: 0;
    display: block;
}

/* --- 作品内容 --- */
.modeldetail .left .contenttxt {
    margin: 24px;
    box-sizing: border-box;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.8;
    color: #313336;
    overflow-x: hidden;
}

.modeldetail .left .contenttxt h1 {
    font-size: 24px;
    line-height: 1.4;
    margin: 32px 0 16px;
    font-weight: 600;
    color: #313336;
}

.modeldetail .left .contenttxt h2 {
    font-size: 18px;
    line-height: 1.5;
    margin: 24px 0 12px;
    font-weight: 600;
    color: #313336;
}

.modeldetail .left .contenttxt p {
    font-weight: 400;
    font-size: 15px;
    line-height: 1.8;
    color: #313336;
    margin: 12px 0;
}

.modeldetail .left .contenttxt img {
    margin: 16px auto;
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.modeldetail .left .contenttxt strong *,
.modeldetail .left .contenttxt span {
    font-size: inherit !important;
    color: #313336;
}

/* --- 内容区图片样式 --- */
.contenttxt img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- 左侧点赞 --- */
.modeldetail .left .zan {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 32px auto;
    background: #409eff;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #fff;
    font-size: 20px;
}

.modeldetail .left .zan:hover {
    background-color: #296AFF;
}

.modeldetail .left .zan .icon {
    font-size: 24px;
}

.modeldetail .left .zan span {
    display: none;
    font-size: 12px;
    margin-top: 2px;
}

.modeldetail .left .zan.on {
    background: rgba(16, 84, 238, 0.1);
    color: #409eff;
}

.modeldetail .left .zan.on span {
    display: block;
}

/* --- 右侧信息栏 --- */
.modeldetail .right {
    width: 280px;
    position: sticky;
    top: 20px;
    right: 0;
    flex-shrink: 0;
}

.modeldetail .right .bgRight {
    background-color: #fff;
    padding-top: 24px;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 16px -4px rgba(54, 163, 247, 0.1);
}

.modeldetail .right hr {
    margin: 16px 0;
    border: none;
    height: 1px;
    background: #EAEDF3;
}

.modeldetail .right .flex {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    text-decoration: none;
    margin-bottom: 8px;
}

.modeldetail .right .flex .logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.modeldetail .right .flex h4.tit {
    font-size: 16px;
    font-weight: 600;
    color: #091d2e;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.modeldetail .right .flex h4.tit .xgt-verify-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.modeldetail .right .flex .tips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
    color: #A4A9B1;
    line-height: 1.4;
    margin: 0;
}

.modeldetail .right .flex .tips span {
    margin: 0;
}

.modeldetail .right h3 {
    font-size: 16px;
    font-weight: 500;
    color: #313336;
    line-height: 1.4;
    padding: 0 24px;
    margin: 16px 0 8px;
}

.modeldetail .right .li {
    font-size: 13px;
    color: #6A6E73;
    line-height: 1.6;
    margin: 6px 24px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.modeldetail .right .li > span:first-child {
    color: #A4A9B1;
    margin-right: 12px;
    white-space: nowrap;
    min-width: 56px;
}

.modeldetail .right .casecall {
    background: #409eff;
    border-radius: 6px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    color: #FFFFFF;
    text-align: center;
    width: calc(100% - 48px);
    margin: 16px auto 12px;
    border: 1px solid #409eff;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.modeldetail .right .casecall:hover {
    background-color: #296AFF;
}

.modeldetail .right .clickzan {
    cursor: pointer;
    border-radius: 6px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    color: #6A6E73;
    text-align: center;
    width: calc(100% - 48px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px;
    border: 1px solid #A4A9B1;
    transition: all 0.2s;
    background: #fff;
}

.modeldetail .right .clickzan:hover {
    background: #F7F9FF;
    border-color: #A4A9B1;
}

.modeldetail .right .clickzan > .icon {
    font-size: 16px;
    margin-right: 6px;
    line-height: 1;
}

.modeldetail .right .clickzan .tet {
    display: block;
}

.modeldetail .right .clickzan .num {
    display: none;
    margin-left: 4px;
}

.modeldetail .right .clickzan.on {
    border: 1px solid #409eff;
    color: #409eff;
    background: #F7F9FF;
}

.modeldetail .right .clickzan.on .tet {
    color: #409eff;
}

.modeldetail .right .sharetxt {
    font-size: 12px;
    color: #A4A9B1;
    text-align: center;
    margin: 0 0 8px;
}

.modeldetail .right .sharebox {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding-bottom: 24px;
    gap: 12px;
    position: relative;
    overflow: visible;
}

.modeldetail .right .share-wechat-wrap {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    overflow: visible;
}

.modeldetail .right .sharebox .icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.modeldetail .right .sharebox .icon img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: contain;
}

.modeldetail .right .sharebox .icon .hover {
    opacity: 0;
    transition: opacity 0.2s;
}

.modeldetail .right .sharebox .icon:hover .hover {
    opacity: 1;
}

.modeldetail .right .share-wechat-wrap .works-wechat-qr-popup {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    width: 164px;
    margin-left: -82px;
    z-index: 50;
    padding: 12px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modeldetail .right .share-wechat-wrap .works-wechat-qr-popup::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    background: #fff;
    border-right: 1px solid #e8edf3;
    border-bottom: 1px solid #e8edf3;
    transform: rotate(45deg);
}

.modeldetail .right .share-wechat-wrap:hover .works-wechat-qr-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.works-wechat-qr-img {
    display: block;
    width: 140px;
    height: 140px;
    margin: 0 auto 8px;
}

.works-wechat-qr-text {
    display: block;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.works-share-qr-modal {
    text-align: center;
    padding: 8px 0 4px;
}

.works-share-qr-modal img {
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto 12px;
}

.works-share-qr-modal p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* --- 标签 --- */
.tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 24px;
    justify-content: center;
}

.tags-section .tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
}

/* --- 内容声明（右侧信息栏） --- */
.modeldetail .right .declaration-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin: 0 24px 12px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: #d46b08;
}

.modeldetail .right .declaration-display i {
    margin-top: 2px;
    flex-shrink: 0;
}

.modeldetail .right .declaration-display span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

/* --- 浮动点赞按钮 scroll_zan（客服图标上方） --- */
.scroll_zan.works-float-zan {
    position: fixed;
    right: 40px;
    bottom: 210px;
    z-index: 9990;
    width: 48px;
    height: 48px;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll_zan.works-float-zan:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(61, 126, 255, 0.25);
}

.scroll_zan.works-float-zan:active {
    transform: translateY(0) scale(0.96);
}

.scroll_zan.works-float-zan .act_num {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 2;
    width: 20px;
    height: 20px;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #3d7eff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    border-radius: 50%;
    border: 1.5px solid #3d7eff;
    pointer-events: none;
    transition: transform 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}

.scroll_zan.works-float-zan .act_num.act-num-wide {
    width: 24px;
    height: 24px;
    top: -6px;
    right: -6px;
    font-size: 9px;
}

.scroll_zan.works-float-zan .act_num.act-num-wider {
    width: 26px;
    height: 26px;
    top: -7px;
    right: -7px;
    font-size: 8px;
}

.scroll_zan.works-float-zan.zan-play .act_num {
    animation: zanNumPop 0.45s ease;
}

.scroll_zan.works-float-zan .icon-zan_s {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 48px;
    transform-origin: -10% 50%;
}

.scroll_zan.works-float-zan .icon-zan_s img {
    width: 22px;
    height: 22px;
    display: block;
    transition: filter 0.2s ease;
}

.scroll_zan.works-float-zan.on .icon-zan_s img {
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(196deg) brightness(99%) contrast(101%);
}

.scroll_zan.works-float-zan.zan-play .icon-zan_s {
    animation: zanIconPop 0.45s ease;
}

.scroll_zan.works-float-zan .zan-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.scroll_zan.works-float-zan .zan-particles span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: #3d7eff;
    opacity: 0;
}

.scroll_zan.works-float-zan.zan-play .zan-particles span:nth-child(1) { animation: zanParticle1 0.6s ease-out forwards; }
.scroll_zan.works-float-zan.zan-play .zan-particles span:nth-child(2) { animation: zanParticle2 0.6s ease-out 0.03s forwards; }
.scroll_zan.works-float-zan.zan-play .zan-particles span:nth-child(3) { animation: zanParticle3 0.6s ease-out 0.06s forwards; }
.scroll_zan.works-float-zan.zan-play .zan-particles span:nth-child(4) { animation: zanParticle4 0.6s ease-out 0.09s forwards; }
.scroll_zan.works-float-zan.zan-play .zan-particles span:nth-child(5) { animation: zanParticle5 0.6s ease-out 0.12s forwards; }
.scroll_zan.works-float-zan.zan-play .zan-particles span:nth-child(6) { animation: zanParticle6 0.6s ease-out 0.15s forwards; }

.scroll_zan.works-float-zan .zan-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 3px solid #3d7eff;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.scroll_zan.works-float-zan.zan-play .zan-ring {
    animation: zanRingBurst 0.55s ease-out forwards;
}

@keyframes zanIconPop {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.35) rotate(-10deg); }
    55% { transform: scale(0.92) rotate(6deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes zanNumPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

@keyframes zanRingBurst {
    0% { opacity: 0.55; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(2.2); }
}

@keyframes zanParticle1 {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(0, -42px) scale(0.4); }
}
@keyframes zanParticle2 {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(36px, -21px) scale(0.4); }
}
@keyframes zanParticle3 {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(36px, 21px) scale(0.4); }
}
@keyframes zanParticle4 {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(0, 42px) scale(0.4); }
}
@keyframes zanParticle5 {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(-36px, 21px) scale(0.4); }
}
@keyframes zanParticle6 {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(-36px, -21px) scale(0.4); }
}

/* --- 图片浏览器 --- */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.viewer-container {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: grab;
}

.viewer-image:active {
    cursor: grabbing;
}

.viewer-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.viewer-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.viewer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .works-detail {
        padding: 12px 0;
    }
    .works-detail .wrap {
        padding: 0 12px;
    }
    .modeldetail {
        flex-direction: column;
    }
    .modeldetail .left {
        width: 100%;
    }
    .modeldetail .left .title {
        font-size: 22px;
        padding: 20px 16px 12px;
    }
    .modeldetail .left .infoflex {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }
    .modeldetail .left .contenttxt {
        margin: 16px;
        font-size: 14px;
    }
    .modeldetail .left .contenttxt h1 {
        font-size: 20px;
    }
    .modeldetail .left .contenttxt h2 {
        font-size: 16px;
    }
    .modeldetail .right {
        width: 100%;
        position: static;
        margin-top: 16px;
    }
    .modeldetail .right .bgRight {
        padding-top: 20px;
    }
    .scroll_zan.works-float-zan {
        right: 16px;
        bottom: 200px;
    }
}

/* --- 你可能喜欢 --- */
.works-related {
    margin-top: 28px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    box-shadow: 0 4px 16px -4px rgba(54, 163, 247, 0.08);
}
.works-related-header {
    margin-bottom: 18px;
}
.works-related-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #091d2e;
    line-height: 1.3;
}
.works-related-subtitle {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}
.works-related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.works-related-card {
    border: 1px solid #e8edf3;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.works-related-card:hover {
    transform: translateY(-3px);
    border-color: #409eff;
    box-shadow: 0 8px 20px rgba(64, 158, 255, 0.12);
}
.works-related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.works-related-media {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: #f1f5f9;
}
.works-related-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.works-related-info {
    padding: 10px 12px 12px;
}
.works-related-name {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #091d2e;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.works-related-author {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .works-related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 768px) {
    .works-related {
        margin-top: 20px;
        padding: 16px;
    }
    .works-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .works-related-title {
        font-size: 18px;
    }
}
