.post-card {
    position: relative;
    background-color: var(--color-bg-secondary);
    border: var(--border-skeuo);
    border-color: var(--border-skeuo-light);
    box-shadow: var(--shadow-card), var(--shadow-skeuo-out);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    max-height: 320px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Mini Post Card for Drift Wall (Desktop Only) */
@media (min-width: 992px) {
    .post-card-mini {
        width: 450px; /* 宽度翻倍，形成矮长方形 */
        height: 213px !important; /* 强制锁定高度 */
        max-height: 213px !important;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 16px;
    }

    .post-card-mini .post-card-layers {
        height: 100% !important;
        min-height: 100% !important;
        max-height: 213px !important;
    }

    .post-card-mini .content-layer {
        padding: 12px; /* 增加内边距 */
        height: 100% !important;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.4) 60%, transparent 100%) !important;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .post-card-mini .post-card-header {
        gap: 8px;
        margin-bottom: 8px;
        min-height: 24px;
    }

    .post-card-mini .skeuo-badge {
        padding: 2px 6px;
        font-size: 11px;
    }

    .post-card-mini .post-animal {
        font-size: 13px;
    }

    .post-card-mini .post-card-tag {
        font-size: 11px;
        padding: 1px 6px;
    }

    .post-card-mini .post-title {
        font-size: 16px; /* 扩大标题 */
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #000;
        text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
    }

    .post-card-mini .post-preview {
        font-size: 13px; /* 扩大正文 */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* 恢复为 2 行，因为字号变大 */
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-grow: 0;
        color: #333;
    }

    .post-card-mini .post-card-footer {
        margin-top: auto;
        padding: 6px 12px;
        margin: 0 -12px -12px -12px; /* 抵消 content-layer 的 padding */
        background: rgba(255, 255, 255, 0.05); /* 趋近透明 */
        backdrop-filter: blur(12px); /* 底部高斯模糊长条 */
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 10;
    }

    .post-card-mini .stat-item {
        font-size: 12px;
        gap: 4px;
        color: #000;
        font-weight: bold;
    }

    .post-card-mini .interaction-icon {
        width: 18px; /* 扩大图标 */
        height: 18px;
    }

    .post-card-mini .post-date {
        font-size: 11px;
        color: #444;
    }
}

.post-card:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px rgba(0,0,0,0.15), var(--shadow-skeuo-out);
}

/* Drift Wall Layout */
.drift-wall-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f3f6;
    padding: 0; 
    margin-top: -10px; 
    min-height: calc(100vh - 180px);
}

.drift-track-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    overflow: visible; /* 允许内部轨道溢出 */
}

.drift-track {
    display: flex;
    white-space: nowrap;
    position: relative;
    will-change: transform;
}

/* 顶部集成控制栏布局 */
.rec-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 4px 15px;
}

.wall-integrated-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid rgba(0,0,0,0.1);
    padding-right: 15px;
    margin-right: 15px;
}

.rec-content-right {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.speed-num {
    font-size: 11px;
    font-weight: bold;
    min-width: 45px;
    color: var(--color-accent);
    font-family: 'Courier New', monospace;
}

.skeuo-slider-mini {
    -webkit-appearance: none;
    width: 120px;
    height: 4px;
    background: #c0c0c0;
    border-radius: 2px;
    box-shadow: inset 1px 1px 1px rgba(0,0,0,0.2);
}

.skeuo-slider-mini::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #eee;
    border: 1px solid #777;
    border-radius: 50%;
    cursor: pointer;
}

.btn-group-mini {
    display: flex;
    gap: 4px;
}

.skeuo-btn-icon {
    width: 22px;
    height: 22px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f5f5f5 0%, #d5d5d5 100%);
    border: 1px solid #aaa;
    border-radius: 3px;
    cursor: pointer;
}

.skeuo-btn-icon:active {
    background: #ccc;
}

/* 砖墙错位效果由 JS 设置初始 transform: translateX 补充 */

/* 置顶帖子锚点容器 */
.pinned-anchor {
    position: absolute;
    left: 0;
    top: 0; /* 同步抬高，与轨道对齐 */
    display: flex;
    z-index: 50; 
    background: transparent;
    padding-right: 0; /* 移除内边距，由 JS 精确控制消失线间距 */
    height: 213px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    pointer-events: none;
}

.rec-label {
    font-weight: bold;
    color: #5d7b9d;
    margin-right: 25px; /* 进一步增加与头像列表的间距，解决拥挤 */
    flex-shrink: 0;
}

.pinned-anchor .post-card {
    pointer-events: auto; /* 置顶卡片自身恢复点击 */
}

/* 渐变融入效果 - 移除，改为轨道切割 */
.pinned-anchor::after {
    display: none;
}

/* 控制栏样式 */
.drift-wall-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    background: #e0e0e0;
    border: var(--border-skeuo);
    border-color: var(--border-skeuo-light);
    box-shadow: var(--shadow-skeuo-out);
    margin: 10px 0 20px 0;
    border-radius: 4px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-label {
    font-size: 11px;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 0 #fff;
}

/* 拟物化滑块 */
.skeuo-slider {
    -webkit-appearance: none;
    width: 150px;
    height: 6px;
    background: #b0b0b0;
    border-radius: 3px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3), 1px 1px 0 #fff;
    outline: none;
}

.skeuo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(180deg, #eee 0%, #ccc 100%);
    border: 1px solid #888;
    border-radius: 2px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    cursor: pointer;
}

/* 拟物化按钮 */
.skeuo-btn-mini {
    padding: 2px 8px;
    font-size: 10px;
    background: linear-gradient(180deg, #f0f0f0 0%, #d0d0d0 100%);
    border: 1px solid #999;
    border-radius: 2px;
    box-shadow: 1px 1px 0 #fff inset, 1px 1px 2px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.skeuo-btn-mini:active {
    background: linear-gradient(180deg, #ccc 0%, #e0e0e0 100%);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
}

.status-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #666;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.status-led.active {
    background: #00ff00;
    box-shadow: 0 0 4px #00ff00;
}

/* 移动端系统提示遮罩 */
.mobile-system-notice {
    position: fixed; /* 改为 fixed 以置于视口最上层 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    z-index: 10001 !important; /* 超过 toast 的 9999，确保不被任何东西遮挡 */
    text-align: center;
    pointer-events: none; 
}

.notice-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border: 2px solid #cc0000;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.notice-content p {
    color: #cc0000;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.6;
}

.notice-content .cn {
    font-size: 14px;
}

.notice-content .en {
    font-size: 12px;
    font-style: italic;
    border-top: 1px solid rgba(204, 0, 0, 0.2);
    padding-top: 10px;
}

.post-card:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px rgba(0,0,0,0.15), var(--shadow-skeuo-out);
}

.post-card-layers {
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    background: #fff; /* 默认白底 */
}

.post-card-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.9);
    transform: scale(1.1); /* 防止模糊边缘发白 */
    z-index: 0;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.background-layer {
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.drawing-layer {
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.drawing-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.content-layer {
    position: relative;
    z-index: 3;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px); /* 增加磨砂质感 */
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3); /* 增加玻璃边框 */
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-sm);
    min-height: 24px;
}

.post-header-left {
    display: flex;
    align-items: center;
    gap: 10px; /* 增加分类与匿名标签之间的间距 */
    flex-shrink: 0;
}

.skeuo-badge {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    padding: 2px 8px;
    font-size: var(--font-size-xs);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-skeuo-in);
}

.post-animal {
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    font-size: var(--font-size-sm);
}

.post-card-tags {
    display: flex;
    flex-wrap: nowrap; /* 缩略页强制单行 */
    gap: 6px;
    overflow: hidden;
    flex: 1;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.post-card-tag {
    font-size: 10px;
    color: var(--color-accent);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.8);
    padding: 1px 6px;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 1px 1px 0 #fff inset;
    flex-shrink: 0;
}

.post-title {
    font-size: var(--font-size-lg);
    margin: 0 0 var(--space-xs) 0;
    color: var(--color-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-preview {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(0,0,0,0.1);
}

.post-stats {
    display: flex;
    gap: var(--space-md);
}

.stat-item {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-date {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.post-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

/* "..." 菜单 */
.post-actions-menu {
    position: relative;
    z-index: 10;
}
.menu-trigger {
    background: none;
    border: 1px solid #888;
    cursor: pointer;
    font-weight: bold;
    padding: 0 6px;
    font-size: 14px;
    line-height: 1.2;
    color: #333;
    background: #eee;
}
.menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 2px solid #808080;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
    padding: 0;
    margin: 2px 0 0 0;
    list-style: none;
    min-width: 100px;
    z-index: 100;
}
.menu-dropdown.show { display: block; }
.menu-dropdown li {
    padding: 6px 10px;
    font-size: 12px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}
.menu-dropdown li:hover { background: #f0f0f0; }

.skeuo-input {
    background-color: var(--color-bg-secondary);
    border: var(--border-skeuo);
    border-color: var(--border-skeuo-dark);
    box-shadow: var(--shadow-skeuo-in);
    padding: var(--space-xs) var(--space-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    outline: none;
}

.loading-trigger {
    text-align: center;
    padding: var(--space-lg);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
    .post-card { max-height: 280px; }
    .post-card-layers { min-height: 160px; }
    .post-title { font-size: 14px; }
    .post-preview { font-size: 12px; }
    .content-layer { padding: 10px; }
    .post-stats { gap: 8px; }
    .stat-item { font-size: 11px; }
}

@keyframes sparkle-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 4px rgba(255,215,0,0.6)); }
    50% { transform: scale(1.1) rotate(15deg); filter: drop-shadow(0 0 8px rgba(255,215,0,0.9)); }
}
