/* 公共样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #1a202c; /* 深色背景 */
  color: #e5e7eb; /* 明亮文本 */
}

.container {
  padding: 20px 15px 100px;
}

.header {
  height: 60px;
  background: linear-gradient(90deg, #1e3a8a, #312e81); /* 渐变蓝 */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
}

.banner {
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
}

.search-box {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

.search-box input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background-color: #2d3748;
  color: #fff;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #a0aec0;
}

.card {
  background: #2d3748;
  border-radius: 12px;
  margin-bottom: 15px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #cbd5e0;
}

.coin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 15px;
}

.coin-item {
  background: #111827;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.coin-item:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
}

.coin-item .coin-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coin-name {
  font-size: 16px;
  font-weight: bold;
  color: #f7fafc;
}

.coin-price {
  font-size: 14px;
  color: #a0aec0;
}

.coin-change {
  font-size: 14px;
}

.up {
  color: #48bb78; /* 涨：绿色 */
}

.down {
  color: #f56565; /* 跌：红色 */
}

.mini-chart {
  width: 100%;
  height: 40px;
}

.footer {
  background: #111827;
  color: #cbd5e0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.footer a {
  color: #a0aec0;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

.footer a.active {
  color: #63b3ed; /* 激活状态 */
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #2d3748;
  color: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
}

@media (max-width: 768px) {
  /* .container {
    padding: 10px;
  } */

  .coin-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 10px;
  }

  /* .footer {
    display: block;
  } */

  .footer a {
    margin: 5px 0;
  }
}
#favBtn{
    display: block;
    margin: 0 auto;
    width: 200px;
    background: linear-gradient(90deg, #1e3a8a, #312e81);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #312e81;
}