/* ==========================================================================
   sections.css — 各页局部区块 + 页脚
   ========================================================================== */

/* --------------------------------------------------------------------------
   下载卡
   -------------------------------------------------------------------------- */
.dl-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-7);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.dl-card--primary {
  box-shadow: inset 0 0 0 1px var(--brand-line);
}

.dl-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dl-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  flex: 0 0 auto;
}

.dl-card__icon--brand {
  background: rgba(245, 44, 140, 0.14);
  box-shadow: inset 0 0 0 1px var(--brand-line);
  color: var(--brand-bright);
}

.dl-card__icon--plain {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
}

.dl-card__name {
  font-size: 21px;
  color: var(--text);
}

.dl-card__tag {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--brand-ink);
}

.dl-card__tag--plain {
  color: var(--text-body);
}

.dl-card__note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.62;
}

/* --------------------------------------------------------------------------
   扫码卡
   -------------------------------------------------------------------------- */
.scan {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
  padding: var(--sp-7);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* 紧跟在栅格下方的扫码卡 */
.grid + .scan {
  margin-top: var(--sp-5);
}

.scan__copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 0;
}

.scan__title {
  font-size: var(--fs-xl);
  color: var(--text);
}

.scan__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-body);
  line-height: 1.62;
}

.scan__list li {
  position: relative;
  padding-left: 14px;
}

.scan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-bright);
}

/* --------------------------------------------------------------------------
   便当格（功能特色页）
   -------------------------------------------------------------------------- */
.bento__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 100%;
}

.bento__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.mini-player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px var(--sp-5);
  border-radius: 14px;
  background: var(--bg);
}

.mini-player__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  flex: 0 0 auto;
}

.mini-player__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1 1 auto;
  min-width: 0;
}

.mini-player__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-player__bar {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.mini-player__bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 62%;
  height: 100%;
  border-radius: 2px;
  background: var(--brand-bright);
}

/* --------------------------------------------------------------------------
   海报墙
   -------------------------------------------------------------------------- */
.wall {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(139, 92, 246, 0.12), transparent 62%),
    var(--bg);
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: var(--sp-10) var(--sp-7);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
  flex-wrap: wrap;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 400px;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.site-footer__brand-row .brand__mark {
  width: 34px;
  height: 34px;
}

.site-footer__name {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.site-footer__tagline {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 340px;
}

.site-footer__links {
  display: flex;
  gap: 76px;
  flex-wrap: wrap;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__col-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
}

.site-footer__link {
  font-size: var(--fs-base);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.site-footer__link:hover {
  color: var(--text-soft);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-9);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   组件级断点
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .dl-card,
  .scan {
    padding: var(--sp-6);
  }

  .scan {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    padding-block: var(--sp-9) var(--sp-6);
  }

  .site-footer__top {
    gap: var(--sp-8);
  }

  .site-footer__links {
    gap: var(--sp-8);
  }

  .site-footer__bottom {
    margin-top: var(--sp-7);
  }
}

@media (max-width: 560px) {
  .dl-card__name {
    font-size: 18px;
  }

  .site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6);
    width: 100%;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
}
