/* ============================================================
   v45 登录页（酷家乐风格）：视频背景 + 能力卡片 + 官方公告
   独立样式，不影响设计器 style.css
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --lp-blue: #1e6fff;
    --lp-blue-deep: #0f4fd6;
    --lp-blue-grad: linear-gradient(135deg, #1a6be6 0%, #3f8cff 100%);
}

.lp-body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    background: #0b1220;
}

/* ---------- 视频背景 ---------- */
.lp-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.lp-video-mask {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 14, 28, .82) 0%, rgba(8, 14, 28, .45) 34%, rgba(8, 14, 28, .12) 60%, rgba(8, 14, 28, .55) 100%),
        linear-gradient(180deg, rgba(8, 14, 28, .65) 0%, rgba(8, 14, 28, 0) 22%, rgba(8, 14, 28, 0) 72%, rgba(8, 14, 28, .7) 100%);
}

/* ---------- 顶部导航 ---------- */
.lp-nav {
    position: relative;
    z-index: 5;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}
.lp-nav-brand { display: flex; align-items: center; gap: 10px; }
.lp-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--lp-blue-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(30, 111, 255, .45);
}
.lp-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.lp-site-name { font-size: 19px; font-weight: 700; letter-spacing: .5px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.lp-beta {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(4px);
}
.lp-nav-links { display: flex; align-items: center; gap: 22px; }
.lp-nav-links a {
    color: rgba(255,255,255,.92);
    text-decoration: none;
    font-size: 14px;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
    transition: color .15s;
}
.lp-nav-links a:hover { color: #fff; }
.lp-nav-cta {
    padding: 9px 22px;
    border: none;
    border-radius: 8px;
    background: var(--lp-blue-grad);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(30, 111, 255, .5);
    transition: transform .15s, box-shadow .15s;
}
.lp-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(30, 111, 255, .6); }

/* ---------- 主体三栏 ---------- */
.lp-main {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 8px 28px 0;
    min-height: calc(100vh - 58px - 42px);
}

/* 左：能力导航 + 分类卡片 */
.lp-left { display: flex; gap: 14px; flex: 0 0 auto; }
.lp-rail {
    width: 74px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 10px 6px;
    gap: 4px;
    align-self: flex-start;
}
.lp-rail-item {
    border: none;
    background: transparent;
    color: rgba(255,255,255,.85);
    font-size: 11px;
    padding: 10px 2px 8px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: background .15s, color .15s;
}
.lp-rail-item span { font-size: 19px; line-height: 1; }
.lp-rail-item:hover { background: rgba(255,255,255,.16); color: #fff; }
.lp-rail-item.active { background: rgba(30,111,255,.55); color: #fff; }

.lp-cats {
    align-self: flex-start;
    width: 218px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    padding: 14px;
}
.lp-cats-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.lp-fold { font-size: 12px; opacity: .6; }
.lp-cats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-cat {
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12.5px;
    padding: 14px 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: transform .15s, background .15s;
}
.lp-cat i { font-style: normal; font-size: 22px; line-height: 1; }
.lp-cat:hover { transform: translateY(-2px); background: rgba(30,111,255,.5); }

/* 中：标题 + 主 CTA */
.lp-center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
}
.lp-headline { text-align: center; text-shadow: 0 3px 18px rgba(0,0,0,.55); }
.lp-headline h1 { font-size: 46px; font-weight: 800; letter-spacing: 2px; }
.lp-headline h1 span:not(.lp-shine) {
    background: linear-gradient(90deg, #6db4ff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lp-headline p { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.88); letter-spacing: 1px; }
.lp-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 44px;
    border: none;
    border-radius: 999px;
    background: var(--lp-blue-grad);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(30, 111, 255, .55), inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .15s, box-shadow .15s;
    animation: lpBreath 2.6s ease-in-out infinite;
}
.lp-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 36px rgba(30, 111, 255, .7); }
.lp-cta-icon { font-size: 20px; }
@keyframes lpBreath {
    0%, 100% { box-shadow: 0 10px 30px rgba(30,111,255,.55), inset 0 1px 0 rgba(255,255,255,.25); }
    50% { box-shadow: 0 10px 34px rgba(30,111,255,.85), inset 0 1px 0 rgba(255,255,255,.25); }
}
.lp-video-toggle {
    position: absolute;
    right: 4px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .15s;
}
.lp-video-toggle:hover { background: rgba(0,0,0,.55); }

/* 右：公告 + 登录卡 */
.lp-right {
    flex: 0 0 330px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: center;
    max-height: calc(100vh - 58px - 42px - 24px);
}
.lp-card { border-radius: 16px; transition: box-shadow .2s; }
.lp-pulse { animation: lpPulse .9s ease; }
@keyframes lpPulse {
    0% { box-shadow: 0 0 0 0 rgba(30,111,255,.75); }
    70% { box-shadow: 0 0 0 14px rgba(30,111,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(30,111,255,0); }
}

/* 官方公告（酷家乐式蓝渐变面板） */
.lp-anno {
    background: var(--lp-blue-grad);
    box-shadow: 0 12px 32px rgba(15, 79, 214, .45);
    overflow: hidden;
    flex: 0 1 auto;
    min-height: 0;
}
.lp-anno-head {
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,.22);
}
.lp-anno-body {
    padding: 10px 14px 14px;
    background: rgba(255,255,255,.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 300px;
    overflow-y: auto;
}
.lp-anno-item { display: flex; gap: 10px; padding: 8px 4px; align-items: flex-start; }
.lp-anno-icon {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-top: 1px;
}
.lp-anno-title { font-size: 13.5px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.lp-anno-desc { font-size: 12px; line-height: 1.65; color: rgba(255,255,255,.85); white-space: pre-line; }

/* 登录卡 */
.lp-login {
    background: #fff;
    color: #1f2733;
    padding: 26px 26px 20px;
    box-shadow: 0 16px 44px rgba(5, 12, 30, .45);
}
.lp-login h2 { font-size: 21px; font-weight: 700; }
.lp-sub { font-size: 12.5px; color: #8a94a6; margin: 6px 0 18px; }
.lp-field { margin-bottom: 14px; }
.lp-field label { display: block; font-size: 12.5px; font-weight: 600; color: #45506a; margin-bottom: 6px; }
.lp-field input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d8dfeb;
    border-radius: 9px;
    font-size: 14px;
    outline: none;
    transition: border .15s, box-shadow .15s;
    background: #f8fafd;
}
.lp-field input:focus { border-color: var(--lp-blue); box-shadow: 0 0 0 3px rgba(30,111,255,.14); background: #fff; }
.lp-pw-wrap { position: relative; }
.lp-pw-wrap input { padding-right: 42px; }
.lp-pw-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: #8a94a6;
    cursor: pointer;
    padding: 2px;
}
.lp-pw-eye svg { width: 100%; height: 100%; }
.lp-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 9px;
    background: var(--lp-blue-grad);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 6px;
    cursor: pointer;
    margin-top: 4px;
    box-shadow: 0 6px 16px rgba(30,111,255,.4);
    transition: transform .15s, box-shadow .15s;
}
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(30,111,255,.5); }
.lp-links { margin-top: 15px; text-align: center; font-size: 12.5px; color: #8a94a6; }
.lp-links a { color: var(--lp-blue); text-decoration: none; font-weight: 600; }
.lp-links a:hover { text-decoration: underline; }

/* 底部 */
.lp-footer {
    position: relative;
    z-index: 4;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255,255,255,.6);
}

/* toast 兜底（api.js 的 toast 依赖 #toast）；z-index 须高于登录弹窗(.lp-modal:900)与演示层(#lp-demo-overlay:1000) */
#toast {
    position: fixed;
    top: 74px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    display: none;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(15, 23, 42, .92);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
#toast.error { background: rgba(190, 32, 44, .94); }
#toast.ok { background: rgba(16, 128, 80, .94); }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
    .lp-left .lp-rail { display: none; }
}
@media (max-width: 1080px) {
    .lp-left { display: none; }
    .lp-main { justify-content: center; }
}
@media (max-width: 860px) {
    .lp-main { flex-direction: column; align-items: center; padding-bottom: 24px; }
    .lp-right { flex: 0 0 auto; width: min(92vw, 380px); max-height: none; }
    .lp-center { min-height: 42vh; }
    .lp-headline h1 { font-size: 32px; }
}

/* ===== v52.1 标语突出（白边蓝字） ===== */
.lp-headline h1 span.lp-shine {
    font-size: 1.28em;
    font-weight: 900;
    display: inline-block;
    margin-left: 6px;
    color: #2b7cff;
    -webkit-text-stroke: 5px #ffffff;
    paint-order: stroke fill;
    text-shadow: 0 4px 18px rgba(43, 124, 255, .35);
}

/* ===== v52 CTA 行：演示按钮 + 立即开始设计 ===== */
.lp-cta-row { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lp-cta-ghost {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 30px; border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 1px;
    cursor: pointer; backdrop-filter: blur(6px);
    transition: transform .15s, background .15s, border-color .15s;
}
.lp-cta-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .6); }

/* ===== v52 全屏演示层 ===== */
#lp-demo-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: #0b1120;
}
#lp-demo-overlay iframe { width: 100%; height: 100%; border: none; display: block; }
#lp-demo-close {
    position: fixed; top: 16px; right: 20px; z-index: 1001;
    padding: 9px 18px; border: none; border-radius: 999px;
    background: rgba(255, 255, 255, .14); color: #fff;
    font-size: 14px; font-weight: 600; cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background .15s, transform .15s;
}
#lp-demo-close:hover { background: rgba(239, 68, 68, .75); transform: scale(1.04); }

/* ===== v52 登录弹窗 ===== */
.lp-modal {
    position: fixed; inset: 0; z-index: 900;
    background: rgba(2, 6, 23, .62);
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.lp-modal-card {
    position: relative; width: min(400px, 92vw);
    max-height: 88vh; overflow-y: auto;
    background: linear-gradient(168deg, rgba(20, 34, 64, .92), rgba(9, 18, 38, .95));
    border: 1px solid rgba(120, 160, 255, .22);
    border-radius: 18px; padding: 22px 26px 26px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
    animation: lpModalIn .28s cubic-bezier(.2, .8, .3, 1.15) both;
}
@keyframes lpModalIn { from { opacity: 0; transform: translateY(26px) scale(.95); } to { opacity: 1; transform: none; } }
.lp-modal-close {
    position: absolute; top: 12px; right: 14px;
    width: 30px; height: 30px; border: none; border-radius: 50%;
    background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8);
    font-size: 14px; cursor: pointer; transition: background .15s;
}
.lp-modal-close:hover { background: rgba(239, 68, 68, .6); }
.lp-modal-tabs { display: flex; gap: 6px; margin-bottom: 14px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 4px; }
.lp-mtab {
    flex: 1; padding: 8px 0; border: none; border-radius: 8px;
    background: transparent; color: rgba(255, 255, 255, .65);
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all .18s;
}
.lp-mtab.active { background: rgba(59, 130, 246, .85); color: #fff; box-shadow: 0 3px 12px rgba(37, 99, 235, .4); }
.lp-mpane h2 { font-size: 21px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.lp-mpane .lp-sub { font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 16px; }
.lp-mpane .lp-field { margin-bottom: 13px; }
.lp-mpane .lp-field label { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .75); margin-bottom: 5px; }
.lp-mpane .lp-field input {
    width: 100%; padding: 11px 13px; border-radius: 10px;
    border: 1px solid rgba(120, 160, 255, .25);
    background: rgba(255, 255, 255, .07); color: #fff;
    font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.lp-mpane .lp-field input:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); }
.lp-mpane .lp-field input::placeholder { color: rgba(255, 255, 255, .35); }
.lp-mpane .lp-btn {
    width: 100%; padding: 12px 0; border: none; border-radius: 10px;
    background: var(--lp-blue-grad, linear-gradient(135deg, #3b82f6, #1d4ed8));
    color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 3px;
    cursor: pointer; margin-top: 6px;
    box-shadow: 0 8px 24px rgba(30, 111, 255, .4);
    transition: transform .15s, box-shadow .15s;
}
.lp-mpane .lp-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(30, 111, 255, .55); }
.lp-mpane .lp-links { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .55); text-align: center; }
.lp-mpane .lp-links a { color: #93c5fd; text-decoration: none; }
.lp-mpane .lp-links a:hover { text-decoration: underline; }

/* ===== v52 微信登录 ===== */
.lp-wechat-box {
    display: flex; align-items: center; justify-content: center;
    width: 240px; height: 240px; margin: 6px auto 10px;
    background: #fff; border-radius: 14px; overflow: hidden;
    padding: 10px;
}
.lp-wechat-box img { max-width: 100%; max-height: 100%; }
.lp-wechat-oauth { padding: 0; }
.lp-wechat-oauth iframe { width: 100%; height: 100%; border: none; }
.lp-wechat-off {
    width: auto; height: auto; padding: 26px 30px;
    background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .3);
    color: rgba(255, 255, 255, .75); font-size: 14px; gap: 8px;
}
.lp-wechat-off span { font-size: 26px; }
.lp-wechat-tip { text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
