:root {
  --base_color: #3774f6;
  --base_sub_purple: #9182ff;
  --font_color_1: #292730;
  --font_color_2: #333333;
  --font_color_3: #48464d;
  --font_color_4: #666666;
  --border_color: #d9d9d9;
  --bg_color: #f6f6f6;
  --hint_red: #ff4d4f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: var(--font_color_2);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* —— Header —— */
.header-wrap {
  background-color: #fff;
  height: 70px;
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.header-logo {
  width: 208px;
  height: 38px;
}

.header-logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media screen and (max-width: 750px) {
  .header-wrap {
    height: 50px;
  }

  .header-inner {
    height: 50px;
    justify-content: center;
  }

  .header-logo {
    width: 160px;
    height: 30px;
  }
}

/* —— Hero + background（与线上：#f6f6f6 + 顶图 center -70px，不强制拉伸宽度） —— */
.home-wrap {
  min-height: 800px;
  padding-bottom: 50px;
  background-color: var(--bg_color);
  background-image: url("../assets/hero-bg.jpg");
  background-repeat: no-repeat;
  background-position: center -70px;
}

.home-slogan {
  width: 100%;
  max-width: 1050px;
  padding: 130px 25px 0;
  height: 420px;
  position: relative;
}

.home-slogan-text {
  max-width: 100%;
}

.home-slogan-title {
  font-size: 48px;
  margin: 0 0 40px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--font_color_1);
}

.home-slogan-desc {
  font-size: 18px;
  line-height: 1.5;
  color: var(--font_color_3);
  width: 470px;
  max-width: 100%;
  margin: 0;
}

@media screen and (max-width: 980px) {
  .home-wrap {
    background-position: top center;
    background-size: 100% auto;
  }

  .home-slogan {
    height: 340px;
  }

  .home-slogan-title {
    font-size: 40px;
    margin-bottom: 30px;
  }

  .home-slogan-desc {
    font-size: 16px;
  }
}

@media screen and (max-width: 750px) {
  .home-wrap {
    min-height: auto;
  }

  .home-slogan {
    height: auto;
    /* 避免副标题换行后被下方卡片 margin 上提盖住 */
    padding: 50px 20px 150px;
  }

  .home-slogan-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .home-slogan-desc {
    font-size: 14px;
    width: 100%;
    max-width: 100%;
    line-height: 1.55;
    word-break: break-word;
  }
}

/* —— Card / form —— */
.appeal-content {
  padding: 0 20px;
}

.content-max {
  width: 100%;
  max-width: 1000px;
}

.card.username-appeal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 2;
  margin-top: -120px;
}

.common-step-hint {
  display: flex;
  align-items: center;
  min-height: 20px;
  line-height: 20px;
  margin-bottom: 10px;
  margin-top: -10px;
  font-size: 14px;
  color: var(--hint_red);
  justify-content: center;
  text-align: center;
}

.common-step-hint:empty {
  display: none;
}

.common-step-hint.hint-pending {
  color: var(--base_color);
  line-height: 1.5;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.common-step-main {
  padding: 40px 50px;
}

.common-c-title {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.common-line {
  background: linear-gradient(90deg, #3774f6, #9182ff);
  width: 6px;
  height: 20px;
  margin-right: 12px;
  border-radius: 3px;
}

.common-c-title-txt {
  color: #333;
  font-size: 20px;
  line-height: 20px;
  font-weight: bold;
}

.common-step-content {
  padding: 0 0 20px;
  width: 100%;
  margin: 0 auto;
  max-width: 400px;
}

.common-step-line {
  margin-bottom: 20px;
}

.common-step-h3 {
  color: var(--font_color_1);
  font-size: 14px;
  line-height: 30px;
  font-weight: bold;
}

.common-step-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border_color);
  height: 44px;
  border-radius: 10px;
  padding: 10px 15px;
  width: 100%;
  margin: 10px auto;
  max-width: 400px;
}

.common-step-input.common-pad0 {
  padding: 0 15px;
}

.common-step-input-ctrl {
  border: none;
  outline: none;
  background: none;
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  width: 100%;
}

.common-step-input-ctrl:focus {
  box-shadow: none;
}

.common-step-input-ctrl::placeholder {
  color: #bfbfbf;
  opacity: 1;
}

.common-step-input:focus-within {
  border-color: #3774f6;
}

.form-actions {
  margin-top: 8px;
  text-align: center;
}

.link-home {
  color: #1890ff;
  text-decoration: none;
  font-size: 11px;
  transform: scale(1.2);
  display: inline-block;
  margin-bottom: 16px;
}

.link-home:hover {
  text-decoration: underline;
}

/*
 * 与 https://sgs.youkashensu.com/ 实测 getComputedStyle(#submitBtn) 一致：
 * - 常态（含 disabled）：linear-gradient(90deg, rgb(55,116,246), rgb(145,130,255))，opacity 1，
 *   border 1px solid #d9d9d9，box-shadow rgba(0,0,0,0.016) 0 2px 0 0
 * - 可点击且 hover/focus：渐变末端 rgb(168,156,255)，border 收起为 none
 */
.ant-btn.c-btn {
  max-width: 400px;
  width: 100%;
  height: 56px;
  border-radius: 28px;
  line-height: 56px;
  text-align: center;
  font-size: 18px;
  color: #fff;
  display: block;
  padding: 0;
  margin: 0 auto;
  border: 1px solid #d9d9d9;
  box-shadow: rgba(0, 0, 0, 0.016) 0 2px 0 0;
  background: linear-gradient(90deg, rgb(55, 116, 246), rgb(145, 130, 255));
  transition: none;
  cursor: pointer;
  box-sizing: border-box;
  opacity: 1;
  outline: none;
}

.ant-btn.c-btn:hover:not(:disabled),
.ant-btn.c-btn:focus:not(:disabled) {
  color: #fff;
  border: none;
  box-shadow: rgba(0, 0, 0, 0.016) 0 2px 0 0;
  background: linear-gradient(90deg, rgb(55, 116, 246), rgb(168, 156, 255));
}

.ant-btn.c-btn:active:not(:disabled) {
  color: #fff;
  border: none;
  box-shadow: rgba(0, 0, 0, 0.016) 0 2px 0 0;
  background: linear-gradient(90deg, rgb(55, 116, 246), rgb(168, 156, 255));
}

.ant-btn.c-btn:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: #fff;
  border: 1px solid #d9d9d9;
  box-shadow: rgba(0, 0, 0, 0.016) 0 2px 0 0;
  background: linear-gradient(90deg, rgb(55, 116, 246), rgb(145, 130, 255));
}

@media screen and (max-width: 750px) {
  .card.username-appeal {
    margin-top: -100px;
  }

  .appeal-content {
    padding: 0 10px;
  }

  .common-c-title {
    margin-bottom: 20px;
  }

  .common-line {
    height: 16px;
  }

  .common-c-title-txt {
    font-size: 16px;
    line-height: 16px;
  }

  .common-step-main {
    padding: 20px 15px;
  }

  .common-step-hint {
    font-size: 12px;
  }

  .ant-btn.c-btn {
    height: 48px;
    border-radius: 20px;
    line-height: 48px;
    font-size: 16px;
  }
}

/* —— Floating CS —— */
.support-robot-wrap {
  position: fixed;
  bottom: 150px;
  right: 30px;
  width: 84px;
  z-index: 50;
  text-decoration: none;
  color: inherit;
}

.support-robot {
  background: url("../assets/robot.png") no-repeat center center;
  background-size: 100% 100%;
  width: 77px;
  height: 72px;
  margin: 0 auto;
}

.support-robot-title {
  font-size: 14px;
  color: #fff;
  width: 100%;
  line-height: 24px;
  border-radius: 12px;
  background: linear-gradient(#3774f6, #9182ff);
  text-align: center;
  margin: -14px auto 0;
}

@media screen and (max-width: 750px) {
  .support-robot-wrap {
    bottom: 75px;
    right: 10px;
    width: 65px;
  }

  .support-robot {
    width: 50px;
    height: 48px;
  }

  .support-robot-title {
    font-size: 11px;
    line-height: 18px;
    border-radius: 9px;
    margin: -8px auto 0;
  }
}

/* —— Footer —— */
.footer-wrap {
  width: 100%;
  padding: 0 20px;
  max-width: 1000px;
  margin: 0 auto;
  height: 200px;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  width: 148px;
  height: 42px;
  flex-shrink: 0;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-copy {
  font-size: 12px;
  color: var(--font_color_4);
  text-align: right;
}

.footer-copy-row {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-copy-row:first-child {
  margin-top: 0;
}

.footer-link {
  color: #666;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-link:hover {
  color: #3774f6;
  text-decoration: underline;
}

.footer-police {
  width: 18px;
  height: 20px;
  margin-right: 5px;
  flex-shrink: 0;
}

@media screen and (max-width: 750px) {
  .footer-wrap {
    height: auto;
    min-height: 200px;
    padding-bottom: 24px;
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .footer-copy {
    text-align: center;
  }

  .footer-copy-row {
    justify-content: center;
  }
}

/* —— Modal toast —— */
.toast-root {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.toast-panel {
  pointer-events: auto;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 260px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-icon-wrap {
  width: 64px;
  height: 64px;
  background: #f0f4ff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.toast-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.toast-msg {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  text-align: center;
}
