/* 交流群单页 /cms/p/jiaoliu */
.community-page .cms-static-page__wrap {
    max-width: none;
}

.community-page__intro {
    max-width: 980px;
    margin: 0 auto 20px;
    padding: 16px 18px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.community-groups-wrap {
    max-width: 1180px;
    margin: 0 auto 40px;
    padding: 12px 14px 14px;
    background: linear-gradient(160deg, #f8fafc 0%, #fff 55%, #f0f7ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.community-groups__grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0 0 4px;
    list-style: none;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.community-groups__cell {
    min-width: 0;
}

.community-groups__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 118px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: inherit;
    text-align: left;
    text-decoration: none;
    cursor: default;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

button.community-groups__card {
    font: inherit;
    appearance: none;
}

a.community-groups__card,
button.community-groups__card.js-community-qr {
    cursor: pointer;
}

a.community-groups__card:hover,
a.community-groups__card:focus,
button.community-groups__card.js-community-qr:hover,
button.community-groups__card.js-community-qr:focus {
    border-color: #93c5fd;
    box-shadow: 0 6px 18px rgba(25, 73, 241, 0.1);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
    outline: none;
}

.community-groups__card--qq {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.community-groups__card--wechat {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #fff 0%, #f6fff9 100%);
}

.community-groups__badge {
    align-self: flex-start;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.45;
    border-radius: 999px;
    white-space: nowrap;
}

.community-groups__badge--qq {
    color: #1d4ed8;
    background: #dbeafe;
}

.community-groups__badge--wechat {
    color: #15803d;
    background: #dcfce7;
}

.community-groups__row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.community-groups__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.community-groups__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.community-groups__label {
    font-size: 11px;
    line-height: 1.35;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.community-groups__no {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-groups__card--qq .community-groups__no {
    color: #1d4ed8;
}

.community-groups__card--wechat .community-groups__no {
    color: #16a34a;
}

.community-groups__no--hint {
    font-size: 13px;
}

a.community-groups__card:hover .community-groups__no,
button.community-groups__card.js-community-qr:hover .community-groups__no {
    color: #1949f1;
}

.community-groups__card--wechat:hover .community-groups__no {
    color: #15803d;
}

.community-groups__intro {
    margin-top: auto;
    padding-top: 6px;
    font-size: 10px;
    line-height: 1.35;
    color: #94a3b8;
    border-top: 1px dashed #e2e8f0;
}

.community-groups__empty {
    max-width: 560px;
    margin: 24px auto 48px;
    padding: 36px 24px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

.community-groups__empty .fa {
    display: block;
    margin-bottom: 10px;
    font-size: 36px;
    color: #94a3b8;
}

@media (max-width: 1199px) {
    .community-groups__grid {
        grid-auto-columns: minmax(132px, 1fr);
    }
}

@media (max-width: 767px) {
    .community-groups__grid {
        grid-auto-columns: minmax(120px, 1fr);
        gap: 6px;
    }

    .community-groups__card {
        min-height: 110px;
        padding: 8px;
    }

    .community-groups__no {
        font-size: 13px;
    }
}
