/* Grid Layout */
.market-block-title {
    max-width: 90%;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #003366; /* 深蓝色 */
    font-weight: 500;
}

.market-grid-container {
    max-width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Responsive Columns */
@media (max-width: 1024px) {
    .market-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .market-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .market-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Card Style */
.market-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9; /* 保持宽高比 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.market-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

/* Background Image with Zoom Effect */
.market-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease; /* 过渡动画 */
}

.market-item:hover .market-bg {
    transform: scale(1.1); /* 鼠标移入放大 */
}

/* Content Overlay */
.market-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); /* 渐变背景，保证文字清晰 */
    z-index: 1;
    pointer-events: none; /* 让点击穿透到链接 */
}

.market-title {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
