/**
 * 下载页 — 应用卡片与商店链接
 */

.download-intro {
  margin-bottom: var(--md-sys-space-6);
}

.download-intro__title {
  margin: 0 0 var(--md-sys-space-2);
  font-size: clamp(1.375rem, 4.5vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.download-intro__lead {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: var(--md-sys-space-4);
}

.download-app .md-card__content {
  padding: clamp(18px, 4vw, 24px);
}

.download-app__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--md-sys-space-2) var(--md-sys-space-3);
  margin-bottom: var(--md-sys-space-2);
}

.download-app__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.download-app__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.download-app--restaurant .download-app__badge {
  background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
  color: var(--md-sys-color-primary);
}

.download-app--supplier .download-app__badge {
  background: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
  color: color-mix(in srgb, var(--md-sys-color-primary) 78%, #3e2723);
}

.download-app__desc {
  margin: 0 0 var(--md-sys-space-4);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.5;
}

.store-list {
  display: flex;
  flex-direction: column;
  gap: var(--md-sys-space-3);
}

.store-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-low);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.store-card:hover {
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 30%, transparent);
  box-shadow: var(--md-sys-elevation-1);
  transform: translateY(-1px);
}

.download-app--supplier .store-card:hover {
  border-color: color-mix(in srgb, var(--md-sys-color-primary) 28%, transparent);
}

.store-card:active {
  transform: scale(0.99);
}

.store-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--md-sys-shape-corner-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-card--android .store-card__icon {
  background: linear-gradient(145deg, #a4c639 0%, #7cb342 100%);
  color: #fff;
}

.store-card--ios .store-card__icon {
  background: linear-gradient(145deg, #5ac8fa 0%, #007aff 100%);
  color: #fff;
}

.store-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--md-sys-color-on-surface-variant);
}

.store-card__action {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
}

.store-card__hint {
  font-size: 0.8125rem;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 400;
}

.store-card__chev {
  flex-shrink: 0;
  color: var(--md-sys-color-on-surface-variant);
  opacity: 0.7;
  font-size: 1.125rem;
  line-height: 1;
}

.store-note {
  margin: var(--md-sys-space-3) 0 0;
  padding: var(--md-sys-space-3);
  border-radius: var(--md-sys-shape-corner-small);
  background: var(--md-sys-color-surface-container);
  border: 1px dashed var(--md-sys-color-outline-variant);
  font-size: 0.8125rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.5;
}

.download-footnote {
  margin: var(--md-sys-space-6) 0 0;
  padding: var(--md-sys-space-5);
  border-radius: var(--md-sys-shape-corner-medium);
  border: 1px solid var(--md-sys-color-outline-variant);
  background: color-mix(in srgb, var(--md-sys-color-surface-bright) 72%, transparent);
  font-size: 0.875rem;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
}

.download-footnote a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-weight: 500;
}

.download-footnote a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
