/* 注册页：一比一还原布局（对照效果图精调） */

/* ===== 一屏布局 ===== */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: #1f2d3d;
}

/* 头部 */
.simple-header {
  background: #fff;
  border-bottom: 1px solid #f0f2f5;
  flex: 0 0 auto;
  height: 120px;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}

.simple-header .header-inner {
  height: 80px;
  width: 497px;
  display: flex;
  align-items: center;
  margin-left: 320px;
  margin-top: 17px;
  max-width: calc(100% - 40px);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-emblem {
  height: 77px;
  width: 80px;
  object-fit: contain;
  margin-right: 12px;
}

.brand-name {
  font-size: 40px;
  font-weight: 500;
  color: #1E295F;
  line-height: 1;
  font-style: regular;
}

.brand-slogan {
  margin-left: 32px;
  color: #e43131;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ===== 首屏区域（背景、插画、卡片） ===== */
.register-hero {
  flex: 1 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/f81683475cc167f734c782e8601d3c83.png') no-repeat center center / cover;
  width: 100%;
  padding:123px 0 89px;
}

.register-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 左侧插画：固定尺寸与位置，保证与卡片相对关系 */
.hero-illustration {
  position: absolute;
  left: 90px;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 6px 20px rgba(31, 52, 96, .15));
  pointer-events: none;
}

/* 注册卡片：居中，留有足够上/下/两侧留白，圆角与阴影贴近稿子 */
.register-card {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(31, 52, 96, .08);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(31, 52, 96, .08);
  padding: 24px 32px 28px;
}

.register-title {
  text-align: center;
  font-size: 28px;
  color: #1E295F;
  font-weight: 700;
  margin: 0 0 12px;
}

.register-subtitle {
  text-align: center;
  font-size: 20px;
  color: #7B7B7B;
  margin: 0 0 18px;
}

/* 账户类型：三等分，较大的水平间距，圆直径略小于卡片高度节奏 */
.account-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0px;
  justify-items: center;
  margin: 100px 0 20px;
}

.type-item {
  text-align: center;
  cursor: pointer;
}

.type-circle {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* 渐变圆底图（Ellipse 2247.png） */
.type-circle .circle-bg {
  position: absolute;
  inset: 0;
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 50%;
  z-index: 0;
}

/* 圆内图标 */
.type-circle .type-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.type-circle .type-icon:nth-child(2) {
  width: 118px;
  height: 91px;
}

.type-circle .type-icon:nth-child(3) {
  width: 80px;
  height: 80px;
}

.type-label {
  font-size: 20px;
  color: #2A2A2A;
  margin-top: 20px;
  font-style: bold;
}

/* 勾选标记 */
.type-check {
  position: absolute;
  right: 20px;
  bottom: 0px;
  width: 26px;
  height: 26px;
  background: transparent;
  border-radius: 0;
  display: block;
  z-index: 2;
  box-shadow: none;
}

.type-check img {
  width: 100%;
  height: 100%;
  filter: none;
  display: block;
}

.type-item.active .type-circle {
  box-shadow: 0 10px 22px rgba(45, 108, 223, .18);
}

/* 下一步按钮 */
.btn-next {
  display: block;
  width: 155px;
  height: 57px;
  line-height: 57px;
  margin: 36px auto 4px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #3563E9;
  color: #FFFFFF;
  font-weight: 400;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(45, 108, 223, .28);
}

.btn-next:hover {
  filter: brightness(1.03);
}

/* ===== 底部（深色） ===== */
#footer-layout {
  flex: 0 0 auto;
}

/* 同步登录页底部尺寸：不在注册页单独加额外 padding/颜色/字号，沿用 common.css */

/* 自适应 */
@media (max-width: 1260px) {
  .register-container {
    width: calc(100% - 48px);
  }

  .hero-illustration {
    left: 40px;
    width: 520px;
  }

  .register-card {
    width: 780px;
  }
}

@media (max-width: 992px) {
  .hero-illustration {
    display: none;
  }

  .register-card {
    width: min(92vw, 760px);
    margin: 0 auto;
  }
}

/* 自适应（增强版，覆盖上面的旧规则） */
/* 小屏幕笔记本 (≤1440px) */
@media (max-width: 1440px) {
  .simple-header .header-inner {
    margin-left: 40px;
  }

  .register-container {
    justify-content: center;
  }

  .register-card {
    max-width: 700px;
  }

  .account-types {
    gap: 60px;
  }

  .hero-illustration {
    left: 40px;
    width: 520px;
  }
}

/* 平板和小笔记本 (≤1024px) */
@media (max-width: 1024px) {
  .simple-header {
    height: 100px;
  }

  .simple-header .header-inner {
    height: 70px;
    width: 100%;
    margin-left: 20px;
    margin-top: 10px;
  }

  .brand-emblem {
    height: 60px;
    width: 60px;
  }

  .brand-name {
    font-size: 28px;
  }

  .brand-slogan {
    margin-left: 20px;
    font-size: 16px;
  }

  .hero-illustration {
    display: none;
  }

  .register-card {
    max-width: 600px;
    height: auto;
    padding: 20px 24px;
  }

  .register-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .register-subtitle {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .account-types {
    gap: 40px;
  }

  .type-circle {
    width: 120px;
    height: 120px;
  }

  .type-circle .type-icon {
    width: 56px;
    height: 56px;
  }

  .type-label {
    font-size: 16px;
    margin-top: 14px;
  }

  .btn-next {
    height: 50px;
    line-height: 50px;
    font-size: 16px;
  }
}

/* 手机横屏/大屏手机 (≤768px) */
@media (max-width: 768px) {
  .simple-header {
    height: 80px;
  }

  .simple-header .header-inner {
    height: 60px;
    width: 100%;
    margin-left: 15px;
    margin-top: 5px;
  }

  .brand-emblem {
    height: 50px;
    width: 50px;
    margin-right: 8px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-slogan {
    margin-left: 15px;
    font-size: 14px;
    letter-spacing: 1px;
  }

  .register-card {
    max-width: 90%;
    padding: 20px 20px;
  }

  .account-types {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0 10px;
  }

  .type-circle {
    width: 100px;
    height: 100px;
  }

  .type-circle .type-icon {
    width: 48px;
    height: 48px;
  }

  .type-label {
    font-size: 15px;
    margin-top: 12px;
  }

  .btn-next {
    width: 100%;
    height: 48px;
    line-height: 48px;
    font-size: 15px;
    margin: 24px 0 0;
  }
}

/* 超小屏手机 (≤480px) */
@media (max-width: 480px) {
  .simple-header {
    height: 70px;
  }

  .simple-header .header-inner {
    height: 50px;
    width: 100%;
    margin-left: 10px;
    margin-top: 5px;
  }

  .brand-emblem {
    height: 40px;
    width: 40px;
    margin-right: 6px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    margin-left: 10px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .register-card {
    max-width: 95%;
    padding: 16px 16px;
  }

  .account-types {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0 8px;
  }

  .type-circle {
    width: 88px;
    height: 88px;
  }

  .type-circle .type-icon {
    width: 42px;
    height: 42px;
  }

  .type-label {
    font-size: 14px;
    margin-top: 10px;
  }

  .btn-next {
    width: 100%;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
  }
}
