/* 通用样式 */
body,
html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 顶部导航栏 */
header {
    background-color: #1c1c1c;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    color: #ffffff;
    font-size: 24px;
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover {
    color: #cccccc;
}

/* Banner 区域 */
.banner {
    background-image: url('ai.jpg');/* 替换为实际的背景图片URL */ 
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 36px;
    text-align: center;
    flex-direction: column;
}

/* 搜索 */
.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
  }
  
  #search-box {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }
  
  .results-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
    color: #333;
  }
  
  .result-item {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    text-align: left;
  }
  
  .result-item:last-child {
    border-bottom: none;
  }
  
  .result-item:hover {
    background-color: #f5f5f5;
  }
  
  .result-title {
    font-size: 16px;
    font-weight: bold;
  }
  
  .result-brief {
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

/* 案例展示区 */
.case-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px;
    gap: 20px;
  }
  
  .case-card {
    display: block;
    width: 100%;
    max-width: 300px;
    height: 250px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.8);
    transition: box-shadow 0.3s;
  }
  
  .case-card:hover {
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.4);
  }
  
  .case-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .case-info {
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 1em;
    height: 50%;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }
  
  .case-info h2 {
    font-size: 1.6em;
    margin: 0.2em;
  }
  
  .case-info p {
    font-size: 16px;
    margin: 0.5em 0;
    /* margin-bottom: 2em; */
  }

  .case-info ul.case-tags > li {
    display: inline-block;
    padding: 0.4em 0.6em;
    margin: 0 0.5em;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1em;
  }

  .case-desc {
    padding: 0 1em;
  }
  
  /* 响应式布局 */
  @media screen and (min-width: 768px) {
    .case-card {
      width: calc(50% - 20px);
    }
  }
  
  @media screen and (min-width: 992px) {
    .case-card {
      width: calc(33.33% - 20px);
    }
  }

/* 页脚 */
footer {
    background-color: #1c1c1c;
    padding: 20px;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}