html,
body,
#root {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.nft {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 100vh;
}

.page-background {
  background-image: url("/images/nft/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  width: 100vw;
  min-height: 100vh;

  display: flex;
  justify-content: center;
}

.nft-container {
  padding: 60px 20px;
  color: #ffc400;
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
}

.nft-title {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 40px;
  color: #ffc400;
  text-shadow: 0 0 10px rgba(255, 196, 0, 0.5);
}

.nft-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 👈 固定为两列 */
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 40px;
  justify-items: center; /* 居中每个卡片 */
}

.nft-card {
  width: 100%; /* 让它自动撑满网格的每一列 */
  max-width: 155px; /* ✅ 所有卡片最多宽 300px，保持统一 */
  background: rgba(95, 17, 17, 0.8);
  border: 1px solid #ffc400;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 12px rgba(255, 196, 0, 0.2);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.nft-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(255, 196, 0, 0.4);
}

.nft-card h3 {
  font-size: 18px;
  margin-bottom: 6px; /* 原来是 0，改为稍微留点间距 */
  color: #fff8e1;
  justify-content: center;
  text-align: center;
}

.nft-card p {
  font-size: 14px;
  line-height: 1.4; /* ✅ 原来是 1.6，缩短行高让行之间更紧凑 */
  margin: 2px 0; /* ✅ 添加 margin 缩短上下间距 */
  color: #ddd;
}

.nft-range {
  margin-top: 4px; /* ✅ 原来是 10px 或 0，设为 4px 紧凑但不贴死 */
  font-size: 13px;
  color: #ffc400;
  font-style: italic;
}

.nft-img {
  width: 100%;
  height: auto;
  margin-bottom: 5px;
  border-radius: 10px;
}

.mint-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.nft-select {
  padding: 14px 20px;
  font-size: 18px;
  border-radius: 12px;
  border: 2px solid #ffc400;
  background: rgba(95, 17, 17, 0.8);
  color: #ffc400;
  font-weight: bold;
  min-width: 260px;
  text-align: center;
  transition:
    border 0.3s ease,
    box-shadow 0.3s ease;
}

.nft-select:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255, 196, 0, 0.6);
}

.mint-button {
  background: linear-gradient(160deg, #ffc400, #c77e00);
  color: #1b0c04;
  font-size: 20px;
  font-weight: bold;
  padding: 16px 36px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(255, 196, 0, 0.3);
}

.mint-button:hover {
  background: linear-gradient(90deg, #ffc400, #ffdb4d);
  box-shadow: 0 0 18px rgba(255, 196, 0, 0.6);
  transform: translateY(-2px);
}

