/* ============================================================
   fybo 模板 · framework.css
   依据《系统架构说明 v11.0.0》9.7 框架 CSS 规范
   结构: 全局变量 / 布局 / 左侧栏 / 主导航 / 用户区 / 卡片 /
         弹窗 / 内容流 / 响应式 / 收缩状态 / 移动端
   ============================================================ */

/* ===== 1. 全局与变量 ===== */
:root {
    --fy-active: #6c5ce7;
    --fy-active-light: #a29bfe;
    --fy-bg-primary: #111827;
    --fy-bg-secondary: #1f2937;
    --fy-bg-card: #1f2937;
    --fy-text-primary: #f9fafb;
    --fy-text-secondary: #9ca3af;
    --fy-text-muted: #6b7280;
    --fy-border: #374151;
    --fy-hover: #374151;
    --fy-success: #10b981;
    --fy-warning: #f59e0b;
    --fy-danger: #ef4444;
    /* 左侧菜单滑块：深色用暖黄色，避免和紫色内容按钮混在一起 */
    --fy-nav-glider: #f7e479;
    --fy-nav-glider-glow: rgba(247, 228, 121, .52);
    --fy-publish-bg: #f7e479;
    --fy-publish-text: #171717;
    --fy-publish-shadow: rgba(170, 141, 24, .48);
    --fy-toast-bg: #111827;
    --fy-toast-text: #f9fafb;
    --fy-toast-border: rgba(156, 163, 175, .38);
    --fy-toast-shadow: rgba(0, 0, 0, .32);
    --fy-follow-color: #60a5fa;
    --fy-followed-color: #34d399;
    --fy-radius: 12px;
    --fy-sidebar-width: 240px;
    --fy-rightbar-width: 260px;
    --fy-sidebar-collapsed: 60px;
}

[data-theme="light"] {
    --fy-bg-primary: #f3f4f6;
    --fy-bg-secondary: #ffffff;
    --fy-bg-card: #ffffff;
    --fy-text-primary: #111827;
    --fy-text-secondary: #6b7280;
    --fy-text-muted: #9ca3af;
    --fy-border: #e5e7eb;
    --fy-hover: #f3f4f6;
    --fy-nav-glider: #4f46e5;
    --fy-nav-glider-glow: rgba(79, 70, 229, .38);
    --fy-publish-bg: #4f46e5;
    --fy-publish-text: #ffffff;
    --fy-publish-shadow: rgba(79, 70, 229, .38);
    --fy-toast-bg: #ffffff;
    --fy-toast-text: #111827;
    --fy-toast-border: rgba(79, 70, 229, .24);
    --fy-toast-shadow: rgba(15, 23, 42, .16);
    --fy-follow-color: #2563eb;
    --fy-followed-color: #059669;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: var(--fy-bg-primary);
    color: var(--fy-text-primary);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--fy-border);
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* 框架采用无滚动条视觉，仍保留鼠标滚轮/触控滚动能力 */
html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* ===== 2. 布局 ===== */
.fy-app {
    display: flex;
    min-height: 100vh;
    background: var(--fy-bg-primary);
    color: var(--fy-text-primary);
}

.fy-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--fy-sidebar-width);
    height: 100vh;
    background: var(--fy-bg-secondary);
    border-right: 1px solid var(--fy-border);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.fy-sidebar::-webkit-scrollbar { width: 0; height: 0; }

.fy-main {
    flex: 1;
    margin-left: var(--fy-sidebar-width);
    margin-right: var(--fy-rightbar-width);
    min-width: 0;
    /* 使用容器宽度而不是 100vw，避免浏览器滚动条宽度让内容多出一截 */
    width: calc(100% - var(--fy-sidebar-width) - var(--fy-rightbar-width));
    max-width: calc(100% - var(--fy-sidebar-width) - var(--fy-rightbar-width));
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 20px;
    min-height: 100vh;
    transition: margin 0.3s ease, opacity .18s ease, transform .18s ease;
}

/* 主区中的任何页面模块都不能把固定侧栏挤出可用宽度 */
.fy-main > * {
    min-width: 0;
    max-width: 100%;
}

.fy-rightbar {
    position: fixed;
    right: 0;
    top: 0;
    width: var(--fy-rightbar-width);
    height: 100vh;
    background: var(--fy-bg-secondary);
    border-left: 1px solid var(--fy-border);
    padding: 16px;
    overflow-y: auto;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
    transition: transform 0.3s ease;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.fy-rightbar::-webkit-scrollbar { width: 0; height: 0; }

/* 右侧栏收缩状态 */
.fy-rightbar.fy-collapsed {
    transform: translateX(100%);
}

.fy-main.fy-right-collapsed {
    margin-right: 0;
    width: calc(100% - var(--fy-sidebar-width));
    max-width: calc(100% - var(--fy-sidebar-width));
}

/* 右侧栏内收缩按钮 */
.fy-rightbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    margin: 12px 0 14px;
    border-radius: 10px;
    background: var(--fy-bg-primary);
    background: color-mix(in srgb, var(--fy-bg-secondary) 88%, var(--fy-active) 12%);
    border: 1px solid var(--fy-border);
    color: var(--fy-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fy-rightbar-toggle:hover,
.fy-rightbar-toggle:focus,
.fy-rightbar-toggle:focus-visible {
    background: var(--fy-active);
    border-color: var(--fy-active);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}

.fy-rightbar-toggle .fy-toggle-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.fy-back-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    margin: 0 0 14px;
    border: 1px solid var(--fy-border);
    border-radius: 10px;
    background: var(--fy-bg-primary);
    color: var(--fy-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.fy-back-top:hover, .fy-back-top:focus, .fy-back-top:focus-visible {
    background: var(--fy-active);
    border-color: var(--fy-active);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}
.fy-back-top[hidden] { display: none; }

/* 收缩后浮动展开按钮（贴右侧边缘） */
.fy-rightbar-expand {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 52px;
    border-radius: 8px 0 0 8px;
    background: var(--fy-bg-secondary);
    border: 1px solid var(--fy-border);
    border-right: none;
    color: var(--fy-text-secondary);
    font-size: 14px;
    cursor: pointer;
    z-index: 1201;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.fy-rightbar-expand:hover {
    background: var(--fy-active);
    color: #fff;
    border-color: var(--fy-active);
}

/* 收缩状态 */
.fy-sidebar.fy-collapsed {
    width: var(--fy-sidebar-collapsed);
}

.fy-main.fy-expanded {
    margin-left: var(--fy-sidebar-collapsed);
    width: calc(100% - var(--fy-sidebar-collapsed) - var(--fy-rightbar-width));
    max-width: calc(100% - var(--fy-sidebar-collapsed) - var(--fy-rightbar-width));
}

.fy-rightbar-expand .fy-icon {
    display: none;
}

.fy-rightbar-expand-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    font-weight: 700;
}

/* 右栏展开键贴在视窗右边时，提示气泡从按钮左侧弹出，避免跑出屏幕 */
.fy-rightbar-expand > .fy-tooltip {
    top: 50%;
    left: auto;
    right: calc(100% + 10px);
    transform: translateY(-50%);
}
.fy-rightbar-expand:hover > .fy-tooltip,
.fy-rightbar-expand:focus > .fy-tooltip,
.fy-rightbar-expand:focus-visible > .fy-tooltip {
    top: 50%;
    right: calc(100% + 10px);
}
.fy-rightbar-expand > .fy-tooltip::before {
    left: auto;
    right: -5px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(45deg);
}
.fy-rightbar-expand:hover .fy-rightbar-expand-glyph,
.fy-rightbar-expand:focus .fy-rightbar-expand-glyph,
.fy-rightbar-expand:focus-visible .fy-rightbar-expand-glyph {
    animation: fy-jello-vertical .7s both;
}

/* 即使脚本尚未完成初始化，只要右栏已收缩，展开箭头也必须可见 */
.fy-rightbar.fy-collapsed ~ .fy-rightbar-expand {
    display: flex !important;
}

/* 左侧栏和右侧栏可以独立收缩，主内容区始终填满两栏之间的可用空间 */
.fy-main.fy-expanded.fy-right-collapsed {
    width: calc(100% - var(--fy-sidebar-collapsed));
    max-width: calc(100% - var(--fy-sidebar-collapsed));
}

/* ===== 3. 左侧栏 Logo ===== */
.fy-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 64px;
    padding: 0 18px;
    cursor: pointer;
    flex-shrink: 0;
    border-bottom: 1px solid var(--fy-border);
}

.fy-logo-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.fy-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
}

.fy-logo-text {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--fy-active-light);
}

/* ===== 4. 主导航 ===== */
.fy-sidebar-body {
    position: relative;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.fy-sidebar-body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Uiverse 风格的左侧导航发光滑块；位置由 JS 跟随当前链接，不改变原有链接语义。 */
.fy-sidebar-nav-glider {
    position: absolute;
    left: 10px;
    right: 0;
    top: 0;
    bottom: 0;
    width: auto;
    pointer-events: none;
    opacity: .82;
    background: none;
    transition: opacity .2s ease;
    z-index: 1;
}
.fy-sidebar-nav-glider > span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 42px;
    border-radius: 0;
    opacity: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--fy-nav-glider) 18%, transparent) 0%, color-mix(in srgb, var(--fy-nav-glider) 7%, transparent) 42%, transparent 100%);
    border-left: 1px solid var(--fy-nav-glider);
    box-shadow: 0 0 12px var(--fy-nav-glider-glow);
    transition: top .5s cubic-bezier(.37,1.95,.66,.56), height .24s ease, opacity .22s ease;
    will-change: top, height;
    pointer-events: none;
}
.fy-sidebar-nav-glider > span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--fy-nav-glider) 62%, transparent), color-mix(in srgb, var(--fy-nav-glider) 12%, transparent) 45%, transparent 100%);
    filter: blur(10px);
    opacity:.24;
    transform: translateY(-50%);
}
.fy-sidebar-nav-glider > span::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, color-mix(in srgb, var(--fy-nav-glider) 18%, transparent), transparent 100%);
}
.fy-sidebar-nav-glider.is-visible > span { opacity: 1; }

.fy-sidebar-group {
    position: relative;
    z-index: 2;
    margin-bottom: 6px;
}

.fy-sidebar-group-title {
    padding: 10px 10px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--fy-text-secondary);
    white-space: nowrap;
    overflow: hidden;
}

.fy-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: 0;
    color: var(--fy-text-primary);
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.fy-nav-item:hover {
    background: transparent;
    color: var(--fy-nav-glider);
}

.fy-nav-item:focus-visible {
    outline: 1px solid color-mix(in srgb, var(--fy-nav-glider) 65%, transparent);
    outline-offset: -1px;
}

.fy-nav-item.fy-active {
    background: transparent;
    color: var(--fy-nav-glider);
    font-weight: 600;
    border-left: 0;
    box-shadow: none;
    z-index: 3;
}

.fy-nav-item .fy-icon {
    font-size: 17px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    transition: transform .28s ease, filter .28s ease;
}
.fy-nav-item.fy-active .fy-icon { transform: scale(1.08); filter: drop-shadow(0 0 5px var(--fy-nav-glider-glow)); }

.fy-sidebar-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== 5. 用户头像区域 ===== */
.fy-user-area {
    padding: 12px 10px;
    border-top: 1px solid var(--fy-border);
    border-bottom: 1px solid var(--fy-border);
}

.fy-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 10px;
    cursor: pointer;
    border-radius: 10px;
}

.fy-user-profile:hover {
    background: var(--fy-hover);
}

.fy-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--fy-active);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
    flex-shrink: 0;
}

.fy-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fy-avatar .fy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    vertical-align: middle;
}

.fy-avatar .fy-icon::before {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fy-username {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fy-user-sub {
    font-size: 11px;
    color: var(--fy-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fy-tools {
    display: flex;
    gap: 8px;
}

.fy-tool-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 0;
    min-height: 56px;
    border-radius: 10px;
    background: var(--fy-bg-primary);
    border: 1px solid var(--fy-border);
    color: var(--fy-text-primary);
    font-size: 16px;
    position: relative;
    transition: background 0.2s ease, transform 0.15s ease;
}

.fy-tool-btn .fy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.fy-tool-btn:hover {
    background: var(--fy-hover);
    transform: translateY(-1px);
}

.fy-tool-btn .fy-label {
    font-size: 10px;
    color: var(--fy-text-secondary);
}

.fy-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--fy-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 收缩按钮 */
.fy-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    margin-top: 8px;
    border-radius: var(--fy-radius);
    background: var(--fy-bg-primary);
    border: 1px solid var(--fy-border);
    color: var(--fy-text-secondary);
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fy-toggle-btn:hover,
.fy-toggle-btn:focus,
.fy-toggle-btn:focus-visible {
    background: var(--fy-active);
    border-color: var(--fy-active);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}

.fy-toggle-btn .fy-toggle-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    font-size: 19px;
    line-height: 1;
    font-weight: 700;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .fy-sidebar-nav-glider > span { transition: opacity .15s ease; }
    .fy-nav-item .fy-icon { transition: none; }
}

.fy-toggle-btn:hover .fy-toggle-glyph,
.fy-toggle-btn:focus .fy-toggle-glyph,
.fy-toggle-btn:focus-visible .fy-toggle-glyph,
.fy-rightbar-toggle:hover .fy-toggle-glyph,
.fy-rightbar-toggle:focus .fy-toggle-glyph,
.fy-rightbar-toggle:focus-visible .fy-toggle-glyph {
    animation: fy-jello-vertical .7s both;
}

/* 收缩时隐藏文字 */
.fy-sidebar.fy-collapsed .fy-sidebar-text,
.fy-sidebar.fy-collapsed .fy-sidebar-group-title {
    display: none;
}

.fy-sidebar.fy-collapsed .fy-logo {
    justify-content: center;
    padding: 0;
}

.fy-sidebar.fy-collapsed .fy-logo-img {
    width: 32px;
    height: 32px;
}

.fy-sidebar.fy-collapsed .fy-nav-item,
.fy-sidebar.fy-collapsed .fy-toggle-btn {
    justify-content: center;
    padding: 10px 0;
}
.fy-sidebar.fy-collapsed .fy-sidebar-nav-glider { left: 0; right: 0; }

/* 左栏收缩后提示从按钮右侧弹出，保证完整显示在视窗内 */
.fy-sidebar.fy-collapsed .fy-toggle-btn > .fy-tooltip {
    top: 50%;
    left: calc(100% + 10px);
    transform: translateY(-50%);
}
.fy-sidebar.fy-collapsed .fy-toggle-btn:hover > .fy-tooltip,
.fy-sidebar.fy-collapsed .fy-toggle-btn:focus > .fy-tooltip,
.fy-sidebar.fy-collapsed .fy-toggle-btn:focus-visible > .fy-tooltip {
    top: 50%;
    opacity: 1;
}
.fy-sidebar.fy-collapsed .fy-toggle-btn > .fy-tooltip::before {
    left: -5px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(45deg);
}

.fy-sidebar.fy-collapsed .fy-user-profile {
    justify-content: center;
    gap: 0;
    padding: 4px 0 10px;
}

.fy-sidebar.fy-collapsed .fy-user-profile > *:not(.fy-avatar) {
    display: none;
}

.fy-sidebar.fy-collapsed .fy-user-area {
    padding: 10px 6px;
}

.fy-sidebar.fy-collapsed .fy-avatar {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border: 2px solid var(--fy-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.fy-sidebar.fy-collapsed .fy-avatar:hover {
    border-color: var(--fy-active);
    transform: scale(1.05);
}

.fy-sidebar.fy-collapsed .fy-avatar .fy-icon {
    font-size: 18px;
}

.fy-sidebar.fy-collapsed .fy-tools {
    flex-direction: column;
    gap: 6px;
}

.fy-sidebar.fy-collapsed .fy-tool-btn {
    flex: none;
    width: 100%;
    padding: 6px 0;
    min-height: 40px;
}

.fy-sidebar.fy-collapsed .fy-tool-btn .fy-icon {
    width: 20px;
    height: 20px;
    font-size: 16px;
}

.fy-sidebar.fy-collapsed .fy-tool-btn .fy-label {
    display: none;
}

/* ===== 7. 卡片 ===== */
.fy-card {
    background: var(--fy-bg-card);
    border: 1px solid var(--fy-border);
    border-radius: var(--fy-radius);
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.25s;
}

.fy-card:hover {
    border-color: var(--fy-active);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.fy-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.fy-card-title .fy-icon {
    color: var(--fy-active);
}

/* ===== 通用小组件 ===== */
.fy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.fy-btn-primary {
    background: var(--fy-active);
    color: #fff;
}

.fy-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.fy-btn-ghost {
    background: transparent;
    border: 1px solid var(--fy-border);
    color: var(--fy-text-primary);
}

.fy-btn-ghost:hover {
    background: var(--fy-hover);
}

/* 统一发布按钮：参考 Uiverse，悬停时文字收起、编辑图标居中，按下有位移反馈。 */
.fy-publish-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 83px;
    min-width: 83px;
    height: 32px;
    padding: 0 14px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    color: var(--fy-publish-text);
    background: var(--fy-publish-bg);
    box-shadow: 4px 4px 0 var(--fy-publish-shadow);
    font-weight: 700;
    white-space: nowrap;
    transition: color .25s ease, background .25s ease, transform .18s ease, box-shadow .18s ease;
}
.fy-publish-action .fy-icon-edit { position: absolute; right: 13px; margin: 0; color: currentColor; font-size: 14px; line-height: 1; transition: right .28s ease, transform .28s ease; }
.fy-publish-action:hover { color: transparent; background: var(--fy-publish-bg); transform: translateY(-1px); filter: none; }
.fy-publish-action:hover .fy-icon-edit { right: 50%; color: var(--fy-publish-text); transform: translateX(50%) scale(1.12); }
.fy-publish-action:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--fy-publish-shadow); }
.fy-publish-action:focus-visible { outline: 2px solid var(--fy-publish-bg); outline-offset: 3px; }
.fy-publish-action.fy-publish-action-wide { width: 100%; min-width: 0; justify-content: center; }
.fy-publish-action.fy-publish-action-wide .fy-icon-edit { right: 14px; }
.fy-publish-action.fy-publish-action-wide:hover .fy-icon-edit { right: 50%; }
.fy-btn-secondary { background: transparent; border: 1px solid var(--fy-border); color: var(--fy-text-primary); }
.fy-btn-secondary:hover { background: var(--fy-hover); }

/* ===== 统一按钮提示（替代浏览器原生 title） ===== */
.fy-tooltip-trigger { position: relative; }
.fy-tooltip-trigger > .fy-tooltip {
    position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
    opacity: 0; pointer-events: none; white-space: nowrap;
    padding: 5px 10px; border-radius: 6px; z-index: 1000;
    color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .3px;
    background: linear-gradient(147deg, #ffe53b 0%, #ff2525 74%);
    box-shadow: 0 6px 14px rgba(0,0,0,.2);
    transition: top .2s ease, opacity .2s ease;
}
.fy-tooltip-trigger > .fy-tooltip::before {
    content: ""; position: absolute; left: 50%; bottom: -5px;
    width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg);
    background: #ff2525;
}
.fy-tooltip-trigger:hover > .fy-tooltip,
.fy-tooltip-trigger:focus > .fy-tooltip,
.fy-tooltip-trigger:focus-visible > .fy-tooltip { top: -42px; opacity: 1; }
.fy-tooltip-trigger.fy-tooltip-dismissed > .fy-tooltip { opacity: 0 !important; pointer-events: none; }
.fy-tooltip-trigger > .fy-tooltip.fy-tooltip-fixed { position: fixed !important; transform: none !important; }
/* 侧边栏内提示改走 body 级 fixed 提示（避免被滚动/transform 裁剪）；隐藏子元素提示避免双提示 */
.fy-sidebar .fy-tooltip-trigger > .fy-tooltip { display: none !important; }
.fy-sidebar-tooltip-fixed {
    position: fixed; z-index: 2147483647; white-space: nowrap; pointer-events: none;
    padding: 5px 10px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .3px;
    background: linear-gradient(147deg, #ffe53b 0%, #ff2525 74%);
    box-shadow: 0 6px 14px rgba(0,0,0,.2);
}
.fy-sidebar-tooltip-fixed::before {
    content: ""; position: absolute; left: 50%; bottom: -5px;
    width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg);
    background: #ff2525;
}
.fy-tooltip-trigger:hover > .fy-icon,
.fy-tooltip-trigger:focus > .fy-icon,
.fy-tooltip-trigger:focus-visible > .fy-icon { animation: fy-jello-vertical .7s both; }
/* 侧边栏内 hover 停止图标抖动动画，避免频繁重放导致卡顿 */
.fy-sidebar .fy-tooltip-trigger:hover > .fy-icon,
.fy-sidebar .fy-tooltip-trigger:focus > .fy-icon,
.fy-sidebar .fy-tooltip-trigger:focus-visible > .fy-icon { animation: none; }

/* 展开键同时使用 tooltip-trigger 时，不能被通用提示样式改成 relative；必须固定在视窗右侧中线 */
.fy-rightbar-expand.fy-tooltip-trigger {
    position: fixed !important;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes fy-jello-vertical {
    0% { transform: scale3d(1,1,1); } 30% { transform: scale3d(.75,1.25,1); }
    40% { transform: scale3d(1.25,.75,1); } 50% { transform: scale3d(.85,1.15,1); }
    65% { transform: scale3d(1.05,.95,1); } 75% { transform: scale3d(.95,1.05,1); }
    100% { transform: scale3d(1,1,1); }
}
.fy-bbs-no-latest .fy-bbs-tag-stat { display: none; }
[data-theme="light"] .fy-tooltip-trigger > .fy-tooltip { box-shadow: 0 8px 18px rgba(31,41,55,.22); }

.fy-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--fy-active);
    color: #fff;
}

.fy-divider {
    height: 1px;
    background: var(--fy-border);
    margin: 12px 0;
}

/* ===== 8. 弹窗 ===== */
.fy-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.fy-modal-overlay.fy-show {
    opacity: 1;
    visibility: visible;
}

.fy-modal {
    width: min(440px, calc(100vw - 40px));
    max-height: 82vh;
    overflow-y: auto;
    background: var(--fy-bg-card);
    border: 1px solid var(--fy-border);
    border-radius: 16px;
    padding: 22px;
    animation: fy-modal-in 0.25s ease;
}

/* 功能统一发布弹窗 */
.fy-publish-modal .fy-modal {
    width: min(680px, calc(100vw - 30px));
    max-height: min(86vh, 760px);
}
.fy-publish-board-label {
    display: block;
    margin-bottom: 6px;
    color: var(--fy-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.fy-publish-modal .fy-modal {
    padding: 0;
    /* 发布字段较多时在弹窗内部滚动，不能用 overflow:hidden 把底部按钮裁掉。 */
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.fy-publish-modal .fy-modal-head {
    margin: 0;
    padding: 18px 22px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(108,92,231,.18), rgba(45,127,249,.10));
    border-bottom: 1px solid var(--fy-border);
}
.fy-publish-modal .fy-modal-title { font-size: 19px; letter-spacing: .02em; }
.fy-publish-modal .fy-modal-title::before { content: '✦'; margin-right: 8px; color: var(--fy-active); }
.fy-publish-modal .fy-modal-close { background: rgba(127,138,162,.14); transition: transform .2s, background .2s, color .2s; }
.fy-publish-modal .fy-modal-close:hover { transform: rotate(90deg); background: rgba(239,68,68,.12); }
.fy-publish-modal .fy-publish-board-label,
.fy-publish-modal .fy-publish-board-select,
.fy-publish-modal .fy-publish-error { margin-left: 22px; margin-right: 22px; }
.fy-publish-modal .fy-publish-board-label { margin-top: 18px; color: var(--fy-text-primary); }
.fy-publish-modal .fy-publish-board-label + .fy-publish-board-select { margin-top: 0; }
.fy-publish-modal .fy-input {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--fy-border);
    border-radius: 9px;
    color: var(--fy-text-primary);
    background: var(--fy-bg-card);
    outline: 0;
    font: inherit;
    line-height: 1.45;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.fy-publish-modal textarea.fy-input { min-height: 120px; resize: vertical; }
.fy-publish-modal select.fy-input { appearance: auto; cursor: pointer; }
.fy-publish-modal .fy-publish-board-select { width: calc(100% - 44px); margin-bottom: 16px; border-radius: 11px; background: var(--fy-bg-primary); }
.fy-publish-modal .fy-publish-forms { min-height: 0; }
.fy-publish-modal .fy-publish-form { display: block; padding: 2px 22px 22px; }
.fy-publish-modal .fy-publish-form[style*="display:none"],
.fy-publish-modal .fy-publish-form[style*="display: none"] { display: none !important; }
.fy-publish-modal .fy-publish-form > .fy-plugin-publish-head:first-child { margin-top: 0; }
.fy-publish-modal .fy-publish-form > label { padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--fy-border); border-radius: 11px; background: var(--fy-bg-primary); }
.fy-publish-modal .fy-publish-form .fy-input { border-color: var(--fy-border); background: var(--fy-bg-card); }
.fy-publish-modal .fy-publish-form .fy-input:focus { border-color: var(--fy-active); box-shadow: 0 0 0 3px rgba(108,92,231,.13); }
.fy-publish-modal .fy-publish-submit { margin-top: 7px; padding: 12px 16px; border-radius: 11px; font-weight: 700; box-shadow: 5px 5px 0 var(--fy-publish-shadow); }
.fy-publish-modal .fy-publish-error { margin-top: 14px; }

/* 独立发布页：复用发布表单组件，但不使用 fixed/overlay 弹窗。 */
.fy-publish-page { width:100%; max-width:820px; min-width:0; margin:0 auto; }
.fy-publish-page-card { width:100%; min-width:0; overflow:hidden; border:1px solid var(--fy-border); border-radius:16px; background:var(--fy-bg-card); box-shadow:0 14px 34px rgba(0,0,0,.10); }
.fy-publish-page-card .fy-publish-page-head { display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid var(--fy-border); background:linear-gradient(135deg,rgba(108,92,231,.14),rgba(45,127,249,.08)); }
.fy-publish-page-card .fy-publish-page-close { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:9px; color:var(--fy-text-secondary); background:rgba(127,138,162,.14); }
.fy-publish-page-card .fy-publish-page-close:hover { color:var(--fy-danger); background:rgba(239,68,68,.12); }
.fy-publish-page-card > .fy-publish-board-label,
.fy-publish-page-card > .fy-publish-board-select,
.fy-publish-page-card > .fy-publish-error { margin-left:22px; margin-right:22px; }
.fy-publish-page-card > .fy-publish-board-label { display:block; margin-top:18px; }
.fy-publish-page-card > .fy-publish-board-select { width:calc(100% - 44px); margin-bottom:16px; }
.fy-publish-page-card .fy-publish-form { padding:2px 22px 22px; }
.fy-publish-page-card .fy-publish-form > label { display:block; padding:10px 12px; margin-bottom:10px; border:1px solid var(--fy-border); border-radius:11px; background:var(--fy-bg-primary); }
.fy-publish-page-card .fy-publish-form .fy-input { width:100%; box-sizing:border-box; }
.fy-publish-page-card .fy-publish-submit { margin-top:7px; }
.fy-publish-board-select { margin-bottom: 16px; }
.fy-publish-form > label {
    display: block;
    margin: 0 0 12px;
    color: var(--fy-text-secondary);
    font-size: 13px;
    font-weight: 600;
}
.fy-publish-form .fy-input { margin-top: 6px; }
.fy-publish-submit { width: 100%; margin-top: 4px; }
.fy-publish-error {
    margin-bottom: 12px;
    padding: 9px 11px;
    border: 1px solid rgba(239, 68, 68, .35);
    border-radius: 8px;
    color: #ef4444;
    background: rgba(239, 68, 68, .08);
    font-size: 13px;
}

@keyframes fy-modal-in {
    from {
        transform: translateY(16px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.fy-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.fy-modal-title {
    font-size: 17px;
    font-weight: 700;
}

.fy-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fy-hover);
    font-size: 15px;
}

.fy-modal-close:hover {
    color: var(--fy-danger);
}

/* 好友管理与一对一聊天 */
.fy-friend-manager { display: grid; gap: 18px; }
.fy-friend-search { display: flex; gap: 8px; }
.fy-friend-search input { min-width: 0; flex: 1; padding: 9px 10px; border: 1px solid var(--fy-border); border-radius: 9px; color: var(--fy-text-primary); background: var(--fy-bg-primary); font: inherit; outline: none; }
.fy-friend-search input:focus { border-color: var(--fy-active); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fy-active) 14%, transparent); }
.fy-friend-search .fy-btn { flex: 0 0 auto; }
.fy-friend-section { min-width: 0; }
.fy-friend-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: var(--fy-text-primary); font-size: 14px; }
.fy-friend-section-head span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; border-radius: 7px; color: var(--fy-active); background: color-mix(in srgb, var(--fy-active) 12%, var(--fy-bg-primary)); font-size: 11px; }
.fy-friend-list, .fy-friend-request-list { display: grid; gap: 7px; }
.fy-friend-row, .fy-friend-request { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--fy-border); border-radius: 11px; color: var(--fy-text-primary); background: var(--fy-bg-primary); text-align: left; box-sizing: border-box; }
.fy-friend-row { cursor: pointer; font: inherit; transition: border-color .2s, background .2s, transform .2s; }
.fy-friend-row:hover { border-color: color-mix(in srgb, var(--fy-active) 45%, var(--fy-border)); background: color-mix(in srgb, var(--fy-active) 6%, var(--fy-bg-card)); transform: translateY(-1px); }
.fy-friend-row > .fy-icon { margin-left: auto; color: var(--fy-active); }
.fy-friend-avatar, .fy-friend-profile-avatar { display: inline-flex; position: relative; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--fy-active), #14b8a6); font-size: 14px; font-weight: 700; }
.fy-friend-avatar img, .fy-friend-profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fy-friend-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.fy-friend-copy strong { overflow: hidden; color: var(--fy-text-primary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.fy-friend-copy small, .fy-friend-status { overflow: hidden; color: var(--fy-text-secondary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.fy-friend-request { align-items: flex-start; }
.fy-friend-request-actions { display: flex; flex: 0 0 auto; gap: 5px; margin-left: auto; }
.fy-friend-request-actions .fy-btn { padding: 5px 8px; font-size: 11px; }
.fy-friend-empty, .fy-friend-loading { padding: 18px 10px; color: var(--fy-text-secondary); font-size: 12px; text-align: center; }
.fy-friend-profile { display: flex; align-items: center; flex-direction: column; padding: 8px 0 4px; text-align: center; }
.fy-friend-profile-avatar { width: 64px; height: 64px; flex-basis: 64px; margin-bottom: 12px; font-size: 24px; }
.fy-friend-profile h3 { margin: 0; color: var(--fy-text-primary); font-size: 18px; }
.fy-friend-profile > p { margin: 5px 0 17px; }
.fy-friend-profile-action { width: 100%; }
.fy-friend-add-form { display: grid; gap: 9px; width: 100%; }
.fy-friend-add-form textarea { width: 100%; min-height: 72px; padding: 9px 10px; border: 1px solid var(--fy-border); border-radius: 9px; color: var(--fy-text-primary); background: var(--fy-bg-primary); box-sizing: border-box; font: inherit; resize: vertical; }
.fy-chat-modal { display: flex; min-height: 320px; flex-direction: column; gap: 10px; }
.fy-chat-list { display: flex; min-height: 220px; max-height: 52vh; overflow-y: auto; flex: 1; flex-direction: column; gap: 8px; padding: 5px 2px; scrollbar-width: none; }
.fy-chat-list::-webkit-scrollbar { display: none; width: 0; height: 0; }
.fy-chat-message { display: flex; align-items: flex-start; flex-direction: column; gap: 3px; max-width: 82%; }
.fy-chat-message.is-mine { align-self: flex-end; align-items: flex-end; }
.fy-chat-message { flex-direction:row; gap:8px; }
.fy-chat-message.is-mine { flex-direction:row-reverse; }
.fy-chat-message-avatar { display:inline-flex; position:relative; align-items:center; justify-content:center; flex:0 0 30px; width:30px; height:30px; margin-top:2px; overflow:hidden; border-radius:50%; color:#fff; background:linear-gradient(135deg, var(--fy-active), #14b8a6); font-size:12px; font-weight:700; }
.fy-chat-message-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.fy-chat-message-body { min-width:0; display:flex; flex-direction:column; gap:3px; }
.fy-chat-bubble { padding: 8px 11px; border: 1px solid var(--fy-border); border-radius: 13px 13px 13px 4px; color: var(--fy-text-primary); background: transparent; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.fy-chat-message.is-mine .fy-chat-bubble { border-color: var(--fy-active); border-radius: 13px 13px 4px 13px; color: var(--fy-active); background: transparent; box-shadow: 0 0 8px color-mix(in srgb, var(--fy-active) 22%, transparent); }
.fy-chat-message time { color: var(--fy-text-secondary); font-size: 10px; }
.fy-chat-form { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--fy-border); }
.fy-chat-form input { min-width: 0; flex: 1; padding: 10px 11px; border: 1px solid var(--fy-border); border-radius: 10px; color: var(--fy-text-primary); background: var(--fy-bg-primary); font: inherit; outline: none; }
.fy-chat-form input:focus { border-color: var(--fy-active); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fy-active) 15%, transparent); }
.fy-central-chat-page { max-width:none; }
.fy-central-chat-head { display:flex; align-items:center; gap:13px; margin-bottom:14px; }
.fy-central-chat-head .fy-message-avatar { width:46px; height:46px; flex-basis:46px; }
.fy-central-chat-head h1 { margin:3px 0 4px; color:var(--fy-text-primary); font-size:22px; }
.fy-central-chat-head p { margin:0; }
.fy-central-chat-card { display:flex; min-height:480px; flex-direction:column; padding:18px 20px; }
.fy-central-chat-card .fy-chat-list { min-height:390px; max-height:calc(100vh - 310px); }
.fy-detail-author { padding: 0; border: 0; color: var(--fy-active); background: transparent; font: inherit; cursor: pointer; }
.fy-detail-author:hover { text-decoration: underline; }
.fy-group-manager { display: grid; gap: 18px; }
.fy-group-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fy-group-form { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--fy-border); border-radius: 12px; background: var(--fy-bg-primary); }
.fy-group-form strong { color: var(--fy-text-primary); font-size: 13px; }
.fy-group-form input, .fy-group-form textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--fy-border); border-radius: 9px; color: var(--fy-text-primary); background: var(--fy-bg-card); box-sizing: border-box; font: inherit; outline: none; }
.fy-group-form textarea { min-height: 62px; resize: vertical; }
.fy-group-form input:focus, .fy-group-form textarea:focus { border-color: var(--fy-active); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fy-active) 14%, transparent); }
.fy-group-list, .fy-group-invite-list { display: grid; gap: 7px; }
.fy-group-row { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--fy-border); border-radius: 11px; color: var(--fy-text-primary); background: var(--fy-bg-primary); text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.fy-group-row:hover { border-color: color-mix(in srgb, var(--fy-active) 45%, var(--fy-border)); background: color-mix(in srgb, var(--fy-active) 6%, var(--fy-bg-card)); transform: translateY(-1px); }
.fy-group-row > .fy-icon { margin-left: auto; color: var(--fy-active); }
.fy-group-row-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; color: var(--fy-active); background: color-mix(in srgb, var(--fy-active) 14%, var(--fy-bg-primary)); }
.fy-group-chat { display: flex; min-height: 420px; flex-direction: column; gap: 10px; }
.fy-group-chat-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--fy-active) 22%, var(--fy-border)); border-radius: 9px; color: var(--fy-text-secondary); background: color-mix(in srgb, var(--fy-active) 5%, var(--fy-bg-primary)); font-size: 11px; }
.fy-group-chat-meta strong { color: var(--fy-active); font-size: 12px; letter-spacing: .04em; }
.fy-group-message-author { margin-left: 4px; color: var(--fy-text-secondary); font-size: 10px; }
.fy-group-invite { padding-top: 10px; border-top: 1px solid var(--fy-border); }
.fy-group-invite-item { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 8px; border-radius: 9px; background: var(--fy-bg-primary); }
.fy-group-invite-item + .fy-group-invite-item { margin-top: 5px; }
.fy-group-invite-item .fy-btn { flex: 0 0 auto; padding: 5px 9px; font-size: 11px; }
.fy-group-invite-item .fy-btn.is-added { color: var(--fy-active); border-color: color-mix(in srgb, var(--fy-active) 35%, var(--fy-border)); background: color-mix(in srgb, var(--fy-active) 9%, var(--fy-bg-card)); }

/* ===== 移动端遮罩 ===== */
.fy-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fy-mobile-overlay.fy-show {
    opacity: 1;
    visibility: visible;
}

/* ===== 内容流（轻论坛风格帖子卡片） ===== */
.fy-stream {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.fy-post {
    background: var(--fy-bg-card);
    border: 1px solid var(--fy-border);
    border-radius: 14px;
    padding: 16px 18px;
    cursor: pointer;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    transition: all 0.25s;
}

.fy-post:hover {
    border-color: var(--fy-active);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.fy-post-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.fy-post-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--fy-text-primary);
}

.fy-post-sep {
    font-size: 12px;
    color: var(--fy-text-secondary);
    opacity: 0.5;
}

.fy-post-time {
    font-size: 12px;
    color: var(--fy-text-secondary);
}

.fy-post-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-wrap: wrap;
}

.fy-post-badge {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

.fy-post-top-badge {
    background: var(--fy-danger);
}

.fy-post-cat-badge {
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.fy-post-cat-badge:hover {
    opacity: 0.85;
}

.fy-post-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--fy-text-primary);
    line-height: 1.5;
}

.fy-post-text {
    font-size: 13px;
    color: var(--fy-text-secondary);
    line-height: 1.7;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.fy-admin-author { color:#b45309 !important; font-weight:700; }

.fy-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.fy-post-tag-badge { background:rgba(245,158,11,.12); color:#b45309; }

.fy-post-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    color: var(--fy-accent, #4f46e5);
    background: color-mix(in srgb, var(--fy-accent, #4f46e5) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--fy-accent, #4f46e5) 22%, transparent);
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.fy-post-tag:hover {
    color: #fff;
    background: var(--fy-accent, #4f46e5);
    transform: translateY(-1px);
}

.fy-post-text > *,
.fy-post-text table,
.fy-post-text iframe,
.fy-post-text video,
.fy-post-text canvas,
.fy-post-text svg {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* 编辑器粘贴的固定宽度不能撑破帖子卡片；百分比宽度仍会随内容区缩放 */
.fy-post-text [style*="width"],
.fy-post-text [style*="min-width"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.fy-post-text [width] {
    max-width: 100% !important;
    box-sizing: border-box;
}

.fy-post-text pre,
.fy-post-text code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.fy-post-text table {
    display: block;
    overflow-x: auto;
}

.fy-post-text img {
    border-radius: 8px;
    margin-top: 8px;
    width: auto;
    max-width: 100%;
    max-height: 300px;
}

.fy-post-thumb {
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.fy-post-thumb img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.fy-post-foot {
    display: flex;
    align-items: center;
    margin-top: 12px;
    color: var(--fy-text-secondary);
    font-size: 12px;
}

.fy-post-stats {
    display: flex;
    align-items: center;
    gap: 18px;
}

.fy-post-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fy-post-stat .fy-icon {
    font-size: 13px;
}

.fy-post-admin-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.fy-post-admin-actions form {
    display: inline-flex;
    margin: 0;
}

.fy-post-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid var(--fy-border);
    border-radius: 7px;
    color: var(--fy-text-secondary);
    background: var(--fy-bg-primary);
    font-size: 11px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.fy-post-admin-btn:hover {
    color: var(--fy-active);
    border-color: var(--fy-active);
    transform: translateY(-1px);
}

.fy-post-admin-danger:hover {
    color: #ef4444;
    border-color: rgba(239,68,68,.5);
    background: rgba(239,68,68,.08);
}

.fy-admin-notice {
    margin: 0 0 14px;
    padding: 10px 13px;
    border: 1px solid var(--fy-border);
    border-radius: 10px;
    color: var(--fy-text-secondary);
    background: var(--fy-bg-card);
    font-size: 13px;
}

.fy-admin-notice-error {
    border-color: rgba(239,68,68,.38);
    color: #ef4444;
    background: rgba(239,68,68,.08);
}

.fy-admin-edit-card {
    max-width: 900px;
    margin: 0 auto;
}

.fy-admin-edit-form label {
    display: block;
    margin: 0 0 14px;
    color: var(--fy-text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.fy-admin-edit-form .fy-input {
    margin-top: 6px;
}

.fy-admin-edit-form textarea.fy-input {
    min-height: 260px;
    resize: vertical;
}

.fy-admin-edit-actions,
.fy-detail-admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.fy-detail-admin-actions form {
    display: inline-flex;
    margin: 0;
}

/* ===== 右侧栏 ===== */
.fy-right-user {
    text-align: center;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--fy-border);
}

.fy-right-avatar {
    width: 56px;
    height: 56px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: var(--fy-active);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fy-right-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fy-right-avatar .fy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    line-height: 1;
    vertical-align: middle;
}

.fy-right-avatar .fy-icon::before {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fy-right-name {
    font-weight: 700;
    font-size: 15px;
}

.fy-right-sign {
    font-size: 12px;
    color: var(--fy-text-secondary);
    margin-top: 2px;
}

.fy-right-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.fy-right-stat {
    text-align: center;
}

.fy-right-stat b {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.fy-right-stat span {
    font-size: 11px;
    color: var(--fy-text-secondary);
}

.fy-right-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.fy-right-action {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--fy-border);
    background: var(--fy-bg-primary);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.fy-right-action:hover {
    border-color: var(--fy-active);
    color: var(--fy-active);
}

.fy-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--fy-text-secondary);
    letter-spacing: 0.06em;
    margin: 14px 0 10px;
}

.fy-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    font-size: 13px;
}

.fy-stat-grid .fy-stat-label {
    color: var(--fy-text-secondary);
}
.fy-bbs-cat-avatar { grid-row:1/3; width:54px; height:54px; display:grid; place-items:center; border-radius:14px; object-fit:cover; color:var(--fy-active); background:color-mix(in srgb,var(--fy-active) 14%,var(--fy-bg-primary)); font-size:25px; overflow:hidden; }
.fy-bbs-cat-info > .fy-bbs-cat-title, .fy-bbs-cat-info > .fy-bbs-cat-meta { grid-column:2; min-width:0; }

.fy-stat-grid > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.fy-stat-grid .fy-stat-value {
    font-weight: 600;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 签到榜 */
.fy-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
}

.fy-rank-num {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--fy-bg-primary);
    border: 1px solid var(--fy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.fy-rank-num.gold { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.fy-rank-num.silver { background: #94a3b8; color: #fff; border-color: #94a3b8; }
.fy-rank-num.bronze { background: #d97706; color: #fff; border-color: #d97706; }

.fy-rank-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    font-weight: 700;
}

.fy-rank-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fy-rank-info {
    flex: 1;
    min-width: 0;
}

.fy-rank-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fy-rank-days {
    font-size: 11px;
    color: var(--fy-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fy-rank-self {
    background: rgba(108, 92, 231, 0.12);
    border-radius: 10px;
    padding: 7px 8px;
}

/* ===== 移动端底部导航 ===== */
.fy-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: var(--fy-bg-secondary);
    border-top: 1px solid var(--fy-border);
    display: none;
    z-index: 1001;
    padding-bottom: env(safe-area-inset-bottom);
}

.fy-mobile-nav-inner {
    display: flex;
    height: 100%;
}

.fy-mobile-nav-item a.fy-active {
    color: var(--fy-active);
}

/* 移动端顶部条（两行：Logo行 + 搜索条） */
.fy-mobile-top {
    display: none;
    position: sticky;
    top: 0;
    z-index: 900;
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px;
    background: var(--fy-bg-secondary);
    border-bottom: 1px solid var(--fy-border);
    margin: -20px -20px 16px;
}

.fy-mobile-top-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
}
.fy-mobile-top-bar > button[data-fy-mobile-nav] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border: 1px solid var(--fy-border);
    border-radius: 9px;
    background: var(--fy-bg-primary);
    color: var(--fy-text-primary);
    font-size: 18px;
    line-height: 1;
}

.fy-mobile-top .fy-logo-img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
    border-radius: 7px;
}

.fy-mobile-top-bar h1 {
    margin: 0;
    color: var(--fy-text-primary);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    flex: 1;
}

.fy-mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--fy-bg-primary);
    border: 1px solid var(--fy-border);
    border-radius: 999px;
    padding: 7px 14px;
    color: var(--fy-text-secondary);
}

.fy-mobile-search .fy-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.fy-mobile-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--fy-text-primary);
    font-size: 13px;
}

.fy-mobile-search input::placeholder {
    color: var(--fy-text-secondary);
}

/* ===== 内容筛选条 ===== */
.fy-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.fy-filter-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--fy-border);
    background: var(--fy-bg-card);
    font-size: 13px;
    color: var(--fy-text-primary);
    transition: all 0.2s ease;
}

.fy-filter-item:hover {
    border-color: var(--fy-active);
    color: var(--fy-active);
}

.fy-filter-item.fy-active {
    background: var(--fy-active);
    border-color: var(--fy-active);
    color: #fff;
    font-weight: 600;
}

/* ===== 加载更多 ===== */
.fy-load-more {
    text-align: center;
    margin-top: 20px;
}

/* ===== 右侧栏工具按钮（通知/消息/设置）- 已全局隐藏 ===== */
.fy-right-tools {
    display: none !important;
}

.fy-right-tool {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--fy-bg-primary);
    border: 1px solid var(--fy-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--fy-text-primary);
    transition: all 0.2s ease;
}

.fy-right-tool:hover {
    border-color: var(--fy-active);
    color: var(--fy-active);
    transform: translateY(-2px);
}

/* 右侧栏工具按钮图标固定区域居中 */
.fy-right-tool .fy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 17px;
    line-height: 1;
    flex-shrink: 0;
}

/* 右侧栏统计区（余额/积分/VIP）图标与数字 flex 居中 */
.fy-right-stat b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
}

.fy-right-stat b .fy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}

/* ===== 主题切换特效：从左下角到右上角圆形扩散（只扩散不收缩，扩散后淡出） ===== */
.fy-theme-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background: #000;
    clip-path: circle(0% at 0% 100%);
    opacity: 0;
    transition: clip-path 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.fy-theme-overlay.active {
    clip-path: circle(150% at 0% 100%);
    opacity: 0.88;
}

.fy-theme-overlay.fy-light { background: #ffffff; }
.fy-theme-overlay.fy-dark  { background: #000000; }

.fy-theme-overlay.fy-fade {
    opacity: 0;
}

/* ===== 全站加载遮盖层 + SVG 芯片电路流动动画（From Uiverse.io by Vosoone） ===== */
.fy-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    /* 默认不显示，避免脚本未及时执行时整页被半透明层盖住。 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fy-loading-overlay.fy-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fy-loading-overlay.fy-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.fy-loading-overlay .main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.fy-loading-overlay .loader {
    width: 300px;
    max-width: 70vw;
}

.fy-loading-overlay .loader svg {
    width: 100%;
    height: auto;
    display: block;
}

/* 电路轨迹背景 */
.fy-loading-overlay .trace-bg {
    stroke: #333;
    stroke-width: 1.8;
    fill: none;
}

/* 电路轨迹流动动画 */
.fy-loading-overlay .trace-flow {
    stroke-width: 1.8;
    fill: none;
    stroke-dasharray: 40 400;
    stroke-dashoffset: 438;
    filter: drop-shadow(0 0 6px currentColor);
    animation: fy-flow 3s cubic-bezier(0.5, 0, 0.9, 1) infinite;
}

.fy-loading-overlay .yellow { stroke: #ffea00; color: #ffea00; }
.fy-loading-overlay .blue { stroke: #00ccff; color: #00ccff; }
.fy-loading-overlay .green { stroke: #00ff15; color: #00ff15; }
.fy-loading-overlay .purple { stroke: #9900ff; color: #9900ff; }
.fy-loading-overlay .red { stroke: #ff3300; color: #ff3300; }

@keyframes fy-flow {
    to {
        stroke-dashoffset: 0;
    }
}

/* 芯片主体 */
.fy-loading-overlay .chip-body {
    rx: 20;
    ry: 20;
}

/* 芯片内文字 */
.fy-loading-overlay .chip-text {
    font-weight: bold;
    letter-spacing: 1px;
}

/* 芯片引脚 */
.fy-loading-overlay .chip-pin {
    stroke: #444;
    stroke-width: 0.5;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}

/* ===== 9. 响应式 ===== */
@media (max-width: 1023px) {
    /* 平板仍保留右侧栏；主区按左右栏实际宽度收缩 */
    .fy-main {
        margin-right: var(--fy-rightbar-width);
        width: calc(100% - var(--fy-sidebar-width) - var(--fy-rightbar-width));
        max-width: calc(100% - var(--fy-sidebar-width) - var(--fy-rightbar-width));
    }
}

@media (max-width: 768px) {
    /* 手机端使用底部导航，顶部品牌栏、左右抽屉和右栏展开按钮不占空间 */
    .fy-mobile-top,
    .fy-sidebar,
    .fy-rightbar,
    .fy-rightbar-expand,
    .fy-mobile-overlay { display: none !important; }

    .fy-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
        max-width: 100%;
        padding: 12px 10px 82px 10px;
        width: 100%;
        max-width: 100%;
    }

    /* 移动端主内容不受桌面收缩状态遗留 class 影响 */
    .fy-main.fy-right-collapsed,
    .fy-main.fy-expanded,
    .fy-main.fy-expanded.fy-right-collapsed {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 手机端隐藏右侧用户信息区的通知/消息/设置按钮 */
    .fy-right-tools {
        display: none !important;
    }

    .fy-mobile-nav {
        display: block;
    }

    .fy-hero {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .fy-hero-actions .fy-btn {
        flex: 1;
    }
}

/* 首页插件入口：缩小图标占位，避免图标抢占卡片内容区域。 */
.fy-home-plugin-entry { padding:16px; }
.fy-home-plugin-entry .fy-entry-icon { width:36px; height:36px; margin-bottom:10px; border-radius:10px; font-size:18px; line-height:1; }
.fy-home-plugin-entry .fy-entry-icon img { width:22px; height:22px; object-fit:contain; object-position:center; }
@media (max-width:768px) {
    .fy-home-plugin-entry { padding:14px; }
    .fy-home-plugin-entry .fy-entry-icon { width:34px; height:34px; margin-bottom:8px; border-radius:9px; font-size:17px; }
}

/* 发布页图片选择和多附件下载项 */
.fy-upload-image-preview { display:block; width:96px; height:96px; margin-top:8px; object-fit:contain; border:1px solid var(--fy-border); border-radius:8px; background:var(--fy-bg-primary); }
.fy-download-items { display:flex; flex-direction:column; gap:10px; grid-column:1 / -1; }
.fy-download-item { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:12px; border:1px solid var(--fy-border); border-radius:10px; background:color-mix(in srgb,var(--fy-bg-card) 90%,var(--fy-active)); }
.fy-download-item [data-fy-remove-download] { justify-self:start; }
.fy-attachment-list { margin:18px 0; padding:16px; border:1px solid color-mix(in srgb,var(--fy-active) 35%,var(--fy-border)); border-radius:12px; background:color-mix(in srgb,var(--fy-bg-card) 94%,var(--fy-active)); }
.fy-attachment-list h3 { margin:0 0 10px; font-size:16px; }
.fy-attachment-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 0; border-top:1px solid var(--fy-border); }
.fy-attachment-item > div { min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.fy-attachment-item strong { overflow-wrap:anywhere; }
.fy-attachment-item small,.fy-attachment-item em { color:var(--fy-text-muted); font-size:12px; font-style:normal; }
.fy-attachment-item em { color:var(--fy-active); }
.fy-attachment-notice { margin-bottom:8px; color:var(--fy-active); font-size:13px; }
@media (max-width:600px) { .fy-download-item { grid-template-columns:1fr; } .fy-attachment-item { align-items:flex-start; flex-direction:column; } }

/* Hero 文案最终颜色：黑色场景背景上使用白字和柔和霓虹光。 */
.fy-page-index .fy-hero-inner,
.fy-page-index .fy-hero-inner h1,
.fy-page-index .fy-hero-inner p,
.fy-page-index .fy-hero-inner .fy-hero-kicker,
.fy-page-index .fy-hero-inner .fy-hero-history-label,
.fy-page-index .fy-hero-inner .fy-hero-history-clear {
    color:#fff !important;
    text-shadow:0 0 10px rgba(255,255,255,.22), 0 0 18px rgba(57,231,245,.24) !important;
}
.fy-page-index .fy-hero-inner p { color:rgba(255,255,255,.9) !important; }

/* 首页赛博朋克 2077 主题：霓虹边框、深色面板和扫描线装饰。 */
.fy-home-plugin-grid { position:relative; gap:12px; padding:2px; }
.fy-home-plugin-entry { border:1px solid rgba(57,231,245,.48); border-radius:4px; background:linear-gradient(145deg,rgba(7,16,24,.96),rgba(16,31,45,.94)); box-shadow:0 0 0 1px rgba(247,228,121,.08),0 12px 26px rgba(0,0,0,.2); color:#e6fbff; }
.fy-home-plugin-entry::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.25; background:repeating-linear-gradient(0deg,transparent 0 5px,rgba(57,231,245,.08) 6px 7px); }
.fy-home-plugin-entry::after { background:radial-gradient(circle,rgba(57,231,245,.2),transparent 68%); }
.fy-home-plugin-entry:hover { border-color:#f7e479; box-shadow:0 0 0 1px rgba(247,228,121,.22),0 0 24px rgba(57,231,245,.22); }
.fy-home-plugin-entry .fy-entry-icon { position:relative; z-index:1; border:1px solid rgba(57,231,245,.65); background:linear-gradient(135deg,rgba(57,231,245,.2),rgba(124,92,252,.3)); color:#f7e479; box-shadow:0 0 14px rgba(57,231,245,.2); }
.fy-home-plugin-entry h3,.fy-home-plugin-entry p,.fy-home-plugin-entry .fy-entry-more,.fy-home-plugin-entry .fy-entry-badge { position:relative; z-index:1; }
.fy-home-plugin-entry h3 { color:#f2fbff; letter-spacing:.02em; }
.fy-home-plugin-entry p { color:#a9c6d1; }
.fy-home-plugin-entry .fy-entry-more { color:#39e7f5; }
.fy-home-plugin-entry .fy-entry-badge { color:#f7e479; background:rgba(247,228,121,.12); border:1px solid rgba(247,228,121,.28); }
.fy-home-plugin-grid + section .fy-card-title { color:#39e7f5; text-shadow:0 0 10px rgba(57,231,245,.25); }
.fy-home-plugin-grid + section .fy-filter-bar { border-color:rgba(57,231,245,.3); background:rgba(7,16,24,.72); }
.fy-home-plugin-grid + section .fy-filter-item { color:#a9c6d1; }
.fy-home-plugin-grid + section .fy-filter-item.fy-active,.fy-home-plugin-grid + section .fy-filter-item:hover { color:#071018; background:#39e7f5; }
@media (max-width:768px) {
    /* 首页插件卡片移动端简化为四项一屏，左右滑动查看下一组。 */
    .fy-home-plugin-grid { display:flex; grid-template-columns:none!important; gap:8px; overflow-x:auto; padding:2px 1px 6px; scroll-snap-type:x mandatory; scrollbar-width:none; }
    .fy-home-plugin-grid::-webkit-scrollbar { display:none; }
    .fy-home-plugin-grid .fy-home-plugin-entry { flex:0 0 calc((100% - 24px) / 4); min-width:calc((100% - 24px) / 4); min-height:92px; padding:10px 5px; border-radius:6px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; scroll-snap-align:start; }
    .fy-home-plugin-grid .fy-home-plugin-entry .fy-entry-badge,
    .fy-home-plugin-grid .fy-home-plugin-entry p,
    .fy-home-plugin-grid .fy-home-plugin-entry .fy-entry-more { display:none; }
    .fy-home-plugin-grid .fy-home-plugin-entry .fy-entry-icon { width:32px; height:32px; margin:0 0 7px; border-radius:8px; font-size:16px; }
    .fy-home-plugin-grid .fy-home-plugin-entry h3 { max-width:100%; margin:0; font-size:11px; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .fy-page-index .fy-filter-bar { display:flex; flex-wrap:nowrap; gap:8px; overflow-x:auto; white-space:nowrap; scrollbar-width:none; padding:7px; border:1px solid rgba(57,231,245,.35); background:rgba(7,16,24,.72); }
    .fy-page-index .fy-filter-bar::-webkit-scrollbar { display:none; }
    .fy-page-index .fy-filter-item { flex:0 0 auto; }
}

/* 首页内容流也沿用赛博朋克面板，保证入口与帖子区域视觉一致。 */
.fy-page-index .fy-hero { border:1px solid rgba(57,231,245,.45); background:linear-gradient(135deg,#071018,#102b3c 55%,#17233d); box-shadow:0 0 28px rgba(57,231,245,.14); }
.fy-page-index .fy-hero h1 { color:#f2fbff; text-shadow:0 0 12px rgba(57,231,245,.3); }
.fy-page-index .fy-hero p,.fy-page-index .fy-hero .fy-kicker { color:#a9c6d1; }
.fy-page-index .fy-post { border-color:rgba(57,231,245,.28); background:linear-gradient(145deg,rgba(7,16,24,.95),rgba(16,31,45,.92)); }
.fy-page-index .fy-post:hover { border-color:#f7e479; box-shadow:0 0 20px rgba(57,231,245,.16); }
.fy-page-index .fy-post-title { color:#f2fbff; }
.fy-page-index .fy-post-text,.fy-page-index .fy-post-meta,.fy-page-index .fy-post-time { color:#a9c6d1; }
[data-theme="light"] .fy-page-index .fy-hero { background:linear-gradient(135deg,#e8fbff,#eef2ff 58%,#fff7d6); border-color:#0891b2; box-shadow:0 10px 28px rgba(8,145,178,.16); }
[data-theme="light"] .fy-page-index .fy-hero h1 { color:#172033; text-shadow:none; }
[data-theme="light"] .fy-page-index .fy-hero p,[data-theme="light"] .fy-page-index .fy-hero .fy-kicker { color:#365466; }
[data-theme="light"] .fy-page-index .fy-post { background:linear-gradient(145deg,#fff,#f1fbff); border-color:rgba(8,145,178,.3); }
[data-theme="light"] .fy-page-index .fy-post-title { color:#172033; }
[data-theme="light"] .fy-page-index .fy-post-text,[data-theme="light"] .fy-page-index .fy-post-meta,[data-theme="light"] .fy-page-index .fy-post-time { color:#475569; }
[data-theme="light"] .fy-page-index .fy-home-plugin-entry { background:linear-gradient(145deg,#fff,#eefcff); color:#172033; border-color:#0891b2; }
[data-theme="light"] .fy-page-index .fy-home-plugin-entry h3 { color:#172033; }
[data-theme="light"] .fy-page-index .fy-home-plugin-entry p { color:#475569; }
[data-theme="light"] .fy-page-index .fy-home-plugin-entry .fy-entry-more { color:#0e7490; }
[data-theme="light"] .fy-page-index .fy-home-plugin-entry .fy-entry-badge { color:#9a6700; background:#fff7d6; border-color:#eab308; }

/* 浅色主题不再让 Hero 场景使用整块黑底，保留柔和的建筑纹理。 */
[data-theme="light"] .fy-page-index .fy-hero-scene { opacity:.18; background-color:#dff7fb; }

/* 首页插件徽标固定在卡片右上角。 */
.fy-page-index .fy-home-plugin-page .fy-home-plugin-entry .fy-entry-badge { top:12px; right:12px; left:auto; }

/* 动态卡片底部：左侧时间/板块/置顶，右侧浏览、点赞、评论。 */
.fy-page-index .fy-post-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; }
.fy-page-index .fy-post-foot-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:0; }
.fy-page-index .fy-post-foot-meta .fy-post-time { color:var(--fy-text-secondary); font-size:12px; }
.fy-page-index .fy-post-foot-meta .fy-post-category,
.fy-page-index .fy-post-foot-meta .fy-post-pin { min-height:21px; padding:2px 7px; border-radius:3px; font-size:11px; line-height:1.4; }
.fy-page-index .fy-post-foot .fy-post-stats { margin-left:auto; flex:0 0 auto; }

[data-theme="light"] .fy-page-index .fy-post-foot-meta .fy-post-time { color:#475569; }

@media (max-width:768px) {
    .fy-page-index .fy-post-foot { gap:7px; margin-top:9px; }
    .fy-page-index .fy-post-foot-meta { gap:4px; }
    .fy-page-index .fy-post-foot-meta .fy-post-time,
    .fy-page-index .fy-post-foot-meta .fy-post-category,
    .fy-page-index .fy-post-foot-meta .fy-post-pin { font-size:9px; }
    .fy-page-index .fy-post-foot .fy-post-stats { gap:7px; font-size:9px; }
}
[data-theme="light"] .fy-page-index .fy-filter-bar { background:#f5fcff; border-color:rgba(8,145,178,.3); }
[data-theme="light"] .fy-page-index .fy-filter-item { color:#365466; }

/* 个人中心浅色模式保持霓虹边框，但改用浅底，避免文字与背景对比不足。 */
[data-theme="light"] .fy-usercenter-card { background:linear-gradient(145deg,#fff,#eefcff); border-color:rgba(8,145,178,.35); box-shadow:0 8px 22px rgba(8,145,178,.12); }
[data-theme="light"] .fy-usercenter-name,[data-theme="light"] .fy-usercenter-stat strong,[data-theme="light"] .fy-usercenter-vip-copy strong,[data-theme="light"] .fy-usercenter-menu-label { color:#172033; }
[data-theme="light"] .fy-usercenter-subtitle,[data-theme="light"] .fy-usercenter-vip-copy span,[data-theme="light"] .fy-usercenter-stat span,[data-theme="light"] .fy-usercenter-shortcut { color:#475569; }
[data-theme="light"] .fy-usercenter-menu-item { border-color:rgba(8,145,178,.2); }
[data-theme="light"] .fy-usercenter-shortcut .fy-icon { color:#0e7490; background:#e6faff!important; border-color:#0891b2; }

/* 手机端“我的”：赛博朋克面板与统一霓虹图标。 */
.fy-usercenter-page { position:relative; }
.fy-usercenter-card { border-color:rgba(57,231,245,.32); border-radius:8px; background:linear-gradient(145deg,rgba(7,16,24,.96),rgba(16,31,45,.94)); box-shadow:0 0 0 1px rgba(247,228,121,.06),0 12px 28px rgba(0,0,0,.22); }
.fy-usercenter-avatar,.fy-usercenter-vip-icon,.fy-usercenter-menu-icon,.fy-usercenter-shortcut .fy-icon { border:1px solid rgba(57,231,245,.48); box-shadow:0 0 14px rgba(57,231,245,.15); }
.fy-usercenter-name,.fy-usercenter-stat strong,.fy-usercenter-vip-copy strong,.fy-usercenter-menu-label { color:#f2fbff; }
.fy-usercenter-subtitle,.fy-usercenter-vip-copy span,.fy-usercenter-stat span,.fy-usercenter-shortcut { color:#a9c6d1; }
.fy-usercenter-menu-item { border-color:rgba(57,231,245,.2); }
.fy-usercenter-menu-item > .fy-icon-arrow-right { color:#39e7f5; }
@media (max-width:768px) {
    .fy-usercenter-page { gap:10px; }
    .fy-usercenter-card { border-width:1px; border-radius:7px; }
    .fy-usercenter-avatar { background:rgba(57,231,245,.12)!important; color:#39e7f5; }
    .fy-usercenter-shortcut .fy-icon { color:#f7e479; background:rgba(57,231,245,.14)!important; }
    .fy-usercenter-profile,.fy-usercenter-shortcuts,.fy-usercenter-menu { padding-left:13px; padding-right:13px; }
    .fy-usercenter-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
html.fy-navigating .fy-main { pointer-events: none; opacity: .72; transform: translateY(2px); }
html.fy-navigating::before { content: ''; position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 3000; background: linear-gradient(90deg, var(--fy-active), var(--fy-active-light), var(--fy-success)); animation: fy-progress 1s ease-in-out infinite; }
@keyframes fy-progress { 0% { opacity: .35; transform: scaleX(.15); transform-origin: left; } 50% { opacity: 1; transform: scaleX(.65); } 100% { opacity: .35; transform: scaleX(1); transform-origin: right; } }

/* ===== 功能中心 ===== */
.fy-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.fy-page-head h1 { font-size: clamp(24px, 3vw, 34px); margin: 5px 0 6px; }
.fy-kicker { color: var(--fy-active-light); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.fy-search-box {
    display: flex; align-items: center; gap: 8px; width: min(300px, 100%);
    padding: 10px 13px; border: 1px solid var(--fy-border); border-radius: 10px;
    background: var(--fy-bg-card); color: var(--fy-text-secondary);
}
.fy-search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--fy-text-primary); font: inherit; }
.fy-plugin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.fy-plugin-card { position: relative; display: flex; gap: 15px; padding: 18px; border: 1px solid var(--fy-border); border-radius: var(--fy-radius); background: var(--fy-bg-card); border-top: 3px solid var(--plugin-color, var(--fy-active)); transition: transform .2s, box-shadow .2s; }
.fy-plugin-card .fy-plugin-hero-menu { top: auto; bottom: 12px; right: 12px; }
.fy-plugin-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.fy-plugin-card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; background: color-mix(in srgb, var(--plugin-color, var(--fy-active)) 18%, transparent); font-size: 28px; }
.fy-plugin-card-body { min-width: 0; flex: 1; }
.fy-plugin-card-title { display: flex; align-items: center; gap: 8px; }
.fy-plugin-card-title h2 { font-size: 17px; margin: 0; }
.fy-plugin-card-body p { min-height: 42px; margin: 8px 0 14px; color: var(--fy-text-secondary); font-size: 13px; }
.fy-plugin-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fy-plugin-card-actions .fy-btn { padding: 7px 11px; font-size: 12px; }
.fy-plugin-card-actions .fy-followed { border-color: var(--fy-success); color: var(--fy-success); }
.fy-empty-state { grid-column: 1 / -1; text-align: center; padding: 46px 20px; color: var(--fy-text-secondary); }

@media (max-width: 600px) {
    .fy-page-head { align-items: stretch; flex-direction: column; }
    .fy-search-box { width: 100%; }
}

/* 首页 Hero 与动态卡片的最终优先级覆盖，确保不被后续插件响应式规则改写。 */
.fy-page-index .fy-hero-inner h1 { color:#fff !important; text-shadow:0 0 14px rgba(57,231,245,.42) !important; }
.fy-page-index .fy-hero-inner p { color:rgba(255,255,255,.9) !important; }
.fy-page-index .fy-hero-inner .fy-hero-kicker { color:rgba(255,255,255,.82) !important; }
@media (max-width:768px) {
    .fy-page-index .fy-post-head { display:flex !important; flex-wrap:nowrap !important; align-items:center !important; overflow:hidden; }
    .fy-page-index .fy-post-meta-primary,.fy-page-index .fy-post-meta-secondary { white-space:nowrap; overflow:hidden; }
    .fy-page-index .fy-post-meta-primary,.fy-page-index .fy-post-meta-secondary { flex:0 1 auto; min-width:0; }
    .fy-page-index .fy-post-meta-secondary { margin-left:auto; justify-content:flex-end; font-size:10px; }
    .fy-page-index .fy-post-meta-secondary .fy-post-author,.fy-page-index .fy-post-meta-secondary .fy-post-time { max-width:92px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .fy-page-index .fy-post-image-single { display:grid !important; grid-template-columns:minmax(0,1fr) minmax(86px,30%); gap:9px; }
    .fy-page-index .fy-post-image-single .fy-post-main { grid-column:1; grid-row:1; }
    .fy-page-index .fy-post-image-single .fy-post-media { grid-column:2; grid-row:1; margin:0; }
    .fy-page-index .fy-post-image-single .fy-post-media img { aspect-ratio:1 / 1; max-height:120px; }
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry .fy-entry-badge { display:inline-flex !important; top:8px; right:8px; left:auto; padding:1px 5px; font-size:9px; }
}

/* 首页最终视觉覆盖（放在基础响应式规则之后）。Hero 场景为深色，因此两种主题均使用高对比白字。 */
.fy-page-index .fy-hero-inner h1 { color:#fff !important; text-shadow:0 0 14px rgba(57,231,245,.42) !important; }
.fy-page-index .fy-hero-inner p { color:rgba(255,255,255,.9) !important; }
.fy-page-index .fy-hero-inner .fy-hero-kicker { color:rgba(255,255,255,.82) !important; }

@media (max-width:768px) {
    /* 手机元数据保持同一行，过长内容自动省略。 */
    .fy-page-index .fy-post-head { display:flex !important; align-items:center; }
    .fy-page-index .fy-post-meta-primary,.fy-page-index .fy-post-meta-secondary { flex:0 1 auto; min-width:0; }
    .fy-page-index .fy-post-meta-secondary { margin-left:auto; justify-content:flex-end; font-size:10px; }
    .fy-page-index .fy-post-meta-secondary .fy-post-author,
    .fy-page-index .fy-post-meta-secondary .fy-post-time { max-width:92px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    /* 手机单图仍保持左文右图，只缩小右侧图片。 */
    .fy-page-index .fy-post-image-single { display:grid !important; grid-template-columns:minmax(0,1fr) minmax(86px,30%); gap:9px; }
    .fy-page-index .fy-post-image-single .fy-post-main { grid-column:1; grid-row:1; }
    .fy-page-index .fy-post-image-single .fy-post-media { grid-column:2; grid-row:1; margin:0; }
    .fy-page-index .fy-post-image-single .fy-post-media img { aspect-ratio:1 / 1; max-height:120px; }
}

/* 首页插件卡片最终覆盖，放在样式表末尾以覆盖旧版重复规则。 */
.fy-page-index .fy-home-plugin-grid,
.fy-page-index .fy-home-plugin-track { width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
.fy-page-index .fy-home-plugin-page { width:100%; max-width:100%; min-width:100%; box-sizing:border-box; }
.fy-page-index .fy-home-plugin-page .fy-home-plugin-entry { min-width:0!important; max-width:100%; box-sizing:border-box; }
html[data-theme="dark"] .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry { background:linear-gradient(145deg,#071018,#102b3c 58%,#17233d); border-color:rgba(57,231,245,.48); color:#e6fbff; }
html[data-theme="dark"] .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry h3 { color:#f2fbff; }
html[data-theme="dark"] .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry p { color:#a9c6d1; }
html[data-theme="light"] .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry { background:linear-gradient(145deg,#ffffff,#e9f8fc 58%,#dff1f7); border-color:#0891b2; color:#172033; box-shadow:0 8px 20px rgba(8,145,178,.12); }
html[data-theme="light"] .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry h3 { color:#172033; text-shadow:none; }
html[data-theme="light"] .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry p { color:#365466; }
@media (max-width:768px) {
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry { min-height:92px; }
    .fy-page-index .fy-home-plugin-page .fy-entry-badge,
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry .fy-entry-badge { display:none!important; }
}

/* 手机底部导航：末尾强制覆盖，确保赛博朋克主题优先级最高。 */
@media (max-width:768px) {
    .fy-mobile-nav {
        height:calc(72px + env(safe-area-inset-bottom)) !important;
        padding:0 8px env(safe-area-inset-bottom) !important;
        border-top:1px solid rgba(57,231,245,.72) !important;
        background:linear-gradient(180deg,rgba(5,13,22,.98),rgba(7,18,29,.98)) !important;
        box-shadow:0 -8px 28px rgba(0,0,0,.42),0 -1px 0 rgba(247,228,121,.26) !important;
        overflow:hidden;
    }
    .fy-mobile-nav::before { content:""; position:absolute; left:0; right:0; top:0; height:2px; background:linear-gradient(90deg,transparent,#39e7f5 22%,#f7e479 50%,#39e7f5 78%,transparent); box-shadow:0 0 12px rgba(57,231,245,.9); }
    .fy-mobile-nav::after { content:""; position:absolute; inset:0; pointer-events:none; opacity:.11; background:repeating-linear-gradient(180deg,transparent 0,transparent 3px,rgba(57,231,245,.55) 4px,transparent 5px); mix-blend-mode:screen; }
    .fy-mobile-nav-inner { position:relative; z-index:1; height:72px; max-width:520px; margin:0 auto; gap:4px; }
    .fy-mobile-nav-item { height:100%; padding:5px 0 3px; }
    .fy-mobile-nav-item a { position:relative; gap:4px; height:100%; padding:7px 4px 5px; border:1px solid transparent; border-radius:8px; color:#88a8b5; font-size:10px; letter-spacing:.04em; text-shadow:0 0 8px rgba(57,231,245,.45); transition:transform .18s ease,color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease; }
    .fy-mobile-nav-item a::before { content:""; position:absolute; left:10px; right:10px; top:2px; height:1px; background:transparent; }
    .fy-mobile-nav-item a .fy-icon { width:30px; height:29px; color:#39e7f5; font-size:22px; filter:drop-shadow(0 0 6px rgba(57,231,245,.72)); }
    .fy-mobile-nav-item a.fy-active { color:#f7e479; background:linear-gradient(180deg,rgba(247,228,121,.15),rgba(57,231,245,.06)); border-color:rgba(247,228,121,.62); box-shadow:0 0 0 1px rgba(57,231,245,.18),0 0 18px rgba(57,231,245,.2),inset 0 0 15px rgba(247,228,121,.08); }
    .fy-mobile-nav-item a.fy-active::before { background:linear-gradient(90deg,transparent,#f7e479,transparent); box-shadow:0 0 8px rgba(247,228,121,.9); }
    .fy-mobile-nav-item a.fy-active .fy-icon { color:#f7e479; filter:drop-shadow(0 0 8px rgba(247,228,121,.86)); transform:translateY(-1px); }
    .fy-mobile-nav-item a:active { transform:translateY(1px) scale(.97); }
    [data-theme="light"] .fy-mobile-nav { border-top-color:#0891b2 !important; background:linear-gradient(180deg,rgba(225,247,250,.98),rgba(203,235,241,.98)) !important; box-shadow:0 -8px 24px rgba(8,145,178,.18),0 -1px 0 rgba(234,179,8,.45) !important; }
    [data-theme="light"] .fy-mobile-nav::after { opacity:.08; background:repeating-linear-gradient(180deg,transparent 0,transparent 3px,rgba(8,145,178,.35) 4px,transparent 5px); }
    [data-theme="light"] .fy-mobile-nav-item a { color:#365466; text-shadow:none; }
    [data-theme="light"] .fy-mobile-nav-item a .fy-icon { color:#0e7490; filter:drop-shadow(0 0 5px rgba(14,116,144,.36)); }
    [data-theme="light"] .fy-mobile-nav-item a.fy-active { color:#8a5b00; background:linear-gradient(180deg,rgba(255,255,255,.68),rgba(247,228,121,.2)); border-color:#eab308; box-shadow:0 0 0 1px rgba(8,145,178,.14),0 0 16px rgba(8,145,178,.18),inset 0 0 12px rgba(234,179,8,.12); }
    [data-theme="light"] .fy-mobile-nav-item a.fy-active .fy-icon { color:#b77900; filter:drop-shadow(0 0 6px rgba(234,179,8,.55)); }
}

/* 手机底部导航：赛博朋克 2077 风格最终覆盖，置于文件末尾避免旧响应式规则覆盖。 */
@media (max-width:768px) {
    .fy-mobile-nav {
        height:calc(72px + env(safe-area-inset-bottom)) !important;
        padding:0 8px env(safe-area-inset-bottom) !important;
        border-top:1px solid rgba(57,231,245,.72) !important;
        background:linear-gradient(180deg,rgba(5,13,22,.98),rgba(7,18,29,.98)) !important;
        box-shadow:0 -8px 28px rgba(0,0,0,.42),0 -1px 0 rgba(247,228,121,.26) !important;
        overflow:hidden;
    }
    .fy-mobile-nav::before {
        content:"";
        position:absolute;
        left:0;
        right:0;
        top:0;
        height:2px;
        background:linear-gradient(90deg,transparent 0%,#39e7f5 22%,#f7e479 50%,#39e7f5 78%,transparent 100%);
        box-shadow:0 0 12px rgba(57,231,245,.9),0 0 7px rgba(247,228,121,.55);
    }
    .fy-mobile-nav::after {
        content:"";
        position:absolute;
        inset:0;
        pointer-events:none;
        opacity:.11;
        background:repeating-linear-gradient(180deg,transparent 0,transparent 3px,rgba(57,231,245,.55) 4px,transparent 5px);
        mix-blend-mode:screen;
    }
    .fy-mobile-nav-inner { position:relative; z-index:1; height:72px; max-width:520px; margin:0 auto; gap:4px; }
    .fy-mobile-nav-item { height:100%; padding:5px 0 3px; }
    .fy-mobile-nav-item a {
        position:relative;
        gap:4px;
        height:100%;
        padding:7px 4px 5px;
        border:1px solid transparent;
        border-radius:8px;
        color:#88a8b5;
        font-size:10px;
        letter-spacing:.04em;
        text-shadow:0 0 8px rgba(57,231,245,.45);
        transition:transform .18s ease,color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
    }
    .fy-mobile-nav-item a::before { content:""; position:absolute; left:10px; right:10px; top:2px; height:1px; background:transparent; }
    .fy-mobile-nav-item a .fy-icon { width:30px; height:29px; color:#39e7f5; font-size:22px; filter:drop-shadow(0 0 6px rgba(57,231,245,.72)); }
    .fy-mobile-nav-item a.fy-active {
        color:#f7e479;
        background:linear-gradient(180deg,rgba(247,228,121,.15),rgba(57,231,245,.06));
        border-color:rgba(247,228,121,.62);
        box-shadow:0 0 0 1px rgba(57,231,245,.18),0 0 18px rgba(57,231,245,.2),inset 0 0 15px rgba(247,228,121,.08);
    }
    .fy-mobile-nav-item a.fy-active::before { background:linear-gradient(90deg,transparent,#f7e479,transparent); box-shadow:0 0 8px rgba(247,228,121,.9); }
    .fy-mobile-nav-item a.fy-active .fy-icon { color:#f7e479; filter:drop-shadow(0 0 8px rgba(247,228,121,.86)); transform:translateY(-1px); }
    .fy-mobile-nav-item a:active { transform:translateY(1px) scale(.97); }

    [data-theme="light"] .fy-mobile-nav {
        border-top-color:#0891b2 !important;
        background:linear-gradient(180deg,rgba(225,247,250,.98),rgba(203,235,241,.98)) !important;
        box-shadow:0 -8px 24px rgba(8,145,178,.18),0 -1px 0 rgba(234,179,8,.45) !important;
    }
    [data-theme="light"] .fy-mobile-nav::after { opacity:.08; background:repeating-linear-gradient(180deg,transparent 0,transparent 3px,rgba(8,145,178,.35) 4px,transparent 5px); }
    [data-theme="light"] .fy-mobile-nav-item a { color:#365466; text-shadow:none; }
    [data-theme="light"] .fy-mobile-nav-item a .fy-icon { color:#0e7490; filter:drop-shadow(0 0 5px rgba(14,116,144,.36)); }
    [data-theme="light"] .fy-mobile-nav-item a.fy-active { color:#8a5b00; background:linear-gradient(180deg,rgba(255,255,255,.68),rgba(247,228,121,.2)); border-color:#eab308; box-shadow:0 0 0 1px rgba(8,145,178,.14),0 0 16px rgba(8,145,178,.18),inset 0 0 12px rgba(234,179,8,.12); }
    [data-theme="light"] .fy-mobile-nav-item a.fy-active .fy-icon { color:#b77900; filter:drop-shadow(0 0 6px rgba(234,179,8,.55)); }
}

/* MOBILE NAV CYBERPUNK FINAL OVERRIDE */
@media (max-width:768px){
.fy-mobile-nav{height:calc(72px + env(safe-area-inset-bottom))!important;padding:0 8px env(safe-area-inset-bottom)!important;border-top:1px solid rgba(57,231,245,.72)!important;background:linear-gradient(180deg,rgba(5,13,22,.98),rgba(7,18,29,.98))!important;box-shadow:0 -8px 26px rgba(0,0,0,.34),0 -1px 0 rgba(247,228,121,.3),0 0 24px rgba(57,231,245,.16)!important;}
.fy-mobile-nav-inner{position:relative;z-index:1;height:72px;max-width:520px;margin:0 auto;gap:4px;}
.fy-mobile-nav-item{height:100%;padding:5px 0 3px;}
.fy-mobile-nav-item a{position:relative;gap:4px;height:100%;padding:7px 4px 5px;border:1px solid transparent;border-radius:8px;color:#88a8b5;font-size:10px;letter-spacing:.04em;text-shadow:0 0 8px rgba(57,231,245,.22);}
.fy-mobile-nav-item a::before{content:"";position:absolute;left:10px;right:10px;top:2px;height:1px;background:transparent;}
.fy-mobile-nav-item a .fy-icon{width:30px;height:29px;color:#39e7f5;font-size:22px;filter:drop-shadow(0 0 5px rgba(57,231,245,.42));}
.fy-mobile-nav-item a.fy-active{color:#f7e479;background:linear-gradient(180deg,rgba(247,228,121,.13),rgba(57,231,245,.08));border-color:rgba(247,228,121,.62);box-shadow:inset 0 0 14px rgba(57,231,245,.08),0 0 12px rgba(57,231,245,.14);}
.fy-mobile-nav-item a.fy-active::before{background:linear-gradient(90deg,transparent,#f7e479 30%,#39e7f5 70%,transparent);box-shadow:0 0 7px rgba(247,228,121,.72);}
.fy-mobile-nav-item a.fy-active .fy-icon{color:#f7e479;filter:drop-shadow(0 0 7px rgba(247,228,121,.76));transform:translateY(-1px);}
.fy-mobile-nav-item a:active{transform:translateY(1px) scale(.97);}
[data-theme="light"] .fy-mobile-nav{border-top-color:#0891b2!important;background:linear-gradient(180deg,rgba(239,253,255,.98),rgba(220,246,250,.98))!important;box-shadow:0 -8px 24px rgba(8,145,178,.18),0 -1px 0 rgba(234,179,8,.55)!important;}
[data-theme="light"] .fy-mobile-nav-item a{color:#365466;text-shadow:none;}
[data-theme="light"] .fy-mobile-nav-item a .fy-icon{color:#0e7490;filter:drop-shadow(0 0 4px rgba(8,145,178,.28));}
[data-theme="light"] .fy-mobile-nav-item a.fy-active{color:#8a5b00;background:linear-gradient(180deg,rgba(255,247,214,.92),rgba(215,250,255,.82));border-color:#eab308;box-shadow:inset 0 0 12px rgba(8,145,178,.1),0 0 10px rgba(234,179,8,.18);}
[data-theme="light"] .fy-mobile-nav-item a.fy-active .fy-icon{color:#b77900;filter:drop-shadow(0 0 5px rgba(234,179,8,.46));}
}

/* 底部导航最终覆盖，置于所有旧版响应式规则之后。 */
@media (max-width:768px) {
    .fy-mobile-nav { height:calc(72px + env(safe-area-inset-bottom)) !important; padding:0 8px env(safe-area-inset-bottom) !important; border-top:1px solid rgba(57,231,245,.72); background:linear-gradient(180deg,rgba(5,13,22,.98),rgba(7,18,29,.98)); box-shadow:0 -8px 26px rgba(0,0,0,.34),0 -1px 0 rgba(247,228,121,.3),0 0 24px rgba(57,231,245,.16); }
    .fy-mobile-nav-inner { position:relative; z-index:1; height:72px; max-width:520px; margin:0 auto; gap:4px; }
    .fy-mobile-nav-item { height:100%; padding:5px 0 3px; }
    .fy-mobile-nav-item a { position:relative; gap:4px; height:100%; padding:7px 4px 5px; border:1px solid transparent; border-radius:8px; color:#88a8b5; font-size:10px; letter-spacing:.04em; text-shadow:0 0 8px rgba(57,231,245,.22); }
    .fy-mobile-nav-item a::before { content:""; position:absolute; left:10px; right:10px; top:2px; height:1px; background:transparent; }
    .fy-mobile-nav-item a .fy-icon { width:30px; height:29px; color:#39e7f5; font-size:22px; filter:drop-shadow(0 0 5px rgba(57,231,245,.42)); }
    .fy-mobile-nav-item a.fy-active { color:#f7e479; background:linear-gradient(180deg,rgba(247,228,121,.13),rgba(57,231,245,.08)); border-color:rgba(247,228,121,.62); box-shadow:inset 0 0 14px rgba(57,231,245,.08),0 0 12px rgba(57,231,245,.14); }
    .fy-mobile-nav-item a.fy-active::before { background:linear-gradient(90deg,transparent,#f7e479 30%,#39e7f5 70%,transparent); box-shadow:0 0 7px rgba(247,228,121,.72); }
    .fy-mobile-nav-item a.fy-active .fy-icon { color:#f7e479; filter:drop-shadow(0 0 7px rgba(247,228,121,.76)); transform:translateY(-1px); }
    .fy-mobile-nav-item a:active { transform:translateY(1px) scale(.97); }
    .fy-mobile-nav::before { content:""; position:absolute; left:0; right:0; top:0; height:2px; background:linear-gradient(90deg,transparent,#f7e479 18%,#39e7f5 52%,#f7e479 82%,transparent); }
    [data-theme="light"] .fy-mobile-nav { border-top-color:#0891b2; background:linear-gradient(180deg,rgba(239,253,255,.98),rgba(220,246,250,.98)); box-shadow:0 -8px 24px rgba(8,145,178,.18),0 -1px 0 rgba(234,179,8,.55); }
    [data-theme="light"] .fy-mobile-nav-item a { color:#365466; text-shadow:none; }
    [data-theme="light"] .fy-mobile-nav-item a .fy-icon { color:#0e7490; filter:drop-shadow(0 0 4px rgba(8,145,178,.28)); }
    [data-theme="light"] .fy-mobile-nav-item a.fy-active { color:#8a5b00; background:linear-gradient(180deg,rgba(255,247,214,.92),rgba(215,250,255,.82)); border-color:#eab308; box-shadow:inset 0 0 12px rgba(8,145,178,.1),0 0 10px rgba(234,179,8,.18); }
    [data-theme="light"] .fy-mobile-nav-item a.fy-active .fy-icon { color:#b77900; filter:drop-shadow(0 0 5px rgba(234,179,8,.46)); }
}

/* 手机底部导航：赛博朋克 2077 风格最终覆盖。 */
@media (max-width:768px) {
    .fy-mobile-nav {
        height:calc(72px + env(safe-area-inset-bottom));
        padding:0 8px env(safe-area-inset-bottom);
        border-top:1px solid rgba(57,231,245,.72);
        background:linear-gradient(180deg,rgba(5,13,22,.98),rgba(7,18,29,.98));
        box-shadow:0 -8px 26px rgba(0,0,0,.34),0 -1px 0 rgba(247,228,121,.3),0 0 24px rgba(57,231,245,.16);
        overflow:hidden;
    }
    .fy-mobile-nav::before { content:""; position:absolute; left:0; right:0; top:0; height:2px; background:linear-gradient(90deg,transparent,#f7e479 18%,#39e7f5 52%,#f7e479 82%,transparent); opacity:.9; }
    .fy-mobile-nav::after { content:""; position:absolute; inset:3px 0 0; pointer-events:none; opacity:.13; background:repeating-linear-gradient(180deg,transparent 0 5px,rgba(57,231,245,.55) 6px,transparent 7px); }
    .fy-mobile-nav-inner { position:relative; z-index:1; height:72px; max-width:520px; margin:0 auto; gap:4px; }
    .fy-mobile-nav-item { height:100%; padding:5px 0 3px; }
    .fy-mobile-nav-item a { position:relative; gap:4px; height:100%; padding:7px 4px 5px; border:1px solid transparent; border-radius:8px; color:#88a8b5; font-size:10px; letter-spacing:.04em; text-shadow:0 0 8px rgba(57,231,245,.22); transition:color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease; }
    .fy-mobile-nav-item a::before { content:""; position:absolute; left:10px; right:10px; top:2px; height:1px; background:transparent; }
    .fy-mobile-nav-item a .fy-icon { width:30px; height:29px; color:#39e7f5; font-size:22px; filter:drop-shadow(0 0 5px rgba(57,231,245,.42)); transition:color .18s ease,filter .18s ease,transform .18s ease; }
    .fy-mobile-nav-item a.fy-active { color:#f7e479; background:linear-gradient(180deg,rgba(247,228,121,.13),rgba(57,231,245,.08)); border-color:rgba(247,228,121,.62); box-shadow:inset 0 0 14px rgba(57,231,245,.08),0 0 12px rgba(57,231,245,.14); }
    .fy-mobile-nav-item a.fy-active::before { background:linear-gradient(90deg,transparent,#f7e479 30%,#39e7f5 70%,transparent); box-shadow:0 0 7px rgba(247,228,121,.72); }
    .fy-mobile-nav-item a.fy-active .fy-icon { color:#f7e479; filter:drop-shadow(0 0 7px rgba(247,228,121,.76)); transform:translateY(-1px); }
    .fy-mobile-nav-item a:active { transform:translateY(1px) scale(.97); }
    [data-theme="light"] .fy-mobile-nav { border-top-color:#0891b2; background:linear-gradient(180deg,rgba(239,253,255,.98),rgba(220,246,250,.98)); box-shadow:0 -8px 24px rgba(8,145,178,.18),0 -1px 0 rgba(234,179,8,.55); }
    [data-theme="light"] .fy-mobile-nav::after { opacity:.08; background:repeating-linear-gradient(180deg,transparent 0 5px,rgba(8,145,178,.6) 6px,transparent 7px); }
    [data-theme="light"] .fy-mobile-nav-item a { color:#365466; text-shadow:none; }
    [data-theme="light"] .fy-mobile-nav-item a .fy-icon { color:#0e7490; filter:drop-shadow(0 0 4px rgba(8,145,178,.28)); }
    [data-theme="light"] .fy-mobile-nav-item a.fy-active { color:#8a5b00; background:linear-gradient(180deg,rgba(255,247,214,.92),rgba(215,250,255,.82)); border-color:#eab308; box-shadow:inset 0 0 12px rgba(8,145,178,.1),0 0 10px rgba(234,179,8,.18); }
    [data-theme="light"] .fy-mobile-nav-item a.fy-active .fy-icon { color:#b77900; filter:drop-shadow(0 0 5px rgba(234,179,8,.46)); }
}



/* 单图帖子最终层级：图片占右侧两行，底部统计固定在左侧。 */
.fy-page-index .fy-post-image-single .fy-post-media { grid-column:2 !important; grid-row:1 / span 2 !important; margin:0 !important; }
.fy-page-index .fy-post-image-single .fy-post-foot { grid-column:1 !important; grid-row:2 !important; }
@media (max-width:768px) {
    .fy-page-index .fy-post-image-single { display:grid !important; grid-template-columns:minmax(0,1fr) minmax(86px,30%) !important; gap:9px !important; }
    .fy-page-index .fy-post-image-single .fy-post-media { grid-column:2 !important; grid-row:1 / span 2 !important; }
    .fy-page-index .fy-post-image-single .fy-post-foot { grid-column:1 !important; grid-row:2 !important; }
}

/* 首页最终覆盖：只作用于 fy-hero-inner，避免被通用 Hero/帖子规则覆盖。 */
.fy-page-index .fy-hero-inner h1 { color:#fff !important; text-shadow:0 0 14px rgba(57,231,245,.38) !important; }
.fy-page-index .fy-hero-inner p { color:rgba(255,255,255,.88) !important; }
.fy-page-index .fy-hero-inner .fy-hero-kicker { color:rgba(255,255,255,.8) !important; }
[data-theme="light"] .fy-page-index .fy-hero-inner h1 { color:#172033 !important; text-shadow:none !important; }
[data-theme="light"] .fy-page-index .fy-hero-inner p,
[data-theme="light"] .fy-page-index .fy-hero-inner .fy-hero-kicker { color:#365466 !important; }

/* 首页动态卡片最终布局：元数据分两侧，图片按数量切换结构。 */
.fy-page-index .fy-post-head { display:flex !important; align-items:center; justify-content:space-between; gap:10px; }
.fy-page-index .fy-post-meta-primary,.fy-page-index .fy-post-meta-secondary { display:flex; align-items:center; gap:7px; min-width:0; }
.fy-page-index .fy-post-meta-secondary { margin-left:auto; color:var(--fy-text-secondary); font-size:12px; }
.fy-page-index .fy-post-image-none .fy-post-main { width:100%; }
.fy-page-index .fy-post-image-single { display:grid !important; grid-template-columns:minmax(0,1fr) minmax(150px,24%); gap:18px; align-items:start; }
.fy-page-index .fy-post-image-single .fy-post-main { grid-column:1; grid-row:1; }
.fy-page-index .fy-post-image-single .fy-post-media { grid-column:2; grid-row:1; margin:0; }
.fy-page-index .fy-post-image-single .fy-post-foot { grid-column:1 / -1; }
.fy-page-index .fy-post-image-gallery .fy-post-media { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:14px; }
.fy-page-index .fy-post-media img { display:block; width:100%; object-fit:cover; border-radius:4px; }
.fy-page-index .fy-post-image-single .fy-post-media img { aspect-ratio:4 / 3; }
.fy-page-index .fy-post-image-gallery .fy-post-media img { aspect-ratio:1 / 1; }

@media (max-width:768px) {
    .fy-page-index .fy-post-head { display:block !important; }
    .fy-page-index .fy-post-meta-primary,.fy-page-index .fy-post-meta-secondary { justify-content:flex-start; }
    .fy-page-index .fy-post-meta-secondary { margin:4px 0 0; font-size:10px; }
    .fy-page-index .fy-post-image-single { display:block !important; }
    .fy-page-index .fy-post-image-single .fy-post-media { margin-top:9px; }
    .fy-page-index .fy-post-image-single .fy-post-media img { aspect-ratio:16 / 9; max-height:220px; }
    .fy-page-index .fy-post-image-gallery .fy-post-media { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin-top:8px; }
}

/* 首页最新动态：按无图、单图、多图自动采用对应卡片结构。 */
.fy-page-index .fy-card-title {
    color:var(--fy-text-primary);
    font-weight:700;
}
.fy-page-index .fy-filter-bar {
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
    overflow-x:auto;
    white-space:nowrap;
    padding:7px;
    border:1px solid color-mix(in srgb, #39e7f5 38%, var(--fy-border));
    border-radius:4px;
    background:var(--fy-bg-card);
    background:color-mix(in srgb, var(--fy-bg-card) 92%, #39e7f5 8%);
    scrollbar-width:none;
}
.fy-page-index .fy-filter-bar::-webkit-scrollbar { display:none; }
.fy-page-index .fy-filter-item {
    flex:0 0 auto;
    color:var(--fy-text-primary);
    background:var(--fy-bg-secondary);
    background:color-mix(in srgb, var(--fy-bg-card) 84%, #39e7f5 16%);
    border:1px solid var(--fy-border);
    border-color:color-mix(in srgb, #39e7f5 42%, var(--fy-border));
    border-radius:3px;
    font-weight:600;
}
.fy-page-index .fy-filter-item:hover,
.fy-page-index .fy-filter-item.fy-active {
    color:#071018;
    background:#39e7f5;
    border-color:#39e7f5;
    box-shadow:0 0 12px rgba(57,231,245,.24);
}
.fy-page-index .fy-post-main { min-width:0; }
.fy-page-index .fy-post-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.fy-page-index .fy-post-meta-primary,.fy-page-index .fy-post-meta-secondary { display:flex; align-items:center; gap:7px; min-width:0; }
.fy-page-index .fy-post-meta-secondary { color:var(--fy-text-secondary); font-size:12px; }
.fy-page-index .fy-post-author,.fy-page-index .fy-post-time { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fy-page-index .fy-post-category { background:color-mix(in srgb, var(--fy-category-color) 84%, #0b1220 16%); border:1px solid color-mix(in srgb, var(--fy-category-color) 72%, transparent); color:#fff; }
.fy-page-index .fy-post-image-none .fy-post-main { width:100%; }
.fy-page-index .fy-post-image-gallery .fy-post-main { width:100%; }
.fy-page-index .fy-post-pin { display:inline-flex; align-items:center; gap:4px; padding:2px 7px; border:1px solid rgba(247,228,121,.65); border-radius:3px; background:rgba(247,228,121,.15); color:#f7e479; font-size:11px; font-weight:700; }
.fy-page-index .fy-post-image-single {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(150px, 24%);
    column-gap:18px;
    align-items:start;
}
.fy-page-index .fy-post-image-single .fy-post-main { grid-column:1; grid-row:1; }
.fy-page-index .fy-post-image-single .fy-post-media { grid-column:2; grid-row:1; }
.fy-page-index .fy-post-media { min-width:0; overflow:hidden; }
.fy-page-index .fy-post-media-single img {
    display:block;
    width:100%;
    aspect-ratio:4 / 3;
    object-fit:cover;
    border-radius:4px;
}
.fy-page-index .fy-post-media-gallery {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
    margin-top:14px;
}
.fy-page-index .fy-post-media-gallery img {
    display:block;
    width:100%;
    aspect-ratio:1 / 1;
    object-fit:cover;
    border-radius:4px;
}
.fy-page-index .fy-post-image-single .fy-post-foot { grid-column:1 / -1; }

[data-theme="light"] .fy-page-index .fy-filter-item {
    color:#172033;
    background:#f8fdff;
    border-color:rgba(8,145,178,.42);
}
[data-theme="light"] .fy-page-index .fy-filter-item:hover,
[data-theme="light"] .fy-page-index .fy-filter-item.fy-active {
    color:#fff;
    background:#4f46e5;
    border-color:#4f46e5;
    box-shadow:0 0 12px rgba(79,70,229,.22);
}
[data-theme="light"] .fy-page-index .fy-post-author { color:#4338ca; }
[data-theme="light"] .fy-page-index .fy-post-time,
[data-theme="light"] .fy-page-index .fy-post-foot { color:#475569; }

@media (max-width:768px) {
    .fy-page-index .fy-post-head { display:block; }
    .fy-page-index .fy-post-meta-primary,.fy-page-index .fy-post-meta-secondary { justify-content:flex-start; }
    .fy-page-index .fy-post-meta-secondary { margin-top:5px; font-size:10px; }
    .fy-page-index .fy-post-image-single { display:block; }
    .fy-page-index .fy-post-image-single .fy-post-media { margin-top:9px; }
    .fy-page-index .fy-post-media-single img { aspect-ratio:16 / 9; max-height:220px; }
    .fy-page-index .fy-post-media-gallery { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin-top:8px; }
    .fy-page-index .fy-post-image-gallery .fy-post-text { -webkit-line-clamp:2; }
}

/* 首页插件模块支持鼠标按住拖动与触控左右滑动，同时避免拖动误触发链接。 */
.fy-home-plugin-track[data-drag-scroll="1"] {
    cursor: grab;
    touch-action: pan-x;
    user-select: none;
}
.fy-home-plugin-track[data-drag-scroll="1"].is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}
.fy-home-plugin-track[data-drag-scroll="1"] .fy-home-plugin-entry {
    user-select: none;
}

/* 首页插件入口按每页 4 张卡片分组，桌面和手机均可横向滑动并点击分页点切换。 */
.fy-page-index .fy-home-plugin-grid {
    display:block!important;
    overflow:visible;
    padding:2px 0 0;
}
.fy-page-index .fy-home-plugin-track {
    display:flex;
    width:100%;
    overflow-x:auto;
    gap:0;
    padding:0 0 7px;
    scroll-snap-type:x mandatory;
    scrollbar-width:thin;
    touch-action:pan-x;
}
.fy-page-index .fy-home-plugin-page {
    display:grid;
    flex:0 0 100%;
    min-width:100%;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    scroll-snap-align:start;
}
.fy-page-index .fy-home-plugin-page .fy-home-plugin-entry {
    width:auto!important;
    min-width:0!important;
    flex:initial!important;
}
.fy-page-index .fy-home-plugin-dots {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:20px;
    padding-top:4px;
}
.fy-page-index .fy-home-plugin-dot {
    width:8px;
    height:8px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#64748b;
    cursor:pointer;
    transition:width .2s ease,background .2s ease,box-shadow .2s ease;
}
.fy-page-index .fy-home-plugin-dot.is-active { width:22px; border-radius:99px; background:#6c5ce7; box-shadow:0 0 8px rgba(108,92,231,.42); }
.fy-page-index .fy-home-plugin-dot:focus-visible { outline:2px solid #f7e479; outline-offset:2px; }
@media (max-width:768px) {
    .fy-page-index .fy-home-plugin-track { scrollbar-width:none; touch-action:pan-x; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; }
    .fy-page-index .fy-home-plugin-track::-webkit-scrollbar { display:none; }
    .fy-page-index .fy-home-plugin-page { gap:8px; }
}
[data-theme="light"] .fy-page-index .fy-home-plugin-dot { background:#94a3b8; }
[data-theme="light"] .fy-page-index .fy-home-plugin-dot.is-active { background:#6c5ce7; box-shadow:0 0 8px rgba(108,92,231,.28); }

/* 移动端底部导航 - 图标与文字垂直居中 */
.fy-mobile-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.fy-mobile-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10px;
    color: var(--fy-text-secondary);
    transition: color 0.2s;
    text-decoration: none;
    width: 100%;
    height: 100%;
    padding: 6px 0;
    box-sizing: border-box;
}

.fy-mobile-nav-item a .fy-icon {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.fy-mobile-nav-item a span:not(.fy-icon) {
    line-height: 1;
    display: block;
}

@media (min-width: 769px) {
    .fy-mobile-top {
        display: none !important;
    }
}

/* ===== 404 页 ===== */
.fy-404 {
    text-align: center;
    padding: 80px 20px;
}

.fy-404-icon {
    font-size: 72px;
    margin-bottom: 16px;
}

.fy-404 h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

.fy-404 p {
    color: var(--fy-text-secondary);
    margin-bottom: 24px;
}

/* ===== 工具类 ===== */
.fy-center {
    text-align: center;
}

.fy-muted {
    color: var(--fy-text-secondary);
}

.fy-mb-0 { margin-bottom: 0; }
.fy-mb-8 { margin-bottom: 8px; }
.fy-mb-12 { margin-bottom: 12px; }
.fy-mb-16 { margin-bottom: 16px; }

/* ===== 登录弹窗 ===== */
.fy-login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fyFadeIn 0.25s ease;
}

@keyframes fyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fySlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.fy-login-modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--fy-bg-card);
    border: 1px solid var(--fy-border);
    border-radius: 20px;
    padding: 36px 32px 28px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    animation: fySlideUp 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.fy-login-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--fy-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.fy-login-modal-close:hover {
    background: var(--fy-hover);
    color: var(--fy-text-primary);
}

.fy-login-modal-head {
    text-align: center;
    margin-bottom: 24px;
}

.fy-login-modal-logo {
    display: none;
}

.fy-login-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--fy-text-primary);
    margin: 0 0 6px;
}

.fy-login-modal-subtitle {
    font-size: 13px;
    color: var(--fy-text-secondary);
    margin: 0;
}

.fy-login-modal-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #ef4444;
}

.fy-login-modal-alert .fy-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.fy-login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fy-login-modal-field {
    margin-bottom: 18px;
}

.fy-login-modal-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fy-text-secondary);
    margin-bottom: 8px;
}

.fy-login-modal-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.fy-login-modal-input-icon {
    position: absolute;
    left: 14px;
    color: var(--fy-text-muted);
    font-size: 15px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fy-login-modal-input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    background: var(--fy-bg-primary);
    border: 1px solid var(--fy-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--fy-text-primary);
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.fy-login-modal-input::placeholder {
    color: var(--fy-text-muted);
}

.fy-login-modal-input:focus {
    border-color: var(--fy-active);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.fy-login-modal-helper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.fy-login-modal-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fy-text-secondary);
    cursor: pointer;
}

.fy-login-modal-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--fy-active);
    cursor: pointer;
}

.fy-login-modal-forgot {
    font-size: 13px;
    color: var(--fy-active);
    text-decoration: none;
}

.fy-login-modal-forgot:hover {
    text-decoration: underline;
}

.fy-login-modal-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fy-login-modal-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

.fy-login-modal-submit:active {
    transform: translateY(0);
}

.fy-login-modal-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.fy-login-modal-link-row {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--fy-text-secondary);
}

.fy-login-modal-link-row a {
    color: var(--fy-active);
    text-decoration: none;
    font-weight: 600;
}

.fy-login-modal-link-row a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .fy-login-modal {
        padding: 28px 20px 22px;
    }
    .fy-login-modal-title {
        font-size: 19px;
    }
}

/* ===== 移动端重排：单列内容、稳定抽屉和安全区域 ===== */
@media (max-width: 768px) {
    html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
    .fy-app { display: block; width: 100%; min-height: 100dvh; overflow-x: clip; }
    .fy-mobile-top { display:none !important; }
    .fy-sidebar, .fy-rightbar, .fy-rightbar-expand, .fy-mobile-overlay { display:none !important; }
    .fy-rightbar.fy-collapsed ~ .fy-rightbar-expand { display:none !important; }
    .fy-mobile-top-bar { min-height: 34px; }
    .fy-mobile-top-bar button[data-fy-mobile-nav] { flex: 0 0 34px; width: 34px; height: 34px; }
    .fy-mobile-search { min-width: 0; width: 100%; }
    .fy-mobile-search input { min-width: 0; width: 100%; }
    .fy-main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 !important;
        padding: 14px 8px calc(76px + env(safe-area-inset-bottom)) !important;
    }
    .fy-main > *, .fy-card, .fy-hero, .fy-entry, .fy-post, .fy-bbs-tag-card { min-width: 0; max-width: 100%; }
    .fy-hero { min-height: 276px; padding: 0; margin-bottom: 14px; }
    .fy-hero-inner { padding: 38px 16px 30px; }
    .fy-hero-kicker { margin-bottom: 8px; font-size: 10px; letter-spacing: .1em; }
    .fy-hero h1 { font-size: clamp(23px, 7vw, 30px); line-height: 1.25; }
    .fy-hero p { margin-bottom: 16px; font-size: 13px; line-height: 1.65; }
    .fy-hero-search { min-height: 42px; padding-left: 13px; }
    .fy-hero-search-button { width: 32px; height: 32px; flex-basis: 32px; }
    .fy-search-page-head { align-items: flex-start; flex-direction: column; gap: 12px; }
    .fy-search-page-head-top { align-items: flex-start; gap: 8px; }
    .fy-search-back-btn { padding: 6px 9px; }
    .fy-search-page-form { min-height: 50px; padding-left: 13px; }
    .fy-search-page-form button { min-width: 68px; height: 36px; padding-inline: 10px; }
    .fy-search-result-more { width: 100%; margin-left: 0; margin-top: 4px; }
    .fy-hero-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
    .fy-hero-actions .fy-btn { width: 100%; }
    .fy-entry-grid, .fy-plugin-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .fy-bbs-tabs { gap: 22px; overflow-x: auto; white-space: nowrap; margin-bottom: 14px; scrollbar-width: none; }
    .fy-bbs-tabs::-webkit-scrollbar { width: 0; height: 0; }
    .fy-bbs-tab { flex: 0 0 auto; padding: 9px 0; }
    .fy-bbs-tabs-actions { flex: 0 0 auto; margin-left: auto; }
    .fy-bbs-feed-head { align-items: stretch; flex-direction: column; gap: 8px; }
    .fy-bbs-feed-tabs { width: 100%; overflow-x: auto; }
    .fy-bbs-feed-tab { flex: 1 0 auto; text-align: center; padding: 6px 12px; }
    /* 手机端板块卡片采用单列，保证每条数据完整展示。 */
    .fy-bbs-tag-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .fy-bbs-tag-card { padding: 14px; }
    .fy-bbs-tag-actions { flex-wrap: wrap; }
    .fy-bbs-tag-btn { flex: 1 1 90px; min-width: 0; text-align: center; }
    .fy-post { padding: 14px; }
    .fy-post-badges { width: 100%; margin-left: 0; }
    .fy-post-stats { gap: 12px; flex-wrap: wrap; }
    .fy-post-foot { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
    .fy-post-admin-actions { width: 100%; margin-left: 0; justify-content: flex-end; }
    .fy-card { padding: 14px; }
    .fy-bbs-detail { padding: 0; }
    .fy-bbs-detail-head { padding: 19px 16px 17px; }
    .fy-bbs-detail-title { font-size: 22px; }
    .fy-bbs-detail-meta, .fy-bbs-detail-stats { gap: 9px 14px; }
    .fy-bbs-detail-meta > .fy-detail-admin-actions { width: 100%; margin-left: 0; }
    .fy-bbs-detail > .fy-post-text { padding: 18px 16px; }
    .fy-bbs-share { margin: 0 16px 18px; }
    .fy-comments-card { padding: 18px 16px 20px; }
    .fy-comment-meta time { margin-left: 0; width: 100%; }
    .fy-page-head { margin-bottom: 14px; }
    .fy-mobile-nav { height: calc(60px + env(safe-area-inset-bottom)); }
    .fy-loading-overlay .loader { width: min(300px, 82vw); }
}

/* 横向手机同样保持单栏，不重新让出已经隐藏的右侧栏宽度。 */
@media (min-width:560px) and (max-width:768px) {
    .fy-main:not(.fy-right-collapsed) { margin-right:0 !important; width:100% !important; max-width:100% !important; }
}

@media (max-width: 560px) {
    .fy-publish-modal { align-items: flex-end; padding: 0; }
    .fy-publish-modal .fy-modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
    .fy-publish-modal .fy-modal-head { padding: 16px 18px; }
    .fy-publish-modal .fy-publish-board-label,
    .fy-publish-modal .fy-publish-board-select,
    .fy-publish-modal .fy-publish-error { margin-left: 16px; margin-right: 16px; }
    .fy-publish-modal .fy-publish-board-select { width: calc(100% - 32px); }
.fy-publish-modal .fy-publish-form { padding: 2px 16px 18px; }
}

/* 移动端抽屉层级：侧栏必须盖住底部导航，遮罩只位于内容与抽屉之间。
   桌面端不改变三栏固定布局，也不参与空白点击收起。 */
@media (max-width: 768px) {
    .fy-mobile-overlay {
        z-index: 2000;
    }
    .fy-sidebar,
    .fy-rightbar {
        z-index: 2002;
    }
    .fy-rightbar-expand {
        z-index: 2003;
    }
    .fy-mobile-nav {
        z-index: 1001;
    }
}

/* 发布/编辑统一的标签与表单布局 */
.fy-publish-tags { margin: 14px 0 4px; }
.fy-publish-tags-label { display:block; margin-bottom:8px; color:var(--fy-text-secondary); font-size:13px; font-weight:600; }
.fy-tag-options { display:flex; flex-wrap:wrap; gap:8px; }
.fy-bbs-section-tags { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 14px; }
.fy-bbs-section-tags-label { color:var(--fy-muted,#64748b); font-size:13px; }
.fy-bbs-section-tag { display:inline-flex; align-items:center; padding:5px 10px; border:1px solid var(--fy-border,#dbe3ef); border-radius:999px; color:var(--fy-text,#334155); background:var(--fy-card,#fff); font-size:13px; text-decoration:none; }
.fy-bbs-section-tag:hover, .fy-bbs-section-tag.fy-active { border-color:var(--fy-primary,#6366f1); color:var(--fy-primary,#6366f1); background:rgba(99,102,241,.08); }
.fy-tag-option { border:1px solid var(--fy-border); border-radius:999px; padding:7px 12px; background:var(--fy-bg-primary); color:var(--fy-text-secondary); cursor:pointer; transition:.18s ease; }
.fy-tag-option:hover, .fy-tag-option.is-selected { border-color:var(--fy-active); color:var(--fy-active); background:color-mix(in srgb, var(--fy-active) 12%, transparent); }
.fy-publish-tags .fy-tag-custom { margin-top:10px; max-width:420px; }
.fy-tag-empty { display:block; margin-top:2px; color:var(--fy-text-secondary); font-size:12px; }
.fy-admin-edit-card { max-width:920px; padding:0; overflow:hidden; border:1px solid var(--fy-border); border-radius:20px; background:var(--fy-bg-card); box-shadow:0 18px 50px rgba(15,23,42,.08); }
.fy-admin-edit-heading { display:flex; justify-content:space-between; margin:0; padding:24px clamp(18px,3vw,30px); border-bottom:1px solid var(--fy-border); background:linear-gradient(135deg,color-mix(in srgb,var(--fy-active) 13%,var(--fy-bg-card)),var(--fy-bg-card)); }
.fy-admin-edit-heading h1 { margin:4px 0 6px; font-size:clamp(22px,3vw,30px); }
.fy-admin-edit-heading p { margin:0; color:var(--fy-text-secondary); font-size:13px; }
.fy-admin-edit-form { display:flex; flex-direction:column; gap:16px; padding:clamp(18px,3vw,30px); }
.fy-admin-edit-form label { display:flex; flex-direction:column; gap:7px; color:var(--fy-text-secondary); font-size:13px; font-weight:600; }
.fy-edit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.fy-edit-textarea { min-height:220px; resize:vertical; line-height:1.7; }
.fy-admin-edit-form .fy-input { width:100%; min-height:46px; box-sizing:border-box; padding:12px 14px; border:1px solid color-mix(in srgb,var(--fy-border) 78%,var(--fy-text-secondary)); border-radius:12px; background:color-mix(in srgb,var(--fy-bg-primary) 82%,var(--fy-bg-card)); color:var(--fy-text-primary); outline:none; font:inherit; transition:.18s ease; }
.fy-admin-edit-form .fy-input:focus { border-color:var(--fy-active); box-shadow:0 0 0 3px color-mix(in srgb, var(--fy-active) 16%, transparent); }
.fy-auto-description { min-height:72px !important; resize:vertical; opacity:.86; }
.fy-editor-textarea { min-height:260px; }
.fy-bbs-detail-extra { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:16px; padding:13px 15px; border:1px solid var(--fy-border); border-radius:12px; color:var(--fy-text-secondary); font-size:13px; }
.fy-bbs-detail-extra > span { min-width:180px; }
.fy-bbs-detail-extra b { color:var(--fy-text-primary); }
.fy-bbs-detail-qr { display:flex; align-items:center; gap:8px; }
.fy-bbs-detail-qr img { width:96px; height:96px; object-fit:contain; border-radius:8px; background:#fff; }
.fy-file-input { display:block; width:100%; margin-top:7px; font-size:12px; color:var(--fy-text-secondary); }
.fy-upload-hint { display:block; margin-top:5px; color:var(--fy-text-secondary); font-size:11px; font-weight:400; }
.fy-image-picker-btn { display:inline-flex; align-items:center; margin-top:7px; padding:6px 10px; border:1px solid var(--fy-border); border-radius:8px; color:var(--fy-active); background:var(--fy-bg-primary); font:inherit; font-size:12px; cursor:pointer; }
.fy-image-picker-btn:hover { border-color:var(--fy-active); }
.fy-editor-textarea + .edui-editor,
.fy-admin-edit-form .edui-editor,
.fy-publish-form .edui-editor { width:100% !important; max-width:100%; border-color:var(--fy-border); border-radius:12px; overflow:hidden; }
.fy-publish-form .edui-editor-body .view { color:var(--fy-text-primary); }
.fy-admin-edit-actions { padding-top:4px; border-top:1px solid color-mix(in srgb,var(--fy-border) 75%,transparent); }
@media (max-width:600px) { .fy-edit-grid { grid-template-columns:1fr; } }

/* 个人中心：桌面保持宽松信息卡，移动端切换为紧凑的个人主页卡片。 */
.fy-usercenter-page { width:100%; max-width:none; margin:0 auto; display:grid; gap:14px; }
.fy-mobile-page-back { display:inline-flex; align-items:center; gap:6px; margin:0 0 12px 2px; padding:8px 12px; border:1px solid var(--fy-border); border-radius:999px; color:var(--fy-text-secondary); background:var(--fy-bg-card); font-size:12px; text-decoration:none; }
.fy-mobile-page-back:hover { color:var(--fy-active); border-color:var(--fy-active); }
.fy-usercenter-card { border:1px solid var(--fy-border); border-radius:18px; background:var(--fy-bg-card); box-shadow:0 10px 28px rgba(15,23,42,.07); }
.fy-usercenter-profile { padding:22px; }
.fy-usercenter-profile-main { display:flex; align-items:center; gap:14px; min-width:0; }
.fy-usercenter-avatar { display:grid; place-items:center; width:70px; height:70px; flex:0 0 70px; overflow:hidden; border-radius:50%; background:color-mix(in srgb,var(--fy-active) 14%,var(--fy-bg-primary)); color:var(--fy-active); font-size:29px; }
.fy-usercenter-avatar img { width:100%; height:100%; object-fit:cover; }
.fy-usercenter-profile-copy { min-width:0; flex:1; }
.fy-usercenter-name { overflow:hidden; color:var(--fy-text-primary); font-size:21px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.fy-usercenter-subtitle { margin-top:4px; overflow:hidden; color:var(--fy-text-secondary); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.fy-usercenter-login-btn { flex:0 0 auto; padding:9px 18px; border-radius:999px; color:#fff; background:var(--fy-active); font-size:13px; font-weight:700; }
.fy-usercenter-vip-row { display:flex; align-items:center; gap:11px; margin-top:18px; padding-top:16px; border-top:1px solid color-mix(in srgb,var(--fy-border) 75%,transparent); }
.fy-usercenter-vip-icon { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; border-radius:12px; color:#8275ff; background:rgba(108,92,231,.16); font-size:19px; }
.fy-usercenter-vip-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:2px; }
.fy-usercenter-vip-copy strong { color:var(--fy-text-primary); font-size:14px; }
.fy-usercenter-vip-copy span { color:var(--fy-text-secondary); font-size:12px; }
.fy-vip-status-mobile { display:none; }
.fy-usercenter-vip-btn { display:inline-flex; align-items:center; gap:5px; padding:9px 14px; border-radius:999px; color:#fff; background:var(--fy-active); font-size:12px; font-weight:700; white-space:nowrap; }
.fy-usercenter-vip-btn span { font-size:18px; line-height:12px; }
.fy-usercenter-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:17px 12px; }
.fy-usercenter-stat { display:flex; min-width:0; flex-direction:column; align-items:center; gap:2px; border-right:1px solid var(--fy-border); }
.fy-usercenter-stat:last-child { border-right:0; }
.fy-usercenter-stat strong { color:var(--fy-text-primary); font-size:20px; line-height:1.15; }
.fy-usercenter-stat span { color:var(--fy-text-secondary); font-size:12px; }
.fy-usercenter-shortcuts { padding:20px 16px 17px; }
.fy-usercenter-shortcut-track { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.fy-usercenter-shortcut-page { display:contents; }
.fy-usercenter-shortcut-page-mobile { display:contents; }
.fy-usercenter-shortcut { display:flex; min-width:0; flex-direction:column; align-items:center; gap:8px; color:var(--fy-text-secondary); font-size:12px; text-align:center; }
.fy-usercenter-shortcut .fy-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:14px; color:#fff; font-size:21px; }
.fy-usercenter-shortcut.is-pink .fy-icon { background:#df4a79; }.fy-usercenter-shortcut.is-blue .fy-icon { background:#5266e8; }.fy-usercenter-shortcut.is-orange .fy-icon { background:#b87834; }.fy-usercenter-shortcut.is-red .fy-icon { background:#f35d45; }.fy-usercenter-shortcut.is-purple .fy-icon { background:#7657d9; }.fy-usercenter-shortcut.is-green .fy-icon { background:#22a866; }
.fy-usercenter-slider-dots { display:none; }
.fy-usercenter-slider-dots i { display:block; width:6px; height:6px; border-radius:50%; background:var(--fy-text-secondary); opacity:.7; }.fy-usercenter-slider-dots i.is-active { width:17px; border-radius:999px; background:var(--fy-active); opacity:1; }
.fy-usercenter-menu { padding:5px 18px; }
.fy-usercenter-menu-item { position: relative; display:flex; align-items:center; gap:12px; min-height:66px; border-bottom:1px solid var(--fy-border); color:var(--fy-text-primary); }
.fy-usercenter-menu-item:last-child { border-bottom:0; }
.fy-usercenter-menu-icon { display:grid; place-items:center; width:38px; height:38px; flex:0 0 38px; border-radius:11px; font-size:17px; }.fy-usercenter-menu-icon.is-blue { color:#7890ff; background:rgba(82,102,232,.16); }.fy-usercenter-menu-icon.is-green { color:#3bd47c; background:rgba(26,180,91,.16); }.fy-usercenter-menu-icon.is-pink { color:#f17bae; background:rgba(223,74,121,.16); }.fy-usercenter-menu-icon.is-purple { color:#ae91ff; background:rgba(108,92,231,.16); }.fy-usercenter-menu-icon.is-orange { color:#e89a42; background:rgba(232,154,66,.16); }.fy-usercenter-menu-icon.is-gray { color:var(--fy-text-secondary); background:var(--fy-bg-primary); }
.fy-usercenter-menu-label { flex:1; font-size:14px; }
.fy-usercenter-menu-item > .fy-icon-arrow-right { color:var(--fy-text-secondary); font-size:16px; }
.fy-usercenter-logout { color:var(--fy-danger); }

/* ===== 消息中心 / 我的信息 / 搜索历史 ===== */
.fy-message-page, .fy-user-posts-page, .fy-history-page { width:100%; max-width:none; margin:0 auto; }
.fy-management-page { width:100%; max-width:none; margin:0 auto; }
.fy-management-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:14px; }
.fy-management-hero, .fy-management-form, .fy-management-card { padding:20px; }
.fy-management-hero, .fy-management-form { display:flex; min-width:0; flex-direction:column; gap:12px; }
.fy-management-hero > div:not(.fy-management-result), .fy-management-form > div { min-width:0; }
.fy-management-hero h2, .fy-management-form h2, .fy-management-card h2 { margin:3px 0 4px; color:var(--fy-text-primary); font-size:18px; }
.fy-management-hero p, .fy-management-form p { margin:0; color:var(--fy-text-secondary); font-size:12px; line-height:1.6; }
.fy-management-icon { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; border-radius:13px; color:var(--fy-active); background:color-mix(in srgb,var(--fy-active) 14%,var(--fy-bg-primary)); font-size:19px; }
.fy-management-icon-friends { color:#e36b59; background:color-mix(in srgb,#e36b59 14%,var(--fy-bg-primary)); }
.fy-management-icon-groups { color:#5479dc; background:color-mix(in srgb,#5479dc 14%,var(--fy-bg-primary)); }
.fy-management-search { display:flex; gap:8px; margin-top:3px; }
.fy-management-search input, .fy-management-form input, .fy-management-form textarea { width:100%; min-width:0; box-sizing:border-box; border:1px solid var(--fy-border); border-radius:10px; padding:10px 12px; color:var(--fy-text-primary); background:var(--fy-bg-primary); font:inherit; font-size:12px; outline:none; }
.fy-management-form textarea { min-height:78px; resize:vertical; }
.fy-management-search input:focus, .fy-management-form input:focus, .fy-management-form textarea:focus { border-color:var(--fy-active); box-shadow:0 0 0 3px color-mix(in srgb,var(--fy-active) 12%,transparent); }
.fy-management-result { display:flex; min-width:0; align-items:center; gap:10px; padding:10px; border:1px solid var(--fy-border); border-radius:11px; color:var(--fy-text-secondary); font-size:12px; }
.fy-management-result[hidden] { display:none !important; }
.fy-management-result .fy-friend-profile-avatar { width:38px; height:38px; flex-basis:38px; }
.fy-management-result .fy-friend-copy { flex:1; }
.fy-management-result .fy-friend-profile-action { flex:0 0 auto; }
.fy-management-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; }
.fy-management-section-head h2 { margin-top:2px; }
.fy-management-count { color:var(--fy-text-secondary); font-size:12px; }
.fy-management-friend-list, .fy-management-group-list { display:grid; gap:8px; }
.fy-management-friend-row, .fy-management-request-row, .fy-management-group-row { display:flex; min-width:0; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--fy-border); }
.fy-management-friend-row:last-child, .fy-management-request-row:last-child, .fy-management-group-row:last-child { border-bottom:0; }
.fy-management-friend-row .fy-friend-copy, .fy-management-request-row .fy-friend-copy, .fy-management-group-row .fy-friend-copy { min-width:0; flex:1; }
.fy-management-group-avatar { display:inline-flex; position:relative; align-items:center; justify-content:center; flex:0 0 38px; width:38px; height:38px; overflow:hidden; border-radius:11px; color:#fff; background:linear-gradient(135deg,var(--fy-active),#14b8a6); font-size:15px; font-weight:700; }
.fy-management-group-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.fy-management-friend-row .fy-btn, .fy-management-request-row .fy-btn, .fy-management-group-row .fy-btn { flex:0 0 auto; padding:7px 10px; font-size:11px; }
.fy-management-request-row { align-items:flex-start; }
.fy-management-owner { flex:0 0 auto; color:var(--fy-active); font-size:11px; }
.fy-central-chat-head { flex-wrap:wrap; }
.fy-central-chat-title { min-width:150px; flex:1; }
.fy-central-chat-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:6px; margin-left:auto; }
.fy-central-chat-actions .fy-btn { min-width:72px; padding:7px 10px; font-size:11px; text-align:center; }
.fy-central-chat-actions .fy-btn-danger { color:var(--fy-danger); border-color:color-mix(in srgb,var(--fy-danger) 35%,var(--fy-border)); background:transparent; }
.fy-central-chat-members { margin-top:14px; padding:15px 18px; }
.fy-central-chat-members[hidden] { display:none !important; }
.fy-central-chat-members .fy-friend-section-head { margin:0 0 8px; }
.fy-group-edit-panel { margin-bottom:14px; padding:15px 18px; }
.fy-group-edit-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end; gap:10px; }
.fy-group-edit-form label { display:flex; flex-direction:column; gap:5px; color:var(--fy-text-secondary); font-size:11px; }
.fy-group-edit-form input[type="text"], .fy-group-edit-form input[type="file"] { width:100%; min-width:0; box-sizing:border-box; padding:9px 10px; border:1px solid var(--fy-border); border-radius:9px; color:var(--fy-text-primary); background:var(--fy-bg-primary); font:inherit; }
.fy-group-edit-preview { display:flex; align-items:center; gap:7px; color:var(--fy-text-secondary); font-size:11px; }
.fy-group-edit-preview:empty { display:none; }
.fy-message-summary { display:flex; align-items:center; gap:13px; padding:18px 20px; margin-bottom:14px; }
.fy-message-summary-icon { display:grid; place-items:center; width:46px; height:46px; flex:0 0 46px; border-radius:14px; color:#7890ff; background:rgba(82,102,232,.16); font-size:21px; }
.fy-message-summary-copy { display:flex; min-width:0; flex:1; flex-direction:column; gap:4px; }
.fy-message-summary-copy strong { color:var(--fy-text-primary); font-size:16px; }
.fy-message-summary-copy span { overflow:hidden; color:var(--fy-text-secondary); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.fy-message-tabs { display:flex; align-items:center; gap:22px; min-height:38px; margin:0 4px 10px; color:var(--fy-text-secondary); font-size:13px; }
.fy-message-tabs button { position:relative; padding:7px 1px; border:0; color:inherit; background:transparent; font:inherit; cursor:pointer; }
.fy-message-tabs button.is-active { color:var(--fy-active); font-weight:700; }
.fy-message-tabs button.is-active::after { content:""; position:absolute; right:0; bottom:0; left:0; height:2px; border-radius:99px; background:var(--fy-active); }
.fy-message-section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:16px 4px 9px; color:var(--fy-text-primary); }
.fy-message-section-head strong { font-size:14px; }
.fy-message-section-head span { color:var(--fy-text-secondary); font-size:11px; }
.fy-message-list, .fy-user-posts-list { display:grid; gap:10px; }
.fy-message-page [hidden] { display:none !important; }
.fy-message-item { display:flex; align-items:flex-start; gap:12px; padding:16px 18px; }
.fy-message-avatar { position:relative; display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; overflow:hidden; border-radius:50%; color:var(--fy-active); background:color-mix(in srgb,var(--fy-active) 14%,var(--fy-bg-primary)); font-size:18px; }
.fy-message-avatar img, .fy-friend-message-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.fy-message-item-body { min-width:0; flex:1; }
.fy-message-item-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.fy-message-item-head strong { color:var(--fy-text-primary); font-size:13px; }
.fy-message-item-head time { color:var(--fy-text-secondary); font-size:11px; white-space:nowrap; }
.fy-message-item p { margin:7px 0 9px; color:var(--fy-text-secondary); font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.fy-message-post { display:flex; align-items:center; gap:6px; color:var(--fy-active); font-size:12px; }
.fy-message-post { padding:0; border:0; background:transparent; font:inherit; cursor:pointer; text-align:left; }
.fy-message-post .fy-icon-arrow-right { margin-left:auto; }
.fy-message-request-actions { display:flex; align-items:center; gap:7px; }
.fy-message-request-actions .fy-btn { min-width:58px; padding:6px 10px; font-size:11px; }
.fy-message-empty { display:flex; min-height:250px; align-items:center; justify-content:center; flex-direction:column; gap:8px; padding:32px 20px; text-align:center; }
.fy-message-empty > .fy-icon { color:var(--fy-active); font-size:42px; }
.fy-message-empty strong { color:var(--fy-text-primary); font-size:15px; }
.fy-message-empty p { margin:0 0 5px; color:var(--fy-text-secondary); font-size:12px; }
.fy-user-post-item { display:flex; align-items:center; gap:14px; padding:16px 18px; color:inherit; text-decoration:none; transition:transform .2s, box-shadow .2s; }
.fy-user-post-item:hover { transform:translateY(-1px); box-shadow:0 8px 20px rgba(0,0,0,.08); }
.fy-user-post-item-main { min-width:0; flex:1; }
.fy-user-post-item-main h2 { margin:0 0 6px; overflow:hidden; color:var(--fy-text-primary); font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.fy-user-post-item-main p { margin:0; overflow:hidden; color:var(--fy-text-secondary); font-size:12px; line-height:1.5; text-overflow:ellipsis; white-space:nowrap; }
.fy-user-post-item-meta { display:flex; align-items:center; gap:10px; color:var(--fy-text-secondary); font-size:11px; white-space:nowrap; }
.fy-history-card { padding:5px 18px; }
.fy-history-list { display:grid; }
.fy-history-item { display:flex; align-items:center; gap:10px; min-height:54px; border-bottom:1px solid var(--fy-border); color:var(--fy-text-primary); font-size:13px; text-decoration:none; }
.fy-history-item:last-child { border-bottom:0; }
.fy-history-item > .fy-icon:first-child { color:var(--fy-text-secondary); }
.fy-history-item > span:nth-child(2) { min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fy-history-item > .fy-icon:last-child { color:var(--fy-text-secondary); }
.fy-points-page, .fy-follow-page, .fy-favorites-page, .fy-invite-page, .fy-checkin-page { width:100%; max-width:none; margin:0 auto; }
.fy-points-balance { display:flex; align-items:center; gap:13px; padding:18px 20px; margin-bottom:14px; }
.fy-points-balance > .fy-icon { color:var(--fy-active); font-size:30px; }
.fy-points-balance div { flex:1; min-width:0; }.fy-points-balance small,.fy-points-item small { display:block; color:var(--fy-text-secondary); font-size:11px; }.fy-points-balance strong { display:block; margin-top:2px; color:var(--fy-text-primary); font-size:24px; }
.fy-points-list { padding:5px 18px; }.fy-points-item,.fy-follow-item,.fy-favorite-item { display:flex; align-items:center; gap:12px; min-height:62px; border-bottom:1px solid var(--fy-border); color:var(--fy-text-primary); text-decoration:none; }.fy-points-item:last-child,.fy-follow-item:last-child,.fy-favorite-item:last-child { border-bottom:0; }.fy-points-item > div,.fy-follow-item > span:nth-child(2),.fy-favorite-item > span:nth-child(2) { flex:1; min-width:0; }.fy-points-item strong,.fy-follow-item strong,.fy-favorite-item strong { display:block; overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }.fy-points-item small,.fy-follow-item small,.fy-favorite-item small { display:block; margin-top:3px; overflow:hidden; color:var(--fy-text-secondary); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.fy-points-item b { font-size:14px; }.fy-points-item b.is-plus { color:var(--fy-success); }.fy-points-item b.is-minus { color:var(--fy-danger); }.fy-points-item-icon,.fy-follow-icon { display:grid; place-items:center; width:38px; height:38px; flex:0 0 38px; border-radius:11px; color:var(--fy-active); background:color-mix(in srgb,var(--fy-active) 14%,var(--fy-bg-primary)); }.fy-follow-item,.fy-favorite-item { padding:8px 14px; }.fy-follow-item > .fy-icon:last-child,.fy-favorite-item > .fy-icon:last-child { color:var(--fy-text-secondary); }.fy-invite-hero,.fy-checkin-card { padding:28px 22px; text-align:center; }.fy-invite-hero > .fy-icon,.fy-checkin-card > .fy-icon { color:var(--fy-active); font-size:38px; }.fy-invite-hero h2,.fy-checkin-card h2 { margin:10px 0 6px; color:var(--fy-text-primary); font-size:20px; }.fy-invite-hero p,.fy-checkin-card p { color:var(--fy-text-secondary); font-size:13px; }.fy-invite-code { display:inline-flex; flex-direction:column; gap:4px; margin:14px 0; padding:10px 24px; border-radius:12px; background:var(--fy-bg-primary); }.fy-invite-code small { color:var(--fy-text-secondary); }.fy-invite-code strong { color:var(--fy-active); font-size:22px; letter-spacing:.12em; }.fy-invite-hero .fy-input { display:block; width:min(430px,100%); margin:0 auto 10px; text-align:center; }

@media (max-width:768px) {
    .fy-mobile-page-back { margin-bottom:10px; padding:7px 10px; }
    .fy-usercenter-page-head { display:none; }
    .fy-usercenter-page { width:100%; max-width:none; gap:12px; margin:0 auto; padding:2px 0 8px; }
    .fy-usercenter-card { border:0; border-radius:17px; box-shadow:0 8px 22px rgba(0,0,0,.12); }
    .fy-usercenter-profile { padding:20px 18px 17px; }
    .fy-usercenter-profile-main { gap:13px; }
    .fy-usercenter-avatar { width:62px; height:62px; flex-basis:62px; background:#e8e8e8; color:#999; font-size:25px; }
    [data-theme="dark"] .fy-usercenter-avatar { background:#dedede; color:#999; }
    .fy-usercenter-name { font-size:19px; }
    .fy-usercenter-subtitle { font-size:11px; }
    .fy-usercenter-login-btn { padding:8px 14px; }
    .fy-usercenter-vip-row { margin-top:15px; padding-top:14px; }
    .fy-usercenter-vip-icon { width:40px; height:40px; flex-basis:40px; }
    .fy-usercenter-vip-btn { padding:9px 13px; }
    .fy-vip-status-desktop { display:none !important; }
    .fy-vip-status-mobile { display:block; font-size:10px !important; }
    .fy-usercenter-stats { padding:17px 7px; }
    .fy-usercenter-stat strong { font-size:18px; }
    .fy-usercenter-shortcuts { padding:20px 12px 10px; overflow:hidden; }
    .fy-usercenter-shortcut-track { display:flex; align-items:stretch; gap:7px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; touch-action:pan-x; }
    .fy-usercenter-shortcut-track::-webkit-scrollbar { display:none; }
    .fy-usercenter-shortcut-page { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; flex:0 0 100%; min-width:100%; scroll-snap-align:start; }
    .fy-usercenter-shortcut-page-mobile { display:grid; }
    .fy-usercenter-shortcut .fy-icon { width:46px; height:46px; }
    .fy-usercenter-slider-dots { display:flex !important; margin-top:10px; }
    .fy-usercenter-menu { padding:3px 17px; }
    .fy-usercenter-menu-item { min-height:66px; }
    .fy-message-page, .fy-user-posts-page, .fy-history-page { max-width:none; }
    .fy-message-page-head { display:none; }
    .fy-management-page-head { display:none; }
    .fy-message-summary { padding:15px 14px; border-radius:15px; }
    .fy-message-summary-icon { width:40px; height:40px; flex-basis:40px; font-size:18px; }
    .fy-message-summary-copy strong { font-size:15px; }
    .fy-message-item { padding:14px 13px; border-radius:14px; }
    .fy-message-item-head time { font-size:10px; }
    .fy-message-empty { min-height:220px; border-radius:14px; }
    .fy-central-chat-head h1 { font-size:19px; }
    .fy-management-grid { grid-template-columns:minmax(0,1fr); }
    .fy-management-hero, .fy-management-form, .fy-management-card { padding:15px 14px; border-radius:14px; }
    .fy-management-search { flex-direction:column; }
    .fy-management-search .fy-btn { width:100%; }
    .fy-management-friend-row, .fy-management-request-row, .fy-management-group-row { flex-wrap:wrap; }
    .fy-management-friend-row .fy-friend-copy, .fy-management-request-row .fy-friend-copy, .fy-management-group-row .fy-friend-copy { flex-basis:calc(100% - 54px); }
    .fy-group-edit-form { grid-template-columns:minmax(0,1fr); }
    .fy-group-edit-form .fy-btn { width:100%; }
    .fy-central-chat-actions { width:100%; justify-content:flex-end; margin-left:0; }
    .fy-central-chat-card { min-height:calc(100vh - 185px); padding:14px; }
    .fy-central-chat-card .fy-chat-list { min-height:0; max-height:none; }
    .fy-user-post-item { align-items:flex-start; padding:14px 13px; border-radius:14px; }
    .fy-user-post-item-meta { flex-direction:column; align-items:flex-end; gap:5px; }
    .fy-user-post-item-meta > span:first-child { max-width:76px; overflow:hidden; text-overflow:ellipsis; }
    .fy-history-card { padding:3px 13px; border-radius:14px; }
    .fy-points-page, .fy-follow-page, .fy-favorites-page, .fy-invite-page, .fy-checkin-page { max-width:none; }
    .fy-points-balance { padding:15px 14px; border-radius:15px; }.fy-points-list { padding:3px 13px; border-radius:14px; }.fy-points-item,.fy-follow-item,.fy-favorite-item { min-height:58px; }.fy-invite-hero,.fy-checkin-card { padding:24px 15px; border-radius:15px; }
}

@media (max-width:360px) {
    .fy-usercenter-page { padding-left:0; padding-right:0; }
    .fy-usercenter-profile { padding-left:14px; padding-right:14px; }
    .fy-usercenter-menu { padding-left:13px; padding-right:13px; }
}

/* 系统默认板块与帖子列表：手机端紧凑比例和触控布局。 */
@media (max-width:768px) {
    .fy-bbs-tabs { min-height:42px; padding:0 2px; }
    .fy-bbs-tabs-actions .fy-btn { min-height:34px; padding:6px 11px !important; }
    .fy-bbs-tag-grid { gap:9px; margin-bottom:16px; }
    .fy-bbs-tag-card {
        min-height:0;
        padding:13px 12px 12px;
        border-width:1px;
        border-radius:13px;
        box-shadow:0 5px 14px rgba(0,0,0,.09);
    }
    .fy-bbs-tag-card:hover { transform:none; box-shadow:0 5px 14px rgba(0,0,0,.09); }
    .fy-bbs-tag-card:hover .fy-bbs-tag-corner { width:20px; height:20px; opacity:.5; }
    .fy-bbs-tag-card:hover .fy-bbs-tag-icon { transform:none; animation:none; }
    .fy-bbs-tag-content { display:grid; grid-template-columns:minmax(0,1fr) 54px; align-items:center; gap:8px 12px; }
    .fy-bbs-tag-title { grid-column:1; padding:0; border-bottom:0; text-align:left; font-size:14px; letter-spacing:.03em; overflow-wrap:anywhere; }
    .fy-bbs-tag-icon { grid-column:2; grid-row:1; width:54px; height:48px; margin:0; filter:none; }
    .fy-bbs-tag-avatar { top:0; right:62px; width:36px; height:36px; border-radius:9px; font-size:17px; }
    .fy-bbs-tag-count-num { font-size:23px; }
    .fy-bbs-tag-details { grid-column:1/-1; margin:0; text-align:left; }
    .fy-bbs-tag-stat { padding:7px 0; }
    .fy-bbs-tag-stat span:last-child, .fy-bbs-tag-latest-title { max-width:68%; }
    .fy-bbs-tag-actions { margin-top:8px; }
    .fy-bbs-tag-btn { min-height:34px; border-radius:8px; }
    .fy-bbs-cat-detail { margin-bottom:14px; }
    .fy-bbs-back-btn { margin-bottom:10px; }
    .fy-bbs-cat-info { padding:14px; border-radius:13px; }
    .fy-bbs-cat-avatar { width:44px; height:44px; flex-basis:44px; border-radius:11px; font-size:20px; }
    .fy-bbs-cat-title { font-size:20px; overflow-wrap:anywhere; }
    .fy-bbs-cat-meta { align-items:flex-start; flex-direction:column; gap:5px; }
    .fy-bbs-section-tags { max-width:100%; flex-wrap:nowrap; gap:6px; margin-bottom:12px; padding-bottom:3px; overflow-x:auto; scrollbar-width:none; }
    .fy-bbs-section-tags::-webkit-scrollbar { display:none; }
    .fy-bbs-section-tags-label, .fy-bbs-section-tag { flex:0 0 auto; }
    .fy-bbs-section-tag { min-height:31px; padding:5px 9px; }
    .fy-bbs-feed-head { margin-bottom:10px; }
    .fy-bbs-feed-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; }
    .fy-bbs-feed-tab { padding:7px 10px; }
    .fy-stream { gap:9px; }
    .fy-post { padding:12px; border-radius:13px; box-shadow:0 4px 13px rgba(0,0,0,.06); }
    .fy-post:hover { transform:none; box-shadow:0 4px 13px rgba(0,0,0,.06); }
    .fy-post-head { gap:5px 7px; }
    .fy-post-badges { gap:5px; }
    .fy-post-badge { padding:2px 7px; }
    .fy-post-title { margin-top:7px; font-size:15px; overflow-wrap:anywhere; }
    .fy-post-text { font-size:12px; line-height:1.65; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
    .fy-post-tags { flex-wrap:nowrap; max-width:100%; overflow-x:auto; scrollbar-width:none; }
    .fy-post-tags::-webkit-scrollbar { display:none; }
    .fy-post-tag { flex:0 0 auto; }
    .fy-post-thumb img { max-height:220px; }
    .fy-post-foot { margin-top:10px; }
    .fy-load-more { margin-top:16px !important; overflow:hidden; }
    .fy-load-more > div { gap:5px !important; }
    .fy-load-more .fy-btn { min-width:34px; padding:6px 9px !important; }
}

@media (max-width:380px) {
    .fy-bbs-tag-content { grid-template-columns:minmax(0,1fr) 46px; }
    .fy-bbs-tag-icon { width:46px; }
    .fy-bbs-tag-avatar { right:54px; width:32px; height:32px; }
    .fy-bbs-tag-count-num { font-size:20px; }
    .fy-post-admin-actions { justify-content:flex-start; }
}

/* 功能帖子流：简约赛博朋克卡片（仅列表卡片，不影响详情正文）。 */
.fy-bbs-feed-head {
    border-bottom:1px solid color-mix(in srgb, var(--fy-nav-glider) 32%, transparent);
    padding-bottom:8px;
}
.fy-stream .fy-post {
    position:relative;
    overflow:hidden;
    border-radius:4px;
    border-color:color-mix(in srgb, var(--fy-nav-glider) 34%, var(--fy-border));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--fy-bg-card) 93%, #070b12), var(--fy-bg-card)),
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.018) 3px 4px);
    box-shadow:inset 3px 0 0 color-mix(in srgb, var(--fy-nav-glider) 82%, transparent), 0 8px 24px rgba(0,0,0,.14);
}
.fy-stream .fy-post::before {
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:20%;
    height:2px;
    background:linear-gradient(90deg, var(--fy-nav-glider), var(--fy-active-light), transparent);
    opacity:.9;
    pointer-events:none;
}
.fy-stream .fy-post::after {
    content:"";
    position:absolute;
    right:0;
    bottom:0;
    width:34px;
    height:34px;
    border-right:2px solid color-mix(in srgb, var(--fy-nav-glider) 70%, transparent);
    border-bottom:2px solid color-mix(in srgb, var(--fy-nav-glider) 70%, transparent);
    opacity:.55;
    pointer-events:none;
}
.fy-stream .fy-post:hover {
    border-color:var(--fy-nav-glider);
    box-shadow:inset 3px 0 0 var(--fy-nav-glider), 0 10px 28px color-mix(in srgb, var(--fy-nav-glider) 18%, transparent);
}
.fy-stream .fy-post-author { color:var(--fy-active-light); letter-spacing:.02em; }
.fy-stream .fy-post-badge { border-radius:2px; letter-spacing:.02em; }
.fy-stream .fy-post-tag { border-radius:2px; }

[data-theme="light"] .fy-stream .fy-post {
    background:linear-gradient(135deg, color-mix(in srgb, #fff 94%, var(--fy-nav-glider)), var(--fy-bg-card));
    box-shadow:inset 3px 0 0 color-mix(in srgb, var(--fy-nav-glider) 72%, transparent), 0 7px 20px rgba(37,53,84,.10);
}

/* 手机功能帖子采用小尺寸双列卡片，保证一屏可浏览更多内容。 */
@media (max-width:768px) {
    .fy-stream { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
    .fy-stream > .fy-empty { grid-column:1 / -1; }
    .fy-stream .fy-post {
        min-width:0;
        padding:9px;
        border-radius:3px;
        box-shadow:inset 2px 0 0 color-mix(in srgb, var(--fy-nav-glider) 78%, transparent), 0 4px 13px rgba(0,0,0,.10);
    }
    .fy-stream .fy-post:hover { box-shadow:inset 2px 0 0 var(--fy-nav-glider), 0 4px 13px rgba(0,0,0,.10); }
    .fy-stream .fy-post::after { width:22px; height:22px; border-width:1px; }
    .fy-stream .fy-post-head { display:block; margin-bottom:5px; }
    .fy-stream .fy-post-author,
    .fy-stream .fy-post-time { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; line-height:1.45; }
    .fy-stream .fy-post-sep { display:none; }
    .fy-stream .fy-post-badges { display:flex; gap:3px; max-height:20px; overflow:hidden; margin-top:4px; }
    .fy-stream .fy-post-badge { max-width:100%; padding:1px 4px; font-size:9px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .fy-stream .fy-post-title { margin:5px 0 4px; font-size:12px; line-height:1.4; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
    .fy-stream .fy-post-text { margin:0; font-size:10px; line-height:1.45; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
    .fy-bbs-detail > .fy-post-text { display:block; -webkit-line-clamp:unset; overflow:visible; font-size:13px; line-height:1.8; }
    .fy-stream .fy-post-tags { gap:3px; margin-top:6px; }
    .fy-stream .fy-post-tag { min-height:19px; padding:1px 5px; font-size:9px; line-height:1.5; }
    .fy-stream .fy-post-thumb { margin-top:6px; }
    .fy-stream .fy-post-thumb img { width:100%; height:82px; max-height:none; object-fit:cover; }
    .fy-stream .fy-post-foot { display:block; margin-top:6px; }
    .fy-stream .fy-post-stats { gap:5px; font-size:9px; }
    .fy-stream .fy-post-admin-actions { gap:4px; margin-top:5px; }
    .fy-stream .fy-post-admin-actions .fy-btn { min-height:24px; padding:3px 6px !important; font-size:9px; }
}

@media (max-width:380px) {
    .fy-stream { gap:6px; }
    .fy-stream .fy-post { padding:8px; }
    .fy-stream .fy-post-title { font-size:11px; }
    .fy-stream .fy-post-text { font-size:9px; }
    .fy-stream .fy-post-thumb img { height:70px; }
}

/* BBS 功能页统一赛博朋克 2077 视觉：黄光导线 + 青色数据感，保留主题明暗切换。 */
.fy-bbs-page .fy-main {
    position:relative;
    isolation:isolate;
    background:
        linear-gradient(rgba(57,231,245,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247,228,121,.018) 1px, transparent 1px),
        radial-gradient(circle at 80% 0%, rgba(247,228,121,.08), transparent 28%),
        var(--fy-bg-primary);
    background-size:32px 32px, 32px 32px, auto, auto;
}
.fy-bbs-page .fy-main::before {
    content:"BBS // COMMUNITY NETWORK";
    position:absolute;
    top:7px;
    right:20px;
    z-index:-1;
    color:rgba(57,231,245,.16);
    font:600 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing:.16em;
    pointer-events:none;
}
.fy-bbs-page .fy-main > * { position:relative; }
.fy-bbs-page .fy-admin-notice {
    border-radius:2px;
    border-left:3px solid #f7e479;
    background:rgba(247,228,121,.08);
}
.fy-bbs-tabs,
.fy-bbs-feed-head {
    --fy-cyber-yellow:#f7e479;
    --fy-cyber-cyan:#39e7f5;
}
.fy-bbs-tabs:not(.fy-bbs-tabs-plugin) {
    position:relative;
    gap:18px;
    padding:0 10px;
    border-bottom:1px solid color-mix(in srgb, var(--fy-cyber-yellow) 30%, var(--fy-border));
    background:linear-gradient(90deg, color-mix(in srgb, var(--fy-cyber-yellow) 5%, transparent), transparent 45%);
}
.fy-bbs-tabs:not(.fy-bbs-tabs-plugin)::before {
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-1px;
    height:1px;
    background:linear-gradient(90deg, var(--fy-cyber-yellow), var(--fy-cyber-cyan), transparent 72%);
    opacity:.7;
    pointer-events:none;
}
.fy-bbs-tab {
    padding:11px 12px 10px;
    color:var(--fy-text-secondary);
    letter-spacing:.04em;
    border-left:1px solid transparent;
    border-right:1px solid transparent;
}
.fy-bbs-tab:hover {
    color:var(--fy-cyber-yellow);
    border-left-color:color-mix(in srgb, var(--fy-cyber-yellow) 25%, transparent);
    border-right-color:color-mix(in srgb, var(--fy-cyber-yellow) 25%, transparent);
}
.fy-bbs-tab.fy-active {
    color:var(--fy-cyber-yellow);
    text-shadow:0 0 10px color-mix(in srgb, var(--fy-cyber-yellow) 42%, transparent);
}
.fy-bbs-tab.fy-active::after {
    height:2px;
    border-radius:0;
    background:linear-gradient(90deg, var(--fy-cyber-yellow), var(--fy-cyber-cyan));
    box-shadow:0 0 10px color-mix(in srgb, var(--fy-cyber-yellow) 65%, transparent);
}
.fy-bbs-tabs:not(.fy-bbs-tabs-plugin) .fy-bbs-tabs-actions { padding-bottom:7px; }
.fy-bbs-tabs-actions .fy-publish-action {
    --fy-publish-bg:#f7e479;
    --fy-publish-text:#171717;
    --fy-publish-shadow:rgba(247,228,121,.30);
}

.fy-bbs-tag-grid { gap:12px; }

/* 最终移动端主题覆盖：确保基础规则之后仍保持赛博朋克视觉。 */
@media (max-width:768px) {
    .fy-page-index .fy-home-plugin-track { scrollbar-width:none; }
    .fy-page-index .fy-home-plugin-track::-webkit-scrollbar { display:none; }
    .fy-page-index .fy-home-plugin-page { gap:8px; }
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry { padding:10px 5px; min-height:92px; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
    .fy-page-index .fy-home-plugin-page .fy-entry-badge,
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry p,
    .fy-page-index .fy-home-plugin-page .fy-entry-more { display:none; }
    .fy-page-index .fy-home-plugin-page .fy-entry-icon { display:grid; width:32px; height:32px; margin:0 0 7px; font-size:16px; }
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry h3 { display:block; max-width:100%; margin:0; font-size:11px; white-space:nowrap; }
    .fy-page-index .fy-filter-bar { display:flex; flex-wrap:nowrap; overflow-x:auto; white-space:nowrap; scrollbar-width:none; }
    .fy-page-index .fy-filter-bar::-webkit-scrollbar { display:none; }
    .fy-page-index .fy-filter-item { flex:0 0 auto; }
    .fy-usercenter-page .fy-usercenter-card { border:1px solid rgba(57,231,245,.42); border-radius:7px; background:linear-gradient(145deg,#071018,#102b3c); box-shadow:0 0 18px rgba(57,231,245,.12); }
    .fy-usercenter-page .fy-usercenter-avatar { background:rgba(57,231,245,.14)!important; color:#39e7f5; border:1px solid rgba(57,231,245,.55); }
    .fy-usercenter-page .fy-usercenter-name,.fy-usercenter-page .fy-usercenter-stat strong,.fy-usercenter-page .fy-usercenter-vip-copy strong,.fy-usercenter-page .fy-usercenter-menu-label { color:#f2fbff; }
    .fy-usercenter-page .fy-usercenter-subtitle,.fy-usercenter-page .fy-usercenter-vip-copy span,.fy-usercenter-page .fy-usercenter-stat span,.fy-usercenter-page .fy-usercenter-shortcut { color:#a9c6d1; }
    .fy-usercenter-page .fy-usercenter-shortcut .fy-icon { width:42px; height:42px; color:#f7e479; background:rgba(57,231,245,.14)!important; border:1px solid rgba(57,231,245,.55); }
}
[data-theme="light"] .fy-usercenter-page .fy-usercenter-card { background:linear-gradient(145deg,#ffffff,#eafaff); border-color:#0891b2; box-shadow:0 8px 20px rgba(8,145,178,.14); }
[data-theme="light"] .fy-usercenter-page .fy-usercenter-name,[data-theme="light"] .fy-usercenter-page .fy-usercenter-stat strong,[data-theme="light"] .fy-usercenter-page .fy-usercenter-vip-copy strong,[data-theme="light"] .fy-usercenter-page .fy-usercenter-menu-label { color:#172033; }
[data-theme="light"] .fy-usercenter-page .fy-usercenter-subtitle,[data-theme="light"] .fy-usercenter-page .fy-usercenter-vip-copy span,[data-theme="light"] .fy-usercenter-page .fy-usercenter-stat span,[data-theme="light"] .fy-usercenter-page .fy-usercenter-shortcut { color:#475569; }
[data-theme="light"] .fy-usercenter-page .fy-usercenter-shortcut .fy-icon { color:#0e7490; background:#e6faff!important; border-color:#0891b2; }
.fy-usercenter-theme-toggle { width:100%; border:0; background:transparent; text-align:left; cursor:pointer; font:inherit; }

/* PC 首页插件入口改成一行横向滑动，避免卡片自动换成多行。 */
@media (min-width:769px) {
    .fy-page-index .fy-home-plugin-track { scrollbar-width:thin; }
}

/* 首页插件入口在不同设备统一采用每页四项的横向分页布局。 */
@media (max-width:768px) {
    /* 首页上方插件入口恢复为四项一屏，左右滑动查看下一组。 */
    .fy-page-index .fy-home-plugin-track { padding:0 0 7px; }
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry { scroll-snap-align:none; }
    /* “全部”筛选栏下的最新数据始终一条一行。 */
    .fy-page-index .fy-stream { display:grid!important; grid-template-columns:minmax(0,1fr)!important; width:100%; }
}

@media (min-width:769px) {
    .fy-page-index .fy-stream { grid-template-columns:minmax(0,1fr); }
}

/* 首页插件模块：PC 每页一排四项；手机每页两排、每排四项，整页横向触屏滑动。 */
.fy-page-index .fy-home-plugin-track-mobile,
.fy-page-index .fy-home-plugin-dots-mobile { display:none; }
@media (max-width:768px) {
    .fy-page-index .fy-home-plugin-track-desktop,
    .fy-page-index .fy-home-plugin-dots-desktop { display:none; }
    .fy-page-index .fy-home-plugin-track-mobile { display:flex; }
    .fy-page-index .fy-home-plugin-dots-mobile { display:flex; }
    .fy-page-index .fy-home-plugin-track-mobile .fy-home-plugin-page {
        grid-template-columns:repeat(4,minmax(0,1fr));
        grid-template-rows:repeat(2,minmax(0,1fr));
        align-content:stretch;
        gap:8px;
    }
    .fy-page-index .fy-home-plugin-track-mobile .fy-home-plugin-entry {
        min-height:92px;
        height:auto;
    }
    /* 允许页面上下滚动；JS 仅在判定为横向手势后接管左右翻页。 */
    .fy-page-index .fy-home-plugin-track[data-drag-scroll="1"] {
        touch-action:pan-x pan-y;
    }
}

/* 首页插件入口最终主题与尺寸覆盖：确保首次进入、SPA 替换后均跟随 html[data-theme]。 */
.fy-page-index .fy-home-plugin-grid { width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
.fy-page-index .fy-home-plugin-track { width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
.fy-page-index .fy-home-plugin-page { box-sizing:border-box; min-width:100%; max-width:100%; align-items:stretch; }
.fy-page-index .fy-home-plugin-page .fy-home-plugin-entry { min-width:0; max-width:100%; min-height:170px; box-sizing:border-box; }
html[data-theme="dark"] .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry {
    color:#e6fbff;
    background:linear-gradient(145deg,#071018,#102b3c 58%,#17233d);
    border-color:rgba(57,231,245,.48);
}
html[data-theme="dark"] .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry h3 { color:#f2fbff; }
html[data-theme="dark"] .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry p { color:#a9c6d1; }
html:not([data-theme="dark"]) .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry {
    color:#172033;
    background:linear-gradient(145deg,#ffffff,#e9f8fc 58%,#dff1f7);
    border-color:#0891b2;
    box-shadow:0 8px 20px rgba(8,145,178,.12);
}
html:not([data-theme="dark"]) .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry h3 { color:#172033; text-shadow:none; }
html:not([data-theme="dark"]) .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry p { color:#365466; }
html:not([data-theme="dark"]) .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry .fy-entry-more { color:#0e7490; }
html:not([data-theme="dark"]) .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry .fy-entry-badge { color:#8a5b00; background:#fff7d6; border-color:#eab308; }
@media (max-width:768px) {
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry { min-height:92px; }
    .fy-page-index .fy-home-plugin-page .fy-entry-badge,
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry .fy-entry-badge { display:none !important; }
}

/* 首页手机版板块入口单列覆盖已取消，保留上方四项快捷入口。 */
.fy-bbs-tag-card {
    border-radius:3px;
    border:1px solid color-mix(in srgb, #f7e479 38%, var(--fy-border));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--fy-bg-card) 93%, #071018), var(--fy-bg-card)),
        repeating-linear-gradient(0deg, transparent 0 4px, rgba(57,231,245,.025) 4px 5px);
    box-shadow:inset 3px 0 0 color-mix(in srgb, #f7e479 75%, transparent), 0 9px 24px rgba(0,0,0,.16);
}
.fy-bbs-tag-card::before {
    background:
        linear-gradient(90deg, color-mix(in srgb, #f7e479 10%, transparent), transparent 55%),
        repeating-linear-gradient(0deg, transparent 0 5px, rgba(57,231,245,.045) 5px 6px);
    opacity:.6;
}
.fy-bbs-tag-corner { border-color:#f7e479; border-radius:0; opacity:.75; }
.fy-bbs-tag-title {
    border-bottom-color:color-mix(in srgb, #39e7f5 38%, var(--fy-border));
    color:var(--fy-text-primary);
    letter-spacing:.07em;
}
.fy-bbs-tag-hash,
.fy-bbs-tag-count-num { color:#f7e479; text-shadow:0 0 10px rgba(247,228,121,.28); }
.fy-bbs-tag-count-label { color:#39e7f5; }
.fy-bbs-tag-stat { border-bottom-color:color-mix(in srgb, #39e7f5 28%, var(--fy-border)); }
.fy-bbs-tag-latest-title:hover { color:#39e7f5; }
.fy-bbs-tag-btn { border-radius:2px; }
.fy-bbs-follow-btn { border-color:#39e7f5; color:#39e7f5; }
.fy-bbs-follow-btn:hover,
.fy-bbs-follow-btn.fy-followed { background:#39e7f5; border-color:#39e7f5; color:#071018; }
.fy-bbs-tag-btn-solid:hover { background:rgba(247,228,121,.10); }
.fy-bbs-tag-card:hover {
    border-color:#f7e479;
    box-shadow:inset 3px 0 0 #f7e479, 0 12px 28px rgba(0,0,0,.2), 0 0 17px rgba(247,228,121,.16);
}
.fy-bbs-tag-card.fy-active {
    border-color:#39e7f5;
    box-shadow:inset 3px 0 0 #39e7f5, 0 0 0 1px rgba(57,231,245,.55), 0 0 16px rgba(57,231,245,.14);
}

.fy-bbs-cat-detail { position: relative; }
.fy-bbs-cat-detail .fy-plugin-hero-menu { display: none; top: 10px; right: 10px; }
@media (max-width: 767px) {
    .fy-bbs-cat-detail .fy-plugin-hero-menu { display: flex; }
}
.fy-bbs-cat-detail .fy-bbs-back-btn {
    border-radius:2px;
    border-color:color-mix(in srgb, #39e7f5 34%, var(--fy-border));
    color:#39e7f5;
    background:linear-gradient(90deg, rgba(57,231,245,.08), transparent);
}
.fy-bbs-cat-detail .fy-bbs-back-btn:hover { border-color:#f7e479; color:#f7e479; }
.fy-bbs-cat-info {
    position:relative;
    overflow:hidden;
    border-radius:3px;
    border-color:color-mix(in srgb, #f7e479 35%, var(--fy-border));
    background:linear-gradient(120deg, color-mix(in srgb, var(--fy-bg-card) 92%, #071018), var(--fy-bg-card));
    box-shadow:inset 3px 0 0 rgba(247,228,121,.72), 0 10px 24px rgba(0,0,0,.14);
}
.fy-bbs-cat-info::after {
    content:"";
    position:absolute;
    right:0;
    bottom:0;
    width:58px;
    height:58px;
    border-right:2px solid rgba(57,231,245,.65);
    border-bottom:2px solid rgba(57,231,245,.65);
    pointer-events:none;
}
.fy-bbs-feed-head { margin-top:18px; }
.fy-bbs-feed-title { color:#f7e479; letter-spacing:.06em; text-shadow:0 0 9px rgba(247,228,121,.24); }
.fy-bbs-feed-tabs { gap:3px; }
.fy-bbs-feed-tab {
    border:1px solid transparent;
    border-radius:2px;
    color:var(--fy-text-secondary);
}
.fy-bbs-feed-tab:hover { border-color:rgba(57,231,245,.45); background:rgba(57,231,245,.08); color:#39e7f5; }
.fy-bbs-feed-tab.fy-active { border-color:#f7e479; background:rgba(247,228,121,.13); color:#f7e479; box-shadow:0 0 10px rgba(247,228,121,.10); }
.fy-bbs-section-tags { gap:6px; }
.fy-bbs-section-tags-label { color:#39e7f5; letter-spacing:.04em; }
.fy-bbs-section-tag { border-radius:2px; border-color:rgba(57,231,245,.34); background:rgba(57,231,245,.05); color:var(--fy-text-secondary); }
.fy-bbs-section-tag:hover,
.fy-bbs-section-tag.fy-active { border-color:#f7e479; background:rgba(247,228,121,.12); color:#f7e479; }
.fy-bbs-empty-follow {
    border-radius:3px;
    border-color:rgba(57,231,245,.34);
    background:linear-gradient(135deg, color-mix(in srgb, var(--fy-bg-card) 93%, #071018), var(--fy-bg-card));
    box-shadow:inset 3px 0 0 rgba(57,231,245,.72), 0 8px 22px rgba(0,0,0,.13);
}
.fy-bbs-empty-follow .fy-icon { color:#39e7f5 !important; }
.fy-load-more .fy-btn { border-radius:2px !important; }
.fy-load-more .fy-btn[style*="background:var(--fy-active)"] {
    background:rgba(247,228,121,.14) !important;
    border:1px solid #f7e479 !important;
    color:#f7e479 !important;
}
.fy-load-more .fy-btn:hover { border-color:#39e7f5 !important; color:#39e7f5 !important; }

[data-theme="light"] .fy-bbs-tag-card {
    border-color:rgba(217,119,6,.34);
    background:linear-gradient(135deg, #fffdf3, var(--fy-bg-card));
    box-shadow:inset 3px 0 0 rgba(217,119,6,.72), 0 8px 20px rgba(84,67,30,.10);
}

/* 发布页与编辑页统一赛博朋克 2077 表单视觉，使用更宽的正常内容区减少两侧空白。 */
.fy-publish-page,
.fy-admin-edit-card {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}
.fy-publish-page-card,
.fy-admin-edit-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(57,231,245,.36);
    border-radius: 4px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--fy-bg-card) 94%, #071018), var(--fy-bg-card)),
        repeating-linear-gradient(0deg, transparent 0 5px, rgba(57,231,245,.028) 5px 6px);
    box-shadow: inset 3px 0 0 rgba(247,228,121,.8), 0 12px 28px rgba(0,0,0,.16);
}
.fy-publish-page-card::after,
.fy-admin-edit-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 42px;
    height: 42px;
    border-right: 2px solid rgba(57,231,245,.62);
    border-bottom: 2px solid rgba(57,231,245,.62);
    pointer-events: none;
}
.fy-publish-page-card .fy-publish-page-head,
.fy-admin-edit-card .fy-admin-edit-heading {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(57,231,245,.28);
    background: linear-gradient(90deg, rgba(247,228,121,.13), rgba(57,231,245,.06) 58%, transparent);
}
.fy-publish-page-card .fy-publish-page-title,
.fy-admin-edit-card .fy-admin-edit-heading h1 {
    color: #f7e479;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .08em;
    text-shadow: 0 0 10px rgba(247,228,121,.22);
}
.fy-publish-page-card .fy-publish-board-label,
.fy-admin-edit-card label,
.fy-publish-page-card .fy-publish-tags-label {
    color: #39e7f5;
    letter-spacing: .03em;
}
.fy-publish-page-card .fy-input,
.fy-admin-edit-card .fy-input {
    border: 1px solid rgba(57,231,245,.34);
    border-radius: 3px;
    background: rgba(7,16,24,.72);
    color: var(--fy-text-primary);
    box-shadow: inset 0 0 0 1px rgba(247,228,121,.04);
}
.fy-publish-page-card .fy-input:focus,
.fy-admin-edit-card .fy-input:focus {
    border-color: #f7e479;
    outline: none;
    box-shadow: 0 0 0 2px rgba(247,228,121,.14), 0 0 14px rgba(57,231,245,.12);
}
.fy-publish-page-card .fy-publish-form > label,
.fy-admin-edit-card .fy-admin-edit-form > label,
.fy-admin-edit-card .fy-edit-grid > label {
    border-color: rgba(57,231,245,.22);
    border-radius: 3px;
    background: rgba(7,16,24,.38);
}
.fy-publish-page-card .fy-publish-submit,
.fy-admin-edit-card .fy-admin-edit-actions .fy-btn-primary {
    border: 1px solid #f7e479;
    border-radius: 2px;
    color: #071018;
    background: #f7e479;
    box-shadow: 4px 4px 0 rgba(57,231,245,.38);
}
.fy-publish-page-card .fy-publish-submit:hover,
.fy-admin-edit-card .fy-admin-edit-actions .fy-btn-primary:hover {
    color: #071018;
    background: #fff09a;
    transform: translate(-1px,-1px);
}
.fy-admin-edit-card .fy-admin-edit-heading { padding: 20px 24px; }
.fy-admin-edit-card .fy-admin-edit-heading p { color: var(--fy-text-secondary); }
.fy-admin-edit-card .fy-admin-edit-form { padding: 20px 24px 24px; }
.fy-admin-edit-card .fy-edit-grid { gap: 12px; }

/* 浅色模式表单：提高文字/背景对比度，同时保留黄青霓虹边框。 */
[data-theme="light"] .fy-publish-page-card,
[data-theme="light"] .fy-admin-edit-card {
    border-color: rgba(8,145,178,.42);
    background:
        linear-gradient(135deg, #ffffff 0%, #f7fbfc 62%, #fffdf3 100%),
        repeating-linear-gradient(0deg, transparent 0 5px, rgba(8,145,178,.035) 5px 6px);
    box-shadow: inset 3px 0 0 #d97706, 0 12px 28px rgba(37,53,84,.12);
}
[data-theme="light"] .fy-publish-page-card .fy-publish-page-head,
[data-theme="light"] .fy-admin-edit-card .fy-admin-edit-heading {
    border-bottom-color: rgba(8,145,178,.28);
    background: linear-gradient(90deg, rgba(217,119,6,.13), rgba(8,145,178,.09) 58%, transparent);
}
[data-theme="light"] .fy-publish-page-card .fy-publish-page-title,
[data-theme="light"] .fy-admin-edit-card .fy-admin-edit-heading h1 {
    color: #92400e;
    text-shadow: none;
}
[data-theme="light"] .fy-publish-page-card .fy-publish-board-label,
[data-theme="light"] .fy-admin-edit-card label,
[data-theme="light"] .fy-publish-page-card .fy-publish-tags-label {
    color: #0e7490;
}
[data-theme="light"] .fy-publish-page-card .fy-input,
[data-theme="light"] .fy-admin-edit-card .fy-input {
    border-color: rgba(14,116,144,.46);
    background: #ffffff;
    color: #172033;
    box-shadow: inset 0 0 0 1px rgba(217,119,6,.08);
}
[data-theme="light"] .fy-publish-page-card .fy-input::placeholder,
[data-theme="light"] .fy-admin-edit-card .fy-input::placeholder {
    color: #64748b;
    opacity: 1;
}
[data-theme="light"] .fy-publish-page-card .fy-input:focus,
[data-theme="light"] .fy-admin-edit-card .fy-input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 2px rgba(217,119,6,.16), 0 0 13px rgba(8,145,178,.12);
}
[data-theme="light"] .fy-publish-page-card .fy-publish-form > label,
[data-theme="light"] .fy-admin-edit-card .fy-admin-edit-form > label,
[data-theme="light"] .fy-admin-edit-card .fy-edit-grid > label {
    border-color: rgba(14,116,144,.24);
    background: rgba(255,255,255,.82);
}
[data-theme="light"] .fy-publish-page-card .fy-publish-board-select {
    color: #172033;
    background-color: #ffffff;
}
[data-theme="light"] .fy-publish-page-card .fy-tag-option {
    border-color: rgba(14,116,144,.35);
    color: #0e7490;
    background: #f0f9fa;
}
[data-theme="light"] .fy-publish-page-card .fy-tag-option:hover,
[data-theme="light"] .fy-publish-page-card .fy-tag-option.is-selected,
[data-theme="light"] .fy-admin-edit-card .fy-tag-option:hover,
[data-theme="light"] .fy-admin-edit-card .fy-tag-option.is-selected {
    border-color: #d97706;
    color: #92400e;
    background: #fff7d6;
}
[data-theme="light"] .fy-publish-page-card .fy-publish-submit,
[data-theme="light"] .fy-admin-edit-card .fy-admin-edit-actions .fy-btn-primary {
    border-color: #b45309;
    color: #172033;
    background: #f7d95a;
    box-shadow: 4px 4px 0 rgba(8,145,178,.32);
}
[data-theme="light"] .fy-publish-page-card .fy-publish-submit:hover,
[data-theme="light"] .fy-admin-edit-card .fy-admin-edit-actions .fy-btn-primary:hover {
    color: #172033;
    background: #ffe78a;
}

@media (max-width: 768px) {
    .fy-publish-page, .fy-admin-edit-card { max-width: 100%; }
    .fy-publish-page-card .fy-publish-page-head { padding: 15px 16px; }
    .fy-publish-page-card .fy-publish-form,
    .fy-admin-edit-card .fy-admin-edit-form { padding-left: 14px; padding-right: 14px; }
    .fy-publish-page-card > .fy-publish-board-label,
    .fy-publish-page-card > .fy-publish-board-select,
    .fy-publish-page-card > .fy-publish-error { margin-left: 14px; margin-right: 14px; }
    .fy-publish-page-card > .fy-publish-board-select { width: calc(100% - 28px); }
    .fy-admin-edit-card .fy-admin-edit-heading { padding: 16px 14px; }
    .fy-admin-edit-card .fy-admin-edit-form > label,
    .fy-admin-edit-card .fy-edit-grid > label { padding: 9px 10px; }
}
[data-theme="light"] .fy-bbs-tabs-actions .fy-publish-action {
    --fy-publish-bg:#d97706;
    --fy-publish-text:#fff;
    --fy-publish-shadow:rgba(180,83,9,.28);
}
[data-theme="light"] .fy-bbs-tag-title { border-bottom-color:rgba(8,145,178,.24); }
[data-theme="light"] .fy-bbs-tag-hash,
[data-theme="light"] .fy-bbs-tag-count-num,
[data-theme="light"] .fy-bbs-feed-title,
[data-theme="light"] .fy-bbs-tab.fy-active { color:#b45309; text-shadow:none; }
[data-theme="light"] .fy-bbs-tag-count-label,
[data-theme="light"] .fy-bbs-section-tags-label { color:#0e7490; }
[data-theme="light"] .fy-bbs-tab.fy-active::after { background:linear-gradient(90deg,#d97706,#0891b2); box-shadow:none; }
[data-theme="light"] .fy-bbs-tag-card:hover { border-color:#d97706; box-shadow:inset 3px 0 0 #d97706, 0 10px 24px rgba(84,67,30,.14); }

@media (max-width:768px) {
    .fy-bbs-page .fy-main { background-size:24px 24px, 24px 24px, auto, auto; }
    .fy-bbs-page .fy-main::before { top:3px; right:10px; font-size:8px; opacity:.7; }
    .fy-bbs-tabs:not(.fy-bbs-tabs-plugin) { gap:8px; min-height:36px; align-items:center; padding:0 4px; }
    .fy-bbs-tab { min-height:0; padding:6px 8px 5px; font-size:13px; line-height:1.25; }
    .fy-bbs-tabs:not(.fy-bbs-tabs-plugin) .fy-bbs-tabs-actions { padding-bottom:0; }
    .fy-bbs-feed-head { margin-top:12px; }
    .fy-bbs-feed-title { font-size:14px; }
    .fy-bbs-feed-tab { padding:5px 8px; font-size:11px; }
    .fy-bbs-tag-card { box-shadow:inset 2px 0 0 rgba(247,228,121,.75), 0 5px 14px rgba(0,0,0,.10); }
    .fy-bbs-tag-card:hover { box-shadow:inset 2px 0 0 #f7e479, 0 5px 14px rgba(0,0,0,.10); }
    .fy-bbs-cat-info { box-shadow:inset 2px 0 0 rgba(247,228,121,.72), 0 6px 16px rgba(0,0,0,.10); }
    .fy-bbs-cat-info::after { width:32px; height:32px; border-width:1px; }
}

/* ===== 左右侧栏统一 · Cyberpunk 2077 HUD =====
   只覆盖视觉层，不改变侧栏收缩、展开和主内容宽度计算。 */
.fy-sidebar,
.fy-rightbar {
    background:
        linear-gradient(145deg, rgba(247,228,121,.055), transparent 34%),
        repeating-linear-gradient(0deg, rgba(57,231,245,.028) 0 1px, transparent 1px 5px),
        #071018;
    border-color: rgba(57,231,245,.34);
    box-shadow: inset 0 0 24px rgba(57,231,245,.035), 0 0 26px rgba(0,0,0,.24);
}

.fy-sidebar::after,
.fy-rightbar::after {
    content: "";
    position: absolute;
    top: 0;
    width: 2px;
    height: 96px;
    pointer-events: none;
    background: linear-gradient(180deg, #f7e479, transparent);
    box-shadow: 0 0 12px rgba(247,228,121,.65);
}
.fy-sidebar::after { right: 0; }
.fy-rightbar::after { left: 0; }

.fy-logo {
    position: relative;
    border-bottom-color: rgba(57,231,245,.28);
    background: linear-gradient(90deg, rgba(247,228,121,.10), rgba(57,231,245,.04) 68%, transparent);
}
.fy-logo::after {
    content: "// NIGHT CITY NETWORK";
    position: absolute;
    right: 14px;
    bottom: 5px;
    color: rgba(57,231,245,.45);
    font: 700 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .08em;
    pointer-events: none;
}
.fy-logo-text {
    color: #f7e479;
    text-shadow: 0 0 9px rgba(247,228,121,.35);
}
.fy-sidebar.fy-collapsed .fy-logo::after { display: none; }
.fy-sidebar-group-title,
.fy-rightbar .fy-section-title {
    color: #39e7f5;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.fy-nav-item {
    border: 1px solid transparent;
    border-radius: 2px;
    color: #d7e7eb;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.fy-nav-item:hover {
    color: #f7e479;
    background: rgba(57,231,245,.08);
    border-color: rgba(57,231,245,.28);
    transform: translateX(2px);
}
.fy-nav-item.fy-active {
    color: #071018;
    background: #f7e479;
    border-color: #f7e479;
    box-shadow: 3px 3px 0 rgba(57,231,245,.42), 0 0 14px rgba(247,228,121,.18);
}
.fy-nav-item.fy-active .fy-icon { color: #071018; }
.fy-sidebar-nav-glider { opacity: .38; }

.fy-user-area {
    border-top-color: rgba(57,231,245,.28);
    border-bottom-color: rgba(57,231,245,.28);
    background: linear-gradient(90deg, rgba(57,231,245,.045), transparent);
}
.fy-user-profile,
.fy-tool-btn,
.fy-toggle-btn {
    border-radius: 2px;
}
.fy-user-profile:hover {
    background: rgba(57,231,245,.08);
    box-shadow: inset 2px 0 0 #f7e479;
}
.fy-avatar,
.fy-right-avatar {
    border: 1px solid #39e7f5;
    border-radius: 3px;
    background: linear-gradient(135deg, #f7e479, #39e7f5);
    color: #071018;
    box-shadow: 0 0 14px rgba(57,231,245,.26);
}
.fy-tool-btn,
.fy-toggle-btn {
    background: rgba(7,16,24,.72);
    border-color: rgba(57,231,245,.28);
    color: #d7e7eb;
}
.fy-tool-btn:hover,
.fy-toggle-btn:hover,
.fy-toggle-btn:focus,
.fy-toggle-btn:focus-visible {
    background: rgba(57,231,245,.14);
    border-color: #f7e479;
    color: #f7e479;
    box-shadow: 0 0 12px rgba(57,231,245,.16);
}
.fy-tool-btn .fy-label,
.fy-user-sub,
.fy-right-sign,
.fy-right-stat span,
.fy-stat-grid .fy-stat-label,
.fy-rank-days {
    color: #8caeb7;
}

.fy-right-user {
    border-bottom-color: rgba(57,231,245,.28);
    background: linear-gradient(180deg, rgba(247,228,121,.07), transparent 78%);
}
.fy-right-name { color: #f7e479; text-shadow: 0 0 8px rgba(247,228,121,.2); }
.fy-right-action,
.fy-rightbar-toggle,
.fy-back-top,
.fy-right-tool {
    border-radius: 2px;
    border-color: rgba(57,231,245,.32);
    background: rgba(7,16,24,.72);
    color: #c8e4e9;
}
.fy-right-action:hover,
.fy-rightbar-toggle:hover,
.fy-rightbar-toggle:focus,
.fy-rightbar-toggle:focus-visible,
.fy-back-top:hover,
.fy-right-tool:hover {
    border-color: #f7e479;
    background: rgba(57,231,245,.13);
    color: #f7e479;
    box-shadow: 0 0 12px rgba(57,231,245,.16);
}
.fy-rightbar .fy-card,
.fy-rightbar .fy-plugin-right-card {
    position: relative;
    border-radius: 2px;
    border-color: rgba(57,231,245,.28);
    background:
        linear-gradient(135deg, rgba(57,231,245,.055), transparent 56%),
        rgba(7,16,24,.74);
    box-shadow: inset 2px 0 0 rgba(247,228,121,.72), 0 8px 20px rgba(0,0,0,.16);
}
.fy-rightbar .fy-card:hover { border-color: #f7e479; }
.fy-rightbar .fy-rank-num {
    border-radius: 2px;
    border-color: rgba(57,231,245,.35);
    background: rgba(57,231,245,.10);
    color: #bfeef3;
}
.fy-rightbar .fy-rank-num.gold { background: #f7e479; border-color: #f7e479; color: #071018; }
.fy-rightbar .fy-rank-num.silver { background: #7ca6ad; border-color: #7ca6ad; color: #071018; }
.fy-rightbar .fy-rank-num.bronze { background: #d97706; border-color: #d97706; color: #071018; }
.fy-rightbar .fy-rank-item:hover { background: rgba(57,231,245,.08); }
.fy-rightbar .fy-rank-self {
    border-left: 2px solid #f7e479;
    border-radius: 2px;
    background: rgba(247,228,121,.08);
}
.fy-rightbar .fy-plugin-right-item:hover,
.fy-rightbar a:hover { color: #39e7f5; }
.fy-rightbar-expand {
    border-radius: 2px;
    border-color: #39e7f5;
    background: #071018;
    color: #f7e479;
    box-shadow: -3px 3px 0 rgba(247,228,121,.45), 0 0 16px rgba(57,231,245,.24);
}
.fy-rightbar-expand:hover,
.fy-rightbar-expand:focus,
.fy-rightbar-expand:focus-visible {
    background: #f7e479;
    border-color: #f7e479;
    color: #071018;
}

/* 浅色模式：保留黄/青 HUD 语言，同时保证文字、输入和卡片清晰。 */
[data-theme="light"] .fy-sidebar,
[data-theme="light"] .fy-rightbar {
    --fy-nav-glider: #0891b2;
    --fy-nav-glider-glow: rgba(8,145,178,.34);
    background:
        linear-gradient(145deg, rgba(247,217,90,.16), transparent 34%),
        repeating-linear-gradient(0deg, rgba(8,145,178,.035) 0 1px, transparent 1px 5px),
        #f8fbfc;
    border-color: rgba(8,145,178,.36);
    box-shadow: inset 0 0 22px rgba(8,145,178,.045), 0 8px 24px rgba(37,53,84,.10);
}
[data-theme="light"] .fy-sidebar::after,
[data-theme="light"] .fy-rightbar::after {
    background: linear-gradient(180deg, #d97706, transparent);
    box-shadow: 0 0 10px rgba(217,119,6,.35);
}
[data-theme="light"] .fy-logo {
    border-bottom-color: rgba(8,145,178,.28);
    background: linear-gradient(90deg, rgba(247,217,90,.20), rgba(8,145,178,.06) 68%, transparent);
}
[data-theme="light"] .fy-logo::after { color: rgba(14,116,144,.52); }
[data-theme="light"] .fy-logo-text,
[data-theme="light"] .fy-right-name { color: #92400e; text-shadow: none; }
[data-theme="light"] .fy-sidebar-group-title,
[data-theme="light"] .fy-rightbar .fy-section-title { color: #0e7490; }
[data-theme="light"] .fy-nav-item { color: #334155; }
[data-theme="light"] .fy-nav-item:hover {
    color: #0e7490;
    background: #ecfeff;
    border-color: rgba(8,145,178,.32);
}
[data-theme="light"] .fy-nav-item.fy-active {
    color: #172033;
    background: #f7d95a;
    border-color: #b45309;
    box-shadow: 3px 3px 0 rgba(8,145,178,.28);
}
[data-theme="light"] .fy-nav-item.fy-active .fy-icon { color: #172033; }
[data-theme="light"] .fy-user-area,
[data-theme="light"] .fy-right-user {
    border-color: rgba(8,145,178,.26);
    background: linear-gradient(180deg, rgba(247,217,90,.12), transparent 80%);
}
[data-theme="light"] .fy-avatar,
[data-theme="light"] .fy-right-avatar {
    border-color: #0891b2;
    background: linear-gradient(135deg, #f7d95a, #67e8f9);
    color: #172033;
    box-shadow: 0 0 12px rgba(8,145,178,.18);
}
[data-theme="light"] .fy-tool-btn,
[data-theme="light"] .fy-toggle-btn,
[data-theme="light"] .fy-right-action,
[data-theme="light"] .fy-rightbar-toggle,
[data-theme="light"] .fy-back-top,
[data-theme="light"] .fy-right-tool {
    background: rgba(255,255,255,.88);
    border-color: rgba(14,116,144,.30);
    color: #334155;
}
[data-theme="light"] .fy-tool-btn:hover,
[data-theme="light"] .fy-toggle-btn:hover,
[data-theme="light"] .fy-toggle-btn:focus,
[data-theme="light"] .fy-toggle-btn:focus-visible,
[data-theme="light"] .fy-right-action:hover,
[data-theme="light"] .fy-rightbar-toggle:hover,
[data-theme="light"] .fy-rightbar-toggle:focus,
[data-theme="light"] .fy-rightbar-toggle:focus-visible,
[data-theme="light"] .fy-back-top:hover,
[data-theme="light"] .fy-right-tool:hover {
    background: #ecfeff;
    border-color: #d97706;
    color: #0e7490;
    box-shadow: 0 0 10px rgba(8,145,178,.12);
}
[data-theme="light"] .fy-rightbar .fy-card,
[data-theme="light"] .fy-rightbar .fy-plugin-right-card {
    border-color: rgba(8,145,178,.30);
    background: linear-gradient(135deg, rgba(8,145,178,.055), rgba(255,255,255,.96) 62%);
    box-shadow: inset 2px 0 0 rgba(217,119,6,.78), 0 8px 20px rgba(37,53,84,.09);
}
[data-theme="light"] .fy-rightbar .fy-card:hover { border-color: #d97706; }
[data-theme="light"] .fy-rightbar .fy-rank-num {
    border-color: rgba(14,116,144,.35);
    background: #ecfeff;
    color: #0e7490;
}
[data-theme="light"] .fy-rightbar .fy-rank-self { background: #fff7d6; border-left-color: #d97706; }
[data-theme="light"] .fy-rightbar-expand {
    border-color: #0891b2;
    background: #ffffff;
    color: #b45309;
    box-shadow: -3px 3px 0 rgba(217,119,6,.35), 0 0 14px rgba(8,145,178,.15);
}
[data-theme="light"] .fy-rightbar-expand:hover,
[data-theme="light"] .fy-rightbar-expand:focus,
[data-theme="light"] .fy-rightbar-expand:focus-visible {
    background: #f7d95a;
    border-color: #b45309;
    color: #172033;
}

/* ===== 板块卡片信息层级与关注快捷键 ===== */
.fy-bbs-tag-card {
    min-height: 190px;
    padding: 16px 16px 14px;
}
.fy-bbs-tag-content {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr;
    align-items: center;
    gap: 7px 10px;
}
.fy-bbs-tag-avatar {
    position: relative;
    top: auto;
    right: auto;
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
    border-radius: 3px;
}
.fy-bbs-tag-title {
    grid-column: 2 / 4;
    grid-row: 1;
    width: auto;
    min-width: 0;
    padding: 4px 34px 7px 0;
    margin: 0;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fy-bbs-tag-icon {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    height: auto;
    margin: 0;
    align-items: flex-start;
    filter: none;
}
.fy-bbs-tag-count-num { font-size: 25px; }
.fy-bbs-tag-count-label { margin-top: 1px; font-size: 9px; }
.fy-bbs-tag-details {
    grid-column: 1 / 4;
    grid-row: 3;
    align-self: end;
    margin-top: 8px;
    text-align: left;
}
.fy-bbs-tag-stat { padding: 8px 0 6px; }
.fy-bbs-tag-stat span:first-child { font-size: 10px; letter-spacing: .04em; }
.fy-bbs-tag-stat .fy-bbs-tag-latest-title { max-width: 72%; }
.fy-bbs-tag-cloud {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-height: 24px;
    padding-top: 7px;
    overflow: hidden;
}
.fy-bbs-tag-chip {
    display: inline-flex;
    align-items: center;
    max-width: 31%;
    min-width: 0;
    padding: 3px 7px;
    border: 1px solid rgba(57,231,245,.28);
    border-radius: 2px;
    background: rgba(57,231,245,.06);
    color: #8fdce5;
    font-size: 10px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.fy-bbs-tag-chip:hover {
    border-color: #f7e479;
    background: rgba(247,228,121,.12);
    color: #f7e479;
    transform: translateY(-1px);
}
.fy-bbs-tag-cloud-empty {
    color: rgba(140,174,183,.72);
    font-size: 10px;
    letter-spacing: .06em;
}
.fy-bbs-tag-follow-btn {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 5;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #39e7f5;
    border-radius: 2px;
    background: rgba(7,16,24,.72);
    color: #39e7f5;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 2px 2px 0 rgba(247,228,121,.30);
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
}
.fy-bbs-tag-follow-btn:hover,
.fy-bbs-tag-follow-btn:focus-visible {
    border-color: #f7e479;
    background: rgba(57,231,245,.16);
    color: #f7e479;
    transform: translateY(-1px);
    outline: none;
}
.fy-bbs-tag-follow-btn.fy-followed {
    border-color: #f7e479;
    background: #f7e479;
    color: #071018;
}
.fy-bbs-tag-follow-btn.fy-followed:hover,
.fy-bbs-tag-follow-btn.fy-followed:focus-visible {
    border-color: #39e7f5;
    background: #39e7f5;
    color: #071018;
}
.fy-bbs-tag-follow-btn.fy-follow-pending {
    opacity: .55;
    cursor: wait;
}
.fy-bbs-follow-glyph { display: block; transform: translateY(-1px); }
.fy-bbs-tag-follow-btn.fy-tooltip-trigger > .fy-tooltip {
    top: 32px;
    right: -4px;
    left: auto;
    transform: none;
}
.fy-bbs-tag-follow-btn.fy-tooltip-trigger:hover > .fy-tooltip,
.fy-bbs-tag-follow-btn.fy-tooltip-trigger:focus > .fy-tooltip,
.fy-bbs-tag-follow-btn.fy-tooltip-trigger:focus-visible > .fy-tooltip {
    top: 32px;
}
.fy-bbs-tag-follow-btn.fy-tooltip-trigger > .fy-tooltip::before {
    top: -5px;
    right: 8px;
    bottom: auto;
    left: auto;
    background: #ff2525;
}

[data-theme="light"] .fy-bbs-tag-follow-btn {
    border-color: #0891b2;
    background: rgba(255,255,255,.92);
    color: #0e7490;
    box-shadow: 2px 2px 0 rgba(217,119,6,.24);
}
[data-theme="light"] .fy-bbs-tag-follow-btn:hover,
[data-theme="light"] .fy-bbs-tag-follow-btn:focus-visible {
    border-color: #d97706;
    background: #ecfeff;
    color: #b45309;
}
[data-theme="light"] .fy-bbs-tag-follow-btn.fy-followed {
    border-color: #b45309;
    background: #f7d95a;
    color: #172033;
}
[data-theme="light"] .fy-bbs-tag-follow-btn.fy-followed:hover,
[data-theme="light"] .fy-bbs-tag-follow-btn.fy-followed:focus-visible {
    border-color: #0891b2;
    background: #67e8f9;
    color: #172033;
}
[data-theme="light"] .fy-bbs-tag-chip {
    border-color: rgba(8,145,178,.28);
    background: #ecfeff;
    color: #0e7490;
}
[data-theme="light"] .fy-bbs-tag-chip:hover {
    border-color: #d97706;
    background: #fff7d6;
    color: #b45309;
}
[data-theme="light"] .fy-bbs-tag-cloud-empty { color: #94a3b8; }

/* 首页 Hero 文字提高对比度：深色赛博背景使用纯白标题与浅白副标题。 */
.fy-page-index .fy-hero h1 { color:#ffffff; text-shadow:0 0 14px rgba(57,231,245,.36); }
.fy-page-index .fy-hero p { color:rgba(255,255,255,.86); }
.fy-page-index .fy-hero .fy-hero-kicker { color:rgba(255,255,255,.78); }
[data-theme="light"] .fy-page-index .fy-hero h1 { color:#172033; text-shadow:none; }
[data-theme="light"] .fy-page-index .fy-hero p { color:#365466; }
[data-theme="light"] .fy-page-index .fy-hero .fy-hero-kicker { color:#365466; }

@media (max-width: 600px) {
    .fy-bbs-tag-card { min-height: 176px; padding: 13px 13px 12px; }
    .fy-bbs-tag-content { grid-template-columns: 40px minmax(0,1fr); gap: 6px 9px; }
    .fy-bbs-tag-avatar { width: 40px; height: 40px; }
    .fy-bbs-tag-title { grid-column: 2; padding-right: 28px; font-size: 13px; }
    .fy-bbs-tag-icon { grid-column: 2; }
    .fy-bbs-tag-details { grid-column: 1 / 3; }
    .fy-bbs-tag-follow-btn { top: 10px; right: 10px; width: 26px; height: 26px; min-width: 26px; font-size: 18px; }
    .fy-bbs-tag-chip { max-width: 34%; padding: 3px 5px; font-size: 9px; }
}

/* 首页动态底部信息最终覆盖。 */
.fy-page-index .fy-post-foot { display:flex !important; align-items:center; justify-content:space-between; }
.fy-page-index .fy-post-foot-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:0; }
.fy-page-index .fy-post-foot-meta .fy-post-category,
.fy-page-index .fy-post-foot-meta .fy-post-pin { font-size:11px; line-height:1.4; }
.fy-page-index .fy-home-plugin-page .fy-home-plugin-entry .fy-entry-badge { display:inline-flex !important; top:12px; right:12px; left:auto; }
@media (max-width:768px) {
    .fy-page-index .fy-post-foot { display:flex !important; }
    .fy-page-index .fy-post-foot-meta { gap:4px; }
    .fy-page-index .fy-post-foot-meta .fy-post-time,
    .fy-page-index .fy-post-foot-meta .fy-post-category,
    .fy-page-index .fy-post-foot-meta .fy-post-pin { font-size:9px; }
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry .fy-entry-badge { top:8px; right:8px; padding:1px 5px; font-size:9px; }
}

/* 首页单图帖子：图片固定在最右侧，底部互动数据只占左侧文字区域。 */
.fy-page-index .fy-post-image-single .fy-post-main { grid-column:1; grid-row:1; }
.fy-page-index .fy-post-image-single .fy-post-media { grid-column:2; grid-row:1 / span 2; align-self:stretch; }
.fy-page-index .fy-post-image-single .fy-post-foot { grid-column:1; grid-row:2; align-self:end; min-width:0; }
.fy-page-index .fy-post-image-single .fy-post-foot-meta { min-width:0; }
.fy-page-index .fy-post-image-single .fy-post-foot .fy-post-stats { margin-left:auto; }
.fy-page-index .fy-post-foot-meta .fy-post-category,
.fy-page-index .fy-post-foot-meta .fy-post-pin {
    min-height:0;
    padding:0;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}
.fy-page-index .fy-post-foot-meta .fy-post-category { color:var(--fy-category-color,#39e7f5) !important; }
.fy-page-index .fy-post-foot-meta .fy-post-pin { color:#f7e479 !important; }
.fy-page-index .fy-post-meta-sep { color:var(--fy-text-muted); font-size:10px; }

@media (max-width:768px) {
    .fy-page-index .fy-post-image-single { grid-template-columns:minmax(0,1fr) minmax(86px,30%); gap:9px; }
    .fy-page-index .fy-post-image-single .fy-post-media { grid-row:1 / span 2; }
    .fy-page-index .fy-post-image-single .fy-post-foot { grid-column:1; grid-row:2; }
}

/* 首页 Hero 与动态卡片最终覆盖：确保在所有主题和响应式规则之后生效。 */
.fy-page-index .fy-hero-inner h1 { color:#fff !important; text-shadow:0 0 14px rgba(57,231,245,.42) !important; }
.fy-page-index .fy-hero-inner p { color:rgba(255,255,255,.9) !important; }
.fy-page-index .fy-hero-inner .fy-hero-kicker { color:rgba(255,255,255,.82) !important; }
@media (max-width:768px) {
    .fy-page-index .fy-post-head { display:flex !important; align-items:center !important; }
    .fy-page-index .fy-post-meta-primary,.fy-page-index .fy-post-meta-secondary { flex:0 1 auto; min-width:0; }
    .fy-page-index .fy-post-meta-secondary { margin-left:auto; justify-content:flex-end; font-size:10px; }
    .fy-page-index .fy-post-meta-secondary .fy-post-author,.fy-page-index .fy-post-meta-secondary .fy-post-time { max-width:92px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .fy-page-index .fy-post-image-single { display:grid !important; grid-template-columns:minmax(0,1fr) minmax(86px,30%); gap:9px; }
    .fy-page-index .fy-post-image-single .fy-post-main { grid-column:1; grid-row:1; }
    .fy-page-index .fy-post-image-single .fy-post-media { grid-column:2; grid-row:1; margin:0; }
    .fy-page-index .fy-post-image-single .fy-post-media img { aspect-ratio:1 / 1; max-height:120px; }
}

/* 首页插件入口主题最终覆盖（必须位于文件末尾，避免旧移动端规则回写）。 */
.fy-page-index .fy-home-plugin-grid,
.fy-page-index .fy-home-plugin-track { width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
.fy-page-index .fy-home-plugin-page { width:100%; max-width:100%; min-width:100%; box-sizing:border-box; }
.fy-page-index .fy-home-plugin-page .fy-home-plugin-entry { min-width:0!important; max-width:100%; box-sizing:border-box; }
html[data-theme="dark"] .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry { background:linear-gradient(145deg,#071018,#102b3c 58%,#17233d); border-color:rgba(57,231,245,.48); color:#e6fbff; }
html[data-theme="dark"] .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry h3 { color:#f2fbff; }
html[data-theme="dark"] .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry p { color:#a9c6d1; }
html:not([data-theme="dark"]) .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry { background:linear-gradient(145deg,#ffffff,#e9f8fc 58%,#dff1f7); border-color:#0891b2; color:#172033; box-shadow:0 8px 20px rgba(8,145,178,.12); }
html:not([data-theme="dark"]) .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry h3 { color:#172033; text-shadow:none; }
html:not([data-theme="dark"]) .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry p { color:#365466; }
html:not([data-theme="dark"]) .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry .fy-entry-more { color:#0e7490; }

/* 板块卡片最终美化层：保留现有组件和功能，只调整信息层级、留白与主题色。 */
.fy-bbs-tag-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:26px; }
@media (max-width:1100px) and (min-width:601px) { .fy-bbs-tag-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .fy-bbs-tag-grid { grid-template-columns:1fr; gap:12px; } }
.fy-bbs-tag-card {
    --fy-card-accent:var(--fy-active,#6c5ce7);
    min-height:180px;
    padding:18px 18px 15px;
    border:1px solid color-mix(in srgb, var(--fy-card-accent) 38%, var(--fy-border));
    border-radius:14px;
    background:
        radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--fy-card-accent) 15%, transparent), transparent 34%),
        linear-gradient(145deg, color-mix(in srgb, var(--fy-bg-card) 94%, var(--fy-card-accent)), var(--fy-bg-card));
    box-shadow:0 8px 22px color-mix(in srgb, var(--fy-card-accent) 12%, transparent), inset 0 1px 0 rgba(255,255,255,.08);
}
.fy-bbs-tag-card::before { background:linear-gradient(135deg, color-mix(in srgb, var(--fy-card-accent) 12%, transparent), transparent 58%); opacity:.7; }
.fy-bbs-tag-corner { width:15px; height:15px; border-width:1px; border-color:color-mix(in srgb, var(--fy-card-accent) 70%, var(--fy-active)); opacity:.7; }
.fy-bbs-tag-corner.top-left { top:8px; left:8px; }
.fy-bbs-tag-corner.top-right { top:8px; right:8px; }
.fy-bbs-tag-corner.bottom-left { bottom:8px; left:8px; }
.fy-bbs-tag-corner.bottom-right { bottom:8px; right:8px; }
.fy-bbs-tag-content { display:grid; grid-template-columns:48px minmax(0,1fr) 34px; grid-template-rows:auto auto 1fr; gap:8px 12px; align-items:center; }
.fy-bbs-tag-avatar { grid-column:1; grid-row:1 / span 2; width:48px; height:48px; border-radius:12px; border:1px solid color-mix(in srgb, var(--fy-card-accent) 45%, transparent); background:color-mix(in srgb, var(--fy-card-accent) 13%, var(--fy-bg-primary)); }
.fy-bbs-tag-title {
    grid-column:2 / 4;
    padding:3px 0 8px;
    border-bottom:1px solid color-mix(in srgb, var(--fy-card-accent) 30%, var(--fy-border));
    font-size:16px;
    letter-spacing:.04em;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    overflow-wrap:anywhere;
    word-break:break-word;
}
.fy-bbs-tag-hash { color:var(--fy-card-accent)!important; }
.fy-bbs-tag-icon { grid-column:2; grid-row:2; align-items:flex-start; width:auto; height:auto; margin:0; }
.fy-bbs-tag-count-num { font-size:28px; color:var(--fy-card-accent); text-shadow:0 0 12px color-mix(in srgb, var(--fy-card-accent) 32%, transparent); }
.fy-bbs-tag-count-label { color:var(--fy-text-muted); letter-spacing:.08em; }
.fy-bbs-tag-details { grid-column:1 / 4; grid-row:3; margin-top:10px; text-align:left; }
.fy-bbs-tag-stat { padding:8px 0 7px; border-bottom:1px solid color-mix(in srgb, var(--fy-card-accent) 22%, var(--fy-border)); }
.fy-bbs-tag-stat span:first-child { color:var(--fy-text-muted); font-size:11px; }
.fy-bbs-tag-latest-title { max-width:68%; color:var(--fy-text-primary); font-weight:600; }
.fy-bbs-tag-cloud { gap:6px; min-height:25px; padding-top:8px; }
.fy-bbs-tag-chip { max-width:31%; padding:4px 8px; border-radius:999px; border-color:color-mix(in srgb, var(--fy-card-accent) 35%, var(--fy-border)); background:color-mix(in srgb, var(--fy-card-accent) 8%, transparent); color:var(--fy-text-secondary); }
.fy-bbs-follow-btn.fy-bbs-tag-follow-btn { position:relative; top:auto; right:auto; grid-column:3; grid-row:2; justify-self:end; align-self:center; width:30px; height:30px; border-radius:9px; border-color:color-mix(in srgb, var(--fy-card-accent) 55%, var(--fy-active)); color:var(--fy-card-accent); background:color-mix(in srgb, var(--fy-card-accent) 9%, transparent); font-size:18px; box-shadow:none; }
.fy-bbs-follow-btn.fy-bbs-tag-follow-btn:hover,
.fy-bbs-follow-btn.fy-bbs-tag-follow-btn.fy-followed { background:var(--fy-card-accent); border-color:var(--fy-card-accent); color:#fff; }
.fy-bbs-tag-card:hover { transform:translateY(-4px); border-color:var(--fy-card-accent); box-shadow:0 14px 28px color-mix(in srgb, var(--fy-card-accent) 18%, transparent), inset 0 1px 0 rgba(255,255,255,.12); }
.fy-bbs-tag-card.fy-active { border-color:var(--fy-card-accent); box-shadow:0 0 0 2px color-mix(in srgb, var(--fy-card-accent) 24%, transparent), 0 12px 26px color-mix(in srgb, var(--fy-card-accent) 18%, transparent); }
@media (max-width:900px) and (min-width:601px) { .fy-bbs-tag-card { min-height:174px; padding:16px; } .fy-bbs-tag-content { grid-template-columns:44px minmax(0,1fr) 30px; gap:7px 10px; } .fy-bbs-tag-avatar { width:44px; height:44px; } }
@media (max-width:600px) { .fy-bbs-tag-card { min-height:168px; border-radius:12px; } .fy-bbs-tag-content { grid-template-columns:40px minmax(0,1fr) 30px; gap:7px 9px; } .fy-bbs-tag-avatar { width:40px; height:40px; } .fy-bbs-tag-title { font-size:14px; } .fy-bbs-follow-btn.fy-bbs-tag-follow-btn { width:28px; height:28px; } }
@media (min-width:769px) {
    /* PC 中间栏通常只有 560~760px；两列比四列更易读，也避免卡片过窄过高。 */
    .fy-page-index .fy-home-plugin-page { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry {
        display:grid;
        grid-template-columns:44px minmax(0,1fr);
        grid-template-rows:auto auto auto;
        align-content:center;
        column-gap:14px;
        row-gap:5px;
        min-height:132px;
        padding:16px;
    }
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry .fy-entry-badge { display:none!important; }
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry .fy-entry-icon { grid-column:1; grid-row:1 / span 3; align-self:start; width:42px; height:42px; margin:0; }
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry h3,
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry p,
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry .fy-entry-more { grid-column:2; min-width:0; margin:0; }
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry h3 { font-size:17px; line-height:1.35; }
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry p { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-height:1.55; }
}
@media (max-width:768px) {
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry { min-height:92px; }
    .fy-page-index .fy-home-plugin-page .fy-entry-badge,
    .fy-page-index .fy-home-plugin-page .fy-home-plugin-entry .fy-entry-badge { display:none!important; }
}

/* 手机底部导航：末尾强制覆盖，确保赛博朋克主题优先级最高。 */
@media (max-width:768px) {
    .fy-mobile-nav { height:calc(72px + env(safe-area-inset-bottom)) !important; padding:0 8px env(safe-area-inset-bottom) !important; border-top:1px solid rgba(57,231,245,.72) !important; background:linear-gradient(180deg,rgba(5,13,22,.98),rgba(7,18,29,.98)) !important; box-shadow:0 -8px 28px rgba(0,0,0,.42),0 -1px 0 rgba(247,228,121,.26) !important; overflow:hidden; }
    .fy-mobile-nav::before { content:""; position:absolute; left:0; right:0; top:0; height:2px; background:linear-gradient(90deg,transparent,#39e7f5 22%,#f7e479 50%,#39e7f5 78%,transparent); box-shadow:0 0 12px rgba(57,231,245,.9); }
    .fy-mobile-nav::after { content:""; position:absolute; inset:0; pointer-events:none; opacity:.11; background:repeating-linear-gradient(180deg,transparent 0,transparent 3px,rgba(57,231,245,.55) 4px,transparent 5px); mix-blend-mode:screen; }
    .fy-mobile-nav-inner { position:relative; z-index:1; height:72px; max-width:520px; margin:0 auto; gap:4px; }
    .fy-mobile-nav-item { height:100%; padding:5px 0 3px; }
    .fy-mobile-nav-item a { position:relative; gap:4px; height:100%; padding:7px 4px 5px; border:1px solid transparent; border-radius:8px; color:#88a8b5; font-size:10px; letter-spacing:.04em; text-shadow:0 0 8px rgba(57,231,245,.45); transition:transform .18s ease,color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease; }
    .fy-mobile-nav-item a::before { content:""; position:absolute; left:10px; right:10px; top:2px; height:1px; background:transparent; }
    .fy-mobile-nav-item a .fy-icon { width:30px; height:29px; color:#39e7f5; font-size:22px; filter:drop-shadow(0 0 6px rgba(57,231,245,.72)); }
    .fy-mobile-nav-item a.fy-active { color:#f7e479; background:linear-gradient(180deg,rgba(247,228,121,.15),rgba(57,231,245,.06)); border-color:rgba(247,228,121,.62); box-shadow:0 0 0 1px rgba(57,231,245,.18),0 0 18px rgba(57,231,245,.2),inset 0 0 15px rgba(247,228,121,.08); }
    .fy-mobile-nav-item a.fy-active::before { background:linear-gradient(90deg,transparent,#f7e479,transparent); box-shadow:0 0 8px rgba(247,228,121,.9); }
    .fy-mobile-nav-item a.fy-active .fy-icon { color:#f7e479; filter:drop-shadow(0 0 8px rgba(247,228,121,.86)); transform:translateY(-1px); }
    .fy-mobile-nav-item a:active { transform:translateY(1px) scale(.97); }
    [data-theme="light"] .fy-mobile-nav { border-top-color:#0891b2 !important; background:linear-gradient(180deg,rgba(225,247,250,.98),rgba(203,235,241,.98)) !important; box-shadow:0 -8px 24px rgba(8,145,178,.18),0 -1px 0 rgba(234,179,8,.45) !important; }
    [data-theme="light"] .fy-mobile-nav::after { opacity:.08; background:repeating-linear-gradient(180deg,transparent 0,transparent 3px,rgba(8,145,178,.35) 4px,transparent 5px); }
    [data-theme="light"] .fy-mobile-nav-item a { color:#365466; text-shadow:none; }
    [data-theme="light"] .fy-mobile-nav-item a .fy-icon { color:#0e7490; filter:drop-shadow(0 0 5px rgba(14,116,144,.36)); }
    [data-theme="light"] .fy-mobile-nav-item a.fy-active { color:#8a5b00; background:linear-gradient(180deg,rgba(255,255,255,.68),rgba(247,228,121,.2)); border-color:#eab308; box-shadow:0 0 0 1px rgba(8,145,178,.14),0 0 16px rgba(8,145,178,.18),inset 0 0 12px rgba(234,179,8,.12); }
    [data-theme="light"] .fy-mobile-nav-item a.fy-active .fy-icon { color:#b77900; filter:drop-shadow(0 0 6px rgba(234,179,8,.55)); }
}

/* 手机底部导航收紧高度，页面统一预留安全区避免最后内容被遮挡。 */
@media (max-width:768px) {
    .fy-main { padding-bottom:calc(54px + env(safe-area-inset-bottom)) !important; }
    .fy-central-chat-page { height:calc(100dvh - 14px - 52px - env(safe-area-inset-bottom)) !important; padding-bottom:calc(54px + env(safe-area-inset-bottom)) !important; }
    .fy-central-chat-card .fy-chat-form { bottom:calc(54px + env(safe-area-inset-bottom)) !important; }
    .fy-mobile-nav { height:calc(52px + env(safe-area-inset-bottom)) !important; padding:0 7px env(safe-area-inset-bottom) !important; border-top-width:1px !important; }
    .fy-mobile-nav-inner { height:52px !important; gap:3px; }
    .fy-mobile-nav-item { padding:2px 0 1px; }
    .fy-mobile-nav-item a { gap:2px; padding:5px 3px 3px; border-radius:7px; font-size:9px; letter-spacing:.02em; }
    .fy-mobile-nav-item a::before { left:8px; right:8px; top:1px; }
    .fy-mobile-nav-item a .fy-icon { width:25px; height:23px; font-size:19px; }
    .fy-usercenter-page { padding-bottom:4px; }
}

/* ===== 我的AI订单（aiz_order.php，随 framework 全局加载） ===== */
.fy-aiz-orders-page { display:flex; flex-direction:column; gap:16px; }
.fy-aiz-orders-sum { display:flex; gap:10px; }
.fy-aiz-orders-stat { flex:1; padding:14px 16px; border:1px solid var(--fy-border); border-radius:12px; background:var(--fy-bg-card); text-align:center; }
.fy-aiz-orders-stat span { display:block; color:var(--fy-text-muted); font-size:12px; }
.fy-aiz-orders-stat b { display:block; margin-top:4px; color:var(--fy-text-primary); font-size:20px; }
.fy-aiz-orders-list { display:flex; flex-direction:column; gap:12px; }
.fy-aiz-order { padding:16px 18px; }
.fy-aiz-order-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.fy-aiz-order-name { display:flex; align-items:center; gap:8px; min-width:0; }
.fy-aiz-order-name strong { color:var(--fy-text-primary); font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fy-aiz-order-qty { flex:0 0 auto; padding:1px 8px; border-radius:8px; color:var(--fy-text-muted); background:var(--fy-bg-muted,#f3f4f6); font-size:12px; }
.fy-aiz-order-right { flex:0 0 auto; text-align:right; }
.fy-aiz-order-price { display:block; color:var(--fy-active,#ff7a1a); font-size:17px; }
.fy-aiz-order-state { display:inline-block; margin-top:3px; padding:1px 8px; border-radius:8px; font-size:11px; }
.fy-aiz-order-state-2 { color:#1a7f37; background:rgba(26,127,55,.12); }
.fy-aiz-order-state-0 { color:#b45309; background:rgba(180,83,9,.12); }
.fy-aiz-order-state--1 { color:var(--fy-text-muted); background:var(--fy-bg-muted,#f3f4f6); }
.fy-aiz-order-state-3 { color:#b91c1c; background:rgba(185,28,28,.12); }
.fy-aiz-order-meta { display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:10px; color:var(--fy-text-muted); font-size:12px; }
.fy-aiz-order-cards { display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.fy-aiz-order-card { display:flex; align-items:center; gap:10px; padding:9px 12px; border:1px dashed var(--fy-border); border-radius:8px; background:var(--fy-bg-muted,#f6f7f9); }
.fy-aiz-order-card code { flex:1; min-width:0; color:var(--fy-text-primary); font-family:ui-monospace,Consolas,monospace; font-size:13px; word-break:break-all; }
.fy-aiz-order-card .fy-btn { flex:0 0 auto; padding:4px 12px; font-size:12px; }
@media (max-width:768px) {
  .fy-aiz-orders-sum { flex-wrap:wrap; }
  .fy-aiz-orders-stat { flex:1 1 40%; }
  .fy-aiz-order-head { flex-direction:column; }
  .fy-aiz-order-right { text-align:left; }
}

/* ===== 通用返回按钮（个人中心子页：我的AI订单 / 我的记账） ===== */
.fy-page-back { display:inline-flex; align-items:center; gap:6px; margin-bottom:12px; padding:7px 14px; border:1px solid var(--fy-border); border-radius:8px; color:var(--fy-text-primary); background:var(--fy-bg-card); font-size:13px; text-decoration:none; cursor:pointer; transition:border-color .2s,color .2s; }
.fy-page-back:hover { border-color:var(--fy-active); color:var(--fy-active); }
.fy-page-back .fy-icon { font-size:14px; }

/* ===== 我的记账（ledger.php，独立页面，随 framework 全局加载） ===== */
.fy-ledger-wrap { display:flex; flex-direction:column; gap:18px; }
.fy-ledger-card { padding:20px 22px; border:1px solid var(--fy-border); border-radius:4px; background:var(--fy-bg-card); }
.fy-ledger-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.fy-ledger-title { display:inline-flex; align-items:center; gap:8px; color:var(--fy-active); font-size:14px; font-weight:700; letter-spacing:.5px; }
.fy-ledger-dot { width:9px; height:9px; border-radius:2px; background:var(--fy-active); box-shadow:0 0 8px var(--fy-active); }
.fy-ledger-badge { padding:2px 10px; border:1px solid var(--fy-active); border-radius:20px; color:var(--fy-active); font-size:11px; }
.fy-ledger-balance { display:flex; align-items:baseline; gap:8px; margin:16px 0 4px; color:var(--fy-text-primary); font-size:38px; font-weight:800; }
.fy-ledger-balance .fy-ledger-currency { color:var(--fy-active); font-size:20px; }
.fy-ledger-stats { display:flex; gap:12px; margin-top:14px; }
.fy-ledger-stat { flex:1; padding:12px 14px; border-radius:4px; }
.fy-ledger-stat span { display:block; color:var(--fy-text-muted); font-size:12px; }
.fy-ledger-stat b { display:block; margin-top:4px; font-size:18px; }
.fy-ledger-stat-income { color:#1a7f37; background:rgba(26,127,55,.10); }
.fy-ledger-stat-income b { color:#1a7f37; }
.fy-ledger-stat-expense { color:#c2410c; background:rgba(194,65,12,.10); }
.fy-ledger-stat-expense b { color:#c2410c; }
.fy-ledger-sub { display:flex; gap:18px; margin-top:10px; color:var(--fy-text-muted); font-size:12px; }
.fy-ledger-actions { display:flex; gap:10px; margin-top:16px; }
.fy-ledger-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 18px; border:1px solid var(--fy-active); border-radius:4px; color:#fff; background:linear-gradient(135deg,#ff8a00,#ff3d3d); box-shadow:0 4px 12px rgba(255,138,0,.28); font-size:14px; font-weight:700; text-decoration:none; cursor:pointer; }
.fy-ledger-btn:hover { filter:brightness(1.06); }
.fy-ledger-btn-ghost { color:var(--fy-active); background:transparent; box-shadow:none; }
.fy-ledger-btn-ghost:hover { background:rgba(255,138,0,.08); filter:none; }
.fy-ledger-form { display:flex; flex-direction:column; gap:12px; margin-top:16px; padding:16px; border:1px dashed var(--fy-active); border-radius:4px; background:var(--fy-bg-muted,#f7f8fa); }
.fy-ledger-form[hidden] { display:none; }
.fy-ledger-form-row { display:flex; gap:10px; flex-wrap:wrap; }
.fy-ledger-type-btn { padding:8px 18px; border:1px solid var(--fy-border); border-radius:4px; color:var(--fy-text-muted); background:transparent; font-size:13px; cursor:pointer; }
.fy-ledger-type-btn.is-active { border-color:var(--fy-active); color:var(--fy-active); background:rgba(255,138,0,.08); }
.fy-ledger-input, .fy-ledger-select { flex:1; min-width:0; height:38px; padding:0 12px; border:1px solid var(--fy-border); border-radius:4px; outline:0; color:var(--fy-text-primary); background:var(--fy-bg-card); font-size:13px; box-sizing:border-box; }
.fy-ledger-input:focus, .fy-ledger-select:focus { border-color:var(--fy-active); }
.fy-ledger-input-amount { flex:1 1 120px; font-size:16px; font-weight:700; }
.fy-ledger-form-submit { padding:10px 20px; border:0; border-radius:4px; color:#fff; background:linear-gradient(135deg,#ff8a00,#ff3d3d); font-size:14px; font-weight:700; cursor:pointer; }
.fy-ledger-filter { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.fy-ledger-filter .fy-ledger-select { flex:0 1 120px; }
.fy-ledger-filter-sum { margin-left:auto; color:var(--fy-text-muted); font-size:12px; }
.fy-ledger-filter-sum b { color:var(--fy-active); }
.fy-ledger-bills-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.fy-ledger-bills-head span { color:var(--fy-text-primary); font-size:15px; font-weight:700; }
.fy-ledger-bills-head em { color:var(--fy-text-muted); font-size:12px; font-style:normal; }
.fy-ledger-bill { display:flex; align-items:center; gap:12px; padding:11px 4px; border-bottom:1px solid var(--fy-border); }
.fy-ledger-bill:last-child { border-bottom:0; }
.fy-ledger-bill-ico { flex:0 0 auto; display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; color:#c2410c; background:rgba(194,65,12,.12); font-size:13px; font-weight:800; }
.fy-ledger-bill-ico-in { color:#1a7f37; background:rgba(26,127,55,.12); }
.fy-ledger-bill-main { flex:1; min-width:0; }
.fy-ledger-bill-main strong { display:block; overflow:hidden; color:var(--fy-text-primary); font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.fy-ledger-bill-main small { display:block; margin-top:2px; overflow:hidden; color:var(--fy-text-muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.fy-ledger-bill-amount { flex:0 0 auto; font-size:15px; font-weight:700; }
.fy-ledger-bill-income { color:#1a7f37; }
.fy-ledger-bill-expense { color:#c2410c; }
.fy-ledger-bill-del { width:26px; height:26px; border:0; border-radius:50%; color:var(--fy-text-muted); background:transparent; font-size:16px; cursor:pointer; }
.fy-ledger-bill-del:hover { color:#fff; background:#e11d48; }
.fy-ledger-pmsg { padding:10px 14px; border:1px solid rgba(26,127,55,.35); border-radius:4px; color:#1a7f37; background:rgba(26,127,55,.08); font-size:13px; }
@media (max-width:768px) {
  .fy-ledger-card { padding:16px 14px; }
  .fy-ledger-balance { font-size:30px; }
  .fy-ledger-stats { flex-wrap:wrap; }
  .fy-ledger-stat { flex:1 1 40%; }
  .fy-ledger-actions { flex-wrap:wrap; }
  .fy-ledger-btn { flex:1; }
  .fy-ledger-filter-sum { width:100%; margin-left:0; }
}

/* ===== 首页左栏社区导航：好友 / 群聊 / 关注 / 功能 ===== */
.fy-sidebar-community { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 10px 0 16px; }
.fy-sidebar-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--fy-border);
    border-radius: 14px;
    background: var(--fy-bg-primary);
    box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
}
.fy-sidebar-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 34px;
    padding: 6px 3px;
    border: 0;
    border-radius: 10px;
    color: var(--fy-text-secondary);
    background: transparent;
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.fy-sidebar-tab:hover {
    color: #00f0ff;
    background: linear-gradient(180deg, rgba(0, 240, 255, .10), rgba(255, 43, 109, .06));
    box-shadow: inset 0 0 16px rgba(0, 240, 255, .08);
    text-shadow: 0 0 10px rgba(0, 240, 255, .70);
}
.fy-sidebar-tab:hover .fy-icon { filter: drop-shadow(0 0 6px rgba(0, 240, 255, .85)); }
.fy-sidebar-tab:focus-visible { outline: 2px solid color-mix(in srgb, var(--fy-active) 55%, transparent); outline-offset: -2px; }
.fy-sidebar-tab.is-active {
    color: #f2feff;
    background: linear-gradient(135deg, rgba(0, 240, 255, .18), rgba(125, 61, 209, .16));
    box-shadow: inset 0 0 18px rgba(0, 240, 255, .12), inset 0 -2px 0 rgba(0, 240, 255, .55);
    text-shadow: 0 0 12px rgba(0, 240, 255, .85), 0 0 28px rgba(255, 43, 109, .45);
}
.fy-sidebar-tab.is-active .fy-icon { filter: drop-shadow(0 0 8px rgba(0, 240, 255, .9)); }
html[data-theme="light"] .fy-sidebar-tab:hover {
    color: #0088cc;
    background: linear-gradient(180deg, rgba(0, 136, 204, .08), rgba(194, 24, 91, .05));
    box-shadow: inset 0 0 14px rgba(0, 136, 204, .06);
    text-shadow: 0 0 8px rgba(0, 136, 204, .45);
}
html[data-theme="light"] .fy-sidebar-tab.is-active {
    color: #0369a1;
    background: linear-gradient(135deg, rgba(0, 136, 204, .12), rgba(106, 63, 209, .10));
    box-shadow: inset 0 0 14px rgba(0, 136, 204, .08), inset 0 -2px 0 rgba(0, 136, 204, .5);
    text-shadow: 0 0 10px rgba(0, 136, 204, .40);
}
.fy-sidebar-tab .fy-icon { display: none; }
.fy-sidebar-panel { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; gap: 8px; margin-top: 12px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.fy-sidebar-panel::-webkit-scrollbar { display: none; width: 0; height: 0; }
.fy-sidebar-panel[hidden] { display: none !important; }
.fy-sidebar-panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 4px; color: var(--fy-text-secondary); font-size: 11px; }
.fy-sidebar-panel-heading strong { color: var(--fy-text-primary); font-size: 13px; }
.fy-sidebar-panel-heading span { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 7px; color: var(--fy-active); background: color-mix(in srgb, var(--fy-active) 12%, var(--fy-bg-primary)); }
.fy-sidebar-board,
.fy-sidebar-empty-action,
.fy-sidebar-action-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--fy-text-primary);
    background: var(--fy-bg-card);
    box-shadow: 0 5px 14px rgba(15, 23, 42, .06);
    box-sizing: border-box;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.fy-sidebar-board:hover,
.fy-sidebar-empty-action:hover,
.fy-sidebar-action-card:hover { border-color: color-mix(in srgb, var(--fy-sidebar-board-color, var(--fy-active)) 55%, var(--fy-border)); background: color-mix(in srgb, var(--fy-sidebar-board-color, var(--fy-active)) 6%, var(--fy-bg-card)); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 23, 42, .09); }
.fy-sidebar-board:focus-visible,
.fy-sidebar-empty-action:focus-visible,
.fy-sidebar-action-card:focus-visible { outline: 2px solid color-mix(in srgb, var(--fy-active) 60%, transparent); outline-offset: 1px; }
.fy-sidebar-board-icon,
.fy-sidebar-panel-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; color: var(--fy-sidebar-board-color, var(--fy-active)); background: color-mix(in srgb, var(--fy-sidebar-board-color, var(--fy-active)) 16%, var(--fy-bg-primary)); font-size: 19px; overflow: hidden; }
.fy-sidebar-board-icon img { width: 100%; height: 100%; object-fit: cover; }
.fy-sidebar-board-copy,
.fy-sidebar-empty-action > span:nth-child(2),
.fy-sidebar-action-card > span:nth-child(2) { display: block; flex: 1; min-width: 0; }
.fy-sidebar-board-link { color: inherit; text-decoration: none; }
.fy-sidebar-board-copy strong,
.fy-sidebar-empty-action strong,
.fy-sidebar-action-card strong { display: block; overflow: hidden; color: var(--fy-text-primary); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.fy-sidebar-board-copy small,
.fy-sidebar-empty-action small,
.fy-sidebar-action-card small,
.fy-sidebar-empty-state small { display: block; margin-top: 3px; overflow: hidden; color: var(--fy-text-secondary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.fy-sidebar-friends-list { display: grid; gap: 7px; }
.fy-sidebar-recent-list,
.fy-sidebar-groups-list { display: grid; gap: 7px; }
.fy-sidebar-recent-row { min-height: 52px; padding-top: 7px; padding-bottom: 7px; }
.fy-sidebar-recent-row .fy-sidebar-board-icon { flex-basis: 34px; width: 34px; height: 34px; }
.fy-sidebar-subsection { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--fy-border); }
.fy-sidebar-subsection-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid var(--fy-border); border-radius: 10px; color: var(--fy-text-primary); background: color-mix(in srgb, var(--fy-bg-card) 88%, var(--fy-bg-primary)); font: inherit; cursor: pointer; }
.fy-sidebar-subsection-toggle > span:first-child { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.fy-sidebar-subsection-toggle strong { font-size: 12px; }
.fy-sidebar-subsection-toggle > .fy-icon { color: var(--fy-text-secondary); font-size: 12px; transition: transform .2s ease; }
.fy-sidebar-subsection.is-expanded .fy-sidebar-subsection-toggle > .fy-icon { transform: rotate(90deg); }
.fy-sidebar-groups-content { display: grid; gap: 8px; margin-top: 8px; }
.fy-sidebar-groups-content[hidden] { display: none !important; }
.fy-sidebar-friend-row { cursor: pointer; }
.fy-sidebar-friend-row .fy-sidebar-board-icon { color: var(--fy-active); background: color-mix(in srgb, var(--fy-active) 14%, var(--fy-bg-primary)); font-size: 15px; font-weight: 700; }
.fy-sidebar-friend-letter { line-height: 1; }
.fy-sidebar-board > .fy-icon:last-child,
.fy-sidebar-empty-action > .fy-icon:last-child,
.fy-sidebar-action-card > .fy-icon:last-child { flex: 0 0 auto; color: var(--fy-text-secondary); font-size: 13px; }
.fy-sidebar-follow-action { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; margin-left: 2px; padding: 0; border: 1px solid var(--fy-follow-color); border-radius: 7px; color: #fff; background: var(--fy-follow-color); box-shadow: 0 3px 8px color-mix(in srgb, var(--fy-follow-color) 22%, transparent); font-family: inherit; font-size: 16px; line-height: 1; cursor: pointer; transition: filter .2s ease, transform .2s ease, opacity .2s ease; }
.fy-sidebar-follow-glyph { display: block; width: 1em; height: 1em; line-height: .9; text-align: center; font-weight: 600; }
.fy-sidebar-follow-action:hover,
.fy-sidebar-follow-action:focus-visible { filter: brightness(.92); transform: translateY(-1px); outline: 2px solid color-mix(in srgb, var(--fy-follow-color) 55%, transparent); outline-offset: 2px; }
.fy-sidebar-follow-action:hover { filter: brightness(.92); transform: translateY(-1px); }
.fy-sidebar-follow-action.is-followed { border-color: var(--fy-followed-color); color: #fff; background: var(--fy-followed-color); box-shadow: 0 3px 8px color-mix(in srgb, var(--fy-followed-color) 22%, transparent); }
.fy-sidebar-follow-action.is-followed:focus-visible { outline-color: color-mix(in srgb, var(--fy-followed-color) 55%, transparent); }
.fy-sidebar-follow-action.is-pending { opacity: .55; cursor: wait; }
.fy-sidebar-empty-action { border: 0; font-family: inherit; }
.fy-sidebar-action-card { border-color: color-mix(in srgb, var(--fy-active) 20%, var(--fy-border)); font-family: inherit; }
.fy-sidebar-mini-heading { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 1px; color: var(--fy-text-secondary); font-size: 11px; }
.fy-sidebar-mini-heading strong { color: var(--fy-text-primary); font-size: 12px; }
.fy-sidebar-mini-heading span { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 7px; color: var(--fy-active); background: color-mix(in srgb, var(--fy-active) 12%, var(--fy-bg-primary)); }
.fy-sidebar-group-row { min-height: 52px; padding: 7px 9px; }
.fy-sidebar-group-row .fy-sidebar-board-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 16px; }
.fy-sidebar-empty-state { display: flex; flex-direction: column; align-items: center; padding: 26px 10px; border: 1px dashed var(--fy-border); border-radius: 13px; color: var(--fy-text-secondary); background: color-mix(in srgb, var(--fy-bg-card) 82%, var(--fy-bg-primary)); text-align: center; }
.fy-sidebar-empty-state .fy-sidebar-panel-icon { margin-bottom: 9px; }
.fy-sidebar-empty-state strong { color: var(--fy-text-primary); font-size: 13px; }
.fy-sidebar-follow-toast { position: fixed; left: 50%; bottom: 15vh; z-index: 3000; max-width: min(80vw, 320px); padding: 9px 18px; border: 1px solid var(--fy-toast-border); border-radius: 999px; color: var(--fy-toast-text); background: var(--fy-toast-bg); box-shadow: 0 10px 30px var(--fy-toast-shadow); font-size: 13px; line-height: 1.4; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; }
.fy-sidebar-follow-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.fy-sidebar.fy-collapsed .fy-sidebar-community { padding: 8px 0 12px; }
.fy-sidebar.fy-collapsed .fy-sidebar-tab { min-height: 32px; padding: 6px 0; }
.fy-sidebar.fy-collapsed .fy-sidebar-tab .fy-icon { display: inline-block; font-size: 15px; }
.fy-sidebar.fy-collapsed .fy-sidebar-panel-heading,
.fy-sidebar.fy-collapsed .fy-sidebar-board-copy,
.fy-sidebar.fy-collapsed .fy-sidebar-empty-action > span:nth-child(2),
.fy-sidebar.fy-collapsed .fy-sidebar-action-card > span:nth-child(2),
.fy-sidebar.fy-collapsed .fy-sidebar-follow-action,
.fy-sidebar.fy-collapsed .fy-sidebar-board > .fy-icon:last-child,
.fy-sidebar.fy-collapsed .fy-sidebar-empty-action > .fy-icon:last-child,
.fy-sidebar.fy-collapsed .fy-sidebar-action-card > .fy-icon:last-child,
.fy-sidebar.fy-collapsed .fy-sidebar-empty-state strong,
.fy-sidebar.fy-collapsed .fy-sidebar-empty-state small { display: none; }
.fy-sidebar.fy-collapsed .fy-sidebar-board,
.fy-sidebar.fy-collapsed .fy-sidebar-empty-action,
.fy-sidebar.fy-collapsed .fy-sidebar-action-card { justify-content: center; padding: 8px 0; }
.fy-sidebar.fy-collapsed .fy-sidebar-board-icon,
.fy-sidebar.fy-collapsed .fy-sidebar-panel-icon { flex-basis: 34px; width: 34px; height: 34px; }
.fy-sidebar.fy-collapsed .fy-sidebar-empty-state { padding: 12px 0; }

@media (max-width: 768px) {
    .fy-sidebar-community { padding-top: 6px; }
    .fy-sidebar-tabs { border-radius: 12px; }
    .fy-sidebar-tab { min-height: 32px; font-size: 11px; }
    .fy-sidebar-board, .fy-sidebar-empty-action, .fy-sidebar-action-card { min-height: 54px; border-radius: 11px; }
    .fy-group-actions { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 左侧退出按钮（登录时显示，红色区分） ===== */
.fy-tool-btn.fy-tool-logout .fy-icon,
.fy-tool-btn.fy-tool-logout .fy-label { color: var(--fy-danger, #e74c3c); }
.fy-tool-btn.fy-tool-logout:hover { box-shadow: inset 0 0 0 1px rgba(231,76,60,.35); }

/* ===== 左侧用户框内退出按钮 ===== */
.fy-user-logout {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    color: var(--fy-danger, #e74c3c) !important;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}
.fy-user-logout:hover { color: var(--fy-danger, #e74c3c); text-decoration: underline; }


/* ===== 左侧社区页签赛博朋克滑块 ===== */
.fy-sidebar-tab-glider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    z-index: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(0, 255, 240, .18), rgba(255, 42, 109, .12));
    border: 1px solid rgba(0, 255, 240, .55);
    box-shadow: 0 0 12px rgba(0, 255, 240, .30), 0 0 24px rgba(0, 255, 240, .12), inset 0 0 10px rgba(0, 255, 240, .08);
    transition: transform .38s cubic-bezier(.4, 0, .2, 1), width .38s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
}
html[data-theme="light"] .fy-sidebar-tab-glider {
    background: linear-gradient(135deg, rgba(8, 145, 178, .14), rgba(124, 58, 237, .10));
    border-color: rgba(8, 145, 178, .5);
    box-shadow: 0 0 10px rgba(8, 145, 178, .20), 0 0 20px rgba(8, 145, 178, .08), inset 0 0 8px rgba(8, 145, 178, .06);
}

/* ===== 手机聊天页：标题、头像和操作按钮保持单行 ===== */
@media (max-width: 768px) {
    .fy-central-chat-head {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }
    .fy-central-chat-head .fy-message-avatar {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }
    .fy-central-chat-title {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }
    .fy-central-chat-title .fy-kicker,
    .fy-central-chat-title h1,
    .fy-central-chat-title p {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .fy-central-chat-title h1 { margin: 2px 0 3px; font-size: 17px; }
    .fy-central-chat-title p { font-size: 10px; }
    .fy-central-chat-actions {
        width: auto;
        min-width: 0;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 4px;
        margin-left: 0;
    }
    .fy-central-chat-actions .fy-btn {
        min-width: 0;
        flex: 0 1 auto;
        padding: 6px 7px;
        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
    }
    .fy-central-chat-card { padding: 12px; }
    .fy-central-chat-card .fy-chat-form { flex-wrap: nowrap; gap: 6px; }
    .fy-central-chat-card .fy-chat-form .fy-btn { flex: 0 0 auto; padding: 8px 12px; white-space: nowrap; }
}

@media (max-width: 360px) {
    .fy-central-chat-head { gap: 6px; }
    .fy-central-chat-head .fy-message-avatar { width: 34px; height: 34px; flex-basis: 34px; }
    .fy-central-chat-title h1 { font-size: 15px; }
    .fy-central-chat-title p { display: none; }
    .fy-central-chat-actions { gap: 3px; }
    .fy-central-chat-actions .fy-btn { padding-right: 5px; padding-left: 5px; font-size: 9px; }
}

/* ===== PC 好友管理：好友资料与操作保持同一行 ===== */
@media (min-width: 769px) {
    .fy-friends-management-page .fy-management-friend-row {
        flex-wrap: nowrap;
        gap: 12px;
        min-height: 58px;
        padding: 9px 2px;
    }
    .fy-friends-management-page .fy-management-friend-row .fy-friend-copy {
        display: grid;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr) minmax(90px, auto);
        align-items: center;
        gap: 0 14px;
    }
    .fy-friends-management-page .fy-management-friend-row .fy-friend-copy strong,
    .fy-friends-management-page .fy-management-friend-row .fy-friend-copy small {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .fy-friends-management-page .fy-management-friend-row .fy-friend-copy small {
        max-width: 220px;
        text-align: right;
    }
    .fy-friends-management-page .fy-management-friend-row .fy-btn {
        flex: 0 0 auto;
        min-width: 52px;
        line-height: 1.2;
        white-space: nowrap;
    }
    .fy-friends-management-page .fy-management-request-row .fy-btn,
    .fy-friends-management-page .fy-management-request-row .fy-friend-copy {
        min-width: 0;
    }
    .fy-friends-management-page .fy-management-request-row .fy-btn { white-space: nowrap; }
}

/* ===== 私聊与群聊统一聊天窗口 ===== */
.fy-central-chat-card {
    position: relative;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--fy-active) 18%, var(--fy-border));
    background:
        radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--fy-active) 10%, transparent), transparent 35%),
        radial-gradient(circle at 88% 92%, color-mix(in srgb, #14b8a6 9%, transparent), transparent 34%),
        var(--fy-bg-card);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}
.fy-central-chat-card::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .32;
    background-image: linear-gradient(color-mix(in srgb, var(--fy-active) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--fy-active) 4%, transparent) 1px, transparent 1px);
    background-size: 24px 24px;
}
.fy-central-chat-card > * { position: relative; z-index: 1; }
.fy-central-chat-card .fy-chat-list {
    padding: 12px 8px 18px;
    border: 1px solid color-mix(in srgb, var(--fy-active) 10%, var(--fy-border));
    border-radius: 15px;
    background: color-mix(in srgb, var(--fy-bg-primary) 72%, transparent);
}
.fy-central-chat-card .fy-chat-form {
    position: sticky;
    bottom: 8px;
    z-index: 3;
    align-items: center;
    margin-top: 12px;
    padding: 7px;
    border: 1px solid color-mix(in srgb, var(--fy-active) 22%, var(--fy-border));
    border-radius: 14px;
    background: color-mix(in srgb, var(--fy-bg-card) 86%, transparent);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .14), 0 0 0 4px color-mix(in srgb, var(--fy-bg-card) 42%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.fy-central-chat-card .fy-chat-form input { border: 0; background: transparent; }
.fy-central-chat-card .fy-chat-form input:focus { box-shadow: none; }

@media (max-width: 768px) {
    .fy-central-chat-page {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }
    .fy-central-chat-card {
        min-height: calc(100vh - 172px);
        padding: 11px;
        border-radius: 17px;
    }
    .fy-central-chat-card .fy-chat-list {
        min-height: calc(100vh - 300px);
        padding: 10px 5px 14px;
        border-radius: 13px;
    }
    .fy-central-chat-card .fy-chat-form {
        bottom: calc(78px + env(safe-area-inset-bottom));
        margin-top: 10px;
        border-radius: 13px;
    }
}

/* 好友面板中的群聊入口与添加好友保持同级卡片尺寸 */
.fy-sidebar-subsection {
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
}
.fy-sidebar-subsection-toggle {
    min-height: 58px;
    padding: 9px 10px;
    border-color: color-mix(in srgb, var(--fy-active) 20%, var(--fy-border));
    border-radius: 13px;
    background: var(--fy-bg-card);
    box-shadow: 0 5px 14px rgba(15, 23, 42, .06);
    text-align: left;
}
.fy-sidebar-subsection-toggle:hover {
    border-color: color-mix(in srgb, var(--fy-active) 55%, var(--fy-border));
    background: color-mix(in srgb, var(--fy-active) 6%, var(--fy-bg-card));
    box-shadow: 0 8px 18px rgba(15, 23, 42, .09);
}
.fy-sidebar-subsection-toggle > span:first-child > .fy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--fy-active);
    background: color-mix(in srgb, var(--fy-active) 16%, var(--fy-bg-primary));
    font-size: 19px;
}
.fy-sidebar-groups-content { margin-top: 8px; }

/* ===== 私聊 / 群聊统一窗口：Cyberpunk 2077 ===== */
.fy-chat-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(247, 228, 121, .78);
    background: #090e14;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .28), 0 0 0 1px rgba(57, 231, 245, .18), 0 0 30px rgba(57, 231, 245, .1);
}
.fy-chat-shell::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: .2;
    background: repeating-linear-gradient(0deg, transparent 0, transparent 4px, rgba(57, 231, 245, .26) 5px, transparent 6px);
    mix-blend-mode: screen;
}
.fy-chat-shell::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 110px;
    height: 3px;
    content: "";
    background: #f7e479;
    box-shadow: -35px 0 0 #39e7f5, -70px 0 0 rgba(247, 228, 121, .5);
}
.fy-chat-shell > * { position: relative; z-index: 1; }
.fy-chat-shell .fy-central-chat-head {
    min-height: 76px;
    margin: 0;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(57, 231, 245, .48);
    background: linear-gradient(105deg, #17232d 0%, #101921 58%, #1a2026 100%);
}
.fy-chat-shell .fy-central-chat-head::after {
    position: absolute;
    right: 16px;
    bottom: -1px;
    left: 16px;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, #f7e479 22%, #39e7f5 55%, transparent);
    box-shadow: 0 0 10px rgba(57, 231, 245, .72);
}
.fy-chat-shell .fy-message-avatar {
    border: 2px solid #f7e479;
    box-shadow: 0 0 0 3px rgba(57, 231, 245, .12), 0 0 16px rgba(247, 228, 121, .28);
}
.fy-chat-shell .fy-central-chat-title .fy-kicker { color: #39e7f5; letter-spacing: .12em; }
.fy-chat-shell .fy-central-chat-title h1 { color: #f7e479; text-shadow: 0 0 10px rgba(247, 228, 121, .2); }
.fy-chat-shell .fy-central-chat-title p { color: #9db2bb; }
.fy-chat-shell .fy-central-chat-actions .fy-btn {
    border-color: rgba(57, 231, 245, .48);
    color: #c8e6e7;
    background: rgba(57, 231, 245, .06);
}
.fy-chat-shell .fy-central-chat-actions .fy-btn:hover {
    color: #101820;
    background: #39e7f5;
    box-shadow: 0 0 15px rgba(57, 231, 245, .42);
}
.fy-chat-shell .fy-central-chat-actions .fy-btn-danger {
    border-color: rgba(247, 92, 92, .58);
    color: #ff9a9a;
    background: rgba(247, 92, 92, .06);
}
.fy-chat-shell .fy-central-chat-actions .fy-btn-danger:hover { color: #1b0e10; background: #ff7777; }
.fy-chat-shell .fy-central-chat-card {
    min-height: 520px;
    padding: 13px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #0d151c, #0a1117);
    box-shadow: none;
}
.fy-chat-shell .fy-central-chat-card::before { opacity: .17; }
.fy-chat-shell .fy-central-chat-card .fy-chat-list {
    min-height: 420px;
    max-height: calc(100vh - 320px);
    border-color: rgba(57, 231, 245, .2);
    background: rgba(5, 10, 15, .68);
    box-shadow: inset 0 0 28px rgba(0, 0, 0, .24);
}
.fy-chat-shell .fy-chat-message-avatar { border: 1px solid rgba(57, 231, 245, .64); }
.fy-chat-shell .fy-chat-bubble {
    border-color: rgba(57, 231, 245, .28);
    color: #d9e8e8;
    background: #17232b;
}
.fy-chat-shell .fy-chat-message.is-mine .fy-chat-bubble {
    border-color: rgba(247, 228, 121, .72);
    color: #111820;
    background: #f7e479;
    box-shadow: 0 0 12px rgba(247, 228, 121, .12);
}
.fy-chat-shell .fy-chat-message time { color: #75939c; }
.fy-chat-shell .fy-central-chat-card .fy-chat-form {
    bottom: 10px;
    border-color: rgba(247, 228, 121, .58);
    background: rgba(13, 25, 31, .92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .34), 0 0 0 3px rgba(57, 231, 245, .06), 0 0 18px rgba(57, 231, 245, .1);
}
.fy-chat-shell .fy-central-chat-card .fy-chat-form input { color: #e6f3ed; }
.fy-chat-shell .fy-central-chat-card .fy-chat-form input::placeholder { color: #78939a; }
.fy-chat-shell .fy-central-chat-card .fy-chat-form .fy-btn-primary {
    color: #101820;
    background: #f7e479;
    box-shadow: 0 0 13px rgba(247, 228, 121, .3);
}
.fy-chat-shell .fy-central-chat-card .fy-chat-form .fy-btn-primary:hover { background: #fff09a; }
.fy-central-chat-page .fy-central-chat-members {
    border-color: rgba(57, 231, 245, .42);
    border-radius: 0;
    background: #101a21;
}

html[data-theme="light"] .fy-chat-shell {
    border-color: #c99500;
    background: #ecf7f8;
    box-shadow: 0 16px 38px rgba(8, 145, 178, .15), 0 0 0 1px rgba(8, 145, 178, .14);
}
html[data-theme="light"] .fy-chat-shell::before { opacity: .12; background: repeating-linear-gradient(0deg, transparent 0, transparent 4px, rgba(8, 145, 178, .2) 5px, transparent 6px); }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-head { border-bottom-color: #0891b2; background: linear-gradient(105deg, #c7eef2, #e9f8f7 62%, #f8edb0); }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-title .fy-kicker { color: #087f98; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-title h1 { color: #765400; text-shadow: none; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-title p { color: #4d6972; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-actions .fy-btn { border-color: #0e7490; color: #075d70; background: rgba(255, 255, 255, .48); }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-actions .fy-btn:hover { color: #fff; background: #0e7490; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-card { background: linear-gradient(180deg, #e8f7f8, #dceff1); }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-card .fy-chat-list { border-color: rgba(8, 145, 178, .24); background: rgba(255, 255, 255, .72); }
html[data-theme="light"] .fy-chat-shell .fy-chat-bubble { border-color: #b5d8dc; color: #203941; background: #fff; }
html[data-theme="light"] .fy-chat-shell .fy-chat-message.is-mine .fy-chat-bubble { color: #263700; background: #f7e479; }
html[data-theme="light"] .fy-chat-shell .fy-chat-message time { color: #607c84; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-card .fy-chat-form { border-color: #c99500; background: rgba(255, 255, 255, .88); box-shadow: 0 10px 24px rgba(8, 145, 178, .18), 0 0 0 3px rgba(8, 145, 178, .06); }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-card .fy-chat-form input { color: #203941; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-card .fy-chat-form input::placeholder { color: #789096; }

@media (max-width: 768px) {
    .fy-chat-shell { margin: 0 -2px; border-radius: 14px; }
        .fy-chat-shell .fy-central-chat-head { min-height: 62px; padding: 8px 9px; }
        .fy-chat-shell .fy-central-chat-card { min-height: calc(100vh - 132px); padding: 9px; }
        .fy-chat-shell .fy-central-chat-card .fy-chat-list { min-height: calc(100vh - 264px); max-height: none; padding: 9px 4px 14px; }
        .fy-chat-shell .fy-central-chat-card .fy-chat-form { bottom: calc(54px + env(safe-area-inset-bottom)); margin-top: 7px; }
    .fy-chat-shell .fy-central-chat-members { margin-top: 10px; }
}

/* ===== 简约 Cyberpunk 2077 聊天窗口最终样式 ===== */
.fy-chat-shell {
    border: 1px solid #2fdae9;
    border-left: 4px solid #f7e479;
    border-radius: 5px;
    background: #0c1218;
    box-shadow: 8px 8px 0 rgba(247, 228, 121, .1), 0 15px 32px rgba(0, 0, 0, .25);
}
.fy-chat-shell::before { display: none; }
.fy-chat-shell::after {
    top: auto;
    right: 0;
    bottom: 0;
    width: 92px;
    height: 3px;
    background: #2fdae9;
    box-shadow: -30px 0 0 #f7e479, -60px 0 0 rgba(47, 218, 233, .45);
}
.fy-chat-shell .fy-central-chat-head {
    min-height: 72px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(47, 218, 233, .6);
    background: #151e26;
}
.fy-chat-shell .fy-central-chat-head::after { display: none; }
.fy-chat-shell .fy-message-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border: 1px solid #f7e479;
    border-radius: 3px;
    box-shadow: 3px 3px 0 rgba(47, 218, 233, .28);
}
.fy-chat-shell .fy-central-chat-title .fy-kicker { color: #2fdae9; font-size: 10px; letter-spacing: .14em; }
.fy-chat-shell .fy-central-chat-title h1 { color: #f7e479; text-shadow: none; font-size: 20px; }
.fy-chat-shell .fy-central-chat-title p { color: #91a6ad; font-size: 11px; }
.fy-chat-shell .fy-central-chat-actions .fy-btn {
    min-width: 0;
    padding: 6px 9px;
    border: 1px solid #2fdae9;
    border-radius: 3px;
    color: #d4e8e8;
    background: transparent;
    box-shadow: none;
}
.fy-chat-shell .fy-central-chat-actions .fy-btn:hover { color: #0c1218; background: #2fdae9; box-shadow: 3px 3px 0 rgba(247, 228, 121, .5); }
.fy-chat-shell .fy-central-chat-actions .fy-btn-danger { border-color: #f37d7d; color: #ffaaaa; background: transparent; }
.fy-chat-shell .fy-central-chat-actions .fy-btn-danger:hover { color: #160f12; background: #ff8e8e; }
.fy-chat-shell .fy-central-chat-card {
    min-height: 500px;
    padding: 12px;
    border-radius: 0;
    background: #0c1218;
}
.fy-chat-shell .fy-central-chat-card::before { display: none; }
.fy-chat-shell .fy-central-chat-card .fy-chat-list {
    min-height: 400px;
    max-height: calc(100vh - 315px);
    padding: 12px 9px 16px;
    border: 1px solid #203a41;
    border-radius: 3px;
    background: #101920;
    box-shadow: inset 0 0 0 1px rgba(247, 228, 121, .04);
}
.fy-chat-shell .fy-chat-message-avatar { border: 1px solid #2fdae9; border-radius: 3px; }
.fy-chat-shell .fy-chat-bubble {
    padding: 8px 11px;
    border: 0;
    border-left: 2px solid #2fdae9;
    border-radius: 2px;
    color: #d7e6e7;
    background: #1b2931;
}
.fy-chat-shell .fy-chat-message.is-mine .fy-chat-bubble {
    border: 0;
    border-right: 2px solid #f7e479;
    border-radius: 2px;
    color: #171b13;
    background: #f7e479;
    box-shadow: 3px 3px 0 rgba(47, 218, 233, .16);
}
.fy-chat-shell .fy-chat-message time { color: #6f8b92; }
.fy-chat-shell .fy-central-chat-card .fy-chat-form {
    bottom: 9px;
    margin-top: 12px;
    padding: 6px;
    border: 1px solid #2fdae9;
    border-radius: 3px;
    background: #151e26;
    box-shadow: 4px 4px 0 rgba(247, 228, 121, .12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.fy-chat-shell .fy-central-chat-card .fy-chat-form input { color: #e2eeee; }
.fy-chat-shell .fy-central-chat-card .fy-chat-form .fy-btn-primary {
    padding: 8px 15px;
    border-radius: 2px;
    color: #111820;
    background: #f7e479;
    box-shadow: none;
}
.fy-chat-shell .fy-central-chat-card .fy-chat-form .fy-btn-primary:hover { background: #fff19b; }
.fy-central-chat-page .fy-central-chat-members { border: 1px solid #2fdae9; border-radius: 3px; background: #151e26; }

html[data-theme="light"] .fy-chat-shell { border-color: #0e9ab2; border-left-color: #c89500; background: #edf8f8; box-shadow: 7px 7px 0 rgba(201, 149, 0, .12), 0 14px 28px rgba(8, 145, 178, .14); }
html[data-theme="light"] .fy-chat-shell::after { background: #0e9ab2; box-shadow: -30px 0 0 #c89500, -60px 0 0 rgba(14, 154, 178, .45); }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-head { border-bottom-color: #0e9ab2; background: #d9f1f3; }
html[data-theme="light"] .fy-chat-shell .fy-message-avatar { border-color: #c89500; box-shadow: 3px 3px 0 rgba(14, 154, 178, .22); }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-title .fy-kicker { color: #087f98; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-title h1 { color: #735200; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-title p { color: #567078; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-actions .fy-btn { border-color: #0e8299; color: #075d70; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-actions .fy-btn:hover { color: #fff; background: #0e8299; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-card { background: #e5f3f4; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-card .fy-chat-list { border-color: #abd1d5; background: #f8ffff; box-shadow: inset 0 0 0 1px rgba(14, 154, 178, .05); }
html[data-theme="light"] .fy-chat-shell .fy-chat-bubble { border-left-color: #0e9ab2; color: #203b42; background: #e8f4f4; }
html[data-theme="light"] .fy-chat-shell .fy-chat-message.is-mine .fy-chat-bubble { border-right-color: #c89500; color: #3e3300; background: #f7e479; box-shadow: 3px 3px 0 rgba(14, 154, 178, .12); }
html[data-theme="light"] .fy-chat-shell .fy-chat-message time { color: #658087; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-card .fy-chat-form { border-color: #0e9ab2; background: #f4ffff; box-shadow: 4px 4px 0 rgba(201, 149, 0, .12); }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-card .fy-chat-form input { color: #203b42; }

@media (max-width: 768px) {
    .fy-chat-shell { margin: 0; border-left-width: 3px; border-radius: 4px; box-shadow: 4px 4px 0 rgba(247, 228, 121, .1); }
    .fy-chat-shell .fy-central-chat-head { min-height: 62px; padding: 8px 8px; }
    .fy-chat-shell .fy-message-avatar { width: 36px; height: 36px; flex-basis: 36px; }
    .fy-chat-shell .fy-central-chat-title h1 { font-size: 17px; }
    .fy-chat-shell .fy-central-chat-title p { display: none; }
    .fy-chat-shell .fy-central-chat-actions { gap: 3px; }
    .fy-chat-shell .fy-central-chat-actions .fy-btn { padding: 5px 6px; font-size: 10px; }
    .fy-chat-shell .fy-central-chat-card { min-height: calc(100vh - 132px); padding: 8px; }
    .fy-chat-shell .fy-central-chat-card .fy-chat-list { min-height: calc(100vh - 264px); padding: 9px 5px 13px; }
    .fy-chat-shell .fy-central-chat-card .fy-chat-form { bottom: calc(54px + env(safe-area-inset-bottom)); margin-top: 7px; }
}

@media (max-width: 360px) {
    .fy-chat-shell .fy-message-avatar { width: 32px; height: 32px; flex-basis: 32px; }
    .fy-chat-shell .fy-central-chat-title h1 { font-size: 15px; }
    .fy-chat-shell .fy-central-chat-actions .fy-btn { padding-right: 4px; padding-left: 4px; font-size: 9px; }
}

/* ===== 聊天窗口三点菜单 ===== */
.fy-chat-menu { position: relative; }
.fy-chat-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--fy-border); border-radius: 50%; color: var(--fy-text-secondary); background: var(--fy-bg-card); cursor: pointer; transition: all .25s; }
.fy-chat-menu-btn:hover { color: var(--fy-active); border-color: color-mix(in srgb, var(--fy-active) 55%, var(--fy-border)); box-shadow: 0 0 12px color-mix(in srgb, var(--fy-active) 22%, transparent); }
.fy-chat-menu-btn .fy-icon { margin: 0; }
.fy-chat-menu-drop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 150px; padding: 6px; border: 1px solid var(--fy-border); border-radius: 12px; background: var(--fy-bg-card); box-shadow: 0 12px 30px rgba(0,0,0,.32); }
.fy-chat-menu-drop[hidden] { display: none; }
.fy-chat-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; color: var(--fy-text-primary); background: transparent; font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: all .2s; }
.fy-chat-menu-item:hover { color: var(--fy-active); background: color-mix(in srgb, var(--fy-active) 12%, transparent); }
.fy-chat-menu-item .fy-icon { margin: 0; font-size: 14px; }
.fy-chat-menu-danger { color: var(--fy-danger); }
.fy-chat-menu-danger:hover { color: var(--fy-danger); background: color-mix(in srgb, var(--fy-danger) 12%, transparent); }
@media (max-width:768px) {
    .fy-chat-menu-drop { position: fixed; right: 14px; min-width: 168px; }
}

/* ===== 聊天窗口撑满屏幕，输入框贴底 ===== */
.fy-chat-shell {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    box-sizing: border-box;
}
.fy-chat-shell .fy-central-chat-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.fy-chat-shell .fy-central-chat-card .fy-chat-list {
    flex: 1;
    min-height: 0;
    max-height: none;
}
.fy-chat-shell .fy-central-chat-card .fy-chat-form {
    position: static;
    flex: 0 0 auto;
    margin-top: 10px;
}
@media (max-width: 768px) {
    .fy-chat-shell {
        height: auto !important;
        min-height: 0 !important;
    }
}

/* ===== 聊天气泡线条化（覆盖 shell 内实底） ===== */
.fy-chat-shell .fy-chat-bubble {
    border: 1px solid rgba(47, 218, 233, .55);
    border-left: 2px solid #2fdae9;
    border-radius: 3px;
    background: transparent;
    color: #d7e6e7;
    box-shadow: none;
}
.fy-chat-shell .fy-chat-message.is-mine .fy-chat-bubble {
    border: 1px solid rgba(247, 228, 121, .55);
    border-right: 2px solid #f7e479;
    background: transparent;
    color: #f7e479;
    box-shadow: none;
}
html[data-theme="light"] .fy-chat-shell .fy-chat-bubble {
    border: 1px solid #b5d8dc;
    border-left: 2px solid #0e9ab2;
    background: transparent;
    color: #203941;
}
html[data-theme="light"] .fy-chat-shell .fy-chat-message.is-mine .fy-chat-bubble {
    border: 1px solid #c99500;
    border-right: 2px solid #c99500;
    background: transparent;
    color: #735200;
}

/* ===== 聊天窗口纯线条化 + 固定屏幕 ===== */
.fy-central-chat-page {
    height: calc(100vh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.fy-chat-shell {
    flex: 1;
    min-height: 0;
    background: transparent;
    box-shadow: none;
}
.fy-chat-shell .fy-central-chat-card {
    background: transparent;
    box-shadow: none;
}
.fy-chat-shell .fy-central-chat-card::before { display: none; }
.fy-chat-shell .fy-central-chat-card .fy-chat-list {
    background: transparent;
    box-shadow: none;
}
.fy-chat-shell .fy-central-chat-card .fy-chat-form {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
html[data-theme="light"] .fy-chat-shell { background: transparent; box-shadow: none; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-card { background: transparent; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-card .fy-chat-list { background: transparent; box-shadow: none; }
html[data-theme="light"] .fy-chat-shell .fy-central-chat-card .fy-chat-form { background: transparent; box-shadow: none; }

/* 头部提升层级，确保三点下拉不被卡片遮挡 */
.fy-chat-shell .fy-central-chat-head {
    position: relative;
    z-index: 20;
}
/* 三点下拉绝对最高层 */
.fy-chat-menu-drop {
    z-index: 9999 !important;
}
@media (max-width: 768px) {
    .fy-central-chat-page {
        height: calc(100dvh - 14px - 76px - env(safe-area-inset-bottom));
    }
}

/* 邀请好友面板浮层化，避免被固定容器裁剪 */
.fy-central-chat-page {
    position: relative;
}
.fy-central-chat-page .fy-central-chat-members {
    position: absolute;
    top: 84px;
    right: 14px;
    z-index: 30;
    width: 300px;
    max-width: calc(100% - 28px);
    max-height: 60vh;
    overflow-y: auto;
}
@media (max-width: 768px) {
    .fy-central-chat-page .fy-central-chat-members {
        top: 72px;
        right: 8px;
        width: 240px;
    }
}

/* ===== 个人设置页 ===== */
.fy-settings-page { width: 100%; max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.fy-settings-card { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.fy-settings-msg { padding: 9px 13px; border-radius: 7px; font-size: 13px; }
.fy-settings-ok { color: #2fdae9; border: 1px solid rgba(47, 218, 233, .5); background: rgba(47, 218, 233, .08); }
.fy-settings-error { color: #ff8e8e; border: 1px solid rgba(247, 92, 92, .5); background: rgba(247, 92, 92, .08); }
.fy-settings-row { display: flex; flex-direction: column; gap: 8px; }
.fy-settings-label { font-size: 13px; color: var(--fy-text-secondary); font-weight: 600; }
.fy-settings-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--fy-border); border-radius: 8px; color: var(--fy-text-primary); background: var(--fy-bg-primary); font: inherit; outline: none; transition: all .2s; }
.fy-settings-input:focus { border-color: var(--fy-active); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fy-active) 15%, transparent); }
textarea.fy-settings-input { resize: vertical; min-height: 84px; }
.fy-settings-row.is-avatar { flex-direction: row; align-items: flex-start; gap: 16px; }
.fy-settings-avatar-box { display: flex; flex-direction: column; gap: 8px; }
.fy-settings-avatar { position: relative; display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; overflow: hidden; border-radius: 50%; border: 2px solid rgba(47, 218, 233, .6); background: linear-gradient(135deg, var(--fy-active), #14b8a6); color: #fff; font-size: 34px; box-shadow: 0 0 0 3px rgba(47, 218, 233, .14), 0 0 18px rgba(47, 218, 233, .18); }
.fy-settings-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fy-settings-avatar-action { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.fy-settings-avatar-action .fy-btn { cursor: pointer; }
.fy-settings-avatar-action small { font-size: 11px; }
.fy-settings-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--fy-border); }
.fy-settings-login-hint { padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

/* 赛博朋克深色卡片（覆盖通用卡片，仅设置页内） */
.fy-settings-card { border-color: rgba(47, 218, 233, .42); border-radius: 7px; background: linear-gradient(145deg, #0d171e, #10202a); box-shadow: 4px 4px 0 rgba(247, 228, 121, .1), 0 0 22px rgba(47, 218, 233, .1); }
.fy-settings-card .fy-settings-input { border-color: rgba(47, 218, 233, .4); background: #0a1218; color: #d7e6e7; }
.fy-settings-card .fy-settings-input:focus { border-color: #2fdae9; box-shadow: 0 0 0 3px rgba(47, 218, 233, .15); }
.fy-settings-card .fy-settings-label { color: #91a6ad; }
.fy-settings-card .fy-settings-foot { border-top-color: rgba(47, 218, 233, .3); }
html[data-theme="light"] .fy-settings-card { border-color: #0e8299; background: linear-gradient(145deg, #f2fdfd, #e5f7f8); box-shadow: 4px 4px 0 rgba(201, 149, 0, .1), 0 0 18px rgba(8, 145, 178, .1); }
html[data-theme="light"] .fy-settings-card .fy-settings-input { border-color: #abd1d5; background: #ffffff; color: #203941; }
html[data-theme="light"] .fy-settings-card .fy-settings-input:focus { border-color: #0e8299; box-shadow: 0 0 0 3px rgba(8, 145, 178, .12); }
html[data-theme="light"] .fy-settings-card .fy-settings-label { color: #567078; }
html[data-theme="light"] .fy-settings-card .fy-settings-foot { border-top-color: #c9dfe2; }
@media (max-width: 768px) {
    .fy-settings-page { max-width: 100%; padding: 2px 0 8px; }
    .fy-settings-card { padding: 16px 15px 18px; }
    .fy-settings-row.is-avatar { flex-direction: column; }
}

/* ===== 微信风格聊天气泡（最终版）：自己绿色，对方青色线条 ===== */
.fy-chat-message .fy-chat-bubble { padding: 9px 13px; font-size: 14px; line-height: 1.55; word-break: break-word; }
.fy-chat-message.is-mine .fy-chat-bubble {
    border: 0;
    border-radius: 14px 14px 3px 14px;
    background: #95ec69;
    color: #16270c;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}
.fy-chat-message.is-mine .fy-chat-bubble a { color: #0a5a8a; }
.fy-chat-message:not(.is-mine) .fy-chat-bubble {
    border: 1px solid rgba(47, 218, 233, .55);
    border-left: 3px solid #2fdae9;
    border-radius: 14px 14px 14px 3px;
    background: rgba(255, 255, 255, .08);
    color: var(--fy-text-primary);
    box-shadow: none;
}
html[data-theme="light"] .fy-chat-message:not(.is-mine) .fy-chat-bubble { background: #ffffff; color: #243036; }
html[data-theme="light"] .fy-chat-message.is-mine .fy-chat-bubble { background: #95ec69; color: #16270c; }

/* ===== 消息中心移动端：微信风格列表 ===== */
@media (max-width: 768px) {
    .fy-message-page { padding: 0 2px; }
    .fy-message-summary { padding: 12px 13px; margin-bottom: 6px; border-radius: 12px; }
    .fy-message-tabs { gap: 18px; min-height: 40px; margin: 0 0 2px; overflow-x: auto; scrollbar-width: none; }
    .fy-message-tabs::-webkit-scrollbar { display: none; }
    .fy-message-tabs button { white-space: nowrap; }
    /* 好友消息 / 回复通知：去卡片、分隔线、微信式列表 */
    .fy-message-list { display: block; }
    .fy-message-list .fy-message-item {
        align-items: center; gap: 12px; margin: 0; padding: 13px 10px;
        border: 0; border-bottom: 1px solid var(--fy-border); border-radius: 0;
        background: transparent; box-shadow: none;
    }
    .fy-message-list .fy-message-item:first-child { border-top: 1px solid var(--fy-border); }
    .fy-message-list .fy-message-avatar { flex: 0 0 46px; width: 46px; height: 46px; font-size: 18px; border-radius: 9px; }
    .fy-message-list .fy-message-item-body { gap: 2px; }
    .fy-message-list .fy-message-item-head strong { font-size: 15px; }
    .fy-message-list .fy-message-item-head time { font-size: 11px; }
    .fy-message-list .fy-message-item p { margin: 4px 0 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fy-message-list .fy-message-post { margin-top: 6px; font-size: 12px; }
    /* 好友申请：保留紧凑卡片，便于操作按钮 */
    .fy-friend-request-message-list { display: grid; gap: 8px; margin-top: 6px; }
    .fy-friend-request-message-list .fy-message-item { padding: 13px 12px; border-radius: 12px; background: var(--fy-bg-card); border-bottom: 0; }
    .fy-friend-request-message-list .fy-message-item:first-child { border-top: 0; }
    .fy-friend-request-message-list .fy-message-avatar { flex-basis: 40px; width: 40px; height: 40px; font-size: 16px; }
}

/* ===== 聊天总览页（chat.php） ===== */
.fy-chat-page { width: 100%; max-width: none; margin: 0 auto; display: grid; gap: 12px; }
.fy-chat-tabs { display: flex; align-items: center; gap: 22px; min-height: 40px; margin: 0 4px; overflow-x: auto; scrollbar-width: none; color: var(--fy-text-secondary); font-size: 14px; border-bottom: 1px solid var(--fy-border); }
.fy-chat-tabs::-webkit-scrollbar { display: none; }
.fy-chat-tabs button { position: relative; padding: 9px 2px; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; white-space: nowrap; }
.fy-chat-tabs button.is-active { color: var(--fy-active); font-weight: 700; }
.fy-chat-tabs button.is-active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 99px; background: var(--fy-active); }
.fy-chat-tab-body { min-height: 40vh; }
.fy-chat-tab-panel { display: none; }
.fy-chat-tab-panel.is-active { display: block; }
.fy-chat-tab-list { display: flex; flex-direction: column; }
.fy-chat-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; border: 0; border-bottom: 1px solid var(--fy-border); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s; }
.fy-chat-row:last-child { border-bottom: 0; }
.fy-chat-row:active { background: color-mix(in srgb, var(--fy-active) 8%, transparent); }
.fy-chat-row-avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; overflow: hidden; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--fy-active), #14b8a6); font-size: 20px; border: 1px solid rgba(47, 218, 233, .5); }
.fy-chat-row-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fy-chat-row-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.fy-chat-row-copy strong { font-size: 15px; color: var(--fy-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fy-chat-row-copy small { font-size: 12px; color: var(--fy-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fy-chat-row-arrow { color: var(--fy-text-secondary); font-size: 14px; flex: 0 0 auto; }
.fy-chat-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 20px; text-align: center; color: var(--fy-text-secondary); }
.fy-chat-empty .fy-icon { font-size: 38px; color: var(--fy-active); }
.fy-chat-empty strong { font-size: 15px; color: var(--fy-text-primary); }
.fy-chat-empty small { font-size: 12px; }
.fy-chat-request { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-bottom: 1px solid var(--fy-border); }
.fy-chat-request .fy-chat-row-copy { flex: 1; }
.fy-chat-request-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.fy-chat-request-actions .fy-btn { min-width: 56px; padding: 6px 10px; font-size: 12px; }
.fy-chat-page-login { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; text-align: center; }
.fy-chat-page-login .fy-icon { font-size: 40px; color: var(--fy-active); }
.fy-chat-page-login strong { font-size: 16px; }
.fy-chat-page-login p { margin: 0; color: var(--fy-text-secondary); font-size: 13px; }
.fy-chat-page-head { display: none; }
@media (min-width: 769px) {
    .fy-chat-page-head { display: block; }
    .fy-chat-row:hover { background: color-mix(in srgb, var(--fy-active) 6%, transparent); }
}
@media (max-width: 768px) {
    .fy-chat-page { padding: 0 2px; }
    .fy-chat-tabs { gap: 18px; margin: 0 0 4px; }
    .fy-chat-row { padding: 13px 8px; }
    .fy-chat-row-avatar { flex-basis: 48px; width: 48px; height: 48px; }
    .fy-chat-row-copy strong { font-size: 16px; }
}

/* 个人中心快捷区：鼠标拖拽滑动 */

.fy-usercenter-shortcut-track:active { cursor: grabbing; }
.fy-usercenter-shortcut-track.is-dragging { user-select: none; -webkit-user-select: none; }

/* ===== 邀请福利页 ===== */
.fy-invite-page { width: 100%; max-width: 620px; margin: 0 auto; display: grid; gap: 14px; }
.fy-invite-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 26px 26px; overflow: hidden; text-align: center; border-color: rgba(47, 218, 233, .42); border-radius: 7px; background: linear-gradient(145deg, #0d171e, #10202a); box-shadow: 4px 4px 0 rgba(247, 228, 121, .1), 0 0 22px rgba(47, 218, 233, .1); }
.fy-invite-hero::before { content: ""; position: absolute; top: -60px; left: 50%; width: 320px; height: 180px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(47, 218, 233, .22), transparent 70%); pointer-events: none; }
.fy-invite-hero-badge { position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; color: #f7e479; font-size: 27px; background: rgba(47, 218, 233, .14); border: 2px solid rgba(47, 218, 233, .6); box-shadow: 0 0 0 4px rgba(47, 218, 233, .12), 0 0 22px rgba(47, 218, 233, .3); }
.fy-invite-hero h2 { position: relative; margin: 0; color: #eaf7f7; font-size: 22px; letter-spacing: .5px; }
.fy-invite-hero-sub { position: relative; margin: 0; color: #91a6ad; font-size: 13px; }
.fy-invite-hero-sub strong { color: #f7e479; }
.fy-invite-code { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 4px; }
.fy-invite-code small { color: #75939c; font-size: 11px; letter-spacing: 2px; }
.fy-invite-code strong { color: #f7e479; font-size: 34px; letter-spacing: 6px; line-height: 1.2; text-shadow: 0 0 16px rgba(247, 228, 121, .45); font-family: Consolas, Monaco, monospace; }
.fy-invite-link-box { position: relative; width: 100%; margin-top: 8px; padding: 14px 14px 12px; border: 1px solid rgba(47, 218, 233, .45); border-radius: 7px; background: rgba(10, 18, 24, .85); box-shadow: inset 0 0 18px rgba(47, 218, 233, .05); }
.fy-invite-link-label { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; color: #f7e479; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.fy-invite-link-label .fy-icon { font-size: 14px; }
.fy-invite-link-row { display: flex; align-items: stretch; gap: 8px; }
.fy-invite-link-row .fy-input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid rgba(47, 218, 233, .55); border-radius: 6px; color: #bff1f4; background: #0a1218; font-family: Consolas, Monaco, monospace; font-size: 13px; outline: none; }
.fy-invite-link-row .fy-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 10px 16px; border-radius: 6px; white-space: nowrap; }
.fy-invite-link-hint { display: block; margin-top: 9px; color: #6f8b92; font-size: 11px; text-align: left; }
html[data-theme="light"] .fy-invite-hero { background: linear-gradient(145deg, #f2fdfd, #e5f7f8); border-color: #0e8299; box-shadow: 4px 4px 0 rgba(201, 149, 0, .1), 0 0 18px rgba(8, 145, 178, .1); }
html[data-theme="light"] .fy-invite-hero h2 { color: #0f3942; }
html[data-theme="light"] .fy-invite-hero-sub { color: #567078; }
html[data-theme="light"] .fy-invite-hero-sub strong { color: #b07800; }
html[data-theme="light"] .fy-invite-code strong { color: #0e8299; text-shadow: none; }
html[data-theme="light"] .fy-invite-code small { color: #8aa3ab; }
html[data-theme="light"] .fy-invite-link-box { background: #ffffff; border-color: #b7d8dc; box-shadow: none; }
html[data-theme="light"] .fy-invite-link-label { color: #0e8299; }
html[data-theme="light"] .fy-invite-link-row .fy-input { color: #1d3a41; background: #f2fbfb; border-color: #c2dcdf; }
html[data-theme="light"] .fy-invite-link-hint { color: #8aa3ab; }
@media (max-width: 768px) {
    .fy-invite-page { max-width: 100%; padding: 2px 0 8px; }
    .fy-invite-hero { padding: 24px 15px 20px; }
    .fy-invite-code strong { font-size: 30px; }
    .fy-invite-link-row { flex-direction: column; }
    .fy-invite-link-row .fy-btn { justify-content: center; }
}

/* 消息列表整条可点 */
.fy-message-item[data-fy-open-chat], .fy-message-item[onclick] { cursor: pointer; }

/* ===== 每日签到：日期表 ===== */
.fy-checkin-page { display: grid; gap: 14px; max-width: 640px; margin: 0 auto; }
.fy-checkin-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fy-checkin-stat { padding: 15px 12px; text-align: center; }
.fy-checkin-stat strong { display: block; color: var(--fy-active); font-size: 24px; line-height: 1.2; }
.fy-checkin-stat span { color: var(--fy-text-secondary); font-size: 12px; }
.fy-checkin-cal { padding: 16px; }
.fy-checkin-cal-head { display: flex; justify-content: space-between; align-items: center; color: var(--fy-text-primary); font-weight: 700; margin-bottom: 12px; }
.fy-checkin-cal-legend { display: inline-flex; align-items: center; gap: 5px; color: var(--fy-text-secondary); font-size: 11px; font-weight: 400; }
.fy-checkin-legend-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(47, 218, 233, .75); box-shadow: 0 0 6px rgba(47, 218, 233, .6); }
.fy-checkin-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fy-checkin-cal-dow { text-align: center; color: var(--fy-text-secondary); font-size: 11px; padding: 4px 0; }
.fy-checkin-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 46px; border: 1px solid var(--fy-border); border-radius: 7px; color: var(--fy-text-secondary); font-size: 13px; box-sizing: border-box; }
.fy-checkin-day small { color: #f7e479; font-size: 10px; line-height: 1; }
.fy-checkin-day.is-signed { border-color: rgba(47, 218, 233, .55); background: rgba(47, 218, 233, .07); color: var(--fy-text-primary); box-shadow: 0 0 10px rgba(47, 218, 233, .12); }
.fy-checkin-day.is-today { outline: 2px solid var(--fy-active); outline-offset: 1px; }
.fy-checkin-day.is-empty { border-color: transparent; }
.fy-checkin-table-wrap { padding: 6px 6px 10px; overflow-x: auto; }
.fy-checkin-table-head { padding: 14px 12px 8px; color: var(--fy-text-primary); font-weight: 700; font-size: 14px; }
.fy-checkin-table-empty { padding: 26px 12px; text-align: center; color: var(--fy-text-secondary); font-size: 13px; }
.fy-checkin-table { width: 100%; border-collapse: collapse; }
.fy-checkin-table th { text-align: left; color: var(--fy-text-secondary); font-size: 12px; font-weight: 400; padding: 9px 12px; border-bottom: 1px solid var(--fy-border); }
.fy-checkin-table td { padding: 9px 12px; font-size: 13px; color: var(--fy-text-primary); border-bottom: 1px solid var(--fy-border); }
.fy-checkin-table td .fy-icon { color: var(--fy-active); margin-right: 4px; }
.fy-checkin-table tr:last-child td { border-bottom: 0; }
.fy-checkin-points { color: #f7e479; font-weight: 700; }
html[data-theme="light"] .fy-checkin-day small { color: #b07800; }
html[data-theme="light"] .fy-checkin-day.is-signed { border-color: #6fc7d6; background: rgba(14, 130, 153, .06); box-shadow: none; }
html[data-theme="light"] .fy-checkin-points { color: #b07800; }
html[data-theme="light"] .fy-checkin-legend-dot { background: #0e8299; box-shadow: none; }
@media (max-width: 768px) {
    .fy-checkin-page { max-width: 100%; }
    .fy-checkin-day { height: 42px; }
}

/* ===== 个人中心子页面宽度统一 ===== */
.fy-points-page, .fy-follow-page, .fy-favorites-page, .fy-user-posts-page,
.fy-history-page, .fy-checkin-page, .fy-invite-page, .fy-settings-page,
.fy-aiz-orders-page, .fy-ledger-wrap, .fy-plugin-grid,
.fy-management-page, .fy-chat-page, .fy-message-page {
  width: 100%; max-width: none; margin-left: auto; margin-right: auto;
}
/* 聊天窗口保持通栏 */
.fy-message-page.fy-central-chat-page { max-width: none; }
/* 子页面页头与内容同宽 */
.fy-page-head { max-width: none; margin-left: auto; margin-right: auto; }
/* 签到分页控件 */
.fy-checkin-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 12px 6px; flex-wrap: wrap; }
.fy-checkin-pager-btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 13px; border: 1px solid var(--fy-border); border-radius: 6px; color: var(--fy-text-primary); font-size: 13px; background: var(--fy-bg-card); transition: all .2s; }
.fy-checkin-pager-btn:hover { border-color: rgba(47, 218, 233, .6); color: #f7e479; box-shadow: 0 0 8px rgba(47, 218, 233, .15); }
.fy-checkin-pager-info { color: var(--fy-text-secondary); font-size: 12px; }
@media (max-width: 768px) {
  .fy-points-page, .fy-follow-page, .fy-favorites-page, .fy-user-posts-page,
  .fy-history-page, .fy-checkin-page, .fy-invite-page, .fy-settings-page,
  .fy-aiz-orders-page, .fy-ledger-wrap, .fy-plugin-grid,
  .fy-management-page, .fy-chat-page, .fy-message-page { max-width: none; }
  .fy-page-head { max-width: none; }
  .fy-checkin-pager { justify-content: center; }
}

/* 关注按钮：极简 + / ✓（无背景） */
.fy-sidebar-follow-action { width: 18px !important; height: 18px !important; flex-basis: 18px !important; margin-left: 2px; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: #2d7ff9 !important; font-size: 18px !important; font-weight: 700; line-height: 1 !important; }
.fy-sidebar-follow-action:hover, .fy-sidebar-follow-action:focus-visible { filter: none !important; transform: none !important; outline: none !important; opacity: .7; }
.fy-sidebar-follow-action.is-followed { color: #ff8a8a !important; }

/* 隐藏消息中心摘要卡 */
.fy-message-summary { display: none !important; }

/* 快捷区小圆点居中 */
.fy-usercenter-slider-dots { justify-content: center !important; align-items: center; gap: 6px; }

/* ===== 左侧关注/功能列表：当前中间页面对应菜单提亮 ===== */
.fy-sidebar-board.is-active { border-color: color-mix(in srgb, var(--fy-active) 70%, var(--fy-border)); background: color-mix(in srgb, var(--fy-active) 13%, var(--fy-bg-card)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fy-active) 35%, transparent), 0 8px 20px rgba(15,23,42,.12); }
.fy-sidebar-board.is-active { position: relative; }
.fy-sidebar-board.is-active::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 3px; border-radius: 2px; background: var(--fy-active); box-shadow: 0 0 8px var(--fy-active); }
.fy-sidebar-board.is-active .fy-sidebar-board-icon { color: var(--fy-active); background: color-mix(in srgb, var(--fy-active) 28%, var(--fy-bg-primary)); box-shadow: 0 0 12px color-mix(in srgb, var(--fy-active) 45%, transparent); }
.fy-sidebar-board.is-active .fy-sidebar-board-copy strong { color: var(--fy-active); }
.fy-sidebar-board.is-active .fy-sidebar-board-copy small { color: var(--fy-text-secondary); }

/* ===== 发布/编辑/详情页顶部工具条（返回按钮）· 夜之城风格 ===== */
.fy-bbs-detail-topbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 18px; }
.fy-bbs-detail-topbar .fy-bbs-back-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; font-size:14px; font-weight:600; text-decoration:none; color:#00f0ff; background:rgba(0,240,255,.06); border:1px solid rgba(0,240,255,.45); clip-path:polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px); transition:.18s; }
.fy-bbs-detail-topbar .fy-bbs-back-btn .fy-icon { display:inline-flex; }
.fy-bbs-detail-topbar .fy-bbs-back-btn:hover { color:#fce300; border-color:rgba(252,227,0,.6); box-shadow:0 0 14px rgba(0,240,255,.35); }
.fy-bbs-detail-topbar .fy-bbs-detail-label { margin-left:auto; font-size:11px; letter-spacing:.2em; padding:4px 12px; color:#fce300; border:1px solid rgba(252,227,0,.4); background:rgba(252,227,0,.05); clip-path:polygon(4px 0,100% 0,calc(100% - 4px) 100%,0 100%); }
[data-theme="light"] .fy-bbs-detail-topbar .fy-bbs-back-btn { color:#00a8c8; background:rgba(0,168,200,.06); border-color:rgba(0,168,200,.5); }
[data-theme="light"] .fy-bbs-detail-topbar .fy-bbs-back-btn:hover { color:#a87200; border-color:rgba(232,168,0,.6); }
[data-theme="light"] .fy-bbs-detail-topbar .fy-bbs-detail-label { color:#e8a800; border-color:rgba(232,168,0,.5); background:rgba(232,168,0,.05); }

/* ===== 聊天加载失败重试 ===== */
.fy-chat-retry {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 34px 16px; text-align: center; color: var(--fy-text-secondary); font-size: 13px;
}
.fy-chat-retry .fy-icon { font-size: 28px; color: #8b9bb0; }
.fy-chat-retry strong { font-size: 14px; color: var(--fy-text-primary); }
.fy-chat-retry .fy-btn { margin-top: 8px; }

/* ===== 移动端底部导航聊天角标：向右下位移，避免贴住导航条边缘 ===== */
.fy-mobile-nav-item a .fy-badge {
    top: 4px;
    right: 12px;
}

/* ===== 关注列表自定义排序箭头 ===== */
.fy-sidebar-order-btns { display: inline-flex; flex-direction: column; gap: 2px; margin-left: 4px; vertical-align: middle; flex: 0 0 auto; align-self: center; }
.fy-sidebar-order-btn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 13px; padding: 0; border: 1px solid rgba(57,231,245,.35); border-radius: 3px; background: transparent; color: #39e7f5; cursor: pointer; line-height: 1; font-size: 10px; transition: all .15s ease; }
.fy-sidebar-order-btn:hover { background: rgba(57,231,245,.16); border-color: #39e7f5; color: #fce300; }
.fy-sidebar-order-btn:active { transform: scale(.9); }
[data-theme="light"] .fy-sidebar-order-btn { border-color: rgba(0,120,140,.35); color: #00788c; }
[data-theme="light"] .fy-sidebar-order-btn:hover { background: rgba(0,120,140,.12); border-color: #00788c; color: #d97b00; }
/* ===== 聊天未读角标（PC 左侧聊天 tab / 系统消息行）+ 系统公告列表 ===== */
.fy-sidebar-tab-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff2b6d, #ff6a2b);
    box-shadow: 0 0 8px rgba(255, 43, 109, .65);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    z-index: 5;
    pointer-events: none;
}
.fy-sidebar-system-row {
    min-height: 48px;
    border-bottom: 1px dashed rgba(57, 231, 245, .18);
    margin-bottom: 2px;
}
.fy-sidebar-system-row .fy-sidebar-board-icon { flex-basis: 34px; width: 34px; height: 34px; background: linear-gradient(135deg, rgba(57,231,245,.18), rgba(255,43,109,.12)); }
.fy-sidebar-system-badge {
    flex: 0 0 auto;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff2b6d, #ff6a2b);
    box-shadow: 0 0 8px rgba(255, 43, 109, .6);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
    margin-left: 8px;
}
.fy-chat-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px;
    border: 1px solid rgba(57, 231, 245, .22);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(57,231,245,.07), rgba(255,43,109,.05));
    margin-bottom: 10px;
}
.fy-chat-notice-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(57,231,245,.22), rgba(255,43,109,.16));
    color: #39e7f5;
    font-size: 18px;
}
.fy-chat-notice-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fy-chat-notice-copy strong { font-size: 14px; color: var(--fy-text-primary, #e6f6ff); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.fy-chat-notice-copy small { font-size: 11px; color: var(--fy-text-tertiary, rgba(160,180,200,.75)); }
[data-theme="light"] .fy-chat-notice { border-color: rgba(0,120,140,.25); background: linear-gradient(135deg, rgba(0,120,140,.06), rgba(200,80,0,.05)); }
[data-theme="light"] .fy-chat-notice-icon { background: linear-gradient(135deg, rgba(0,120,140,.16), rgba(200,80,0,.12)); color: #00788c; }

/* 聊天分类/会话未读角标（手机版聊天总览页） */
.fy-chat-tab-badge { position: absolute; top: 3px; right: -11px; min-width: 16px; height: 16px; padding: 0 4px;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 99px;
    background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; line-height: 1;
    box-shadow: 0 0 6px rgba(239,68,68,.6); }
.fy-chat-tab-badge[hidden] { display: none; }
.fy-chat-row-badge { flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 99px; background: #ef4444; color: #fff;
    font-size: 11px; font-weight: 700; line-height: 1; box-shadow: 0 0 8px rgba(239,68,68,.55); }
[data-theme="light"] .fy-chat-row-badge, [data-theme="light"] .fy-chat-tab-badge { background: #dc2626; }

/* 个人中心：管理员头衔徽章 + 管理员功能分区 */
.fy-usercenter-admin-badge { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 9px;
    font-size: 11px; font-weight: 700; line-height: 1.4; color: #06222b; vertical-align: middle;
    background: linear-gradient(90deg, #00e5ff, #7df3ff); border-radius: 3px;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
[data-theme="light"] .fy-usercenter-admin-badge { color: #04323f; }
.fy-usercenter-menu-divider { padding: 14px 6px 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em;
    color: var(--fy-text-secondary); border-top: 1px dashed var(--fy-border); margin-top: 4px; }

/* 楼中楼回复（抖音式）：评论下缩进展示回复，支持回复评论/回复回复 */
.fy-comment-actions { margin-top: 6px; }
.fy-comment-reply-btn { padding: 3px 10px; font-size: 12px; color: var(--fy-text-secondary);
    background: transparent; border: 1px solid var(--fy-border); border-radius: 3px; cursor: pointer; transition: .2s; }
.fy-comment-reply-btn:hover { color: var(--fy-active); border-color: var(--fy-active); box-shadow: 0 0 8px color-mix(in srgb, var(--fy-active) 30%, transparent); }
.fy-comment-replies { margin: 10px 0 2px 10px; padding-left: 12px; border-left: 2px solid var(--fy-border);
    display: flex; flex-direction: column; gap: 8px; }
.fy-comment-reply-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 6px;
    background: color-mix(in srgb, var(--fy-bg-primary) 55%, transparent); border: 1px solid var(--fy-border); }
[data-theme="light"] .fy-comment-reply-item { background: rgba(17, 34, 51, .03); }
.fy-comment-avatar-sm { flex: 0 0 30px; width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
.fy-comment-reply-target { color: var(--fy-active); font-weight: 600; }
.fy-comment-replying { display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin-bottom: 8px;
    font-size: 12px; color: var(--fy-active); background: color-mix(in srgb, var(--fy-active) 10%, transparent);
    border: 1px dashed var(--fy-active); border-radius: 4px; }
.fy-comment-replying b { font-weight: 700; }
.fy-comment-replying button { margin-left: auto; padding: 2px 10px; font-size: 12px; color: var(--fy-text-secondary);
    background: transparent; border: 1px solid var(--fy-border); border-radius: 3px; cursor: pointer; }
.fy-comment-replying button:hover { color: var(--fy-danger, #ff2b6d); border-color: var(--fy-danger, #ff2b6d); }
@media (max-width: 768px) {
    .fy-comment-replies { margin-left: 4px; padding-left: 8px; }
}

/* 底部导航：按钮均匀分布，大屏通栏不聚拢（覆盖 max-width:520px 居中限制） */
@media (max-width:768px) {
    .fy-mobile-nav-inner { max-width:none !important; margin:0 !important; }
    .fy-mobile-nav-item { flex:1 1 0; display:flex; justify-content:center; min-width:0; }
    .fy-mobile-nav-item a { width:100%; max-width:96px; }
    /* 四入口共用一个移动端页面壳；切换只替换主内容，底栏始终常驻。 */
    .fy-app, .fy-main { min-height:calc(100dvh - 52px - env(safe-area-inset-bottom)); }
    .fy-mobile-nav { contain:layout paint; transform:translateZ(0); }
}

/* 用户资料弹窗：私聊 + 添加好友并排，非好友单条限制提示 */
.fy-friend-profile-actions-row { display:flex; gap:8px; width:100%; }
.fy-friend-profile-actions-row .fy-btn { flex:1; }
.fy-friend-nonfriend-tip { margin:9px 0 0; font-size:12px; line-height:1.6; color:var(--fy-text-secondary);
    padding:8px 10px; border:1px dashed var(--fy-border); border-radius:6px; background:color-mix(in srgb, var(--fy-active) 6%, transparent); }
.fy-chat-nonfriend-tip { padding:8px 12px; margin-bottom:10px; font-size:12px; color:var(--fy-active);
    background:color-mix(in srgb, var(--fy-active) 8%, transparent); border:1px dashed var(--fy-active); border-radius:6px; }

/* ===== 微信式气泡：自己发的消息为绿色背景，对方保持原样，一眼区分 ===== */
.fy-chat-message.is-mine .fy-chat-bubble,
.fy-chat-shell .fy-chat-message.is-mine .fy-chat-bubble {
    border-color: #07c160;
    background: #07c160;
    color: #fff;
    box-shadow: 0 1px 4px rgba(7, 193, 96, .35);
}
html[data-theme="light"] .fy-chat-message.is-mine .fy-chat-bubble,
html[data-theme="light"] .fy-chat-shell .fy-chat-message.is-mine .fy-chat-bubble {
    border-color: #95ec69;
    background: #95ec69;
    color: #14240a;
    box-shadow: 0 1px 4px rgba(149, 236, 105, .45);
}

/* ===== 微信式气泡：自己发的消息为绿色背景，对方保持原样，一眼区分 ===== */
.fy-chat-message.is-mine .fy-chat-bubble,
.fy-chat-shell .fy-chat-message.is-mine .fy-chat-bubble {
    border-color: #07c160;
    background: #07c160;
    color: #fff;
    box-shadow: 0 1px 4px rgba(7, 193, 96, .35);
}
html[data-theme="light"] .fy-chat-message.is-mine .fy-chat-bubble,
html[data-theme="light"] .fy-chat-shell .fy-chat-message.is-mine .fy-chat-bubble {
    border-color: #95ec69;
    background: #95ec69;
    color: #14240a;
    box-shadow: 0 1px 4px rgba(149, 236, 105, .45);
}

/* 左侧栏：用户设为首页的板块名称后的小房子徽章 */
.fy-sidebar-home-badge { display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; margin-left:6px; vertical-align:-2px; border-radius:4px; color:#7a4d0b; background:linear-gradient(135deg,#fde68a,#f0b429); border:1px solid rgba(170,110,20,.5); font-size:10px; line-height:1; box-shadow:0 1px 3px rgba(0,0,0,.2); flex:none; }
.fy-sidebar-home-badge .fy-icon { font-size:10px; line-height:1; }


/* ============================================================
   聊天面板：点击好友/群聊后当前页立即滑出聊天框架，消息异步加载
   ============================================================ */
.fy-chat-panel-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(2, 8, 18, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    display: flex; justify-content: flex-end; align-items: stretch;
    opacity: 0; visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.fy-chat-panel-overlay.show { opacity: 1; visibility: visible; }
.fy-chat-panel {
    width: min(440px, 100vw); height: 100%;
    background: var(--fy-bg-primary, #0b1220);
    display: flex; flex-direction: column;
    box-shadow: -10px 0 36px rgba(0, 0, 0, .5);
    transform: translateX(102%);
    transition: transform .26s cubic-bezier(.23, 1, .32, 1);
}
.fy-chat-panel-overlay.show .fy-chat-panel { transform: translateX(0); }
.fy-chat-panel-bar {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-bottom: 1px solid var(--fy-border, #22304a);
}
.fy-chat-panel-title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #39e7f5; }
.fy-chat-panel-close {
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--fy-border, #22304a); border-radius: 6px;
    color: var(--fy-text-secondary, #8b96ad); cursor: pointer; transition: .2s; font-size: 15px;
}
.fy-chat-panel-close:hover { color: #ff5252; border-color: #ff5252; }
/* 面板内聊天框撑满剩余高度 */
.fy-chat-panel .fy-central-chat-page { flex: 1; min-height: 0; display: flex; flex-direction: column; max-width: none; }
.fy-chat-panel .fy-central-chat-page .fy-chat-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; border-radius: 0; }
.fy-chat-panel .fy-central-chat-card { flex: 1; min-height: 0 !important; display: flex; flex-direction: column; }
.fy-chat-panel .fy-central-chat-card .fy-chat-list { flex: 1; min-height: 0 !important; max-height: none !important; }
@media (max-width: 767px) {
    .fy-chat-panel-overlay { justify-content: flex-start; bottom: calc(76px + env(safe-area-inset-bottom)); }
    .fy-chat-panel { width: 100vw; height: 100%; }
    .fy-chat-panel .fy-central-chat-page { height: auto !important; padding-bottom: 0 !important; }
}
html[data-theme="light"] .fy-chat-panel { background: #f2f7f9; }

/* 面板内：输入区贴底，不受整页底部导航预留影响 */
.fy-chat-panel .fy-central-chat-card .fy-chat-form { bottom: 10px !important; }



/* ===== 手机版设置页重新排版：头像居中、字段加大、保存全宽 ===== */
@media (max-width: 767px) {
    .fy-settings-row.is-avatar { align-items: center; text-align: center; }
    .fy-settings-avatar-box { align-items: center; }
    .fy-settings-avatar-action { align-items: center; }
    .fy-settings-avatar { width: 96px; height: 96px; font-size: 38px; }
    .fy-settings-input { padding: 12px 14px; font-size: 15px; border-radius: 10px; }
    .fy-settings-foot .fy-btn { flex: 1; justify-content: center; }
    .fy-settings-card { border-radius: 14px; }
}

/* ===== 底部音乐主控按钮（移动端：功能与消息之间，播放后显示） ===== */
@media (max-width:768px){
    .fy-music-nav-dock{position:relative;}
    .fy-music-nav-main{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:100%;height:100%;background:none;border:none;cursor:pointer;color:var(--fy-text-secondary);padding:0;}
    .fy-music-nav-icon{width:38px;height:38px;margin-top:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:16px;color:#fff;background:linear-gradient(135deg,var(--fy-active,#6c5ce7),#39e7f5);box-shadow:0 0 12px rgba(57,231,245,.45);transition:transform .25s,box-shadow .25s;flex:0 0 auto;}
    .fy-music-nav-icon .fy-icon{color:#fff;}
    .fy-music-nav-icon.is-playing{animation:fyMusicNavSpin 3.2s linear infinite;}
    @keyframes fyMusicNavSpin{to{transform:rotate(360deg);}}
    .fy-music-nav-label{display:none !important;}
    /* 音乐主控图标允许向上溢出导航顶边，解除导航容器的 paint 裁剪 */
    .fy-mobile-nav{contain:none;}
    /* 弹出菜单（导航上方横排 5 键） */
    .fy-music-nav-pop{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(60px + env(safe-area-inset-bottom) + 14px);z-index:9800;display:flex;gap:8px;padding:10px 12px;border-radius:18px;background:rgba(8,14,24,.95);border:1px solid rgba(57,231,245,.5);box-shadow:0 10px 34px rgba(0,0,0,.5),0 0 22px rgba(57,231,245,.18);}
    .fy-music-nav-pop[hidden]{display:none;}
    .fy-music-nav-pop-btn{width:46px;height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:14px;border:1px solid var(--fy-border);background:var(--fy-bg-secondary);color:var(--fy-text-primary);font-size:17px;cursor:pointer;text-decoration:none;transition:.15s;padding:0;}
    .fy-music-nav-pop-btn small{font-size:9px;color:var(--fy-text-muted);line-height:1;white-space:nowrap;}
    .fy-music-nav-pop-btn:hover{border-color:#39e7f5;color:#39e7f5;box-shadow:0 0 10px rgba(57,231,245,.3);}
    .fy-music-nav-pop-btn.is-toggle{background:linear-gradient(135deg,var(--fy-active,#6c5ce7),#39e7f5);border-color:transparent;color:#fff;}
    .fy-music-nav-pop-btn.is-toggle small{color:rgba(255,255,255,.85);}
    [data-theme="light"] .fy-music-nav-pop{background:rgba(244,251,255,.97);border-color:rgba(8,145,178,.5);box-shadow:0 10px 30px rgba(0,0,0,.18);}
    /* 播放列表浮层 */
    .fy-music-nav-queue{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(60px + env(safe-area-inset-bottom) + 82px);z-index:9800;width:min(320px,calc(100% - 28px));max-height:320px;display:flex;flex-direction:column;background:rgba(8,14,24,.96);border:1px solid rgba(57,231,245,.5);border-radius:16px;box-shadow:0 10px 34px rgba(0,0,0,.5),0 0 22px rgba(57,231,245,.15);overflow:hidden;}
    .fy-music-nav-queue[hidden]{display:none;}
    .fy-music-nav-queue-head{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px dashed var(--fy-border);font-size:13px;color:var(--fy-text-primary);}
    .fy-music-nav-queue-close{margin-left:auto;border:none;background:none;color:var(--fy-text-muted);font-size:16px;cursor:pointer;padding:0 4px;line-height:1;}
    .fy-music-nav-queue-close:hover{color:var(--fy-danger);}
    .fy-music-nav-queue-list{overflow-y:auto;padding:4px 0;max-height:250px;}
    .fy-music-nav-queue-item{display:flex;align-items:center;gap:8px;padding:9px 12px;font-size:12px;color:var(--fy-text-secondary);cursor:pointer;transition:background .15s;}
    .fy-music-nav-queue-item:hover{background:var(--fy-hover);}
    .fy-music-nav-queue-item.is-active{color:#39e7f5;background:rgba(57,231,245,.08);}
    .fy-music-nav-queue-item em{font-style:normal;font-size:10px;color:#52c41a;margin-left:auto;flex:0 0 auto;}
    .fy-music-nav-queue-del{border:none;background:none;color:var(--fy-text-muted);font-size:15px;cursor:pointer;padding:0 4px;line-height:1;flex:0 0 auto;transition:color .15s;}
    .fy-music-nav-queue-del:hover{color:var(--fy-danger);}
    .fy-music-nav-queue-idx{flex:0 0 18px;font-size:11px;color:var(--fy-text-muted);}
    .fy-music-nav-queue-title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .fy-music-nav-queue-empty{padding:18px 16px;text-align:center;font-size:12px;color:var(--fy-text-muted);}
    [data-theme="light"] .fy-music-nav-queue{background:rgba(244,251,255,.98);border-color:rgba(8,145,178,.5);}
}
