/* ==========
   Reset & base
   ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #ecfdf5;
  /* 顶部绿稍微加深一点，整体仍然偏清爽 */
  background: radial-gradient(circle at top, #059669 0%, #064e3b 48%, #020617 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========
   Header
   ========== */

.hb-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(
    120deg,
    rgba(5, 150, 105, 0.95),
    rgba(6, 78, 59, 0.98)
  );
  border-bottom: 1px solid rgba(5, 150, 105, 0.6);
}

.hb-header__inner {
  max-width: 30rem;
  margin: 0 auto;
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hb-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hb-brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #22c55e 0%, #047857 45%, #022c22 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #020617;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.hb-brand__flag {
  line-height: 1;
}

.hb-brand__text {
  display: flex;
  align-items: center;
}

.hb-brand__logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.hb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, opacity 0.16s ease;
}

.hb-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.hb-badge__text {
  display: none;
}

.hb-badge,
.hb-badge * {
  text-decoration: none;
}

.hb-badge__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.hb-badge__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hb-badge__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* ==========
   Main layout
   ========== */

.hb-main {
  flex: 1;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0.9rem 0.9rem 1.4rem;
}

/* ==========
   Hero
   ========== */

.hb-hero {
  /* Hero 顶部跟随整体加深一点绿色 */
  background: radial-gradient(circle at top left, #047857, #020617 55%);
  border-radius: 1.5rem;
  padding: 0.9rem 0.95rem 0.85rem;
  border: 1px solid rgba(129, 140, 248, 0.4);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hb-hero__title {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  line-height: 1.35;
}

.hb-hero__highlight {
  display: inline-block;
  background: linear-gradient(120deg, #16a34a, #22c55e, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hb-hero__text {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #d1fae5;
}

.hb-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Featured Top1 inside hero */
.hb-hero__featured {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 0.8rem;
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(16, 185, 129, 0.55);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.7);
}

.hb-hero__featured-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.hb-hero__featured-logo {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  padding: 0.22rem;
  background: radial-gradient(circle at top, #22d3ee, #1d4ed8);
  flex-shrink: 0;
}

.hb-hero__featured-logo img {
  width: 100%;
  height: 100%;
  border-radius: 0.45rem;
  object-fit: contain;
}

.hb-hero__featured-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.hb-hero__featured-label {
  font-size: 0.82rem;
  color: #a3e635;
  font-weight: 600;
}

.hb-hero__featured-name {
  font-size: 0.9rem;
  color: #ecfdf5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hb-hero__featured-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #22c55e, #14b8a6);
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #022c22;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.hb-hero__featured-btn:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 5px 14px rgba(34, 197, 94, 0.45);
  filter: brightness(0.96);
}

.hb-pill {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.85);
  border: 1px solid rgba(45, 212, 191, 0.55);
  font-size: 0.78rem;
  color: #ecfdf5;
}

/* ==========
   Grid
   ========== */

.hb-grid {
  margin-top: 1.1rem;
}

.hb-grid__header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.65rem;
}

.hb-grid__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.hb-grid__subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: #6ee7b7;
}

.hb-grid__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.hb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.6rem 0.65rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top, rgba(13, 148, 136, 0.95), #020617);
  border: 1px solid rgba(34, 197, 185, 0.65);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.55);
  overflow: hidden;
}

.hb-card__logo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.75rem;
  padding: 0.3rem;
  margin-bottom: 0.5rem;
  background: radial-gradient(circle at top, rgba(22, 163, 74, 0.9), #020617);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hb-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.4rem;
}

.hb-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin-bottom: 0.45rem;
}

.hb-card__name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ecfdf5;
}

.hb-card__desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #a7f3d0;
}

.hb-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.1rem;
}

.hb-chip {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(6, 95, 70, 0.9);
  border: 1px solid rgba(45, 212, 191, 0.6);
  color: #ccfbf1;
}

.hb-chip--green {
  border-color: rgba(34, 197, 94, 0.8);
  color: #bbf7d0;
}

.hb-chip--purple {
  border-color: rgba(56, 189, 248, 0.7);
  color: #bae6fd;
}

.hb-chip--orange {
  border-color: rgba(190, 242, 100, 0.9);
  color: #ecfccb;
}

.hb-card__action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  min-height: 1.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(120deg, #22c55e, #0ea5e9);
  color: #022c22;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.65);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.hb-card__action:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 6px 16px rgba(88, 28, 135, 0.5);
  filter: brightness(0.95);
}

/* ==========
   Stats
   ========== */

.hb-stats {
  margin-top: 1.2rem;
  padding: 0.9rem 0.8rem 0.85rem;
  border-radius: 1.2rem;
  background: rgba(13, 148, 136, 0.95);
  border: 1px solid rgba(34, 197, 185, 0.65);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.6);
}

.hb-stats__title {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.hb-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.hb-stat {
  padding: 0.55rem 0.55rem;
  border-radius: 0.9rem;
  background: radial-gradient(
    circle at top left,
    rgba(16, 185, 129, 0.25),
    rgba(15, 23, 42, 1)
  );
  border: 1px solid rgba(74, 222, 128, 0.55);
}

.hb-stat__label {
  display: block;
  font-size: 0.74rem;
  color: #a7f3d0;
  margin-bottom: 0.15rem;
}

.hb-stat__value {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ecfdf5;
}

.hb-stat__tag {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.7rem;
  color: #6ee7b7;
}

/* ==========
   Info
   ========== */

.hb-info {
  margin-top: 1.1rem;
  padding: 0.9rem 0.8rem 0.9rem;
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px dashed rgba(52, 211, 153, 0.6);
}

.hb-info__title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
}

.hb-info__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #a7f3d0;
}

/* ==========
   Footer
   ========== */

.hb-footer {
  padding: 0.65rem 0.9rem 0.9rem;
  background: radial-gradient(circle at top, #020617, #020617 70%);
  border-top: 1px solid rgba(16, 185, 129, 0.6);
}

.hb-footer__inner {
  max-width: 30rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.75rem;
  color: #6ee7b7;
}

.hb-footer__brand {
  font-weight: 500;
  color: #bbf7d0;
}

.hb-footer__social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hb-footer__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5f5;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hb-footer__icon:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.7);
  color: #34d399;
}

.hb-footer__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.hb-footer__note {
  text-align: center;
  font-size: 0.72rem;
  color: #9ae6b4;
}
/* ==========
   Responsive
   ========== */

@media (max-width: 480px) {
  .hb-main {
    padding-inline: 0.75rem;
  }

  .hb-header__inner {
    padding-inline: 0.75rem;
  }

  .hb-hero__featured-logo {
    width: 46px;
    height: 46px;
  }

  .hb-hero__featured-name {
    font-size: 0.82rem;
  }

  .hb-grid__list {
    gap: 0.55rem;
  }

  .hb-card {
    padding-inline: 0.55rem;
  }
}

@media (max-width: 360px) {
  .hb-main {
    padding-inline: 0.65rem;
  }

  .hb-header__inner {
    padding-inline: 0.6rem;
  }

  .hb-hero__featured {
    padding-inline: 0.6rem;
    flex-direction: column;
    align-items: stretch;
  }

  .hb-hero__featured-btn {
    padding-inline: 0.9rem;
    width: 100%;
    margin-top: 0.35rem;
  }

  .hb-grid__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .hb-card__desc {
    font-size: 0.76rem;
  }
}

@media (min-width: 768px) {
  .hb-main {
    padding-top: 1.4rem;
  }

  .hb-hero {
    padding: 1.3rem 1.25rem 1.2rem;
  }
}


