.activities-main { padding: 66px 0 76px; }
.activity-list-home-link, .activity-detail-back { display: flex; width: max-content; align-items: center; gap: 9px; min-height: 48px; padding: 0 20px; margin: 0 0 24px auto; border: 0; border-radius: 16px; color: #fff; background: #1a222e; box-shadow: 0 14px 28px rgba(26, 34, 46, 0.18); font-size: 14px; font-weight: 800; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.activity-list-home-link:hover, .activity-detail-back:hover { transform: translateY(-3px); background: #1a222e; box-shadow: 0 18px 34px rgba(26, 34, 46, 0.24); }
.activity-return-icon { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; }
.activity-list-home-link .activity-return-icon { fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.activities-heading { margin-bottom: 27px; }
.activities-heading h1 { margin: 0; font-size: clamp(38px, 4.4vw, 50px); letter-spacing: -.06em; }
.activities-heading > p:not(.eyebrow) { margin: 15px 0 0; color: var(--muted); font-size: 18px; }
.activity-archive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.activity-archive-card { display: flex; min-height: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 13px 28px rgba(26, 34, 46, 0.06); color: var(--ink); text-decoration: none; scroll-margin-top: 96px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.activity-archive-card:hover { transform: translateY(-4px); border-color: #cdd6ef; box-shadow: 0 22px 45px rgba(26, 34, 46, 0.13); }
.activity-archive-cover { height: 168px; background: #edf2fc; }
.activity-archive-cover img { display: block; width: 100%; height: 168px; object-fit: cover; }
.activity-archive-cover-placeholder { display: grid; height: 168px; place-items: center; color: #aab5ce; font-size: 16px; font-weight: 800; }
.activity-archive-body { padding: 20px 23px 21px; }
.activity-archive-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--lavender); font-size: 13px; font-weight: 800; }
.activity-archive-meta time { color: #9aa5bb; font-size: 12px; font-weight: 500; }
.activity-archive-body h2 { margin: 12px 0 8px; font-size: 22px; letter-spacing: -.045em; }
.activity-archive-summary { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.activity-archive-read { display: inline-block; margin-top: 15px; color: var(--lavender); font-size: 12px; font-weight: 800; }
.activity-archive-content, .activity-archive-period, .activity-archive-badge { display: none; }
.activity-detail-main { width: 100%; max-width: 1120px; margin: 0 auto; padding-top: 34px; }
.activity-detail-card { padding: 46px 70px 58px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.activity-detail-heading { max-width: none; text-align: center; }
.activity-detail-heading h1 { margin: 0; font-size: clamp(28px, 3vw, 36px); line-height: 1.35; letter-spacing: -.045em; }
.activity-detail-meta { margin-top: 9px; color: #9aa5bb; font-size: 14px; line-height: 1.6; }
.activity-detail-summary { margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; white-space: pre-line; }
.activity-detail-cover { overflow: hidden; margin: 34px 0 0; border-radius: 15px; background: #eef3ff; }
.activity-detail-cover img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.activity-detail-content { margin-top: 34px; color: var(--ink); font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; }
/* 居中：正文里的 .activity-center（图片本身是块级，需要靠 margin 居中） */
.activity-detail-content .activity-center { text-align: center; }
.activity-detail-content .activity-center img { margin-left: auto; margin-right: auto; }
/* 正文图片默认居中（海报类图片不居中会贴在左边） */
.activity-detail-content img { margin-left: auto; margin-right: auto; }
.activity-detail-content p, .activity-detail-content div, .activity-detail-content span { margin: 0 0 18px; }
.activity-detail-content h2, .activity-detail-content h3, .activity-detail-content h4 { margin: 25px 0 10px; color: var(--ink); line-height: 1.4; text-align: center; }
.activity-detail-content h2 { font-size: 28px; }.activity-detail-content h3 { font-size: 22px; }.activity-detail-content h4 { font-size: 18px; }
.activity-detail-content ul, .activity-detail-content ol { padding-left: 28px; }.activity-detail-content blockquote { margin: 18px 0; padding: 11px 18px; border-left: 4px solid var(--lavender); color: #242e3d; background: #f7f5ff; }.activity-detail-content a { color: var(--lavender); text-decoration: underline; }.activity-detail-content img { display: block; max-width: 100%; height: auto; margin: 20px auto; border-radius: 11px; }
.activity-detail-error { padding: 95px 30px; border: 1px dashed #cdd6e8; border-radius: 22px; background: rgba(255,255,255,.72); text-align: center; }.activity-detail-error h1 { margin: 0; font-size: 30px; }.activity-detail-error p { margin: 14px 0 25px; color: var(--muted); }.activity-detail-error a { color: var(--lavender); font-weight: 800; }
@media (max-width: 720px) { .activities-main { padding: 52px 0 65px; }.activity-list-home-link, .activity-detail-back { min-height: 44px; padding: 0 16px; margin-bottom: 18px; border-radius: 14px; font-size: 13px; }.activity-return-icon { width: 19px; height: 19px; }.activities-heading h1 { font-size: 40px; }.activities-heading > p:not(.eyebrow) { font-size: 15px; }.activity-archive-card { grid-template-columns: 1fr; }.activity-archive-cover, .activity-archive-cover img, .activity-archive-cover-placeholder { min-height: 190px; height: 190px; }.activity-archive-body { padding: 25px 23px 27px; }.activity-archive-body h2 { font-size: 24px; } }
@media (max-width: 720px) { .activity-detail-main { padding-top: 30px; }.activity-detail-card { padding: 30px 22px 36px; border-radius: 22px; }.activity-detail-heading h1 { font-size: 28px; }.activity-detail-meta { font-size: 13px; }.activity-detail-summary { margin-top: 15px; font-size: 15px; }.activity-detail-cover { margin-top: 20px; }.activity-detail-cover img { max-height: 320px; }.activity-detail-content { margin-top: 22px; font-size: 15px; }.activity-detail-content h2 { font-size: 24px; } }

@media (max-width:720px) {
    .activities-main { padding: 30px 0 44px; }
    .activity-list-home-link, .activity-detail-back { min-height: 36px; padding: 0 11px; margin-bottom: 12px; border-radius: 12px; font-size: 11px; }
    .activity-return-icon { width: 16px; height: 16px; }
    .activities-heading { margin-bottom: 18px; }
    .activities-heading h1 { font-size: 32px; }
    .activities-heading > p:not(.eyebrow) { margin-top: 9px; font-size: 13px; line-height: 1.55; }
    .activity-archive { gap: 10px; }
    .activity-archive-cover, .activity-archive-cover img, .activity-archive-cover-placeholder { min-height: 130px; height: 130px; }
    .activity-archive-body { padding: 14px 15px 16px; }
    .activity-archive-meta { gap: 8px; font-size: 11px; }
    .activity-archive-meta time { font-size: 10px; }
    .activity-archive-body h2 { margin: 8px 0 5px; font-size: 18px; }
    .activity-archive-summary { font-size: 11px; line-height: 1.5; }
    .activity-archive-read { margin-top: 9px; font-size: 11px; }
    .activity-detail-main { padding-top: 18px; }
    .activity-detail-card { padding: 20px 15px 26px; border-radius: 18px; }
    .activity-detail-heading h1 { font-size: 24px; }
    .activity-detail-meta { font-size: 11px; }
    .activity-detail-summary { margin-top: 10px; font-size: 13px; line-height: 1.65; }
    .activity-detail-cover { margin-top: 14px; }
    .activity-detail-cover img { max-height: 240px; }
    .activity-detail-content { margin-top: 16px; font-size: 13px; line-height: 1.8; }
    .activity-detail-content p, .activity-detail-content div, .activity-detail-content span { margin-bottom: 12px; }
    .activity-detail-content h2 { margin-top: 19px; font-size: 20px; }
    .activity-detail-content h3 { margin-top: 16px; font-size: 17px; }
}

/* 抽奖插件卡片（正文 [[抽奖]] 占位符 / 文章关联抽奖活动，两处共用同一套样式） */
.activity-plugin-slot { margin-top: 26px; }
.activity-plugin-slot[hidden] { display: none; }
.activity-plugin-slot .activity-checkin-embed { margin: 0; }

.activity-checkin-embed { margin: 22px 0; }
.activity-checkin-card { padding: 26px 24px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(158deg, #ffffff 0%, #f7f8fa 100%); box-shadow: 0 18px 44px rgba(31, 36, 48, .09); }
.activity-checkin-head { padding-bottom: 14px; border-bottom: 1px dashed #ececec; }
.activity-checkin-head strong { display: block; font-size: 21px; letter-spacing: -.03em; background: linear-gradient(96deg, #1f2430 8%, #6f6f6f 96%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #1f2430; }
.activity-checkin-head span { display: block; margin-top: 7px; color: #8b96ad; font-size: 13px; line-height: 1.7; }

.activity-checkin-status { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 4px; padding: 6px 13px; border-radius: 999px; background: #f2f3f5; color: #1f2430; font-size: 12.5px; font-weight: 800; }

.activity-checkin-block { margin-top: 18px; }
.activity-checkin-block h4 { margin: 0 0 11px; color: #8b96ad; font-size: 12px; font-weight: 800; letter-spacing: .06em; }

/* 活动规则：单独一块，复用正文富文本的排版（服务端已消毒） */
.activity-checkin-rules { padding: 16px 16px 4px; border: 1px solid #efefef; border-radius: 16px; background: #fafafa; }
.activity-checkin-rules h4 { color: #6f6f6f; }
.activity-checkin-rules-body { color: #242e3d; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.activity-checkin-rules-body p, .activity-checkin-rules-body div, .activity-checkin-rules-body span { margin: 0 0 12px; }
.activity-checkin-rules-body h2, .activity-checkin-rules-body h3, .activity-checkin-rules-body h4 { margin: 14px 0 8px; color: #1f2430; }
.activity-checkin-rules-body ul, .activity-checkin-rules-body ol { margin: 0 0 12px; padding-left: 24px; }
.activity-checkin-rules-body blockquote { margin: 12px 0; padding: 9px 15px; border-left: 3px solid #1f2430; border-radius: 0 8px 8px 0; background: #f5f5f5; }
.activity-checkin-rules-body a { color: #1f2430; text-decoration: underline; }
.activity-checkin-rules-body img { display: block; max-width: 100%; height: auto; margin: 12px auto; border-radius: 10px; }
.activity-checkin-rules-body .activity-center { text-align: center; }

/* 奖品网格（小红书那种拼接卡片感） */
.activity-checkin-prizes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.activity-checkin-prizes li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 15px; border: 1px solid #efefef; border-radius: 16px; background: #fff; color: #1f2430; font-size: 14px; font-weight: 700; box-shadow: 0 6px 16px rgba(31, 36, 48, .04); }
.activity-checkin-prizes li::before { content: '🎁'; font-size: 15px; }
.activity-checkin-prizes b { color: #8b96ad; font-size: 12.5px; font-weight: 800; }

.activity-checkin-winners { margin-top: 20px; padding-top: 16px; border-top: 1px dashed #ececec; }
.activity-checkin-winners strong { display: block; margin-bottom: 10px; color: #1f2430; font-size: 14px; }
.activity-checkin-winner-list { display: flex; flex-wrap: wrap; gap: 8px; }
.activity-checkin-winner-list span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid #ececec; border-radius: 999px; background: #fafafa; color: #1f2430; font-size: 13px; font-weight: 700; }
.activity-checkin-winner-list b { color: #9b6e25; font-size: 12px; }

.activity-checkin-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.activity-checkin-actions .button { border-radius: 999px; padding-left: 22px; padding-right: 22px; font-weight: 800; }
.activity-checkin-count { color: #8b96ad; font-size: 12.5px; }
.activity-checkin-note { padding: 20px; border-radius: 16px; background: #fafafa; color: #94a6c0; font-size: 13px; text-align: center; }

@media (max-width: 720px) {
    .activity-plugin-slot { margin-top: 16px; }
    .activity-checkin-card { padding: 20px 17px; border-radius: 20px; }
    .activity-checkin-head strong { font-size: 18px; }
    .activity-checkin-prizes { grid-template-columns: 1fr; }
    .activity-checkin-rules { padding: 14px 13px 2px; }
    .activity-checkin-rules-body { font-size: 13px; }
    .activity-checkin-actions .button { width: 100%; }
}

/* ===== 墨色主题统一（2026-10-11） ===== */
.eyebrow { color: #8a8a8a !important; letter-spacing: .24em; }
a { }

/* ===== 活动评论区（2026-10-14，小红书风格：圆头像 + 昵称 + 正文 + 时间）===== */
.activity-comments { margin-top: 26px; padding: 34px 70px 44px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.activity-comments[hidden] { display: none; }
.activity-comments-head { display: flex; align-items: baseline; gap: 10px; }
.activity-comments-head strong { color: var(--ink); font-size: 19px; letter-spacing: -.02em; }
.activity-comments-count { color: #9aa5bb; font-size: 14px; font-weight: 700; }
.activity-comment-composer { margin: 18px 0 4px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fbfbfb; }
.activity-comment-input { display: block; width: 100%; min-height: 76px; max-height: 40vh; overflow: auto; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 14.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; box-sizing: border-box; }
.activity-comment-input:empty::before { content: attr(data-placeholder); color: #a3adc2; pointer-events: none; }
.comment-emoji-inline { margin: 0 1px; }
.activity-comment-input:focus { outline: none; border-color: #c9cdd4; box-shadow: 0 0 0 3px rgba(31, 36, 48, .05); }
.activity-comment-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.activity-comment-hint { color: #a3adc2; font-size: 12px; }
/* ===== 评论区小表情（自研 SVG；令牌 → 内联图片）===== */
.comment-emoji { width: 22px; height: 22px; margin: 0 1px; vertical-align: -5px; }
.activity-comment-composer { position: relative; }
.activity-comment-composer-tools { display: inline-flex; align-items: center; gap: 10px; }
.activity-comment-emoji-toggle { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #46505f; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.activity-comment-emoji-toggle:hover, .activity-comment-emoji-toggle:focus-visible { border-color: #cfd6e6; background: #f7f9ff; }
.comment-emoji-picker { position: absolute; left: 14px; bottom: calc(100% + 8px); z-index: 9; width: min(300px, 84vw); max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 10px; border: 1px solid #ecedf1; border-radius: 14px; background: #fff; box-shadow: 0 18px 42px rgba(20, 26, 38, .16); }
.comment-emoji-picker[hidden] { display: none; }
.comment-emoji-group + .comment-emoji-group { margin-top: 10px; }
.comment-emoji-group-title { margin: 0 0 6px; padding-left: 4px; color: #8a94a8; font-size: 12px; font-weight: 700; }
.comment-emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.comment-emoji-item { display: grid; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; place-items: center; }
.comment-emoji-item:hover, .comment-emoji-item:focus-visible { background: #f2f4f9; }
.comment-emoji-item img { display: block; width: 26px; height: 26px; }

/* ===== 文章正文 / 活动规则里的内联表情（2026-10-14；令牌 → 小图）===== */
.emoji-inline { width: 24px; height: 24px; margin: 0 2px; vertical-align: -5px; }
/* 正文 / 规则里 <img> 默认是块级，这里把表情改回行内 */
.activity-detail-content img.emoji-inline,
.activity-checkin-rules-body img.emoji-inline { display: inline-block; width: 24px; height: 24px; margin: 0 2px; border-radius: 0; vertical-align: -5px; }
.activity-comment-login { display: flex; align-items: center; justify-content: center; min-height: 54px; margin: 18px 0 4px; border: 1px dashed #c9cdd4; border-radius: 14px; background: #fbfbfb; color: var(--ink); font-size: 14px; font-weight: 700; transition: border-color .2s ease, background .2s ease; }
.activity-comment-login:hover { border-color: #9aa5bb; background: #f5f5f5; }
.activity-comment-list { margin-top: 6px; }
.activity-comment-item { display: flex; gap: 12px; padding: 16px 2px; border-bottom: 1px solid #f1f1f1; }
.activity-comment-item:last-child { border-bottom: 0; }
.activity-comment-avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #f2f2f2; }
.activity-comment-main { position: relative; flex: 1 1 auto; min-width: 0; }
.activity-comment-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.activity-comment-name { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.activity-comment-text { margin: 7px 0 0; color: #242e3d; font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.activity-comment-time { display: block; margin-top: 7px; color: #a3adc2; font-size: 12px; }
.activity-comment-empty { padding: 34px 10px; color: #a3adc2; font-size: 14px; text-align: center; }
.activity-comments-more { margin-top: 16px; text-align: center; }
.activity-comment-toast { position: fixed; left: 50%; bottom: 42px; z-index: 60; max-width: 84vw; padding: 11px 20px; border-radius: 999px; background: rgba(26, 34, 46, .94); color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: 0 16px 34px rgba(26, 34, 46, .24); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.activity-comment-toast.show { opacity: 1; transform: translate(-50%, 0); }
.activity-comment-toast.error { background: rgba(176, 58, 46, .95); }
.activity-comment-toast.success { background: rgba(35, 110, 72, .95); }

/* ===== 评论操作组（2026-10-14 v2：昵称旁的「⋯」更多按钮 + 圆角浮层菜单）=====
   数据驱动，按钮由 commentActionItems() 生成；同一时刻只开一组（toggleCommentActions）。 */
.activity-comment-more { display: grid; width: 32px; height: 32px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #9aa5bb; font-size: 20px; line-height: 1; cursor: pointer; opacity: .6; transition: opacity .18s ease, background .18s ease, color .18s ease; place-items: center; }
.activity-comment-more:hover, .activity-comment-more:focus-visible { opacity: 1; background: #f1f2f5; color: #4b5563; }
.activity-comment-more[aria-expanded="true"] { opacity: 1; background: #eceef3; color: var(--ink); }
.activity-comment-item:hover .activity-comment-more, .activity-comment-reply:hover .activity-comment-more { opacity: .95; }
.activity-comment-actions { position: absolute; top: 36px; right: 0; z-index: 8; display: none; min-width: 138px; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid #ecedf1; border-radius: 14px; background: #fff; box-shadow: 0 18px 42px rgba(20, 26, 38, .16); }
.activity-comment-actions.is-open { display: flex; animation: activity-comment-actions-in .16s ease; }
@keyframes activity-comment-actions-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.activity-comment-action { display: flex; align-items: center; min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #46505f; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; transition: background .16s ease, color .16s ease; }
.activity-comment-action:hover, .activity-comment-action:focus-visible { background: #f3f4f7; color: var(--ink); }
.activity-comment-action.is-danger { color: #c0392b; }
.activity-comment-action.is-danger:hover, .activity-comment-action.is-danger:focus-visible { background: #fdecea; color: #a3261b; }

/* ===== 一级回复嵌套 ===== */
.activity-comment-replies { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding-left: 14px; border-left: 2px solid #f0f1f4; }
.activity-comment-replies:empty { display: none; }
/* display:flex 会盖过 UA 的 [hidden]{display:none}，必须显式覆盖 */
.activity-comment-replies[hidden] { display: none; }
.activity-comment-reply { display: flex; gap: 10px; padding: 9px 0; }
.activity-comment-reply[hidden] { display: none; }
.activity-comment-reply-avatar { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #f2f2f2; }
.activity-comment-reply .activity-comment-name { font-size: 13px; }
.activity-comment-reply .activity-comment-text { margin-top: 4px; font-size: 14px; }
.activity-comment-reply .activity-comment-time { margin-top: 5px; }
.activity-comment-reply-to { color: #7b8aa8; font-weight: 700; }

/* ===== 回复栏（评论底部「展开更多／展开 N 条回复」低调文字按钮）=====
   知乎 / 小红书风格：小字号文字按钮，不做成大按钮，左对齐、点击区 ≥32px。 */
.activity-comment-replies-bar-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 6px; padding-left: 14px; }
.activity-comment-replies-bar-wrap:empty { display: none; }
.activity-comment-replies-bar { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: transparent; color: #2f6bd8; font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; transition: color .16s ease; }
.activity-comment-replies-bar:hover, .activity-comment-replies-bar:focus-visible { color: #1b4fae; text-decoration: underline; }

/* ===== 回复 chip（输入框上方）===== */
.activity-comment-reply-chip { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 8px; margin-bottom: 10px; padding: 6px 10px 6px 12px; border-radius: 999px; background: #eef1f7; color: #4b5563; font-size: 12.5px; font-weight: 700; }
.activity-comment-reply-chip[hidden] { display: none; }
.activity-comment-reply-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-comment-reply-cancel { display: grid; width: 18px; height: 18px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: #d8dce5; color: #fff; font-size: 12px; line-height: 1; cursor: pointer; place-items: center; }
.activity-comment-reply-cancel:hover { background: #b9bfcc; }

/* ===== 举报弹窗（桌面居中卡片 / 手机底部弹出）===== */
body.comment-report-lock { overflow: hidden; }
.comment-report-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; }
.comment-report-modal[hidden] { display: none; }
.comment-report-backdrop { position: absolute; inset: 0; background: rgba(20, 26, 38, .5); opacity: 0; transition: opacity .22s ease; }
.comment-report-modal.is-open .comment-report-backdrop { opacity: 1; }
.comment-report-card { position: relative; z-index: 1; display: flex; width: min(430px, 92vw); max-height: 86vh; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 30px 70px rgba(20, 26, 38, .28); opacity: 0; transform: translateY(14px); transition: opacity .22s ease, transform .22s ease; }
.comment-report-modal.is-open .comment-report-card { opacity: 1; transform: translateY(0); }
.comment-report-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 8px; }
.comment-report-head h3 { margin: 0; color: var(--ink); font-size: 18px; letter-spacing: -.02em; }
.comment-report-close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #9aa1af; font-size: 22px; line-height: 1; cursor: pointer; }
.comment-report-close:hover { background: #f2f3f6; color: #5b6270; }
.comment-report-tip { margin: 0; padding: 8px 20px 12px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.comment-report-reasons { overflow-y: auto; margin: 0; padding: 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.comment-report-reason { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid #f2f3f5; cursor: pointer; }
.comment-report-reason:last-child { border-bottom: 0; }
.comment-report-reason input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.comment-report-reason-label { flex: 1 1 auto; color: var(--ink); font-size: 14.5px; }
.comment-report-radio { flex: 0 0 auto; width: 20px; height: 20px; border: 1.5px solid #d3d7e0; border-radius: 50%; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.comment-report-reason input:checked ~ .comment-report-radio { border-color: var(--ink); box-shadow: inset 0 0 0 5px var(--ink); }
.comment-report-reason input:focus-visible ~ .comment-report-radio { outline: 2px solid rgba(31, 36, 48, .22); outline-offset: 2px; }
.comment-report-detail { display: block; padding: 14px 20px 4px; }
.comment-report-detail-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.comment-report-textarea { display: block; width: 100%; min-height: 74px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.7; resize: vertical; }
.comment-report-textarea:focus { outline: none; border-color: #c3c8d4; background: #fff; box-shadow: 0 0 0 3px rgba(31, 36, 48, .05); }
.comment-report-counter { display: block; margin-top: 6px; color: #a3adc2; font-size: 11.5px; text-align: right; }
/* 底部按钮沿用网站 .button / .button-primary / .button-quiet 的观感 */
.comment-report-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 14px 20px 20px; }
.comment-report-actions .button { min-height: 44px; padding: 0 22px; }
.comment-report-actions .button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

@media (max-width: 720px) {
    .activity-comments { margin-top: 16px; padding: 22px 18px 26px; border-radius: 22px; }
    .activity-comments-head strong { font-size: 17px; }
    .activity-comment-avatar { width: 34px; height: 34px; }
    .activity-comment-text { font-size: 14px; }
    .activity-comment-replies { padding-left: 10px; }
    .activity-comment-replies-bar-wrap { padding-left: 10px; }
    .activity-comment-replies-bar { min-height: 36px; font-size: 13.5px; }
    .activity-comment-more { opacity: .85; }
    .activity-comment-action { min-height: 38px; }
    .comment-report-modal { align-items: flex-end; }
    .comment-report-card { width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; transform: translateY(40px); }
    .comment-report-modal.is-open .comment-report-card { transform: translateY(0); }
}
