/* ============================================================
   哈博 · 登录封面（暗底 + 弹幕 + 米白表单）
   桌面：左品牌区 61.1% / 右登录区 38.9%（与设计稿一致）
   移动：上封面 + 下米白面板
   仅作用于 #v-login / body.login-mode，不影响其他页面
   ============================================================ */

body.login-mode { background: #050506; }
body.login-mode .app {
  max-width: none;
  margin: 0 !important;
  padding-bottom: 0;
  background: #0A0B0D;
  overflow-x: hidden;
}
body.login-mode #v-login {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lgwrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0A0B0D;
}

/* ---------- 左：品牌区 ---------- */
.lgc {
  position: relative;
  flex: 1 1 auto;
  min-height: 62vh;
  overflow: hidden;
  padding: 22px 22px 30px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(105deg, #0A0B0D 0%, #100D0C 55%, #1A110C 100%);
}
.lgc-glow {
  position: absolute;
  left: -18%; bottom: -14%;
  width: 100%; height: 70%;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(228,86,42,.32) 0%, rgba(228,86,42,.10) 48%, transparent 72%);
}
.lgc-dm {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.lgc-in {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

/* 品牌标识 */
.lgc-brand { display: flex; align-items: center; gap: 12px; }
.lgc-logo {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(140deg, #F0703A 0%, #B83D1A 100%);
  box-shadow: 0 6px 16px -6px rgba(228,86,42,.85);
}
.lgc-name { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.lgc-sub { color: #8E8378; font-size: 9px; letter-spacing: 2.4px; margin-top: 3px; }

/* 封面导航（融自公司简介页，暗色化） */
.lgc-nav {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 20px;
}
.lgc-nav a {
  color: #8E8378; text-decoration: none;
  font-size: 12px; letter-spacing: .6px;
  padding: 4px 0;
  position: relative;
  transition: color .2s;
}
.lgc-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #F0703A, #C0421A);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.lgc-nav a:hover { color: #fff; }
.lgc-nav a:hover::after { transform: scaleX(1); }

/* 封面 CTA（融自公司简介页 hero） */
.lgc-cta { display: flex; align-items: center; gap: 10px; }
.lgc-cta .cta-main {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: 11px;
  background: linear-gradient(135deg, #F0703A 0%, #C0421A 100%);
  color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 650; letter-spacing: 1px;
  box-shadow: 0 10px 24px -8px rgba(228,86,42,.65);
  transition: transform .22s, box-shadow .22s;
}
.lgc-cta .cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(228,86,42,.8);
}
.lgc-cta .cta-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.92); text-decoration: none;
  font-size: 13px; font-weight: 550; letter-spacing: 1px;
  background: rgba(255,255,255,.05);
  transition: border-color .22s, background .22s, transform .22s;
}
.lgc-cta .cta-ghost:hover {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
}

/* 封面数据条（融自公司简介页 hero stats） */
.lgc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}
.lgc-stats .st { display: flex; flex-direction: column; gap: 3px; }
.lgc-stats .st b {
  color: #fff; font-size: 24px; font-weight: 750;
  line-height: 1.1; letter-spacing: .3px;
}
.lgc-stats .st b i {
  font-style: normal; font-size: 13px; font-weight: 600;
  color: #F0703A; margin-left: 2px;
}
.lgc-stats .st span { color: #7A736A; font-size: 10.5px; letter-spacing: .8px; }

/* 主张 */
.lgc-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.lgc-eyebrow i { display: block; width: 30px; height: 1px; background: #E4562A; flex-shrink: 0; }
.lgc-eyebrow span { color: #A79B8C; font-size: 11px; letter-spacing: 1.5px; }
.lgc h1 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: .5px;
  color: #fff;
}
.lgc h1 em { color: #E4562A; font-style: normal; display: inline-block; }

/* 底部信息（桌面显示） */
.lgc-meta {
  display: none;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 14px;
  justify-content: space-between;
  gap: 16px;
}
.lgc-meta span { color: #7A736A; font-size: 11px; letter-spacing: .5px; }

/* ---------- 弹幕 ---------- */
.lgc-dm .dm {
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  text-shadow: 0 0 12px rgba(0,0,0,.5);
  pointer-events: auto;
  cursor: default;
}
.lgc-dm .dm .ch { display: inline-block; }
.lgc-dm .dm:hover { z-index: 5; opacity: 1 !important; }
.lgc-dm .dm .ch { transition: transform .35s cubic-bezier(.2,.8,.2,1), color .35s ease, text-shadow .35s ease; }
.lgc-dm .dm:hover .ch {
  transform: scale(1.14) translateY(-2px);
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.35), 0 0 26px rgba(228,86,42,.6);
}
.lgc-dm .dm.far  { font-size: 11px; opacity: .13; }
.lgc-dm .dm.mid  { font-size: 13px; opacity: .24; }
.lgc-dm .dm.near { font-size: 15px; opacity: .40; font-weight: 500; }
.lgc-dm .dm.hot  { color: #E4562A; text-shadow: 0 0 16px rgba(228,86,42,.35); }
.lgc-dm .dm.white { color: #fff; }

/* ---------- 右：登录区 ---------- */
.lgs {
  position: relative;
  z-index: 4;
  margin-top: -20px;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
  background: #F7F4EF;
  border-radius: 24px 24px 0 0;
}
.lgs-in { width: 100%; }

.lgs-kick { color: #B3A695; font-size: 10px; letter-spacing: 3px; font-weight: 600; }
.lgs h2 { margin: 10px 0 5px; font-size: 25px; color: #14161A; letter-spacing: .2px; }
.lgs-desc { color: #6F6A63; font-size: 12.5px; margin-bottom: 24px; }

.lgf { margin-bottom: 16px; }
.lgf label {
  display: block; margin-bottom: 7px;
  font-size: 12px; font-weight: 500; color: #4C4740;
}
.lgf .inp {
  height: 50px; padding: 0 14px;
  display: flex; align-items: center;
  background: #fff; border: 1px solid #E2DCD2; border-radius: 10px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.lgf .inp:hover { border-color: #D3CABE; }
.lgf .inp:focus-within {
  border-color: rgba(228,86,42,.65);
  box-shadow: 0 0 0 3px rgba(228,86,42,.10);
}
.lgf input {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 13.5px; color: #14161A;
}
.lgf input::placeholder { color: #A9A29A; }
.lgf .err { color: #C0392B; font-size: 11px; margin-top: 5px; }
.lgf .err:empty { display: none; }

.lgbtn {
  width: 100%; height: 50px; margin-top: 6px;
  border: 0; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: 6px;
  color: #fff;
  background: linear-gradient(135deg, #EA5E2C 0%, #C0421A 100%);
  box-shadow: 0 12px 26px -8px rgba(192,66,26,.55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lgbtn:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -8px rgba(192,66,26,.6); }
.lgbtn:active { transform: translateY(0); }
.lgbtn[disabled] { opacity: .7; cursor: default; }

.lgs-hint {
  min-height: 16px; margin-top: 9px;
  font-size: 11px; line-height: 1.6; color: #9A9389;
}

/* 底部：注册 / 访客 双卡片 + 版权 */
.lgs-tail {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid #E5DFD5;
}
.lg-cards { display: flex; flex-direction: column; gap: 10px; }
.lgc-card {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px;
  border: 1px solid #E5DFD5; border-radius: 13px;
  background: #FDFBF7;
  font-family: inherit; text-align: left; cursor: pointer;
  transition: all .22s ease;
}
.lgc-card:hover {
  border-color: #C9BFB0;
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(60,45,30,.18);
}
.lgc-card:active { transform: translateY(0); }
.card-ico {
  flex: 0 0 34px; width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px; background: #F3EBE1;
}
.lgc-card.guest .card-ico { background: #EDEFF2; }
.card-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.card-txt b { font-size: 13px; font-weight: 650; color: #14161A; letter-spacing: .2px; }
.card-txt small { font-size: 10.5px; color: #9A9389; letter-spacing: .3px; }
.card-ar {
  font-size: 14px; color: #B9B1A4;
  transition: transform .22s ease, color .22s ease;
}
.lgc-card:hover .card-ar { transform: translateX(3px); color: #B0522A; }
.lgcopy { margin-top: 14px; font-size: 11px; color: #ADA69C; letter-spacing: .3px; text-align: center; }

/* ---------- 桌面：61.1% / 38.9% 分栏 ---------- */
@media (min-width: 900px) {
  .lgwrap { flex-direction: row; min-height: 100vh; }

  .lgc {
    flex: 0 0 61.1%;
    min-height: 100vh;
    padding: 5.5% 5.5% 4.2%;
  }
  .lgc-logo { width: 44px; height: 44px; border-radius: 12px; }
  .lgc-name { font-size: 18px; }
  .lgc-sub { font-size: 9.5px; }
  .lgc-eyebrow { margin-bottom: 26px; gap: 12px; }
  .lgc-eyebrow i { width: 36px; }
  .lgc-eyebrow span { font-size: 12px; letter-spacing: 1.6px; }
  .lgc h1 {
    font-size: clamp(28px, 3.2vw, 50px);
    line-height: 1.48;
    letter-spacing: 1px;
  }
  .lgc-meta { display: flex; }
  .lgc-stats { gap: 44px; flex-wrap: nowrap; }
  .lgc-stats .st b { font-size: 30px; }
  .lgc-stats .st span { font-size: 11px; }
  .lgc-cta { gap: 14px; }
  .lgc-cta .cta-main, .lgc-cta .cta-ghost { padding: 12px 30px; font-size: 14.5px; }

  .lgs {
    flex: 1;
    margin-top: 0;
    border-radius: 0;
    padding: 6%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lgs-in { width: min(384px, 100%); }

  .lgs-kick { font-size: 10.5px; }
  .lgs h2 { font-size: 30px; margin: 12px 0 6px; }
  .lgs-desc { font-size: 13.5px; margin-bottom: 34px; }
  .lgf { margin-bottom: 22px; }
  .lgf label { font-size: 12.5px; margin-bottom: 8px; }
  .lgf .inp { height: 52px; padding: 0 16px; }
  .lgbtn { height: 52px; margin-top: 4px; }
  .lgs-hint { margin-top: 10px; font-size: 11px; }
  .lgs-tail { margin-top: 30px; padding-top: 18px; }
}

@media (min-width: 1200px) {
  .lgc-nav { display: flex; }
}

/* 矮屏：压缩封面 */
@media (max-height: 720px) and (min-width: 900px) {
  .lgc { padding-top: 4%; padding-bottom: 3.4%; }
  .lgc h1 { font-size: clamp(26px, 2.6vw, 38px); }
  .lgc-eyebrow { margin-bottom: 18px; }
  .lgc-meta { padding-top: 10px; }
  .lgc-stats .st b { font-size: 24px; }
  .lgc-cta .cta-main, .lgc-cta .cta-ghost { padding: 9px 22px; font-size: 13px; }
  .lgs h2 { font-size: 26px; }
  .lgs-desc { margin-bottom: 22px; }
  .lgf { margin-bottom: 16px; }
}

@media (max-width: 380px) {
  .lgc h1 { font-size: 23px; }
  .lgs h2 { font-size: 23px; }
}
