@charset "utf-8";
/**
 * 登录页（根目录 index.php，r44 照 dev-2 views/_builtin/login 重做，主色换成本系统的蓝）
 *   背景：视频（webm / mp4）→ 首帧图兜底；左侧品牌标语，右侧 3/4 处 460 宽的白色卡片（波浪线 + 蓝色楔形装饰）
 *   卡片两屏：登录表单 / 帐套选择（一个手机号在多个帐套里时）
 *   黑夜模式：跟着主框架（localStorage wh_dark），卡片和弹窗换成黑色
 */
:root {
    --lg-p: 22 119 255;
    --lg-card: #fff;
    --lg-tx: #1f2329;
    --lg-tx2: #4e5969;
    --lg-tx3: #86909c;
    --lg-line: #e5e6eb;
    --lg-soft: #f7f8fa;
}
html.wh-dark {
    --lg-p: 76 155 255;
    --lg-card: #171b23;
    --lg-tx: #e6e9ef;
    --lg-tx2: #b4bccb;
    --lg-tx3: #8590a2;
    --lg-line: #2a303b;
    --lg-soft: #1d222c;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.lg {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    font: 13px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--lg-tx);
    background: #1b2433;
}
button { font: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ---------- 背景：首帧图 → 视频 → 白纱 ---------- */
.lg-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.lg-poster, .lg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lg-poster { background: #1b2433 url(video/login-bg-poster.jpg) center / cover no-repeat; }
.lg-video { opacity: 0; transition: opacity .6s ease; }
.lg-video.is-ready { opacity: 1; }
/* 顶部压一层白纱：深色 logo 和链接读得出来；底部压暗一点托住版权文字 */
.lg-mask {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .72) 0, rgba(255, 255, 255, .18) 90px, rgba(255, 255, 255, 0) 160px),
        linear-gradient(to top, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 70px);
}
html.wh-dark .lg-mask {
    background: linear-gradient(to bottom, rgba(10, 13, 19, .7) 0, rgba(10, 13, 19, .2) 90px, rgba(10, 13, 19, 0) 160px),
        linear-gradient(to top, rgba(10, 13, 19, .6) 0, rgba(10, 13, 19, 0) 70px), rgba(10, 13, 19, .28);
}

/* ---------- 顶部栏 ---------- */
.lg-head {
    position: absolute; top: 0; left: 0; right: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; padding: 0 calc(10% - 4px);
}
.lg-logo img { display: block; height: 34px; }
html.wh-dark .lg-logo img { filter: brightness(0) invert(1); opacity: .92; }
.lg-links { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #1f2329; }
html.wh-dark .lg-links { color: #e6e9ef; }
.lg-links > a, .lg-wx { position: relative; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; transition: color .15s; }
.lg-links > a:hover, .lg-wx:hover, .lg-wx:focus-visible { color: rgb(var(--lg-p)); outline: none; }
.lg-links > i { width: 1px; height: 12px; background: currentColor; opacity: .25; }
.lg-links svg { width: 15px; height: 15px; fill: currentColor; }
.lg-wx-pop {
    position: absolute; top: calc(100% + 12px); left: 50%; z-index: 20;
    width: 168px; padding: 12px 12px 10px; margin-left: -84px;
    background: var(--lg-card); color: var(--lg-tx2); text-align: center; font-size: 12px;
    border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .15s;
}
.lg-wx-pop::before { content: ""; position: absolute; top: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--lg-card); }
.lg-wx-pop img { display: block; width: 144px; height: 144px; margin: 0 auto 6px; border-radius: 4px; }
.lg-wx:hover .lg-wx-pop, .lg-wx:focus-within .lg-wx-pop { opacity: 1; visibility: visible; transform: none; }

/* ---------- 主体：左侧标语，右侧卡片（卡片中心在 75% 处） ---------- */
.lg-main {
    position: absolute; inset: 0; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    padding: 110px 16px 104px calc(50% + 16px);
}
.lg-brand {
    position: absolute; left: 0; top: 50%; width: calc(75% - 230px);
    transform: translateY(-50%); text-align: center; pointer-events: none; user-select: none;
}
.lg-brand h1 {
    margin: 0; font-size: 46px; font-weight: 700; line-height: 1.3; letter-spacing: 2px; white-space: nowrap;
    color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}
.lg-name::after { content: "®"; position: relative; top: -1.78em; font-size: .34em; font-weight: 600; letter-spacing: 0; opacity: .8; }
.lg-sub {
    display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px;
    font-size: 20px; font-weight: 500; letter-spacing: 3px; white-space: nowrap;
    color: rgba(255, 255, 255, .92); text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.lg-sub i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .75); }
.lg-card-wrap { position: relative; width: 460px; max-width: 100%; }

/* 卡片左上角的页签、右上角的“立即体验”角标 */
.lg-tabs { position: absolute; top: 18px; left: 22px; z-index: 3; display: flex; gap: 18px; }
.lg-tabs button {
    position: relative; padding: 4px 2px; border: 0; background: none; cursor: pointer;
    font-size: 13px; color: var(--lg-tx2); transition: color .15s;
}
.lg-tabs button:hover { color: rgb(var(--lg-p)); }
.lg-tabs button.on { color: rgb(var(--lg-p)); font-weight: 600; }
.lg-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: rgb(var(--lg-p)); }
.lg-tabs button:focus-visible, .lg-flag:focus-visible { outline: 2px solid rgb(var(--lg-p) / .5); outline-offset: 2px; }
.lg-flag {
    position: absolute; top: 0; right: 0; z-index: 3;
    padding: 8px 16px 10px 40px; font-size: 14px; font-weight: 500; line-height: 1;
    color: rgb(var(--lg-p)); background: rgb(var(--lg-p) / .12); border-top-right-radius: 16px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 24% 100%); cursor: pointer; user-select: none; transition: background .15s;
}
.lg-flag:hover { background: rgb(var(--lg-p) / .2); }
.lg-card {
    position: relative; display: flex; flex-direction: column; height: 586px;
    padding: 60px; border-radius: 16px; background: var(--lg-card); box-shadow: 0 16px 48px rgba(15, 23, 42, .14);
}
html.wh-dark .lg-card { box-shadow: 0 16px 48px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06); }

/* 装饰：左上波浪线（缓慢流动、两个方向淡出）+ 左下蓝色楔形；换到帐套选择时淡出 */
.lg-deco { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 16px; pointer-events: none; transition: opacity .2s; }
.lg-card.is-books .lg-deco { opacity: 0; }
.lg-curves-wrap {
    position: absolute; top: 0; left: 0; width: 420px; height: 150px;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.lg-curves {
    display: block; width: 100%; height: 100%;
    -webkit-mask-image: linear-gradient(to right, #000 62%, transparent 100%); mask-image: linear-gradient(to right, #000 62%, transparent 100%);
}
.lg-curves path { fill: none; stroke-width: 1; animation: lg-drift 13s ease-in-out infinite; will-change: transform; }
.lg-curves .g path { stroke: rgba(15, 23, 42, .13); }
html.wh-dark .lg-curves .g path { stroke: rgba(230, 233, 239, .1); }
.lg-curves .g path:nth-child(4) { stroke-opacity: .75; }
.lg-curves .g path:nth-child(5) { stroke-opacity: .55; animation-duration: 22s; animation-delay: -11s; }
.lg-curves .g path:nth-child(6) { stroke-opacity: .4; }
.lg-curves .g path:nth-child(2n) { animation-duration: 16s; animation-delay: -3s; }
.lg-curves .g path:nth-child(3n) { animation-duration: 19s; animation-delay: -7s; }
.lg-curves .b path { stroke: rgb(var(--lg-p) / .28); }
.lg-curves .b path:nth-child(2) { animation-duration: 17s; animation-delay: -5s; }
.lg-curves .b path:nth-child(3) { animation-duration: 20s; animation-delay: -9s; }
@keyframes lg-drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-16px, 5px, 0); } }
.lg-tri { position: absolute; left: -78px; bottom: 36px; width: 275px; height: 475px; color: rgb(var(--lg-p)); }
.lg-tri .s { fill: url(#lg-matte); }
.lg-tri .v { fill: #1e2a3d; opacity: .1; }
.lg-tri .n { fill: url(#lg-grain); }
.lg-tri .l path { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: .7; }
.lg-inner { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------- 登录表单：输入框只有底线，缩到 72% 靠右（左边留给楔形） ---------- */
.lg-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lg-field { position: relative; width: 72%; margin: 0 0 28px auto; }
.lg-first { margin-top: 30px; }
.lg-field input {
    display: block; width: 100%; height: 40px; padding: 0 28px 0 0;
    border: 0; border-bottom: 1px solid rgb(var(--lg-p) / .5); border-radius: 0; outline: none;
    background: transparent; color: var(--lg-tx); font-size: 14px; transition: border-color .15s;
}
.lg-field input::placeholder { color: var(--lg-tx3); }
.lg-field input:hover, .lg-field input:focus { border-bottom-color: rgb(var(--lg-p)); }
.lg-field input:-webkit-autofill { -webkit-text-fill-color: var(--lg-tx); -webkit-background-clip: text; background-clip: text; transition: background-color 9999s; }
.lg-field.is-err input { border-bottom-color: #f53f3f; }
.lg-err { position: absolute; left: 0; top: 100%; margin-top: 4px; font-size: 12px; color: #f53f3f; }
.lg-eye {
    position: absolute; right: 0; top: 50%; width: 24px; height: 24px; margin-top: -12px; padding: 0;
    border: 0; background: none; color: var(--lg-tx3); cursor: pointer; border-radius: 4px;
}
.lg-eye:hover, .lg-eye:focus-visible { color: rgb(var(--lg-p)); outline: none; }
.lg-eye svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lg-keep { width: 72%; margin: -14px 0 18px auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--lg-tx2); }
.lg-keep label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.lg-keep input { width: 14px; height: 14px; margin: 0; accent-color: rgb(var(--lg-p)); }
.lg-keep a { margin-left: auto; color: var(--lg-tx3); cursor: pointer; }
.lg-keep a:hover { color: rgb(var(--lg-p)); }
/* “下一步”指示：输入框左侧闪动的小三角 */
.lg-hint {
    position: absolute; left: -22px; top: 50%; width: 0; height: 0; pointer-events: none;
    border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid rgb(var(--lg-p));
    opacity: 0; transform: translate(0, -50%);
}
.lg-hint.on { opacity: 1; animation: lg-blink 1.1s ease-in-out infinite; }
body.lg-still .lg-hint.on { animation: none; }
@keyframes lg-blink { 0%, 100% { opacity: 1; transform: translate(0, -50%); } 50% { opacity: .2; transform: translate(4px, -50%); } }
.lg-submit-wrap { position: relative; width: 72%; margin-left: auto; }
.lg-submit {
    display: flex; align-items: center; justify-content: space-between; width: 100%; height: 36px; padding: 0 16px;
    border: 0; border-radius: 999px; background: rgb(var(--lg-p) / .82); color: #fff; font-size: 14px; cursor: pointer;
    transition: background-color .18s, box-shadow .18s;
}
.lg-submit:hover, .lg-submit:focus-visible { background: rgb(var(--lg-p)); outline: none; box-shadow: 0 4px 14px rgb(var(--lg-p) / .35); }
.lg-submit:active { background: rgb(var(--lg-p) / .92); }
.lg-submit[disabled] { cursor: default; opacity: .7; }
.lg-submit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lg-submit.is-loading svg { animation: lg-spin .8s linear infinite; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
.lg-bottom { margin-top: auto; }
.lg-or { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--lg-tx2); }
.lg-or::before, .lg-or::after { content: ""; flex: 1; border-top: 1px dashed var(--lg-line); }
.lg-other { display: flex; justify-content: space-around; padding: 20px 0 18px; }
.lg-other a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--lg-tx); cursor: pointer; transition: color .15s; }
.lg-other a:hover, .lg-other a:focus-visible { color: rgb(var(--lg-p)); outline: none; }
.lg-other svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lg-links2 { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px dashed var(--lg-line); font-size: 13px; color: var(--lg-tx); }
.lg-links2 a { cursor: pointer; transition: color .15s; }
.lg-links2 a:hover, .lg-links2 a:focus-visible { color: rgb(var(--lg-p)); outline: none; }
.lg-links2 i { font-style: normal; color: var(--lg-line); }

/* ---------- 帐套选择 ---------- */
.lg-books { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: -28px -12px -20px; }
.lg-back { align-self: flex-start; padding: 0; border: 0; background: none; color: rgb(var(--lg-p)); font-size: 13px; cursor: pointer; }
.lg-back:hover { text-decoration: underline; }
.lg-books-hd { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 12px; }
.lg-books-hd h2 { margin: 0; font-size: 18px; font-weight: 600; }
.lg-books-hd span { font-size: 12px; color: var(--lg-tx3); }
.lg-books-hd b { color: rgb(var(--lg-p)); }
.lg-search { position: relative; margin-bottom: 10px; }
.lg-search input {
    width: 100%; height: 32px; padding: 0 10px 0 30px; border: 1px solid var(--lg-line); border-radius: 6px; outline: none;
    background: var(--lg-card); color: var(--lg-tx); font-size: 13px; transition: border-color .15s, box-shadow .15s;
}
.lg-search input:focus { border-color: rgb(var(--lg-p)); box-shadow: 0 0 0 2px rgb(var(--lg-p) / .15); }
.lg-search svg { position: absolute; left: 9px; top: 9px; width: 14px; height: 14px; fill: none; stroke: var(--lg-tx3); stroke-width: 1.8; stroke-linecap: round; }
.lg-list { flex: 1; min-height: 0; overflow: auto; margin: 0 -4px; padding: 2px 4px; scrollbar-width: thin; }
.lg-item {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; width: 100%; margin-bottom: 8px; padding: 10px 12px;
    border: 1px solid var(--lg-line); border-radius: 8px; background: var(--lg-card); color: var(--lg-tx); text-align: left; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.lg-item:hover { border-color: rgb(var(--lg-p) / .45); }
.lg-item.on { border-color: rgb(var(--lg-p)); background: rgb(var(--lg-p) / .05); }
.lg-item:focus-visible { outline: 2px solid rgb(var(--lg-p) / .5); outline-offset: 1px; }
.lg-item.is-stop { opacity: .62; }
.lg-item-l { min-width: 0; flex: 1; }
.lg-item-n { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.lg-item-n span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lg-item-t { display: flex; gap: 6px; margin-top: 4px; }
.lg-tag { display: inline-block; padding: 0 6px; border-radius: 3px; font-size: 11px; line-height: 18px; font-style: normal; white-space: nowrap; color: var(--lg-tx2); background: var(--lg-soft); }
.lg-tag-b { color: rgb(var(--lg-p)); background: rgb(var(--lg-p) / .1); }
.lg-tag-g { color: #00a870; background: rgba(0, 168, 112, .1); }
.lg-tag-r { color: #f53f3f; background: rgba(245, 63, 63, .1); }
.lg-tag-o { color: #e37318; background: rgba(227, 115, 24, .12); }
.lg-item-r { flex-shrink: 0; font-size: 12px; color: var(--lg-tx3); text-align: right; }
.lg-item-r.is-red { color: #f53f3f; }
.lg-empty { padding: 30px 0; text-align: center; color: var(--lg-tx3); }
.lg-books-ft { padding-top: 12px; }
.lg-agree { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 12px; color: var(--lg-tx2); cursor: pointer; user-select: none; }
.lg-agree input { width: 14px; height: 14px; margin: 0; accent-color: rgb(var(--lg-p)); }
.lg-agree a { color: rgb(var(--lg-p)); }
.lg-books .lg-submit { justify-content: center; height: 40px; }
.lg-books .lg-submit.is-stop { background: #c9cdd4; }
html.wh-dark .lg-books .lg-submit.is-stop { background: #3a414e; }

/* ---------- 右下角圆钮、页脚 ---------- */
.lg-corner { position: absolute; right: 28px; bottom: 56px; z-index: 11; display: flex; gap: 8px; }
.lg-cbtn {
    display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(24, 28, 34, .72); color: #fff; cursor: pointer;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 4px 16px rgba(0, 0, 0, .3); transition: background .15s, border-color .15s, transform .15s;
}
.lg-cbtn:hover, .lg-cbtn:focus-visible { background: rgba(24, 28, 34, .88); border-color: rgba(255, 255, 255, .28); outline: none; }
.lg-cbtn:active { transform: scale(.94); }
.lg-cbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-cbtn { position: relative; }
.lg-cbtn.is-dot::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #f53f3f; }
.lg-refresh:hover svg { transform: rotate(180deg); transition: transform .3s; }
.lg-foot {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; padding: 0 16px 14px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; font-size: 12px; color: rgba(31, 35, 41, .72);
}
html.wh-dark .lg-foot { color: rgba(230, 233, 239, .6); }

/* ---------- 提示、弹窗 ---------- */
.lg-toast {
    position: fixed; top: 76px; left: 50%; z-index: 100; max-width: 80%; padding: 9px 16px; transform: translate(-50%, -8px);
    border-radius: 8px; background: var(--lg-card); color: var(--lg-tx); font-size: 13px; box-shadow: 0 8px 28px rgba(15, 23, 42, .18);
    opacity: 0; visibility: hidden; transition: all .2s;
}
.lg-toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.lg-toast i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: rgb(var(--lg-p)); vertical-align: 1px; }
.lg-toast.is-err i { background: #f53f3f; }
.lg-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .45); }
.lg-dlg { width: 420px; max-width: calc(100% - 32px); max-height: calc(100% - 64px); display: flex; flex-direction: column; border-radius: 12px; background: var(--lg-card); color: var(--lg-tx); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.lg-dlg-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; font-size: 15px; font-weight: 600; }
.lg-dlg-x { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--lg-tx3); font-size: 20px; line-height: 28px; cursor: pointer; }
.lg-dlg-x:hover { background: var(--lg-soft); color: var(--lg-tx); }
.lg-dlg-bd { flex: 1; min-height: 0; overflow: auto; padding: 4px 20px 8px; font-size: 13px; line-height: 1.8; color: var(--lg-tx2); }
.lg-dlg-bd strong { color: #f53f3f; }
.lg-dlg-bd ol { margin: 0; padding-left: 18px; }
.lg-dlg-ft { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; }
.lg-btn {
    height: 30px; padding: 0 16px; border: 1px solid var(--lg-line); border-radius: 6px; background: var(--lg-card); color: var(--lg-tx2); font-size: 13px; cursor: pointer;
    transition: all .15s;
}
.lg-btn:hover, .lg-btn:focus-visible { color: rgb(var(--lg-p)); border-color: rgb(var(--lg-p)); background: rgb(var(--lg-p) / .06); outline: none; }
.lg-btn-p { border-color: rgb(var(--lg-p)); background: rgb(var(--lg-p)); color: #fff; }
.lg-btn-p:hover, .lg-btn-p:focus-visible { color: #fff; background: rgb(var(--lg-p) / .85); }
/* 账号记忆（照 dev-2）：每一项 = 手机号 + 帐套名 + 上次登录时间，右边“使用 / 删除”常驻；底部“清空全部 / 关闭” */
.lg-dlg-mem { width: 480px; }
.lg-mem-box { min-height: 180px; max-height: 340px; overflow: auto; }
.lg-mem { list-style: none; margin: 0; padding: 0; }
.lg-mem li { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--lg-line); border-radius: 4px; transition: border-color .15s, background .15s; }
.lg-mem li + li { margin-top: 8px; }
.lg-mem li:hover { border-color: rgb(var(--lg-p)); background: rgb(var(--lg-p) / .03); }
.lg-mem-l { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; line-height: 1.5; }
.lg-mem-l b { color: var(--lg-tx); font-size: 14px; font-weight: 500; }
.lg-mem-l em { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 12px; color: var(--lg-tx2); }
.lg-mem-l span { flex-basis: 100%; font-size: 12px; color: var(--lg-tx3); }
.lg-btn.lg-btn-s { height: 24px; padding: 0 10px; font-size: 12px; }
.lg-btn.lg-btn-d { color: #f53f3f; border-color: rgb(245 63 63 / .45); }
.lg-btn.lg-btn-d:hover, .lg-btn.lg-btn-d:focus-visible, .lg-btn.lg-btn-d.is-confirm { color: #fff; border-color: #f53f3f; background: #f53f3f; }
.lg-btn.lg-btn-link { margin-right: auto; border-color: transparent; background: none; color: #f53f3f; padding: 0 4px; }
.lg-btn.lg-btn-link:hover, .lg-btn.lg-btn-link:focus-visible, .lg-btn.lg-btn-link.is-confirm { color: #f53f3f; border-color: transparent; background: rgb(245 63 63 / .08); }
.lg-mem-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; color: var(--lg-tx3); font-size: 12px; text-align: center; }
.lg-mem-empty svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .6; }
.lg-mem-empty b { color: var(--lg-tx2); font-size: 14px; font-weight: 500; }
.lg-dlg-bd .lg-dlg-sub { color: var(--lg-tx3); font-size: 12px; }
/* 坐席满：在线的人（选一个让他下线） */
.lg-dlg-bd p { margin: 0 0 8px; }
.lg-dlg-bd a { color: rgb(var(--lg-p)); }
.lg-online { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; border: 1px solid var(--lg-line); border-radius: 6px; }
.lg-online li + li { border-top: 1px solid var(--lg-line); }
.lg-online label { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; cursor: pointer; }
.lg-online label:hover { background: var(--lg-soft); }
.lg-online input { margin: 0; accent-color: rgb(var(--lg-p)); }
.lg-online b { color: var(--lg-tx); font-weight: 500; }
.lg-online span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lg-tx3); font-size: 12px; }
.lg-online em { font-style: normal; color: var(--lg-tx3); font-size: 12px; }

/* ---------- 窄屏 / 矮屏 ---------- */
@media (max-width: 1400px) {
    .lg-brand h1 { font-size: 38px; }
    .lg-sub { font-size: 17px; letter-spacing: 2px; }
}
@media (max-width: 1024px) {
    .lg-main { padding-left: 16px; }
    .lg-brand { display: none; }
}
@media (max-height: 820px) { .lg-main { padding-top: 84px; padding-bottom: 92px; } .lg-corner { bottom: 48px; } }
@media (max-height: 780px) { .lg-main { padding-top: 76px; padding-bottom: 84px; } .lg-corner { bottom: 40px; } }
@media (max-height: 750px) { .lg-main { padding-top: 68px; padding-bottom: 76px; } .lg-corner { bottom: 34px; } }
@media (max-width: 640px) {
    body.lg { overflow: auto; }
    .lg-head { padding: 0 16px; }
    .lg-main { padding: 90px 12px 94px; }
    .lg-card { padding: 60px 28px 40px; }
    .lg-video, .lg-vbtn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .lg-hint.on, .lg-curves path { animation: none; }
}
