* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #061338 0%, #0a2460 50%, #0d2f7a 100%);
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

/* 背景装饰层 - 独立容器，避免裁剪影响内容 */
.bg-decor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* 顶部光带 */
.bg-decor::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -10%;
  width: 120%;
  height: 260px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(64, 158, 255, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 0%, rgba(100, 180, 255, 0.25) 0%, transparent 55%);
  filter: blur(8px);
}

/* 顶部曲线装饰 */
.bg-curves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px;
  opacity: 0.5;
}

/* 底部城市剪影 + 波浪 */
.bg-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 280px;
  pointer-events: none;
}

.bg-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
}

.bg-city {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  height: 180px;
  opacity: 0.35;
}

/* 内容层 - 独立层级，不被背景裁剪 */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 40px;
}

/* 通用按钮 */
.btn-primary {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 26px;
  background: linear-gradient(90deg, #1a5dff 0%, #2e7bff 50%, #1a5dff 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(42, 110, 255, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 3px 12px rgba(42, 110, 255, 0.35);
}

.btn-secondary {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 26px;
  background: linear-gradient(90deg, #1a5dff 0%, #2e7bff 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(42, 110, 255, 0.35);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* 卡片容器 */
.card {
  background: rgba(12, 38, 95, 0.65);
  border: 1px solid rgba(80, 150, 255, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

/* 输入框 */
.input-wrap {
  position: relative;
  margin-bottom: 18px;
}

.input-wrap label {
  display: block;
  font-size: 14px;
  color: #b8ccee;
  margin-bottom: 8px;
  padding-left: 4px;
}

.input-wrap input {
  width: 100%;
  height: 46px;
  background: rgba(6, 20, 58, 0.75);
  border: 1px solid rgba(80, 150, 255, 0.3);
  border-radius: 12px;
  padding: 0 16px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.input-wrap input::placeholder {
  color: rgba(180, 200, 240, 0.5);
}

.input-wrap input:focus {
  border-color: #4e9dff;
}

.input-wrap .code-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  height: 32px;
  padding: 0 14px;
  background: rgba(80, 150, 255, 0.2);
  border: 1px solid rgba(100, 170, 255, 0.4);
  border-radius: 8px;
  color: #a8c8ff;
  font-size: 13px;
  cursor: pointer;
}

/* 顶部标题装饰 */
.page-header {
  padding: 48px 24px 20px;
  text-align: center;
  position: relative;
}

.page-header .sub-title {
  font-size: 14px;
  color: #a8c8ff;
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
  padding: 0 32px;
}

.page-header .sub-title::before,
.page-header .sub-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #5a9dff);
}

.page-header .sub-title::before {
  left: 0;
  background: linear-gradient(90deg, transparent, #5a9dff);
}

.page-header .sub-title::after {
  right: 0;
  background: linear-gradient(90deg, #5a9dff, transparent);
}

.page-header .main-title {
  font-size: 42px;
  font-weight: 800;
  margin-top: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #b0d0ff 60%, #5a9dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 12px rgba(80, 160, 255, 0.35);
  letter-spacing: 4px;
  position: relative;
}

.page-header .main-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 60%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(100, 180, 255, 0.45) 0%, transparent 70%);
  -webkit-text-fill-color: initial;
  z-index: -1;
  filter: blur(2px);
}

.page-header .tag-line {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(180, 210, 255, 0.75);
  letter-spacing: 1px;
}

/* 返回按钮 */
.back-btn {
  position: absolute;
  top: 48px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #cfdffc;
  font-size: 15px;
  cursor: pointer;
  padding: 6px 10px;
  z-index: 10;
}

.back-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 底部TabBar */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: linear-gradient(180deg, rgba(8, 24, 65, 0.95) 0%, rgba(6, 18, 52, 0.98) 100%);
  border-top: 1px solid rgba(80, 150, 255, 0.2);
  display: flex;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-bar .tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  color: #6a8cc4;
  transition: color 0.2s;
}

.tab-bar .tab-item.active {
  color: #6ab1ff;
}

.tab-bar .tab-item svg {
  width: 26px;
  height: 26px;
}

.tab-bar .tab-item span {
  font-size: 11px;
}

/* 小标签胶囊 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(20, 50, 110, 0.8);
  border: 1px solid rgba(80, 150, 255, 0.35);
  border-radius: 20px;
  font-size: 14px;
  color: #dce8ff;
}

.chip strong {
  color: #fff;
  font-weight: 600;
}

/* 链接文字 */
.link-text {
  color: #6ab1ff;
  cursor: pointer;
  font-size: 14px;
}

.link-text:active {
  opacity: 0.8;
}
