* { box-sizing: border-box; }

svg {
  width: 16px;
}
#fav-tip {
  display: flex;
  gap: 6px;
  font-weight: bold;
}
#fav-tip svg {
  width: 16px;
}
#no-data-tip {
  display: flex;
  gap: 6px;
  /* padding: 5px 10px; */
}
#no-data-tip svg {
  width: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont;
  background: #f6f7fb;
  color: #111;
}

.header {
  padding: 12px;
  background: #fff;
}

.banner {
  width: 100%;
  border-radius: 12px;
}

.search {
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
}

.section-title {
  display: flex;
  gap: 6px;
  margin: 16px 12px 8px;
  padding: 0 5px;
  font-weight: 600;
}

.card-list {
  padding: 0 12px 20px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 18px;
  font-weight: 600;
}

.up { color: #16c784; }
.down { color: #ea3943; }

.mini-chart {
  width: 100%;
  height: 88px; /* 适当减少高度，避免过于占用空间 */
  border-radius: 10px;
  background-color: #f6f7fb; /* 浅灰背景 */
  margin-top: 8px;
}

.detail-header,.page-title{
    text-align: center;
}
.btn {
  background: #16c784;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
}

.chart {
  height: 260px;
  background: #fff;
  margin: 12px;
  border-radius: 14px;
}

.nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  background: #fff;
  border-top: 1px solid #eee;
}

.nav a {
  flex: 1;
  text-align: center;
  padding: 12px;
  color: #666;
  text-decoration: none;
}

.nav a.active {
  color: #16c784;
  font-weight: 600;
}

/* ===== 自定义弹窗 ===== */
.popup-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup {
  background: #fff;
  width: 260px;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
}

.popup button {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #16c784;
  color: #fff;
}
