/* 最新动态模块样式 */

.dongtai-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: #f5f5f5;
}

/* 头部 */
.dongtai-header {
    background: linear-gradient(135deg, var(--primary-color, #ff9500) 0%, var(--primary-light, #ffb347) 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.dongtai-back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 6px;
}

.dongtai-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.dongtai-back-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.dongtai-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.dongtai-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* 内容区域 */
.dongtai-content {
    padding: 16px;
}

/* 动态列表 */
.dongtai-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 动态项 */
.dongtai-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dongtai-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 动态项头部 */
.dongtai-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.dongtai-item-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 255, 149, 0), 0.1) 0%, rgba(var(--primary-color-rgb, 255, 149, 0), 0.15) 100%);
    border-radius: 12px;
}

.dongtai-item-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.dongtai-item-icon-emoji {
    font-size: 28px;
    line-height: 1;
}

/* SVG图标样式 - 支持主题切换 */
.dongtai-item-icon-svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color, #ff9500);
    transition: color 0.3s ease;
}

.dongtai-item-info {
    flex: 1;
    min-width: 0;
}

.dongtai-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dongtai-item-time {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* 动态项内容 */
.dongtai-item-content {
    margin-bottom: 12px;
}

.dongtai-item-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 12px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.dongtai-item-image {
    width: 100%;
    border-radius: 8px;
    display: block;
    margin-top: 8px;
}

/* 动态项操作 */
.dongtai-item-action {
    display: flex;
    justify-content: flex-end;
}

.dongtai-item-btn {
    padding: 8px 16px;
    background: var(--primary-color, #ff9500);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dongtai-item-btn:hover {
    background: var(--primary-light, #ffb347);
    transform: translateX(2px);
}

.dongtai-item-btn:active {
    transform: translateX(2px) scale(0.98);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .dongtai-header {
        padding: 24px 16px;
    }

    .dongtai-title {
        font-size: 20px;
    }

    .dongtai-subtitle {
        font-size: 13px;
    }

    .dongtai-content {
        padding: 12px;
    }

    .dongtai-item {
        padding: 14px;
    }

    .dongtai-item-icon {
        width: 40px;
        height: 40px;
    }

    .dongtai-item-icon-img {
        width: 28px;
        height: 28px;
    }

    .dongtai-item-icon-emoji {
        font-size: 24px;
    }

    .dongtai-item-icon-svg {
        width: 28px;
        height: 28px;
    }

    .dongtai-item-title {
        font-size: 15px;
    }
}

