/* 展会活动小部件样式 */
.geniatech-event-showcase {
    display: grid;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

/* 列数控制 */
.geniatech-event-columns-1 .geniatech-event-showcase {
    grid-template-columns: 1fr;
}

.geniatech-event-columns-2 .geniatech-event-showcase {
    grid-template-columns: repeat(2, 1fr);
}

.geniatech-event-columns-3 .geniatech-event-showcase {
    grid-template-columns: repeat(3, 1fr);
}

.geniatech-event-columns-4 .geniatech-event-showcase {
    grid-template-columns: repeat(4, 1fr);
}

/* 展会活动卡片 */
.geniatech-event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.geniatech-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 背景图片区域 */
.geniatech-event-image {
    position: relative;
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 180px;
}

/* 背景遮罩 */
.geniatech-event-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: background-color 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.geniatech-event-card:hover .geniatech-event-image::before {
    background: rgba(0, 0, 0, 0.5);
}

/* 展厅图标 */
.geniatech-event-venue-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: 2;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geniatech-event-venue-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* 内容区域 */
.geniatech-event-content {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

/* 标题样式 */
.geniatech-event-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #333;
}

/* 展会地址 */
.geniatech-event-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
    flex-wrap: wrap;
}

/* 移除地址图标 */
/* .geniatech-event-location::before 已移除 */

/* 展会时间和展厅名称 */
.geniatech-event-date-venue {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.4;
    word-break: break-word;
}

.geniatech-event-date {
    font-weight: 500;
    flex-shrink: 0;
}

.geniatech-event-separator {
    color: #ccc;
    font-weight: 300;
    flex-shrink: 0;
}

.geniatech-event-venue {
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
}

/* 空状态 */
.geniatech-event-showcase-empty {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .geniatech-event-columns-4 .geniatech-event-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .geniatech-event-columns-3 .geniatech-event-showcase,
    .geniatech-event-columns-4 .geniatech-event-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .geniatech-event-card {
        height: auto;
    }
    
    .geniatech-event-image {
        min-height: 160px;
    }
    
    .geniatech-event-content {
        padding: 15px;
    }
    
    .geniatech-event-title {
        font-size: 16px;
    }
    
    .geniatech-event-venue-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .geniatech-event-columns-2 .geniatech-event-showcase,
    .geniatech-event-columns-3 .geniatech-event-showcase,
    .geniatech-event-columns-4 .geniatech-event-showcase {
        grid-template-columns: 1fr;
    }
    
    .geniatech-event-card {
        height: auto;
    }
    
    .geniatech-event-image {
        min-height: 140px;
    }
    
    .geniatech-event-content {
        padding: 12px;
        gap: 6px;
    }
    
    .geniatech-event-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .geniatech-event-location {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .geniatech-event-date-venue {
        font-size: 12px;
    }
    
    .geniatech-event-venue-icon {
        width: 45px;
        height: 45px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.geniatech-event-card {
    animation: fadeInUp 0.6s ease forwards;
}

.geniatech-event-card:nth-child(1) { animation-delay: 0.1s; }
.geniatech-event-card:nth-child(2) { animation-delay: 0.2s; }
.geniatech-event-card:nth-child(3) { animation-delay: 0.3s; }
.geniatech-event-card:nth-child(4) { animation-delay: 0.4s; }
.geniatech-event-card:nth-child(5) { animation-delay: 0.5s; }
.geniatech-event-card:nth-child(6) { animation-delay: 0.6s; }

/* 悬停效果 */
.geniatech-event-card:hover .geniatech-event-venue-icon {
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 0.3s ease;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .geniatech-event-card {
        background: #2c2c2c;
        color: #fff;
    }
    
    .geniatech-event-content {
        background: #2c2c2c;
    }
    
    .geniatech-event-title {
        color: #fff;
    }
    
    .geniatech-event-location {
        color: #ccc;
    }
    
    .geniatech-event-date-venue {
        color: #aaa;
    }
    
    .geniatech-event-venue {
        color: #ccc;
    }
}

/* 打印样式 */
@media print {
    .geniatech-event-showcase {
        display: block;
    }
    
    .geniatech-event-card {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .geniatech-event-card:hover {
        transform: none;
    }
    
    .geniatech-event-venue-icon {
        display: none;
    }
}
