:root {
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-bg-hover: rgba(255, 255, 255, 0.28);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
    --glass-shadow-hover: 0 16px 48px rgba(31, 38, 135, 0.2);
    --text-primary: #1f1f1f;
    --text-secondary: #555;
    --accent: #5b9aa8;
    --accent-light: #9ccbd4;
    --accent-soft: rgba(91, 154, 168, 0.12);
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5fafb 0%, #e4f1f4 50%, #c3e0e7 100%);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== 动态液态背景 ========== */
.liquid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(195, 224, 231, 0.75) 0%, rgba(195, 224, 231, 0) 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 208, 219, 0.75) 0%, rgba(168, 208, 219, 0) 70%);
    top: 20%;
    right: -15%;
    animation-delay: -5s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(216, 237, 242, 0.7) 0%, rgba(216, 237, 242, 0) 70%);
    bottom: -5%;
    left: 20%;
    animation-delay: -10s;
}

.blob-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(176, 216, 226, 0.65) 0%, rgba(176, 216, 226, 0) 70%);
    bottom: 15%;
    right: 10%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ========== 玻璃导航栏 ========== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.nav-inner {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px var(--accent-soft);
}

.logo-img {
    height: 56px;
    width: auto;
    display: block;
    border-radius: 12px;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
}

/* 导航标签（如“短剧”），位于搜索栏左侧，玻璃拟态胶囊 */
.nav-tag {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    line-height: 1;
}
.nav-tag:hover {
    background: rgba(255, 255, 255, 0.75);
    color: var(--accent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* 导航下载链接：与 nav-tag 按钮外观保持一致 */
a.nav-tag {
    text-decoration: none;
    display: inline-block;
}

.menu-wrap {
    position: relative;
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
}

/* ===== idea 菜单 ===== */
.idea-wrap {
    position: relative;
}

.idea-toggle svg {
    width: 20px;
    height: 20px;
}

.idea-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 300px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1001;
}

.idea-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.idea-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.idea-rules {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.idea-rules li {
    position: relative;
    padding-left: 16px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.idea-rules li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

.idea-rules b {
    color: var(--accent);
    font-weight: 700;
}

.idea-rules i {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.idea-live {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.idea-live.warn {
    color: var(--accent);
}

.theme-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1001;
}

.theme-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.theme-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 16px;
    margin-bottom: 14px;
    padding-left: 2px;
}

.theme-version {
    margin-top: 14px;
    padding-top: 10px;
    padding-left: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.theme-colors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.theme-color {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    justify-self: center;
}

.theme-color:hover {
    transform: scale(1.12);
}

.theme-color.active {
    border-color: var(--text-primary);
}

.glass-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    min-width: 240px;
}

.glass-search:focus-within {
    background: rgba(255, 255, 255, 0.75);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.glass-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-primary);
    width: 100%;
}

.glass-search input::placeholder {
    color: #999;
}

/* 搜索无结果空状态 */
.search-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.35);
    border: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.search-empty .search-empty-word {
    color: var(--text-primary);
    font-weight: 600;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.glass-btn {
    border: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-secondary);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.75);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.user-avatar {
    padding: 2px;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 用户信息浮层容器 */
.user-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.user-wrap .user-avatar {
    cursor: pointer;
}

.user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 220px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.12);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.22s ease;
}

.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-id {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-email {
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-logout {
    width: 100%;
    margin-top: 14px;
    padding: 9px 0;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-logout:hover {
    background: rgba(255, 255, 255, 0.85);
    color: var(--accent);
}

/* 汉堡菜单功能项：我的帖子 */
.theme-menuitem {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.45); /* color-mix 不支持时的回退 */
    background: color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.55));
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-menuitem svg {
    width: 15px;
    height: 15px;
}

.theme-menuitem:hover {
    background: color-mix(in srgb, var(--accent) 28%, rgba(255, 255, 255, 0.6));
    color: var(--accent);
    transform: translateY(-1px);
}

/* 我的帖子列表 */
.myposts-modal {
    max-height: 78vh;
    width: 420px;
    max-width: 92vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.myposts-list {
    margin-top: 6px;
    overflow-y: auto;
    min-height: 120px;
    max-height: 56vh;
}

.myposts-empty {
    padding: 30px 10px;
    text-align: center;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.mypost-item {
    display: flex;
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.mypost-item:last-child {
    border-bottom: none;
}

.mypost-thumbs {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.mypost-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: transform 0.15s;
}

.mypost-thumb:hover {
    transform: scale(1.06);
}

.mypost-thumb-more {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}

.mypost-thumb-empty {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c3c8d4;
    font-size: 0.78rem;
}

.mypost-thumb-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex-shrink: 0;
}

.mypost-video-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    padding: 1px 6px;
    border-radius: 8px;
    white-space: nowrap;
}

/* 首页卡片 · 视频媒体 */
.pin-image-wrap.video-wrap {
    position: relative;
}
.pin-video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}
.pin-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    pointer-events: none;
    backdrop-filter: blur(2px);
}
.pin-video-dur {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none;
}

/* 视频播放窗口（弹层） */
.video-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 16px;
}
.video-lightbox.active {
    display: flex;
}
.video-lightbox video {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    background: #000;
    border-radius: 12px;
    outline: none;
}
.video-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}
.video-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.32);
}
.video-lightbox-info {
    margin-top: 14px;
    max-width: 720px;
    width: 100%;
    background: rgba(20, 30, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 14px 16px;
    backdrop-filter: blur(12px);
    text-align: left;
}
.vlb-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.vlb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
}
.vlb-owner {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.vlb-author {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}
.vlb-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.vlb-mood {
    width: 1em;
    height: 1em;
    object-fit: contain;
    margin: -2px 1px 0 2px;
}
.vlb-title {
    margin: 8px 0 4px;
    font-size: 1.15rem;
    color: #fff;
    line-height: 1.3;
}
.video-lightbox-info .pin-cat {
    margin-left: 0;
}
.video-lightbox-info .pin-desc {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 发布弹窗 · 视频预览 */
.img-preview-list .img-preview.video-preview {
    width: 200px;
    height: auto;
}
.pub-video-video {
    width: 100%;
    height: auto;
    max-height: 44vh;
    display: block;
    background: #000;
    border-radius: var(--radius-sm);
}
.video-preview-meta {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    font-size: 0.7rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    padding: 2px 6px;
    text-align: center;
    white-space: nowrap;
}

/* 我的帖子 · 视频缩略可播放预览 */
.mypost-video {
    width: 96px;
    height: 120px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #000;
}

/* 我的帖子 · 大图预览 */
.mypost-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    align-items: center;
    justify-content: center;
}
.mypost-lightbox .lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}
.mypost-lightbox .lb-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mypost-lightbox .lb-img {
    max-width: 90vw;
    max-height: 78vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.mypost-lightbox .lb-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}
.mypost-lightbox .lb-count {
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
}
.mypost-lightbox .lb-nav {
    display: flex;
    gap: 8px;
}
.mypost-lightbox .lb-btn {
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transition: background 0.15s;
}
.mypost-lightbox .lb-btn:hover {
    background: rgba(255, 255, 255, 0.32);
}
.mypost-lightbox .lb-close {
    background: rgba(255, 255, 255, 0.12);
}

.mypost-main {
    min-width: 0;
    flex: 1;
}

.mypost-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mypost-content {
    margin-top: 3px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mypost-date {
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* ========== 主内容区 ========== */
.main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 32px) 24px 60px;
}

.category-bar {
    position: sticky;
    top: calc(var(--nav-height) + 16px);
    z-index: 100;
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.glass-pill {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.category {
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.category:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
}

.category.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-soft);
}

/* ========== 瀑布流布局 ========== */
.waterfall {
    column-count: 5;
    column-gap: 20px;
}

.pin-card {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                background 0.35s ease;
    animation: fadeInUp 0.6s ease backwards;
}

.pin-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover);
}

.pin-image-wrap {
    position: relative;
    overflow: hidden;
}

.pin-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.pin-card:hover .pin-image {
    transform: scale(1.05);
}

.pin-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.pin-card:hover .pin-overlay {
    opacity: 1;
}

/* 真人帖内容摘要 */
.pin-desc {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pin-like-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.pin-like-btn:hover {
    transform: scale(1.1);
}

.pin-like-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: fill 0.2s ease;
}

.pin-like-btn.liked svg {
    fill: currentColor;
}

.pin-content {
    padding: 14px 16px 16px;
}

/* ========== 心情标注 ========== */
.pin-mood-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pin-cat {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--accent-soft, rgba(91, 154, 168, 0.12));
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.mood-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.72rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.mood-badge:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.7);
}

.mood-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

.mood-badge .mood-label {
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mood-badge .mood-add {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.mood-picker {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mood-picker.active {
    opacity: 1;
    pointer-events: auto;
}

.mood-picker-panel {
    width: 420px;
    max-width: 100%;
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 60px rgba(31, 38, 135, 0.18);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mood-picker.active .mood-picker-panel {
    transform: translateY(0) scale(1);
}

.mood-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.mood-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
}

.mood-page-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.mood-page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.08);
}

.mood-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.mood-page-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 48px;
    text-align: center;
}

.mood-picker-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-secondary);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.mood-picker-close:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: rotate(90deg);
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.mood-grid::-webkit-scrollbar {
    width: 5px;
}

.mood-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

.mood-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mood-option:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.6);
}

.mood-option.selected {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 14px var(--accent-soft);
}

.mood-option img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.mood-option span {
    font-size: 0.72rem;
    color: var(--text-secondary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pin-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.pin-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pin-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pin-author img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.pin-author span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pin-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pin-stats svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
    fill: currentColor;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 加载状态 ========== */
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 2px solid var(--accent-soft);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader.hidden {
    display: none;
}

/* ========== 悬浮按钮 ========== */
.fab {
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--accent);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.18);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.25);
}

.fab svg {
    width: 28px;
    height: 28px;
}

/* ========== Lightbox ========== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 80%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.25s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s ease;
    z-index: 2;
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.32);
}
.lightbox-prev {
    left: 24px;
}
.lightbox-next {
    right: 24px;
}
.lightbox-nav[hidden] {
    display: none;
}

.lightbox-counter {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
}
.lightbox-counter[hidden] {
    display: none;
}

@keyframes lightboxFade {
    from {
        opacity: 0.25;
    }
    to {
        opacity: 1;
    }
}
.lightbox-switch {
    animation: lightboxFade 0.25s ease;
}

@media (max-width: 480px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-counter {
        top: 16px;
    }
}

.lightbox-info {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.lightbox-info p {
    font-size: 0.9rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lightbox-mood {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ========== Toast 提示 ========== */
.toast {
    position: fixed;
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 26px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.12);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
}

.toast.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* ===== 导航注册按钮 ===== */
.btn-register {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(31, 38, 135, 0.18);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-register:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 8px 22px rgba(31, 38, 135, 0.24);
}

/* ===== 邮箱注册弹窗 ===== */
.register-overlay {
    position: fixed;
    inset: 0;
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.register-overlay.active {
    opacity: 1;
    visibility: visible;
}

.register-modal {
    width: 100%;
    max-width: 380px;
    padding: 26px 26px 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(28px) saturate(170%);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 24px 70px rgba(31, 38, 135, 0.22);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.register-overlay.active .register-modal {
    transform: translateY(0) scale(1);
}

/* 发布弹窗加宽，便于编辑正文与插入表情 */
#publishOverlay .register-modal {
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
}

/* 发布弹窗：左（标题/内容/分类/发布）+ 右（图片/视频预览）两栏布局 */
.pub-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0 22px;
    margin-top: 4px;
    align-items: start;
}
.pub-left,
.pub-right {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pub-right .field-spacer { height: 4px; }

/* 窄屏下恢复单列 */
@media (max-width: 720px) {
    #publishOverlay .register-modal { max-width: 480px; max-height: 88vh; }
    .pub-grid { grid-template-columns: 1fr; gap: 0; }

    /* 登录/注册弹窗内容较多，限制高度并允许滚动，避免在手机上溢出屏幕 */
    #registerOverlay .register-modal {
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        padding: 22px 20px 20px;
    }
}

.register-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.register-close:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

.register-title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.register-sub {
    margin: 0 0 18px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
}

.auth-tab {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(31, 38, 135, 0.18);
}

.register-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    flex: 1;
    min-width: 0;
}

.register-field > span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.register-field input {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-field textarea {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    outline: none;
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-field input:focus,
.register-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 142, 207, 0.18);
}

/* 分类下拉框 */
.register-field select {
    padding: 11px 34px 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.55)
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
        no-repeat right 12px center;
    background-size: 14px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.register-field select:hover {
    border-color: rgba(255, 255, 255, 0.9);
}
.register-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 142, 207, 0.18);
}
.register-field select option {
    color: var(--text-primary);
    background: #fff;
}

/* 选择图片按钮 */
.img-pick-btn {
    padding: 10px 16px;
    border-radius: var(--radius-sm, 12px);
    border: 1.5px dashed rgba(91, 142, 207, 0.55);
    background: rgba(91, 142, 207, 0.08);
    color: var(--accent, #5b8ecf);
    font-size: 0.88rem;
    font-weight: 600;
    gap: 6px;
}
.img-pick-btn:hover {
    background: rgba(91, 142, 207, 0.16);
    border-color: var(--accent, #5b8ecf);
}
.img-pick-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.img-pick-count {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 10px;
    padding: 1px 8px;
}

/* 多图预览 */
.img-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.img-preview-list .img-preview {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: var(--radius-sm, 12px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.img-preview-list .img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.img-preview-list .img-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

/* 卡片多图数量角标 */
.card-img-count {
    display: none;
}

/* 卡片多图左右切换箭头 */
.pin-img-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.25s;
    -webkit-tap-highlight-color: transparent;
}
.pin-img-arrow:hover {
    background: rgba(0, 0, 0, 0.65);
}
.pin-img-prev { left: 8px; }
.pin-img-next { right: 8px; }
.pin-img-arrow[style*="opacity: 0"],
.pin-img-arrow[style*="opacity:0"] {
    pointer-events: none;
}

/* 卡片多图指示器 (1/3) */
.pin-img-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none;
    z-index: 5;
}

/* 移动端：箭头常驻 */
@media (max-width: 768px) {
    .pin-img-arrow {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

.register-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.code-btn {
    flex-shrink: 0;
    padding: 11px 14px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.code-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.register-msg {
    min-height: 18px;
    margin: 2px 0 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
}

.register-msg.ok { color: #2d8f5e; background: rgba(45, 143, 94, 0.1); }
.register-msg.err { color: var(--accent); background: rgba(208, 82, 82, 0.08); }

.register-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.2);
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.register-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.register-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 8px;
    color: var(--text-secondary);
    font-size: 0.74rem;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
}
.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.google-btn .google-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.google-btn:hover {
    box-shadow: 0 6px 20px rgba(60, 64, 67, 0.22);
    transform: translateY(-1px);
}

/* ========== 娱乐功能提示弹窗 ========== */
.mood-tip {
    position: fixed;
    z-index: 2500;
    display: flex;
    align-items: center;
    gap: 0;
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mood-tip.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.mood-tip-bubble {
    position: relative;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 16px 48px rgba(31, 38, 135, 0.18);
    max-width: 260px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mood-tip-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.mood-tip-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.mood-tip-close {
    padding: 4px 12px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mood-tip-close:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 14px var(--accent-soft);
}

.mood-tip-arrow {
    width: 0;
    height: 0;
}

/* 箭头默认朝左（弹窗在右侧时） */
.mood-tip.arrow-left .mood-tip-arrow {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid rgba(255, 255, 255, 0.65);
    margin-left: -10px;
}

.mood-tip.arrow-right .mood-tip-arrow {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid rgba(255, 255, 255, 0.65);
    order: -1;
    margin-right: -10px;
}

@keyframes tipWiggle {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-6px); }
    30% { transform: translateX(6px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}

.mood-tip.active .mood-tip-bubble {
    animation: tipWiggle 1.6s ease-in-out 0.6s 2;
}

/* ========== 响应式 ========== */
@media (max-width: 1280px) {
    .waterfall { column-count: 4; }
}

@media (max-width: 1024px) {
    .waterfall { column-count: 3; }
    .glass-search { min-width: 180px; }
}

@media (max-width: 768px) {
    .glass-nav { position: relative; box-shadow: none; border-bottom: none; }
    .waterfall { column-count: 2; column-gap: 8px; }
    .main-container { padding: 16px 6px 40px; }
    .nav-inner { padding: 0 12px; gap: 10px; }
    .glass-search { display: none; }
    .category-bar { top: 8px; margin-top: 8px; margin-bottom: 16px; }
    .fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
    .lightbox { padding: 16px; }
    .lightbox img { max-width: 100%; }
    .lightbox-info { width: calc(100% - 32px); bottom: 16px; }
    .toast { bottom: 86px; padding: 12px 22px; font-size: 0.9rem; white-space: normal; max-width: 80%; }
    /* 顶部导航收紧，避免在手机上横向溢出 */
    .nav-actions { gap: 6px; }
    .logo { gap: 8px; }
    .logo-img { height: 44px; }
    .nav-tag { padding: 9px 13px; font-size: 0.8rem; }
    .btn-register { padding: 8px 14px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .waterfall { column-count: 2; column-gap: 6px; }
    .main-container { padding: 12px 4px 32px; }
    .category-bar { margin-bottom: 12px; }
    .pin-card { margin-bottom: 12px; border-radius: var(--radius-sm); }
    .pin-content { padding: 10px; }
    .pin-title { font-size: 0.8rem; margin-bottom: 8px; }
    .pin-author span { max-width: 60px; font-size: 0.7rem; }
    .pin-stats { font-size: 0.7rem; }
    .logo-text { font-size: 1.1rem; }
    /* 极小屏：进一步压缩导航，隐藏次要图标 */
    .logo-img { height: 38px; }
    .icon-btn { width: 38px; height: 38px; }
    .icon-btn svg { width: 18px; height: 18px; }
    .nav-tag { padding: 8px 11px; font-size: 0.76rem; }
    .btn-register { padding: 7px 12px; font-size: 0.78rem; }
    .idea-wrap { display: none; }
    .nav-msg { display: none; }
}

/* ========== 站点页脚 ========== */
.site-footer {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding: 22px 24px 30px;
    margin-top: 8px;
}
.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: baseline; gap: 10px; }
.footer-logo { font-weight: 800; font-size: 1.1rem; }
.footer-tagline { color: var(--text-secondary); font-size: 0.82rem; }
.footer-links { display: flex; gap: 18px; }
.footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}
.footer-links a:hover { text-decoration: underline; }
.footer-copy { color: var(--text-secondary); font-size: 0.8rem; }

/* ========== 隐私/条款 底部同意弹窗 ========== */
.consent-banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(130%);
    bottom: 24px;
    z-index: 1200;
    width: min(680px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: var(--glass-shadow-hover);
}
.consent-banner.show {
    transform: translateX(-50%) translateY(0);
}
.consent-banner-body { flex: 1 1 0; min-width: 220px; }
.consent-banner-title { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.consent-banner-text { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.6; }
.consent-banner-text a { color: var(--accent); font-weight: 600; text-decoration: none; }
.consent-banner-text a:hover { text-decoration: underline; }
.consent-banner-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-link {
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    text-decoration: none;
}
.btn-ok {
    border: none;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    box-shadow: 0 8px 20px rgba(91, 154, 168, 0.35);
}
.btn-ok:active { transform: scale(0.96); }
@media (max-width: 480px) {
    .site-footer { padding: 18px 16px 24px; }
    .consent-banner { bottom: 14px; padding: 14px 16px; }
    .consent-banner-actions { width: 100%; justify-content: flex-end; }
}
