.contest-footer {
  padding: 78px 0 0;
  color: #60667a;
  background: radial-gradient(ellipse at 97% 10%, #eeecfb80, transparent 48%), #fefeff;
}
.footer-content, .footer-legal { width: min(1440px, calc(100% - 160px)); margin-inline: auto; }
.footer-content { display: grid; grid-template-columns: minmax(110px, .85fr) minmax(190px, 1.5fr) minmax(150px, 1.1fr) minmax(220px, 1.4fr) 220px; gap: 28px; padding-bottom: 62px; align-items: start; }
.contest-footer h2 { margin: 0 0 24px; font-size: 17px; line-height: 1.5; font-weight: 700; color: #17213b; letter-spacing: 0; }
.contest-footer ul { list-style: none; padding: 0; margin: 0; }
.contest-footer li { margin: 0; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.contest-footer li + li { margin-top: 8px; }
.footer-contact address { font-style: normal; font-size: 14px; line-height: 1.9; }
.footer-contact address > a, .footer-contact address > p { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; color: inherit; }
.footer-contact address svg { width: 18px; height: 22px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact a { text-underline-offset: 4px; }
.footer-contact a:hover { color: #5358b9; }
.footer-community { margin: 0; text-align: center; }
.footer-qq-link { display: block; width: 220px; margin: 0 auto 16px; padding: 14px; background: #262626; border-radius: 12px; }
.footer-qq-art { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 0; background: #262626; }
/* Present the complete code area from the untouched QQ image. */
.footer-qq-art img { position: absolute; display: block; max-width: none; width: 141.5%; height: auto; left: -20.7%; top: -80.7%; }
.footer-community figcaption { color: #60667a; font-size: 13px; line-height: 1.7; }
.footer-community figcaption a { color: #60667a; text-underline-offset: 4px; }
.footer-community figcaption a:hover { color: #5358b9; }
.contest-footer .footer-qq-copy { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; letter-spacing: .02em; line-height: 1.9; margin-top: 5px; color: #535f7b; }
.contest-footer .footer-qq-copy span { font-size: 10px; margin: 0; border: 0; padding: 0; color: #707b96; }
.footer-legal { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid #e7e9f0; padding: 24px 0 28px; color: #747d92; font-size: 12px; line-height: 1.8; }
.footer-legal > div { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-legal a { color: inherit; text-underline-offset: 4px; }
.footer-legal a:hover { color: #5358b9; }
@media (max-width: 1150px) {
  .footer-content { grid-template-columns: .9fr 1.35fr 1fr; column-gap: 32px; row-gap: 42px; }
  .footer-contact { grid-column: 1 / 3; }
  .footer-community { grid-column: 3; justify-self: start; }
}
@media (max-width: 760px) {
  .contest-footer { padding-top: 50px; }
  .footer-content, .footer-legal { width: calc(100% - 48px); }
  .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; padding-bottom: 38px; }
  .contest-footer h2 { font-size: 16px; margin-bottom: 18px; }
  .contest-footer li, .footer-contact address { font-size: 13px; line-height: 1.9; }
  .contest-footer li + li { margin-top: 7px; }
  .footer-contact { grid-column: auto; }
  .footer-contact address > a, .footer-contact address > p { gap: 6px; margin-bottom: 15px; }
  .footer-contact address svg { width: 14px; height: 20px; }
  .footer-contact address span { min-width: 0; overflow-wrap: anywhere; }
  .footer-community { grid-column: 1 / -1; justify-self: center; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 12px; padding: 21px 0 25px; font-size: 11px; }
  .footer-legal > div { gap: 18px; }
}
@media print { .contest-footer { background: #fff; } .footer-community { break-inside: avoid; } }
