.sbgp-ft * {
  box-sizing: border-box;
}
.sbgp-ft {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  background: #141c2e;
  color: #8b9cc0;
  font-size: 14px;
  line-height: 1.65;
}

/* 顶部信任条 */
.sbgp-ft__trust {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 20px;
}
.sbgp-ft__trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.sbgp-ft__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #c0cbe0;
}
.sbgp-ft__trust-item svg {
  width: 22px;
  height: 22px;
  stroke: #4d8ef7;
  fill: none;
  stroke-width: 1.6;
  flex: none;
}
.sbgp-ft__trust-item b {
  color: #fff;
  font-weight: 600;
}

/* 链接五列 */
.sbgp-ft__links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 24px;
}
.sbgp-ft__col h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 10px;
  /* border-bottom: 2px solid #2f6fdb; */
  display: inline-block;
  width: 100%;
  text-align: center;
}
.sbgp-ft__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sbgp-ft__col li {
  margin: 0 0 8px;
}
.sbgp-ft__col a {
  color: #8b9cc0;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s;
  white-space: nowrap;
}
.sbgp-ft__col a:hover {
  color: #fff;
}

/* 服务器租用列:双列网格 */
.sbgp-ft__col--wide ul {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  gap: 8px 24px;
  text-align: center;
}
.sbgp-ft__col--wide li {
  margin: 0;
}

/* 底部栏:Logo + 联系方式 + 版权 */
.sbgp-ft__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 20px;
}
.sbgp-ft__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  align-items: start;
}
.sbgp-ft__logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.sbgp-ft__logo span {
  color: #4d8ef7;
}
.sbgp-ft__logo-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #8b9cc0;
  margin-top: 4px;
}
.sbgp-ft__info {
  font-size: 12.5px;
  line-height: 1.7;
}
.sbgp-ft__info a {
  color: #8b9cc0;
  text-decoration: none;
}
.sbgp-ft__info a:hover {
  color: #fff;
}
.sbgp-ft__contact {
  text-align: right;
  font-size: 13px;
}
.sbgp-ft__contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #c0cbe0;
  text-decoration: none;
  margin-bottom: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition: border-color 0.15s;
}
.sbgp-ft__contact a:hover {
  border-color: #4d8ef7;
  color: #fff;
}
.sbgp-ft__contact svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  flex: none;
}
.sbgp-ft__friend-links-hr {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 20px;
}
.sbgp-ft__friend-links {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 0;
  justify-self: center;
  /* border-top: 1px solid rgba(255, 255, 255, 0.08); */
}
.sbgp-ft__friend-links-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 14px;
  color: #c0cbe0;
  padding-right: 16px;
}
.sbgp-ft__friend-links-icon {
  width: 18px;
  height: 18px;
}
.sbgp-ft__friend-links-item {
  flex: none;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  line-height: 1.4;
  color: #8b9cc0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.sbgp-ft__friend-links-item:last-child {
  border-right: none;
}
.sbgp-ft__friend-links-item:hover {
  color: #fff;
}
.sbgp-ft__copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  text-align: center;
  font-size: 12px;
  color: #5b6888;
}
.sbgp-ft__copyright a {
  color: #5b6888;
  text-decoration: none;
}
.sbgp-ft__copyright a:hover {
  color: #8b9cc0;
}

@media (max-width: 960px) {
  .sbgp-ft__links {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .sbgp-ft__bottom-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .sbgp-ft__friend-links {
    padding: 16px;
    gap: 8px 0;
  }
  .sbgp-ft__friend-links-title {
    flex: 0 0 100%;
    padding-right: 0;
  }
  .sbgp-ft__friend-links-item {
    padding: 4px 10px;
    font-size: 12px;
  }
  .sbgp-ft__links {
    grid-template-columns: 1fr 1fr;
    padding: 12px 16px 8px;
    gap: 0;
  }
  .sbgp-ft__col--wide {
    grid-column: auto;
  }
  /* 子项直接参与网格，便于展开 ul 占满整行 */
  .sbgp-ft__col {
    display: contents;
  }
  .sbgp-ft__col h4 {
    margin: 0;
    padding: 14px 28px 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .sbgp-ft__col:nth-child(odd) h4 {
    padding-right: 38px;
  }
  .sbgp-ft__col:nth-child(even) h4 {
    padding-left: 10px;
  }
  .sbgp-ft__col h4::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #8b9cc0;
    border-bottom: 1.5px solid #8b9cc0;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
  }
  .sbgp-ft__col.is-open h4::after {
    transform: translateY(-20%) rotate(225deg);
  }
  .sbgp-ft__col ul {
    display: none;
    grid-column: 1 / -1;
    padding: 0 0 12px;
    grid-template-rows: none;
    grid-auto-flow: row;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .sbgp-ft__col.is-open ul {
    display: block;
  }
  .sbgp-ft__col--wide.is-open ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }
  .sbgp-ft__col a {
    white-space: normal;
  }
  .sbgp-ft__trust-inner {
    flex-direction: column;
  }
}
