/* ============================================================
   登录页（2026-11-25 第三版）
   ------------------------------------------------------------
   参考纷享销客 / 销售易 / 有赞 / 京麦的登录页：**居中一张登录卡**，
   左边讲产品（大标题 + 四张真实口径的数据小卡），右边才是表单。
   上一版是把页面劈成两半、左半边一大片空白，看着空、不像成品。

   规矩（docs/ui-style.md）：
     · 紫 / 桃红 / 蓝紫一律不用；不做光晕、不做装饰大图
     · 主色只出现在：一个数据点、当前页签、链接、主按钮
     · 圆角：按钮 / 输入 / 小卡 4~6px，大卡片 8px
   ============================================================ */

html, body { height: 100%; }

body:not(.app-body) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: #F4F4F5;
  color: #1A1A1A;
}

/* ---------- 顶栏：logo + 官网 / 帮助 ---------- */
.lg-top {
  flex: none;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lg-logo { display: flex; align-items: center; gap: 10px; }
.lg-logo .mark {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid #E6E6E6;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.lg-logo .mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-logo b { font-size: 14px; font-weight: 600; color: #1A1A1A; letter-spacing: .2px; }
.lg-logo i { font-style: normal; font-size: 12px; color: #999999; padding-left: 10px; border-left: 1px solid #E0E0E0; }
.lg-top-r { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #666666; }
.lg-top-r a { color: #666666; text-decoration: none; }
.lg-top-r a:hover { color: #1A1A1A; }
.lg-dot { color: #D0D0D0; }
.lg-top-r .help-btn {
  width: auto; height: 22px; padding: 0 8px;
  border: 1px solid #E6E6E6; border-radius: 4px;
  background: #FFFFFF; color: #666666; font-size: 12px; line-height: 20px;
}
.lg-top-r .help-btn:hover { border-color: #FFC7A8; color: #E04600; }

/* ---------- 舞台：卡片居中 ---------- */
.lg-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px 24px;
}

.lg-card {
  width: 944px;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 左右各一半（老板要求），不再左宽右窄 */
  background: #FFFFFF;
  border: 1px solid #E6E6E6;
  /* 老板要求：登录卡不要弧形圆角，用直角 */
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(17, 17, 17, .06);
  overflow: hidden;
}

/* ---------- 左：讲产品 ---------- */
.lg-card .brand {
  /* 覆盖 login.css 的整栏渐变：这里只是一张卡片里的左半边 */
  background: #FFFFFF;
  color: #1A1A1A;
  border-right: 0;
  padding: 36px 40px 30px;
  display: block;
  min-width: 0;
}
.lg-card .brand::before,
.lg-card .brand::after { display: none; }

.lg-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 14px;
  font-size: 12px; font-weight: 500; color: #E04600;
}
.lg-eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: #FF5000; }

.lg-card .brand h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.45;
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: .2px;
}
.lg-sub { margin: 10px 0 0; font-size: 13px; color: #666666; line-height: 1.6; }

/* ---------- 左栏轮播：四屏小界面 ---------- */
.lg-carousel { margin-top: 18px; }
.lc-viewport { position: relative; height: 312px; }

/* 每屏自己的标题与副标题：跟画面同进同出，高度写死，切换时不跳 */
.lc-h {
  margin: 0;
  min-height: 76px;
  font-size: 26px;
  line-height: 1.45;
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: .2px;
}
.lc-sub { min-height: 21px; margin: 8px 0 0; font-size: 13px; color: #666666; line-height: 1.6; }
.lc-shot { margin-top: 18px; }
.lc-sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* 切换方式：旧的一屏立即撤掉，新的一屏淡入上移 6px。
   不用两屏同时淡入淡出 —— 标题会重影（实测过，两层文字叠在一起很难看）。 */
.lc-slide { position: absolute; inset: 0; display: none; }
.lc-slide.is-on { display: block; animation: lc-in .24s ease both; }
@keyframes lc-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lc-slide.is-on { animation: none; }
}

.lc-shot {
  height: 186px;
  border: 1px solid #EEEEEE;
  border-radius: 6px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(17, 17, 17, .04);
  overflow: hidden;
}
.lc-bar {
  display: flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 10px;
  border-bottom: 1px solid #F5F5F5;
  background: #FCFCFC;
}
.lc-bar i { width: 5px; height: 5px; border-radius: 50%; background: #E0E0E0; }
.lc-bar span { margin-left: 6px; font-size: 11px; color: #999999; }

/* 1. 概览 */
.lc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px 0; }
.lc-kpis div { display: flex; flex-direction: column; gap: 2px; }
.lc-kpis em { font-style: normal; font-size: 10px; color: #999999; }
.lc-kpis b { font-size: 16px; font-weight: 600; color: #1A1A1A; font-variant-numeric: tabular-nums; }
.lc-kpis s { text-decoration: none; font-size: 10px; color: #999999; }
.lc-kpis s.up { color: #E04600; }
.lc-chart { display: flex; align-items: flex-end; gap: 6px; height: 66px; padding: 0 12px 12px; margin-top: 6px; }
.lc-chart i { flex: 1; background: #FFE3D5; border-radius: 2px 2px 0 0; }
.lc-chart i:nth-child(6), .lc-chart i:nth-child(8) { background: #FF5000; }

/* 2. 场地日程 */
.lc-grid { padding: 8px 10px; }
.lc-grid-h, .lc-grid-r { display: grid; grid-template-columns: 34px repeat(4, 1fr); gap: 4px; align-items: center; }
.lc-grid-h { margin-bottom: 4px; }
.lc-grid-h b { font-size: 10px; font-weight: 500; color: #999999; text-align: center; }
.lc-grid-r { margin-bottom: 4px; }
.lc-grid-r em { font-style: normal; font-size: 10px; color: #A6A6A6; }
.lc-grid-r i { height: 22px; border-radius: 3px; background: #FFFFFF; border: 1px solid #F0F0F0; }
.lc-grid-r i.on {
  background: #FFE0CF; border: 1px solid #FFB48C;
  font-style: normal; font-size: 9px; line-height: 20px;
  text-align: center; color: #C43C00;
}
.lc-grid-r i.on::after { content: "已订"; }
.lc-grid-r i.off { background: #FAFAFA; border: 1px dashed #E6E6E6; }

/* 3. 周课表 */
.lc-week { padding: 8px 10px; }
.lc-week-h, .lc-week-r { display: grid; grid-template-columns: 30px repeat(7, 1fr); gap: 3px; align-items: center; }
.lc-week-h { margin-bottom: 4px; }
.lc-week-h b { font-size: 10px; font-weight: 500; color: #999999; text-align: center; }
.lc-week-r { margin-bottom: 4px; }
.lc-week-r em { font-style: normal; font-size: 10px; color: #A6A6A6; }
.lc-week-r span.co { height: 30px; border-radius: 3px; background: #F5F5F5; }
.lc-week-r span.co:not(:empty) {
  background: #FFF0E8; border: 1px solid #FFD9C2;
  font-size: 9.5px; line-height: 28px; text-align: center; color: #C43C00;
}

/* 4. 会员卡 */
.lc-rows { padding: 8px 12px; }
.lc-row {
  display: flex; align-items: center; gap: 8px;
  height: 44px; border-bottom: 1px solid #F5F5F5;
}
.lc-row:last-child { border-bottom: 0; }
.lc-row .av {
  width: 20px; height: 20px; border-radius: 50%;
  background: #F5F5F5; color: #666666;
  font-size: 9.5px; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.lc-row b { font-size: 11px; font-weight: 500; color: #1A1A1A; width: 52px; flex: none; }
.lc-row em { font-style: normal; font-size: 10px; color: #999999; flex: 1; }
.lc-row s { text-decoration: none; font-size: 9px; padding: 1px 5px; border-radius: 3px; background: #EDF7F1; color: #1F8A4C; }
.lc-row s.warn { background: #FFF7E6; color: #B36B00; }

/* 说明文字 + 圆点 */
.lc-cap { margin: 12px 0 0; font-size: 12px; color: #999999; }
.lc-cap b { margin-right: 6px; font-size: 12px; font-weight: 500; color: #333333; }
.lc-dots { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.lc-dot {
  width: 6px; height: 6px; padding: 0;
  border: 0; border-radius: 3px;
  background: #E0E0E0;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.lc-dot.on { width: 18px; background: #FF5000; }
.lc-dot:focus-visible { outline: 2px solid rgba(255, 80, 0, .35); outline-offset: 2px; }

.lg-signup {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 22px;
  font-size: 12.5px; color: #666666;
}
.lg-signup .bs-more { margin: 0; }
.lg-signup .bs-more summary { color: #333333; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.lg-signup .bs-more summary:hover { color: #E04600; }
.lg-signup .bs-more summary::after { content: " →"; color: #BBBBBB; }
.lg-signup .bs-more[open] summary::after { content: " ↓"; }
.lg-signup .bs-steps {
  flex-basis: 100%;
  margin: 8px 0 0;
  padding: 10px 12px;
  background: #FAFAFA;
  border: 1px solid #F0F0F0;
  border-radius: 6px;
  list-style: none;
  font-size: 12px;
  line-height: 1.65;
  color: #666666;
}
.lg-signup .bs-steps li { display: flex; gap: 8px; }
.lg-signup .bs-steps li + li { margin-top: 6px; }
.lg-signup .bs-steps b { color: #1A1A1A; font-weight: 600; }
.lg-signup .bs-steps i {
  flex: none; width: 16px; height: 16px; margin-top: 2px;
  border-radius: 3px; background: #FFF0E8; color: #E04600;
  font-size: 10.5px; font-weight: 600; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}
.lg-signup a { color: #E04600; text-decoration: none; }
.lg-signup a:hover { text-decoration: underline; }
.lg-sep { color: #D0D0D0; }

/* ---------- 右：表单 ---------- */
.lg-card .panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 40px 30px;
  border-left: 1px solid #F2E4DA;
  border-radius: 0;           /* theme2 给 .panel 留了 16px 圆角，会把右侧两个角又圆回去 */
  /* 登录是这一页唯一要做的事：用一层很浅的暖底把操作区托出来（不是整块红） */
  background: #FFF8F3;
}
.lg-card .form {
  width: 100%;
  max-width: 344px;
  /* 清掉旧样式的「卡中卡」：上一版 .form 自己是一张带边框和阴影的卡片，
     现在整张登录卡就是容器，里面不能再套一层白卡 */
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lg-card .form h2 { margin: 0; font-size: 18px; font-weight: 500; color: #1A1A1A; letter-spacing: .2px; }
.lg-card .form .sub { margin: 6px 0 16px; font-size: 12px; color: #999999; }
.lg-card .form h2 { margin-bottom: 18px; }

.switch { gap: 20px; margin-bottom: 16px; border-bottom: 1px solid #EFEFEF; }
.switch button { color: #666666; font-size: 13px; font-weight: 400; }
.switch button:hover { color: #1A1A1A; }
.switch button.on { color: #1A1A1A; font-weight: 600; }
.switch button.on::after { background: #FF5000; height: 2px; border-radius: 0; }

.pane { min-height: 316px; }
.qr-frame {
  width: 188px; height: 188px;
  padding: 11px;
  border: 1px solid #E6E6E6;
  border-radius: 6px;
  background: #FFFFFF;
  box-shadow: none;
  margin: 12px auto 0;   /* 二维码在右栏居中（老板要求） */
}
.qr-frame canvas, .qr-frame img { width: 164px; height: 164px; }
.qr-mask { border-radius: 6px; }
.qr-mask.on { background: rgba(255, 255, 255, .96); }
.qr-mask span { color: #666666; font-size: 12px; }
.qr-mask button {
  height: 28px; padding: 0 10px;
  border: 1px solid #FF5000; border-radius: 4px;
  background: #FFFFFF; color: #FF5000; font-size: 12px;
}
.qr-mask button:hover { background: #FFF0E8; }

.qr-tip { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; text-align: center; }
.qr-tip b { flex: none; color: #333333; font-size: 12.5px; font-weight: 500; line-height: 1.6; }
.qr-tip span { color: #999999; font-size: 11.5px; }
.qr-foot { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #F5F5F5; color: #999999; font-size: 11.5px; }
.link { color: #E04600; font-size: 12px; }

.fld { margin-bottom: 14px; }
.fld > label { color: #666666; font-size: 12px; font-weight: 400; margin-bottom: 6px; }
.fld > label a { color: #E04600; font-size: 12px; }
.inp input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #E6E6E6;
  border-radius: 4px;
  color: #1A1A1A;
  font-size: 13.5px;
  background: #FFFFFF;
}
.inp input:hover { border-color: #D0D0D0; }
.inp input:focus { border-color: #FF5000; box-shadow: 0 0 0 3px rgba(255, 80, 0, .10); }
.inp .eye { top: 5px; right: 5px; width: 38px; height: 28px; border-radius: 4px; color: #999999; font-size: 12px; }
.inp .eye:hover { background: #FAFAFA; color: #333333; }

.row-between { margin: 2px 0 16px; }
.remember { color: #666666; font-size: 12px; }
.remember input { width: 14px; height: 14px; accent-color: #FF5000; }

.submit {
  height: 40px;
  border: 0; border-radius: 4px;
  background: #FF5000;
  color: #FFFFFF;
  font-size: 14px; font-weight: 500; letter-spacing: 2px;
  box-shadow: none;
}
.submit:hover { background: #E04600; box-shadow: none; }
.submit:active { background: #C43C00; }
.submit:disabled { background: #F5B7B3; color: #FFFFFF; opacity: 1; }

.err { border: 1px solid #F5C6C2; border-radius: 4px; background: #FFF0EF; color: #C81623; font-size: 12px; }
.hint-line { margin-top: 14px; font-size: 11.5px; color: #999999; text-align: center; }
.legal { margin-top: 14px; font-size: 11.5px; color: #999999; line-height: 1.7; }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: #333333; }

/* ---------- 页脚 ---------- */
.lg-foot {
  flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 28px 18px;
  font-size: 11.5px; color: #999999;
}
.lg-foot .grow { flex: 1; }
.lg-foot a { color: #999999; text-decoration: none; }
.lg-foot a:hover { color: #333333; }

/* ---------- 窄屏 ---------- */
@media (max-width: 980px) {
  .lg-stage { padding: 8px 16px 16px; }
  .lg-card { grid-template-columns: 1fr; }
  .lg-card .brand { display: none; }
  .lg-card .panel { border-left: 0; padding: 28px 22px 24px; }
  .lg-top { padding: 0 16px; }
  .lg-logo i { display: none; }
  /* 页脚在窄屏会挤成两行、每个词都折行：改成两行整齐排布 */
  .lg-foot { flex-wrap: wrap; gap: 6px 12px; padding: 12px 16px 16px; font-size: 11px; }
  .lg-foot .grow { display: none; }
  .lg-foot a { margin-right: 2px; }
}

/* 矮屏（笔记本 600~700 高）：收紧上下留白，别让卡片超出屏幕 */
@media (max-height: 720px) and (min-width: 981px) {
  .lg-top { height: 52px; }
  .lg-card .brand { padding: 28px 34px 24px; }
  .lg-card .brand h1 { font-size: 23px; }
  .lg-tiles { margin-top: 18px; }
  .lg-tile { min-height: 84px; }
  .lg-card .panel { padding: 28px 34px 26px; }
  .lg-foot { padding: 8px 28px 12px; }
}
