.board-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 18px 48px;
    color: var(--text);
}

.board-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.board-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: 0;
}

.board-hero p {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.7;
}

.board-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
}

.board-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.board-page-info,
.board-compose-count,
#board-compose-count {
    color: var(--text-dim);
    font-size: 13px;
}

.board-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.board-pager-bottom {
    justify-content: center;
    margin-top: 14px;
}

.board-page-btn,
.board-jump-btn,
.board-submit-btn,
.board-login-required button {
    border: 1px solid rgba(255,255,255,.12);
    background: #ff7a2f;
    color: #fff;
    border-radius: 8px;
    min-height: 38px;
    padding: 0 14px;
    font-weight: 700;
    cursor: pointer;
}

.board-page-btn {
    min-height: 32px;
    padding: 0 10px;
    background: var(--surface2);
    color: var(--text);
}

.board-page-btn.active {
    background: rgba(255,122,47,.18);
    border-color: rgba(255,122,47,.65);
    color: #ffb27f;
}

.board-page-btn:disabled {
    opacity: .45;
    cursor: default;
}

.board-post-list {
    display: flex;
    flex-direction: column;
}

.board-post {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.board-post:last-child {
    border-bottom: 0;
}

.board-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a2f, #5b7cff);
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    overflow: hidden;
}

.board-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-post-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.board-post-no {
    color: #ff9c5d;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
}

.board-post-name {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.board-post-name:hover {
    text-decoration: underline;
}

.board-badge-admin,
.board-badge-pinned {
    font-size: 11px;
    color: #fff;
    border-radius: 999px;
    padding: 2px 7px;
}

.board-badge-admin {
    background: linear-gradient(135deg, #ff7a2f, #e148ff);
}

.board-badge-pinned {
    background: rgba(80, 148, 255, .26);
    color: #9fc2ff;
}

.board-post-time {
    color: var(--text-dim);
    font-size: 12px;
}

.board-post-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.75;
}

.board-deleted {
    color: var(--text-dim);
    font-style: italic;
}

.board-quote {
    border-left: 3px solid rgba(255,122,47,.72);
    background: var(--surface2);
    border-radius: 0 8px 8px 0;
    padding: 8px 10px;
    margin: 0 0 10px;
    color: var(--text-dim);
}

.board-quote-title {
    font-size: 12px;
    color: #ffb27f;
    margin-bottom: 3px;
}

.board-quote-body {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.board-post-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.board-link-btn {
    border: 0;
    background: transparent;
    color: var(--text-dim);
    padding: 4px 0;
    cursor: pointer;
    font-weight: 600;
}

.board-link-btn:hover {
    color: #ffb27f;
}

.board-section-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
}

.board-compose textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    border-radius: 8px;
    padding: 12px;
    font: inherit;
    line-height: 1.6;
}

.board-compose-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

#board-reply-cancel {
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    border-radius: 8px;
    min-height: 36px;
    padding: 0 12px;
    cursor: pointer;
}

.board-login-required {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--text);
}

.board-empty {
    color: var(--text-dim);
    padding: 24px 0;
    text-align: center;
}

@media (max-width: 720px) {
    .board-page {
        padding: 18px 12px 38px;
    }
    .board-hero {
        align-items: stretch;
        flex-direction: column;
    }
    .board-hero h1 {
        font-size: 24px;
    }
    .board-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .board-pager {
        justify-content: flex-start;
    }
    .board-post {
        grid-template-columns: 34px 1fr;
        gap: 10px;
    }
    .board-avatar {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    .board-login-required,
    .board-compose-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .board-submit-btn,
    #board-reply-cancel {
        width: 100%;
    }
}
