/**
 * 退休年龄 - 工具页专属样式
 * 前缀 tx-，强调色：科技蓝 #2563eb（工具页固定主题色；棕色 #8d6e63 只用于 logo 图标底色）
 * 布局：身份三胶囊 + 出生年月 → 法定年龄主卡（渐变）→ 明细卡 → 延迟节奏对照卡
 */

/* ---------- 工具区 ---------- */
.tx-tool {
  padding-top: calc(4 * var(--u)); /* 30px */
  padding-bottom: calc(2 * var(--u));
}

.tx-title {
  font-size: calc(4.4 * var(--u)); /* 33px */
  font-weight: 700;
  color: var(--c-text);
  text-align: center;
}

.tx-sub {
  margin-top: calc(1.2 * var(--u)); /* 9px */
  font-size: calc(2.8 * var(--u)); /* 21px */
  color: #7a8699;
  text-align: center;
}

.tx-fields {
  margin-top: calc(2.4 * var(--u));
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(1.6 * var(--u));
}

.tx-field {
  min-width: 0;
}

.tx-label {
  display: block;
  font-size: calc(2.8 * var(--u)); /* 21px */
  font-weight: 600;
  color: var(--c-text);
}

/* 身份三胶囊（横排三列） */
.tx-groups {
  margin-top: calc(1.2 * var(--u));
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: calc(1.2 * var(--u));
}

.tx-groups button {
  border: 1.5px solid #bfdbfe;
  border-radius: calc(1.2 * var(--u));
  background: #f8faff;
  padding: calc(1.2 * var(--u)) calc(0.8 * var(--u));
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.tx-groups button b {
  display: block;
  font-size: calc(2.4 * var(--u)); /* 18px */
  color: #475569;
}

.tx-groups button span {
  display: block;
  margin-top: calc(0.4 * var(--u));
  font-size: calc(2 * var(--u)); /* 15px */
  font-weight: 400;
  color: #7a8699;
}

.tx-groups button.on {
  background: #2563eb;
  border-color: #2563eb;
}

.tx-groups button.on b,
.tx-groups button.on span {
  color: #fff;
}

.tx-groups button.on b {
  font-weight: 700;
}

/* 出生年月输入 */
.tx-input {
  margin-top: calc(1.2 * var(--u));
  box-sizing: border-box;
  width: 100%;
  height: calc(6.4 * var(--u)); /* 48px */
  border: 1.5px solid #bfdbfe;
  border-radius: calc(1.2 * var(--u));
  outline: none;
  background: #f8faff;
  font-size: calc(2.8 * var(--u)); /* 21px */
  color: var(--c-text);
  font-family: inherit;
  padding: 0 calc(1.4 * var(--u));
  transition: border-color 0.15s, background 0.15s;
}

.tx-input:focus {
  border-color: #2563eb;
  background: #fff;
}

/* 输入错误提示 */
.tx-err {
  margin-top: calc(1.2 * var(--u));
  font-size: calc(2.2 * var(--u)); /* 16.5px */
  color: #e11d48;
}

/* ---------- 法定退休年龄主卡（渐变） ---------- */
.tx-main {
  margin-top: calc(2.4 * var(--u));
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: calc(1.6 * var(--u));
  padding: calc(3.2 * var(--u));
  color: #fff;
  text-align: center;
}

.tx-main-tag {
  display: inline-block;
  font-size: calc(2.2 * var(--u)); /* 16.5px */
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  border-radius: calc(0.8 * var(--u));
  padding: calc(0.4 * var(--u)) calc(1.4 * var(--u));
  letter-spacing: 0.1em;
}

.tx-main-num {
  margin-top: calc(1.2 * var(--u));
  font-size: calc(5.6 * var(--u)); /* 42px */
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 calc(0.4 * var(--u)) calc(0.8 * var(--u)) rgba(0, 0, 0, 0.12);
}

.tx-main-sub {
  margin-top: calc(1 * var(--u));
  font-size: calc(2.4 * var(--u)); /* 18px */
  opacity: 0.85;
  line-height: 1.6;
}

.tx-main-sub b {
  font-weight: 700;
}

/* ---------- 明细卡（白卡三行） ---------- */
.tx-detail {
  margin-top: calc(1.6 * var(--u));
  background: #fff;
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 calc(1.2 * var(--u)) calc(3.6 * var(--u)) rgba(37, 99, 235, 0.08);
  border-radius: calc(1.2 * var(--u));
  padding: calc(1.6 * var(--u)) calc(1.6 * var(--u));
}

.tx-detail p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(1.2 * var(--u));
  font-size: calc(2.4 * var(--u)); /* 18px */
  color: #7a8699;
  line-height: 1.6;
}

.tx-detail p + p {
  border-top: 1px solid #eef2f7;
  margin-top: calc(1 * var(--u));
  padding-top: calc(1 * var(--u));
}

.tx-detail b {
  color: #1d4ed8;
  font-variant-numeric: tabular-nums;
}

/* ---------- 延迟退休节奏对照卡（三行堆叠） ---------- */
.tx-grid {
  margin-top: calc(2.4 * var(--u));
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(1.2 * var(--u));
}

.tx-cell {
  background: #fff;
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 calc(1.2 * var(--u)) calc(3.6 * var(--u)) rgba(37, 99, 235, 0.08);
  border-radius: calc(1.2 * var(--u));
  padding: calc(2 * var(--u)) calc(1.6 * var(--u));
}

.tx-cell-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(1 * var(--u));
}

.tx-cell-h b {
  font-size: calc(2.6 * var(--u)); /* 19.5px */
  font-weight: 700;
  color: var(--c-text);
}

.tx-cell-h span {
  font-size: calc(2 * var(--u)); /* 15px */
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: calc(0.6 * var(--u));
  padding: calc(0.2 * var(--u)) calc(0.8 * var(--u));
}

.tx-cell-age {
  margin-top: calc(1 * var(--u));
  font-size: calc(3.2 * var(--u)); /* 24px */
  font-weight: 700;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  gap: calc(0.8 * var(--u));
}

.tx-cell-age i {
  font-size: calc(2.4 * var(--u));
  font-weight: 400;
  color: #7a8699;
}

.tx-cell-line {
  margin-top: calc(0.8 * var(--u));
  font-size: calc(2.2 * var(--u)); /* 16.5px */
  color: #475569;
  line-height: 1.6;
}

/* ---------- 介绍 / 说明区块 ---------- */
.tx-intro {
  margin-top: calc(3.2 * var(--u));
  background: #f0f6ff;
  border-radius: calc(1.6 * var(--u));
  padding: calc(3.2 * var(--u));
}

.tx-intro p {
  font-size: calc(2.8 * var(--u)); /* 21px */
  line-height: 1.8;
  color: #475569;
}

.tx-intro p + p {
  margin-top: calc(1.6 * var(--u));
}

.tx-intro strong {
  color: #1d4ed8;
}
