/* ==========================================================================
   Lumina · components.css
   文章列表 / 标签胶囊 / 侧栏卡片 / 分页 / 正文排版 / 评论区
   ========================================================================== */

/* ------------------------------ 通用元信息 ------------------------------ */

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-3);
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
}

.meta-item .icon {
    width: 13px;
    height: 13px;
}

/* ------------------------------ 文章列表 ------------------------------ */

.post-list-card {
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.post-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 14px 0;
}

.post-item + .post-item {
    border-top: 1px solid var(--border);
}

.post-thumb {
    flex: none;
    width: 246px;
    height: 130px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-2);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-item:hover .post-thumb img {
    transform: scale(1.04);
}

.post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 130px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

/* 置顶文章角标 */
.post-thumb {
    position: relative;
}

.pin-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(37, 134, 254, 0.35);
}

.post-item--pinned .post-title a {
    color: var(--primary);
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    height: 21px;
    padding: 0 8px;
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tag-chip:hover {
    color: #fff;
    opacity: 0.88;
    transform: translateY(-1px);
}

/* 标签色板：与设计稿实色胶囊一致 */
.tag-chip--blue   { background: #2586fe; }
.tag-chip--green  { background: #34c759; }
.tag-chip--orange { background: #f5a623; }
.tag-chip--purple { background: #8b5cf6; }
.tag-chip--teal   { background: #14b8a6; }
.tag-chip--mint   { background: #2ec4a6; }
.tag-chip--violet { background: #a855f7; }
.tag-chip--sky    { background: #38bdf8; }
.tag-chip--indigo { background: #6366f1; }
.tag-chip--pink   { background: #ec4899; }

.post-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.post-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 6px;
    color: var(--text-3);
    font-size: 13.5px;
    line-height: 1.75;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 8px;
}

/* ------------------------------ 空状态 ------------------------------ */

.empty-state {
    padding: 56px 20px;
    text-align: center;
}

.empty-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
}

.empty-title {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 600;
}

.empty-desc {
    margin-top: 6px;
    color: var(--text-3);
    font-size: 13px;
}

.empty-button {
    display: inline-flex;
    align-items: center;
    height: 36px;
    margin-top: 18px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-size: 13px;
}

.empty-button:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ------------------------------ 分页 ------------------------------ */

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination a,
.pagination > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-2);
    font-size: 13px;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pagination > span {
    background: transparent;
    color: var(--text-4);
    padding: 0;
}

.pagination a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.pagination a.is-current {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 134, 254, 0.24);
}

.pagination a.is-prev,
.pagination a.is-next {
    gap: 3px;
    padding: 0 13px;
}

.pagination a.is-prev .icon,
.pagination a.is-next .icon {
    width: 12px;
    height: 12px;
}

/* ------------------------------ 侧栏：资料卡 ------------------------------ */

.profile-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.profile-cover {
    position: relative;
    height: 130px;
    background-color: var(--surface-2);
    background-position: center;
    background-size: cover;
}

.profile-cover-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(37, 134, 254, 0.06) 0%, rgba(29, 41, 59, 0) 60%);
}

.profile-body {
    position: relative;
    margin-top: -52px;
    padding: 0 22px 22px;
    text-align: center;
}

.profile-avatar {
    display: block;
    width: 104px;
    height: 104px;
    margin: 0 auto;
    border: 4px solid var(--surface);
    border-radius: 50%;
    background: var(--surface);
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(29, 41, 59, 0.1);
}

.profile-name {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.profile-bio {
    margin-top: 5px;
    color: var(--text-3);
    font-size: 13px;
    line-height: 1.6;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.profile-stat strong {
    display: block;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.profile-stat span {
    display: block;
    margin-top: 2px;
    color: var(--text-3);
    font-size: 12.5px;
}

/* ------------------------------ 侧栏：通用卡片 ------------------------------ */

.side-card {
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.side-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.side-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.side-icon .icon {
    width: 15px;
    height: 15px;
}

.side-icon--red {
    background: #ffeeef;
    color: #ff4d4f;
}

.side-icon--blue {
    background: var(--primary-soft);
    color: var(--primary);
}

.side-icon--violet {
    background: #f1ecff;
    color: #8b5cf6;
}

.side-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.side-more {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    margin-left: auto;
    color: var(--primary);
    font-size: 12.5px;
    white-space: nowrap;
}

.side-more:hover {
    color: var(--primary-dark);
}

.side-more .icon {
    width: 11px;
    height: 11px;
}

.side-empty {
    padding: 12px 0;
    color: var(--text-3);
    font-size: 13px;
}

/* ------------------------------ 侧栏：热门文章 ------------------------------ */

.hot-list {
    display: flex;
    flex-direction: column;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
}

.hot-rank {
    display: grid;
    place-items: center;
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #c9ced8;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
}

.hot-rank--1 { background: #ff4d4f; }
.hot-rank--2 { background: #f5a623; }
.hot-rank--3 { background: #2586fe; }

.hot-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-title:hover {
    color: var(--primary);
}

.hot-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: none;
    color: var(--text-3);
    font-size: 12px;
}

.hot-views .icon {
    width: 13px;
    height: 13px;
}

/* ------------------------- 侧栏：分类导航（紧凑胶囊） ------------------------- */

.category-card {
    padding: 16px 18px;
}

.category-card .side-card-head {
    margin-bottom: 12px;
}

/* 默认多行自适应；分类超过 6 个时改为单行横向滚动 */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-nav--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px;
    margin: 0 -2px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.category-nav--scroll::-webkit-scrollbar {
    height: 4px;
}

.category-nav--scroll::-webkit-scrollbar-track {
    background: transparent;
}

.category-nav--scroll::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background: var(--border-strong);
}

.category-nav--scroll .category-item {
    flex: 0 0 auto;
    max-width: 240px;
    scroll-snap-align: start;
}

/* 44px 高度保证移动端最小点击区域 */
.category-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
        transform 0.2s ease;
}

.category-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(29, 41, 59, 0.08);
}

.category-item.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(37, 134, 254, 0.28);
}

.category-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 16px;
    height: 16px;
}

.category-icon .icon {
    width: 16px;
    height: 16px;
}

.category-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tone-blue {
    background: #eaf3ff;
    color: #2586fe;
}

.tone-orange {
    background: #fff3e7;
    color: #f5a623;
}

.tone-mint {
    background: #e7f8f2;
    color: #10b981;
}

.tone-violet {
    background: #f1ecff;
    color: #8b5cf6;
}

.tone-indigo {
    background: #eceefe;
    color: #6366f1;
}

.tone-teal {
    background: #e5f8f8;
    color: #0ea5a5;
}

/* ------------------------------ 侧栏：标签云 ------------------------------ */

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 13px;
    background: var(--surface-3);
    color: var(--text-2);
    font-size: 12.5px;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.tag-pill:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.tag-pill.is-hot {
    background: var(--primary-soft);
    color: var(--primary);
}

/* ------------------------------ 面包屑 ------------------------------ */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--text-3);
    font-size: 13px;
}

.breadcrumb a {
    color: var(--text-3);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    color: var(--text-4);
}

/* ------------------------------ 文章主体 ------------------------------ */

.article-card {
    padding: 30px 34px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.article-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 14px;
}

.article-content {
    margin-top: 26px;
}

.article-foot {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.article-tags-label {
    flex: none;
    padding-top: 4px;
    color: var(--text-3);
    font-size: 13px;
}

/* ------------------------------ 正文排版 ------------------------------ */

.prose {
    color: var(--text);
    font-size: 15px;
    line-height: 1.9;
    word-wrap: break-word;
}

.prose > * + * {
    margin-top: 18px;
}

.prose p {
    color: var(--text);
}

.prose h2 {
    margin-top: 34px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.5;
}

.prose h3 {
    margin-top: 26px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.prose h4 {
    margin-top: 22px;
    font-size: 16px;
    font-weight: 700;
}

.prose ul,
.prose ol {
    padding-left: 22px;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li + li {
    margin-top: 6px;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(37, 134, 254, 0.35);
    text-underline-offset: 3px;
}

.prose a:hover {
    text-decoration-color: var(--primary);
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.prose figure {
    margin: 24px 0;
}

.prose figcaption {
    margin-top: 8px;
    color: var(--text-3);
    font-size: 12.5px;
    text-align: center;
}

.prose blockquote {
    padding: 14px 18px;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface-2);
    color: var(--text-2);
}

.prose blockquote > * + * {
    margin-top: 10px;
}

.prose code {
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--surface-2);
    color: #d6455d;
    font-family: var(--font-mono);
    font-size: 13px;
}

.prose pre {
    overflow-x: auto;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: #1f2430;
    color: #e6edf7;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.75;
}

.prose pre code {
    padding: 0;
    background: none;
    color: inherit;
    font-size: inherit;
}

.prose hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.prose th,
.prose td {
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    text-align: left;
}

.prose th {
    background: var(--surface-2);
    font-weight: 600;
}

/* ------------------------------ 评论区 ------------------------------ */

.comments-card {
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.comments-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.comments-title {
    position: relative;
    padding-left: 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.005em;
}

.comments-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #2586fe 0%, #63acff 100%);
}

.comments-count {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}

/* ---- 发表评论表单 ---- */

.respond {
    margin-top: 0;
    padding: 22px 24px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.cancel-comment-reply {
    margin-bottom: 10px;
}

.cancel-comment-reply a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--primary-soft);
    transition: background-color 0.2s ease;
}

.cancel-comment-reply a:hover {
    background: rgba(37, 134, 254, 0.18);
}

.respond-title {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.comment-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 12.5px;
    margin-bottom: 12px;
}

.comment-login a {
    color: var(--primary);
    font-weight: 500;
}

.comment-login a:hover {
    text-decoration: underline;
}

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

.comment-field {
    margin: 0;
}

.comment-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-3);
    font-size: 12px;
}

.comment-field .required {
    color: #ef4444;
}

.comment-field input,
.comment-textarea textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.comment-field input {
    height: 40px;
    padding: 0 14px;
}

.comment-textarea {
    margin-top: 12px;
}

.comment-textarea textarea {
    min-height: 120px;
    padding: 14px 16px;
    line-height: 1.8;
    resize: vertical;
    font-family: inherit;
}

.comment-field input::placeholder,
.comment-textarea textarea::placeholder {
    color: var(--text-4);
}

.comment-field input:focus,
.comment-textarea textarea:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(37, 134, 254, 0.14);
}

.comment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.comment-tip {
    color: var(--text-4);
    font-size: 12px;
}

.comment-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2586fe 0%, #1f7bf2 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(37, 134, 254, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.comment-submit:hover {
    background: linear-gradient(135deg, #1f7bf2 0%, #1768d6 100%);
    box-shadow: 0 4px 14px rgba(37, 134, 254, 0.38);
}

.comment-submit:active {
    transform: scale(0.98);
}

.comment-submit.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ---- 列表与表单之间的分隔 ---- */

.comment-list-wrap {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

/* ---- 评论列表 ---- */

.comment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* 头像独立一列，昵称 / 正文 / 时间都与昵称左对齐 */
.comment-body {
    position: relative;
    display: grid;
    grid-template-columns: 40px auto auto minmax(0, 1fr);
    grid-template-areas:
        "avatar head  head  head"
        "avatar body  body  body"
        "avatar meta  reply .";
    column-gap: 10px;
    row-gap: 5px;
    padding: 0;
    background: none;
    border: 0;
}

.comment-body.comment-child,
.comment-body.depth-3 {
    background: none;
}

/* 拆开作者容器，让头像和昵称分别进入各自的网格单元 */
.comment-author,
.comment-author > span {
    display: contents;
}

.comment-author img,
.comment-author .avatar,
.comment-author .comment-avatar {
    grid-area: avatar;
    align-self: start;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author .fn {
    grid-area: head;
    align-self: center;
    color: var(--text);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.comment-author .fn a {
    color: inherit;
}

.comment-author .fn a:hover {
    color: var(--primary);
}

.comment-meta {
    grid-area: meta;
    color: var(--text-3);
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
}

.comment-meta a {
    color: var(--text-3);
}

.comment-meta a:hover {
    color: var(--primary);
}

.comment-awaiting-moderation {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    font-size: 11.5px;
    font-style: normal;
    font-weight: 500;
}

.comment-content {
    grid-area: body;
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.75;
    word-break: break-word;
}

.comment-content p + p {
    margin-top: 8px;
}

.comment-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
}

.comment-content code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--surface-3);
    color: var(--primary);
    font-size: 12.5px;
}

.comment-content pre {
    padding: 12px;
    border-radius: 8px;
    background: var(--surface-3);
    overflow-x: auto;
    font-size: 12.5px;
    margin: 10px 0;
}

.comment-reply {
    grid-area: reply;
    display: flex;
    align-items: center;
}

.comment-reply a {
    color: var(--text-3);
    font-size: 12px;
    transition: color 0.18s ease;
}

.comment-reply a:hover {
    color: var(--primary);
}

.comment-children {
    /* 子评论容器是 .comment-body（grid）的直接子元素，必须横跨整行，
       否则会被自动排进第一列（auto 宽度）而被挤成窄条 */
    grid-column: 1 / -1;
    margin-top: 12px;
    margin-left: 50px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--surface-2);
}

.comment-children .comment-list {
    gap: 20px;
}

/* 三级及更深的回复：面板再提亮一级并继续缩进 */
.comment-children .comment-children {
    margin-left: 42px;
    background: var(--surface-3);
}

.comments-empty,
.comments-closed {
    margin-top: 16px;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text-3);
    font-size: 13px;
}

.comments-closed {
    color: var(--text-4);
}

.comment-page-nav {
    margin-top: 20px;
}

/* ------------------------------ 组件响应式 ------------------------------ */

@media (max-width: 1024px) {
    .post-list-card {
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    .post-thumb {
        width: 210px;
        height: 118px;
    }

    .post-body {
        min-height: 118px;
    }

    .article-card,
    .comments-card {
        padding: 24px 22px;
    }

    .comment-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 窄屏：子评论取消大缩进，避免正文被挤得过窄 */
    .comment-children {
        margin-left: 0;
        padding: 14px;
    }

    .comment-children .comment-children {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .post-item {
        gap: 14px;
        padding: 12px 0;
    }

    .post-thumb {
        width: 150px;
        height: 92px;
    }

    .post-body {
        min-height: 92px;
    }

    .post-title {
        font-size: 16px;
    }

    .post-excerpt {
        -webkit-line-clamp: 1;
        font-size: 12.5px;
    }

    .post-meta {
        gap: 10px;
        padding-top: 6px;
    }

    .post-meta .meta-item {
        font-size: 11.5px;
    }

    .article-title {
        font-size: 23px;
    }

    .article-tags {
        flex-direction: column;
        gap: 8px;
    }

    .profile-body {
        padding: 0 18px 18px;
    }

    /* 分类导航：收紧内边距，保持 44px 触控高度 */
    .category-card {
        padding: 14px 16px;
    }

    .category-item {
        gap: 6px;
        padding: 0 10px;
        font-size: 12.5px;
    }
}

@media (max-width: 520px) {
    /* 窄屏列表改为纵向排列，保证 320px 可用 */
    .post-item {
        flex-direction: column;
        gap: 10px;
    }

    .post-thumb {
        width: 100%;
        height: 160px;
    }

    .post-body {
        min-height: 0;
        width: 100%;
    }

    .post-meta {
        margin-top: 8px;
        padding-top: 0;
    }

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

    .comment-submit {
        width: 100%;
    }
}
