.community-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px;
}

.community-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.header-left h2 {
    margin: 0 0 6px 0;
    font-size: 28px;
    font-weight: 800;
    color: #1f2333;
}

.header-left p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-match {
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 260px;
}

.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}

.search-box button {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    font-weight: 600;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.filter-group select {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: white;
    font-size: 13px;
}

.waterfall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.dream-card {
    background: white;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #eef0f4;
    box-shadow: 0 8px 20px rgba(15, 18, 34, 0.04);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dream-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(15, 18, 34, 0.08);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 34px;
    height: 34px;
    background: #7c5cff;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 34px;
    font-weight: 700;
    font-size: 14px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 13px;
    color: #1f2333;
    font-weight: 600;
}

.author-time {
    font-size: 11px;
    color: #9aa1b2;
}

.badge {
    font-size: 11px;
    color: #6c5ce7;
    background: rgba(108, 92, 231, 0.12);
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2333;
    line-height: 1.4;
}

.card-excerpt {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tags span {
    font-size: 11px;
    color: #5a4ee0;
    padding: 4px 8px;
    border-radius: 999px;
    background: #efeefd;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #eef0f4;
    color: #6b7280;
    font-size: 12px;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stat svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.empty-state {
    text-align: center;
    color: #8a90a2;
    padding: 30px 10px;
    border: 1px dashed #e2e6f0;
    border-radius: 12px;
}

@media (max-width: 960px) {
    .community-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .search-panel {
        padding: 12px;
    }
    .search-box {
        width: 100%;
    }
    .waterfall {
        grid-template-columns: 1fr;
    }
}
