/* 易宝阁 H5 公共页：注册 / 找回 / 协议 */
:root {
  --tb-cream: #f7f3e9;
  --tb-ink: #2f2a26;
  --tb-muted: #9a948c;
  --tb-label: #8a837a;
  --tb-card: #ffffff;
  --tb-brick: #b33a2b;
  --tb-brick-press: #9a2f22;
  --tb-link: #b33a2b;
  --tb-radius: 8px;
  --tb-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  min-height: 100%;
  font-family: var(--tb-sans);
  color: var(--tb-ink);
  background: #ebe6dc;
}

body.tb-auth-body {
  min-height: 100vh;
  background: #ebe6dc;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.tb-page {
  position: relative;
  width: 100%;
  max-width: 375px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 22px 36px;
  background: var(--tb-cream);
  box-sizing: border-box;
}

.tb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin: 0 -6px;
}

.tb-nav__left {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--tb-ink);
  text-decoration: none;
  font-size: 16px;
}

.tb-nav__back {
  width: 28px;
  height: 28px;
  position: relative;
  flex: none;
}

.tb-nav__back::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-left: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
}

.tb-nav__right {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--tb-ink);
  text-decoration: none;
  font-size: 13px;
}

.tb-nav__dl {
  width: 18px;
  height: 18px;
  position: relative;
  margin-right: 2px;
}

.tb-nav__dl::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 2px;
  height: 9px;
  background: #333;
}

.tb-nav__dl::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid #333;
  border-top: 0;
  border-radius: 0 0 2px 2px;
  box-sizing: border-box;
}

.tb-hero {
  margin: 18px 0 28px;
}

.tb-hero__title {
  font-size: 28px;
  font-weight: 700;
  color: #2a2520;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.tb-hero__desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--tb-muted);
  letter-spacing: 0.02em;
}

.tb-field { margin-bottom: 18px; }

.tb-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--tb-label);
}

.tb-field__box {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  background: var(--tb-card);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--tb-radius);
}

.tb-field__prefix {
  flex: none;
  display: flex;
  align-items: center;
  margin-right: 12px;
  color: var(--tb-ink);
  font-size: 15px;
  font-weight: 500;
}

.tb-field__prefix::after {
  content: "";
  width: 1px;
  height: 16px;
  margin-left: 12px;
  background: #ddd6cb;
}

.tb-field__box input {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--tb-ink);
  font-family: var(--tb-sans);
}

.tb-field__box input::placeholder { color: #b8b1a6; }

.tb-code-btn {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--tb-brick);
  font-size: 13px;
  font-family: var(--tb-sans);
  white-space: nowrap;
  cursor: pointer;
  padding-left: 8px;
}

.tb-code-btn[disabled] {
  color: #b8b1a6;
  cursor: default;
}

.tb-eye {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  opacity: 0.55;
}

.tb-eye::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 11px;
  margin: -5.5px 0 0 -9px;
  border: 1.6px solid #666;
  border-radius: 50%;
}

.tb-eye::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #666;
}

.tb-eye.is-off { opacity: 0.35; }
.tb-eye.is-off::after {
  width: 18px;
  height: 1.6px;
  margin: -0.8px 0 0 -9px;
  border-radius: 0;
  transform: rotate(-28deg);
}

.tb-captcha {
  flex: none;
  height: 36px;
  margin-left: 8px;
  border-radius: 4px;
  cursor: pointer;
}

.tb-btn {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: var(--tb-radius);
  background: var(--tb-brick);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  font-family: var(--tb-sans);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(179, 58, 43, 0.18);
}

.tb-btn:active { background: var(--tb-brick-press); }

.tb-foot-link {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--tb-muted);
}

.tb-foot-link a {
  color: var(--tb-link);
  text-decoration: none;
  margin-left: 2px;
}

.tb-tip {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--tb-muted);
}

.tb-agree {
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--tb-muted);
  line-height: 1.55;
}

.tb-agree input {
  margin-top: 3px;
  flex: none;
  accent-color: var(--tb-brick);
}

.tb-agree a {
  color: var(--tb-link);
  text-decoration: none;
}

/* 协议 / 隐私文档 */
.tb-doc {
  padding-top: 8px;
  padding-bottom: 48px;
}

.tb-doc__title {
  margin: 18px 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
}

.tb-doc__meta {
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--tb-muted);
  line-height: 1.7;
}

.tb-doc__lead {
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

.tb-doc__lead strong { color: #111; }

.tb-doc__section {
  margin-bottom: 22px;
}

.tb-doc__h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
}

.tb-doc__icon {
  flex: none;
  font-size: 18px;
  line-height: 1;
}

.tb-doc__section p,
.tb-doc__section li {
  font-size: 14px;
  line-height: 1.85;
  color: #333;
}

.tb-doc__section ol,
.tb-doc__section ul {
  padding-left: 1.2em;
}

.tb-doc__section li { margin-bottom: 6px; }

.tb-doc__sub {
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.tb-doc__section ul.plain {
  list-style: disc;
}

@media (min-width: 768px) {
  body.tb-auth-body {
    display: flex;
    justify-content: center;
    padding: 24px 0;
    background: #dcd6cb;
  }
  .tb-page {
    min-height: 812px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(60, 45, 30, 0.12);
  }
}
