/* 文生图风格弹窗布局调整 */
.style-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 修改为 4 列 */
    gap: 15px;
    padding: 15px;
}

.style-card {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    cursor: pointer;
    margin-bottom: 15px; /* 调整底部间距 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.style-card.active {
    border: 2px solid var(--primary-color);
    background-color: rgba(139, 92, 246, 0.1);
}

.style-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.style-card span {
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
}

/* 媒体查询，适应不同屏幕宽度 */
@media (max-width: 1200px) {
    .style-grid {
        grid-template-columns: repeat(3, 1fr); /* 中等屏幕显示3个 */
    }
}

@media (max-width: 768px) {
    /* 移动端样式已移至 mobile-modal-fix.css */
}

@media (max-width: 480px) {
    /* 超小屏幕样式已移至 mobile-modal-fix.css */
}
