.channels-page {
    background: #f2f4f3;
}

.channels-hero {
    padding: 42px 0 32px;
    border-bottom: 1px solid #d9deda;
    background: #ffffff;
}

.channels-hero-layout {
    display: block;
}

.channels-kicker,
.channel-index,
.channel-handle,
.channel-verified {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.channels-kicker {
    margin-bottom: 13px;
    color: #7b5b96;
    font-size: 10px;
}

.channels-hero h1 {
    margin: 0;
    color: #171b19;
    font-size: 30px;
    font-weight: 650;
    line-height: 1.2;
}

.channels-directory {
    padding: 34px 0 88px;
}

.channel-showcase {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: 560px;
    margin-top: 0;
    border: 1px solid #cbd1ce;
    border-top: 2px solid #202522;
    background: #fff;
}

.channel-profile {
    display: flex;
    min-width: 0;
    padding: 34px 32px 30px;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #d8ddda;
    text-align: center;
}

.channel-index {
    align-self: stretch;
    color: #8b9490;
    font-size: 9px;
    text-align: left;
}

.channel-avatar {
    width: 122px;
    height: 122px;
    margin-top: 34px;
    padding: 4px;
    border: 1px solid #d4d9d6;
    border-radius: 50%;
    background: #fff;
}

.channel-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.channel-profile-heading {
    margin-top: 22px;
}

.channel-platform {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: #737c78;
    font-size: 11px;
}

.channel-platform img {
    width: 18px;
    height: 18px;
}

.channel-profile h3 {
    margin: 0;
    color: #171b19;
    font-size: 25px;
    font-weight: 650;
}

.channel-handle {
    display: block;
    margin-top: 6px;
    color: #818985;
    font-size: 10px;
}

.channel-verified {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: #5f6864;
    font-size: 9px;
}

.channel-verified::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #69b88c;
    box-shadow: 0 0 0 4px rgba(105,184,140,.12);
}

.channel-description {
    max-width: 250px;
    margin-top: 16px;
    color: #606a65;
    font-size: 13px;
    line-height: 1.8;
}

.channel-profile-footer {
    display: flex;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid #e0e4e2;
}

.channel-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid #919b96;
    color: #242a27;
    font-size: 12px;
    transition: color .2s ease, border-color .2s ease;
}

.channel-action:hover {
    color: #805b9f;
    border-bottom-color: #805b9f;
}

.channel-action svg {
    width: 15px;
    height: 15px;
}

.channel-qr {
    margin: 22px 0 0;
}

.channel-qr img {
    display: block;
    width: 92px;
    aspect-ratio: 1;
}

.channel-qr figcaption {
    margin-top: 10px;
    color: #7b8580;
    font-size: 10px;
    text-align: center;
}

.channel-webview {
    display: flex;
    min-width: 0;
    min-height: 560px;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

.channel-window-header {
    position: relative;
    display: flex;
    height: 42px;
    padding: 0 14px;
    flex: 0 0 auto;
    align-items: center;
    border-bottom: 1px solid #d9dddb;
    background: #f4f5f4;
}

.channel-window-controls {
    display: flex;
    gap: 7px;
}

.channel-window-dot {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 50%;
}

.channel-window-close {
    background: #ff5f57;
}

.channel-window-minimize {
    background: #febc2e;
}

.channel-window-maximize {
    background: #28c840;
}

.channel-window-title {
    position: absolute;
    left: 50%;
    max-width: calc(100% - 150px);
    overflow: hidden;
    transform: translateX(-50%);
    color: #5d6561;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-window-open {
    display: grid;
    width: 28px;
    height: 28px;
    margin-left: auto;
    place-items: center;
    color: #6b7470;
    transition: color .2s ease, background-color .2s ease;
}

.channel-window-open:hover {
    color: #171b19;
    background: #e6e9e7;
}

.channel-window-open svg {
    width: 14px;
    height: 14px;
}

.channel-webview iframe {
    display: block;
    width: 100%;
    min-height: 0;
    flex: 1;
    border: 0;
    background: #fff;
}

.platform-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.platform-card {
    position: relative;
    display: flex;
    min-height: 304px;
    padding: 26px;
    flex-direction: column;
    border: 1px solid #cbd1ce;
    border-top: 2px solid #202522;
    background: #fff;
    transition: transform .24s ease, border-color .24s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: #939c97;
}

.platform-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8b9490;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 9px;
}

.platform-card-topline img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.platform-card h3 {
    margin-top: 26px;
    color: #171b19;
    font-size: 26px;
    font-weight: 650;
}

.platform-account {
    margin-top: 8px;
    color: #303632;
    font-size: 13px;
    font-weight: 600;
}

.platform-handle {
    margin-top: 5px;
    color: #8a928e;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 9px;
}

.platform-description {
    max-width: 280px;
    margin-top: 22px;
    color: #626b67;
    font-size: 12px;
    line-height: 1.8;
}

.platform-card-footer {
    display: flex;
    margin-top: auto;
    padding-top: 22px;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #e0e4e2;
}

.platform-card-footer a {
    display: inline-flex;
    padding-bottom: 6px;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #929b97;
    color: #242a27;
    font-size: 11px;
    transition: color .2s ease, border-color .2s ease;
}

.platform-card-footer a:hover {
    color: #805b9f;
    border-bottom-color: #805b9f;
}

.platform-card-footer > img {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
}

.channels-page + .site-footer {
    margin-top: 0;
}

.community-heading {
    padding: 42px 0 34px;
    border-top: 1px solid #d9deda;
    border-bottom: 1px solid #d9deda;
    background: #fff;
}

.community-kicker {
    margin-bottom: 13px;
    color: #7b5b96;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 10px;
}

.community-heading h2 {
    margin: 0;
    color: #171b19;
    font-size: 30px;
    font-weight: 650;
    line-height: 1.2;
}

.douyin-group-section {
    padding: 32px 0 0;
    background: #f2f4f3;
}

.community-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.community-entry-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 520px;
    flex-direction: column;
    border: 1px solid #cbd1ce;
    border-top: 2px solid #202522;
    background: #fff;
    transition: transform .24s ease, border-color .24s ease;
}

.community-entry-card:hover {
    transform: translateY(-4px);
    border-color: #939c97;
}

.qq-channel-card {
    border-top-color: #805b9f;
}

.douyin-group-content,
.qq-channel-content,
.telegram-group-content {
    display: flex;
    min-width: 0;
    padding: 26px;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.douyin-group-kicker,
.qq-channel-kicker,
.telegram-group-kicker {
    margin: 0;
    color: #8b9490;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 9px;
}

.douyin-group-content h3,
.qq-channel-content h3,
.telegram-group-content h3 {
    margin: 25px 0 0;
    color: #171b19;
    font-size: 22px;
    font-weight: 650;
    line-height: 1.2;
}

.douyin-group-name,
.qq-channel-name,
.telegram-group-name {
    margin: 11px 0 0;
    color: #5d6762;
    font-size: 13px;
}

.douyin-group-number,
.qq-channel-number,
.telegram-group-number {
    display: flex;
    width: 100%;
    margin: 24px 0 0;
    padding: 13px 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid #e0e4e2;
    border-bottom: 1px solid #e0e4e2;
}

.douyin-group-number span,
.qq-channel-number span,
.telegram-group-number span {
    color: #747d79;
    font-size: 11px;
}

.douyin-group-number strong,
.qq-channel-number strong,
.telegram-group-number strong {
    color: #171b19;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.douyin-group-action,
.qq-channel-action,
.telegram-group-action {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    margin-top: 16px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #202522;
    background: #202522;
    color: #fff;
    font-size: 11px;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.douyin-group-action:hover,
.qq-channel-action:hover,
.telegram-group-action:hover {
    border-color: #805b9f;
    background: #805b9f;
    color: #fff;
}

.qq-channel-action {
    border-color: #805b9f;
    background: #805b9f;
}

.qq-channel-action:hover {
    border-color: #68477f;
    background: #68477f;
}

.douyin-group-action:focus-visible,
.qq-channel-action:focus-visible,
.telegram-group-action:focus-visible {
    outline: 2px solid #805b9f;
    outline-offset: 4px;
}

.douyin-group-action svg,
.qq-channel-action svg,
.telegram-group-action svg {
    width: 15px;
    height: 15px;
}

.douyin-group-qr,
.qq-channel-qr,
.telegram-group-qr {
    display: flex;
    margin: 0;
    padding: 20px 26px 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e0e4e2;
    background: #f7f8f7;
}

.community-qr-frame {
    position: relative;
    width: min(220px, 100%);
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #d7dcda;
    background: #fff;
}

.community-qr-frame img {
    position: absolute;
    display: block;
    max-width: none;
    height: auto;
    transition: transform .28s ease;
}

.community-entry-card:hover .community-qr-frame img {
    transform: scale(1.018);
}

.douyin-group-qr .community-qr-frame img {
    top: -20px;
    left: -55px;
    width: 330px;
}

.qq-channel-qr .community-qr-frame img {
    top: -92px;
    left: 0;
    width: 220px;
}

.telegram-group-qr .community-qr-frame img {
    top: -58px;
    left: 0;
    width: 220px;
}

.douyin-group-qr figcaption,
.qq-channel-qr figcaption,
.telegram-group-qr figcaption {
    margin-top: 12px;
    color: #7b8580;
    font-size: 10px;
    text-align: center;
}

.qq-groups-section {
    padding: 34px 0 104px;
    background: #f2f4f3;
}

.qq-groups-toolbar {
    display: flex;
    min-height: 38px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid #cbd1ce;
}

.qq-groups-updated {
    margin: 0 0 12px;
    color: #747d79;
    font-size: 11px;
}

.qq-groups-updated {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 9px;
    text-align: right;
}

.qq-groups-controls {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.qq-filter-segment {
    display: inline-flex;
    border: 1px solid #cbd1ce;
    background: #fff;
}

.qq-filter-button {
    min-height: 34px;
    padding: 0 15px;
    border: 0;
    border-right: 1px solid #d9deda;
    background: transparent;
    color: #68716d;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

.qq-filter-button:last-child {
    border-right: 0;
}

.qq-filter-button:hover {
    color: #171b19;
    background: #f4f6f5;
}

.qq-filter-button.is-active {
    background: #202522;
    color: #fff;
}

.qq-filter-button:focus-visible,
.qq-sort-control select:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #805b9f;
    outline-offset: 2px;
}

.qq-sort-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #747d79;
    font-size: 10px;
}

.qq-sort-control select {
    height: 34px;
    min-width: 142px;
    padding: 0 30px 0 11px;
    border: 1px solid #cbd1ce;
    border-radius: 0;
    background: #fff;
    color: #2b312e;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.qq-groups-grid,
.qq-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.qq-group-card {
    display: flex;
    min-width: 0;
    min-height: 224px;
    padding: 24px;
    flex-direction: column;
    border: 1px solid #cbd1ce;
    background: #fff;
}

.qq-group-card-head {
    display: flex;
    align-items: flex-start;
}

.qq-group-index {
    display: block;
    margin-bottom: 13px;
    color: #8b9490;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 8px;
}

.qq-group-card h3 {
    min-width: 0;
    margin: 0;
    color: #171b19;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.qq-group-id {
    display: flex;
    margin-top: 18px;
    padding: 14px 0 15px;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid #e0e4e2;
    border-bottom: 1px solid #e0e4e2;
}

.qq-group-id span {
    flex: 0 0 auto;
    color: #747d79;
    font-size: 10px;
}

.qq-group-id strong {
    min-width: 0;
    color: #171b19;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 23px;
    font-weight: 600;
    line-height: 1;
    overflow-wrap: anywhere;
    text-align: right;
}

.qq-group-id-value {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.qq-copy-button {
    position: relative;
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    padding: 0;
    place-items: center;
    border: 1px solid #cbd1ce;
    border-radius: 3px;
    background: #fff;
    color: #68716d;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.qq-copy-button:hover {
    border-color: #858e89;
    color: #171b19;
    background: #f4f6f5;
}

.qq-copy-button:focus-visible {
    outline: 2px solid #805b9f;
    outline-offset: 2px;
}

.qq-copy-button.is-copied {
    border-color: #74a68b;
    color: #2f7c55;
    background: #f2f8f4;
}

.qq-copy-button.is-error {
    border-color: #bd6c6c;
    color: #a34242;
    background: #fbf3f3;
}

.qq-copy-button svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.8;
}

.qq-copy-feedback {
    position: absolute;
    right: -1px;
    bottom: calc(100% + 8px);
    z-index: 2;
    width: max-content;
    padding: 5px 7px;
    pointer-events: none;
    border: 1px solid #cbd1ce;
    background: #fff;
    color: #303632;
    font-size: 9px;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .18s ease, transform .18s ease;
}

.qq-copy-announcement {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.qq-copy-button.is-copied .qq-copy-feedback,
.qq-copy-button.is-error .qq-copy-feedback {
    opacity: 1;
    transform: translateY(0);
}

.qq-group-capacity {
    display: flex;
    margin-top: 18px;
    padding-top: 16px;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid #e0e4e2;
}

.qq-group-capacity-label {
    color: #87908c;
    font-size: 10px;
}

.qq-group-capacity-value {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.qq-group-capacity-value strong {
    color: #1b201d;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

.qq-group-capacity-value span {
    color: #747d79;
    font-size: 12px;
}

.qq-group-card-foot {
    display: flex;
    min-height: 22px;
    margin-top: 14px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.qq-group-stale {
    padding: 4px 6px;
    border: 1px solid #c9a060;
    color: #8c621f;
    font-size: 9px;
}

.qq-groups-state {
    min-height: 180px;
}

.qq-state-panel {
    display: flex;
    min-height: 210px;
    padding: 38px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid #cbd1ce;
    background: #fff;
}

.qq-state-panel h3 {
    margin: 0;
    color: #171b19;
    font-size: 20px;
    font-weight: 650;
}

.qq-state-panel p {
    max-width: 560px;
    margin: 10px 0 0;
    color: #717a76;
    font-size: 12px;
    line-height: 1.7;
}

.qq-state-panel-compact {
    min-height: 150px;
}

.qq-retry-button {
    margin-top: 20px;
    padding: 9px 16px;
    border: 1px solid #6f7874;
    border-radius: 3px;
    background: transparent;
    color: #202522;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.qq-retry-button:hover {
    background: #202522;
    color: #fff;
}

.qq-skeleton-card {
    min-height: 224px;
    padding: 24px;
    border: 1px solid #d4d9d6;
    background: #fff;
}

.qq-skeleton-card span {
    display: block;
    height: 10px;
    margin-bottom: 18px;
    background: #e1e5e3;
    animation: qq-skeleton-pulse 1.4s ease-in-out infinite;
}

.qq-skeleton-card span:nth-child(1) {
    width: 28%;
}

.qq-skeleton-card span:nth-child(2) {
    width: 72%;
    height: 19px;
}

.qq-skeleton-card span:nth-child(3) {
    width: 44%;
    height: 28px;
    margin-top: 34px;
}

.qq-skeleton-card span:nth-child(4) {
    width: 100%;
    height: 4px;
    margin-top: 24px;
}

@keyframes qq-skeleton-pulse {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}

@media (max-width: 767px) {
    .channels-hero {
        padding: 38px 0 30px;
    }

    .channels-hero-layout {
        display: block;
    }

    .channels-hero h1 {
        font-size: 27px;
    }

    .channels-directory {
        padding: 28px 0 72px;
    }

    .channel-showcase {
        grid-template-columns: 1fr;
        min-height: 0;
        margin-top: 0;
    }

    .channel-profile {
        min-height: 540px;
        padding: 28px 24px;
        border-right: 0;
        border-bottom: 1px solid #d8ddda;
    }

    .channel-avatar {
        margin-top: 28px;
    }

    .channel-webview {
        min-height: 540px;
    }

    .channel-window-title {
        max-width: calc(100% - 120px);
        font-size: 10px;
    }

    .platform-card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 18px;
    }

    .platform-card {
        min-height: 300px;
    }

    .community-heading {
        padding: 38px 0 32px;
    }

    .community-heading h2 {
        font-size: 27px;
    }

    .douyin-group-section {
        padding-top: 20px;
    }

    .community-entry-grid {
        grid-template-columns: 1fr;
    }

    .community-entry-card {
        min-height: 0;
    }

    .douyin-group-content,
    .qq-channel-content,
    .telegram-group-content {
        min-height: 250px;
        padding: 30px 24px;
    }

    .douyin-group-content h3,
    .qq-channel-content h3,
    .telegram-group-content h3 {
        margin-top: 27px;
        font-size: 25px;
    }

    .douyin-group-number strong,
    .qq-channel-number strong,
    .telegram-group-number strong {
        font-size: 20px;
    }

    .douyin-group-qr,
    .qq-channel-qr,
    .telegram-group-qr {
        padding: 20px 20px 22px;
    }

    .community-qr-frame {
        width: min(240px, 100%);
    }

    .douyin-group-qr .community-qr-frame img {
        top: -22px;
        left: -60px;
        width: 360px;
    }

    .qq-channel-qr .community-qr-frame img {
        top: -100px;
        width: 240px;
    }

    .telegram-group-qr .community-qr-frame img {
        top: -63px;
        width: 240px;
    }

    .qq-groups-section {
        padding: 26px 0 72px;
    }

    .qq-groups-toolbar {
        min-height: 30px;
    }

    .qq-groups-controls {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .qq-filter-segment {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .qq-filter-button {
        padding: 0 8px;
    }

    .qq-sort-control {
        justify-content: space-between;
    }

    .qq-sort-control select {
        min-width: 0;
        width: 156px;
    }

    .qq-groups-grid,
    .qq-skeleton-grid {
        grid-template-columns: 1fr;
    }

    .qq-group-card,
    .qq-skeleton-card {
        min-height: 216px;
    }

    .qq-state-panel {
        min-height: 190px;
        padding: 28px 24px;
    }
}

@media (min-width: 768px) and (max-width: 1040px) {
    .platform-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .platform-card {
        padding: 20px;
    }

    .platform-card-footer > img {
        width: 58px;
        height: 58px;
    }

    .community-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qq-groups-grid,
    .qq-skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .platform-card,
    .community-entry-card,
    .community-qr-frame img {
        transition: none;
    }

    .qq-skeleton-card span {
        animation: none;
    }

    .qq-copy-feedback {
        transition: none;
    }
}
