:root {
    --green-50: #fff5f8;
    --green-100: #ffe8ef;
    --green-200: #ffd0dc;
    --green-300: #f5a8bc;
    --green-400: #e992aa;
    --green-500: #e07a96;
    --green-600: #c95f7d;
    --green-700: #a84866;

    --bg-page: #fdf7f9;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --border-light: #f0e4e8;
    --text-primary: #2a1f24;
    --text-secondary: #5c4650;
    --text-muted: #9a8090;
    --shadow-sm: 0 2px 8px rgba(224, 122, 150, 0.08);
    --shadow-md: 0 4px 20px rgba(224, 122, 150, 0.12);
    --radius: 14px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

h2, h3, h4, h5 {
    color: var(--text-primary);
}

p.text-muted,
.text-muted {
    color: var(--text-muted) !important;
}

/* ===== App Layout ===== */
.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-page);
}

.main-area {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    width: 100%;
    padding: 2rem 2.5rem;
}

/* ===== Sidebar ===== */
.app-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.brand:hover {
    background: var(--green-50);
    color: var(--text-primary);
}

.brand-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: linear-gradient(135deg, var(--green-400), var(--green-500));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(224, 122, 150, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    gap: 0.15rem;
}

.brand-wordmark {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-size: 1.55rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    background: linear-gradient(120deg, var(--green-700) 0%, var(--green-500) 45%, var(--green-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text small {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--green-600);
    opacity: 0.85;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 0.75rem;
    margin: 0 0 0.5rem;
}

a.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

a.sidebar-link:hover {
    background: var(--green-50);
    color: var(--green-600) !important;
}

a.sidebar-link.active {
    background: var(--green-100);
    color: var(--green-600) !important;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--green-500);
}

.nav-icon {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--green-50);
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--green-200);
    color: var(--green-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.user-info strong {
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-subscriber {
    font-size: 0.68rem;
    color: var(--green-600);
    background: white;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    width: fit-content;
    font-weight: 600;
}

.badge-guest {
    font-size: 0.68rem;
    color: var(--text-muted);
    background: white;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    width: fit-content;
}

.footer-link {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.footer-link:hover {
    background: var(--green-50);
    color: var(--green-600);
}

.footer-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    padding: 0.5rem;
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 150;
    width: 42px;
    height: 42px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--green-600);
    border-radius: 2px;
}

.sidebar-overlay {
    display: none;
}

.sidebar-toggle-input {
    display: none;
}

@media (max-width: 768px) {
    .app-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        transition: left 0.3s ease;
        box-shadow: none;
    }

    .sidebar-toggle-input:checked ~ .app-sidebar {
        left: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    }

    .mobile-toggle {
        display: flex;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 90;
        cursor: pointer;
    }

    .sidebar-toggle-input:checked ~ .sidebar-overlay {
        display: block;
    }

    .main-content {
        padding: 4.5rem 1.25rem 2rem;
    }
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--green-50) 0%, #fff0f4 50%, #fffafb 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero .lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.card-header {
    background: var(--green-50);
    border-bottom: 1px solid var(--border-light);
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    color: var(--green-700);
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

/* ===== Buttons ===== */
.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--green-500) !important;
    border-color: var(--green-500) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--green-600) !important;
    border-color: var(--green-600) !important;
    box-shadow: 0 4px 12px rgba(224, 122, 150, 0.3);
}

.btn-outline-primary {
    color: var(--green-600) !important;
    border-color: var(--green-300) !important;
    background: white !important;
}

.btn-outline-primary:hover {
    background: var(--green-50) !important;
    border-color: var(--green-500) !important;
    color: var(--green-600) !important;
}

.btn-outline-secondary {
    color: var(--text-muted) !important;
    border-color: var(--border-light) !important;
}

.btn-outline-secondary:hover {
    background: var(--green-50) !important;
    border-color: var(--green-300) !important;
    color: var(--green-600) !important;
}

.btn-link {
    color: var(--green-600) !important;
    text-decoration: none;
}

.btn-link:hover {
    color: var(--green-700) !important;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    border-radius: 12px;
}

/* ===== Forms ===== */
.form-control,
.form-select {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(224, 122, 150, 0.12);
    outline: none;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

fieldset {
    border-color: var(--border-light) !important;
    border-radius: 10px;
}

/* ===== Alerts ===== */
.alert {
    border-radius: 12px;
    font-size: 0.9rem;
}

.alert-success {
    background: var(--green-50);
    color: var(--green-700);
    border: 1px solid var(--green-200);
}

.alert-danger {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.alert-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--green-50);
    color: var(--green-700);
    border: 1px solid var(--green-200);
}

.alert-secondary {
    background: #f8faf9;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

/* ===== Blog output ===== */
.blog-output {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Malgun Gothic', sans-serif;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    margin: 0;
}

.display-6 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--green-500) !important;
}

.spinner-border.text-primary {
    color: var(--green-500) !important;
}

.page-header {
    margin-bottom: 1.75rem;
}

.page-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.feature-grid .card {
    height: 100%;
}

.feature-grid .card-body {
    padding: 1.75rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--green-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.flow-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.flow-hint .arrow {
    color: var(--green-400);
    font-weight: 700;
}

.flow-hint span:not(.arrow) {
    background: var(--green-50);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    color: var(--green-700);
    font-weight: 500;
}

.validation-message {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.password-rules {
    background: var(--green-50);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
}

.rule-item {
    font-size: 0.82rem;
    padding: 0.15rem 0;
    font-weight: 500;
}

.rule-item.valid {
    color: var(--green-600);
}

.rule-item.invalid {
    color: #e53e3e;
}

.form-control.is-invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.bg-primary {
    background-color: var(--green-500) !important;
}

.text-primary {
    color: var(--green-500) !important;
}

.border-primary {
    border-color: var(--green-300) !important;
}

#blazor-error-ui {
    background: #fff8e1;
    bottom: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

/* Sidebar login link */
a.sidebar-link-login {
    margin-top: 0.25rem;
}

/* ===== Home Page ===== */
.home-hero {
    position: relative;
    background: linear-gradient(160deg, #fff0f4 0%, #f0faf4 40%, #ffffff 100%);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(224, 122, 150, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(224, 122, 150, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    background: white;
    color: var(--green-600);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--green-200);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.hero-highlight {
    color: var(--green-500);
    background: linear-gradient(135deg, var(--green-500), var(--green-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    min-width: 120px;
}

.stat-item strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--green-600);
}

.stat-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.home-features {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.feature-card {
    display: block;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-200);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    background: var(--green-50);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card .feature-icon {
    font-size: 1.5rem;
}

.feature-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-600);
}

.home-cta {
    background: linear-gradient(135deg, var(--green-500), var(--green-400));
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.cta-inner h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-inner p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cta-contact {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 600;
    margin-bottom: 1.25rem !important;
}

.cta-contact strong {
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff !important;
}

.home-cta .text-muted {
    color: #ffffff !important;
}

.home-cta .btn-primary {
    background: white !important;
    color: var(--green-600) !important;
    border-color: white !important;
    font-weight: 700;
}

.home-cta .btn-primary:hover {
    background: var(--green-50) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        gap: 0.75rem;
    }

    .stat-item {
        min-width: 100px;
        padding: 0.6rem 1rem;
    }
}

/* ===== Board ===== */
.board-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.board-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.board-item:hover {
    border-color: var(--green-300);
    box-shadow: var(--shadow-sm);
    color: inherit;
}

.board-thumb {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--green-50);
}

.board-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.4rem;
}

.board-body {
    min-width: 0;
    flex: 1;
}

.board-body strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.board-body p {
    margin: 0 0 0.5rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.board-body small {
    color: var(--text-muted);
}

.post-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--green-50);
    max-width: 720px;
}

.post-image img {
    display: block;
    width: 100%;
    height: auto;
}

.post-content p {
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ===== Post detail (borderless) ===== */
.post-loading,
.post-empty {
    padding: 3rem 0;
    color: var(--text-muted);
}

.post-empty a {
    color: var(--green-600);
    font-weight: 600;
    text-decoration: none;
}

.post-detail {
    max-width: 740px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
}

.post-back:hover {
    color: var(--green-600);
}

.post-hero {
    margin-bottom: 2rem;
}

.post-category {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--green-100);
    color: var(--green-700);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.post-hero h1 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: var(--text-primary);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author-avatar,
.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-400), var(--green-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.post-meta strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.post-meta time,
.comment-head time {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.post-figure {
    margin: 0 0 2rem;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--green-50), #fff0f4);
}

.post-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.post-body p {
    margin: 0 0 1rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-spacer {
    height: 0.75rem;
}

.post-actions {
    margin: 2rem 0 0;
}

.post-delete-btn {
    background: none;
    border: none;
    padding: 0;
    color: #c45b5b;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.post-delete-btn:hover {
    text-decoration: underline;
}

.post-delete-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.comment-section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    background: linear-gradient(180deg, transparent, rgba(224, 122, 150, 0.03) 12%, transparent 100%);
}

.comment-section h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
    color: var(--text-primary);
}

.comment-section h2 em {
    font-style: normal;
    color: var(--green-600);
    margin-left: 0.25rem;
}

.comment-composer {
    margin-bottom: 2rem;
}

.comment-composer textarea {
    width: 100%;
    border: 0;
    outline: none;
    resize: vertical;
    min-height: 104px;
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
    background: var(--green-50);
    box-shadow: none;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.comment-composer textarea:focus {
    background: #fff0f4;
    box-shadow: none;
}

.comment-composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    gap: 1rem;
}

.comment-composer-footer span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-error {
    margin: 0.75rem 0 0;
    color: #c45b5b;
    font-size: 0.9rem;
}

.comment-login-hint {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.comment-login-hint a {
    color: var(--green-600);
    font-weight: 700;
    text-decoration: none;
}

.comment-empty {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 1rem 0 0;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.comment-item {
    display: flex;
    gap: 0.85rem;
    padding: 0;
    background: transparent;
}

.comment-main {
    min-width: 0;
    flex: 1;
    padding-top: 0.15rem;
}

.comment-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}

.comment-head strong {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.comment-head time {
    display: inline;
}

.comment-delete {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0;
}

.comment-delete:hover {
    color: #c45b5b;
}

.comment-main p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.96rem;
}

@media (max-width: 768px) {
    .post-detail {
        max-width: 100%;
    }

    .post-hero h1 {
        font-size: 1.45rem;
    }
}
