* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f5f0;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 414px;
    margin: 0 auto;
    padding: 0;
}

.screen {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 6px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.top-nav {
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 414px;
    margin: 0 auto;
}

.logo {
    font-size: 16px;
    font-weight: bold;
    margin-right: 12px;
    white-space: nowrap;
    color: #d4af37;
}



.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.section-desc {
    font-size: 13px;
    color: #666;
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-bar select {
    flex: 1;
    min-width: 120px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.group-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.group-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: row;
}

.group-image {
    width: 100px;
    height: 100px;
    position: relative;
}

.group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-info {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.group-name {
    font-size: 15px;
    color: #333;
    font-weight: bold;
}

.group-member-count {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

.group-owner {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.owner-label {
    color: #999;
}

.owner-name {
    color: #8B4513;
    font-weight: bold;
}

.group-statement {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.statement-label {
    color: #999;
    white-space: nowrap;
}

.statement-content {
    color: #555;
    line-height: 1.3;
}

.group-topics {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.topics-label {
    color: #999;
}

.topics-content {
    color: #8B4513;
    font-weight: bold;
}

.group-actions {
    display: flex;
    gap: 10px;
}

.group-btn {
    flex: 1;
    padding: 3px 12px;
    border: 1px solid #8B4513;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    background: #f8f5f0;
    color: #8B4513;
}

.group-btn:hover {
    background: #f0e6d2;
}

.group-btn.active {
    background: #8B4513;
    color: #fff;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    border: 1px solid #e6d8c3;
}

.activity-image {
    width: 100%;
    height: 140px;
    position: relative;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-title {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    gap: 10px;
    flex-wrap: wrap;
    color: #666;
}

.activity-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.activity-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    gap: 10px;
    flex-wrap: wrap;
}

.activity-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-num {
    font-size: 14px;
    font-weight: bold;
    color: #8B4513;
}

.stat-label {
    font-size: 10px;
    color: #666;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: #8B4513;
    color: #8B4513;
}

.page-btn.active {
    background: #8B4513;
    color: #fff;
    border-color: #8B4513;
}

.community-tiers {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 0;
    padding: 4px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.community-tiers::-webkit-scrollbar {
    display: none;
}

.tier-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: 120px;
    height: 48px;
    background: linear-gradient(135deg, #f8f5f0, #f0e6d2);
    border: 1px solid #e6d8c3;
    border-radius: 8px;
    padding: 3px 10px;
    text-decoration: none;
    color: #8B4513;
    transition: all 0.3s;
}

.tier-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}

.tier-icon {
    font-size: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.tier-name {
    font-size: 13px;
    font-weight: bold;
    text-align: left;
    flex: 1;
}

#float-btn {
    position: fixed;
    right: calc((100vw - 414px) / 2 + 15px);
    bottom: 80px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: #fff;
    padding: 12px 15px;
    border-radius: 25px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    cursor: pointer;
    z-index: 99;
}

@media (max-width: 414px) {
    #float-btn {
        right: 15px;
    }
}