/* ============================================
   留言板页面 - GFL 统一风格
   ============================================ */

/* ---------- 基础 ---------- */
.comment-page {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-content, #334155);
    margin: -1px -1px 0;
}

.comment-page p {
    margin: 0 0 10px;
}

.comment-page p:last-child {
    margin-bottom: 0;
}

.comment-page svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    stroke-width: 2;
}

/* ---------- 全局链接 ---------- */
.comment-page a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
}
.comment-page a:hover {
    color: var(--color-link-hover);
}

/* ---------- 公共按钮 ---------- */
.comment-page .ac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    line-height: 1;
}
.comment-page .ac-btn-primary {
    background: var(--theme-color, #41B883);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(65, 184, 131, 0.35);
}
.comment-page .ac-btn-primary:hover {
    background: var(--color-link-hover, #2e9d6b);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -2px rgba(65, 184, 131, 0.5);
}

/* ---------- Hero 区域 ---------- */
.comment-hero {
    position: relative;
    padding: 60px 40px 70px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--bg-card, #fff) 0%, var(--bg-secondary, #f8fafc) 100%);
    border: 1px solid var(--border-primary, #e5e7eb);
}

.comment-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.comment-hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: comment-float 8s ease-in-out infinite;
}

.comment-hero__blob--1 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--theme-color, #41B883), #6dd5a0);
    top: -80px;
    right: -60px;
    animation-delay: 0s;
}

.comment-hero__blob--2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    bottom: -60px;
    left: 10%;
    animation-delay: -3s;
    opacity: 0.3;
}

.comment-hero__blob--3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    top: 30%;
    right: 30%;
    animation-delay: -5s;
    opacity: 0.25;
}

@keyframes comment-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.comment-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.comment-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(65, 184, 131, 0.12);
    color: var(--theme-color, #41B883);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.comment-hero__badge svg {
    width: 16px;
    height: 16px;
}

.comment-hero__title {
    font-size: 38px;
    font-weight: 700;
    color: var(--caption-color, #1e293b);
    margin: 0 0 14px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.comment-hero__desc {
    font-size: 16px;
    color: var(--text-secondary, #475569);
    margin: 0 0 28px;
    line-height: 1.7;
}

.comment-hero__stats {
    display: flex;
    gap: 40px;
    margin-bottom: 28px;
}

.comment-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-hero__stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--theme-color, #41B883);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--theme-color, #41B883), #6dd5a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comment-hero__stat-num--text {
    font-size: 26px;
    font-variant-numeric: tabular-nums;
}

.comment-hero__stat-label {
    font-size: 13px;
    color: var(--text-tertiary, #64748b);
}

.comment-page .comment-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--theme-color, #41B883);
    border-radius: 999px;
    box-shadow: 0 4px 12px -2px rgba(65, 184, 131, 0.35);
    transition: all 0.25s ease;
}
.comment-page .comment-hero__cta,
.comment-page .comment-hero__cta > span {
    color: #fff;
}
.comment-page .comment-hero__cta:hover {
    background: var(--color-link-hover, #2e9d6b);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -2px rgba(65, 184, 131, 0.5);
}

/* ---------- 编辑器内容 ---------- */
.comment-content {
    margin-bottom: 30px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* ---------- 区块通用 ---------- */
.comment-section {
    margin-bottom: 40px;
}

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

.comment-section__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(65, 184, 131, 0.12), rgba(65, 184, 131, 0.06));
    color: var(--theme-color, #41B883);
    border-radius: 12px;
    border: 1px solid rgba(65, 184, 131, 0.2);
}

.comment-section__icon svg {
    width: 22px;
    height: 22px;
}

.comment-section__icon--gradient {
    background: linear-gradient(135deg, var(--theme-color, #41B883), #6dd5a0);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(65, 184, 131, 0.4);
}

.comment-section__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--caption-color, #1e293b);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.comment-section__subtitle {
    font-size: 14px;
    color: var(--text-tertiary, #64748b);
    margin: 4px 0 0;
    line-height: 1.5;
}

.comment-section__subtitle strong {
    color: var(--theme-color, #41B883);
    font-weight: 600;
}

/* ---------- 三卡片网格 ---------- */
.comment-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 0;
}

.comment-card-box {
    position: relative;
    padding: 26px 24px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-primary, #e5e7eb);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.comment-card-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme-color, #41B883);
    opacity: 0.8;
}

.comment-card-box--primary::before {
    background: linear-gradient(90deg, var(--theme-color, #41B883), #6dd5a0);
}

.comment-card-box--accent::before {
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
}

.comment-card-box--warn::before {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.comment-card-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--border-hover, #cbd5e1);
}

.comment-card-box__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 16px;
    color: var(--theme-color, #41B883);
    background: rgba(65, 184, 131, 0.1);
}

.comment-card-box__icon svg {
    width: 24px;
    height: 24px;
}

.comment-card-box--primary .comment-card-box__icon {
    color: var(--theme-color, #41B883);
    background: rgba(65, 184, 131, 0.1);
}

.comment-card-box--accent .comment-card-box__icon {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.comment-card-box--warn .comment-card-box__icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.comment-card-box__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--caption-color, #1e293b);
    margin: 0 0 12px;
    line-height: 1.4;
}

.comment-card-box__content {
    font-size: 14px;
    color: var(--text-secondary, #475569);
    line-height: 1.7;
}

.comment-card-box__content p {
    margin: 0 0 6px;
}

.comment-card-box__content p:last-child {
    margin-bottom: 0;
}

.comment-card-box__content strong {
    color: var(--text-primary, #1e293b);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
}

/* ---------- 主体两栏布局 ---------- */
.comment-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

/* ---------- 左栏：墙主寄语 + 须知 ---------- */
.comment-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-host {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-host::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-color, #41B883), #6dd5a0);
    border-radius: 14px 14px 0 0;
}

.comment-host:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--border-hover, #cbd5e1);
}

.comment-host__avatar {
    position: relative;
    width: 88px;
    height: 88px;
    margin-bottom: 14px;
}

.comment-host__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 2px var(--theme-color, #41B883);
    display: block;
}

.comment-host__role {
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    font-size: 11px;
    color: #fff;
    background: var(--theme-color, #41B883);
    border-radius: 999px;
    white-space: nowrap;
}

.comment-host__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 600;
    color: var(--caption-color);
    margin: 0 0 4px;
}

.comment-host__title svg {
    color: var(--theme-color, #41B883);
    font-size: 18px;
}

.comment-host__nickname {
    font-size: 13px;
    color: var(--text-tertiary, #64748b);
    margin-bottom: 14px;
}

.comment-host__message {
    position: relative;
    font-size: 14px;
    color: var(--theme-color, #41B883);
    line-height: 1.6;
    padding: 14px 18px;
    margin-top: 4px;
    background: linear-gradient(135deg,
        rgba(65, 184, 131, 0.10) 0%,
        rgba(80, 156, 255, 0.08) 100%);
    border: 1px solid rgba(65, 184, 131, 0.28);
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-style: italic;
    font-family: "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
    letter-spacing: 1px;
}

.comment-host__message::before {
    content: '\201C';
    position: absolute;
    top: 4px;
    left: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1;
    color: var(--theme-color, #41B883);
    opacity: 0.45;
    pointer-events: none;
}
.comment-host__message::after {
    content: '\201D';
    position: absolute;
    bottom: -2px;
    right: 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1;
    color: var(--theme-color, #41B883);
    opacity: 0.35;
    pointer-events: none;
}

/* ---------- 留言须知 ---------- */
.comment-rules {
    position: relative;
    padding: 26px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-rules::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    border-radius: 14px 14px 0 0;
}

.comment-rules:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--border-hover, #cbd5e1);
}

.comment-rules__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--caption-color);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-secondary);
}

.comment-rules__title svg {
    color: #8b5cf6;
    font-size: 20px;
}

.comment-rules__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rules-counter;
}

.comment-rules__item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-content);
    line-height: 1.7;
    border-bottom: 1px dashed var(--border-secondary);
}

.comment-rules__item:last-child {
    border-bottom: none;
}

.comment-rules__num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #8b5cf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.comment-rules__text {
    flex: 1;
    min-width: 0;
}

/* ---------- 右栏：留言表单 ---------- */
.comment-form {
    position: relative;
    padding: 26px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-color, #41B883), #509cff);
    border-radius: 14px 14px 0 0;
}

.comment-form:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--border-hover, #cbd5e1);
}

.comment-form__head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-secondary);
}

.comment-form__head-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--caption-color);
    margin: 0 0 6px;
}

.comment-form__head-title svg {
    color: var(--theme-color, #41B883);
    font-size: 20px;
}

.comment-form__head-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.comment-form__body {
    color: var(--text-content);
}

/* 昵称 + 邮箱左右两栏 */
.comment-form__author-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 14px;
}
.comment-form__author-fields p {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}
.comment-form__author-fields label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.comment-form__author-fields input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}
.comment-form__author-fields input:focus {
    outline: none;
    border-color: var(--theme-color, #41B883);
    background: var(--bg-card);
}
@media (max-width: 480px) {
    .comment-form__author-fields {
        flex-direction: column;
    }
}

/* ---------- 表单错误状态 ---------- */
.comment-page .comment-form input.has-error,
.comment-page .comment-form textarea.has-error {
    border-color: var(--color-danger, #f56c6c);
    background: var(--color-danger-bg, #fef0f0);
}
.comment-page .comment-form input.has-error:focus,
.comment-page .comment-form textarea.has-error:focus {
    border-color: var(--color-danger, #f56c6c);
    box-shadow: 0 0 0 2px rgba(245, 108, 108, 0.15);
}

.comment-page .comment-form__error {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    margin: 8px 0 0;
    padding: 6px 12px 6px 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #fff;
    background: var(--color-danger, #f56c6c);
    border-radius: 6px;
    box-shadow: 0 4px 12px -2px rgba(245, 108, 108, 0.35);
    animation: commentFormErrorIn 0.25s ease;
}
.comment-page .comment-form__error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    flex-shrink: 0;
}
.comment-page .comment-form__error::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 14px;
    width: 10px;
    height: 10px;
    background: var(--color-danger, #f56c6c);
    transform: rotate(45deg);
    border-radius: 1px;
}
@keyframes commentFormErrorIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.comment-form__closed {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* ----- 评论表单字段 ----- */
.comment-form__wpform {
    margin: 0;
}

.comment-form__title {
    display: none;
}

.comment-form__subtitle {
    margin: -8px 0 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.comment-form__field {
    margin-bottom: 16px;
}

.comment-form__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.comment-form__wpform .comment-notes,
.comment-form__wpform .comment-form-comment {
    margin: 0 0 14px;
}

.comment-form__wpform input[type="text"],
.comment-form__wpform input[type="email"],
.comment-form__wpform input[type="url"],
.comment-form__wpform textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
    font-family: inherit;
}

.comment-form__wpform input[type="text"]:focus,
.comment-form__wpform input[type="email"]:focus,
.comment-form__wpform input[type="url"]:focus,
.comment-form__wpform textarea:focus {
    outline: none;
    border-color: var(--theme-color, #41B883);
    background: var(--bg-card);
}

.comment-form__wpform textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.7;
}

.comment-form__wpform .comment-form-author,
.comment-form__wpform .comment-form-email,
.comment-form__wpform .comment-form-url {
    margin-bottom: 14px;
}

.comment-form__wpform label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.comment-form__wpform label .required {
    color: var(--color-danger, #f56c6c);
}

.comment-form__wpform .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.comment-form__submit-wrap {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-form__cancel {
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
}

.comment-form__cancel a {
    color: var(--text-muted);
    text-decoration: underline;
}

/* ---------- 留言列表 ---------- */
.comment-list {
    margin-bottom: 40px;
}

.comment-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---------- 单条留言卡片 ---------- */
.comment-item {
    list-style: none;
    margin-bottom: 16px;
}

.comment-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-card:hover {
    border-color: var(--theme-color, #41B883);
    box-shadow: 0 8px 24px -8px rgba(65, 184, 131, 0.25);
    transform: translateY(-2px);
}

.comment-card__avatar {
    flex-shrink: 0;
}

.comment-card__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--bg-secondary);
}

.comment-card__body {
    flex: 1;
    min-width: 0;
}

.comment-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-card__author {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.comment-card__author:hover {
    color: var(--theme-color, #41B883);
}

.comment-card__badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--theme-color, #41B883), #6dd5a0);
    border-radius: 999px;
    font-weight: 500;
    line-height: 1.5;
}

.comment-card__time {
    font-size: 12px;
    color: var(--text-tertiary, #64748b);
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.comment-card__pending {
    font-size: 13px;
    color: var(--text-muted);
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--color-warning, #e6a23c);
}

.comment-card__content {
    margin-bottom: 8px;
}

.comment-card__text {
    font-size: 14px;
    color: var(--text-content);
    line-height: 1.8;
    word-break: break-word;
}

.comment-card__text p {
    margin: 0 0 8px;
}

.comment-card__text p:last-child {
    margin-bottom: 0;
}

.comment-card__text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 4px 0;
}

.comment-card__text a {
    color: var(--color-link);
    word-break: break-all;
}

.comment-card__text code {
    padding: 2px 6px;
    font-size: 12px;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.comment-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    margin-top: 8px;
}

.comment-card__reply {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.comment-card__reply a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.comment-card__reply a:hover {
    color: var(--theme-color, #41B883);
    background: rgba(65, 184, 131, 0.08);
}

.comment-card__reply-inner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-card__edit {
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.comment-card__edit:hover {
    color: var(--theme-color, #41B883);
    background: rgba(65, 184, 131, 0.08);
}

/* ---------- 嵌套回复 ---------- */
.comment-children {
    list-style: none;
    margin: 16px 0 0 0;
    padding-left: 28px;
    border-left: 2px dashed var(--border-primary);
}

.comment-children .comment-item {
    margin-bottom: 12px;
}

.comment-children .comment-item:last-child {
    margin-bottom: 0;
}

.comment-children .comment-card {
    background: var(--bg-secondary);
    padding: 14px 16px;
    border-radius: 12px;
}

.comment-children .comment-card__avatar img {
    width: 36px;
    height: 36px;
}

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

/* ---------- 留言分页 ---------- */
.comment-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-secondary);
}

.comment-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.comment-pagination .page-numbers:hover {
    border-color: var(--theme-color, #41B883);
    color: var(--theme-color, #41B883);
    transform: translateY(-1px);
}

.comment-pagination .page-numbers.current {
    color: #fff;
    background: linear-gradient(135deg, var(--theme-color, #41B883), #6dd5a0);
    border-color: var(--theme-color, #41B883);
    box-shadow: 0 4px 12px -2px rgba(65, 184, 131, 0.35);
}

.comment-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

.comment-pagination .page-numbers svg {
    display: block;
    margin: 0;
    font-size: 16px;
}

/* ---------- 空状态 ---------- */
.comment-empty {
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--border-primary);
    border-radius: 14px;
}

.comment-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    font-size: 32px;
    color: var(--theme-color, #41B883);
    background: rgba(65, 184, 131, 0.1);
    border-radius: 50%;
}

.comment-empty__text {
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
}

/* ---------- 底部寄语 ---------- */
.comment-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 24px 16px;
    text-align: center;
    justify-content: center;
}

.comment-footer__line {
    flex: 1;
    max-width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-primary) 50%, transparent 100%);
}

.comment-footer__text {
    margin: 0;
    font-size: 14px;
    color: var(--text-tertiary, #64748b);
    font-style: italic;
    letter-spacing: 1px;
}

/* ============================================
   深色模式适配
   ============================================ */
html[data-theme="dark"] .comment-hero {
    background: linear-gradient(135deg, var(--bg-card, #2a2a2a) 0%, var(--bg-secondary, #222) 100%);
    border-color: var(--border-primary, #3a3a3a);
}

html[data-theme="dark"] .comment-hero__blob--1 {
    opacity: 0.25;
}

html[data-theme="dark"] .comment-hero__blob--2 {
    opacity: 0.18;
}

html[data-theme="dark"] .comment-hero__blob--3 {
    opacity: 0.15;
}

html[data-theme="dark"] .comment-hero__badge {
    background: rgba(65, 184, 131, 0.18);
}

html[data-theme="dark"] .comment-hero__title {
    color: var(--caption-color, #e8e8e8);
}

html[data-theme="dark"] .comment-hero__desc {
    color: var(--text-secondary, #b0b0b0);
}

html[data-theme="dark"] .comment-hero__stat-label {
    color: var(--text-tertiary, #888);
}

html[data-theme="dark"] .comment-section__title {
    color: var(--caption-color, #e8e8e8);
}

html[data-theme="dark"] .comment-section__subtitle {
    color: var(--text-tertiary, #888);
}

html[data-theme="dark"] .comment-section__icon {
    background: rgba(65, 184, 131, 0.15);
    border-color: rgba(65, 184, 131, 0.25);
}

html[data-theme="dark"] .comment-content {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--border-primary, #3a3a3a);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .comment-card-box {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--border-primary, #3a3a3a);
}

html[data-theme="dark"] .comment-card-box:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--border-hover, #555);
}

html[data-theme="dark"] .comment-card-box__title {
    color: var(--caption-color, #e8e8e8);
}

html[data-theme="dark"] .comment-card-box__content {
    color: var(--text-secondary, #b0b0b0);
}

html[data-theme="dark"] .comment-card-box__content strong {
    color: var(--text-primary, #e8e8e8);
}

html[data-theme="dark"] .comment-host {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--border-primary, #3a3a3a);
}

html[data-theme="dark"] .comment-host:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--border-hover, #555);
}

html[data-theme="dark"] .comment-host__title {
    color: var(--caption-color, #e8e8e8);
}

html[data-theme="dark"] .comment-host__nickname {
    color: var(--text-tertiary, #888);
}

html[data-theme="dark"] .comment-host__message {
    background: linear-gradient(135deg,
        rgba(65, 184, 131, 0.14) 0%,
        rgba(80, 156, 255, 0.10) 100%);
    border-color: rgba(65, 184, 131, 0.32);
}

html[data-theme="dark"] .comment-rules {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--border-primary, #3a3a3a);
}

html[data-theme="dark"] .comment-rules:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--border-hover, #555);
}

html[data-theme="dark"] .comment-rules__title {
    color: var(--caption-color, #e8e8e8);
    border-bottom-color: var(--border-secondary, #3a3a3a);
}

html[data-theme="dark"] .comment-rules__item {
    border-bottom-color: var(--border-secondary, #2a2a2a);
}

html[data-theme="dark"] .comment-rules__text {
    color: var(--text-secondary, #b0b0b0);
}

html[data-theme="dark"] .comment-form {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--border-primary, #3a3a3a);
}

html[data-theme="dark"] .comment-form:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--border-hover, #555);
}

html[data-theme="dark"] .comment-form__head-title {
    color: var(--caption-color, #e8e8e8);
}

html[data-theme="dark"] .comment-form__head-subtitle {
    color: var(--text-secondary, #b0b0b0);
}

html[data-theme="dark"] .comment-form__wpform input[type="text"],
html[data-theme="dark"] .comment-form__wpform input[type="email"],
html[data-theme="dark"] .comment-form__wpform input[type="url"],
html[data-theme="dark"] .comment-form__wpform textarea {
    background: var(--bg-secondary, #333);
    border-color: var(--border-input, #444);
    color: var(--text-primary, #e8e8e8);
}

html[data-theme="dark"] .comment-form__wpform input[type="text"]:focus,
html[data-theme="dark"] .comment-form__wpform input[type="email"]:focus,
html[data-theme="dark"] .comment-form__wpform input[type="url"]:focus,
html[data-theme="dark"] .comment-form__wpform textarea:focus {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--theme-color, #41B883);
}

html[data-theme="dark"] .comment-form__wpform label {
    color: var(--text-secondary, #b0b0b0);
}

html[data-theme="dark"] .comment-card {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--border-primary, #3a3a3a);
}

html[data-theme="dark"] .comment-card:hover {
    border-color: var(--theme-color, #41B883);
    box-shadow: 0 8px 24px -8px rgba(65, 184, 131, 0.3);
}

html[data-theme="dark"] .comment-card__author {
    color: var(--text-primary, #e8e8e8);
}

html[data-theme="dark"] .comment-card__time {
    color: var(--text-tertiary, #888);
}

html[data-theme="dark"] .comment-card__text {
    color: var(--text-content, #ccc);
}

html[data-theme="dark"] .comment-card__text code {
    background: var(--bg-secondary, #333);
}

html[data-theme="dark"] .comment-children {
    border-left-color: var(--border-primary, #3a3a3a);
}

html[data-theme="dark"] .comment-children .comment-card {
    background: var(--bg-secondary, #333);
}

html[data-theme="dark"] .comment-pagination .page-numbers {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--border-primary, #3a3a3a);
    color: var(--text-primary, #e8e8e8);
}

html[data-theme="dark"] .comment-pagination .page-numbers:hover {
    border-color: var(--theme-color, #41B883);
    color: var(--theme-color, #41B883);
}

html[data-theme="dark"] .comment-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

html[data-theme="dark"] .comment-empty {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--border-primary, #3a3a3a);
}

html[data-theme="dark"] .comment-empty__text {
    color: var(--text-secondary, #b0b0b0);
}

html[data-theme="dark"] .comment-footer__text {
    color: var(--text-tertiary, #888);
}

html[data-theme="dark"] .comment-footer__line {
    background: linear-gradient(90deg, transparent 0%, var(--border-primary, #3a3a3a) 50%, transparent 100%);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 960px) {
    .comment-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .comment-side {
        order: 2;
    }

    .comment-form {
        order: 1;
    }
}

@media (max-width: 768px) {
    .comment-hero {
        padding: 40px 24px 50px;
        border-radius: 12px;
    }

    .comment-hero__title {
        font-size: 28px;
    }

    .comment-hero__desc {
        font-size: 15px;
    }

    .comment-hero__stats {
        gap: 30px;
    }

    .comment-hero__stat-num {
        font-size: 24px;
    }

    .comment-hero__stat-num--text {
        font-size: 22px;
    }

    .comment-section {
        margin-bottom: 32px;
    }

    .comment-section__title {
        font-size: 19px;
    }

    .comment-section__icon {
        width: 40px;
        height: 40px;
    }

    .comment-section__icon svg {
        width: 18px;
        height: 18px;
    }

    .comment-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 0;
    }

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

    .comment-content {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .comment-layout {
        gap: 16px;
        margin-bottom: 32px;
    }

    .comment-host,
    .comment-rules,
    .comment-form {
        padding: 22px 20px;
        border-radius: 12px;
    }

    .comment-form__head-title {
        font-size: 16px;
    }

    .comment-card {
        padding: 16px;
        gap: 12px;
        border-radius: 12px;
    }

    .comment-card__avatar img {
        width: 40px;
        height: 40px;
    }

    .comment-card__author {
        font-size: 14px;
    }

    .comment-card__time {
        margin-left: 0;
        flex-basis: 100%;
    }

    .comment-card__text {
        font-size: 13px;
    }

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

    .comment-children .comment-card {
        padding: 12px 14px;
    }

    .comment-children .comment-card__avatar img {
        width: 32px;
        height: 32px;
    }

    .comment-pagination {
        flex-wrap: wrap;
    }

    .comment-footer {
        padding: 16px 12px;
        margin-top: 32px;
    }
}

@media (max-width: 480px) {
    .comment-hero {
        padding: 32px 20px 40px;
    }

    .comment-hero__title {
        font-size: 24px;
    }

    .comment-hero__stats {
        gap: 24px;
    }

    .comment-hero__blob--1 {
        width: 200px;
        height: 200px;
    }

    .comment-hero__blob--2 {
        width: 150px;
        height: 150px;
    }

    .comment-section__header {
        gap: 10px;
        margin-bottom: 18px;
    }

    .comment-section__title {
        font-size: 18px;
    }

    .comment-empty {
        padding: 48px 16px;
    }

    .comment-empty__icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}
