@import url(main.css);

/* 背景图层 */
.custom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/computed_background.png') no-repeat center center;
    background-size: 100% 100%; /* 完全拉伸填充容器，可能改变图片宽高比 */
    z-index: 0;
}

/* 蒙版层 - 默认白色蒙版 */
.custom-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1;
    transition: background-color 0.3s ease;
}

/* Hover效果 - 蓝色蒙版 */
.custom-card:hover::after {
    background-color: rgba(59, 130, 246, 0.9);
}

.custom-card:hover .custom-title,
.custom-card:hover .custom-desc {
    color: #ffffff !important;
}

.custom-card:hover .custom-btn {
  color: #ffffff !important;
  background-color: transparent !important;
  border-color: #ffffff !important;
}

/* 卡片基础样式 - 添加过渡效果 */
.custom-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover状态的卡片向上移动50像素 */
.custom-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Hover状态的蓝色蒙版 */
.custom-card:hover::after {
    background-color: rgba(59, 130, 246, 0.9);
}

.custom-card:hover .custom-title,
.custom-card:hover .custom-desc {
    color: #ffffff !important;
}

.custom-card:hover .custom-btn {
    color: #ffffff !important;
    background-color: transparent !important;
    border-color: #ffffff !important;
}

/* 内容区域 */
.custom-card-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 文字内容区域 - 固定高度，溢出隐藏 */
.custom-text-content {
    flex: 1;
    overflow: hidden;
    max-height: 180px;
}

/* 按钮容器 - 底部居中 */
.custom-btn-container {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 16px;
  }
  
  /* 按钮样式 */
  .custom-btn {
    background: #409EFF;
    color: #fff!important;
    transition: all 0.3s ease;
    border: 1px solod #409EFF;
}

.custom-btn:hover {
    background-color: #ffffff !important;
    color: #3b82f6 !important;
    border: 1px solid #ffffff !important;
}

/* 响应式布局优化 */
/* 小屏设备（< 640px）：单列布局 */
@media (max-width: 639px) {
    .custom-card {
        min-height: 260px;
    }
    .custom-text-content {
        max-height: 160px;
    }
}

/* 中屏设备（640px - 1023px）：双列布局 */
@media (min-width: 640px) and (max-width: 1023px) {
    .custom-card {
        min-height: 300px;
    }
    .custom-text-content {
        max-height: 200px;
    }
}

/* 大屏设备（>= 1024px）：四列布局 */
@media (min-width: 1024px) {
    .custom-card {
        min-height: 300px;
    }
    .custom-text-content {
        max-height: 200px;
    }
}
.f18 {
  font-size: 18px;
}