/* case-list.css */
/* 案例列表页面样式 */

/* 列容器布局 */
.column-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0px;
}

.column {
    background-color: #fff;
    border-radius: 3%;
    padding: 20px;
    box-shadow: 0px 6px 12px 0px rgba(0, 31, 68, 0.10);
    text-align: center;
    box-sizing: border-box;
    flex: 1 0 calc(25% - 10px);
}

.column a {
    color: #333;
    font-weight: 600;
}

.column a:hover {
    color: #1f9e41;
}

/* 下拉选择器样式 */
.custom-select {
    position: relative;
    max-width: 300px;
    margin: 20px auto;
    font-family: 'Arial', sans-serif;
}

.select-trigger {
    background: linear-gradient(135deg, #1f9e41, #00A3FF);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.select-trigger:hover {
    transform: translateY(-2px);
}

.arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.select-options {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.select-options.active {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.select-options li {
    padding: 0;
    border-bottom: 1px solid #eee;
}

.select-options a {
    color: #333;
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    transition: all 0.2s;
}

.select-options a:hover {
    background: #f8f9fa;
    padding-left: 30px;
    color: #6B48FF;
}

/* 自定义滚动条样式 */
.select-options::-webkit-scrollbar {
    width: 8px;
}

.select-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 10px 10px 0;
}

.select-options::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.select-options::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .column {
        flex: 1 0 calc(33.333% - 10px);
    }
}

@media (max-width: 768px) {
    .column {
        flex: 1 0 calc(50% - 10px);
    }
    
    .custom-select {
        max-width: 100%;
    }
    
    .select-trigger {
        border-radius: 8px;
        padding: 12px 20px;
    }
    
    .select-options {
        max-height: 60vh;
        position: fixed;
        top: 50% !important;
        left: 15px;
        right: 15px;
        transform: translateY(-50%);
    }
}

@media (max-width: 480px) {
    .column {
        flex: 1 0 100%;
    }
}