/* ═══════════════════════════════════════════════
   Kirkland&Sunshine — Rose & Noir Theme
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --bg-primary: #fff5f7;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 240, 243, 0.95);
    --bg-input: #ffffff;
    --border: #f0c8d0;
    --border-focus: #d4627a;
    --text-primary: #2a1a20;
    --text-secondary: #6b4a55;
    --text-muted: #b08a95;
    --accent: #d4627a;
    --accent-hover: #e07590;
    --accent-glow: rgba(212, 98, 122, 0.1);
    --danger: #c4391a;
    --danger-hover: #d94425;
    --success: #2d7a4f;
    --warning: #c87f0a;
    --noir: #1a1015;
    --gold: #d4a857;
    --serif: 'Playfair Display', 'Noto Serif SC', 'Georgia', serif;
    --cursive: 'Great Vibes', cursive;
    --sans: 'Noto Sans SC', 'Helvetica Neue', sans-serif;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(42, 26, 32, 0.06);
    --shadow-hover: 0 8px 32px rgba(212, 98, 122, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* ── Layout ──────────────────────────────────── */

.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Hero Banner (Parallax Layers) ────────────── */

.hero-banner {
    position: relative;
    width: 100%;
    height: 72vw;
    max-height: 720px;
    min-height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff0f3, #fce4ec, #fff5f7);
    margin: 0;
    padding: 0;
}

.hero-layer-flowers {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-layer-character {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 75%,
        rgba(255, 245, 247, 0.5) 90%,
        var(--bg-primary) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 8%;
    left: 2.5%;
    z-index: 4;
    pointer-events: none;
}

.hero-logo {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(164, 114, 42, 0.3));
    animation: titleFadeIn 1.5s ease-out;
}

.hero-subtitle {
    font-family: var(--serif);
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 6px;
    letter-spacing: 0.25em;
    animation: subtitleFadeIn 2s ease-out;
}

@keyframes titleFadeIn {
    from { opacity: 0; transform: translateY(24px) scale(0.93); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes subtitleFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Header / Nav ────────────────────────────── */

.site-header {
    border-bottom: 1px solid rgba(240, 200, 208, 0.5);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.site-logo {
    font-family: var(--cursive);
    font-size: 1.6rem;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.site-logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a, .nav-links button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-family: var(--sans);
    color: var(--text-secondary);
    transition: all var(--transition);
    border: none;
    background: none;
    cursor: pointer;
}

.nav-links a:hover, .nav-links button:hover {
    color: var(--accent);
    background: var(--accent-glow);
}

.nav-links .btn-accent {
    background: var(--accent);
    color: #fff;
}

.nav-links .btn-accent:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* ── Flash Messages ──────────────────────────── */

.flash-messages { padding: 16px 0 0; }

.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 8px;
    border: 1px solid;
    backdrop-filter: blur(8px);
}

.flash-success {
    background: rgba(45, 122, 79, 0.08);
    border-color: rgba(45, 122, 79, 0.25);
    color: var(--success);
}

.flash-error {
    background: rgba(196, 57, 26, 0.08);
    border-color: rgba(196, 57, 26, 0.25);
    color: var(--danger);
}

.flash-warning {
    background: rgba(200, 127, 10, 0.08);
    border-color: rgba(200, 127, 10, 0.25);
    color: var(--warning);
}

/* ── Post Cards ──────────────────────────────── */

.posts-grid {
    display: grid;
    gap: 16px;
    padding: 32px 0 60px;
}

.post-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: all var(--transition);
    display: block;
    color: inherit;
}

.post-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: inherit;
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.post-avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8bbd0, #d4627a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.post-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.post-meta .username {
    color: var(--text-secondary);
    font-weight: 500;
}

.post-card h2 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.post-card .excerpt {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ── Post Detail ─────────────────────────────── */

.post-detail { padding: 40px 0 80px; }

.post-detail .post-body {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-detail .post-summary {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    padding: 16px 20px;
    margin: 16px 0 24px;
    border-left: 3px solid var(--accent);
    background: var(--accent-glow);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.post-detail .post-image-full {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: var(--radius);
    margin: 24px 0;
    background: rgba(248, 187, 208, 0.1);
}

.post-detail .post-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

/* ── Floor / Reply System ────────────────────── */

.floor-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: border-color var(--transition);
}

.floor-card:hover { border-color: rgba(212, 98, 122, 0.3); }

.floor-main { margin-bottom: 24px; border-width: 2px; }

.floor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.floor-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.floor-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8bbd0, #d4627a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.floor-username { font-weight: 500; font-size: 0.9rem; color: var(--text-primary); }

.badge-op {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f8bbd0, #d4627a);
    color: #fff;
    margin-left: 6px;
    vertical-align: middle;
}

.floor-number {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-primary);
    padding: 2px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.floor-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.reply-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-top: 12px;
}

.floor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.floor-time { font-size: 0.78rem; color: var(--text-muted); }
.floor-actions { display: flex; gap: 8px; }

.post-title {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.35;
}

.replies-section { margin-top: 8px; }

.replies-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.replies-header {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.replies-filter { flex-shrink: 0; }

/* ── 楼中楼 Sub-replies ──────────────────────── */

.sub-replies {
    margin: 12px 0 4px;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.sub-reply {
    padding: 6px 0;
    font-size: 0.84rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(240, 200, 208, 0.3);
}

.sub-reply:last-child { border-bottom: none; }

.sub-reply-user a {
    font-weight: 500;
    color: var(--accent);
    font-size: 0.82rem;
}

.sub-reply-to {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin: 0 4px;
}

.sub-reply-to strong { color: var(--text-secondary); font-weight: 500; }

.sub-reply-content { color: var(--text-primary); }

.sub-reply-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.sub-reply-del {
    font-size: 0.7rem;
    color: var(--danger);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 6px;
    opacity: 0.6;
}

.sub-reply-del:hover { opacity: 1; }

.sub-reply-btn {
    font-size: 0.7rem;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 6px;
    opacity: 0.7;
}

.sub-reply-btn:hover { opacity: 1; }

.sub-reply-form {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.reply-form-section { margin-top: 32px; padding-top: 8px; }

.reply-form-section textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--sans);
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    transition: border-color var(--transition);
    line-height: 1.7;
}

.reply-form-section textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.reply-login-hint {
    text-align: center;
    padding: 32px;
    margin-top: 32px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Forms ────────────────────────────────────── */

.form-page { padding: 48px 0 80px; max-width: 480px; margin: 0 auto; }
.form-page.wide { max-width: 680px; }

.form-page h1 {
    font-family: var(--serif);
    font-size: 1.6rem;
    margin-bottom: 32px;
    text-align: center;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--sans);
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea { min-height: 180px; resize: vertical; line-height: 1.7; }

.form-group input[type="file"] { font-size: 0.85rem; color: var(--text-secondary); }

.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ── Buttons ─────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 24px;
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #f48fb1, #d4627a);
    color: #fff;
    box-shadow: 0 2px 12px rgba(212, 98, 122, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f06292, #c2185b);
    color: #fff;
    box-shadow: 0 4px 20px rgba(212, 98, 122, 0.35);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(196, 57, 26, 0.08);
    color: var(--danger);
    border: 1px solid rgba(196, 57, 26, 0.25);
}

.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: var(--accent);
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ── Profile ─────────────────────────────────── */

.profile-header { text-align: center; padding: 48px 0 32px; }

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid var(--border);
}

.profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8bbd0, #d4627a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 16px;
}

.profile-header h1 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 6px; }

.profile-header .bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

.profile-header .joined { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }

.profile-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
}

.badge-admin {
    background: rgba(212, 98, 122, 0.15);
    color: var(--accent);
    border: 1px solid rgba(212, 98, 122, 0.3);
}

.badge-banned {
    background: rgba(196, 57, 26, 0.1);
    color: var(--danger);
    border: 1px solid rgba(196, 57, 26, 0.25);
}

/* ── Settings Sections ───────────────────────── */

.settings-section {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.settings-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.settings-current-value {
    padding: 8px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ── Admin Panel ─────────────────────────────── */

.admin-section { margin-bottom: 48px; }

.admin-section h2 {
    font-family: var(--serif);
    font-size: 1.2rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: middle;
}

.admin-table tr:hover td { background: var(--accent-glow); }

.status-banned { color: var(--danger); font-weight: 500; }
.status-active { color: var(--success); font-weight: 500; }

/* ── Pending Queue ───────────────────────────── */

.pending-queue { display: grid; gap: 16px; }

.pending-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.pending-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pending-note {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--accent-glow);
    border-radius: 8px;
}

.pending-file { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; }

.pending-actions {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ── Error Page ──────────────────────────────── */

.error-page { text-align: center; padding: 100px 0; }

.error-page .error-code {
    font-family: var(--cursive);
    font-size: 5rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page p { color: var(--text-secondary); margin-bottom: 24px; }

/* ── Empty State ─────────────────────────────── */

.empty-state { text-align: center; padding: 60px 0; color: var(--text-muted); }
.empty-state p { font-size: 0.95rem; margin-bottom: 16px; }

/* ── Boards ──────────────────────────────────── */

.board-section {
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.board-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.board-section:nth-child(2) { transition-delay: 0.12s; }
.board-section:nth-child(3) { transition-delay: 0.24s; }
.board-section:nth-child(4) { transition-delay: 0.36s; }

.board-section .post-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease,
                background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.board-section.visible .post-card {
    opacity: 1;
    transform: translateY(0);
}

.board-section.visible .post-card:nth-child(1) { transition-delay: 0.1s; }
.board-section.visible .post-card:nth-child(2) { transition-delay: 0.18s; }
.board-section.visible .post-card:nth-child(3) { transition-delay: 0.26s; }
.board-section.visible .post-card:nth-child(4) { transition-delay: 0.34s; }
.board-section.visible .post-card:nth-child(5) { transition-delay: 0.42s; }

.board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 12px;
}

.board-title-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.board-title-link:hover { color: var(--accent); }

.board-icon { font-size: 1.3rem; }

.board-name {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.board-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.board-posts { display: grid; gap: 10px; }

.board-more {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    color: var(--accent);
}

.board-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.board-page-header h1 {
    font-family: var(--serif);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
}

.board-main { min-width: 0; display: grid; gap: 12px; }

.board-sidebar {
    position: sticky;
    top: 72px;
    align-self: start;
}

.sidebar-title {
    font-family: var(--serif);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

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

.board-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 6px;
}

/* ── Tags (AO3 style) ────────────────────────── */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    background: rgba(212, 98, 122, 0.08);
    color: var(--accent);
    border: 1px solid rgba(212, 98, 122, 0.2);
    text-decoration: none;
    transition: all var(--transition);
}

.tag:hover {
    background: rgba(212, 98, 122, 0.18);
    color: var(--accent);
}

.tag-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.tag-active:hover {
    background: var(--accent-hover);
    color: #fff;
}

.tag-count {
    font-size: 0.68rem;
    opacity: 0.7;
    margin-left: 2px;
}

/* ── Status Badges ───────────────────────────── */

.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-left: auto;
}

.status-selling {
    background: rgba(45, 122, 79, 0.1);
    color: var(--success);
    border: 1px solid rgba(45, 122, 79, 0.25);
}

.status-sold {
    background: rgba(212, 98, 122, 0.1);
    color: var(--accent);
    border: 1px solid rgba(212, 98, 122, 0.25);
}

.status-soldout {
    background: rgba(176, 138, 149, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(176, 138, 149, 0.3);
}

.post-image-thumb {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 8px;
}

/* ── Footer ──────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 60px;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 640px) {
    .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 6px; }
    .nav-links { flex-wrap: wrap; }
    .hero-banner { min-height: 280px; }
    .hero-logo { width: 180px; }
    .hero-content { top: 5%; left: 3%; }
    .hero-subtitle { font-size: 0.85rem; }
    .post-detail h1, .post-title { font-size: 1.4rem; }
    .form-page { padding: 32px 0 60px; }
    .admin-table { font-size: 0.78rem; }
    .admin-table th, .admin-table td { padding: 8px 6px; }
    .floor-card { padding: 16px 18px; }
    .board-layout { grid-template-columns: 1fr; }
    .board-sidebar { position: static; }
    .board-desc { display: none; }
}
