/* ============================================================
   page-fuwu-tiaokuan.css — 服务条款 · Contract Reader
   ============================================================ */

#page-fuwu-tiaokuan a.ctr-inline,
#page-fuwu-tiaokuan .ctr-footer__btn {
  text-decoration: none;
}

#page-fuwu-tiaokuan .ctr-inline {
  color: #2563eb;
  font-weight: 600;
}

#page-fuwu-tiaokuan .ctr-inline:hover {
  text-decoration: underline;
}

/* ── Main shell ── */
.ctr-main {
  padding-bottom: 6rem;
}

/* ── Top bar ── */
.ctr-topbar {
  max-width: 42rem;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 1.5rem) 1.5rem 1.25rem;
}

.ctr-topbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.ctr-topbar__title {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.ctr-topbar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.ctr-topbar__meta-item {
  color: #64748b;
}

.ctr-topbar__meta-sep {
  color: #cbd5e1;
  user-select: none;
}

.ctr-topbar__intro {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
}

/* ── Horizontal stepper ── */
.ctr-stepper {
  position: sticky;
  top: var(--nav-height);
  z-index: 20;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  padding: 0.875rem 1rem;
}

.ctr-stepper__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 42rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ctr-stepper__list::-webkit-scrollbar {
  display: none;
}

.ctr-stepper__item {
  display: flex;
  align-items: center;
  flex: 1 0 auto;
}

.ctr-stepper__item:not(:last-child)::after {
  content: '';
  flex: 1 1 1.25rem;
  min-width: 0.5rem;
  max-width: 2rem;
  height: 2px;
  background: #e2e8f0;
  margin: 0 0.125rem;
  transition: background-color 0.25s ease;
}

.ctr-stepper__item.is-done:not(:last-child)::after {
  background: #93c5fd;
}

.ctr-stepper__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  font-size: 0.6875rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ctr-stepper__dot:hover {
  border-color: #93c5fd;
  color: #2563eb;
}

.ctr-stepper__item.is-active .ctr-stepper__dot {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.ctr-stepper__item.is-done .ctr-stepper__dot {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

/* ── Article column ── */
.ctr-article {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.ctr-section {
  scroll-margin-top: calc(var(--nav-height) + 4.5rem);
  border-left: 3px solid #e2e8f0;
  padding: 0 0 2.5rem 1.25rem;
  margin-bottom: 0;
  transition: border-color 0.3s ease;
}

.ctr-section.is-active {
  border-left-color: #2563eb;
}

.ctr-section:last-of-type {
  padding-bottom: 1.5rem;
}

.ctr-section h2 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
  line-height: 1.35;
}

.ctr-section p,
.ctr-section li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #475569;
}

.ctr-section p {
  margin: 0 0 1rem;
}

.ctr-section p:last-child {
  margin-bottom: 0;
}

.ctr-section ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.ctr-section li {
  margin-bottom: 0.5rem;
}

.ctr-section li:last-child {
  margin-bottom: 0;
}

/* ── Footer CTA ── */
.ctr-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.ctr-footer__text {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: #64748b;
}

.ctr-footer__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .ctr-footer__actions {
    flex-direction: row;
    justify-content: center;
  }
}

.ctr-footer__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ctr-footer__btn--primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.ctr-footer__btn--primary:hover {
  background: #1d4ed8;
}

.ctr-footer__btn--secondary {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.ctr-footer__btn--secondary:hover {
  background: #f8fafc;
}

.ctr-footer__icon {
  width: 1rem;
  height: 1rem;
}

/* ── Floating chapter nav ── */
.ctr-chapnav {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.625rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.25);
}

.ctr-chapnav[hidden] {
  display: none;
}

.ctr-chapnav__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.875rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ctr-chapnav__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ctr-chapnav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ctr-chapnav__icon {
  width: 1rem;
  height: 1rem;
}

.ctr-chapnav__counter {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0 0.25rem;
  white-space: nowrap;
}

.ctr-chapnav__current {
  color: #fff;
}

@media (max-width: 479px) {
  .ctr-chapnav__label {
    display: none;
  }

  .ctr-chapnav__btn {
    padding: 0.5rem 0.625rem;
  }
}
