/* ============================================
   登录弹窗样式（小红书风格）
   ============================================ */

.xhs-login-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}
.xhs-login-modal.active {
    pointer-events: auto;
    visibility: visible;
}
.xhs-login-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0);
    transition: background .3s ease;
}
.xhs-login-modal.active .xhs-login-overlay {
    background: rgba(0,0,0,0.55);
}
.xhs-login-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0,0,0,0.08);
    color: #999;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.xhs-login-close:hover {
    background: rgba(0,0,0,0.15);
    color: #333;
}
/* 弹窗主体 */
.xhs-login-box {
    position: relative;
    z-index: 1;
    display: flex;
    width: 780px;
    max-width: 92vw;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: scale(0.85);
    opacity: 0;
    transition: transform .4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity .35s ease;
}
.xhs-login-modal.active .xhs-login-box {
    transform: scale(1);
    opacity: 1;
}
/* ===== 左侧：扫码区 ===== */
.xhs-login-left {
    width: 280px;
    min-width: 280px;
    padding: 48px 28px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: color-mix(in srgb, #fff 92%, var(--color-primary, #ff2442) 8%);
    border-right: 1px solid #f0e8d8;
}
.xhs-login-tip {
    font-size: 14px;
    color: var(--color-primary, #ff2442);
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}
.xhs-login-brand {
    margin-bottom: 20px;
}
.xhs-brand-badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--color-primary, #ff2442);
    color: #fff;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
}
.xhs-qrcode-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.xhs-qrcode-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.xhs-qrcode-expired {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.xhs-qrcode-expired span {
    font-size: 13px;
    color: #999;
}
.xhs-qrcode-refresh {
    padding: 6px 18px;
    border: none;
    background: var(--color-primary, #ff2442);
    color: #fff;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
}
.xhs-qrcode-hint {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-bottom: 12px;
}
.xhs-qrcode-hint strong {
    color: #333;
}
.xhs-qrcode-help-btn {
    font-size: 12px;
    color: #bbb;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    transition: color .2s;
}
.xhs-qrcode-help-btn:hover {
    color: #666;
}
/* ===== 右侧：Tab 切换登录 ===== */
.xhs-login-right {
    flex: 1;
    padding: 40px 40px 30px;
    display: flex;
    flex-direction: column;
}
.xhs-login-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 28px;
    text-align: center;
}
/* Tab 导航 */
.xhs-login-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
    gap: 0;
}
.xhs-login-tab {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: none;
    font-size: 15px;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color .2s;
    font-weight: 500;
}
.xhs-login-tab.active {
    color: var(--color-primary, #ff2442);
}
.xhs-login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--color-primary, #ff2442);
    border-radius: 2px;
}
.xhs-login-tab:hover:not(.active) {
    color: #666;
}
/* Tab 内容切换 */
.xhs-login-tab-content {
    display: none;
}
.xhs-login-tab-content.active {
    display: block;
}
/* 通用输入框 */
.xhs-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 14px;
    height: 48px;
    background: #fafafa;
    transition: border-color .2s, background .2s;
}
.xhs-input-wrap:focus-within {
    border-color: var(--color-primary, #ff2442);
    background: #fff;
}
.xhs-input-icon {
    font-size: 16px;
    margin-right: 10px;
    white-space: nowrap;
}
.xhs-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
    color: #333;
}
.xhs-form-group {
    margin-bottom: 18px;
}
.xhs-input-phone {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 14px;
    height: 48px;
    background: #fafafa;
    transition: border-color .2s;
}
.xhs-input-phone:focus-within,
.xhs-input-code:focus-within {
    border-color: var(--color-primary, #ff2442);
    background: #fff;
}
.xhs-phone-prefix {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
    white-space: nowrap;
    border-right: 1px solid #e0e0e0;
    padding-right: 10px;
}
.xhs-input-phone input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
    color: #333;
}
.xhs-input-code {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 14px;
    height: 48px;
    background: #fafafa;
    transition: border-color .2s;
}
.xhs-input-code input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
    color: #333;
}
.xhs-send-code-btn {
    white-space: nowrap;
    padding: 0 14px;
    border: none;
    background: transparent;
    color: var(--color-primary, #ff2442);
    font-size: 14px;
    cursor: pointer;
    transition: opacity .2s;
}
.xhs-send-code-btn:hover:not(:disabled) {
    opacity: 0.75;
}
.xhs-send-code-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}
.xhs-login-submit-btn {
    width: 100%;
    height: 48px;
    border: none;
    background: var(--color-primary, #ff2442);
    color: #fff;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity .2s, filter .2s;
}
.xhs-login-submit-btn:hover {
    filter: brightness(1.05);
}
.xhs-agreement {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    cursor: pointer;
}
.xhs-agreement input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--color-primary, #ff2442);
}
.xhs-agreement a {
    color: #999;
    text-decoration: none;
}
.xhs-agreement a:hover {
    color: var(--color-primary, #ff2442);
}
.xhs-register-hint {
    text-align: center;
    font-size: 13px;
    color: #bbb;
    margin-top: auto;
    padding-top: 12px;
}
/* 响应式 */
@media (max-width: 600px) {
    .xhs-login-box {
        flex-direction: column;
        width: 92vw;
        max-height: 90vh;
        overflow-y: auto;
    }
    .xhs-login-left {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0e8d8;
        padding: 24px 20px 16px;
    }
    .xhs-login-right {
        padding: 24px 20px 20px;
    }
    .xhs-qrcode-wrap {
        width: 150px;
        height: 150px;
    }
}

/* ============================================
   全屏图片查看器样式
   ============================================ */

.xhs-image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    /* 高斯模糊背景 - 使用 backdrop-filter */
    backdrop-filter: blur(30px) saturate(1.8) brightness(0.6);
    -webkit-backdrop-filter: blur(30px) saturate(1.8) brightness(0.6);
    background: rgba(0, 0, 0, 0.35);
}
.xhs-image-viewer.active {
    display: flex;
}
.xhs-viewer-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* 遮罩层也用模糊效果，确保点击关闭区域有模糊感 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.xhs-viewer-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    line-height: 1;
}
.xhs-viewer-close:hover {
    background: rgba(255,255,255,0.3);
}
.xhs-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 90px;
    overflow: hidden;
}
.xhs-viewer-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
    user-select: none;
    -webkit-user-drag: none;
}
/* 底部工具栏 - 默认隐藏，hover显示，和轮播按钮一致 */
.xhs-viewer-toolbar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(40,40,40,0.92);
    padding: 10px 22px;
    border-radius: 28px;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.xhs-image-viewer:hover .xhs-viewer-toolbar {
    opacity: 1;
    pointer-events: auto;
}
.xhs-viewer-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.xhs-viewer-nav-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color .2s, background .2s;
    line-height: 1;
}
.xhs-viewer-nav-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}
.xhs-viewer-counter {
    color: #fff;
    font-size: 13px;
    min-width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.xhs-viewer-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 14px;
    border-left: 1px solid rgba(255,255,255,0.15);
}
.xhs-viewer-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color .2s, background .2s;
}
.xhs-viewer-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}
.xhs-viewer-zoom {
    color: #aaa;
    font-size: 12px;
    min-width: 42px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   帖子详情弹窗样式
   ============================================ */

/* 弹窗遮罩 */
.xhs-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}
.xhs-modal.active {
    pointer-events: auto;
    visibility: visible;
}
.xhs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    transition: background .3s ease;
}
.xhs-modal.active .xhs-modal-overlay {
    background: rgba(0,0,0,0.6);
}

/* 弹窗主体 */
.xhs-modal-content {
    position: relative;
    height: 92vh;
    max-width: 90vw;
    background: #fff;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    /* 放大动画 - 从小到大慢慢放大 */
    transform: scale(0.5);
    opacity: 0;
    transition: transform .45s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity .35s ease;
}
.xhs-modal.active .xhs-modal-content {
    transform: scale(1);
    opacity: 1;
}
/* 关闭时慢慢缩小 */
.xhs-modal.closing .xhs-modal-content {
    transform: scale(0.5) !important;
    opacity: 0 !important;
    transition: transform .4s cubic-bezier(0.55, 0.085, 0.68, 0.53), opacity .3s ease !important;
}
.xhs-modal.closing .xhs-modal-overlay {
    background: rgba(0,0,0,0) !important;
}
.xhs-modal-wrapper {
    position: relative;
    z-index: 1;
}
.xhs-modal-close {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.xhs-modal-close:hover {
    background: rgba(255,255,255,0.4);
}

/* 弹窗主体布局 - 右侧固定440px，左侧根据图片自适应 */
.xhs-modal-body {
    display: flex;
    height: 100%;
}

/* 左侧图片区 - 宽度由JS根据图片宽高比动态设置 */
.xhs-modal-left {
    flex: none;
    min-width: 320px;
    min-height: 400px;
    height: 100%;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* 图片计数器 */
.xhs-img-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}
.xhs-modal-left:hover .xhs-img-counter {
    opacity: 1;
}
.xhs-modal-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.xhs-slider-track {
    display: flex;
    height: 100%;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}


/* 视频播放器 - 填满左侧区域 */
.xhs-modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    outline: none;
    display: block;
}
/* slider中每张图严格占满左侧容器宽度，不撑开轨道 */
.xhs-slider-track .xhs-modal-img {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}
.xhs-modal-img {
    height: 100%;
    max-height: 92vh;
    width: auto;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* 图片切换按钮 - 默认隐藏 */
.xhs-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0,0,0,0.35);
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease, opacity .3s ease;
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
}
.xhs-modal-slider:hover .xhs-slider-btn {
    opacity: 1;
    pointer-events: auto;
}
.xhs-slider-btn:hover {
    background: rgba(0,0,0,0.6);
}
.xhs-slider-btn.prev {
    left: 12px;
}
.xhs-slider-btn.next {
    right: 12px;
}

/* 指示器也跟随显示 */
.xhs-slider-dots {
    opacity: 0;
    transition: opacity .3s ease;
}
.xhs-modal-slider:hover .xhs-slider-dots {
    opacity: 1;
}

/* 图片指示器 */
.xhs-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.xhs-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all .2s;
}
.xhs-slider-dot.active {
    background: #fff;
    width: 16px;
    border-radius: 3px;
}

/* 右侧详情区 - 固定440px，绝对不受影响 */
.xhs-modal-right {
    flex: 0 0 440px;
    width: 440px;
    max-width: 440px;
    min-width: 440px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* 作者信息 */
.xhs-modal-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.xhs-modal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.xhs-modal-author-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.xhs-modal-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.xhs-btn-follow {
    position: absolute;
    top: 18px;
    right: 20px;
    padding: 5px 18px;
    border: none;
    background: var(--color-primary, #ff2442);
    color: #fff;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    z-index: 2;
}

/* 内容区 */
.xhs-modal-content-body {
    overflow-y: auto;
    padding: 16px 20px;
}
.xhs-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}
.xhs-modal-text {
    font-size: 14px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 12px;
    word-break: break-all;
}
.xhs-modal-tags {
    margin-bottom: 12px;
}
.xhs-tag {
    display: inline-block;
    color: var(--color-primary, #ff2442);
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 6px;
}
.xhs-modal-time {
    font-size: 12px;
    color: #999;
}

/* 评论列表 */
.xhs-modal-comments {
    border-top: 1px solid #f0f0f0;
    padding: 16px 20px;
    flex: 1;
    overflow-y: scroll;
    min-height: 180px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.xhs-modal-comments::-webkit-scrollbar {
    display: none;
}
.xhs-comments-header {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}
.xhs-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.xhs-comment-item {
    display: flex;
    gap: 10px;
}
.xhs-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.xhs-comment-content {
    flex: 1;
    min-width: 0;
}
.xhs-comment-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}
.xhs-comment-text {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}
.xhs-comment-meta {
    font-size: 11px;
    color: #bbb;
    margin-top: 4px;
}

/* 底部互动栏 */
.xhs-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}
.xhs-modal-actions {
    display: flex;
    gap: 8px;
}
.xhs-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: none;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all .2s;
}
.xhs-action-btn:hover {
    background: #eee;
    color: #333;
}
.xhs-action-btn svg {
    fill: #666;
}

/* 响应式 - 小屏幕左右自适应 */
@media (max-width: 768px) {
    .xhs-modal-content {
        flex-direction: column;
        max-height: 95vh;
        width: 95vw !important;
    }
    .xhs-modal-body {
        display: flex;
        flex-direction: column;
    }
    .xhs-modal-left {
        width: 100% !important;
        min-width: 0 !important;
        height: 40vh;
    }
    .xhs-modal-right {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto;
    }
}
@media (max-width: 900px) and (min-width: 769px) {
    .xhs-modal-left {
        min-width: 0 !important;
    }
    .xhs-modal-right {
        width: 340px !important;
        max-width: 340px !important;
        min-width: 340px !important;
    }
}

/* ============================================
   验证码弹窗样式（人机验证）
   ============================================ */
.xhs-captcha-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.xhs-captcha-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
}
.xhs-captcha-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 320px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.xhs-captcha-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    color: #999;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.xhs-captcha-close:hover {
    background: #eee;
    color: #333;
}
.xhs-captcha-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.xhs-captcha-hint {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #999;
}
.xhs-captcha-img-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.xhs-captcha-img-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0;
    border-top: 2px dashed rgba(255,255,255,0.8);
    z-index: 10;
    pointer-events: none;
}
.xhs-captcha-img-wrapper::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed rgba(255,255,255,0.8);
    z-index: 10;
    pointer-events: none;
}
.xhs-captcha-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease;
}
.xhs-captcha-slider-wrapper {
    margin: 0 0 16px 0;
    padding: 0 8px;
}
.xhs-captcha-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.xhs-captcha-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary, #ff2442);
    border-radius: 50%;
    cursor: pointer;
    transition: transform .1s;
}
.xhs-captcha-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}
.xhs-captcha-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-primary, #ff2442);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}
.xhs-captcha-submit {
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--color-primary, #ff2442);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .2s;
}
.xhs-captcha-submit:hover {
    opacity: 0.9;
}
