/* 注册页样式 */
.register-page {
  background: var(--bg-primary, #FBF7F0);
  min-height: 100vh;
  padding-top: 56px;
}

.register-content {
  padding: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.register-card {
  background: var(--bg-card, #fff);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 2px 12px rgba(139, 115, 85, 0.08);
}

/* 表单行 */
.register-card .form-row {
  margin-bottom: 16px;
}

.register-card .form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #4A3F2F);
  margin-bottom: 8px;
}

.register-card .form-required {
  color: #d4af37;
  font-weight: 400;
  font-size: 12px;
}

.register-card .form-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #E8DCC0;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-primary, #4A3F2F);
  background: var(--bg-primary, #FBF7F0);
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.register-card .form-input:focus {
  border-color: var(--gold-primary, #d4af37);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.register-card .form-input::placeholder {
  color: #B8A88A;
}

.register-card .form-hint {
  font-size: 12px;
  color: #B8A88A;
  margin: -8px 0 16px;
  line-height: 1.5;
}

/* 密码行 */
.register-card .password-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.register-card .password-row .form-input {
  flex: 1;
}

.register-card .btn-toggle-pwd {
  width: 40px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #B8A88A;
  flex-shrink: 0;
}

.register-card .pwd-icon--hidden {
  opacity: 0.5;
}

/* 性别切换 */
.register-card .form-toggles {
  display: flex;
  gap: 10px;
}

.register-card .toggle-btn {
  flex: 1;
  height: 40px;
  border: 1px solid #E8DCC0;
  border-radius: 10px;
  background: var(--bg-primary, #FBF7F0);
  color: var(--text-secondary, #8B7355);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.register-card .toggle-btn.selected {
  background: linear-gradient(145deg, #d4af37, #c49b2a);
  color: #fff;
  border-color: #d4af37;
  font-weight: 600;
}

/* 可点击的值行（出生时间、出生地点） */
.register-card .form-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #E8DCC0;
  border-radius: 10px;
  background: var(--bg-primary, #FBF7F0);
  cursor: pointer;
  font-size: 15px;
  color: var(--text-primary, #4A3F2F);
}

.register-card .form-arrow {
  color: #B8A88A;
  font-size: 18px;
}

/* 额外信息（真太阳时、经纬度） */
.register-card .form-extra {
  font-size: 12px;
  color: #B8A88A;
  line-height: 1.8;
  margin-bottom: 16px;
  padding: 8px 0;
}

/* 填充按钮 */
.register-card .btn-fill {
  width: 100%;
  height: 40px;
  border: 1px dashed #d4af37;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.06);
  color: #d4af37;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.register-card .btn-fill-icon {
  font-size: 16px;
}

/* 协议勾选 */
.register-card .form-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
}

.register-card .agree-checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #E8DCC0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  margin-top: 2px;
  padding: 0;
  transition: all 0.2s;
}

.register-card .agree-checkbox.checked {
  background: #d4af37;
  border-color: #d4af37;
}

.register-card .agree-text {
  color: var(--text-secondary, #8B7355);
}

.register-card .agree-text a {
  color: #d4af37;
  text-decoration: none;
}

/* 注册按钮 */
.register-card .btn-register {
  width: 100%;
  height: 48px;
  background: linear-gradient(145deg, #d4af37, #b8962e);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
}

.register-card .btn-register:active {
  opacity: 0.85;
}

.register-card .btn-register:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 时间选择器 */
.time-picker-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-picker-overlay--hidden {
  display: none;
}

.time-picker-panel {
  width: 92%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
}

.time-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-tabs {
  display: flex;
  gap: 8px;
}

.calendar-tab {
  padding: 6px 16px;
  border: 1px solid #E8DCC0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary, #8B7355);
  font-size: 14px;
  cursor: pointer;
}

.calendar-tab.active {
  background: #d4af37;
  color: #fff;
  border-color: #d4af37;
}

.confirm-btn {
  padding: 6px 20px;
  background: #d4af37;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.picker-labels {
  display: flex;
  text-align: center;
  font-size: 13px;
  color: #B8A88A;
  margin-bottom: 4px;
}

.picker-labels span {
  flex: 1;
}

.picker-labels span:first-child {
  flex: 1.4;
}

.tap-picker-wheels {
  display: flex;
  height: 200px;
  position: relative;
}

/* 选中行高亮条 */
.tap-picker-wheels::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 40px;
  transform: translateY(-50%);
  background: rgba(212, 175, 55, 0.08);
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}

.tap-col {
  flex: 1;
  height: 200px;
  overflow: hidden;
  position: relative;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.tap-col:first-child {
  flex: 1.3;
}

.tap-col-inner {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.tap-col-inner.no-transition {
  transition: none;
}

.tap-col-item {
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 16px;
  color: #8B7355;
  white-space: nowrap;
}

.tap-col::-webkit-scrollbar {
  display: none;
}

.tap-col .tap-item {
  height: 40px;
  line-height: 40px;
  font-size: 16px;
  color: #8B7355;
  scroll-snap-align: center;
  cursor: pointer;
}

.tap-col .tap-item.selected {
  color: #d4af37;
  font-weight: 600;
  font-size: 18px;
}

.dst-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0ebe0;
}

.dst-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #8B7355;
}

.dst-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E8DCC0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #8B7355;
}

.dst-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.dst-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dst-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E8DCC0;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.dst-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.dst-switch input:checked + .dst-slider {
  background: #d4af37;
}

.dst-switch input:checked + .dst-slider::before {
  transform: translateX(20px);
}

/* 地址选择器 */
.location-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-panel {
  width: 92%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.location-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.location-header .placeholder-tabs {
  visibility: hidden;
}

.location-columns {
  display: flex;
  text-align: center;
  font-size: 13px;
  color: #B8A88A;
  margin-bottom: 4px;
}

.location-columns span {
  flex: 1;
}

.location-selected {
  display: flex;
  text-align: center;
  font-size: 14px;
  color: #d4af37;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0ebe0;
}

.location-selected span {
  flex: 1;
}

.location-lists {
  display: flex;
  flex: 1;
  min-height: 0;
  max-height: 300px;
}

.location-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.location-list .list-item {
  padding: 8px 4px;
  font-size: 14px;
  color: #4A3F2F;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
}

.location-list .list-item:active {
  background: rgba(212, 175, 55, 0.08);
}

.location-list .list-item.active {
  color: #d4af37;
  font-weight: 600;
  background: rgba(212, 175, 55, 0.08);
}

/* 验证码行 */
.register-card .sms-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.register-card .sms-code-row .form-input {
  flex: 1;
}

.register-card .btn-send-code {
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: var(--gold-primary, #d4af37);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.register-card .btn-send-code:hover:not(:disabled) {
  background: #c29d2f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.register-card .btn-send-code:disabled {
  background: #E8DCC0;
  color: #B8A88A;
  cursor: not-allowed;
}
