/* 全局样式 */
/* body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
  }
   */
  .rn-to-pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
    margin-top: 570px;
  }
  
  .rn-to-pro-item {
    position: relative;
    display: block;
    text-decoration: none;
    color: #fff;
    background-size: cover;
    background-position: center;
    border-radius: 0; /* 直角 */
    overflow: hidden;
    height: 250px; /* 固定高度 */
    transition: transform 0.3s ease-in-out;
  }
  
  .rn-to-pro-item:hover {
    transform: scale(1.05);
  }
  
  .rn-to-pro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0); /* 默认无背景色 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 内容对齐到下方 */
    align-items: flex-start; /* 文字左对齐 */
    padding: 20px;
    transition: background-color 0.3s ease-in-out;
  }
  
  .rn-to-pro-item:hover .rn-to-pro-overlay {
    background-color: rgba(0, 0, 0, 0.6); /* 半透明遮罩 */
  }
  
  .rn-to-pro-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    transition: transform 0.3s ease-in-out;
  }
  
  .rn-to-pro-content {
    font-size: 14px;
    line-height: 1.5;
    width: 100%; /* 确保宽度占满整个方块 */
    padding-right: 20px; /* 给右边留出一些空间避免文字贴边 */
    opacity: 0; /* 默认隐藏简介内容 */
    transition: opacity 0.3s ease-in-out;
  }
  
  .rn-to-pro-item:hover .rn-to-pro-header {
    transform: translateY(-40px); /* 分类名上移 */
  }
  
  .rn-to-pro-item:hover .rn-to-pro-content {
    opacity: 1; /* 鼠标悬浮时显示简介内容 */
  }