/* Community layout pass: one content-flow system for desktop and mobile. */

body.community-stream .homepage-section {
    display: block !important;
    min-height: clamp(34rem, 52vw, 47rem);
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 8%, rgba(185, 237, 220, .8), transparent 31rem),
        linear-gradient(130deg, #f5fcfa 0%, #e4f5f1 52%, #d4efeb 100%) !important;
}

body.community-stream .home-share-layout {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(25rem, 1.18fr);
    align-items: center;
    gap: clamp(2rem, 5.5vw, 5.5rem);
    width: min(100% - 48px, 1240px);
}

body.community-stream .home-share-copy {
    position: relative;
    z-index: 1;
    max-width: 33rem;
}

body.community-stream .home-share-kicker {
    margin: 0 0 14px;
    color: #238f8e;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .04em;
}

body.community-stream .home-share-copy h2 {
    margin: 0;
    color: #163f4a;
    font-size: clamp(2.4rem, 4.5vw, 4.7rem);
    line-height: 1.04;
    letter-spacing: .025em;
}

body.community-stream .home-share-copy > p:not(.home-share-kicker) {
    max-width: 30rem;
    margin: 20px 0 0;
    color: #527480;
    font-size: clamp(1rem, 1.45vw, 1.1rem);
    line-height: 1.85;
}

body.community-stream .home-share-tags {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0 30px;
    padding: 18px 0 0;
    border-top: 1px solid rgba(35, 143, 142, .2);
}

body.community-stream .home-share-tags div { min-width: 0; }

body.community-stream .home-share-tags dt {
    color: #1c6666;
    font-size: 1.02rem;
    font-weight: 800;
}

body.community-stream .home-share-tags dd {
    margin: 5px 0 0;
    color: #69838b;
    font-size: .82rem;
    line-height: 1.5;
}

body.community-stream .homepage-section .system-entry-btn {
    display: inline-flex;
    align-items: center;
    min-height: 3.25rem;
    padding: .9rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: #238f8e;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(35, 143, 142, .22);
    text-decoration: none;
    transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease;
}

body.community-stream .homepage-section .system-entry-btn:hover {
    background: #187f7e;
    box-shadow: 0 18px 32px rgba(35, 143, 142, .28);
    transform: translateY(-2px);
}

body.community-stream .homepage-section .system-entry-btn:active { transform: translateY(0) scale(.98); }

body.community-stream .home-share-art {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 20px;
    box-shadow: 0 28px 60px rgba(35, 101, 111, .18);
}

body.community-stream .home-share-art::after {
    position: absolute;
    inset: 0;
    content: '';
    pointer-events: none;
    background: linear-gradient(90deg, rgba(229, 248, 244, .18), transparent 40%);
}

body.community-stream .home-share-art img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

body.community-stream .tools-feature {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(25rem, 1.14fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    margin: 0 0 clamp(2rem, 4vw, 3rem);
    overflow: hidden;
    border: 1px solid rgba(35, 143, 142, .13);
    border-radius: 20px;
    background: linear-gradient(125deg, #f8fdfc 0%, #e6f4f0 100%);
    box-shadow: 0 18px 38px rgba(36, 93, 105, .1);
}

body.community-stream .tools-feature-copy {
    padding: clamp(1.8rem, 4vw, 4rem) 0 clamp(1.8rem, 4vw, 4rem) clamp(1.8rem, 4vw, 4rem);
}

body.community-stream .tools-feature-copy h3 {
    max-width: 21rem;
    margin: 0;
    color: #1b4a55;
    font-size: clamp(1.7rem, 2.65vw, 3rem);
    line-height: 1.12;
}

body.community-stream .tools-feature-copy p {
    max-width: 28rem;
    margin: 16px 0 24px;
    color: #627e86;
    line-height: 1.8;
}

body.community-stream .tools-feature-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #167775;
    font-weight: 800;
    text-decoration: none;
}

body.community-stream .tools-feature-link span { transition: transform .2s ease; }
body.community-stream .tools-feature-link:hover span { transform: translateX(4px); }

body.community-stream .tools-feature-art {
    min-width: 0;
    margin: 0;
    align-self: stretch;
}

body.community-stream .tools-feature-art img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 22rem;
    object-fit: cover;
    object-position: center;
}

body.community-stream #tools .grid-4 .card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background-color: #1e5961 !important;
}

body.community-stream #tools .grid-4 .card::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: '';
    background:
        linear-gradient(180deg, rgba(10, 47, 58, .03), rgba(10, 47, 58, .86)),
        var(--tool-image) center / cover no-repeat;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

body.community-stream #tools .card-link:hover .card::before { transform: scale(1.04); }
body.community-stream #tools .card-link:nth-child(1) .card { --tool-image: url('../PC端图/xishi_waitu.webp'); }
body.community-stream #tools .card-link:nth-child(2) .card { --tool-image: url('../PC端图/longya_waitu.webp'); }
body.community-stream #tools .card-link:nth-child(3) .card { --tool-image: url('../PC端图/huamulan_waitu.jpg'); }
body.community-stream #tools .card-link:nth-child(4) .card { --tool-image: url('../PC端图/jialuo_waitu.webp'); }

body.community-stream #tools .grid-4 .card h3,
body.community-stream #tools .grid-4 .card p { position: relative; z-index: 1; color: #fff !important; text-shadow: 0 2px 12px rgba(7, 37, 45, .38); }
body.community-stream #tools .grid-4 .card p { color: rgba(245, 253, 252, .84) !important; }

body.community-stream .community-story-card {
    position: relative;
    isolation: isolate;
    min-height: 18rem;
    overflow: hidden;
    border-radius: 20px;
    background:
        linear-gradient(110deg, rgba(13, 61, 73, .9) 0%, rgba(13, 61, 73, .56) 55%, rgba(13, 61, 73, .12) 100%),
        url('../assets/community/hero-community-gathering-v1.jpg') center / cover no-repeat !important;
}

body.community-stream .community-story-card .story-content,
body.community-stream .community-story-card .story-icon { position: relative; z-index: 1; }
body.community-stream .community-story-card h3 { color: #fff !important; }
body.community-stream .community-story-card p { color: rgba(245, 253, 252, .9) !important; }

@media (max-width: 768px) {
    body.community-stream .homepage-section {
        min-height: 0;
        padding: 4.25rem 0 calc(5.9rem + env(safe-area-inset-bottom));
    }

    body.community-stream .home-share-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
        width: min(100% - 32px, 34rem);
    }

    body.community-stream .home-share-art { order: -1; }
    body.community-stream .home-share-art img { min-height: 13.5rem; object-position: 60% center; }
    body.community-stream .home-share-copy { max-width: none; }
    body.community-stream .home-share-copy h2 { font-size: clamp(2.1rem, 10vw, 3.25rem); }
    body.community-stream .home-share-copy > p:not(.home-share-kicker) { margin-top: 14px; }
    body.community-stream .home-share-tags { margin: 22px 0 24px; }

    body.community-stream .tools-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        border-radius: 18px;
    }

    body.community-stream .tools-feature-art { order: -1; }
    body.community-stream .tools-feature-art img { min-height: 13.5rem; aspect-ratio: 16 / 9; }
    body.community-stream .tools-feature-copy { padding: 1.5rem; }
    body.community-stream .tools-feature-copy h3 { max-width: 19rem; font-size: clamp(1.65rem, 7.8vw, 2.3rem); }
    body.community-stream .tools-feature-copy p { margin: 12px 0 18px; }
    body.community-stream #tools .grid-4 .card { min-height: 9.25rem; }
    body.community-stream .community-story-card { min-height: 16rem; }
}

@media (max-width: 420px) {
    body.community-stream .home-share-tags { gap: 8px; }
    body.community-stream .home-share-tags dt { font-size: .92rem; }
    body.community-stream .home-share-tags dd { font-size: .74rem; }
    body.community-stream #tools .grid-4 .card { min-height: 8.5rem; padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    body.community-stream .homepage-section .system-entry-btn,
    body.community-stream .tools-feature-link span,
    body.community-stream #tools .grid-4 .card::before { transition: none; }
    body.community-stream .homepage-section .system-entry-btn:hover,
    body.community-stream #tools .card-link:hover .card::before,
    body.community-stream .tools-feature-link:hover span { transform: none; }
}
