.layout-footer,
.layout-footer * {
  box-sizing: border-box;
}

.layout-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 260px;
  background: #1e51c4;
}

.layout-footer-container {
  width: calc(100% - 60px);
  max-width: 1200px;
  margin: 0 auto;
}

.layout-footer-linkSelects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-top: 20px;
}

.dropdown-container {
  position: relative;
  min-width: 0;
}

.dropdown-selected {
  display: flex;
  width: 100%;
  height: 45px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  overflow: hidden;
  font: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 6px;
  cursor: pointer;
}

.dropdown-selected:focus-visible {
  outline: 2px solid #f5c542;
  outline-offset: 2px;
}

.selected-text {
  overflow: hidden;
  color: #76787c;
  font-size: 16px;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  width: 15px;
  height: 9px;
  margin-left: 8px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.dropdown-container.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 5px);
  left: 0;
  z-index: 1000;
  display: flex;
  max-height: 260px;
  overflow-y: auto;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(22, 42, 88, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown-container.active .dropdown-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-option,
.dropdown-status {
  padding: 10px 14px;
  color: #76787c;
  font-size: 14px;
  line-height: 21px;
}

.dropdown-option {
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.dropdown-option:hover,
.dropdown-option:focus-visible {
  color: #1e51c4;
  background: #f3f6fd;
  outline: none;
}

.dropdown-status {
  text-align: center;
}

.dropdown-status-error {
  color: #b42318;
  background: #fff4f2;
}

.layout-footer-info {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 32px;
  margin-top: 29px;
  padding-bottom: 28px;
}

.info-left {
  flex: 1 1 45%;
  min-width: 0;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.list-item-content {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: baseline;
  gap: 18px;
  margin-left: 13px;
}

.list-item-desc {
  color: #b9ccfb;
  font-family: "Alibaba PuHuiTi 2", sans-serif;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

.list-item-title {
  color: #fff;
  font-size: 18px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.info-right {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 0 1 55%;
  min-width: 0;
  align-items: start;
  gap: 24px;
}

@media (min-width: 1025px) {
  .info-right > .officialAccounts + .officialAccounts {
    margin-right: 30px;
  }
}

.officialAccounts {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.officialAccounts img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.officialAccounts > span {
  margin-top: 10px;
  color: #c1d2fb;
  font-family: "Alibaba PuHuiTi 2", sans-serif;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.filingNumber {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
}

.filingNumber > a {
  display: flex;
  width: 89%;
  height: 36px;
  align-items: center;
  justify-content: flex-start;
}

.filingNumber > a:focus-visible {
  outline: 2px solid #f5c542;
  outline-offset: 3px;
}

.filingNumber img {
  display: block;
  width: 100px;
  height: 36px;
  object-fit: contain;
}

.filingNumber-text {
  width: 180px;
  margin-top: 10px;
  color: #fff;
  font-family: "Alibaba PuHuiTi 2", sans-serif;
  font-size: 12px;
  line-height: 20px;
  text-align: left;
}

.layout-footer-linkSelects .dropdown-arrow {
  margin-left: 8px;
  width: 15px;
  height: 9px;
  transition: transform 0.2s ease;
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .layout-footer-info {
    margin-top: 35px;
  }

  .list-item-title {
    font-size: 16px;
  }

  .info-right {
    gap: 16px;
  }

  .officialAccounts > span {
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .layout-footer-linkSelects {
    gap: 15px;
    padding-top: 25px;
  }

  .layout-footer-info {
    flex-direction: column;
    gap: 28px;
    margin-top: 30px;
  }

  .info-list {
    flex-flow: row wrap;
    gap: 12px 24px;
  }

  .list-item {
    flex: 1 1 300px;
  }

  .info-right {
    width: 100%;
    flex: none;
    gap: 30px;
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .layout-footer-container {
    width: calc(100% - 30px);
  }

  .layout-footer-linkSelects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 20px;
  }

  .dropdown-selected {
    height: 40px;
    padding: 8px 12px;
  }

  .selected-text,
  .dropdown-option,
  .dropdown-status {
    font-size: 13px;
  }

  .layout-footer-info {
    gap: 24px;
    margin-top: 25px;
  }

  .info-list {
    flex-direction: column;
  }

  .list-item {
    flex-basis: auto;
  }

  .list-item-content {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    margin-left: 0;
  }

  .list-item-desc,
  .list-item-title {
    font-size: 13px;
    line-height: 20px;
  }

  .info-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 0 0 4px;
  }

  .filingNumber {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .filingNumber > a {
    width: 100px;
    flex: 0 0 100px;
  }

  .filingNumber-text {
    width: auto;
    max-width: 220px;
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .layout-footer-container {
    width: calc(100% - 20px);
  }

  .layout-footer-linkSelects {
    gap: 8px;
    padding-top: 14px;
  }

  .dropdown-selected {
    padding: 7px 9px;
  }

  .selected-text,
  .dropdown-option,
  .dropdown-status {
    font-size: 12px;
  }

  .dropdown-arrow {
    width: 12px;
    height: 7px;
  }

  .layout-footer-info {
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 20px;
  }

  .officialAccounts img {
    width: 72px;
    height: 72px;
  }

  .officialAccounts > span {
    font-size: 12px;
  }

  .filingNumber {
    gap: 12px;
  }

  .filingNumber-text {
    max-width: 190px;
    font-size: 11px;
    line-height: 18px;
  }
}

/* 黑暗页脚样式 */
.dark-footer {
  background: #212225;
}

.dark-footer .officialAccounts > span,
.dark-footer .list-item-desc {
  color: #b0b0b0;
}

.dark-footer .dropdown-selected,
.dark-footer .dropdown-options {
  background: #2a2d30;
  border-color: #404347;
}

.dark-footer .dropdown-option:hover,
.dark-footer .dropdown-option:focus-visible {
  color: #fff;
  background: #323539;
}
