/* 主页（用户侧）：明亮赛博建造蓝图，与登录页/后台同一设计语言。
   body 主题通过 .home-mode 挂载/摘除，避免影响登录页与后台。 */

body.home-mode {
    min-height: 100vh;
    background:
        radial-gradient(1000px 620px at 82% -10%, rgba(74, 125, 255, .16), transparent 62%),
        radial-gradient(880px 560px at -6% 106%, rgba(0, 194, 255, .13), transparent 60%),
        radial-gradient(700px 480px at 108% 88%, rgba(122, 92, 255, .08), transparent 55%),
        linear-gradient(160deg, #f4f8ff 0%, #eaf1fb 55%, #eef3fc 100%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body.home-mode button { cursor: pointer; font-family: inherit; }
body.home-mode :focus-visible { outline: 2px solid rgba(47, 107, 255, .55); outline-offset: 4px; }

/* ── 背景氛围：网格 + 柔光球（对应登录页 bg-grid/bg-orb） ── */
.ambient-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-light::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(47, 107, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 107, 255, .06) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(120% 95% at 50% 42%, #000 35%, transparent 100%);
    mask-image: radial-gradient(120% 95% at 50% 42%, #000 35%, transparent 100%);
}

.light-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }

.orb1 {
    width: 56vw; height: 56vw;
    top: -18vh; right: -12vw;
    background: rgba(74, 125, 255, .32);
    animation: home-orb 12s ease-in-out infinite;
}
.orb2 {
    width: 46vw; height: 46vw;
    bottom: -14vh; left: -8vw;
    background: rgba(0, 194, 255, .26);
    animation: home-orb 15s .8s ease-in-out infinite reverse;
}

@keyframes home-orb {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(16px, -20px, 0) scale(1.05); }
}

/* ── 角落导航：主页 / 社区 / 个人中心 ─────────── */
.zen-corner {
    position: fixed;
    top: 22px;
    right: 24px;
    z-index: 40;
    display: flex;
    gap: 10px;
}

.zen-corner a {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--ink-2);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px) saturate(1.15);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    border: 1px solid rgba(47, 107, 255, .16);
    transition: all 0.25s ease;
}

.zen-corner a:hover, .zen-corner a.active {
    color: var(--blue);
    background: #fff;
    border-color: rgba(47, 107, 255, .42);
    box-shadow: 0 6px 18px rgba(47, 107, 255, .14);
}

/* ── 中央趣味区 ─────────────────────────────── */
.zen-page {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.fun-area {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.geometric-playground {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* 旋转的几何图形（蓝图描边） */
.shapes {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape {
    position: absolute;
    border: 2px solid rgba(47, 107, 255, .18);
    animation: rotateSlow 20s infinite linear;
}

.shape-1 {
    width: 160px; height: 160px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border-color: rgba(47, 107, 255, .24);
    animation-duration: 25s;
    animation-direction: reverse;
}

.shape-2 {
    width: 120px; height: 120px;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    border-color: rgba(0, 194, 255, .26);
    animation-duration: 18s;
}

.shape-3 {
    width: 80px; height: 80px;
    border-radius: 40% 60% 40% 60% / 60% 40% 60% 40%;
    border-color: rgba(122, 92, 255, .28);
    animation-duration: 12s;
    animation-direction: alternate;
}

.center-dot {
    width: 8px; height: 8px;
    background: var(--blue);
    opacity: .55;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 20px rgba(47, 107, 255, .4);
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 问候语 + 打字光标 */
.greeting { margin-top: 1rem; }

.greeting-text {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--ink-2);
    letter-spacing: 2px;
    border-right: 2px solid rgba(47, 107, 255, .45);
    padding-right: 8px;
    animation: blinkCursor 1.5s step-end infinite;
    /* 每 10 秒轮换时的淡出淡入 */
    transition: opacity .4s ease, transform .4s ease;
}

.greeting-text.is-leaving { opacity: 0; transform: translateY(5px); }

@keyframes blinkCursor {
    0%, 100% { border-color: rgba(47, 107, 255, .45); }
    50% { border-color: transparent; }
}

/* 波浪点 */
.wave-line { display: flex; gap: 8px; margin-top: 0.5rem; }

.wave-dot {
    width: 4px; height: 4px;
    background: rgba(47, 107, 255, .25);
    border-radius: 50%;
    animation: wavePulse 1.8s infinite ease-in-out;
}

.wave-dot:nth-child(1) { animation-delay: 0s; }
.wave-dot:nth-child(2) { animation-delay: 0.2s; }
.wave-dot:nth-child(3) { animation-delay: 0.4s; }
.wave-dot:nth-child(4) { animation-delay: 0.6s; }
.wave-dot:nth-child(5) { animation-delay: 0.8s; }

@keyframes wavePulse {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); background: rgba(47, 107, 255, .55); }
}

/* 实时时钟 */
.time-widget {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #9db1d4;
    font-feature-settings: "tnum";
    letter-spacing: 1px;
}

/* ── 底部：分隔线 + 品牌胶囊 ────────────────── */
.zen-footer {
    width: 100%;
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    background: linear-gradient(to top, rgba(244, 248, 255, 0.95) 0%, transparent 100%);
    position: relative;
    z-index: 10;
}

.zen-footer::before {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 107, 255, 0.3), transparent);
    margin: 0 auto 1rem auto;
}

.zen-brand-pill {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--ink-2);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px) saturate(1.15);
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    border: 1px solid rgba(47, 107, 255, 0.16);
    transition: all 0.25s ease;
    line-height: 1.5;
}

a.zen-brand-pill:hover {
    color: var(--blue);
    background: #fff;
    border-color: rgba(47, 107, 255, 0.42);
    box-shadow: 0 6px 18px rgba(47, 107, 255, 0.14);
}

/* ── 悬浮按钮：我有一个想法（登录按钮同款渐变） ── */
.idea-fab {
    position: fixed;
    right: 26px;
    bottom: 96px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 21px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 10px 24px rgba(47, 107, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: all 0.25s ease;
}

.idea-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(47, 107, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.idea-fab svg { width: 16px; height: 16px; }

/* ── 按钮体系 ───────────────────────────────── */
.hub-button {
    padding: 11px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(47, 107, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: all 0.25s ease;
}

.hub-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(47, 107, 255, .36), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.hub-button:disabled { opacity: 0.55; cursor: not-allowed; }

.idea-btn-plain {
    padding: 11px 20px;
    border: 1px solid rgba(47, 107, 255, .2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .7);
    color: var(--ink-2);
    font-size: 13px;
    transition: all 0.25s ease;
}

.idea-btn-plain:hover {
    background: rgba(47, 107, 255, .08);
    border-color: rgba(47, 107, 255, .42);
    color: var(--blue);
}

/* ── 想法提交弹窗 ───────────────────────────── */
.idea-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(22, 36, 74, 0.34);
    backdrop-filter: blur(4px);
    animation: idea-fade 0.2s ease;
}

@keyframes idea-fade { from { opacity: 0; } }

.idea-modal {
    position: relative;
    width: min(520px, 100%);
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 30px 70px rgba(38, 70, 160, .22), 0 6px 18px rgba(38, 70, 160, .10);
    animation: page-in 0.26s ease;
}

/* HUD 角框（登录卡同款，纯 CSS 四角） */
.idea-modal::after, .me-hero::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(var(--blue), var(--blue)) 0 0 / 18px 2.5px no-repeat,
        linear-gradient(var(--blue), var(--blue)) 0 0 / 2.5px 18px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 18px 2.5px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 2.5px 18px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) 0 100% / 18px 2.5px no-repeat,
        linear-gradient(var(--cyan), var(--cyan)) 0 100% / 2.5px 18px no-repeat,
        linear-gradient(var(--blue), var(--blue)) 100% 100% / 18px 2.5px no-repeat,
        linear-gradient(var(--blue), var(--blue)) 100% 100% / 2.5px 18px no-repeat;
}

.idea-modal-tag {
    margin: 0;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--cyan-deep);
}

.idea-modal-title { margin: 8px 0 0; font-size: 20px; font-weight: 700; letter-spacing: 2px; color: var(--ink); }
.idea-modal-sub { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; }

.idea-field { margin-top: 18px; }
.idea-field label { display: block; margin-bottom: 8px; font-size: 12px; color: var(--ink-2); }
.idea-field label em { margin-left: 8px; font-style: normal; font-size: 10px; color: #a9b8d4; }

.idea-input, .idea-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dbe4f3;
    border-radius: 12px;
    background: rgba(255, 255, 255, .75);
    color: var(--ink);
    font-size: 13px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.idea-input:focus, .idea-textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .15);
}

.idea-textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.idea-textarea::placeholder, .idea-input::placeholder { color: #aab6cf; }

/* ── 配图上传：待传缩略图 + 添加按钮 ─────────── */
.idea-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }

.idea-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(47, 107, 255, .18);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.idea-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.idea-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink-2);
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.idea-thumb-remove:hover { background: #e5484d; color: #fff; }

.idea-upload-row { margin-top: 8px; }

/* 展示侧：想法配图缩略行（个人中心/后台详情共用） */
.idea-shots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.idea-shots a {
    display: block;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(47, 107, 255, .16);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.idea-shots a:hover { border-color: rgba(47, 107, 255, .45); transform: translateY(-2px); }

.idea-shots img { width: 100%; height: 100%; object-fit: cover; display: block; }

.idea-error { margin: 10px 0 0; min-height: 1em; color: #e5484d; font-size: 11px; }

.idea-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ── 个人中心（明亮蓝图延展） ─────────────────── */
.me-wrap {
    flex: 1;
    width: min(980px, calc(100% - 32px));
    margin: 84px auto 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.me-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 18px 46px rgba(38, 70, 160, .10);
    animation: home-rise 0.45s ease both;
}

.me-hero-meta { min-width: 0; }

/* hero 头像按钮：悬停浮出"更换头像"提示 */
.me-avatar-btn {
    position: relative;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
}
.me-avatar-hint {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--blue);
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.me-avatar-btn:hover .me-avatar-hint,
.me-avatar-btn:focus-visible .me-avatar-hint { opacity: 1; }
.me-avatar-btn .adm-avatar { border-radius: 50%; }

.me-hero-name {
    margin: 0;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
}

.me-hero-role {
    margin: 8px 0 0;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--cyan-deep);
}

.me-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
    flex: 1;
}

.me-side, .me-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.me-card {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    box-shadow: 0 14px 40px rgba(38, 70, 160, .08);
    min-width: 0;
    animation: home-rise 0.45s ease both;
}

.me-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.me-card-head h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--ink); }
.me-card-head .dc-muted { font-size: 10px; }

.dc-muted { color: var(--ink-3); }

/* minmax(0,1fr) 钉死列轨不超容器：否则隐式轨道被最宽一行撑大，整组行溢出卡片边框 */
.me-rows { display: grid; grid-template-columns: minmax(0, 1fr); }

.me-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 2px;
    border-bottom: 1px dashed rgba(47, 107, 255, .14);
}

.me-row:last-child { border-bottom: none; }
.me-row dt { flex-shrink: 0; color: var(--ink-3); font-size: 12px; }
.me-row dt em { margin-left: 8px; font-style: normal; font-family: ui-monospace, Consolas, monospace; font-size: 9px; letter-spacing: 0.14em; color: #a9b8d4; }
.me-row dd {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    font-size: 13px;
    color: var(--ink);
}

/* 昵称行内编辑：查看态文字+修改按钮，编辑态输入框+保存/取消 */
.me-nick-cell { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.me-nick-btn {
    flex-shrink: 0;
    border: 1px solid rgba(47, 107, 255, .25);
    background: rgba(255, 255, 255, .7);
    color: var(--ink-3);
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 6px;
    cursor: pointer;
}
.me-nick-btn:hover { color: var(--blue); border-color: rgba(47, 107, 255, .5); }
.me-nick-input {
    width: 140px;
    min-width: 0;
    background: #fff;
    border: 1px solid #dbe4f3;
    border-radius: 6px;
    color: var(--ink);
    font-size: 12px;
    padding: 3px 8px;
    outline: none;
}
.me-nick-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, .15); }

.me-note p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.8; }

/* 标签页图标（favicon）设置 */
.me-fav { display: flex; align-items: center; gap: 16px; }
.me-fav-preview {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(47, 107, 255, .3);
    border-radius: 14px;
    background: rgba(47, 107, 255, .05);
}
.me-fav-preview img { width: 32px; height: 32px; object-fit: contain; }
/* 个人头像预览：沿用 me-fav 布局，预览改圆形并放大到 48px */
.me-av-preview { border-radius: 50%; }
.me-av-preview img, .me-av-preview svg { width: 48px; height: 48px; border-radius: 50%; }
.me-fav-meta { min-width: 0; }
.me-fav-tip { margin: 0 0 12px; font-size: 12px; color: var(--ink-3); line-height: 1.8; }
.me-fav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.me-fav-actions .hub-button { margin: 0; }

/* 我的想法列表 */
.me-idea {
    padding: 16px 18px;
    border: 1px solid rgba(47, 107, 255, .12);
    border-radius: 14px;
    background: rgba(47, 107, 255, .045);
}

.me-idea + .me-idea { margin-top: 10px; }

.me-idea-head { display: flex; align-items: center; gap: 10px; }
.me-idea-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: var(--ink);
}

.me-idea-date { flex-shrink: 0; font-size: 11px; color: var(--ink-3); }
.me-idea-content { margin: 10px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.8; white-space: pre-wrap; }

/* 需求状态徽章（明亮调和色） */
.hub-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid transparent;
}

.hub-badge-pending { color: #5b6b8c; border-color: rgba(91, 107, 140, .3); background: rgba(91, 107, 140, .1); }
.hub-badge-planned { color: var(--blue); border-color: rgba(47, 107, 255, .28); background: rgba(47, 107, 255, .09); }
.hub-badge-question { color: #c77800; border-color: rgba(245, 176, 45, .38); background: rgba(245, 176, 45, .14); }
.hub-badge-building { color: #7a52d6; border-color: rgba(142, 108, 224, .32); background: rgba(142, 108, 224, .12); }
.hub-badge-done { color: #00915f; border-color: rgba(0, 184, 132, .3); background: rgba(0, 184, 132, .11); }
.hub-badge-rejected { color: var(--ink-3); border-color: rgba(132, 150, 181, .35); background: rgba(132, 150, 181, .08); }

.hub-empty {
    padding: 26px 16px;
    border: 1px dashed rgba(47, 107, 255, .25);
    border-radius: 14px;
    text-align: center;
    color: var(--ink-3);
    background: rgba(255, 255, 255, .5);
    font-size: 12px;
    line-height: 2;
}

/* ── 想法社区 ───────────────────────────────── */
.community-wrap {
    flex: 1;
    width: min(860px, calc(100% - 32px));
    margin: 84px auto 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.community-hero { text-align: center; padding: 6px 0 2px; }
.community-title {
    margin: 8px 0 0;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--ink);
}
.community-sub { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); letter-spacing: 1px; }

.community-list { display: flex; flex-direction: column; gap: 14px; }

.community-post {
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 12px 34px rgba(38, 70, 160, .08);
    cursor: pointer;
    transition: border-color .25s ease, transform .25s ease, background .25s ease, box-shadow .25s ease;
    animation: home-rise 0.45s ease both;
}

.community-post:hover {
    border-color: rgba(47, 107, 255, .35);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 18px 42px rgba(38, 70, 160, .14);
    transform: translateY(-2px);
}

.community-post-head { display: flex; align-items: center; gap: 10px; }
.community-post-author {
    font-size: 12px;
    color: var(--ink-2);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.community-post-date { margin-left: auto; flex-shrink: 0; font-size: 11px; color: var(--ink-3); }
.community-post-replies { flex-shrink: 0; font-size: 12px; color: var(--ink-3); }
.community-post-replies b { font-weight: 600; color: var(--ink-2); }

.community-post-title {
    margin: 12px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 1px;
}

.community-post-content {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ── 讨论弹窗 ───────────────────────────────── */
.thread-modal { width: min(680px, 100%); max-height: 86vh; display: flex; flex-direction: column; }

.thread-head { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.thread-title { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); flex: 1; min-width: 0; }
.thread-meta { margin: 8px 0 0; font-size: 11px; color: var(--ink-3); }
.thread-meta .js-thread-author { color: var(--ink-2); }
.thread-content { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.8; white-space: pre-wrap; word-break: break-word; }

.thread-divider {
    height: 1px;
    margin: 16px 0 0;
    background: linear-gradient(90deg, transparent, rgba(47, 107, 255, .3), transparent);
}

.thread-floors { flex: 1; min-height: 120px; max-height: 38vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 14px 2px 4px; }
.thread-empty { color: var(--ink-3); font-size: 12px; text-align: center; padding: 18px 0; }

.thread-floor {
    padding: 12px 14px;
    border: 1px solid rgba(47, 107, 255, .12);
    border-radius: 14px;
    background: rgba(47, 107, 255, .045);
}

.thread-floor-head { display: flex; align-items: center; gap: 9px; }
.thread-floor-author {
    font-size: 12px;
    color: var(--ink-2);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.thread-floor-date { margin-left: auto; flex-shrink: 0; font-size: 10px; color: var(--ink-3); }

.thread-floor-del {
    flex-shrink: 0;
    width: 20px; height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(132, 150, 181, .7);
    font-size: 13px;
    line-height: 20px;
}
.thread-floor-del:hover { background: rgba(229, 72, 77, .12); color: #e5484d; }

.thread-floor-content { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; white-space: pre-wrap; word-break: break-word; }

/* 站长/开发者回复标识 */
.thread-staff {
    flex-shrink: 0;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

.thread-staff-owner { color: #a86a00; border-color: rgba(240, 170, 40, .38); background: rgba(240, 170, 40, .13); }
.thread-staff-ai { color: #7a52d6; border-color: rgba(142, 108, 224, .32); background: rgba(142, 108, 224, .12); }
.thread-staff-dev { color: var(--blue); border-color: rgba(47, 107, 255, .28); background: rgba(47, 107, 255, .09); }

/* 非图片附件 */
.thread-files { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }

.thread-file {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid rgba(47, 107, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .65);
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}
.thread-file:hover { border-color: rgba(47, 107, 255, .4); background: rgba(47, 107, 255, .06); }
.thread-file-ico { flex-shrink: 0; }
.thread-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: var(--ink-2);
}
.thread-file-size { flex-shrink: 0; font-size: 10px; color: var(--ink-3); }

.thread-reply { margin-top: 14px; }
.thread-reply-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.thread-reply-actions .js-send { margin-left: auto; }

/* ── SPA 页面切换：内容区淡入上滑 ─────────────── */
.page-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-width: 0;
    animation: page-in 0.28s ease;
}
@keyframes page-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* 卡片入场：淡入上滑（比 page-in 更轻） */
@keyframes home-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* ══ 主页（#/）维持原暗色星空：body 挂 .zen-dark 时整页回到宁静暗色 ══
   社区/个人中心仍是上面的明亮蓝图；两套并存，按路由切换。 */

body.home-mode.zen-dark {
    background: linear-gradient(145deg, #0f0c1e 0%, #1a1528 40%, #221d30 100%);
    background-attachment: scroll;
    color: rgba(220, 210, 255, 0.92);
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body.home-mode.zen-dark :focus-visible { outline: 2px solid rgba(160, 140, 255, 0.6); outline-offset: 4px; }

/* 背景：原版无网格，只留两团紫调柔光 */
body.home-mode.zen-dark .ambient-light::before { display: none; }
body.home-mode.zen-dark .light-orb { filter: blur(80px); opacity: 0.1; animation: none; }
body.home-mode.zen-dark .orb1 { width: 60vw; height: 60vw; top: -15vh; right: -10vw; background: #6a4fbe; }
body.home-mode.zen-dark .orb2 { width: 50vw; height: 50vw; bottom: -10vh; left: -5vw; background: #3e6bbf; opacity: 0.06; }

/* 角落导航 */
body.home-mode.zen-dark .zen-corner a {
    color: rgba(220, 220, 240, 0.75);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(180, 160, 255, 0.15);
}
body.home-mode.zen-dark .zen-corner a:hover,
body.home-mode.zen-dark .zen-corner a.active {
    color: #ffffff;
    background: rgba(120, 100, 255, 0.12);
    border-color: rgba(180, 160, 255, 0.35);
    box-shadow: 0 2px 12px rgba(100, 80, 200, 0.15);
}

/* 中央几何 + 问候 + 波浪点 + 时钟 */
body.home-mode.zen-dark .shape { border-color: rgba(160, 140, 255, 0.2); }
body.home-mode.zen-dark .shape-1 { border-color: rgba(130, 100, 255, 0.25); }
body.home-mode.zen-dark .shape-2 { border-color: rgba(100, 180, 255, 0.2); }
body.home-mode.zen-dark .shape-3 { border-color: rgba(180, 130, 255, 0.3); }
body.home-mode.zen-dark .center-dot {
    background: rgba(180, 160, 255, 0.4);
    opacity: 1;
    box-shadow: 0 0 20px rgba(140, 100, 255, 0.3);
}

body.home-mode.zen-dark .greeting-text {
    color: rgba(220, 210, 255, 0.7);
    border-right-color: rgba(160, 140, 255, 0.4);
    animation-name: blinkCursorDark;
}
@keyframes blinkCursorDark {
    0%, 100% { border-color: rgba(160, 140, 255, 0.4); }
    50% { border-color: transparent; }
}

body.home-mode.zen-dark .wave-dot {
    background: rgba(160, 140, 255, 0.2);
    animation-name: wavePulseDark;
}
@keyframes wavePulseDark {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); background: rgba(160, 140, 255, 0.4); }
}

body.home-mode.zen-dark .time-widget { color: rgba(180, 170, 220, 0.35); }

/* 底部品牌胶囊 */
body.home-mode.zen-dark .zen-footer {
    background: linear-gradient(to top, rgba(15, 12, 30, 0.95) 0%, transparent 100%);
}
body.home-mode.zen-dark .zen-footer::before {
    background: linear-gradient(90deg, transparent, rgba(160, 140, 255, 0.2), transparent);
}
body.home-mode.zen-dark .zen-brand-pill {
    color: rgba(220, 220, 240, 0.85);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(180, 160, 255, 0.15);
}
body.home-mode.zen-dark a.zen-brand-pill:hover {
    color: #ffffff;
    background: rgba(120, 100, 255, 0.12);
    border-color: rgba(180, 160, 255, 0.35);
    box-shadow: 0 2px 12px rgba(100, 80, 200, 0.15);
}

/* 悬浮按钮 / 主次按钮 */
body.home-mode.zen-dark .idea-fab {
    border: 1px solid rgba(180, 160, 255, 0.3);
    background: rgba(120, 100, 255, 0.12);
    color: rgba(228, 222, 255, 0.95);
    font-weight: 400;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 24px rgba(80, 60, 180, 0.25);
}
body.home-mode.zen-dark .idea-fab:hover {
    color: #ffffff;
    background: rgba(120, 100, 255, 0.22);
    border-color: rgba(180, 160, 255, 0.5);
    box-shadow: 0 8px 30px rgba(100, 80, 200, 0.4);
    transform: translateY(-2px);
}

body.home-mode.zen-dark .hub-button {
    border: 1px solid rgba(180, 160, 255, 0.35);
    background: rgba(120, 100, 255, 0.18);
    color: #efeaff;
    font-weight: 400;
    box-shadow: none;
}
body.home-mode.zen-dark .hub-button:hover:not(:disabled) {
    background: rgba(120, 100, 255, 0.3);
    border-color: rgba(180, 160, 255, 0.55);
    box-shadow: none;
    transform: none;
}
body.home-mode.zen-dark .idea-btn-plain {
    border: 1px solid rgba(180, 160, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(220, 220, 240, 0.8);
}
body.home-mode.zen-dark .idea-btn-plain:hover {
    background: rgba(120, 100, 255, 0.12);
    border-color: rgba(180, 160, 255, 0.35);
    color: #fff;
}

/* 想法弹窗（主页暗色版：无 HUD 角框，回到原暗紫玻璃） */
body.home-mode.zen-dark .idea-overlay { background: rgba(10, 8, 22, 0.72); }
body.home-mode.zen-dark .idea-modal {
    border: 1px solid rgba(180, 160, 255, 0.2);
    border-radius: 20px;
    background: rgba(30, 25, 48, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 24px 70px rgba(5, 3, 15, 0.6);
}
body.home-mode.zen-dark .idea-modal::after { display: none; }
body.home-mode.zen-dark .idea-modal-tag { color: rgba(180, 160, 255, 0.7); }
body.home-mode.zen-dark .idea-modal-title { color: rgba(235, 230, 255, 0.95); font-weight: 400; }
body.home-mode.zen-dark .idea-modal-sub { color: rgba(200, 190, 230, 0.6); }
body.home-mode.zen-dark .idea-field label { color: rgba(210, 200, 240, 0.75); }
body.home-mode.zen-dark .idea-field label em { color: rgba(180, 170, 220, 0.4); }

body.home-mode.zen-dark .idea-input,
body.home-mode.zen-dark .idea-textarea {
    border: 1px solid rgba(180, 160, 255, 0.18);
    background: rgba(16, 12, 32, 0.6);
    color: rgba(235, 230, 255, 0.95);
}
body.home-mode.zen-dark .idea-input:focus,
body.home-mode.zen-dark .idea-textarea:focus {
    border-color: rgba(160, 140, 255, 0.55);
    background: rgba(16, 12, 32, 0.6);
    box-shadow: 0 0 0 3px rgba(140, 120, 255, 0.12);
}
body.home-mode.zen-dark .idea-textarea::placeholder,
body.home-mode.zen-dark .idea-input::placeholder { color: rgba(180, 170, 220, 0.35); }

body.home-mode.zen-dark .idea-thumb {
    border-color: rgba(180, 160, 255, 0.2);
    background: transparent;
}
body.home-mode.zen-dark .idea-thumb-remove {
    background: rgba(10, 8, 22, 0.75);
    color: rgba(235, 230, 255, 0.9);
}
body.home-mode.zen-dark .idea-thumb-remove:hover {
    background: rgba(120, 60, 80, 0.85);
    color: rgba(235, 230, 255, 0.9);
}

body.home-mode.zen-dark .idea-error { color: #ffb7aa; }

/* ── 响应式 ─────────────────────────────────── */
@media (max-width: 900px) {
    .me-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .shapes { width: 160px; height: 160px; }
    .shape-1 { width: 130px; height: 130px; }
    .shape-2 { width: 95px; height: 95px; }
    .shape-3 { width: 60px; height: 60px; }
    .greeting-text { font-size: 1rem; }
    .zen-corner { top: 14px; right: 14px; gap: 6px; }
    .zen-corner a { font-size: 11px; padding: 7px 13px; }
    .idea-fab { right: 16px; bottom: 88px; }
    .me-hero { padding: 22px; }
    .me-hero::after { display: none; }
}

/* ── 减动效偏好 ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    body.home-mode *, body.home-mode *::before, body.home-mode *::after {
        animation: none !important;
        transition: none !important;
    }
}
