/* 动态页样式 - 设计感质感豪华版 */

.dynamic-page {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 30%, #e2e8f0 100%);
    min-height: 100vh;
    padding-bottom: 90px;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 720px;
    margin: 0 auto;
}

/* 置顶头像区域 */
.header-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.95) 100%);
    padding: 32px 0;
    display: flex;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 8px 30px rgba(0,0,0,0.04), 0 -1px 0 rgba(255,255,255,0.9) inset;
    border-bottom: 1px solid rgba(59,130,246,0.08);
    position: relative;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: linear-gradient(90deg, rgba(59,130,246,0.4), rgba(59,130,246,0.1), rgba(59,130,246,0.4));
    border-radius: 2px;
    opacity: 0.8;
}

.header-avatar {
    width: 108px;
    height: 108px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(59,130,246,0.15);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1), 0 1px 0 rgba(255,255,255,0.8) inset;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    position: relative;
}

.header-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 100%);
    border-radius: 32px 32px 0 0;
    pointer-events: none;
}

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

/* 动态列表 */
.dynamic-list {
    padding: 28px 20px;
}

.dynamic-item {
    display: flex;
    gap: 18px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.95) 100%);
    border-radius: 24px;
    margin-bottom: 18px;
    box-shadow: 0 3px 18px rgba(0,0,0,0.03), 0 1px 0 rgba(255,255,255,0.9) inset;
    transition: all 0.35s cubic-bezier(0.2,0.8,0.3,1);
    border: 1px solid rgba(59,130,246,0.06);
    position: relative;
    overflow: hidden;
}

.dynamic-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%);
    pointer-events: none;
}

.dynamic-item:hover {
    box-shadow: 0 8px 34px rgba(59,130,246,0.14), 0 1px 0 rgba(255,255,255,0.95) inset;
    transform: translateY(-4px);
    border-color: rgba(59,130,246,0.15);
}

.dynamic-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dynamic-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dynamic-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
}

.dynamic-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    font-weight: 500;
}

.dynamic-time {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
    font-weight: 500;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dynamic-time::before {
    content: '';
    width: 4px;
    height: 4px;
    background: rgba(59,130,246,0.4);
    border-radius: 50%;
}

.dynamic-right {
    width: 110px;
    flex-shrink: 0;
}

.dynamic-right img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.75) inset;
    border: 1px solid rgba(59,130,246,0.08);
}

.dynamic-images {
    display: grid;
    gap: 6px;
}

.dynamic-images.count-1 {
    grid-template-columns: 1fr;
}

.dynamic-images.count-2,
.dynamic-images.count-3 {
    grid-template-columns: repeat(2, 1fr);
}

.dynamic-images.count-3 img:first-child {
    grid-row: span 2;
}

.dynamic-empty {
    text-align: center;
    padding: 34px 12px;
    color: #64748b;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(59,130,246,.08);
    border-radius: 18px;
}

@media (max-width: 520px) {
    .dynamic-item {
        gap: 12px;
        padding: 16px;
    }
    .dynamic-right {
        width: 96px;
    }
    .dynamic-right img {
        height: 96px;
        border-radius: 16px;
    }
}

.dynamic-image-btn {
    display: block;
    line-height: 0;
    border-radius: inherit;
    overflow: hidden;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.dynamic-image-btn img {
    width: 100%;
    height: 100%;
}

.dynamic-images.count-3 .dynamic-image-btn:first-child {
    grid-row: span 2;
}

.dynamic-images.count-3 .dynamic-image-btn:first-child img {
    grid-row: auto;
}

.image-zoom-trigger {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    line-height: 0;
    border-radius: inherit;
    overflow: hidden;
}

.image-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .82);
}

.image-preview-modal.show {
    display: flex;
}

.image-preview-modal img {
    max-width: 96vw;
    max-height: 88vh;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
}

.image-preview-close {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #111827;
    font-size: 24px;
    line-height: 34px;
    cursor: pointer;
}
