.dg-footer {
  --dg-footer-navy: #0b3b6a;
  --dg-footer-cyan: #00aeef;
  --dg-footer-text: #ffffff;
  --dg-footer-muted: rgba(219, 234, 254, .65);
  --dg-footer-faint: rgba(219, 234, 254, .35);
  position: relative;
  z-index: 10;
  overflow: hidden;
  padding: 40px 0 max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid #0a2f54;
  background: var(--dg-footer-navy);
  color: var(--dg-footer-text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

.dg-footer *, .dg-footer *::before, .dg-footer *::after { box-sizing: border-box; }
.dg-footer a { color: inherit; text-decoration: none; }
.dg-footer-inner { width: min(1560px, 100%); margin: 0 auto; padding: 0 20px; }
.dg-footer-grid { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.dg-footer-brand { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dg-footer-logo { display: block; width: 222px; max-width: 100%; height: auto; object-fit: contain; }
.dg-footer-phone {
  width: min(100%, 380px);
  min-height: 52px;
  padding: 14px 16px;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  color: var(--dg-footer-cyan) !important;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .05em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dg-footer-phone svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.dg-footer-mobile-pair { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 88px; align-items: start; gap: 12px; }
.dg-footer-section { min-width: 0; }
.dg-footer-title {
  position: relative;
  display: inline-block;
  margin: 0 0 28px;
  color: var(--dg-footer-text);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .18em;
}
.dg-footer-title::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 32px; height: 3px; background: var(--dg-footer-cyan); }
.dg-footer-links { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; list-style: none; }
.dg-footer-links a { min-height: 32px; display: inline-flex; align-items: center; color: var(--dg-footer-muted); font-size: 15px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; transition: color .2s ease; }
.dg-footer-categories { display: none; }
.dg-footer-qr { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; padding-top: 4px; }
.dg-footer-qr-label { color: rgba(219,234,254,.4); font-size: 10px; font-weight: 900; letter-spacing: .18em; white-space: nowrap; }
.dg-footer-qr-frame { width: 88px; height: 88px; padding: 8px; display: grid; place-items: center; overflow: hidden; border: 2px solid rgba(255,255,255,.1); border-radius: 18px; background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.dg-footer-qr-frame img { width: 100%; height: 100%; display: block; object-fit: contain; }
.dg-footer-member { display: flex; align-items: center; gap: 4px; color: var(--dg-footer-cyan); font-size: 16px; font-style: italic; font-weight: 900; letter-spacing: -.03em; }
.dg-footer-member small { color: rgba(219,234,254,.3); font-size: 9px; font-style: normal; letter-spacing: .12em; }
.dg-footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.05); text-align: center; }
.dg-footer-copyright { margin: 0; color: rgba(219,234,254,.14); font-size: 9px; font-weight: 800; line-height: 1.8; letter-spacing: .12em; text-transform: uppercase; }
.dg-footer-official { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 20px; }
.dg-footer-official a { min-height: 32px; display: inline-flex; align-items: center; color: var(--dg-footer-faint); font-size: 11px; font-weight: 900; transition: color .2s ease; }
.dg-footer a:focus-visible { outline: 2px solid var(--dg-footer-cyan); outline-offset: 4px; border-radius: 4px; }

@media (hover: hover) and (pointer: fine) {
  .dg-footer-links a:hover, .dg-footer-official a:hover { color: var(--dg-footer-text); }
  .dg-footer-qr-frame { transition: transform .2s ease; }
  .dg-footer-qr-frame:hover { transform: scale(1.03); }
}

@media (min-width: 640px) {
  .dg-footer { padding-top: 48px; padding-bottom: 40px; }
  .dg-footer-inner { padding: 0 96px 0 32px; }
  .dg-footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 36px 40px; }
  .dg-footer-brand { width: auto; align-items: flex-start; }
  .dg-footer-phone { width: max-content; max-width: 100%; font-size: 19px; }
  .dg-footer-mobile-pair { display: contents; }
  .dg-footer-quick { grid-column: 2; grid-row: 1; }
  .dg-footer-categories { display: block; grid-column: 1 / -1; }
  .dg-footer-categories .dg-footer-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dg-footer-qr { grid-column: 2; grid-row: 2; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.05); }
  .dg-footer-qr-label { font-size: 12px; letter-spacing: .22em; }
  .dg-footer-qr-frame { width: 112px; height: 112px; }
  .dg-footer-member { font-size: 24px; }
  .dg-footer-bottom { margin-top: 40px; padding-top: 28px; }
  .dg-footer-copyright { font-size: 12px; letter-spacing: .24em; }
  .dg-footer-official { margin-top: 10px; }
  .dg-footer-official a { font-size: 12px; }
}

@media (min-width: 1280px) {
  .dg-footer-inner { padding: 0 128px 0 40px; }
  .dg-footer-grid { grid-template-columns: minmax(210px, .9fr) minmax(180px, .8fr) minmax(0, 1.35fr) minmax(140px, auto); gap: 32px; }
  .dg-footer-brand { grid-column: 1; grid-row: 1; }
  .dg-footer-quick { grid-column: 2; grid-row: 1; }
  .dg-footer-categories { grid-column: 3; grid-row: 1; }
  .dg-footer-qr { grid-column: 4; grid-row: 1; }
  .dg-footer-links { font-size: 18px; }
  .dg-footer-categories .dg-footer-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dg-footer-qr { min-height: 100%; justify-content: center; padding-left: 32px; }
  .dg-footer-qr-label { font-size: 14px; letter-spacing: .26em; }
  .dg-footer-qr-frame { width: 128px; height: 128px; }
  .dg-footer-member { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .dg-footer *, .dg-footer *::before, .dg-footer *::after { transition-duration: .01ms !important; }
}
