/* 防水墙模式 PC 改版样式：仅在 body.tc 下生效，覆盖 anti.css 的旧版式 */
body.tc {
  --tc-brand: #1e80ff;
  --tc-brand-hover: #1a6fe0;
  --tc-text: #222;
  --tc-text-weak: #999;
  --tc-error: #e54545;
  --tc-border: #eee;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f6f8;
  color: var(--tc-text);
}

.tc .header {
  width: auto;
  min-width: 0;
  padding: 40px 0 0;
  text-align: center;
}
.tc .header .logo {
  float: none;
  margin: 0;
}
.tc .header .other {
  display: none;
}

.tc .content-box {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  min-width: 0;
  margin: 24px auto 0;
  padding: 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.tc .content-box p {
  padding: 0;
}

/* 说明文案作为卡片标题 */
.tc .content-box .p2 {
  order: 1;
  padding: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
}
/* 控件自带标题，去掉“验证码：”标签 */
.tc .content-box .p3 {
  display: none;
}
.tc #seccodeForm {
  order: 2;
  margin-top: 20px;
}

/* 错误提示：居中、无浮动 */
.tc .content-box .p4 {
  padding: 0;
  line-height: 20px;
  overflow: visible;
  text-align: center;
}
.tc .content-box .p4 .s2 {
  float: none;
  display: block;
  width: auto;
  padding: 0 0 12px;
  background: none;
  color: var(--tc-error);
  font-size: 13px;
}

/* 控件容器居中，去掉旧版 191px 左缩进 */
.tc #seccodeInput {
  display: flex;
  justify-content: center;
  padding: 0 !important;
}

/* 答题通过后的跳转过渡态 */
.tc .tc-status {
  margin-top: 12px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: var(--tc-brand);
}
.tc .tc-status::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid var(--tc-brand);
  border-top-color: transparent;
  border-radius: 50%;
  animation: tc-spin 0.8s linear infinite;
}
@keyframes tc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 提交按钮与反馈链接 */
.tc .content-box .p5 {
  margin-top: 16px;
  text-align: center;
}
/* 答题通过后自动提交，不需要提交按钮 */
.tc .content-box .p5 > a {
  display: none;
}
.tc .content-box .p5 span {
  display: block;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--tc-text-weak);
}
.tc .content-box .p5 span a,
.tc .content-box .p5 span a:hover {
  font-size: 12px;
  color: var(--tc-brand);
  background: none;
}

/* 访问信息降级为底部弱化小字 */
.tc .content-box .ip-time-p {
  order: 3;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--tc-border);
  font-size: 12px;
  line-height: 18px;
  color: var(--tc-text-weak);
  text-align: center;
  word-break: break-all;
}

/* 页脚沉底，不再绝对定位 */
.tc #ft {
  position: static;
  margin-top: auto;
  padding: 32px 0 16px;
  font-size: 12px;
  color: var(--tc-text-weak);
}
.tc #ft .g {
  color: var(--tc-text-weak);
}

@media (max-width: 480px) {
  .tc .content-box {
    max-width: none;
    width: auto;
    margin: 16px 16px 0;
    padding: 24px 16px;
  }
}
