:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-strong: rgba(255, 255, 255, 0.12);
    --line: rgba(255, 255, 255, 0.14);
    --text: #e5eefc;
    --text-muted: #9fb0d1;
    --primary: #7c3aed;
    --primary-2: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.25), transparent 26%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.18), transparent 22%),
        linear-gradient(180deg, #0b1220, #0f172a 35%, #0a1020);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select {
    font: inherit;
}
button { cursor: pointer; }

.container {
    width: min(var(--container), 90vw, calc(100% - 32px));
    margin: 0 auto;
}

.page-body {
    padding: 32px 0 48px;
}

.site-shell {
    padding-bottom: 30px;
}

.glass-card,
.soft-card,
.section-card,
.sidebar-card,
.footer-card,
.login-card,
.metric-card,
.page-banner,
.hero-section,
.filter-bar,
.timeline-item,
.post-card,
.archive-group,
.empty-state,
.article-main,
.about-main,
.about-side,
.admin-topbar,
.admin-sidebar {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.soft-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.06));
}

.site-header {
    position: sticky;
    top: 12px;
    z-index: 20;
    width: min(var(--container), 90vw, calc(100% - 32px));
    margin: 16px auto 0;
    border-radius: 999px;
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 18px;
}

.brand,
.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand strong,
.admin-brand strong {
    display: block;
    font-size: 1rem;
}

.brand small,
.admin-brand small {
    color: var(--text-muted);
}

.brand-mark,
.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex: 0 0 42px;
}

.brand-mark {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: white;
    font-weight: 800;
}

.brand-logo {
    display: block;
    object-fit: cover;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.site-nav,
.admin-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-nav a,
.admin-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text-muted);
    transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.admin-nav a:hover,
.admin-nav a.active,
.filter-pill.active,
.filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}


.footer-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
    transition: 0.2s ease;
}

.footer-link:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.08);
    color: white;
}

.hero-section,
.page-banner,
.section-card,
.post-card,
.timeline-item,
.archive-group,
.article-main,
.sidebar-card,
.about-main,
.about-side,
.empty-state,
.login-card,
.footer-card,
.filter-bar {
    border-radius: var(--radius-xl);
    padding: 24px;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.hero-text h1,
.page-banner h1,
.article-header h1,
.about-main h1 {
    margin: 10px 0 14px;
    line-height: 1.12;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero-text p,
.page-banner p,
.article-summary,
.about-main p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.03rem;
}

.eyebrow {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.16);
    color: #c4b5fd;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.hero-actions,
.editor-actions,
.action-row,
.toolbar-row,
.inline-header,
.post-card-footer,
.article-meta,
.footer-card,
.hero-stats,
.section-header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-stats {
    align-content: stretch;
}

.stat-card,
.metric-card {
    flex: 1;
    min-height: 120px;
    border-radius: 22px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.stat-card strong,
.metric-card strong {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.stat-card span,
.metric-card span,
.muted,
.footer-meta,
.article-meta,
.post-card-footer,
.timeline-date,
.archive-item span:last-child,
.user-inline small,
.page-info {
    color: var(--text-muted);
}

.section-header {
    margin: 34px 0 18px;
}

.section-space-top {
    margin-top: 42px;
}

.section-header h2,
.inline-header h2 {
    margin: 8px 0 0;
    font-size: 1.5rem;
}

.text-link {
    color: #c4b5fd;
}

.card-grid {
    display: grid;
    gap: 18px;
}

.post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 250px;
}

.post-card h3,
.timeline-content h3 {
    margin: 0;
    font-size: 1.24rem;
    line-height: 1.45;
}

.post-card p,
.timeline-content p,
.archive-list,
.about-meta,
.sidebar-card p {
    color: var(--text-muted);
    line-height: 1.75;
}

.post-card-meta,
.tag-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.badge,
.filter-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

.badge-hot {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
}

.badge-light {
    color: #bfdbfe;
}

.timeline-list,
.archive-groups {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
}

.timeline-date {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.search-form,
.toolbar-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.search-form input,
.toolbar-row input,
.toolbar-row select,
.form-grid input,
.form-grid textarea,
.form-grid select,
.login-card input,
.editor-textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.06);
    color: white;
    padding: 14px 16px;
    outline: none;
}

textarea {
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #8fa1c2;
}

.btn,
.page-btn {
    border: none;
    padding: 12px 18px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn:hover,
.page-btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: white;
}

.btn-secondary,
.page-btn {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid var(--line);
}

.btn-block {
    width: 100%;
}

.btn-xs {
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 0.9rem;
}

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

.pagination-wrap {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.article-layout,
.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    gap: 20px;
}

.article-main,
.about-main {
    overflow: hidden;
}

.article-header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
    margin-bottom: 18px;
}

.article-summary {
    margin-top: 14px;
}

.article-tags {
    margin-bottom: 18px;
}

.author-box {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.author-box img,
.about-side img {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.about-side img {
    width: 140px;
    height: 140px;
    border-radius: 28px;
}

.sidebar-links {
    display: grid;
    gap: 12px;
}

.sidebar-links a,
.archive-item {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.12);
}

.archive-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.feature-item {
    padding: 18px;
    border-radius: 18px;
}

.feature-item h3 {
    margin-top: 0;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state h1,
.empty-state h3 {
    margin: 0 0 12px;
}

.footer-card {
    margin-top: 18px;
}

.admin-body,
.login-body {
    min-height: 100vh;
}

.login-body {
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: min(460px, 100%);
}

.login-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    gap: 20px;
    padding: 20px;
}

.admin-sidebar {
    border-radius: 30px;
    padding: 24px;
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
}

.admin-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: 26px;
}

.admin-nav a {
    border-radius: 14px;
}

.admin-main {
    display: grid;
    gap: 18px;
    align-content: start;
}

.admin-topbar {
    border-radius: 28px;
    padding: 22px 24px;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 2rem;
}

.admin-topbar p {
    margin: 6px 0 0;
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid label,
.single-column label {
    display: grid;
    gap: 8px;
}

.form-grid span,
.single-column span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.full-row {
    grid-column: 1 / -1;
}

.checkbox-field {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding-top: 18px;
}

.checkbox-field input {
    width: auto;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
}

.data-table th {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.table-empty {
    text-align: center !important;
    color: var(--text-muted);
}

.text-button {
    background: transparent;
    border: none;
    padding: 0;
    color: #93c5fd;
}

.text-button.danger {
    color: #fda4af;
}

.status-pill.published {
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
}

.status-pill.draft {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.user-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-inline img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
}

.editor-layout,
.editor-grid {
    display: grid;
    gap: 18px;
}

.editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-textarea {
    min-height: 560px;
    font-family: "JetBrains Mono", Consolas, monospace;
    line-height: 1.7;
}

.preview-panel {
    min-height: 560px;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.toast-floating {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 120;
    width: min(92vw, 460px);
    margin-bottom: 0;
    pointer-events: none;
}

.flash-message {
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    text-align: center;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.flash-message.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.flash-message.is-leaving {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
}

.flash-message.success { background: rgba(34, 197, 94, 0.18); }
.flash-message.warning { background: rgba(245, 158, 11, 0.18); }
.flash-message.danger { background: rgba(239, 68, 68, 0.18); }
.flash-message.info { background: rgba(59, 130, 246, 0.18); }

.markdown-body {
    color: #e8eefc;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.markdown-body p,
.markdown-body li,
.markdown-body blockquote {
    color: #d7e3f8;
}

.markdown-body pre {
    overflow: auto;
    padding: 16px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.markdown-body code {
    background: rgba(255,255,255,0.08);
    padding: 0.15em 0.4em;
    border-radius: 8px;
}

.markdown-body pre code {
    background: transparent;
    padding: 0;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid rgba(255,255,255,0.14);
    padding: 12px;
}

.markdown-body blockquote {
    border-left: 4px solid #8b5cf6;
    margin: 18px 0;
    padding: 6px 0 6px 18px;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 0 14px 14px 0;
}

@media (max-width: 1100px) {
    .post-grid,
    .stats-grid,
    .feature-list,
    .editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-section,
    .article-layout,
    .about-layout,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        left: 16px;
        top: 16px;
        width: min(320px, calc(100vw - 32px));
        transform: translateX(-115%);
        transition: transform 0.25s ease;
        z-index: 30;
        height: auto;
        max-height: calc(100vh - 32px);
        overflow: auto;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 820px) {
    .site-nav {
        position: absolute;
        top: 82px;
        left: 16px;
        right: 16px;
        padding: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: rgba(15, 23, 42, 0.96);
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .post-grid,
    .feature-list,
    .stats-grid,
    .form-grid,
    .editor-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-date {
        justify-content: flex-start;
    }

    .site-header {
        border-radius: 24px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(var(--container), calc(100% - 20px));
    }

    .page-body,
    .admin-layout {
        padding: 20px 0 34px;
    }

    .admin-layout {
        padding: 12px;
    }

    .hero-section,
    .page-banner,
    .section-card,
    .post-card,
    .timeline-item,
    .archive-group,
    .article-main,
    .sidebar-card,
    .about-main,
    .about-side,
    .empty-state,
    .login-card,
    .footer-card,
    .filter-bar,
    .admin-topbar,
    .admin-sidebar {
        padding: 18px;
        border-radius: 22px;
    }

    .hero-text h1,
    .page-banner h1,
    .article-header h1,
    .about-main h1 {
        font-size: 1.9rem;
    }
}

.post-cover-wrap {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.post-cover,
.article-cover {
    width: 100%;
    object-fit: cover;
}

.post-cover {
    height: 190px;
    transition: transform 0.3s ease;
}

.post-cover-wrap:hover .post-cover {
    transform: scale(1.03);
}

.article-cover-wrap {
    margin-bottom: 18px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.article-cover {
    max-height: 420px;
}

.small-cover-wrap {
    border-radius: 16px;
}

.small-cover {
    height: 150px;
}

.related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recommend-card {
    padding: 18px;
    border-radius: 22px;
    display: grid;
    gap: 12px;
}

.recommend-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
}

.recommend-card p {
    margin: 0;
    color: var(--text-muted);
}

.article-recommend,
.comment-section {
    margin-top: 28px;
    padding-top: 10px;
}

.compact-header {
    margin-bottom: 16px;
}

.comment-form-card {
    padding: 24px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.06));
}

.comment-list {
    display: grid;
    gap: 14px;
}

.comment-children {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding-left: 18px;
    border-left: 2px solid rgba(255,255,255,0.08);
}

.comment-child-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

.comment-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.comment-reply-target {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(124, 58, 237, 0.28);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.14), rgba(59, 130, 246, 0.08));
}

.comment-reply-target p {
    margin: 6px 0 0;
}

.comment-card {
    border-radius: 22px;
    padding: 18px 20px;
}

.comment-head,
.comment-meta,
.comment-admin-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-head {
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-card p {
    margin: 0;
    line-height: 1.8;
    color: #d7e3f8;
}

.compact-empty {
    padding: 24px;
}

.upload-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.upload-toolbar input[type="file"] {
    max-width: 100%;
}

.preview-page-card {
    display: grid;
    gap: 18px;
}

.stats-grid-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.editor-textarea-sm {
    min-height: 260px;
}

.checkbox-field-box {
    padding-top: 0;
    align-items: flex-start;
}

.comment-snippet {
    max-width: 320px;
}

.action-row-stack {
    gap: 8px;
}

.about-markdown {
    margin-top: 22px;
}

@media (max-width: 1280px) {
    .stats-grid-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .related-grid,
    .stats-grid-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .related-grid,
    .stats-grid-6 {
        grid-template-columns: 1fr;
    }

    .post-cover {
        height: 180px;
    }

    .article-cover {
        max-height: 280px;
    }

    .comment-head {
        flex-direction: column;
        align-items: flex-start;
    }
}


.field-hint,
.field-label {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.taxonomy-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tag-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tag-toggle {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    padding: 10px 14px;
    border-radius: 999px;
}

.tag-toggle.active {
    background: rgba(124, 58, 237, 0.2);
    color: white;
    border-color: rgba(196, 181, 253, 0.4);
}

.reply-snippet {
    display: grid;
    gap: 4px;
}

.comment-reply {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
}

.tag-filter-wrap {
    align-items: center;
}

.filter-label {
    margin-right: 2px;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stats-grid-8 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .taxonomy-layout,
    .stats-grid-8 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .taxonomy-layout,
    .stats-grid-8 {
        grid-template-columns: 1fr;
    }
}


.admin-content {
    display: grid;
    gap: 18px;
}

.admin-list-grid,
.quick-card-list {
    display: grid;
    gap: 16px;
}

.admin-list-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-item-card,
.quick-item-card,
.comment-box-card,
.reply-editor-card {
    border-radius: 24px;
    padding: 20px;
    display: grid;
    gap: 14px;
}

.admin-item-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.1);
}

.admin-card-head,
.admin-card-meta,
.admin-card-actions,
.meta-pills,
.mobile-stack-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-card-head {
    justify-content: space-between;
    align-items: flex-start;
}

.admin-card-title {
    display: grid;
    gap: 6px;
}

.admin-card-title h3,
.quick-item-card h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.5;
}

.admin-card-desc,
.admin-card-text,
.quick-item-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.admin-kv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-kv {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: grid;
    gap: 6px;
}

.admin-kv span {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.admin-kv strong {
    line-height: 1.5;
    word-break: break-word;
}

.admin-card-actions {
    justify-content: flex-end;
    align-items: stretch;
}

.admin-card-actions > a,
.admin-card-actions > form {
    flex: 0 0 auto;
}

.admin-card-actions form {
    margin: 0;
}

.admin-card-actions .btn,
.editor-actions .btn,
.dashboard-actions .btn,
.toolbar-row .btn {
    min-height: 42px;
    white-space: nowrap;
}

.inline-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.empty-card {
    text-align: center;
}

.comment-form-card .form-grid,
.reply-editor-card .form-grid {
    gap: 18px;
}

.comment-rich-input,
.reply-rich-input {
    position: relative;
    display: grid;
    gap: 10px;
}

.comment-rich-input textarea,
.reply-rich-input textarea {
    min-height: 150px;
    border-radius: 22px;
    padding: 18px 18px 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.reply-editor-card textarea {
    min-height: 220px;
}

.comment-form-helper,
.reply-form-helper {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.comment-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.08);
}

.comment-reply {
    margin-top: 16px;
    padding: 18px 18px 16px;
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.24);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.18), rgba(59, 130, 246, 0.08));
}

.comment-reply-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #ddd6fe;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.upload-toolbar {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.editor-actions {
    row-gap: 12px;
}

.admin-sidebar {
    overflow-x: hidden;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-topbar > div:first-child {
    min-width: 0;
}

.admin-topbar h1,
.admin-topbar p {
    word-break: break-word;
}

.toolbar-row {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1100px) {
    .admin-kv-grid,
    .admin-list-grid.two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .toast-floating {
        bottom: 18px;
        width: min(94vw, 420px);
    }

    .admin-topbar {
        align-items: flex-start;
    }

    .admin-card-head,
    .comment-form-helper,
    .reply-form-helper {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-card-actions {
        justify-content: flex-start;
        gap: 8px;
    }

    .admin-card-actions > a,
    .admin-card-actions > form {
        flex: 0 0 auto;
    }

    .admin-card-actions .btn,
    .editor-actions .btn,
    .dashboard-actions .btn {
        padding: 10px 14px;
        font-size: 0.92rem;
    }

    .admin-kv-grid,
    .admin-list-grid.two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .admin-layout {
        gap: 14px;
    }

    .admin-main,
    .admin-content {
        gap: 14px;
    }

    .admin-item-card,
    .quick-item-card,
    .comment-box-card,
    .reply-editor-card,
    .toolbar-row {
        padding: 16px;
        border-radius: 20px;
    }

    .comment-form-card {
        padding: 18px;
    }

    .comment-rich-input textarea,
    .reply-rich-input textarea {
        min-height: 132px;
        padding: 16px;
    }

    .reply-editor-card textarea {
        min-height: 180px;
    }

    .comment-children {
        padding-left: 12px;
    }

    .comment-reply-target {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-card-actions,
    .editor-actions,
    .dashboard-actions,
    .toolbar-row {
        gap: 8px;
    }

    .admin-card-actions .btn,
    .admin-card-actions form,
    .editor-actions .btn,
    .dashboard-actions .btn {
        max-width: 100%;
    }

    .menu-toggle {
        flex: 0 0 auto;
    }
}


.footer-meta {
    display: flex;
    gap: 8px 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}


/* ===== v7 article layout + site icon upload ===== */
.article-layout-enhanced {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.85fr);
    align-items: start;
    gap: 22px;
}

.article-sidebar-enhanced {
    display: grid;
    gap: 18px;
    align-self: start;
    position: sticky;
    top: 104px;
}

.article-main {
    padding: clamp(22px, 2.5vw, 32px);
}

.article-header h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.15;
    margin-bottom: 16px;
}

.article-category-row {
    margin-bottom: 14px;
}

.article-meta-pills {
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.article-shortcuts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.article-shortcuts .btn {
    min-height: 42px;
}

.article-tags-extended {
    margin-top: 18px;
}

.article-cover-wrap {
    margin-bottom: 24px;
}

.article-cover {
    aspect-ratio: 16 / 8.2;
    max-height: none;
}

.article-body {
    font-size: 1.02rem;
    line-height: 1.95;
}

.article-body > :first-child {
    margin-top: 0;
}

.article-info-card h3,
.article-sidebar .sidebar-card h3 {
    margin: 0 0 14px;
}

.article-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.article-info-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.article-info-item span {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.article-info-item strong {
    line-height: 1.5;
    word-break: break-word;
}

.article-side-tags {
    margin-top: 16px;
}

.site-icon-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 22px;
}

.site-icon-preview-box {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: grid;
    place-items: center;
    flex: 0 0 82px;
    overflow: hidden;
}

.site-icon-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-icon-preview-fallback {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.site-icon-preview-copy {
    display: grid;
    gap: 8px;
}

.site-icon-preview-copy p {
    margin: 0;
}

@media (max-width: 1280px) {
    .article-layout-enhanced {
        grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    }
}

@media (max-width: 1100px) {
    .article-sidebar-enhanced {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .article-cover {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 900px) {
    .article-sidebar-enhanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .article-main {
        padding: 22px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-meta-pills {
        gap: 8px;
    }

    .article-meta-pills .inline-chip {
        width: auto;
    }

    .article-sidebar-enhanced {
        grid-template-columns: 1fr;
    }

    .article-body {
        font-size: 0.98rem;
        line-height: 1.9;
    }
}

@media (max-width: 560px) {
    .article-main,
    .article-sidebar .sidebar-card,
    .article-info-card {
        padding: 18px;
    }

    .article-header {
        padding-bottom: 18px;
        margin-bottom: 16px;
    }

    .article-header h1 {
        font-size: 1.72rem;
        margin-bottom: 14px;
    }

    .article-meta-pills .inline-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .article-shortcuts .btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }

    .article-cover {
        aspect-ratio: 16 / 10.5;
    }

    .article-info-grid {
        grid-template-columns: 1fr;
    }

    .site-icon-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ===== v8 post mobile layout + inline reply composer ===== */
.comment-header-bar {
    align-items: center;
    gap: 12px;
}

.comment-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-form-top-anchor {
    min-height: 0;
}

.comment-form-shell {
    margin-bottom: 18px;
}

.comment-form-shell form {
    display: grid;
    gap: 0;
}

.comment-inline-form-slot {
    margin-top: 14px;
}

.comment-inline-form-slot.is-active {
    display: block;
}

.comment-inline-form-slot .comment-form-shell {
    margin-bottom: 0;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.05));
    border: 1px solid rgba(124, 58, 237, 0.18);
}

.comment-inline-form-slot .comment-form-shell .editor-actions {
    margin-top: 14px;
}

.comment-card p,
.article-body p,
.article-body li,
.article-summary,
.article-info-item strong,
.sidebar-links a,
.recommend-card h3,
.recommend-card p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 1100px) {
    .article-layout-enhanced {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-sidebar-enhanced {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .article-main {
        padding: 20px;
    }

    .article-shortcuts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .article-shortcuts .btn {
        width: 100%;
        min-width: 0;
    }

    .article-sidebar-enhanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .comment-header-bar {
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .article-layout-enhanced {
        gap: 16px;
    }

    .article-main,
    .article-sidebar .sidebar-card,
    .article-info-card,
    .comment-form-shell,
    .comment-card,
    .recommend-card {
        border-radius: 18px;
    }

    .article-meta-pills {
        display: grid;
        grid-template-columns: 1fr;
    }

    .article-meta-pills .inline-chip {
        width: 100%;
    }

    .related-grid,
    .article-info-grid,
    .article-sidebar-enhanced,
    .article-shortcuts {
        grid-template-columns: 1fr;
    }

    .comment-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .comment-header-actions .btn {
        flex: 0 0 auto;
    }

    .comment-form-shell {
        padding: 18px;
    }

    .comment-inline-form-slot .comment-form-shell {
        padding: 16px;
    }
}

@media (max-width: 560px) {
    .article-main,
    .article-sidebar .sidebar-card,
    .article-info-card {
        padding: 16px;
    }

    .article-header h1 {
        font-size: 1.56rem;
        line-height: 1.25;
    }

    .article-summary {
        font-size: 0.95rem;
    }

    .article-body {
        font-size: 0.96rem;
        line-height: 1.85;
    }

    .comment-head {
        flex-direction: column;
        gap: 8px;
    }

    .comment-actions {
        gap: 8px;
    }

    .comment-actions .btn,
    .comment-header-actions .btn,
    .editor-actions .btn {
        min-width: 0;
    }

    .comment-form-shell,
    .comment-inline-form-slot .comment-form-shell {
        padding: 16px;
    }

    .comment-reply-target {
        padding: 12px 14px;
        border-radius: 16px;
    }
}


/* ===== v10 performance optimization ===== */
html.performance-lite {
    scroll-behavior: auto;
}

.performance-lite body {
    background: #0f172a;
}

.performance-lite .glass-card,
.performance-lite .soft-card,
.performance-lite .section-card,
.performance-lite .sidebar-card,
.performance-lite .footer-card,
.performance-lite .login-card,
.performance-lite .metric-card,
.performance-lite .page-banner,
.performance-lite .hero-section,
.performance-lite .filter-bar,
.performance-lite .timeline-item,
.performance-lite .post-card,
.performance-lite .archive-group,
.performance-lite .empty-state,
.performance-lite .article-main,
.performance-lite .about-main,
.performance-lite .about-side,
.performance-lite .admin-topbar,
.performance-lite .admin-sidebar {
    backdrop-filter: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.performance-lite *,
.performance-lite *::before,
.performance-lite *::after {
    animation: none !important;
    transition: none !important;
}

.card-grid,
.timeline-list,
.related-grid,
.admin-list-grid,
.comment-list,
.archive-timeline,
.sidebar-links,
.article-sidebar-enhanced {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.post-cover,
.article-cover,
.brand-logo,
.site-icon-preview-image,
.author-box img,
.user-inline img,
.about-side > img {
    height: auto;
}


@media (max-width: 768px) {
    body {
        background:
            linear-gradient(180deg, #0b1220, #0f172a 36%, #0a1020);
    }

    .glass-card,
    .soft-card,
    .section-card,
    .sidebar-card,
    .footer-card,
    .login-card,
    .metric-card,
    .page-banner,
    .hero-section,
    .filter-bar,
    .timeline-item,
    .post-card,
    .archive-group,
    .empty-state,
    .article-main,
    .about-main,
    .about-side,
    .admin-topbar,
    .admin-sidebar {
        backdrop-filter: none;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* ===== v11 header/sidebar visibility refinement ===== */
.site-header {
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.88), rgba(15, 23, 42, 0.82));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.26);
    backdrop-filter: blur(22px);
    transition: background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.site-header.is-scrolled {
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.96), rgba(15, 23, 42, 0.93));
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.34);
}

.site-nav {
    background: transparent;
}

.admin-sidebar {
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.94), rgba(15, 23, 42, 0.92));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 22px 52px rgba(2, 6, 23, 0.32);
    backdrop-filter: blur(24px);
}

.admin-sidebar::before,
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
}

.site-header > *,
.admin-sidebar > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 1100px) {
    .admin-sidebar {
        background: linear-gradient(180deg, rgba(11, 18, 32, 0.97), rgba(15, 23, 42, 0.95));
        box-shadow: 0 24px 56px rgba(2, 6, 23, 0.42);
    }
}

@media (max-width: 820px) {
    .site-nav {
        background: rgba(11, 18, 32, 0.98);
        border-color: rgba(148, 163, 184, 0.18);
        box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
    }

    .site-header {
        background: linear-gradient(180deg, rgba(11, 18, 32, 0.94), rgba(15, 23, 42, 0.91));
    }
}

@media (max-width: 560px) {
    .site-header {
        top: 10px;
        margin-top: 12px;
    }
}

.performance-lite .site-header,
.performance-lite .admin-sidebar {
    background: rgba(15, 23, 42, 0.96) !important;
    border-color: rgba(148, 163, 184, 0.16) !important;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28) !important;
}

.performance-lite .site-header::before,
.performance-lite .admin-sidebar::before {
    display: none;
}


/* ===== v12 footer centering ===== */
.site-footer .footer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.site-footer .footer-card > div {
    width: 100%;
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.site-footer .footer-card p {
    margin: 0;
    max-width: 760px;
}

.site-footer .footer-meta {
    justify-content: center;
    align-items: center;
    gap: 10px 16px;
}

.site-footer .footer-meta > span,
.site-footer .footer-meta > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 640px) {
    .site-footer .footer-card {
        gap: 14px;
    }

    .site-footer .footer-meta {
        gap: 8px 12px;
    }
}

/* v14 enhancements */
.status-pill.pending_review,
.status-pill.pending { background: rgba(251, 191, 36, 0.18); color: #fde68a; }
.status-pill.scheduled { background: rgba(168, 85, 247, 0.2); color: #e9d5ff; }
.status-pill.archived { background: rgba(14, 165, 233, 0.18); color: #bae6fd; }
.status-pill.trashed { background: rgba(148, 163, 184, 0.2); color: #e2e8f0; }

.footer-centered-card,
.footer-main-copy,
.footer-meta-centered {
    text-align: center;
}

.footer-meta-centered {
    justify-content: center;
}

.announcement-list {
    display: grid;
    gap: 16px;
}

.announcement-card {
    display: grid;
    gap: 10px;
}

.announcement-card.level-info { border: 1px solid rgba(59, 130, 246, 0.18); }
.announcement-card.level-success { border: 1px solid rgba(34, 197, 94, 0.18); }
.announcement-card.level-warning { border: 1px solid rgba(245, 158, 11, 0.18); }
.announcement-card.level-danger { border: 1px solid rgba(239, 68, 68, 0.18); }

.announcement-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.dashboard-wide-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.log-mini-card .admin-card-desc {
    margin-top: 8px;
}

.narrow-form-card {
    max-width: 720px;
}

.status-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.compact-status-row .btn {
    min-height: auto;
}

.article-toc-card {
    position: sticky;
    top: 108px;
}

.article-toc-nav {
    max-height: none;
    overflow: visible;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.toc-item {
    display: grid;
    gap: 8px;
}

.toc-item.level-2 { padding-left: 12px; }
.toc-item.level-3 { padding-left: 24px; }

.article-toc-nav a {
    display: block;
    color: #d8e5ff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.article-toc-nav a:hover,
.article-toc-nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.code-block-wrap {
    position: relative;
    margin: 20px 0;
    width: 100%;
}

.code-block-wrap pre {
    margin: 0;
    width: 100%;
    padding-top: 52px;
}

.code-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(15, 23, 42, 0.86);
    color: #f8fafc;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
}

.code-copy-btn:hover {
    background: rgba(30, 41, 59, 0.96);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    scroll-margin-top: 120px;
}

.markdown-body h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.markdown-body h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.markdown-body h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.markdown-body a {
    color: #8ab4ff;
}

.markdown-body hr {
    border: 0;
    height: 1px;
    background: rgba(255,255,255,0.14);
    margin: 28px 0;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 1.5rem;
}

.article-body > *:first-child,
.markdown-body > *:first-child {
    margin-top: 0;
}

.article-layout-enhanced {
    align-items: start;
}

.article-sidebar-enhanced {
    display: grid;
    gap: 18px;
}

.author-mini-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
}

.author-mini-row img {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    object-fit: cover;
}

.preview-toc-card {
    position: static;
}

@media (max-width: 1100px) {
    .dashboard-wide-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .article-toc-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .dashboard-wide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .announcement-head {
        grid-template-columns: 1fr;
    }

    .author-mini-row {
        grid-template-columns: 56px 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-wide-grid {
        grid-template-columns: 1fr 1fr;
    }

    .status-action-row {
        gap: 8px;
    }

    .code-copy-btn {
        top: 10px;
        right: 10px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .code-block-wrap pre {
        padding-top: 44px;
    }
}


/* v15 notice + scheduled publish */
.notice-section-card {
    overflow: hidden;
}

.notice-section-header p {
    margin: 8px 0 0;
    max-width: 720px;
}

.notice-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
    gap: 18px;
}

.announcement-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
}

.announcement-featured {
    min-height: 100%;
    padding: 24px;
    gap: 20px;
    isolation: isolate;
}

.announcement-featured .announcement-glow {
    position: absolute;
    inset: -30% auto auto -10%;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), rgba(255,255,255,0));
    pointer-events: none;
    z-index: -1;
}

.announcement-featured-top,
.announcement-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.announcement-featured-body,
.announcement-mini-body {
    display: grid;
    gap: 10px;
}

.announcement-featured-body h3,
.announcement-mini-body h3 {
    margin: 0;
}

.announcement-featured-body p,
.announcement-mini-body p {
    margin: 0;
    color: rgba(230, 236, 255, 0.82);
    line-height: 1.75;
}

.announcement-featured-body p {
    font-size: 1rem;
}

.announcement-featured-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: center;
}

.announcement-meta-note,
.announcement-time {
    color: rgba(216, 229, 255, 0.66);
    font-size: 0.84rem;
}

.announcement-side-list {
    align-content: start;
}

.announcement-mini-card {
    padding: 18px 18px 16px;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

[data-scheduled-publish-field] input[type="datetime-local"] {
    min-height: 48px;
}

@media (max-width: 980px) {
    .notice-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .announcement-featured {
        padding: 18px;
        border-radius: 22px;
    }

    .announcement-mini-card {
        padding: 16px;
        border-radius: 20px;
    }

    .announcement-featured-top,
    .announcement-head,
    .announcement-featured-actions {
        align-items: flex-start;
    }

    .announcement-featured-top,
    .announcement-head {
        flex-direction: column;
    }
}


/* v16 hero + notice + timezone */
.hero-section.hero-no-stats {
    grid-template-columns: minmax(0, 1fr);
}

.hero-section.hero-no-stats .hero-text {
    max-width: 760px;
}

.hero-text-wide {
    display: grid;
    align-content: center;
    min-height: 320px;
}

.hero-stats-panel {
    align-content: start;
    gap: 14px;
}

.hero-stats-intro {
    margin: 0 0 2px;
    color: rgba(216, 229, 255, 0.78);
    line-height: 1.7;
}

.notice-section-header p {
    max-width: 760px;
}

.notice-layout.notice-layout-single {
    grid-template-columns: 1fr;
}

.notice-overview-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: rgba(244, 247, 255, 0.88);
    font-size: 0.84rem;
}

.announcement-featured {
    background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
}

.announcement-featured-body h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.35;
}

.announcement-mini-body h3 {
    font-size: 1.02rem;
    line-height: 1.45;
}

.announcement-side-list {
    grid-auto-rows: minmax(0, auto);
}

@media (max-width: 980px) {
    .hero-text-wide {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .hero-section.hero-no-stats .hero-text {
        max-width: 100%;
    }

    .hero-stats-panel {
        gap: 12px;
    }

    .notice-overview-chip {
        width: fit-content;
    }
}

/* v18 home cards + article tri-column layout */
.home-module-card,
.home-module-card-shell {
    display: grid;
    gap: 0;
}

.home-hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-mini-card {
    min-height: 0;
}

.home-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.home-post-grid-latest {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-post-card,
.article-list-card {
    overflow: hidden;
    gap: 0;
    min-height: 100%;
}

.home-post-body {
    display: grid;
    gap: 14px;
    padding-top: 18px;
}

.home-post-cover-wrap,
.premium-small-cover-wrap {
    overflow: hidden;
    border-radius: 22px;
}

.home-post-cover {
    aspect-ratio: 16 / 9.4;
    transition: transform 0.35s ease;
}

.home-post-card:hover .home-post-cover,
.article-list-card:hover .article-list-cover,
.recommend-card-premium:hover .premium-small-cover {
    transform: scale(1.03);
}

.home-post-card h3,
.article-list-card h3,
.recommend-card-premium h3 {
    font-size: 1.18rem;
    line-height: 1.45;
}

.home-post-summary,
.article-list-summary,
.recommend-card-premium p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-post-footer {
    margin-top: auto;
}

.home-card-list {
    display: grid;
    gap: 16px;
}

.article-list-grid {
    margin-top: 22px;
}

.article-list-card {
    padding: 22px;
}

.article-list-cover {
    aspect-ratio: 16 / 9;
}

.article-layout-magazine {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 290px;
    grid-template-areas: 'toc main side';
    gap: 24px;
    align-items: start;
}

.article-layout-magazine.article-layout-no-toc {
    grid-template-columns: minmax(0, 1fr) 290px;
    grid-template-areas: 'main side';
}

.article-rail-left {
    grid-area: toc;
}

.article-main-column {
    grid-area: main;
    width: 100%;
    min-width: 0;
}

.article-rail-right {
    grid-area: side;
}

.article-rail {
    display: grid;
    gap: 18px;
    align-self: start;
}

.article-rail-left,
.article-rail-right {
    position: sticky;
    top: 102px;
    max-height: calc(100vh - 118px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 4px;
}

.article-rail-left::-webkit-scrollbar,
.article-rail-right::-webkit-scrollbar {
    width: 8px;
}

.article-rail-left::-webkit-scrollbar-thumb,
.article-rail-right::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.38);
    border-radius: 999px;
}

.article-rail-left::-webkit-scrollbar-track,
.article-rail-right::-webkit-scrollbar-track {
    background: transparent;
}

.article-toc-shell,
.author-profile-card,
.article-info-card-rail,
.article-tag-card {
    border-radius: 24px;
}

.article-rail-header {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.article-rail-header h3 {
    margin: 0;
}

.article-main-column {
    padding: clamp(24px, 2.6vw, 34px);
}
.article-toc-shell,
.author-profile-card,
.article-info-card-rail,
.article-tag-card {
    width: 100%;
}


.article-header-enhanced {
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.article-summary-wide {
    max-width: 78ch;
}

.article-shortcuts-main {
    margin-top: 20px;
}

.article-cover-wrap-premium {
    margin-bottom: 28px;
}

.article-cover-premium {
    aspect-ratio: 16 / 8;
    border-radius: 24px;
}

.article-body-premium {
    font-size: 1.05rem;
    line-height: 2;
}

.article-body-premium h2,
.article-body-premium h3 {
    margin-top: 1.8em;
}

.article-body-premium blockquote {
    margin: 22px 0;
    padding: 18px 20px;
    border-left: 3px solid rgba(124, 58, 237, 0.72);
    background: rgba(255,255,255,0.04);
    border-radius: 0 18px 18px 0;
}

.author-profile-row {
    grid-template-columns: 84px 1fr;
    align-items: start;
}

.author-profile-row img {
    width: 84px;
    height: 84px;
    border-radius: 24px;
}

.article-tag-card .article-side-tags {
    margin-top: 0;
}

.related-grid-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recommend-card-premium {
    display: grid;
    gap: 14px;
    overflow: hidden;
    border-radius: 24px;
}

.premium-small-cover {
    aspect-ratio: 16 / 8.8;
}

@media (max-width: 1320px) {
    .article-layout-magazine {
        grid-template-columns: 250px minmax(0, 1fr) 270px;
    }

    .home-post-grid,
    .home-post-grid-latest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1140px) {
    .article-layout-magazine,
    .article-layout-magazine.article-layout-no-toc {
        grid-template-columns: minmax(0, 1fr) 280px;
        grid-template-areas:
            'main side'
            'toc toc';
    }

    .article-rail-left,
    .article-rail-right {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .article-rail-left {
        order: 3;
    }

    .article-toc-shell {
        max-width: none;
    }
}

@media (max-width: 900px) {
    .article-layout-magazine,
    .article-layout-magazine.article-layout-no-toc {
        grid-template-columns: 1fr;
        grid-template-areas:
            'main'
            'side'
            'toc';
    }

    .article-rail-right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero-stats-grid,
    .home-post-grid,
    .home-post-grid-latest,
    .related-grid-premium,
    .post-grid.article-list-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .article-main-column,
    .article-toc-shell,
    .author-profile-card,
    .article-info-card-rail,
    .article-tag-card {
        padding: 18px;
        border-radius: 20px;
    }

    .article-header-enhanced {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .article-cover-premium,
    .home-post-cover,
    .article-list-cover,
    .premium-small-cover {
        border-radius: 18px;
    }

    .article-rail-right {
        grid-template-columns: 1fr;
    }

    .author-profile-row {
        grid-template-columns: 72px 1fr;
    }

    .author-profile-row img {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }
}


/* v19 home layout + wider desktop + mobile toc */
.hero-section.hero-with-stats {
    grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr);
    align-items: stretch;
}

.hero-section.hero-no-stats {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 340px;
}

.hero-section.hero-no-stats .hero-text,
.hero-text-wide {
    width: 100%;
    max-width: 100%;
}

.hero-section.hero-no-stats .hero-actions {
    margin-top: 8px;
}

.hero-stats-panel {
    align-self: stretch;
}

.home-hero-stats-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    align-items: stretch;
}

.home-hero-stats-grid .stat-card {
    min-height: 132px;
}

.article-layout-magazine {
    grid-template-columns: 280px minmax(0, 1.15fr) 300px;
    gap: 26px;
}

.article-layout-magazine.article-layout-no-toc {
    grid-template-columns: minmax(0, 1.15fr) 300px;
}

.article-main-column {
    overflow: hidden;
}

.article-main-column .comment-section {
    margin-top: 36px;
}

.article-body-premium {
    font-size: clamp(1rem, 0.98rem + 0.14vw, 1.08rem);
}

.article-body-premium > :first-child {
    margin-top: 0;
}

.toc-fab,
.toc-mobile-overlay,
.toc-mobile-panel {
    display: none;
}

@media (max-width: 1180px) {
    .hero-section.hero-with-stats {
        grid-template-columns: 1fr;
    }

    .home-hero-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1140px) {
    .article-layout-magazine,
    .article-layout-magazine.article-layout-no-toc {
        grid-template-columns: minmax(0, 1fr) 280px;
        grid-template-areas: 'main side';
    }

    .article-rail-left {
        display: none;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .article-rail-right {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .toc-fab {
        position: fixed;
        right: 18px;
        bottom: 18px;
        z-index: 45;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 72px;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.38);
        border-radius: 999px;
    }

    .toc-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 43;
        background: rgba(2, 6, 23, 0.52);
        backdrop-filter: blur(4px);
    }

    .toc-mobile-panel {
        position: fixed;
        right: 16px;
        bottom: 74px;
        z-index: 44;
        width: min(360px, calc(100vw - 32px));
        max-height: min(68vh, 560px);
        overflow: auto;
        padding: 18px;
        border-radius: 24px;
        background: rgba(15, 23, 42, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 28px 72px rgba(15, 23, 42, 0.46);
    }

    .toc-mobile-panel.is-open,
    .toc-mobile-overlay.is-open {
        display: block;
    }

    .toc-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .toc-mobile-header h3 {
        margin: 8px 0 0;
    }

    .toc-mobile-nav {
        max-height: none;
        padding-right: 4px;
    }
}

@media (max-width: 900px) {
    .hero-section.hero-no-stats {
        min-height: 0;
    }

    .home-hero-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .article-layout-magazine,
    .article-layout-magazine.article-layout-no-toc {
        grid-template-columns: 1fr;
        grid-template-areas:
            'main'
            'side';
    }
}

@media (max-width: 720px) {
    .home-hero-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .home-hero-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .toc-fab {
        right: 14px;
        bottom: 14px;
        min-width: 68px;
        padding-inline: 14px;
    }

    .toc-mobile-panel {
        right: 10px;
        bottom: 68px;
        width: calc(100vw - 20px);
        max-height: 72vh;
        padding: 16px;
        border-radius: 22px;
    }
}

/* v21 article header + comment hierarchy refinement */
.article-hero-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.article-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.article-hero-copy {
    min-width: 0;
}

.article-hero-side {
    min-width: 0;
}

.article-glance-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255,255,255,0.10);
}

.article-glance-head {
    display: grid;
    gap: 6px;
}

.article-glance-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.article-glance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.article-glance-item {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.article-glance-item span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.article-glance-item strong {
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.article-hero-tags {
    margin-top: 2px;
}

.comment-list {
    display: grid;
    gap: 18px;
}

.comment-card {
    position: relative;
    padding: 18px;
    border-radius: 24px;
}

.comment-card-root {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.16);
}

.comment-card-reply {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.09), rgba(255,255,255,0.035));
    border: 1px solid rgba(124, 58, 237, 0.22);
}

.comment-card-shell {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.comment-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.comment-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(59, 130, 246, 0.86));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 22px rgba(76, 29, 149, 0.24);
}

.comment-card-reply .comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    font-size: 0.95rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.92), rgba(124, 58, 237, 0.75));
}

.comment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.comment-head-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.comment-head-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(250, 245, 255, 0.96);
    background: rgba(124, 58, 237, 0.24);
    border: 1px solid rgba(139, 92, 246, 0.24);
}

.comment-role-badge-reply {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.2);
}

.comment-time {
    white-space: nowrap;
}

.comment-body-text {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
}

.comment-body-text p {
    margin: 0;
}

.comment-actions {
    margin-top: -2px;
}

.comment-children {
    position: relative;
    display: grid;
    gap: 14px;
    margin-top: 2px;
    padding-left: 18px;
}

.comment-children::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.48), rgba(59, 130, 246, 0.08));
}

.owner-reply-card {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.14), rgba(255,255,255,0.04));
    border: 1px solid rgba(14, 165, 233, 0.18);
}

.comment-reply-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-reply-body {
    display: grid;
    gap: 8px;
}

.comment-reply-body strong {
    font-size: 0.95rem;
}

.comment-reply-body p {
    margin: 0;
}

.comment-inline-form-slot {
    margin-top: 0;
}

.comment-inline-form-slot .comment-form-shell {
    margin-top: 4px;
}

@media (max-width: 1180px) {
    .article-hero-grid {
        grid-template-columns: 1fr;
    }

    .article-glance-card {
        padding: 16px;
    }
}

@media (max-width: 900px) {
    .comment-card {
        padding: 16px;
        border-radius: 20px;
    }

    .comment-card-shell {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;
    }

    .comment-avatar {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .comment-card-reply .comment-avatar {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }
}

@media (max-width: 680px) {
    .article-hero-grid,
    .article-glance-grid {
        grid-template-columns: 1fr;
    }

    .comment-card-shell {
        grid-template-columns: 1fr;
    }

    .comment-avatar {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }

    .comment-head {
        gap: 10px;
    }

    .comment-time {
        white-space: normal;
    }

    .comment-children {
        padding-left: 14px;
    }
}


.article-glance-card-sidebar {
    width: 100%;
}


.sidebar-recommend-card {
    display: grid;
    gap: 16px;
}

.sidebar-recommend-head h3 {
    margin: 0;
}

.sidebar-recommend-list {
    display: grid;
    gap: 14px;
}

.sidebar-recommend-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}

.sidebar-recommend-cover-wrap {
    display: block;
    width: 88px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
}

.sidebar-recommend-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-recommend-body {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.sidebar-recommend-body .post-card-meta {
    margin: 0;
}

.sidebar-recommend-body h4 {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.45;
}

.sidebar-recommend-body h4 a {
    color: inherit;
    text-decoration: none;
}

.sidebar-recommend-body h4 a:hover {
    color: var(--accent);
}

.sidebar-recommend-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1180px) {
    .sidebar-recommend-item {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .sidebar-recommend-cover-wrap {
        width: 76px;
    }
}

@media (max-width: 900px) {
    .sidebar-recommend-item {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .sidebar-recommend-cover-wrap {
        width: 92px;
    }
}

@media (max-width: 680px) {
    .sidebar-recommend-item {
        grid-template-columns: 1fr;
    }

    .sidebar-recommend-cover-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}
