.community-page { color: var(--text-color); background: #f6f4f2; }
.community-hero { position: relative; padding: 150px 0 42px; overflow: hidden; background: radial-gradient(circle at 86% 18%, rgba(255, 196, 176, .72), transparent 28%), linear-gradient(180deg, #fff8f5, #f6f4f2 82%); }
.community-hero-glow { position: absolute; top: 70px; right: 8%; width: 280px; height: 280px; border: 1px solid rgba(253, 91, 74, .12); border-radius: 50%; }
.community-hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 42px; align-items: end; }
.community-hero h1 { margin: 16px 0; font-size: clamp(40px, 5vw, 62px); font-weight: 800; letter-spacing: -.065em; line-height: 1.12; }
.community-hero h1 em { color: var(--primary-color); font-style: normal; }
.community-hero p, .community-compose p, .community-list header p { max-width: 640px; margin: 0; color: var(--text-secondary); line-height: 1.8; }
.community-hero-actions { display: flex; gap: 12px; margin-top: 26px; }
.community-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.community-stats article { padding: 16px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 16px; background: rgba(255, 255, 255, .78); box-shadow: 0 12px 30px rgba(90, 48, 36, .05); }
.community-stats b { display: block; font-size: 24px; letter-spacing: -.04em; }
.community-stats span { color: #8b97a8; font-size: 12px; }
.community-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -8px; }
.community-topics a, .community-boards, .community-guide, .community-list, .community-post, .community-replies, .community-compose { border: 1px solid #efe8e4; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(80, 48, 36, .04); }
.community-topics a { display: grid; gap: 8px; min-height: 168px; padding: 18px; }
.community-topics a:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(80, 48, 36, .08); }
.community-topics i, .community-boards i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--primary-color); background: #fff1ee; }
.community-topics strong { font-size: 16px; }
.community-topics p, .community-topics small, .community-guide span, .community-guide p { color: #7b8798; font-size: 13px; line-height: 1.7; }
.community-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; padding: 28px 0 80px; }
.community-side { display: grid; gap: 14px; align-self: start; position: sticky; top: 108px; }
.community-guide { padding: 16px; }
.community-guide h2 { margin: 2px 0 12px; font-size: 15px; line-height: 1.4; }
.community-guide ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.community-guide li { display: block; min-width: 0; padding: 10px 12px; border-radius: 12px; background: #faf7f5; }
.community-guide b, .community-guide span, .community-guide p { display: block; overflow-wrap: anywhere; word-break: normal; white-space: normal; }
.community-guide b { margin-bottom: 4px; font-size: 14px; line-height: 1.4; }
.community-guide span, .community-guide p { color: #7b8798; font-size: 13px; line-height: 1.7; }
.community-guide p { margin: 12px 0 0; }
.community-boards a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; }
.community-boards a.is-active, .community-boards a:hover { background: #fff6f4; }
.community-boards strong, .community-boards small { display: block; }
.community-boards small { color: #98a2b3; font-size: 12px; }
.community-boards { padding: 16px; }
.community-boards p { margin: 2px 4px 12px; font-size: 13px; }
.community-guide ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.community-main { display: grid; gap: 16px; min-width: 0; }
.community-list { padding: 8px 22px 18px; }
.community-list > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 16px 0; }
.community-list > header h2, .community-post h2, .community-compose h2 { margin: 0 0 6px; letter-spacing: -.03em; }
.community-list > header a { color: var(--primary-color); font-size: 13px; font-weight: 800; }
.community-thread { display: grid; grid-template-columns: 42px minmax(0, 1fr) 72px; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid #f3eee9; }
.community-thread:hover strong { color: var(--primary-color); }
.community-thread strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-thread small, .community-thread time { color: #98a2b3; font-size: 12px; }
.community-thread-meta { display: grid; justify-items: end; }
.community-thread-meta b { color: var(--text-color); font-size: 16px; }
.community-avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--primary-color), #ff9a76); font-weight: 800; }
.community-role { display: inline-flex; height: 20px; align-items: center; margin-right: 6px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-style: normal; }
.community-role.is-merchant { color: #b54708; background: #fff4e8; }
.community-role.is-buyer { color: #175cd3; background: #eef4ff; }
.community-post, .community-replies, .community-compose { padding: 24px; }
.community-back { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-color); font-size: 13px; font-weight: 700; }
.community-post-kicker { display: flex; align-items: center; gap: 8px; margin: 16px 0 10px; color: #7b8798; font-size: 13px; }
.community-post-body, .community-replies p { color: #526074; font-size: 15px; line-height: 1.85; white-space: pre-wrap; }
.community-replies h3 { margin: 0 0 8px; font-size: 18px; }
.community-replies article { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid #f3eee9; }
.community-replies article header { display: flex; justify-content: space-between; gap: 12px; }
.community-replies time { color: #98a2b3; font-size: 12px; }
.community-compose, .community-replies form { display: grid; gap: 14px; }
.community-compose label, .community-replies label { display: grid; gap: 7px; }
.community-compose span, .community-replies span { color: #7b8798; font-size: 12px; font-weight: 700; }
.community-compose input, .community-compose select, .community-compose textarea, .community-replies input, .community-replies textarea { width: 100%; border: 1px solid #eadfd8; border-radius: 12px; color: var(--text-color); background: #fffdfc; }
.community-compose input, .community-compose select, .community-replies input { height: 44px; padding: 0 12px; }
.community-compose textarea, .community-replies textarea { min-height: 140px; padding: 12px; resize: vertical; line-height: 1.7; }
.community-compose input:focus, .community-compose select:focus, .community-compose textarea:focus, .community-replies input:focus, .community-replies textarea:focus { border-color: #ffc7bc; outline: 0; box-shadow: 0 0 0 4px rgba(253, 91, 74, .08); }
.community-alert { grid-column: 1 / -1; padding: 13px 15px; border-radius: 12px; color: #b42318; background: #fff5f4; }
.community-empty { display: grid; gap: 6px; padding: 28px 0; }
.community-empty strong { font-size: 16px; }
.community-empty span, .community-identity { color: #98a2b3; font-size: 13px; line-height: 1.7; }
.community-pager { display: flex; justify-content: flex-end; gap: 14px; padding-top: 14px; color: #98a2b3; font-size: 13px; }
.community-pager a { color: var(--primary-color); font-weight: 800; }
@media (max-width: 980px) {
    .community-hero { padding-top: 124px; }
    .community-hero-grid, .community-topics, .community-layout { grid-template-columns: 1fr; }
    .community-side { position: static; }
    .community-thread { grid-template-columns: 42px minmax(0, 1fr); }
    .community-thread-meta { display: none; }
}
