/* ========== 作品详情页专用样式 ========== */

/* --- 页面容器（与 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;
}

/* --- 图片浏览器 --- */
.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;
    }
}
