/* ================================
   自定义页面：3D模型文章列表
================================ */

.model-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 20px 64px;
}

.model-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: end;
  gap: 28px;
  padding: 34px 0 28px;
  border-bottom: 1px solid #dbe4ee;
}

.model-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #7c3aed;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.model-heading h1 {
  margin: 0 0 14px;
  color: #102033;
  font-size: 44px;
  font-weight: 850;
  line-height: 1.12;
}

.model-heading p {
  max-width: 620px;
  margin: 0;
  color: #52616f;
  font-size: 16px;
  line-height: 1.8;
}

.model-search {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.06);
}

.model-search input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  color: #102033;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.model-search button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  color: #ffffff;
  background: #be123c;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.18s ease;
}

.model-search button:hover {
  background: #9f1239;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.model-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.model-card:hover {
  border-color: #be123c;
  box-shadow: 0 16px 34px rgba(16, 32, 51, 0.1);
  transform: translateY(-2px);
}

.model-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff7f8;
  overflow: hidden;
}

.model-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.model-card:hover .model-card-media img {
  transform: scale(1.035);
}

.model-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #be123c;
  font-size: 34px;
  font-weight: 850;
}

.model-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.model-card-meta {
  min-height: 20px;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.model-card h2 {
  margin: 0 0 10px;
  color: #102033;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.38;
}

.model-card h2 a:hover {
  color: #be123c;
}

.model-card p {
  margin: 0;
  color: #52616f;
  font-size: 14px;
  line-height: 1.75;
}

.model-empty {
  padding: 34px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}

.model-empty h2 {
  margin: 0 0 10px;
  color: #102033;
  font-size: 22px;
}

.model-empty p {
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

@media (max-width: 992px) {
  .model-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .model-search {
    max-width: 560px;
  }

  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .model-page {
    padding: 24px 14px 44px;
  }

  .model-header {
    padding-top: 22px;
  }

  .model-heading h1 {
    font-size: 34px;
  }

  .model-heading p {
    font-size: 15px;
  }

  .model-search {
    flex-direction: column;
    align-items: stretch;
    padding: 6px;
  }

  .model-search input,
  .model-search button {
    width: 100%;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .model-page {
    padding: 18px 12px 36px;
  }

  .model-header {
    gap: 18px;
    padding-top: 16px;
    padding-bottom: 20px;
  }

  .model-kicker {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .model-heading h1 {
    margin-bottom: 10px;
    font-size: 30px;
  }

  .model-heading p {
    font-size: 14px;
    line-height: 1.65;
  }

  .model-search {
    flex-direction: row;
    min-height: 42px;
    padding: 3px;
  }

  .model-search input {
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .model-search button {
    width: 64px;
    height: 36px;
    padding: 0;
    font-size: 13px;
  }

  .model-grid {
    gap: 12px;
    margin-top: 18px;
  }

  .model-card-media {
    aspect-ratio: 16 / 10;
  }

  .model-card-body {
    padding: 15px;
  }

  .model-card-meta {
    margin-bottom: 6px;
  }

  .model-card h2 {
    margin-bottom: 7px;
    font-size: 17px;
  }

  .model-card p {
    font-size: 13px;
    line-height: 1.65;
  }

  .model-empty {
    padding: 26px 16px;
  }
}
