* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f2f8;
    margin: 0;
    padding: 0;
}

.wrapper {
    width: 100%;
    background: #f4f2f8;
    padding: 0;
    margin-top: 5px;
}

.banner {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    height: 180px;
}

.grid {
    display: flex;
    flex-direction: column;
    /* gap: 12px; */
    padding: 0 0px;
    width: 100%;
}

.list-item-container {
    margin-bottom: -5px;
}

.list-item {
    width: 100%;
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 100px;
}

.list-item-img {
    flex-shrink: 0;
    object-fit: cover;
}

.list-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-item-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.3;
}

.list-item-description {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.ad-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff0000;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 0 8px 0 8px;
    font-weight: bold;
    z-index: 10;
}

/* 适配移动端和PC */
@media (max-width: 768px) {
    .list-item-img {
        width: 100px;
        height: 70px;
        float: left;
    }
    
    .list-item-content {
        padding: 8px;
    }
    
    .list-item-title {
        font-size: 14px;
    }
    
    .list-item-description {
        font-size: 12px;
    }
    
    .list-item-meta {
        font-size: 11px;
    }
    
    .grid {
        padding: 0 0px;
        gap: 0px;
    }
    
    .banner {
        height: 150px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .wrapper {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .list-item-img {
        width: 130px;
        height: 90px;
    }
    
    .list-item-content {
        padding: 12px;
    }
    
    .list-item-title {
        font-size: 15px;
    }
    
    .list-item-description {
        font-size: 13px;
    }
    
    .list-item-meta {
        font-size: 12px;
    }
    
    .grid {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
        gap: 0px;
    }
    
    .banner {
        height: 180px;
    }
}

@media (min-width: 1025px) {
    .wrapper {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .list-item-img {
        width: 140px;
        height: 100px;
    }
    
    .list-item-content {
        padding: 15px;
    }
    
    .list-item-title {
        font-size: 16px;
    }
    
    .list-item-description {
        font-size: 14px;
    }
    
    .list-item-meta {
        font-size: 13px;
    }
    
    .grid {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        gap: 0px;
    }
    
    .banner {
        height: 200px;
    }
}

@media screen and (min-width: 1025px) {
    iframe {
        width: 100%;
        height: 150px !important;
    }
} 
iframe {
    width: 100%;
    height: 160px;
    border: none;
    display: block;
}

/* 加载指示器样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
    position: fixed;
    z-index: 999999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(243, 243, 243, 0.1);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #ffffff;
    font-size: 14px;
}