/* =========================================================================
   AFTERGLOW OFFICIAL · Footer Styles
   纯黑底，4 列内容 + 底部 meta 行
   ========================================================================= */

.ms-footer {
  background: #000;
  color: #fff;
  padding: 96px 32px 32px;
  position: relative;
  border-top: 1px solid var(--ms-night-line);
}
/* 顶部细全息渐变线 */
.ms-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--ms-grad-holo-bright);
  background-size: 200% 100%;
  animation: ms-shimmer 8s linear infinite;
  opacity: .7;
}

.ms-footer__inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.6fr;
  gap: 64px;
  align-items: start;
}

/* 列 */
.ms-footer__col {}
.ms-footer__col--newsletter {}

.ms-footer__title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
  margin: 0 0 20px;
}

.ms-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ms-footer__links li {
  margin: 0 0 12px;
}
.ms-footer__links a {
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color .2s var(--ms-ease);
  position: relative;
}
.ms-footer__links a:hover {
  color: transparent;
  background: var(--ms-grad-holo-bright);
  background-size: 200% 200%;
  -webkit-background-clip: text;
          background-clip: text;
  animation: ms-shimmer 4s linear infinite;
}

/* 社交图标 */
.ms-footer__social a svg {
  width: 16px; height: 16px;
  vertical-align: middle;
  transition: transform .25s var(--ms-ease);
}
.ms-footer__social a:hover svg {
  transform: scale(1.15);
}

/* Newsletter 紧凑版 */
.ms-footer__newsletter-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .6);
  margin: 0 0 20px;
  max-width: 360px;
}
.ms-footer__holo {
  background: var(--ms-grad-holo-bright);
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ms-shimmer 8s linear infinite;
  font-weight: 700;
}

.ms-footer__newsletter {
  display: flex;
  gap: 0;
  max-width: 360px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color .2s;
}
.ms-footer__newsletter:focus-within {
  border-color: #fff;
}
.ms-footer__newsletter input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 12px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
}
.ms-footer__newsletter input::placeholder {
  color: rgba(255, 255, 255, .4);
}
.ms-footer__newsletter button {
  width: 44px;
  height: 44px;
  background: #fff;
  color: #000;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ms-ease);
}
.ms-footer__newsletter button:hover {
  background: var(--ms-grad-holo-bright);
  background-size: 220% 220%;
  animation: ms-shimmer 4s linear infinite;
}

/* 中间分隔线（细银线，全宽） */
.ms-footer__divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0,
    rgba(255, 255, 255, .12) 20%,
    rgba(255, 255, 255, .25) 50%,
    rgba(255, 255, 255, .12) 80%,
    transparent 100%);
  margin: 64px auto 24px;
  max-width: 1480px;
}

/* 底部 meta 行 */
.ms-footer__bottom {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .45);
}
.ms-footer__bottom a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: color .2s;
}
.ms-footer__bottom a:hover { color: #fff; }
.ms-footer__bottom-sep {
  margin: 0 4px;
  opacity: .4;
}
.ms-footer__bottom-l {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* 支付方式标签（chrome 风格小胶囊） */
.ms-footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* 给 Astra 默认 scroll-to-top 按钮留出空间 */
  margin-right: 60px;
}
@media (max-width: 1024px) {
  .ms-footer__payments { margin-right: 0; }
}

/* 顺手把 Astra 自带的 scroll-to-top 按钮也调成黑色 chrome 风格 */
#ast-scroll-top {
  background: var(--ms-grad-chrome) !important;
  color: #000 !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 16px rgba(255,255,255,.2) !important;
}
.ms-footer__pay {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  background: var(--ms-grad-chrome);
  color: #000;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* =========================================================================
   响应式
   ========================================================================= */
@media (max-width: 1024px) {
  .ms-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .ms-footer__col--newsletter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .ms-footer { padding: 64px 20px 24px; }
  .ms-footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ms-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
