/* 设备转移页专用样式（自包含：只使用 tf- 前缀的类，不依赖 style.css 里的页面类） */

.tf {
  --tf-yellow: #ffcd00;
  --tf-dark: #262626;
  --tf-link: #5443d9;
  --tf-focus: #6d5bf7;
  --tf-bg: #f6f6f3;
  --tf-card: #ffffff;
  --tf-muted: #66666b;
  --tf-line: #e6e6e0;
  --tf-radius: 16px;

  background: var(--tf-bg);
  color: var(--tf-dark);
  padding: clamp(28px, 6vw, 60px) 0 clamp(44px, 8vw, 88px);
  line-height: 1.7;
}

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

.tf h1, .tf h2, .tf h3 { overflow-wrap: anywhere; }

/* PDF 下载卡片 */
.tf-download {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--tf-card);
  border: 1px solid var(--tf-line);
  border-left: 5px solid var(--tf-yellow);
  border-radius: var(--tf-radius);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.tf-download-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--tf-dark);
  color: var(--tf-yellow);
  display: grid;
  place-items: center;
}

.tf-download-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tf-download-body { flex: 1; min-width: 0; }
.tf-download-body strong { display: block; font-size: 16px; line-height: 1.45; }
.tf-download-body small { display: block; color: var(--tf-muted); font-size: 13px; line-height: 1.5; }

.tf-download-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  background: var(--tf-yellow);
  color: var(--tf-dark);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.tf-download:active { transform: scale(0.99); }
.tf-download:focus-visible,
.tf-back:focus-visible { outline: 3px solid var(--tf-focus); outline-offset: 3px; }

@media (hover: hover) {
  .tf-download:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.09); }
  .tf-back:hover { background: #3a3a3a; }
}

@media (max-width: 559px) {
  .tf-download { flex-wrap: wrap; }
  .tf-download-btn { width: 100%; }
}

/* 型号选择框 */
.tf [hidden] { display: none !important; }

.tf-picker { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
.tf-picker label { font-size: clamp(17px, 4vw, 20px); font-weight: 800; }

.tf-select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 560px;
  min-height: 68px;
  padding: 0 68px 0 22px;
  font: inherit;
  font-size: clamp(22px, 5.6vw, 28px);
  font-weight: 800;
  color: #c8141b;
  background: #fff1f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23d81f26' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 22px center / 22px;
  border: 4px solid #d81f26;
  border-radius: 16px;
  box-shadow: 0 6px 0 rgba(216, 31, 38, 0.25), 0 10px 24px rgba(216, 31, 38, 0.18);
  cursor: pointer;
}
.tf-select:focus-visible { outline: 3px solid var(--tf-focus); outline-offset: 3px; }
.tf-select option { font-size: 18px; font-weight: 700; color: #262626; background: #fff; }

.tf-pending {
  padding: 28px 20px;
  text-align: center;
  background: var(--tf-card);
  border: 2px dashed var(--tf-line);
  border-radius: 14px;
  color: var(--tf-muted);
  font-size: 15px;
}
.tf-pending strong { display: block; margin-bottom: 4px; color: var(--tf-dark); font-size: 17px; }
.tf-pending a { color: var(--tf-link); overflow-wrap: anywhere; }

/* 区块 */
.tf-block { margin-top: clamp(28px, 5vw, 44px); }
.tf-block > h2 { margin: 0 0 14px; font-size: clamp(20px, 3.4vw, 26px); line-height: 1.3; }

.tf-points,
.tf-steps,
.tf-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

/* 关键要点 */
.tf-points li {
  padding: 16px 18px;
  background: var(--tf-card);
  border: 1px solid var(--tf-line);
  border-radius: 14px;
}
.tf-points strong { display: block; margin-bottom: 2px; font-size: 16px; }
.tf-points span { color: var(--tf-muted); font-size: 15px; }

@media (min-width: 900px) {
  .tf-points { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* 流程步骤 */
.tf-steps { counter-reset: tf-step; }

.tf-steps li {
  position: relative;
  counter-increment: tf-step;
  padding: 16px 18px 16px 66px;
  background: var(--tf-card);
  border: 1px solid var(--tf-line);
  border-radius: 14px;
}

.tf-steps li::before {
  content: counter(tf-step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tf-yellow);
  color: var(--tf-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.tf-steps h3 { margin: 0 0 2px; font-size: 16px; line-height: 1.5; }
.tf-steps p { margin: 0; color: var(--tf-muted); font-size: 15px; }
.tf-steps a { color: var(--tf-link); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* 注意事项 */
.tf-notes { gap: 10px; }

.tf-notes li {
  position: relative;
  padding: 14px 16px 14px 50px;
  background: #fff9db;
  border: 1px solid #f1df8a;
  border-radius: 14px;
  font-size: 15px;
}

.tf-notes li::before {
  content: "!";
  position: absolute;
  left: 15px;
  top: 15px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tf-yellow);
  color: var(--tf-dark);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.tf-notes strong { display: block; }

/* 重点提示：更大、更粗、更醒目 */
.tf-notes li.tf-key {
  padding: 18px 18px 18px 58px;
  background: #ffefa3;
  border: 2px solid var(--tf-dark);
  box-shadow: 0 4px 0 var(--tf-yellow);
  font-size: clamp(17px, 3.8vw, 19px);
  font-weight: 700;
  line-height: 1.7;
}

.tf-notes li.tf-key::before {
  left: 17px;
  top: 19px;
  width: 28px;
  height: 28px;
  font-size: 18px;
  background: var(--tf-dark);
  color: var(--tf-yellow);
}

.tf-notes li.tf-key strong {
  margin-bottom: 4px;
  font-size: clamp(19px, 4.2vw, 22px);
  font-weight: 800;
  line-height: 1.45;
}

.tf-notes li.tf-key strong:only-child { margin-bottom: 0; }

.tf-notes li.tf-key a {
  color: var(--tf-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* 联系与说明 */
.tf-help {
  margin-top: clamp(28px, 5vw, 44px);
  padding: 20px 22px;
  background: var(--tf-dark);
  color: #d2d2d2;
  border-radius: var(--tf-radius);
  font-size: 15px;
}
.tf-help strong { display: block; margin-bottom: 4px; color: #fff; font-size: 16px; }
.tf-help a { color: var(--tf-yellow); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.tf-help a:hover { text-decoration: underline; }

.tf-docnote { margin: 14px 0 0; font-size: 13px; color: #85858a; }

.tf-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: clamp(28px, 5vw, 44px);
  padding: 0 26px;
  background: var(--tf-dark);
  color: #fff;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .tf * { transition: none !important; }
}
