.comments-section {
    margin-top: 28px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.comments-section__title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}
.comments-section__title .cmt-count {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400;
}
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 12px;
}
.comment-item__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.comment-item__body {
    flex: 1;
    min-width: 0;
}
.comment-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.comment-item__user {
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
}
.comment-item__user:hover { color: #2aae67; }
.comment-item__time {
    color: #94a3b8;
    font-size: 12px;
}
.comment-item__del {
    margin-left: auto;
    padding: 3px 10px;
    font-size: 12px;
    color: #ef4444;
    background: #fff1f1;
    border: 1px solid #fecaca;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.comment-item__del:hover {
    color: #fff;
    background: #ef4444;
    border-color: #ef4444;
}
.comment-item__del:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.comment-item__edit {
    padding: 3px 10px;
    font-size: 12px;
    color: #2aae67;
    background: #e9f9f1;
    border: 1px solid #bfe8d3;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.comment-item__edit:hover {
    color: #fff;
    background: #2aae67;
    border-color: #2aae67;
}
.comment-item__editor {
    margin-top: 6px;
}
.comment-item__editor textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #2aae67;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}
.comment-item__edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}
.comment-item__save,
.comment-item__cancel {
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all .2s;
}
.comment-item__save {
    color: #fff;
    background: #2aae67;
}
.comment-item__save:hover { background: #239254; }
.comment-item__save:disabled { opacity: .6; cursor: not-allowed; }
.comment-item__cancel {
    color: #475569;
    background: #eef2f6;
}
.comment-item__cancel:hover { background: #e0e6ec; }
.comment-item__text {
    color: #334155;
    line-height: 1.6;
    word-break: break-word;
}
.comment-empty {
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
    background: #f8fafc;
    border-radius: 12px;
}
.comment-form { margin-top: 20px; }
.comment-form textarea {
    width: 100%;
    min-height: 96px;
    padding: 12px;
    border: 1px solid #dde4eb;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.comment-form textarea:focus { border-color: #2aae67; }
.comment-form__btn {
    margin-top: 10px;
    background: #2aae67;
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
.comment-form__btn:hover { background: #1f8f58; }
.comment-form__btn:disabled { opacity: .6; cursor: not-allowed; }
.comment-login-tip {
    color: #64748b;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
}
.comment-login-tip a { color: #2aae67; font-weight: 600; }
.comment-form__msg {
    margin-top: 8px;
    font-size: 13px;
}
.comment-form__msg.ok { color: #16a34a; }
.comment-form__msg.err { color: #dc2626; }

@media (max-width: 640px) {
    .comment-item { padding: 12px; }
    .comment-item__avatar { width: 34px; height: 34px; }
}


/* ===== 暗色主题适配（data-theme="dark"） ===== */
[data-theme="dark"] .comments-section__title{color:#f0f0f0}
[data-theme="dark"] .comment-item__body{background:#1e1e1e;border-color:#333}
[data-theme="dark"] .comment-item__user{color:#f0f0f0}
[data-theme="dark"] .comment-item__time{color:#8a94a6}
[data-theme="dark"] .comment-item__text{color:#c8cdd6}
[data-theme="dark"] .comment-item__del,.comment-item__edit{color:#8a94a6}
[data-theme="dark"] .comment-item__editor textarea{background:#2b2d30;color:#f0f0f0;border-color:#444}
[data-theme="dark"] .comment-form textarea{background:#2b2d30;color:#f0f0f0;border-color:#444}
[data-theme="dark"] .comment-empty{color:#8a94a6}
[data-theme="dark"] .comment-login-tip{color:#8a94a6}


/* ===== 暗色补充：评论区 / 空态 / 登录提示 ===== */
[data-theme="dark"] .comments-section{background:#1e1e1e;border-color:#333}
[data-theme="dark"] .comment-empty{background:#2b2d30}
[data-theme="dark"] .comment-login-tip{background:#2b2d30}
[data-theme="dark"] .comment-login-tip a{color:#4ecb9c}
