/* ==========================================================================
   Taimei 申请试用 (Request a Trial) — 1440px 设计稿 1:1 还原
   布局策略：文档流为主（hero 800px → 白色面板负 margin 上提至 273 → 页脚）。
   纵向坐标链（页面累计）：
     hero 0-800 → 面板 273 起（内容 359-941）→ 页脚 1438
   面板内部文档流（相对面板 273 的偏移）：
     padding-top 86 → 副标题(359,40) → 31 → 表单(430)
       → 行1 430-525 → 24 → 公司 549-644 → 24 → 行3 668-763
       → 29 → 隐私勾选 792-822 → 69 → 提交 891-941 → padding-bottom 40
   ========================================================================== */

:root {
  --blue: #0A47ED;
  --text-dark: #3E3E3E;
  --border: #97999B;
  --white: #FFFFFF;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-cn: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

.page {
  position: relative;
  width: 1440px;
  margin: 0 auto;
}

/* ==========================================================================
   Hero（y:0-800）：装饰层 + 居中标题
   白色圆角面板不在此处，由下方 .tr-panel 以负 margin 上提至 y:273
   ========================================================================== */

.tr-hero {
  position: relative;
  height: 800px;
}

/* 装饰裁剪容器：100vw 全宽、超出即裁剪，光晕不产生横向溢出；
   子元素以视口中线为基准（50% ± 设计稿相对页面中线 720px 的偏移） */
.tr-decor {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 800px;
  overflow: hidden;
  pointer-events: none;
}

.tr-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 800px;
  background: linear-gradient(180deg, rgba(4, 24, 132, 1) 63%, rgba(4, 24, 132, 0) 100%);
}

/* 底部白色辉光：必须显式指定椭圆尺寸，否则浏览器按 farthest-corner 取半径，
   不透明的蓝色会一直铺到两侧与底部，在宽屏下露出蓝带 */
.tr-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300% 100% at 50% 100%, rgba(255, 255, 255, 1) 14%, rgba(20, 64, 242, 1) 55%, rgba(0, 15, 96, 1) 94%);
}

.tr-glow {
  position: absolute;
  display: block;
}

.tr-glow--1 {
  top: -321px;
  left: calc(50% + 226px);
  width: 683px;
  height: 642px;
  background: var(--blue);
  filter: blur(112px);
}

.tr-block {
  position: absolute;
  top: -294px;
  left: calc(50% - 468px);
  width: 1185px;
  height: 673px;
}

.tr-glow--2 {
  top: 78px;
  left: calc(50% - 455px);
  width: 910px;
  height: 570px;
  background: rgba(140, 69, 255, 0.4);
  filter: blur(150px);
}

.tr-glow--3 {
  top: 250px;
  left: calc(50% - 591px);
  width: 1183px;
  height: 169px;
  background: #6756FF;
  filter: blur(25px);
}

/* 标题 (587,136) 266x80 居中：64px/80px Medium 白色，字距 0.05em */
.tr-hero__title {
  position: absolute;
  top: 136px;
  left: 0;
  width: 100%;
  font-family: var(--font-cn);
  font-size: 64px;
  font-weight: 500;
  line-height: 80px;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--white);
}

/* ==========================================================================
   白色圆角面板（y:273 起, 1280x600, r40）
   hero 高 800，负 margin -527 上提至 273
   ========================================================================== */

.tr-panel {
  position: relative;
  width: 1280px;
  margin: -527px auto 0;
  background: var(--white);
  border-radius: 40px;
  padding: 86px 0 40px;
}

/* 副标题 (495,359) 450x40 居中：30px/40px Bold 深灰 */
.tr-subtitle {
  font-family: var(--font-cn);
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  color: var(--text-dark);
}

/* ==========================================================================
   表单（面板内 x:315-965，宽 650，居中）
   ========================================================================== */

.tr-form {
  width: 650px;
  margin: 31px auto 0;
}

/* 双列表单行：姓名 300 + 50 间距 + 手机 300 */
.tr-row {
  display: flex;
  justify-content: space-between;
}

.tr-field {
  display: flex;
  flex-direction: column;
}

.tr-field--name,
.tr-field--phone,
.tr-field--position,
.tr-field--captcha {
  width: 300px;
}

.tr-field--company {
  width: 650px;
  margin-top: 24px;
}

.tr-row--last {
  margin-top: 24px;
}

/* 标签：18px/30px 深灰，与输入框间距 5px */
.tr-label {
  margin-bottom: 5px;
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: var(--text-dark);
}

/* 输入框 60 高，白底、1px #97999B 描边、6px 圆角 */
.tr-input {
  width: 100%;
  height: 60px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font-cn);
  font-size: 18px;
  line-height: 30px;
  color: var(--text-dark);
  outline: none;
}

.tr-input:focus {
  border-color: var(--blue);
}

/* 验证码行：输入框 170 + 10 间距 + 图形 120x46 */
.tr-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tr-input--captcha {
  flex: 0 0 170px;
  width: 170px;
}

.tr-captcha__img {
  width: 120px;
  height: 46px;
  border-radius: 3px;
  cursor: pointer;
}

/* 隐私勾选：20x20 方框 + 9px 间距 + 18px/30px 文案 */
.tr-agree {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  margin-top: 29px;
  cursor: pointer;
}

.tr-agree__box {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
}

.tr-agree__box:checked {
  border-color: var(--blue);
  background: var(--blue);
}

.tr-agree__box:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 6px;
  width: 5px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tr-agree__text {
  font-family: var(--font-cn);
  font-size: 18px;
  line-height: 30px;
  color: var(--text-dark);
}

.tr-agree__link {
  color: var(--blue);
}

/* 提交按钮 160x50，居中，3px 圆角 */
.tr-submit {
  display: block;
  width: 160px;
  height: 50px;
  margin: 69px auto 0;
  border-radius: 3px;
  background: var(--blue);
  font-family: var(--font-cn);
  font-size: 18px;
  line-height: 30px;
  color: var(--white);
}

.tr-submit:hover {
  opacity: 0.9;
}

/* 校验提示：默认隐藏，不占据文档流（避免破坏设计稿纵向坐标） */
.tr-form__msg {
  margin-top: 12px;
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 24px;
  text-align: center;
  color: #E34D59;
}

.tr-form__msg.is-success {
  color: var(--blue);
}

/* ==========================================================================
   页脚：设计稿 y:1438（面板底 981 + 457）
   ========================================================================== */

.page .footer {
  position: relative;
  z-index: 1;
  margin-top: 457px;
}
