.ghxi-wl__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.ghxi-wl__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 10px 6px;
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.ghxi-wl__item:hover {
    background-color: var(--bg-hover);
}

.ghxi-wl__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: none;
}

.ghxi-wl__icon--text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--theme-color);
    background: var(--bg-hover);
}

.ghxi-wl__title,
.ghxi-wl__desc {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ghxi-wl__title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.2s;
}

.ghxi-wl__item:hover .ghxi-wl__title {
    color: var(--theme-color);
}

.ghxi-wl__desc {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .ghxi-wl__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ghxi-wl__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }
}

/* 备注弹窗 */
.ghxi-wl-modal-open {
    overflow: hidden;
}

.ghxi-wl-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.45);
}

.ghxi-wl-modal[hidden] {
    display: none;
}

.ghxi-wl-modal__dialog {
    display: flex;
    flex-direction: column;
    width: 480px;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.ghxi-wl-modal__head {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-primary);
}

.ghxi-wl-modal__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.ghxi-wl-modal__close {
    padding: 0 4px;
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.ghxi-wl-modal__body {
    margin: 16px 20px;
    padding: 12px;
    overflow-y: auto;
    border-radius: 4px;
    background: var(--bg-hover);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-primary);
    word-break: break-word;
    user-select: text;
}

.ghxi-wl-modal__body p,
.ghxi-wl-modal__body ul,
.ghxi-wl-modal__body ol {
    margin: 0.5em 0;
}

.ghxi-wl-modal__body ul,
.ghxi-wl-modal__body ol {
    padding-left: 1.5em;
}

.ghxi-wl-modal__body a {
    color: var(--theme-color);
    text-decoration: underline;
}

.ghxi-wl-modal__body img {
    max-width: 100%;
    height: auto;
}

.ghxi-wl-modal__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 16px;
}

.ghxi-wl-modal__spacer {
    flex: 1;
}

.ghxi-wl-modal__btn {
    padding: 6px 16px;
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    background: var(--bg-card);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}

.ghxi-wl-modal__btn:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.ghxi-wl-modal__btn--primary {
    border-color: var(--theme-color);
    background: var(--theme-color);
    color: #fff;
}

.ghxi-wl-modal__btn--primary:hover {
    color: #fff;
    opacity: 0.9;
}

.ghxi-wl-modal__btn[hidden] {
    display: none;
}
