.community-renewal-page {
    background: #fff;
}

.community-renewal-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.community-main {
    min-height: 720px;
    color: #172945;
    background:
        radial-gradient(circle at 50% 4%, rgba(216, 232, 255, 0.78), rgba(244, 248, 255, 0) 34%),
        linear-gradient(180deg, #f3f7fd 0%, #f8fbff 64%, #f4f8fd 100%);
}

.community-tabs {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(calc(100% - 48px), 900px);    
    overflow: hidden;
    border: 1px solid #d2dce9;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.92);
}

.community-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    color: #66748b;
    border-radius: 32px;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.community-tabs a:hover {
    color: #1261d8;
}

.community-tabs a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #1672ed 0%, #0757d1 100%);
    box-shadow: 0 8px 20px rgba(18, 97, 216, 0.24);
}

.community-stage {
    padding: 34px 0 72px;
}

.community-stage .layout {
    max-width: 1180px;
}

.community-card {
    overflow: hidden;
    border: 1px solid #d9e2ed;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 5px 14px rgba(38, 67, 108, 0.1);
}

.community-list-card {
    padding: 30px 48px 28px;
}

.community-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.community-list-toolbar > p {
    color: #1e304a;
    font-size: 14px;
    font-weight: 700;
}

.community-list-toolbar > p strong {
    color: #1261d8;
    font-weight: 800;
}

.community-search {
    display: grid;
    grid-template-columns: minmax(0, 290px) 50px;
    gap: 8px;
}

.community-search input {
    width: 100%;
    min-height: 50px;
    padding: 0 17px;
    color: #263c5a;
    border: 1px solid #d5deea;
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    outline: 0;
}

.community-search input::placeholder {
    color: #99a5b6;
}

.community-search input:focus {
    border-color: #4a8dec;
    box-shadow: 0 0 0 3px rgba(18, 97, 216, 0.11);
}

.community-search button {
    position: relative;
    width: 50px;
    min-height: 50px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #1672ed 0%, #0757d1 100%);
    box-shadow: 0 5px 13px rgba(18, 97, 216, 0.23);
    cursor: pointer;
}

.community-search button span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 17px;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-60%, -60%);
}

.community-search button span::after {
    position: absolute;
    top: 13px;
    left: 13px;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    content: '';
    transform: rotate(45deg);
    transform-origin: left center;
}

.community-board {
    border-bottom: 1px solid #d8e1ed;
}

.community-board__head,
.community-board__row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 180px;
    align-items: stretch;
}

.community-board__head {
    min-height: 54px;
    color: #617087;
    border-radius: 8px 8px 0 0;
    background: #f1f5fb;
    font-size: 13px;
    font-weight: 700;
}

.community-board__head span,
.community-board__row > span,
.community-board__row > time {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 12px 16px;
    border-right: 1px solid #e1e7ef;
}

.community-board__head span:last-child,
.community-board__row > time {
    border-right: 0;
}

.community-board__row {
    min-height: 63px;
    color: #34465f;
    border-top: 1px solid #e1e7ef;
    background: #fff;
    font-size: 13px;
    transition: background-color 0.16s ease;
}

.community-board__row:first-child {
    border-top: 0;
}

.community-board__row:hover {
    background: #f7faff;
}

.community-board__row.is-pinned {
    background: #fff6f5;
}

.community-board__row.is-pinned:hover {
    background: #ffefed;
}

.community-board__number {
    color: #2d415d;
    font-weight: 600;
}

.community-board__number em,
.community-notice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 28px;
    padding: 4px 13px;
    color: #ef5651;
    border-radius: 16px;
    background: #ffe2e0;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.community-board__row .community-board__title {
    justify-content: flex-start;
    gap: 8px;
    overflow: hidden;
    color: #253a57;
    font-weight: 600;
    text-align: left;
}

.community-board__title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #fff;
    border-radius: 50%;
    background: #ef6a61;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}

.community-board__row time {
    color: #607088;
    font-size: 12px;
}

.community-empty {
    padding: 70px 20px;
    color: #7c899b;
    text-align: center;
}

.community-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

.community-pagination a,
.community-pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #5b6b82;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.community-pagination a:hover {
    color: #1261d8;
    background: #eef5ff;
}

.community-pagination strong {
    color: #fff;
    background: #1261d8;
    box-shadow: 0 4px 10px rgba(18, 97, 216, 0.2);
}

.community-pagination__arrow {
    font-size: 20px !important;
    font-weight: 400 !important;
}

.community-pagination__arrow.is-disabled {
    opacity: 0.36;
    pointer-events: none;
}

@media (max-width: 900px) {
    .community-main {
        min-height: 0;
    }

    .community-tabs a {
        min-height: 56px;
    }

    .community-list-card {
        padding: 25px 28px;
    }

}

@media (max-width: 767px) {
    .community-tabs {
        width: calc(100% - 32px);
        margin-top: -25px;
        border-radius: 27px;
    }

    .community-tabs a {
        min-height: 50px;
        padding: 6px;
        border-radius: 25px;
        font-size: 12px;
    }

    .community-stage {
        padding: 22px 0 46px;
    }

    .community-card {
        border-radius: 12px;
    }

    .community-list-card {
        padding: 20px 16px;
    }

    .community-list-toolbar {
        display: block;
        margin-bottom: 18px;
    }

    .community-list-toolbar > p {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .community-search {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 7px;
    }

    .community-search input,
    .community-search button {
        min-height: 44px;
    }

    .community-search button {
        width: 44px;
    }

    .community-board__head {
        display: none;
    }

    .community-board__row {
        grid-template-columns: 50px minmax(0, 1fr);
        min-height: 78px;
        padding: 13px 0;
        border-top: 1px solid #e1e7ef;
    }

    .community-board__row:first-child {
        border-top: 0;
    }

    .community-board__head span,
    .community-board__row > span,
    .community-board__row > time {
        padding: 2px 10px;
        border-right: 0;
    }

    .community-board__number {
        grid-row: 1 / 3;
    }

    .community-board__number em {
        min-width: 40px;
        min-height: 25px;
        padding: 3px 8px;
        font-size: 10px;
    }

    .community-board__row .community-board__title {
        align-self: end;
        padding-right: 4px;
        font-size: 13px;
        line-height: 1.5;
    }

    .community-board__row time {
        align-self: start;
        justify-content: flex-start;
        color: #8793a4;
        font-size: 11px;
    }

    .community-pagination {
        margin-top: 18px;
    }

    .community-pagination a,
    .community-pagination strong {
        width: 32px;
        height: 32px;
    }

}

@media (max-width: 360px) {
    .community-tabs a {
        font-size: 11px;
    }

    .community-list-card {
        padding-right: 13px;
        padding-left: 13px;
    }
}
