.langyu-left-layer {
    position: fixed;
    top: 200px;
    z-index: 900;
    visibility: hidden;
    pointer-events: none;
    transition: left 0.2s ease, opacity 0.15s ease;
    opacity: 0;
}
.langyu-left-layer.is-visible {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}
.langyu-left-layer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.langyu-left-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #999;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.langyu-left-qr-btn {
    padding: 8px 6px;
    width: auto;
    height: auto;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
html.is-dark-mode .langyu-left-qr-btn {
    background: #1e2a3a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.langyu-left-btn:hover {
    color: var(--langyu-primary, #111);
    background: rgba(0,0,0,0.05);
}
.langyu-left-qr-btn:hover {
    background: #f7f7f7;
}
html.is-dark-mode .langyu-left-btn {
    color: #888;
}
html.is-dark-mode .langyu-left-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
html.is-dark-mode .langyu-left-qr-btn:hover {
    background: #253244;
}
.langyu-left-fav-btn.active {
    color: #e5484d;
}
html.is-dark-mode .langyu-left-fav-btn.active {
    color: #f87171;
}
.langyu-left-charge-btn.active {
    color: #f5a623;
}
.langyu-left-charge-btn.active svg {
    fill: currentColor;
    stroke: none;
}
html.is-dark-mode .langyu-left-charge-btn.active {
    color: #f0b93d;
}
.langyu-left-fav-btn.active svg {
    fill: currentColor;
    stroke: currentColor;
}
.langyu-left-count {
    position: absolute;
    top: -2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background: #e5484d;
    border-radius: 8px;
    pointer-events: none;
}
.langyu-left-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    padding: 5px 10px;
    font-size: 12px;
    color: #fff;
    background: rgba(0,0,0,0.8);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10;
}
.langyu-left-btn[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}
/* QR popover */
.langyu-left-qr-popover {
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 20;
}
.langyu-left-qr-popover.is-open {
    opacity: 1;
    visibility: visible;
}
html.is-dark-mode .langyu-left-qr-popover {
    background: #1e2a3a;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.langyu-left-qr-canvas-wrap {
    display: flex;
}
/* Share popover */
.langyu-left-share-popover {
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 20;
    min-width: 140px;
}
.langyu-left-share-popover.is-open {
    opacity: 1;
    visibility: visible;
}
html.is-dark-mode .langyu-left-share-popover {
    background: #1e2a3a;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.langyu-left-share-list {
    display: flex;
    flex-direction: column;
}
.langyu-left-share-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.15s;
    white-space: nowrap;
    text-align: left;
    width: 100%;
}
.langyu-left-share-item:hover {
    background: rgba(0,0,0,0.04);
}
html.is-dark-mode .langyu-left-share-item {
    color: #ddd;
}
html.is-dark-mode .langyu-left-share-item:hover {
    background: rgba(255,255,255,0.06);
}
.langyu-left-share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}
.langyu-left-share-label {
    line-height: 1;
}
.langyu-left-share-wechat-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 14px 10px;
}
.langyu-left-share-wechat-qr-inner {
    width: 130px;
    height: 130px;
}
.langyu-left-share-wechat-qr-inner canvas {
    display: block;
    border-radius: 4px;
}
.langyu-left-share-wechat-tip {
    margin-top: 6px;
    font-size: 11px;
    color: #999;
}
html.is-dark-mode .langyu-left-share-wechat-tip {
    color: #888;
}
#langyu-left-qr-canvas {
    width: 140px;
    height: 140px;
}
#langyu-left-qr-canvas canvas {
    display: block;
    border-radius: 4px;
}
.langyu-left-qr-tip {
    margin: 6px 0 0;
    font-size: 11px;
    color: #999;
    text-align: center;
}
html.is-dark-mode .langyu-left-qr-tip {
    color: #888;
}
