@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');


body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f6f7fb, #e9ecf8);
  color: #2c2c2c;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  text-align: center;
  padding: 50px 20px 30px;
}

header h1 {
  font-size: 2.4rem;
  font-weight: 600;
  color: #3a3a85;
  letter-spacing: 0.5px;
}

header p {
  font-size: 1rem;
  color: #555;
  margin-top: 8px;
}

header a {
  color: #5b6cff;
  text-decoration: none;
  font-weight: 500;
}

.search {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(200, 200, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 85%;
  max-width: 600px;
  margin-bottom: 50px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.search:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.search label {
  font-weight: 500;
  color: #4343a1;
}

.search input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #ccd0f0;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search input:focus {
  outline: none;
  border-color: #5b6cff;
  box-shadow: 0 0 6px rgba(91, 108, 255, 0.2);
  background: #ffffff;
}

.search button {
  background: linear-gradient(135deg, #5b6cff, #6fa8ff);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.search button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(91, 108, 255, 0.3);
}

.result {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  width: 100%;
  padding-bottom: 60px;
}

footer {
  padding: 20px;
  text-align: center;
  color: #6b6b6b;
  font-size: 0.9rem;
}

footer a {
  color: #5b6cff;
  text-decoration: none;
  font-weight: 500;
}


/* ========= Card (Fluid Responsive) ========= */
.card.horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(145deg, #ffffff, #f6f7fb);
  border-radius: 1.2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  padding: clamp(1rem, 2vw, 2rem);
  width: min(90%, 800px);
  margin: 2rem auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.horizontal:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* ====== 图片区域 ====== */
.card.horizontal .img-box {
  flex-shrink: 0;
  background: #f4f5fd;
  border-radius: 1rem;
  padding: clamp(0.6rem, 1.2vw, 1.2rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

.card.horizontal img {
  width: clamp(90px, 15vw, 150px);
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card.horizontal img:hover {
  transform: scale(1.06);
}

/* ====== 信息区域 ====== */
.card.horizontal .info {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card.horizontal h2 {
  color: #3a3a85;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin: 0 0 0.4rem;
}

.card.horizontal .type {
  color: #555;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  margin-bottom: 0.5rem;
}

.card.horizontal h3 {
  color: #5b6cff;
  border-bottom: 1.5px solid rgba(91,108,255,0.2);
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 600;
}

/* ====== 属性列表 ====== */
.card.horizontal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
}

.card.horizontal ul li {
  background: rgba(240, 242, 255, 0.8);
  padding: clamp(0.5rem, 1vw, 0.8rem);
  border-radius: 10px;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: #2f2f2f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.card.horizontal ul li:hover {
  background: rgba(220, 225, 255, 0.95);
}

.card.horizontal ul li span:last-child {
  color: #5b6cff;
  font-weight: 600;
}

/* ====== 响应式断点 ====== */
@media (max-width: 900px) {
  .card.horizontal {
    flex-direction: column;
    text-align: center;
  }

  .card.horizontal .info {
    align-items: center;
  }

  .card.horizontal ul {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .card.horizontal ul li {
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .card.horizontal {
    border-radius: 1rem;
    padding: 1.2rem;
  }

  .card.horizontal img {
    width: clamp(80px, 25vw, 120px);
  }

  .card.horizontal ul li {
    flex-direction: column;
    align-items: flex-start;
  }

  .card.horizontal ul li span:last-child {
    align-self: flex-end;
  }
}