@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
                .l4d2-map-list-wrapper {
                    width: 100%;
                    color: #1d1d1f;
                    max-width: 1400px;
                    margin: 0 auto;
                    padding: 20px;
                    box-sizing: border-box;
                }
                
                /* 搜索栏 */
                .l4d2-search-container {
                    margin-bottom: 40px;
                    position: relative;
                    max-width: 600px;
                    margin-left: auto;
                    margin-right: auto;
                }
                
                .l4d2-search-input {
                    width: 100%;
                    padding: 16px 120px 16px 50px;
                    font-size: 16px;
                    border: none;
                    border-radius: 12px;
                    background: #f5f5f7;
                    color: #1d1d1f;
                    transition: all 0.3s ease;
                    box-sizing: border-box;
                    outline: none;
                }
                
                .l4d2-search-input:focus {
                    background: #ffffff;
                    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
                }
                
                .l4d2-search-icon {
                    position: absolute;
                    left: 18px;
                    top: 50%;
                    transform: translateY(-50%);
                    width: 20px;
                    height: 20px;
                    color: #86868b;
                    pointer-events: none;
                }

                .l4d2-search-actions {
                    position: absolute;
                    right: 12px;
                    top: 50%;
                    transform: translateY(-50%);
                    display: flex;
                    gap: 8px;
                    z-index: 3;
                }

                .l4d2-action-btn {
                    display: inline-flex;
                    align-items: center;
                    gap: 6px;
                    padding: 8px 12px;
                    font-size: 13px;
                    color: #1d1d1f;
                    background: #e8e8ed;
                    border-radius: 8px;
                    border: 1px solid transparent;
                    cursor: pointer;
                    transition: all 0.2s ease;
                    text-decoration: none;
                    user-select: none;
                }

                .l4d2-action-btn:hover {
                    background: #ffffff;
                    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
                }

                .l4d2-mark-filter {
                    position: absolute;
                    right: 0;
                    top: calc(100% + 8px);
                    background: #fff;
                    border-radius: 12px;
                    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
                    padding: 10px;
                    display: none;
                    min-width: 220px;
                    z-index: 10000;
                }

                .l4d2-mark-filter.active { display: block; }

                .l4d2-mark-filter button { 
                    width: 100%;
                    text-align: left;
                    padding: 8px 10px;
                    border: none;
                    background: #f5f5f7;
                    border-radius: 8px;
                    margin-bottom: 6px;
                    cursor: pointer;
                }

                .l4d2-mark-filter button:hover { background: #e8e8ed; }

                .l4d2-tag-filter {
                    position: absolute;
                    right: 0;
                    top: calc(100% + 8px);
                    background: #fff;
                    border-radius: 12px;
                    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
                    padding: 10px;
                    display: none;
                    min-width: 190px;
                    z-index: 10000;
                }
                .l4d2-tag-filter.active { display: block; }

                .l4d2-tag-badge {
                    display: inline-flex;
                    align-items: center;
                    gap: 2px;
                    padding: 2px 8px;
                    border-radius: 6px;
                    font-size: 11px;
                    font-weight: 500;
                    color: #fff;
                    white-space: nowrap;
                }
                .l4d2-modal-tags {
                    display: flex;
                    gap: 6px;
                    align-items: center;
                    flex-wrap: wrap;
                    flex-shrink: 0;
                }
                .l4d2-modal-subtitle-row {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    gap: 12px;
                    margin-bottom: 16px;
                }

                /* ===== 地图详情弹窗：zhrradiant-srvmap 风格横向双栏 ===== */
                #l4d2MapModal .l4d2-modal-content {
                    max-width: 1030px;
                }
                #l4d2MapModal .l4d2-modal-body {
                    padding: 0;
                    overflow: hidden;
                    display: flex;
                    flex-direction: column;
                    flex: 1;
                    min-height: 0;
                }
                .l4d2-map-detail-layout {
                    display: flex;
                    flex-direction: row;
                    overflow: hidden;
                    flex: 1;
                    min-height: 0;
                }
                /* 左侧大区域：约 70% 宽 */
                .l4d2-map-detail-main {
                    flex: 0 0 70%;
                    min-width: 0;
                    display: flex;
                    flex-direction: column;
                    overflow-y: auto;
                    border-right: 1px solid #e5e5ea;
                }
                .l4d2-map-detail-main-inner {
                    padding: 24px;
                }
                /* 右侧小区域：约 30% 宽，评论区 */
                .l4d2-map-detail-aside {
                    flex: 1;
                    min-width: 0;
                    display: flex;
                    flex-direction: column;
                    overflow: hidden;
                    padding: 20px 12px 12px;
                }
                .l4d2-comments-section {
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    min-height: 0;
                }
                /* 上游地图库未命中：评论区保留，但不显示输入框 */
                #l4d2MapModal #my-plugin-comments.l4d2-comments-disabled [data-comment-form] {
                    display: none;
                }
                /* 上游地图库未命中：分享、反馈、收藏与标记都按地图库 ID 归档，统一隐藏 */
                .l4d2-modal-content.l4d2-upstream-miss #modalShareLinkBtn,
                .l4d2-modal-content.l4d2-upstream-miss #modalFeedbackBtn,
                .l4d2-modal-content.l4d2-upstream-miss .l4d2-map-actions {
                    display: none;
                }
                /* 窄屏回退到单列纵向布局 */
                @media (max-width: 720px) {
                    .l4d2-map-detail-layout { flex-direction: column; }
                    .l4d2-map-detail-main { flex: none; border-right: none; border-bottom: 1px solid #e5e5ea; }
                    .l4d2-map-detail-aside { padding: 12px; overflow-y: auto; }
                    #l4d2MapModal .l4d2-detail-grid { grid-template-columns: 1fr; }
                }

                /* 预览图（圆角 16:9 卡片） */
                .l4d2-modal-image-wrap {
                    position: relative;
                    border-radius: 12px;
                    overflow: hidden;
                    margin-bottom: 18px;
                    background: #f0f0f0;
                    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
                    aspect-ratio: 16 / 9;
                }
                /* 无预览图时的占位（组图详情） */
                .l4d2-modal-image-placeholder {
                    position: absolute;
                    top: 0;
                    right: 0;
                    bottom: 0;
                    left: 0;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background: #f5f5f7;
                    color: #86868b;
                    font-size: 20px;
                    font-weight: 500;
                    letter-spacing: 0.06em;
                }
                #l4d2MapModal .l4d2-modal-title {
                    font-size: 22px;
                    margin-bottom: 4px;
                }
                #l4d2MapModal .l4d2-modal-subtitle {
                    font-size: 15px;
                    margin-bottom: 0;
                }
                .l4d2-modal-codes {
                    font-size: 12px;
                    background: #f5f5f7;
                    padding: 6px 10px;
                    border-radius: 6px;
                    display: inline-block;
                    max-width: 100%;
                    box-sizing: border-box;
                }
                .l4d2-links-header-row {
                    display: flex;
                    align-items: baseline;
                    justify-content: space-between;
                    gap: 10px;
                }
                #l4d2MapModal .l4d2-links-list a[data-direct-download] {
                    border-left: 3px solid #1d1d1f;
                    font-weight: 500;
                }
                /* 组图下载：保留左侧竖条，另外三边虚线 */
                #l4d2MapModal .l4d2-links-list a[data-group-download] {
                    border: 1px dashed #c9c9cf;
                    border-left: 3px solid #1d1d1f;
                    font-weight: 500;
                }
                .l4d2-modal-direct-note {
                    margin: 0 0 6px;
                    font-size: 11px;
                    line-height: 1.4;
                    color: #6e6e73;
                    text-align: center;
                }

                /* 收藏与标记按钮（zhrradiant 风格） */
                .l4d2-mark-btn {
                    display: inline-flex;
                    align-items: center;
                    gap: 5px;
                    padding: 5px 12px;
                    border: 1px solid #e5e5ea;
                    border-radius: 8px;
                    background: #f5f5f7;
                    color: #1d1d1f;
                    font-size: 12px;
                    line-height: 1.4;
                    cursor: pointer;
                    transition: all 0.15s;
                }
                .l4d2-mark-btn:hover {
                    background: #e8e8ed;
                }
                .l4d2-mark-btn.active {
                    background: #e8f0fe;
                    border-color: #0071e3;
                    color: #0071e3;
                    font-weight: 600;
                }
                .l4d2-mark-btn-dot {
                    width: 6px;
                    height: 6px;
                    border-radius: 50%;
                    flex-shrink: 0;
                }

                /* 评论区（右侧栏） */
                .l4d2-comments-title {
                    font-size: 15px;
                    font-weight: 600;
                    color: #1d1d1f;
                    margin: 0 0 12px;
                    padding-top: 0;
                    border-top: none;
                }
                #l4d2MapModal #my-plugin-comments [data-comment-list] {
                    flex: 1;
                    min-height: 120px;
                    overflow-y: auto;
                    padding: 4px 2px;
                    box-sizing: border-box;
                    margin-bottom: 12px;
                }
                /* 空列表时不占据空间，让"暂无评论"占位显示在评论区头部（表单上方） */
                #l4d2MapModal #my-plugin-comments [data-comment-list]:empty {
                    flex: 0;
                    min-height: 0;
                    overflow: visible;
                    padding: 0;
                    margin-bottom: 0;
                }
                #l4d2MapModal #my-plugin-comments [data-comment-empty] {
                    padding: 20px 12px;
                    text-align: center;
                    min-height: 60px;
                    border: 1px dashed #d2d2d7;
                    border-radius: 8px;
                    background: #f5f5f7;
                    margin-bottom: 12px;
                    box-sizing: border-box;
                }
                #l4d2MapModal #my-plugin-comments [data-comment-form] {
                    flex-shrink: 0;
                }

                /* 网格布局 */
                .l4d2-map-grid {
                    display: grid;
                    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                    gap: 30px;
                    padding-bottom: 40px;
                }
                
                /* 卡片设计 - 极简主义 */
                .l4d2-map-card {
                    background: #ffffff;
                    border-radius: 18px;
                    overflow: hidden;
                    cursor: pointer;
                    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
                    position: relative;
                    border: 1px solid transparent; /* 平滑边框过渡 */
                    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
                }
                
                .l4d2-map-card:hover {
                    transform: translateY(-6px);
                    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
                }

                .l4d2-map-card.l4d2-selected {
                    border-color: rgba(0, 113, 227, 0.65);
                    box-shadow: 0 16px 32px rgba(0, 113, 227, 0.12);
                }

                .l4d2-multi-check {
                    position: absolute;
                    left: 12px;
                    top: 12px;
                    width: 22px;
                    height: 22px;
                    border-radius: 999px;
                    background: rgba(255, 255, 255, 0.95);
                    border: 1px solid rgba(0, 0, 0, 0.18);
                    display: none;
                    align-items: center;
                    justify-content: center;
                    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
                    z-index: 3;
                }
                .l4d2-multi-on .l4d2-multi-check {
                    display: inline-flex;
                }
                .l4d2-multi-check::after {
                    content: '';
                    width: 10px;
                    height: 10px;
                    border-radius: 3px;
                    background: transparent;
                }
                .l4d2-map-card.l4d2-selected .l4d2-multi-check {
                    border-color: rgba(0, 113, 227, 0.65);
                }
                .l4d2-map-card.l4d2-selected .l4d2-multi-check::after {
                    background: #0071e3;
                }
                
                /* 图片区域 */
                .l4d2-map-image-container {
                    height: 200px;
                    overflow: hidden;
                    background-color: #fafafa;
                    position: relative;
                }
                
                .l4d2-map-image-container img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    opacity: 0; /* 开始不可见以实现淡入效果 */
                    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.5s ease;
                }
                
                .l4d2-map-image-container img.l4d2-img-loaded {
                    opacity: 1;
                }
                
                .l4d2-map-card:hover .l4d2-map-image-container img {
                    transform: scale(1.08);
                }

                .l4d2-card-tags-bar {
                    position: absolute;
                    left: 0;
                    right: 0;
                    top: 200px;
                    display: flex;
                    align-items: stretch;
                    box-sizing: border-box;
                    z-index: 2;
                }
                .l4d2-card-tags-bar:empty {
                    display: none;
                }
                .l4d2-card-tag-block {
                    flex: 1;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 11px;
                    font-weight: 500;
                    color: #fff;
                    padding: 0;
                    line-height: 1.2;
                    text-align: center;
                }
                
                /* 内容区域 */
                .l4d2-map-content {
                    padding: 24px;
                }

                .l4d2-mark-badge {
                    position: absolute;
                    top: 12px;
                    right: 12px;
                    display: inline-flex;
                    align-items: center;
                    gap: 6px;
                    background: rgba(255,255,255,0.9);
                    border-radius: 999px;
                    padding: 6px 10px;
                    font-size: 12px;
                    color: #1d1d1f;
                    backdrop-filter: blur(6px);
                    border: 1px solid #e5e5ea;
                }

                .l4d2-badge-dot { width: 8px; height: 8px; border-radius: 50%; }
                .l4d2-dot-played { background:#34c759; }
                .l4d2-dot-liked { background:#ff2d55; }
                .l4d2-dot-interested { background:#ff9f0a; }

                .l4d2-rating-badge {
                    position: absolute;
                    right: 12px;
                    bottom: 12px;
                    display: inline-flex;
                    align-items: center;
                    gap: 4px;
                    background: rgba(255,255,255,0.9);
                    border-radius: 999px;
                    padding: 6px 10px;
                    border: 1px solid #e5e5ea;
                    backdrop-filter: blur(6px);
                }

                .l4d2-rating-dot {
                    width: 6px;
                    height: 6px;
                    border-radius: 50%;
                    background: rgba(255, 204, 0, 0.28);
                }

                .l4d2-rating-dot.filled {
                    background: #ffcc00;
                }
                
                .l4d2-map-title {
                    font-size: 17px;
                    font-weight: 600;
                    color: #1d1d1f;
                    margin: 0 0 4px 0;
                    line-height: 1.4;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: block; /* 确保 div 替换为块级显示 */
                }
                
                .l4d2-map-cn-name {
                    font-size: 13px;
                    color: #86868b;
                    font-weight: 400;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }

                /* 模态框样式 */
                .l4d2-modal-backdrop {
                    display: none;
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background: rgba(0, 0, 0, 0.3);
                    backdrop-filter: blur(10px);
                    -webkit-backdrop-filter: blur(10px);
                    z-index: 9999;
                    align-items: center;
                    justify-content: center;
                    opacity: 0;
                    transition: opacity 0.3s ease;
                }
                
                .l4d2-modal-backdrop.active {
                    display: flex;
                    opacity: 1;
                }
                
                .l4d2-modal-content {
                    background: #fff;
                    width: 90%;
                    max-width: 700px;
                    border-radius: 24px;
                    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
                    position: relative;
                    overflow: hidden;
                    transform: scale(0.95);
                    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
                    display: flex;
                    flex-direction: column;
                    max-height: 90vh;
                }
                
                .l4d2-modal-backdrop.active .l4d2-modal-content {
                    transform: scale(1);
                }
                
                #l4d2FavModal {
                    z-index: 10001;
                }

                .l4d2-modal-close {
                    position: absolute;
                    top: 20px;
                    right: 20px;
                    width: 32px;
                    height: 32px;
                    background: rgba(255,255,255,0.8);
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    z-index: 10;
                    transition: background 0.2s;
                    backdrop-filter: blur(4px);
                }
                
                .l4d2-modal-close:hover {
                    background: #fff;
                }
                
                .l4d2-modal-image {
                    display: block;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    background: #f0f0f0;
                }
                
                .l4d2-modal-body {
                    padding: 30px;
                    overflow-y: auto;
                    padding-bottom: 40px;
                }
                
                .l4d2-modal-title {
                    font-size: 28px;
                    font-weight: 700;
                    margin: 0 0 8px 0;
                    color: #1d1d1f;
                    display: block; /* 确保块级显示 */
                }

                .l4d2-modal-title-row {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    gap: 12px;
                }

                .l4d2-modal-rating-summary {
                    display: inline-flex;
                    align-items: center;
                    gap: 4px;
                    flex-shrink: 0;
                }
                
                .l4d2-modal-subtitle {
                    font-size: 18px;
                    color: #86868b;
                    margin-bottom: 24px;
                    font-weight: 500;
                }
                
                .l4d2-detail-grid {
                    display: grid;
                    grid-template-columns: 1fr 2fr;
                    gap: 16px;
                    margin-bottom: 10px;
                }
                
                .l4d2-detail-label {
                    font-size: 12px;
                    text-transform: uppercase;
                    letter-spacing: 0.5px;
                    color: #86868b;
                    margin: 0 0 8px 0;
                    font-weight: 700; /* 模仿标题粗细 */
                    display: block;
                }
                
                .l4d2-detail-item p {
                    font-size: 14px;
                    color: #1d1d1f;
                    margin: 0;
                    font-weight: 500;
                    word-break: break-all;
                }

                .l4d2-links-list {
                    display: flex;
                    flex-direction: column;
                    gap: 8px;
                }

                .l4d2-links-list a {
                    font-size: 13px;
                    color: #1d1d1f;
                    text-decoration: none;
                    word-break: break-all;
                    padding: 8px 12px;
                    background: #f5f5f7;
                    border-radius: 8px;
                    transition: background 0.2s;
                }
                
                .l4d2-links-list a:hover {
                    background: #e8e8ed;
                    text-decoration: none;
                }

                .l4d2-no-results {
                    text-align: center;
                    padding: 40px;
                    color: #86868b;
                    display: none;
                }

                /* 收藏夹视图样式 */
                .l4d2-folder-card {
                    background: #f5f5f7;
                    border-radius: 18px;
                    padding: 30px;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    text-align: center;
                    min-height: 200px;
                    border: 2px solid transparent;
                    position: relative;
                }
                .l4d2-folder-card:hover {
                    background: #fff;
                    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
                    border-color: #0071e3;
                    transform: translateY(-4px);
                }
                .l4d2-folder-icon {
                    width: 64px;
                    height: 64px;
                    color: #0071e3;
                    margin-bottom: 16px;
                }
                .l4d2-folder-name {
                    font-size: 18px;
                    font-weight: 600;
                    color: #1d1d1f;
                    margin-bottom: 6px;
                    word-break: break-all;
                }
                .l4d2-folder-count {
                    font-size: 14px;
                    color: #86868b;
                }
                .l4d2-folder-badge {
                    position: absolute;
                    left: 6px;
                    top: 50%;
                    transform: translateY(-50%);
                    background: #e8e8ed;
                    padding: 4px 4px 4px 12px;
                    border-radius: 99px;
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    z-index: 10;
                    font-size: 14px;
                    font-weight: 500;
                    color: #1d1d1f;
                    max-width: 200px;
                }
                .l4d2-folder-badge-name {
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
                .l4d2-folder-badge button {
                    width: 24px;
                    height: 24px;
                    border-radius: 50%;
                    border: none;
                    background: #fff;
                    color: #86868b;
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 16px;
                    line-height: 1;
                    flex-shrink: 0;
                }
                .l4d2-add-folder-card {
                    border: 2px dashed #d2d2d7;
                    background: transparent;
                }
                .l4d2-add-folder-card:hover {
                    border-color: #0071e3;
                    background: rgba(0,113,227,0.04);
                    box-shadow: none;
                }

                /* 顶部提示（Toast） */
                .l4d2-toast-container {
                    position: fixed;
                    top: 24px;
                    left: 50%;
                    transform: translateX(-50%);
                    z-index: 11000;
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                    pointer-events: none;
                }
                .l4d2-toast {
                    background: rgba(0, 0, 0, 0.8);
                    color: #fff;
                    padding: 10px 20px;
                    border-radius: 50px;
                    font-size: 14px;
                    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
                    backdrop-filter: blur(8px);
                    opacity: 0;
                    transform: translateY(-20px);
                    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
                    display: flex;
                    align-items: center;
                    gap: 8px;
                }
                .l4d2-toast.active {
                    opacity: 1;
                    transform: translateY(0);
                }

                /* 分页样式 */
                .l4d2-pagination {
                    display: flex;
                    justify-content: center;
                    gap: 8px;
                    margin-top: 40px;
                    flex-wrap: wrap;
                    padding-bottom: 20px;
                }
                .l4d2-page-btn {
                    padding: 8px 14px;
                    background: #f5f5f7;
                    border-radius: 8px;
                    cursor: pointer;
                    user-select: none;
                    transition: all 0.2s;
                    color: #1d1d1f;
                    border: none;
                    font-size: 14px;
                }
                .l4d2-page-btn:hover {
                    background: #e8e8ed;
                }
                .l4d2-page-btn.active {
                    background: #0071e3;
                    color: white;
                }
                .l4d2-page-btn.disabled {
                    opacity: 0.5;
                    cursor: not-allowed;
                }
                
                #l4d2PageSelect {
                    /* margin-left: 8px; 已移除 */
                    padding: 8px 24px 8px 12px;
                    border-radius: 8px;
                    border: 1px solid transparent;
                    background: #e8e8ed;
                    font-size: 13px;
                    color: #1d1d1f;
                    cursor: pointer;
                    outline: none;
                    appearance: none;
                    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231d1d1f' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
                    background-repeat: no-repeat;
                    background-position: right 8px center;
                }

/* 工具栏布局 */
                .l4d2-toolbar {
                    position: relative;
                    margin-bottom: 40px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }

                .l4d2-multi-bar {
                    position: absolute;
                    left: 50%;
                    top: 100%;
                    transform: translateX(-50%);
                    margin-top: 10px;
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    padding: 10px 12px;
                    border-radius: 14px;
                    background: rgba(245, 245, 247, 0.95);
                    border: 1px solid rgba(0, 0, 0, 0.08);
                    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
                    z-index: 5;
                }
                .l4d2-multi-actions {
                    display: flex;
                    gap: 8px;
                    flex-wrap: wrap;
                }
                .l4d2-multi-count {
                    font-size: 13px;
                    color: #1d1d1f;
                    font-weight: 600;
                    white-space: nowrap;
                }
                
                .l4d2-search-container {
                    margin-bottom: 0 !important; /* 覆盖先前的外边距 */
                    width: 100%;
                }

                .l4d2-history-btn {
                    flex: 0 0 auto;
                    width: 38px;
                    height: 38px;
                    border: none;
                    border-radius: 10px;
                    background: #f5f5f7;
                    color: #1d1d1f;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    transition: all 0.2s ease;
                    box-shadow: none;
                    padding: 0;
                }

                .l4d2-history-btn:hover {
                    background: #ffffff;
                    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
                    color: #0071e3;
                }

                .l4d2-history-btn i {
                    font-size: 15px;
                    line-height: 1;
                }

                .l4d2-pack-history-list {
                    display: flex;
                    flex-direction: column;
                    gap: 12px;
                    max-height: min(60vh, 520px);
                    overflow: auto;
                    padding-right: 4px;
                }

                .l4d2-pack-history-empty,
                .l4d2-pack-history-loading,
                .l4d2-pack-history-error {
                    padding: 28px 12px;
                    text-align: center;
                    color: #86868b;
                    font-size: 14px;
                }

                .l4d2-pack-history-error {
                    color: #ff3b30;
                }

                .l4d2-profile-name {
                    font-size: 20px;
                    font-weight: 700;
                    color: #1d1d1f;
                    word-break: break-word;
                }
                .l4d2-profile-identity {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    min-width: 0;
                }
                .l4d2-profile-avatar {
                    width: 56px;
                    height: 56px;
                    border-radius: 50%;
                    overflow: hidden;
                    flex-shrink: 0;
                    background: #f5f5f7;
                }
                .l4d2-profile-avatar img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    display: block;
                }
                .l4d2-profile-stats {
                    display: grid;
                    grid-template-columns: repeat(3, 1fr);
                    gap: 10px;
                }
                .l4d2-profile-stat {
                    border: 1px solid #e5e5ea;
                    border-radius: 12px;
                    background: #fbfbfc;
                    padding: 12px;
                    min-width: 0;
                }
                .l4d2-profile-stat-name {
                    font-size: 12px;
                    color: #86868b;
                    margin-bottom: 4px;
                }
                .l4d2-profile-stat-value {
                    font-size: 18px;
                    font-weight: 700;
                    color: #1d1d1f;
                }
                .l4d2-profile-tabs {
                    display: inline-flex;
                    align-self: flex-start;
                    margin: 18px 0 10px;
                    padding: 3px;
                    gap: 2px;
                    background: #f5f5f7;
                    border-radius: 10px;
                }
                .l4d2-profile-tab {
                    border: none;
                    background: transparent;
                    padding: 6px 14px;
                    border-radius: 8px;
                    font-size: 13px;
                    line-height: 1.4;
                    color: #6e6e73;
                    cursor: pointer;
                    white-space: nowrap;
                }
                .l4d2-profile-tab.active {
                    background: #ffffff;
                    color: #1d1d1f;
                    font-weight: 600;
                    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
                }
                .l4d2-profile-list {
                    display: flex;
                    flex-direction: column;
                    gap: 10px;
                    max-height: min(42vh, 320px);
                    overflow: auto;
                    padding-right: 4px;
                }
                .l4d2-profile-empty,
                .l4d2-profile-loading {
                    padding: 18px 12px;
                    text-align: center;
                    color: #86868b;
                    font-size: 13px;
                    border: 1px dashed #d2d2d7;
                    border-radius: 10px;
                    background: #f5f5f7;
                }
                .l4d2-profile-item {
                    flex: 0 0 auto;
                    border: 1px solid #e5e5ea;
                    border-radius: 12px;
                    background: #fbfbfc;
                    padding: 12px;
                    min-width: 0;
                }
                .l4d2-profile-item-head {
                    display: flex;
                    align-items: baseline;
                    justify-content: space-between;
                    gap: 10px;
                    margin-bottom: 6px;
                }
                .l4d2-profile-item-map {
                    font-size: 12px;
                    font-weight: 600;
                    color: #0071e3;
                    word-break: break-word;
                }
                .l4d2-profile-item-time {
                    font-size: 11px;
                    color: #9ca3af;
                    flex-shrink: 0;
                }
                .l4d2-profile-item-content {
                    font-size: 13px;
                    color: #374151;
                    white-space: pre-wrap;
                    word-break: break-word;
                }
                .l4d2-profile-item-meta {
                    display: flex;
                    align-items: center;
                    gap: 6px;
                    margin-top: 8px;
                    font-size: 12px;
                    color: #6b7280;
                }
                .l4d2-profile-reply-origin {
                    margin-top: 8px;
                    padding-top: 8px;
                    border-top: 1px dashed #e5e5ea;
                    font-size: 12px;
                    color: #86868b;
                    word-break: break-word;
                }

                .l4d2-pack-history-item {
                    flex: 0 0 auto; /* 禁止 flex 压缩：内容超高时溢出容器，触发滚动条 */
                    border: 1px solid #e5e5ea;
                    border-radius: 14px;
                    background: #fbfbfc;
                    overflow: hidden;
                }

                .l4d2-pack-history-head {
                    width: 100%;
                    border: none;
                    background: transparent;
                    padding: 14px 16px;
                    display: flex;
                    align-items: flex-start;
                    justify-content: space-between;
                    gap: 12px;
                    cursor: pointer;
                    text-align: left;
                }

                .l4d2-pack-history-head:hover {
                    background: #f5f5f7;
                }

                .l4d2-pack-history-meta {
                    min-width: 0;
                    flex: 1;
                }

                .l4d2-pack-history-time {
                    font-size: 14px;
                    font-weight: 600;
                    color: #1d1d1f;
                    margin-bottom: 6px;
                }

                .l4d2-pack-history-summary {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 6px;
                }

                .l4d2-pack-history-badge {
                    display: inline-flex;
                    align-items: center;
                    padding: 2px 8px;
                    border-radius: 999px;
                    font-size: 12px;
                    font-weight: 600;
                    background: #e8e8ed;
                    color: #1d1d1f;
                }

                .l4d2-pack-history-badge.added,
                .l4d2-pack-history-badge.updated,
                .l4d2-pack-history-badge.removed {
                    background: transparent;
                    color: #86868b;
                    padding: 0;
                }

                .l4d2-pack-history-arrow {
                    color: #86868b;
                    font-size: 12px;
                    margin-top: 4px;
                    flex: 0 0 auto;
                }

                .l4d2-pack-history-body {
                    display: none;
                    border-top: 1px solid #ececf0;
                    padding: 12px 16px 14px;
                    background: #fff;
                }

                .l4d2-pack-history-item.open .l4d2-pack-history-body {
                    display: block;
                }

                .l4d2-pack-history-item.open .l4d2-pack-history-arrow {
                    transform: rotate(180deg);
                }

                .l4d2-pack-history-section {
                    margin-bottom: 12px;
                }

                .l4d2-pack-history-section:last-child {
                    margin-bottom: 0;
                }

                .l4d2-pack-history-map {
                    padding: 10px 12px;
                    border-radius: 10px;
                    background: #f5f5f7;
                    margin-bottom: 8px;
                }

                .l4d2-pack-history-map:last-child {
                    margin-bottom: 0;
                }

                .l4d2-pack-history-map-name {
                    font-size: 14px;
                    font-weight: 600;
                    color: #1d1d1f;
                    margin-bottom: 4px;
                    word-break: break-word;
                }

                .l4d2-pack-history-map-line {
                    font-size: 12px;
                    color: #6e6e73;
                    line-height: 1.5;
                    word-break: break-word;
                }

                .l4d2-toolbar-left {
                    position: absolute;
                    left: 0;
                    top: 50%;
                    transform: translateY(-50%);
                    z-index: 5;
                    display: flex;
                    align-items: center;
                    gap: 8px;
                }

                .l4d2-sort-menu {
                    position: absolute;
                    left: 0;
                    top: calc(100% + 8px);
                    background: #fff;
                    border-radius: 12px;
                    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
                    padding: 10px;
                    display: none;
                    min-width: 160px;
                    z-index: 10000;
                }

                .l4d2-sort-menu.active { display: block; }

                .l4d2-sort-menu button { 
                    width: 100%;
                    text-align: left;
                    padding: 8px 10px;
                    border: none;
                    background: #f5f5f7;
                    border-radius: 8px;
                    margin-bottom: 6px;
                    cursor: pointer;
                    color: #1d1d1f;
                    font-size: 14px;
                }

                .l4d2-sort-menu button:last-child { margin-bottom: 0; }
                .l4d2-sort-menu button:hover { background: #e8e8ed; }

                .l4d2-link-actions {
                    display: flex;
                    align-items: center;
                    justify-content: flex-end;
                    gap: 8px;
                    flex-wrap: wrap;
                }

                .l4d2-link-action-btn {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    gap: 6px;
                    padding: 3px 8px;
                    border: 1px solid #e5e5ea;
                    border-radius: 8px;
                    background: #f5f5f7;
                    color: #1d1d1f;
                    cursor: pointer;
                    font-size: 11px;
                    line-height: 1.1;
                    white-space: nowrap;
                    transition: all 0.2s ease;
                }

                .l4d2-link-action-btn:hover {
                    background: #e8e8ed;
                }

                .l4d2-link-action-btn.is-warning {
                    color: #1d1d1f;
                }

                .l4d2-link-action-btn i {
                    font-size: 11px;
                }

                .l4d2-feedback-current {
                    padding: 10px 14px;
                    border-radius: 12px;
                    background: #f5f5f7;
                    color: #1d1d1f;
                    font-size: 13px;
                    line-height: 1.6;
                    text-align: center;
                }

                .l4d2-feedback-select {
                    width: 100%;
                    padding: 12px 14px;
                    border: 1px solid #e5e5ea;
                    border-radius: 12px;
                    background: #f5f5f7;
                    color: #1d1d1f;
                    font-size: 14px;
                    outline: none;
                    box-sizing: border-box;
                }

                .l4d2-feedback-select:focus {
                    background: #fff;
                    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
                }

                .l4d2-feedback-panel {
                    position: relative;
                    min-height: 168px;
                    border: 1px solid #e5e5ea;
                    border-radius: 16px;
                    background: #f9f9fb;
                    overflow: hidden;
                }

                .l4d2-feedback-note,
                .l4d2-feedback-input-wrap {
                    min-height: 168px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    padding: 18px;
                    box-sizing: border-box;
                }

                .l4d2-feedback-note {
                    font-size: 14px;
                    line-height: 1.9;
                    color: #6e6e73;
                    text-align: center;
                }

                .l4d2-feedback-input-wrap {
                    position: relative;
                }

                .l4d2-feedback-textarea {
                    width: 100%;
                    min-height: 132px;
                    border: none;
                    background: transparent;
                    resize: none;
                    outline: none;
                    color: #1d1d1f;
                    font-size: 14px;
                    line-height: 1.9;
                    text-align: center;
                    padding: 0;
                    box-sizing: border-box;
                }

                .l4d2-feedback-input-placeholder {
                    position: absolute;
                    inset: 18px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: #8e8e93;
                    font-size: 14px;
                    line-height: 1.9;
                    text-align: center;
                    pointer-events: none;
                    transition: opacity 0.2s ease;
                }

                .l4d2-feedback-input-placeholder.hidden {
                    opacity: 0;
                }

                .l4d2-feedback-submit {
                    width: 100%;
                    padding: 11px 16px;
                    border: none;
                    border-radius: 8px;
                    background: #1d1d1f;
                    color: #fff;
                    font-size: 14px;
                    font-weight: 600;
                    cursor: pointer;
                    transition: opacity 0.2s ease;
                }

                .l4d2-feedback-submit:disabled {
                    opacity: 0.65;
                    cursor: not-allowed;
                }

                .l4d2-feedback-success-text {
                    padding: 24px 12px 8px;
                    color: #1d1d1f;
                    font-size: 16px;
                    line-height: 1.8;
                    text-align: center;
                }

                .l4d2-toolbar-right {
                    position: absolute;
                    right: 0;
                    top: 50%;
                    transform: translateY(-50%);
                    z-index: 5;
                    display: flex;
                    align-items: center;
                    gap: 8px;
                }
                
                /* 响应式调整 */
                @media (max-width: 900px) {
                    .l4d2-toolbar {
                        flex-direction: column;
                        gap: 16px;
                    }
                    .l4d2-toolbar-left {
                        position: static;
                        transform: none;
                        width: 100%;
                        justify-content: flex-start;
                    }
                    .l4d2-toolbar-right {
                        position: static;
                        transform: none;
                        width: 100%;
                        display: flex;
                        justify-content: flex-end;
                        align-items: center;
                        gap: 8px;
                    }
                }

.l4d2-filter-item {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        padding: 8px 10px;
                        border-radius: 8px;
                        cursor: pointer;
                        font-size: 14px;
                        color: #1d1d1f;
                        transition: background 0.2s;
                    }
                    .l4d2-filter-item:hover { background: #f5f5f7; }
                    .l4d2-filter-item input[type="checkbox"], .l4d2-filter-item input[type="radio"] {
                        width: 16px; height: 16px; margin: 0; accent-color: #0071e3;
                    }