/*
*
* Forum PC 公共样式
*
*/

/* ==========================================================================
   主题主色令牌
   站点主题变量（--uc-primary 等）由 site_theme.css 提供：仅登录用户加载。
   这里做一层带兜底的别名，保证：
     - 登录用户：跟随「个性化设置」的主题主色；
     - 未登录 / 未启用主题：回退站点原生蓝 #2563eb。
   ========================================================================== */
:root {
    --brand: var(--uc-primary, #2563eb);
    --brand-dark: var(--uc-primary-dark, #1d4ed8);
    --brand-light: color-mix(in srgb, var(--brand) 58%, #ffffff);
    --brand-soft: var(--uc-primary-soft, rgba(37, 99, 235, 0.10));
    --brand-soft-2: color-mix(in srgb, var(--brand) 16%, transparent);
    --brand-soft-3: color-mix(in srgb, var(--brand) 5%, transparent);
    --brand-border: color-mix(in srgb, var(--brand) 45%, transparent);
    --brand-border-2: color-mix(in srgb, var(--brand) 24%, transparent);
    --brand-shadow: color-mix(in srgb, var(--brand) 26%, transparent);
}

/* ==========================================================================
   平滑滚动（电脑端全站）
   注：视口滚动的 scroll-behavior 需要作用在 html 上；同时给 body 加上，
   以兼容由 body 作为滚动容器的页面。尊重系统「减少动态效果」偏好。
   ========================================================================== */
html,
body {
    scroll-behavior: smooth;
}

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

.forum-right-list-item + .forum-right-list-item {
    margin-top: 12px;
}

.forum-rank-no {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.forum-side-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.forum-side-card-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.forum-side-card-title-icon {
    width: 38px;
    height: 38px;
    border-radius: 5px;
    background: linear-gradient(180deg, var(--brand-soft-3) 0%, var(--brand-soft) 100%);
    color: #5b7294;
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.forum-stats-item {
    border-radius: 5px;
    background: #f8fafc;
    padding: 24px 14px;
    text-align: center;
}

.forum-stats-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.forum-stats-value {
    margin-top: 18px;
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.forum-profile-card {
    display: block;
    border-radius: 5px;
    padding: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.forum-profile-card:hover {
    transform: translateY(-1px);
}

.forum-profile-avatar-row {
    display: flex;
    justify-content: center;
}

.forum-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e2e8f0;
}

.forum-profile-name {
    margin-top: 14px;
    text-align: center;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
    color: #0f172a;
}

.forum-profile-badge-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.forum-profile-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.68rem;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.forum-profile-badge-gold { color: #c2410c; background: #ffedd5; }
.forum-profile-badge-pro { color: #db2777; background: #fce7f3; }
.forum-profile-badge-free { color: #16a34a; background: #dcfce7; }
.forum-profile-badge-normal { color: #9333ea; background: #f3e8ff; }
.forum-profile-badge-banned { color: #dc2626; background: #fee2e2; }
.forum-profile-badge-founder {
    color: #f8e7a1;
    background: linear-gradient(135deg, #111827 0%, #1f2937 48%, #6b4f14 100%);
    border: 1px solid rgba(248, 231, 161, 0.38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 20px rgba(17,24,39,0.18);
}
.forum-profile-badge-expert { color: var(--brand-dark); background: var(--brand-soft-2); }
.forum-profile-badge-fan { color: #0f766e; background: #ccfbf1; }

.forum-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.forum-profile-stat {
    border-radius: 5px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.96);
    padding: 12px 10px;
    text-align: center;
}

.forum-profile-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.forum-profile-stat-value {
    margin-top: 8px;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
}

@media (max-width: 1280px) {
    .forum-stats-row {
        grid-template-columns: 1fr;
    }
}

.forum-page-shell,
.forum-view-shell,
.forum-home-shell,
.forum-editor-bg,
.forum-jump-bg {
    /* 去掉单独的背景色，统一使用 body 的 #f5f5f7 */
    background: transparent;
}

.forum-page-grid,
.forum-view-grid,
.forum-home-grid {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.forum-panel-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.05);
}

.forum-left-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 5px;
    color: #0f172a;
    transition: all 0.22s ease;
}

.forum-left-link:hover,
.forum-left-link.is-active {
    background: var(--brand-soft);
    color: var(--brand);
}

.forum-left-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 5px;
    background: #f8fafc;
    color: #475569;
}

.forum-left-link:hover .forum-left-link-icon,
.forum-left-link.is-active .forum-left-link-icon {
    background: var(--brand-soft);
    color: var(--brand);
}

.forum-notice-hero {
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-soft-3) 100%);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.06);
}

.forum-notice-item + .forum-notice-item {
    margin-top: 16px;
}

.forum-notice-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.forum-glass-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.forum-feed-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.forum-feed-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 5px;
    padding: 10px 16px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.forum-feed-tab.is-active,
.forum-feed-tab:hover {
    background: #111827;
    color: #ffffff;
}

.forum-section-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 5px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #fff;
    transition: all 0.2s ease;
}

.forum-section-chip:hover {
    border-color: var(--brand-shadow);
    background: var(--brand-soft-3);
    transform: translateY(-1px);
}

.forum-section-chip-thumb {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    background: #e2e8f0;
    color: #1e293b;
    flex-shrink: 0;
    overflow: hidden;
}

.forum-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 5px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.forum-outline-button:hover {
    border-color: var(--brand-shadow);
    color: var(--brand);
    background: var(--brand-soft-3);
}

.forum-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 14px 30px var(--brand-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forum-primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px var(--brand-shadow);
}

.forum-post-card {
    position: relative;
    display: block;
    padding: 24px 26px;
    border-radius: 5px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.94);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.forum-post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.44);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.10);
}

.forum-post-card + .forum-post-card {
    margin-top: 16px;
}

.forum-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.forum-badge-top {
    background: rgba(239, 68, 68, 0.10);
    color: #dc2626;
}

.forum-badge-hot {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.forum-badge-section {
    background: var(--brand-soft);
    color: var(--brand);
}

.forum-badge-muted {
    background: #f1f5f9;
    color: #64748b;
}

.forum-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.forum-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.forum-page-hero {
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-soft-3) 100%);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.06);
}

.forum-section-chip.small {
    padding: 6px 12px;
    border-radius: 5px;
    background: var(--brand-soft);
    border: 0;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}

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

.forum-stat-box {
    border-radius: 5px;
    background: #f8fafc;
    padding: 18px 16px;
}

.forum-badge-pending {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
}

.forum-search-hero {
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-soft-3) 100%);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.06);
}

.forum-search-field,
.forum-search-select {
    display: block;
    width: 100%;
    border-radius: 5px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: #f8fafc;
    padding: 14px 16px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.forum-search-field:focus,
.forum-search-select:focus {
    border-color: rgba(96, 165, 250, 0.6);
    background: #ffffff;
}

.forum-notice-item {
    transition: all 0.2s ease;
}

.forum-notice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.forum-notice-type {
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    padding: 0.35rem 0.8rem;
    font-size: 12px;
    font-weight: 700;
    background: var(--brand-soft);
    color: var(--brand);
}

.forum-notice-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.45rem 0.9rem;
    border-radius: 5px;
    background: rgba(255,255,255,0.88);
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.forum-view-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #94a3b8;
}

.forum-view-breadcrumb a {
    color: #64748b;
    transition: color 0.2s ease;
}

.forum-view-breadcrumb a:hover {
    color: var(--brand);
}

.forum-view-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    padding: 0.26rem 0.66rem;
    font-size: 11px;
    font-weight: 700;
    background: var(--brand-soft);
    color: var(--brand);
}

.forum-view-tag.is-danger {
    background: #fef2f2;
    color: #dc2626;
}

.forum-view-tag.is-warn {
    background: #fff7ed;
    color: #ea580c;
}

.forum-main-post-card {
    padding: 24px 28px 18px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
    background: #ffffff;
}

.forum-post-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.forum-post-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.forum-post-menu-btn,
.forum-post-view-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid #e5edf5;
    background: #ffffff;
    color: #64748b;
    box-shadow: none;
}

.forum-post-view-pill {
    gap: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
}

.forum-post-head {
    padding-bottom: 18px;
    border-bottom: 1px solid #edf2f7;
}

.forum-post-head-top {
    margin-top: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.forum-post-head-main {
    min-width: 0;
    flex: 1;
}

.forum-post-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.forum-post-title {
    margin-top: 12px;
    font-size: 25px;
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.forum-post-meta-panel {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.forum-post-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.forum-post-author-info {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.forum-post-meta-inline {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.forum-post-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    background: #e2e8f0;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.forum-post-author-main {
    min-width: 0;
    flex: 1;
}

.forum-post-author-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.forum-post-author-sub {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
}

.forum-post-author-link {
    transition: color 0.2s ease;
}

.forum-post-author-link:hover {
    color: var(--brand);
}

.forum-post-divider {
    margin-top: 18px;
    border-top: 1px solid #edf2f7;
}

.forum-user-badge-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    vertical-align: middle;
}

.forum-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.22rem 0.68rem;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.forum-user-badge-gold { color: #c2410c; background: #ffedd5; }
.forum-user-badge-pro { color: #db2777; background: #fce7f3; }
.forum-user-badge-free { color: #16a34a; background: #dcfce7; }
.forum-user-badge-normal { color: #9333ea; background: #f3e8ff; }
.forum-user-badge-banned { color: #dc2626; background: #fee2e2; }
.forum-user-badge-founder {
    color: #f8e7a1;
    background: linear-gradient(135deg, #111827 0%, #1f2937 48%, #6b4f14 100%);
    border: 1px solid rgba(248, 231, 161, 0.38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 20px rgba(17,24,39,0.18);
}
.forum-user-badge-expert { color: var(--brand-dark); background: var(--brand-soft-2); }
.forum-user-badge-fan { color: #0f766e; background: #ccfbf1; }

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

.forum-post-body {
    margin-top: 18px;
    min-height: 0;
}

.forum-post-content,
.forum-comment-content {
    font-size: 16px;
    line-height: 1.92;
    color: #1f2937;
}

.forum-comment-content {
    font-size: 14px;
    line-height: 1.8;
}

.forum-post-content-wrap {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.forum-markdown {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
}

.forum-markdown h1,
.forum-markdown h2,
.forum-markdown h3,
.forum-markdown h4,
.forum-markdown h5 {
    margin: 1.2em 0 0.55em;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
}

.forum-markdown h1 { font-size: 2em; }
.forum-markdown h2 { font-size: 1.6em; }
.forum-markdown h3 { font-size: 1.35em; }
.forum-markdown h4 { font-size: 1.15em; }
.forum-markdown h5 { font-size: 1em; }

.forum-markdown h1:first-child,
.forum-markdown h2:first-child,
.forum-markdown h3:first-child,
.forum-markdown h4:first-child,
.forum-markdown h5:first-child,
.forum-markdown p:first-child,
.forum-markdown ul:first-child,
.forum-markdown ol:first-child,
.forum-markdown pre:first-child,
.forum-markdown blockquote:first-child,
.forum-markdown .forum-markdown-table-wrap:first-child {
    margin-top: 0;
}

.forum-markdown p,
.forum-markdown ul,
.forum-markdown ol,
.forum-markdown pre,
.forum-markdown blockquote,
.forum-markdown .forum-markdown-table-wrap {
    margin: 0.78em 0;
}

.forum-markdown ul,
.forum-markdown ol {
    padding-left: 1.45em;
    list-style-position: outside;
}

/* Tailwind preflight 会把 ul / ol 的 list-style 重置为 none，
   这里显式恢复列表标记，否则「- 列表」「1. 列表」看起来像没解析 */
.forum-markdown ul { list-style-type: disc; }
.forum-markdown ul ul { list-style-type: circle; }
.forum-markdown ul ul ul { list-style-type: square; }
.forum-markdown ol { list-style-type: decimal; }
.forum-markdown ol ol { list-style-type: lower-alpha; }
.forum-markdown ol ol ol { list-style-type: lower-roman; }

.forum-markdown li + li {
    margin-top: 0.35em;
}

.forum-markdown a {
    color: var(--brand);
    text-decoration: underline;
}

.forum-markdown img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.85em 0;
    border-radius: 5px;
}

.forum-markdown code {
    padding: 0.12em 0.42em;
    border-radius: 5px;
    background: var(--brand-soft-3);
    color: var(--brand-dark);
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 0.92em;
}

.forum-markdown pre {
    overflow-x: auto;
    padding: 16px 18px;
    border-radius: 5px;
    background: #0f172a;
    color: #e2e8f0;
    white-space: pre;
    line-height: 1.75;
}

.forum-markdown pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
}

/* 代码块外层定位容器 + 右上角「复制」按钮 */
.fv-code-wrap {
    position: relative;
    margin: 0.78em 0;
}

.fv-code-wrap > pre {
    margin: 0;
}

.fv-code-wrap:first-child {
    margin-top: 0;
}

.forum-markdown pre:first-child,
.forum-markdown .fv-code-wrap:first-child {
    margin-top: 0;
}

.fv-code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 6px;
    background: rgba(30, 41, 59, 0.82);
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    opacity: 0.78;
    transition: opacity 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.fv-code-copy:hover {
    opacity: 1;
    background: rgba(51, 65, 85, 0.95);
    color: #f1f5f9;
}

.fv-code-copy:focus-visible {
    opacity: 1;
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.fv-code-copy.is-copied {
    opacity: 1;
    border-color: rgba(134, 239, 172, 0.55);
    color: #86efac;
}

.fv-code-copy svg {
    width: 13px;
    height: 13px;
    flex: none;
}

.forum-markdown blockquote {
    padding: 0.9em 1.1em;
    border-left: 4px solid var(--brand-light);
    background: var(--brand-soft);
    color: #334155;
}

.forum-markdown hr {
    margin: 1.4em 0;
    border: 0;
    height: 2px;
    background: #374151;
    opacity: 1;
}

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

.forum-markdown table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    background: #fff;
}

.forum-markdown th,
.forum-markdown td {
    padding: 12px 14px;
    border: 1px solid #dbe3ef;
    vertical-align: top;
}

.forum-markdown th {
    background: #f8fafc;
    font-weight: 700;
}

.forum-post-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e5edf5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.forum-post-footer-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.forum-post-footer-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.forum-post-stat-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.forum-post-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border-radius: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.forum-post-stat-chip svg {
    width: 15px;
    height: 15px;
}

.forum-post-footer-note:empty {
    display: none;
}

.forum-like-btn.liked {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: var(--brand-border);
}

.forum-like-btn .like-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.forum-like-btn.liked .like-icon {
    fill: currentColor;
}

.forum-delete-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 5px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #dc2626;
    transition: all 0.2s ease;
}

.forum-delete-icon-btn:hover {
    background: #fee2e2;
}

.forum-editor-card,
.forum-user-card,
.forum-jump-card {
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.06);
}

.forum-jump-card {
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.forum-tag-choice input {
    display: none;
}

.forum-tag-choice span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #dbe1ea;
    border-radius: 5px;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.forum-tag-choice input:checked + span {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}

.forum-user-bg {
    background:
        radial-gradient(circle at top left, var(--brand-soft), transparent 30%),
        #f6f8fc;
    min-height: calc(100vh - 74px);
}

.forum-user-badge-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-left: 0.75rem;
    vertical-align: middle;
}

.forum-user-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.68rem;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.forum-user-badge-gold { color: #c2410c; background: #ffedd5; }
.forum-user-badge-pro { color: #db2777; background: #fce7f3; }
.forum-user-badge-free { color: #16a34a; background: #dcfce7; }
.forum-user-badge-normal { color: #9333ea; background: #f3e8ff; }
.forum-user-badge-banned { color: #dc2626; background: #fee2e2; }
.forum-user-badge-founder {
    color: #f8e7a1;
    background: linear-gradient(135deg, #111827 0%, #1f2937 48%, #6b4f14 100%);
    border: 1px solid rgba(248, 231, 161, 0.38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 20px rgba(17,24,39,0.18);
}
.forum-user-badge-expert { color: var(--brand-dark); background: var(--brand-soft-2); }
.forum-user-badge-fan { color: #0f766e; background: #ccfbf1; }

.forum-user-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    padding: 0.35rem 0.75rem;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    margin-right: 0.45rem;
    margin-top: 0.45rem;
}

.forum-user-tag.is-top {
    background: #fef2f2;
    color: #dc2626;
}

.forum-jump-url-box {
    word-break: break-all;
    background: #0f172a;
    color: #e2e8f0;
}

.forum-fade-delay-05 {
    animation-delay: 0.05s;
}

.forum-delete-icon-btn.is-small {
    width: 34px;
    height: 34px;
}

/* ---- PC 自定义弹窗 ---- */
.iosipa-pc-dialog-root {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
}

.iosipa-pc-dialog-root.is-visible { opacity: 1; }

.iosipa-pc-dialog-shade {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    pointer-events: auto;
}

.iosipa-pc-dialog {
    position: relative;
    z-index: 1;
    width: min(460px, calc(100vw - 64px));
    max-height: min(720px, calc(100vh - 64px));
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24), 0 4px 18px rgba(15, 23, 42, 0.1);
    transform: translateY(10px) scale(0.97);
    transition: transform 180ms ease;
    pointer-events: auto;
}

.iosipa-pc-dialog-root.is-visible .iosipa-pc-dialog { transform: translateY(0) scale(1); }

.iosipa-pc-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 62px;
    padding: 0 22px;
    border-bottom: 1px solid #edf0f5;
}

.iosipa-pc-dialog-title {
    margin: 0;
    color: #172033;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}

.iosipa-pc-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8a95a7;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
}

.iosipa-pc-dialog-close:hover { background: #f1f4f8; color: #172033; }

.iosipa-pc-dialog-content {
    max-height: min(520px, calc(100vh - 230px));
    overflow-y: auto;
    padding: 24px 22px;
    color: #4c596c;
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
}

.iosipa-pc-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 22px 20px;
}

.iosipa-pc-dialog-button {
    min-width: 84px;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid #d9e0e9;
    border-radius: 8px;
    background: #ffffff;
    color: #536174;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.iosipa-pc-dialog-button:hover { transform: translateY(-1px); background: #f6f8fb; border-color: #c5cfdd; }
.iosipa-pc-dialog-button.is-primary { border-color: var(--brand); background: var(--brand); color: #ffffff; }
.iosipa-pc-dialog-button.is-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.iosipa-pc-dialog-button.is-secondary { background: #f8fafc; }

/* ---- 服务条款确认弹窗（登录用户首次进入时显示） ---- */
.terms-gate {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
}

.terms-gate-cell {
    width: 100%;
    max-width: 460px;
}

.terms-gate-box {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 26px 26px 20px;
    border-radius: 16px;
    background: var(--uc-surface, #ffffff);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.terms-gate-title {
    margin: 0 0 14px;
    color: var(--uc-text-strong, #111827);
    font-size: 18px;
    font-weight: 700;
}

.terms-gate-body p {
    margin: 0 0 10px;
    color: var(--uc-text, #374151);
    font-size: 14px;
    line-height: 1.85;
}

.terms-gate-body p:last-child { margin-bottom: 0; }

.terms-gate-link {
    color: var(--uc-primary, #2563eb);
    text-decoration: none;
}

.terms-gate-link:hover { text-decoration: underline; }

.terms-gate-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    color: var(--uc-text, #374151);
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
}

.terms-gate-check input {
    flex: none;
    margin: 3px 0 0;
    accent-color: var(--uc-primary, #2563eb);
}

.terms-gate-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.terms-gate-danger,
.terms-gate-primary {
    display: inline-block;
    min-width: 96px;
    height: 40px;
    padding: 0 18px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    line-height: 38px;
    text-align: center;
    text-decoration: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    cursor: pointer;
}

.terms-gate-danger {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.terms-gate-danger:hover { border-color: #fca5a5; background: #fee2e2; }

.terms-gate-primary {
    border: 1px solid transparent;
    background: var(--uc-primary, #2563eb);
    color: #ffffff;
}

.terms-gate-primary:hover { background: var(--uc-primary-strong, #1d4ed8); }
.terms-gate-primary[disabled] { opacity: 0.7; cursor: default; }

html[data-uc-theme="dark"] .terms-gate-box {
    border: 1px solid var(--uc-border-strong);
    background: var(--uc-surface);
}

html[data-uc-theme="dark"] .terms-gate-title { color: var(--uc-text-strong); }

html[data-uc-theme="dark"] .terms-gate-body p,
html[data-uc-theme="dark"] .terms-gate-check { color: var(--uc-text); }

/* ---- 论坛图片素材面板（编辑器「插入图片」弹窗） ---- */
.fe-picker {
    margin: -6px 0 -4px;
}

.fe-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.fe-picker-count {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.fe-picker-count b {
    color: #172033;
}

.fe-picker-upload {
    flex: none;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fe-picker-upload:hover {
    border-color: #93c5fd;
    background: #dbeafe;
}

.fe-picker-upload:disabled {
    opacity: 0.6;
    cursor: default;
}

.fe-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.fe-picker-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid #e6e9ef;
    border-radius: 9px;
    background: #f1f5f9;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fe-picker-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.fe-picker-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fe-picker-del {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fe-picker-del:hover {
    background: #dc2626;
}

.fe-picker-used {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.92);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
}

.fe-picker-loading,
.fe-picker-empty {
    grid-column: 1 / -1;
    padding: 26px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.fe-picker-empty[hidden] {
    display: none;
}

/* ---- 上传中的图片素材：压暗原图 + 空心圆环进度 ---- */
.fe-picker-uploads {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.fe-picker-uploads[hidden] {
    display: none;
}

.fe-picker-item.is-uploading {
    cursor: default;
}

.fe-picker-item.is-uploading:hover {
    border-color: #e6e9ef;
    box-shadow: none;
}

.fe-picker-item.is-uploading img {
    filter: brightness(0.42) saturate(0.85);
}

.fe-picker-item.is-deleting {
    opacity: 0.4;
    pointer-events: none;
}

.fe-picker-progress {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fe-picker-progress svg {
    width: 46px;
    height: 46px;
    transform: rotate(-90deg);
}

.fe-picker-progress circle {
    fill: none;
    stroke-width: 3;
}

.fe-picker-progress-track {
    stroke: rgba(255, 255, 255, 0.3);
}

.fe-picker-progress-bar {
    stroke: #ffffff;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.18s linear;
}

.fe-picker-progress-text {
    position: absolute;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* ---- 附件素材面板（列表形式） ---- */
.fe-file-picker {
    margin: -6px 0 -4px;
}

.fe-file-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.fe-file-picker-count {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

.fe-file-picker-count b {
    color: #172033;
}

.fe-file-picker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 52vh;
    overflow-y: auto;
}

.fe-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fe-file-item:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.fe-file-item[data-added="1"] {
    cursor: default;
    background: #f8fafc;
}

.fe-file-item[data-added="1"]:hover {
    border-color: #e6e9ef;
    background: #f8fafc;
}

.fe-file-item.is-deleting {
    opacity: 0.45;
    pointer-events: none;
}

.fe-file-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fe-file-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fe-file-meta {
    font-size: 11.5px;
    color: #94a3b8;
}

.fe-file-add {
    flex: none;
    height: 28px;
    padding: 0 12px;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fe-file-add:hover {
    border-color: #93c5fd;
    background: #dbeafe;
}

.fe-file-added {
    flex: none;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    font-size: 11.5px;
    font-weight: 700;
}

.fe-file-del {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.fe-file-del:hover {
    background: #fef2f2;
    color: #dc2626;
}

.fe-file-picker-loading,
.fe-file-picker-empty {
    padding: 26px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.fe-file-picker-empty[hidden],
.fe-file-picker-tip[hidden] {
    display: none;
}

.fe-file-picker-tip {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fffbeb;
    color: #b45309;
    font-size: 12px;
    line-height: 1.6;
}

/* ---- 附件上传进度（长条） ---- */
.fe-file-picker-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.fe-file-picker-progress[hidden] {
    display: none;
}

.fe-file-progress-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    padding: 8px 11px;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    background: #fff;
}

.fe-file-progress-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 600;
    color: #1f2937;
}

.fe-file-progress-pct {
    flex: none;
    font-size: 11.5px;
    font-weight: 700;
    color: #2563eb;
    font-variant-numeric: tabular-nums;
}

.fe-file-progress-track {
    flex: 0 0 100%;
    height: 5px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.fe-file-progress-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
    transition: width 0.18s linear;
}

.fe-file-progress-row.is-failed .fe-file-progress-pct {
    color: #dc2626;
}

.fe-file-progress-row.is-failed .fe-file-progress-fill {
    background: #ef4444;
}

html[data-uc-theme="dark"] .fe-file-picker-count {
    color: var(--uc-muted);
}

html[data-uc-theme="dark"] .fe-file-picker-count b {
    color: var(--uc-text-strong);
}

html[data-uc-theme="dark"] .fe-file-item {
    border-color: var(--uc-border);
    background: var(--uc-surface);
}

html[data-uc-theme="dark"] .fe-file-item:hover {
    border-color: var(--uc-primary);
    background: var(--uc-surface-2);
}

html[data-uc-theme="dark"] .fe-file-item[data-added="1"],
html[data-uc-theme="dark"] .fe-file-item[data-added="1"]:hover {
    border-color: var(--uc-border);
    background: var(--uc-surface-2);
}

html[data-uc-theme="dark"] .fe-file-name {
    color: var(--uc-text-strong);
}

html[data-uc-theme="dark"] .fe-file-meta {
    color: var(--uc-muted);
}

html[data-uc-theme="dark"] .fe-file-add {
    border-color: var(--uc-primary);
    background: var(--uc-primary-soft);
    color: var(--uc-primary-ink);
}

html[data-uc-theme="dark"] .fe-file-add:hover {
    background: color-mix(in srgb, var(--uc-primary) 26%, var(--uc-surface));
}

html[data-uc-theme="dark"] .fe-file-added {
    background: color-mix(in srgb, #22c55e 18%, var(--uc-surface));
    color: #4ade80;
}

html[data-uc-theme="dark"] .fe-file-del {
    color: var(--uc-muted);
}

html[data-uc-theme="dark"] .fe-file-del:hover {
    background: color-mix(in srgb, #ef4444 16%, var(--uc-surface));
    color: #f87171;
}

html[data-uc-theme="dark"] .fe-file-picker-loading,
html[data-uc-theme="dark"] .fe-file-picker-empty {
    color: var(--uc-muted);
}

html[data-uc-theme="dark"] .fe-file-picker-tip {
    background: color-mix(in srgb, #f59e0b 14%, var(--uc-surface));
    color: #fbbf24;
}

html[data-uc-theme="dark"] .fe-file-progress-row {
    border-color: var(--uc-border);
    background: var(--uc-surface);
}

html[data-uc-theme="dark"] .fe-file-progress-name {
    color: var(--uc-text-strong);
}

html[data-uc-theme="dark"] .fe-file-progress-pct {
    color: #93c5fd;
}

html[data-uc-theme="dark"] .fe-file-progress-track {
    background: var(--uc-surface-2);
}

html[data-uc-theme="dark"] .fe-file-progress-row.is-failed .fe-file-progress-pct {
    color: #f87171;
}

/* ---- 禁言提示弹窗（社区禁言） ---- */
.fv-mute-dialog {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fv-mute-dialog-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.fv-mute-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #fffbeb;
    color: #b45309;
}

.fv-mute-dialog-icon svg {
    width: 16px;
    height: 16px;
}

.fv-mute-dialog-lead {
    margin: 0;
    padding-top: 3px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--uc-text, #374151);
}

.fv-mute-dialog-detail {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 12px 14px;
    border: 1px solid var(--uc-border-strong, #e5e7eb);
    border-radius: 9px;
    background: var(--uc-surface-2, #f9fafb);
}

.fv-mute-dialog-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.7;
}

.fv-mute-dialog-label {
    flex: none;
    width: 60px;
    color: var(--uc-muted, #6b7280);
}

.fv-mute-dialog-value {
    flex: 1;
    min-width: 0;
    color: var(--uc-text, #374151);
    word-break: break-word;
}

.fv-mute-dialog-value.is-strong {
    color: var(--uc-text-strong, #111827);
    font-weight: 600;
}

.fv-mute-dialog-remain {
    margin-left: 4px;
    font-style: normal;
    font-weight: 400;
    font-size: 12.5px;
    color: var(--uc-muted, #6b7280);
}

.iosipa-pc-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 2147483001;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(460px, calc(100vw - 64px));
    padding: 12px 17px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
    font-size: 13px;
    line-height: 1.55;
    opacity: 0;
    transform: translate(-50%, calc(-50% - 10px));
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
}

.iosipa-pc-toast.is-visible { opacity: 1; transform: translate(-50%, -50%); }

.iosipa-pc-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    background: #e8eef8;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.iosipa-pc-toast.is-success .iosipa-pc-toast-icon { background: #dcfce7; color: #15803d; }
.iosipa-pc-toast.is-error .iosipa-pc-toast-icon { background: #fee2e2; color: #dc2626; }

@media (prefers-reduced-motion: reduce) {
    .iosipa-pc-dialog-root,
    .iosipa-pc-dialog,
    .iosipa-pc-toast,
    .iosipa-pc-dialog-button { transition: none; }
}

/* ==========================================================================
   分段切换标签（论坛首页「最新 / 热门」、用户中心「点赞的帖子 / 点赞的评论」共用）
   ========================================================================== */
.fh-tabs {
    display: flex;
    gap: 4px;
    padding: 3px;
    border-radius: 5px;
    background: #f2f4f8;
}

.fh-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 15px;
    border-radius: 5px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.fh-tab.is-active {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10);
}

html[data-uc-theme="dark"] .fh-tabs { background: var(--uc-surface-2); }
html[data-uc-theme="dark"] .fh-tab { color: var(--uc-muted); }
html[data-uc-theme="dark"] .fh-tab.is-active { background: var(--uc-surface-3); color: var(--uc-primary); }

/* ------------------------------------------------------------------
   帖子标题后的「图 / 附件」标记（论坛列表 / 搜索 / 用户主页 / 帖子详情通用）
   颜色取自主题变量，浅色与深色模式自动适配
   ------------------------------------------------------------------ */
.fp-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 17px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .3px;
    white-space: nowrap;
    user-select: none;
}

.fp-flag.is-img {
    background: var(--uc-teal-soft, #e0f5f2);
    color: var(--uc-teal, #0d9488);
}

.fp-flag.is-file {
    background: var(--uc-amber-soft, #fef4e4);
    color: var(--uc-amber, #b45309);
}

/* 帖子详情页标题字号更大，标记同步放大一点 */
.fv-title .fp-flag {
    height: 20px;
    margin-left: 8px;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 12px;
}

/* 侧栏「今日热帖」的 meta 行字号更小，标记同步收一点 */
.fh-hot-meta .fp-flag {
    height: 15px;
    margin-left: 4px;
    padding: 0 4px;
    font-size: 10px;
    letter-spacing: 0;
}
