/* =======================================================
   登录页专属样式 (login.css)
   设计约束：
   1. 背景图 login_bg_native.png (1024×576) 原始尺寸，不缩放，居中裁切
   2. 所有覆盖元素以 1024×576 为基准坐标系，使用百分比+vh/vw定位
   3. 布局与文字 100% 按图2参考实现
   ======================================================= */

/* ─── 视图面板基础 ─── */
.view-panel {
  display: none;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
}

/* ─── 登录页根容器 ─── */
#login-page.view-panel {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: #071428;
}

/* ─── 全屏舞台：背景容器与层叠上下文 ─── */
.lp-stage {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #071428;
  background-image: url('../images/login_bg_native.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* ════════════════════════════════════════════
   ① 左上角：官方LOGO + 协会名称
   参考图：logo约在 x=40, y=28
   ════════════════════════════════════════════ */
.lp-brand {
  position: absolute;
  top: 4.9%;   /* 28/576 */
  left: 3.9%;  /* 40/1024 */
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 50;
}

.lp-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.lp-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 6px rgba(0,20,60,0.6);
}

.lp-brand-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0,20,60,0.5);
}

/* ════════════════════════════════════════════
   ② 右上角：英文标语
   参考图：y≈25, right≈50px
   ════════════════════════════════════════════ */
.lp-top-right-slogan {
  position: absolute;
  top: 4.3%;     /* 25/576 */
  right: 4.9%;   /* 50/1024 */
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(71,85,105,0.7);
  text-transform: uppercase;
  z-index: 50;
}

/* ════════════════════════════════════════════
   ③ 运动项目垂直列表（右侧中靠左）
   参考图：x≈436, y≈70
   ════════════════════════════════════════════ */
.lp-sport-list {
  position: absolute;
  top: 12.2%;    /* 70/576 */
  left: 42.6%;   /* 436/1024 */
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  z-index: 50;
  line-height: 1.6;
}

/* ════════════════════════════════════════════
   ④ 主标题：年轻 · 速度 · 挑战
   参考图：x=44, y=108, font-size≈48px
   ════════════════════════════════════════════ */
.lp-main-title {
  position: absolute;
  top: 18.8%;   /* 108/576 */
  left: 4.3%;   /* 44/1024 */
  font-size: clamp(30px, 4.7vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 2px;
  z-index: 50;
  white-space: nowrap;
}

.lp-title-white {
  color: #ffffff;
  text-shadow: 0 3px 16px rgba(0,10,50,0.5);
}

.lp-title-accent {
  /* "速度" 蓝粉炫彩流光动态高亮 (与背景光弧呼应) */
  background: linear-gradient(115deg, #60a5fa 0%, #38bdf8 25%, #ec4899 50%, #60a5fa 75%, #3b82f6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  animation: speedTitleShine 4.5s linear infinite;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.4));
}

@keyframes speedTitleShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ════════════════════════════════════════════
   ⑤ 副标题：极限运动数字化管理平台
   参考图：x=44, y=158, font-size≈20px
   ════════════════════════════════════════════ */
.lp-subtitle {
  position: absolute;
  top: 27.4%;   /* 158/576 */
  left: 4.3%;
  font-size: clamp(14px, 1.9vw, 20px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 10px rgba(0,10,50,0.5);
  z-index: 50;
}

/* ════════════════════════════════════════════
   ⑥ 分割线 + 说明文字
   参考图：y≈197, x=44
   ════════════════════════════════════════════ */
.lp-desc-block {
  position: absolute;
  top: 34.2%;   /* 197/576 */
  left: 4.3%;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-desc-line {
  width: 32px;
  height: 2px;
  background: rgba(255,255,255,0.5);
  border-radius: 1px;
}

.lp-desc-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  text-shadow: 0 1px 6px rgba(0,10,40,0.5);
}

/* ════════════════════════════════════════════
   ⑦ Beyond Limits 手写斜体
   参考图：x≈50, y≈278
   ════════════════════════════════════════════ */
.lp-beyond-limits {
  position: absolute;
  top: 48.3%;   /* 278/576 */
  left: 4.9%;   /* 50/1024 */
  z-index: 50;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  pointer-events: none;
}

.lp-beyond-text,
.lp-beyond-text2 {
  display: block;
  font-size: clamp(22px, 2.8vw, 30px);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 2px 10px rgba(0,20,80,0.3);
  letter-spacing: 1px;
  font-family: 'Georgia', 'Times New Roman', serif;
}

/* ════════════════════════════════════════════
   ⑧ MORE THAN SPORTS（竖排，左下）
   参考图：x=45, y≈495
   ════════════════════════════════════════════ */
.lp-more-sports {
  position: absolute;
  bottom: 14.2%;   /* ~82px from bottom */
  left: 4.4%;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  z-index: 50;
}

/* ════════════════════════════════════════════
   ⑨ 底部三大业务指标徽章
   参考图：y≈495..535, 横排三个
   ════════════════════════════════════════════ */
.lp-metrics {
  position: absolute;
  bottom: 9.0%;   /* ~52px from bottom */
  left: 4.3%;
  display: flex;
  align-items: center;
  gap: 28px;
  z-index: 50;
}

.lp-metric-item {
  display: flex;
  align-items: center;
  gap: 9px;
}

.lp-metric-icon {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}

.lp-metric-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-metric-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.lp-metric-tags {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
}

/* ════════════════════════════════════════════
   ⑩ 底部版权文字（左下）
   ════════════════════════════════════════════ */
.lp-footer-left {
  position: absolute;
  bottom: 2.6%;   /* 15px from bottom */
  left: 4.3%;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  z-index: 50;
  letter-spacing: 0.3px;
}

/* ════════════════════════════════════════════
   ⑪ 底部右侧：让极限更美好 + 圆点
   ════════════════════════════════════════════ */
.lp-footer-right {
  position: absolute;
  bottom: 1.5%;
  right: 4.9%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  z-index: 50;
  pointer-events: none;
}

.lp-calligraphy {
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  color: #1e40af;
  letter-spacing: 2px;
  font-family: 'Georgia', 'STKaiti', 'KaiTi', serif;
  text-shadow: none;
}

.lp-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  letter-spacing: 1.5px;
  color: #94a3b8;
  font-weight: 600;
}

.lp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  display: inline-block;
}

.lp-dot.active {
  background: #3b82f6;
}

.lp-dot-bar {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: #3b82f6;
  display: inline-block;
}

.lp-dots-text {
  margin-left: 5px;
}

/* ════════════════════════════════════════════
   ⑫ 登录卡片
   参考图坐标（基准 1024×576）：
   left=620px(60.5%), top=75px(13.0%), width=326px(31.8%)
   ════════════════════════════════════════════ */
.lp-card {
  position: absolute;
  left: 60.5%;
  top: 50%;
  transform: translateY(-50%);
  width: 31.8%;
  min-width: 300px;
  max-width: 400px;
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 28px 20px 28px;
  box-sizing: border-box;
  box-shadow:
    0 16px 48px -8px rgba(20,50,120,0.16),
    0 0 0 1px rgba(255,255,255,0.95) inset;
  z-index: 100;
  pointer-events: auto !important;
  transition: box-shadow 0.3s ease;
}

.lp-card:hover {
  box-shadow:
    0 22px 60px -8px rgba(20,50,120,0.22),
    0 0 0 1px #fff inset;
}

/* 卡片标题 */
.lp-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.2px;
  margin-bottom: 5px;
}

.lp-card-sub {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 20px;
  letter-spacing: 0.1px;
}

/* 输入框 */
.lp-input-row {
  position: relative;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  height: 40px;
  padding: 0 12px;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.lp-input-row:focus-within {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.lp-input-icon {
  color: #9ca3af;
  font-size: 13px;
  margin-right: 10px;
  flex-shrink: 0;
  width: 14px;
}

.lp-input-row:focus-within .lp-input-icon {
  color: #3b82f6;
}

.lp-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #1f2937;
  font-family: inherit;
}

.lp-input::placeholder {
  color: #9ca3af;
}

.lp-eye-btn {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.lp-eye-btn:hover { color: #4b5563; }

/* 记住我 & 忘记密码 */
.lp-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 16px 0;
  font-size: 12px;
}

.lp-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.lp-remember input[type="checkbox"] {
  width: 13px;
  height: 13px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.lp-remember-txt {
  font-size: 12px;
  color: #4b5563;
}

.lp-forgot {
  color: #2563eb;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.15s;
}

.lp-forgot:hover { color: #1d4ed8; text-decoration: underline; }

/* 立即登录按钮（蓝紫渐变胶囊） */
.lp-btn-login {
  width: 100%;
  height: 40px;
  background: linear-gradient(90deg, #0078ff 0%, #5b51ea 55%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0,120,255,0.35);
  transition: all 0.2s ease;
  margin-bottom: 18px;
  font-family: inherit;
}

.lp-btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,120,255,0.45);
  filter: brightness(1.04);
}

.lp-btn-login:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,120,255,0.3);
}

/* 快速选择身份 */
.lp-role-section { margin-bottom: 14px; }

.lp-role-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.lp-role-line {
  flex: 1;
  height: 1px;
  background: #f1f5f9;
}

.lp-role-label {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
  font-weight: 500;
}

.lp-role-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.lp-role-btn {
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.2s ease;
  padding: 0 4px;
  white-space: nowrap;
}

/* 协会登录（白底蓝边蓝字） */
.lp-role-admin {
  background: #ffffff;
  border: 1.5px solid #3b82f6;
  color: #2563eb;
}
.lp-role-admin:hover {
  background: #eff6ff;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(59,130,246,0.15);
}
.lp-role-admin i { color: #2563eb; font-size: 11px; }

/* 会员单位（绿底绿边绿字） */
.lp-role-club {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #16a34a;
}
.lp-role-club:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(22,163,74,0.12);
}
.lp-role-club i { color: #16a34a; font-size: 11px; }

/* 教练裁判（橙底橙边橙字） */
.lp-role-coach {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  color: #d97706;
}
.lp-role-coach:hover {
  background: #fef3c7;
  border-color: #fcd34d;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(217,119,6,0.12);
}
.lp-role-coach i { color: #d97706; font-size: 11px; }

/* 小程序预览（淡紫底紫边紫字，现代高质感） */
.lp-role-mini {
  background: #f5f3ff;
  border: 1.5px solid #ddd6fe;
  color: #7c3aed;
}
.lp-role-mini:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(124,58,237,0.15);
}
.lp-role-mini i { color: #7c3aed; font-size: 11px; }

/* 注册链接 */
.lp-register {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  margin-top: 13px;
}

.lp-register-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  margin-left: 3px;
  transition: color 0.15s;
}

.lp-register-link:hover { color: #1d4ed8; text-decoration: underline; }

/* 安全提示 */
.lp-security {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.4;
}

.lp-security i {
  font-size: 10px;
  color: #64748b;
}

/* ════════════════════════════════════════════
   响应式：屏幕比例不同时的自适应
   ════════════════════════════════════════════ */
@media (max-width: 900px) {
  .lp-card {
    position: relative;
    left: auto;
    top: auto;
    width: 90%;
    max-width: 380px;
    margin: auto;
  }
  .lp-stage {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lp-brand,
  .lp-main-title,
  .lp-subtitle,
  .lp-desc-block,
  .lp-beyond-limits,
  .lp-more-sports,
  .lp-metrics,
  .lp-sport-list,
  .lp-top-right-slogan,
  .lp-footer-right {
    display: none;
  }
  .lp-footer-left {
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
  }
}

/* ==================== 登录页小程序交互模拟器专属样式 ==================== */
.mini-simulator-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: customAlertFadeIn 0.25s ease;
}

.mini-simulator-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

/* 调试控制左侧悬浮条 */
.mini-sim-devtools {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mini-sim-dev-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-sim-dev-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-sim-dev-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

/* iPhone 真机外壳模型 */
.mini-phone-frame {
  width: 380px;
  height: 760px;
  background: #ffffff;
  border-radius: 48px;
  box-shadow: 
    0 0 0 10px #1e2430,
    0 0 0 12px #333a4d,
    0 30px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 灵动岛 (Dynamic Island) */
.mini-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 25px;
  background: #000000;
  border-radius: 20px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.mini-camera-lens {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #111a2e;
  border: 1px solid #1e293b;
  box-shadow: inset 0 0 2px rgba(59, 130, 246, 0.6);
}

/* 手机内部状态栏 */
.mini-sim-status-bar {
  height: 38px;
  padding: 10px 22px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  z-index: 10;
  user-select: none;
}

/* 微信小程序经典导航栏 */
.mini-sim-nav-bar {
  height: 44px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10;
  position: relative;
}

.mini-sim-capsule {
  display: flex;
  align-items: center;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 4px 10px;
  gap: 10px;
}

.mini-sim-capsule-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #0f172a;
  font-size: 11px;
  display: flex;
  align-items: center;
  padding: 0;
}

.mini-sim-capsule-divider {
  width: 1px;
  height: 12px;
  background: rgba(0, 0, 0, 0.15);
}

/* 小程序可滚动视口 */
.mini-sim-screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f8fafc;
  padding-bottom: 70px;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* 微信小程序底部Tabbar */
.mini-sim-tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid #f1f5f9;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding-bottom: 6px;
  z-index: 20;
}

.mini-sim-tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 3px;
}

.mini-sim-tabbar-item i {
  font-size: 17px;
  transition: transform 0.2s ease;
}

.mini-sim-tabbar-item.active {
  color: #2563eb;
}

.mini-sim-tabbar-item.active i {
  color: #2563eb;
  transform: translateY(-2px) scale(1.1);
}

/* 底部小黑条 Home Indicator */
.mini-sim-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #0f172a;
  border-radius: 3px;
  opacity: 0.6;
  z-index: 30;
  pointer-events: none;
}

