* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  min-height: 100vh;
  background: #e9eef5;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

.gate-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.gate-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(15, 35, 80, 0.08);
  padding: 36px 28px 28px;
  text-align: center;
}

/* Logo + 品牌名 */
.brand {
  margin-bottom: 8px;
}

.brand-logo-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, #e8f4ff 0%, #d6ebff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.brand-fallback {
  font-size: 28px;
  font-weight: 700;
  color: #2b7de9;
  line-height: 1;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #2b7de9;
  letter-spacing: 0.5px;
}

/* Welcome */
.welcome {
  font-size: 26px;
  font-weight: 600;
  color: #3d4a5c;
  margin: 4px 0 20px;
  letter-spacing: 0.3px;
}

/* 提示条 */
.notice {
  background: #fff3e8;
  border-radius: 8px;
  padding: 14px 12px;
  margin-bottom: 20px;
}

.notice p {
  font-size: 14px;
  line-height: 1.65;
  color: #e86a2c;
  font-weight: 500;
}

.divider {
  height: 1px;
  background: #eef1f5;
  margin-bottom: 22px;
}

/* 滑块 */
.slide-wrap {
  position: relative;
  height: 46px;
  margin-bottom: 14px;
  user-select: none;
  touch-action: none;
}

.slide-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 42px;
  background: #f0f2f5;
  border-radius: 21px;
  overflow: hidden;
}

.slide-fill {
  height: 100%;
  width: 0;
  background: #e8f8ef;
  border-radius: 21px 0 0 21px;
  transition: width 0.05s linear;
}

.slide-hint {
  position: absolute;
  left: 52px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  font-size: 14px;
  color: #b0b8c4;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.slide-wrap.active .slide-hint,
.slide-wrap.done .slide-hint {
  opacity: 0;
}

.slide-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #52c41a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(82, 196, 26, 0.45);
  cursor: grab;
  z-index: 5;
  padding: 0;
  outline: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.slide-track {
  z-index: 1;
}

.slide-thumb.dragging {
  cursor: grabbing;
  box-shadow: 0 4px 14px rgba(82, 196, 26, 0.55);
}

.slide-wrap.done .slide-thumb {
  background: #52c41a;
  cursor: default;
}

.gate-footer {
  font-size: 13px;
  color: #b8c0cc;
  margin-top: 2px;
}

.gate-status {
  font-size: 13px;
  color: #52c41a;
  margin-top: 10px;
}

.gate-error {
  font-size: 13px;
  color: #ff4d4f;
  margin-top: 10px;
}

@media (max-width: 380px) {
  .gate-card {
    padding: 28px 20px 22px;
  }

  .welcome {
    font-size: 22px;
  }
}
