/* ==========================================================
   闪念页 · icefox 朋友圈外观重构（2026/11）
   仅闪念页加载：
   1) 顶部大图 208px 全屏通栏 + 右上人像发布按钮 + 右下 Hi/头像问候块
   2) 朋友圈卡片列表（无置顶无评论）+ ·· 弹层（赞/编辑）+ N 位访客点赞框
   3) 发布页（icefox edit.php 外观）：绿条输入框、圆工具按钮、面板开合
   4) 保留 Cuteen 原版：音乐卡、图片放大层、卡片内编辑器
   ========================================================== */

.shn-page {
    background: #fff;
    color: #1a1a1a;
    min-height: 60vh;
}

body { overflow-x: hidden; }
.dark .shn-page, [data-theme="dark"] .shn-page {
    background: #323232;
    color: #cccccc;
}

.shn-cover {
    height: 208px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 48px;
}

.shn-fixed-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    z-index: 9;
}
.shn-bar-inner {
    max-width: 576px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 100%;
}
.shn-bar-left { display: flex; align-items: center; }
.shn-bar-pad {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.shn-music-progress {
    display: block;
    flex-shrink: 0;
    margin-left: 12px;
    width: 80px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}
.shn-music-jdt {
    display: block;
    height: 100%;
    width: 38%;
    border-radius: 999px;
    background: rgba(255, 255, 255, .60);
    animation: shn-jdt 9s ease-in-out infinite alternate;
}
@keyframes shn-jdt {
    from { width: 12%; }
    to   { width: 86%; }
}
@media (prefers-reduced-motion: reduce) {
    .shn-music-jdt { animation: none; }
}

.shn-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 20px;
    height: 100%;
}
.shn-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, .16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .22);
    transition: all .25s cubic-bezier(.16, 1, .3, 1);
    color: #ffffff;
    flex-shrink: 0;
}
.shn-action-btn:hover {
    background: rgba(0, 0, 0, .32);
    border-color: rgba(255, 255, 255, .45);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.shn-greeting {
    position: absolute;
    right: 24px;
    bottom: -40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 90%;
}
.shn-greet-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}
.shn-hi {
    color: #fff;
    margin-right: 20px;
    margin-bottom: 24px;
    font-size: 20px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.shn-big-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.shn-big-avatar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
}
.shn-site-desc {
    font-size: 12px;
    margin-top: 12px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    text-align: end;
}
.dark .shn-site-desc, [data-theme="dark"] .shn-site-desc { color: #9ca3af; }

.shn-main {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0 22px 0;
    box-sizing: border-box;
}
.shn-feed {
    background: transparent;
    max-width: 576px;
    margin: 0 auto;
}
.shn-item {
    display: flex;
    flex-direction: row;
    border-bottom: 2px solid #e5e7eb;
    padding: 20px 0 0;
}
.dark .shn-item, [data-theme="dark"] .shn-item { border-bottom-color: #1f2937; }
.shn-post-avatar { margin-right: 12px; flex-shrink: 0; }
.shn-post-avatar img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.shn-post-body {
    width: 100%;
    min-width: 0;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 4px;
}
.dark .shn-post-body, [data-theme="dark"] .shn-post-body { border-bottom-color: #374151; }
.shn-item.editing .shn-post-body { border-bottom-color: transparent; }
.shn-nick-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.shn-nick {
    color: #576b95;
    font-size: 14px;
    cursor: default;
    text-decoration: none;
}
.dark .shn-nick, [data-theme="dark"] .shn-nick { color: #7d99c4; }
.shn-article-content {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-all;
    cursor: default;
    color: #1a1a1a;
}
.shn-article-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #111111;
}
.dark .shn-article-content, [data-theme="dark"] .shn-article-content { color: #d1d5db; }
.dark .shn-article-content a, [data-theme="dark"] .shn-article-content a { color: #d1d5db; }

.shn-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shn-toggle {
    font-size: 14px;
    color: #576b95;
    cursor: pointer;
    margin-bottom: 4px;
    user-select: none;
}
.dark .shn-toggle, [data-theme="dark"] .shn-toggle { color: #7d99c4; }

.shn-imgs {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    margin-bottom: 12px;
}
.shn-imgs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    cursor: zoom-in;
    display: block;
}
.shn-imgs.g1 { display: block; margin-right: 33.33%; }
.shn-imgs.g1 img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
}
.shn-imgs.g2 { grid-template-columns: repeat(3, 1fr); }
.shn-imgs.g2 img:nth-child(n+5) { display: none; }
.shn-imgs.g3 { grid-template-columns: repeat(3, 1fr); }

.shn-video { margin-top: 10px; margin-bottom: 12px; }
.shn-video video {
    width: 100%;
    max-height: 420px;
    border-radius: 8px;
    background: #000;
    display: block;
}

.shn-music {
    display: flex;
    align-items: stretch;
    margin-top: 10px;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #4a5568;
    cursor: pointer;
    min-height: 80px;
}
.shn-music-cover {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    position: relative;
    background: rgba(0, 0, 0, .25);
}
.shn-music-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shn-music audio { display: none !important; }
.shn-music-cover .shn-music-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(18, 22, 30, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.shn-music-cover .shn-music-play svg {
    pointer-events: none;
    fill: #fff;
    margin-left: 2px;
}

.shn-music.playing .shn-music-cover .shn-music-play svg { display: none; }
.shn-music.playing .shn-music-cover .shn-music-play::before,
.shn-music.playing .shn-music-cover .shn-music-play::after {
    content: '';
    width: 4.5px;
    height: 14px;
    border-radius: 1.5px;
    background: #fff;
    margin: 0;
}
.shn-music.playing .shn-music-cover .shn-music-play::before { margin-right: 4px; }
.shn-music-info {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .4));
}
.shn-music-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shn-music-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, .85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shn-time-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.shn-time {
    color: #6b7280;
    font-size: 12px;
    line-height: 1rem;
}
.dark .shn-time, [data-theme="dark"] .shn-time { color: #9ca3af; }
.shn-hudong-wrap {
    width: 30px;
    height: 20px;
    position: relative;
}
.shn-hudong {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    cursor: pointer;
    background-color: #f7f7f7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M229.2 512m-140 0a140 140 0 1 0 280 0 140 140 0 1 0-280 0Z' fill='%238a8a8a'/%3E%3Cpath d='M794.8 512m-140 0a140 140 0 1 0 280 0 140 140 0 1 0-280 0Z' fill='%238a8a8a'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    transition: background-color .15s ease;
}
.shn-hudong:hover { background-color: #dedede; }
.dark .shn-hudong, [data-theme="dark"] .shn-hudong { background-color: #262626; }
.dark .shn-hudong:hover, [data-theme="dark"] .shn-hudong:hover { background-color: #3a3a3a; }
.shn-hudong-modal {
    position: absolute;
    right: 40px;
    top: -10px;
    display: none;
    z-index: 20;
}
.shn-hudong-modal.show { display: block; animation: shn-slide-in .2s ease; }
.shn-hudong-modal.away { display: block; animation: shn-slide-out .26s ease forwards; pointer-events: none; }
@keyframes shn-slide-in {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: none; }
}
/* 收起：被 ·· 按钮方向推挤滑出（缩小+右移+淡出），和弹出互为镜像 */
@keyframes shn-slide-out {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateX(12px) scale(.88); }
}
.shn-hudong-container {
    background: #4c4c4c;
    color: #fff;
    width: max-content;
    min-width: 118px;
    border-radius: 5px;
    padding: 8px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.shn-hudong-container a {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.shn-hudong-container a:hover { opacity: .85; }
.shn-hudong-divider {
    background: #454545;
    height: 22px;
    width: 1px;
    flex-shrink: 0;
}

.shn-agree-box {
    background: transparent;
    padding: 4px 0;
    border: none;
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
    overflow: hidden;
    border-radius: 6px;
    word-break: break-all;
}
.dark .shn-agree-box, [data-theme="dark"] .shn-agree-box {
    background: transparent;
    border-color: transparent;
}
.shn-agree-box .like {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    flex-shrink: 0;
    margin-top: 4px;
    display: inline-block;
    color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M512 896h-6.4C347.7 842.7 64 627.2 64 381.9 64 241.1 179.2 128 320 128c74.7 0 142.9 32 192 85.3 49.1-53.3 117.3-85.3 192-85.3 140.8 0 256 113.1 256 253.9C960 627.2 676.3 842.7 518.4 896H512z' fill='%23ff4d5e'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}
.shn-agree-content {
    font-size: 14px;
    line-height: 1.625;
    flex: 1;
    word-break: break-word;
    color: #576b95;
}
.dark .shn-agree-content, [data-theme="dark"] .shn-agree-content { color: #7d99c4; }

/* 点赞者名字列表：黑色、正常字体，名字之间用「、」分隔 */
.shn-like-name {
    font-style: normal;
    color: #1f2329;
}
.dark .shn-like-name, [data-theme="dark"] .shn-like-name { color: #d1d5db; }
.shn-like-sep { color: #1f2329; }
.dark .shn-like-sep, [data-theme="dark"] .shn-like-sep { color: #d1d5db; }

/* 闪念评论列表：昵称蓝色、内容黑色、正常字体 */
.shn-cmt-list { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.shn-cmt {
    font-size: 14px;
    font-style: normal;
    color: #1f2329;
    line-height: 1.5;
    word-break: break-all;
    cursor: pointer;
}
.dark .shn-cmt, [data-theme="dark"] .shn-cmt { color: #d1d5db; }
.shn-cmt-name { color: #576b95; }
.dark .shn-cmt-name, [data-theme="dark"] .shn-cmt-name { color: #7d99c4; }
.shn-cmt-replyto { color: #576b95; }
.dark .shn-cmt-replyto, [data-theme="dark"] .shn-cmt-replyto { color: #7d99c4; }

/* 评论输入条 */
.shn-cmt-input-bar { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.shn-cmt-input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #f7f8fa;
}
.shn-cmt-input:focus { border-color: #ff4d5e; background: #fff; }
.dark .shn-cmt-input, [data-theme="dark"] .shn-cmt-input { background: #1f1f1f; border-color: #3a3a3a; color: #eee; }
.shn-cmt-send {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #ff4d5e;
    background: #ff4d5e;
    color: #fff;
}
.shn-cmt-send:disabled { opacity: .6; cursor: default; }
.shn-cmt-cancel {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #e2e5e9;
    background: #fff;
    color: #666;
}
.dark .shn-cmt-cancel, [data-theme="dark"] .shn-cmt-cancel { background: #2a2a2a; border-color: #3a3a3a; color: #bbb; }

/* 点赞填昵称弹框 */
.shn-nick-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shn-nick-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 18px 16px;
    width: 270px;
    max-width: calc(100vw - 48px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, .25);
}
.dark .shn-nick-card, [data-theme="dark"] .shn-nick-card { background: #2a2a2a; }
.shn-nick-title { font-size: 15px; font-weight: 600; text-align: center; margin-bottom: 12px; }
.shn-nick-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #f7f8fa;
}
.shn-nick-input:focus { border-color: #ff4d5e; background: #fff; }
.shn-nick-input + .shn-nick-input { margin-top: 8px; }
.shn-nick-input.shn-nick-err { border-color: #ff4d5e; background: #fff5f6; animation: shnNickShake .25s; }
@keyframes shnNickShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.dark .shn-nick-input, [data-theme="dark"] .shn-nick-input { background: #1f1f1f; border-color: #3a3a3a; color: #eee; }
.shn-nick-btns { display: flex; gap: 10px; margin-top: 14px; }
.shn-nick-btns button {
    flex: 1;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #e2e5e9;
    background: #fff;
}
.shn-nick-btns .shn-nick-ok { background: #ff4d5e; border-color: #ff4d5e; color: #fff; }
.dark .shn-nick-btns button, [data-theme="dark"] .shn-nick-btns button { background: #1f1f1f; border-color: #3a3a3a; color: #ddd; }
.dark .shn-nick-btns .shn-nick-ok, [data-theme="dark"] .shn-nick-btns .shn-nick-ok { background: #ff4d5e; border-color: #ff4d5e; color: #fff; }

.shn-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    touch-action: pan-y;
}
.shn-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-drag: none;
}
.shn-ov-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease;
}
.shn-ov-btn:hover { background: rgba(255, 255, 255, .28); }
.shn-ov-prev { left: 12px; }
.shn-ov-next { right: 12px; }
.shn-ov-count {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: rgba(255, 255, 255, .9);
    background: rgba(0, 0, 0, .45);
    padding: 4px 14px;
    border-radius: 999px;
}
@media (max-width: 576px) {
    .shn-ov-btn { width: 36px; height: 36px; }
    .shn-ov-prev { left: 6px; }
    .shn-ov-next { right: 6px; }
}

.shn-publish {
    position: fixed;
    inset: 0;
    background: #f0f0f0;
    z-index: 900;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.shn-publish[hidden] { display: none; }
.shn-pub-main {
    max-width: 567px;
    margin: 0 auto;
    background: #fff;
    min-height: 100%;
}
.shn-pub-bar {
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    background: transparent;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px env(safe-area-inset-bottom, 0px);
    position: sticky;
    bottom: 0;
    z-index: 5;
}

.shn-pub-spacer {
    height: 64px;
    background: linear-gradient(120deg, #eaf4ff 0%, #d5ebff 30%, #c8e3ff 55%, #dcefff 80%, #f0f7ff 100%);
    position: sticky;
    top: 0;
    z-index: 6;
}
.dark .shn-pub-spacer, [data-theme="dark"] .shn-pub-spacer {
    background: linear-gradient(120deg, #16233a 0%, #1f3356 50%, #16233a 100%);
}

.shn-pub-bar-l { display: flex; align-items: center; gap: 8px; }
.shn-pub-back { display: flex; align-items: center; cursor: pointer; }
.shn-pub-title { font-weight: 700; font-size: 16px; color: #1f2937; }
.shn-pub-btn {
    background: #07c160;
    border: none;
    outline: none;
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
    font-size: 15px;
    padding: 9px 30px;
    font-weight: 500;
    transition: all .15s ease;
}
.shn-pub-btn:hover { background: #06ad56; }
.shn-pub-btn:disabled { opacity: .6; cursor: default; }
.dark .shn-pub-title, [data-theme="dark"] .shn-pub-title { color: #e5e7eb; }
.dark .shn-pub-bar, [data-theme="dark"] .shn-pub-bar { background: transparent; }
.dark .shn-pub-back svg path, [data-theme="dark"] .shn-pub-back svg path { fill: #9ca3af; }

.shn-composer-wrap {
    position: relative;
    margin-top: 12px;
    padding: 0 20px;
}
.shn-composer-wrap::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 8px;
    bottom: 24px;
    width: 2px;
    border-radius: 2px;
    background: #07c160;
    opacity: 0;
    transition: opacity .18s ease;
}
.shn-composer-wrap:focus-within::before { opacity: 1; }
#comment-textarea {
    display: block;
    width: 100%;
    min-height: 10.5rem;
    max-height: 60vh;
    line-height: 1.7;
    padding: 8px 4px 12px;
    overflow-y: auto;
    resize: none;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    caret-color: #07c160;
    color: #1a1a1a;
    font-family: inherit;
}
#comment-textarea::placeholder { color: #b6bcc6; }
.dark #comment-textarea, [data-theme="dark"] #comment-textarea { color: #d1d5db; }
.shn-composer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 18px;
    font-size: 11px;
    user-select: none;
}
.shn-composer-hint { color: #9aa1ab; opacity: 0; transition: opacity .18s ease; }
.shn-composer-wrap:focus-within .shn-composer-hint { opacity: 1; }
.shn-composer-count { margin-left: auto; color: #9ca3af; font-variant-numeric: tabular-nums; }

.shn-pub-toolbar-wrap { position: relative; }
.shn-pub-toolbar {
    margin-top: 12px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.shn-pub-tool {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s ease;
    flex-shrink: 0;
}
.shn-pub-tool svg { stroke: currentColor; }
.shn-pub-tool:hover { opacity: .8; }
.shn-pub-tool.active { background: #e8f7ee; color: #07c160; }

.shn-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    max-height: 186px; 
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.shn-emoji {
    background: none;
    border: 0;
    font-size: 22px;
    line-height: 1.25;
    padding: 4px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .12s ease;
}
.shn-emoji:hover { background: rgba(7, 193, 96, .12); }
@media (max-width: 400px) {
    .shn-emoji-grid { grid-template-columns: repeat(7, 1fr); }
}

.shn-pub-card {
    margin: 12px 20px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #ebebeb;
    border-radius: 12px;
}
.dark .shn-pub-card, [data-theme="dark"] .shn-pub-card { background: #262626; border-color: #1f2937; }
.shn-pub-card[hidden] { display: none; }
.shn-pub-hint { font-size: 12px; color: #6b7280; margin-bottom: 10px; line-height: 1.6; }
.dark .shn-pub-hint, [data-theme="dark"] .shn-pub-hint { color: #9ca3af; }

.shn-pub-card textarea, .shn-pub-card input {
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    color: #1f2328;
    outline: none;
    transition: border-color .15s ease;
    margin-bottom: 10px;
}
.shn-pub-card textarea:focus, .shn-pub-card input:focus { border-color: #07c160; }
.dark .shn-pub-card textarea, .dark .shn-pub-card input,
[data-theme="dark"] .shn-pub-card textarea, [data-theme="dark"] .shn-pub-card input {
    background: rgba(255, 255, 255, .05);
    border-color: #374151;
    color: #d1d5db;
}
.shn-pub-card textarea[hidden] { display: none; }
.shn-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shn-media-grid input { margin-bottom: 0; }
@media (max-width: 576px) {
    .shn-media-grid { grid-template-columns: 1fr; }
}

.shn-netease { display: flex; gap: 8px; margin-bottom: 10px; }
.shn-netease input { margin-bottom: 0; flex: 1; min-width: 0; }
.shn-netease-parse {
    flex-shrink: 0;
    border: 0;
    background: #07c160;
    color: #fff;
    font-size: 13px;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .15s ease;
}
.shn-netease-parse:hover { opacity: .9; }
.shn-netease-parse:disabled { opacity: .6; cursor: default; }

.shn-pub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.shn-pub-grid .td {
    background: #f0f0f0;
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}
.dark .shn-pub-grid .td, [data-theme="dark"] .shn-pub-grid .td { background: #1f2937; }
.shn-pub-grid .td img.full { width: 100%; height: 100%; object-fit: cover; display: block; }
.shn-pub-grid .td .rm {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.shn-pub-grid .add-td {
    background: #f0f0f0;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 2px;
}
.dark .shn-pub-grid .add-td, [data-theme="dark"] .shn-pub-grid .add-td { background: #1f2937; }
.shn-pub-addrow {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.shn-pub-addrow[hidden] { display: none; }
.shn-pub-addrow input {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    border: 1px solid #e5e7eb;
}
.shn-pub-addrow input:focus { border-color: #07c160; }
.dark .shn-pub-addrow input, [data-theme="dark"] .shn-pub-addrow input {
    background: rgba(255, 255, 255, .05);
    border-color: #374151;
    color: #d1d5db;
}
.shn-pub-btn-green {
    flex-shrink: 0;
    background: #07c160;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all .15s ease;
}
.shn-pub-btn-green:hover { background: #06ad56; }
.shn-pub-btn-white {
    flex-shrink: 0;
    background: #fff;
    color: #4b5563;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all .15s ease;
}
.dark .shn-pub-btn-white, [data-theme="dark"] .shn-pub-btn-white {
    background: transparent;
    border-color: #374151;
    color: #9ca3af;
}
.shn-pub-bottom { height: 28px; }

.shn-item.editing > .shn-post-body > :not(.shn-editor) { display: none; }
.shn-editor {
    margin-top: 12px;
    padding: 12px;
    background: rgba(87, 107, 149, .05);
    border-radius: 12px;
}
.dark .shn-editor, [data-theme="dark"] .shn-editor { background: rgba(255, 255, 255, .04); }
.shn-editor > textarea { margin-bottom: 4px; }
.shn-editor textarea, .shn-editor input {
    font-size: 14px;
    line-height: 1.6;
    width: 100%;
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 10px;
    padding: 9px 12px;
    background: #fff;
    color: #1f2328;
    transition: border-color .15s ease, box-shadow .15s ease;
    outline: none;
}
.dark .shn-editor textarea, .dark .shn-editor input,
[data-theme="dark"] .shn-editor textarea, [data-theme="dark"] .shn-editor input {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .14);
    color: #d7dde5;
}
.shn-editor textarea:focus, .shn-editor input:focus {
    border-color: #576b95;
    box-shadow: 0 0 0 3px rgba(87, 107, 149, .12);
}
.shn-post-tools { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.shn-tool {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(15, 23, 42, .12);
    background: transparent;
    padding: 6px 12px;
    color: #576b95;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    border-radius: 999px;
    transition: background-color .15s ease, border-color .15s ease;
}
.shn-tool:hover { background: rgba(87, 107, 149, .08); }
.shn-tool[aria-expanded="true"] {
    background: rgba(87, 107, 149, .14);
    border-color: rgba(87, 107, 149, .35);
}
.dark .shn-tool, [data-theme="dark"] .shn-tool { color: #7d99c4; border-color: rgba(255, 255, 255, .14); }
.shn-editor .shn-media-box {
    margin-top: 10px;
    padding: 12px;
    background: rgba(87, 107, 149, .06);
    border-radius: 12px;
}
.dark .shn-editor .shn-media-box, [data-theme="dark"] .shn-editor .shn-media-box { background: rgba(255, 255, 255, .04); }
.shn-editor .shn-media-box textarea, .shn-editor .shn-media-box input { margin-bottom: 8px; }
.shn-editor .shn-media-box textarea:last-child, .shn-editor .shn-media-box input:last-child { margin-bottom: 0; }
.shn-editor .shn-netease { display: flex; gap: 8px; margin-bottom: 8px; }
.shn-editor .shn-netease input { margin-bottom: 0; flex: 1; min-width: 0; }
.shn-editor .shn-netease-parse {
    flex-shrink: 0;
    border: 0;
    background: #576b95;
    color: #fff;
    font-size: 13px;
    padding: 0 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity .15s ease;
}
.shn-editor .shn-netease-parse:hover { opacity: .9; }
.shn-editor .shn-netease-parse:disabled { opacity: .6; cursor: default; }
.dark .shn-editor .shn-netease-parse { background: #7d99c4; color: #18202c; }
.shn-editor-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.shn-editor-foot-r { display: flex; gap: 8px; }
.shn-editor-del, .shn-editor-cancel, .shn-editor-save {
    border: 0;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity .15s ease, background-color .15s ease, color .15s ease;
}
.shn-editor-del { background: transparent; color: #e5484d; border: 1px solid rgba(229, 72, 77, .35); }
.shn-editor-del:hover { background: rgba(229, 72, 77, .08); }
.shn-editor-cancel { background: transparent; color: #8b9299; }
.shn-editor-cancel:hover { color: #576b95; }
.shn-editor-save { background: #576b95; color: #fff; }
.shn-editor-save:hover { opacity: .9; }
.shn-editor-save:disabled, .shn-editor-del:disabled { opacity: .6; cursor: default; }
.dark .shn-editor-save { background: #7d99c4; color: #18202c; }

.shn-page .All_Pagination { padding: 0 20px; }

/* 收紧闪念页底部空白：列表 margin 清零 + 页脚贴上去 */
.shn-feed .comment-list { margin-bottom: 0; padding-bottom: 0; }
.shn-feed { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.shn-page .All_Pagination { margin-bottom: 0 !important; }
body > footer.mt-4, #footer.mt-4 { margin-top: 0 !important; }

/* 列表收尾「没有更多了」：上下等距居中，总高与原空白一致 */
.shn-feed-end {
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    color: #b0b4bb;
    letter-spacing: 1px;
    padding: 26px 0;
}
.dark .shn-feed-end, [data-theme="dark"] .shn-feed-end { color: #5c6470; }

/* 屏蔽主题的通用贴底评论条(说点什么…/写评论)：闪念页有自己的评论系统，且该条
   会随 pjax 切页残留 / 登录态渲染，叠在闪念列表上。本 css 仅闪念页加载，不影响其他页面 */
.ct-fbar, .ct-fbar-mini, .ct-fbar-panel, .comment-input-warp, section#comments.card {
    display: none !important;
}
