/* 芯融智享 — 平台型登录页 */
:root {
    --ink: #0F2B46;
    --muted: #7A8FA6;
    --line: #DCE5EF;
    --field: #F4F7FB;
    --navy: #0B3B6F;
    --navy-deep: #08284A;
    --navy-light: #12568C;
    --teal: #2ED3B7;
    --gold: #F2A93B;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.wd-platform {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    color: var(--ink);
    background: #F5F8FC;
    -webkit-font-smoothing: antialiased;
}

.shell {
    display: grid;
    grid-template-columns: 57% 43%;
    min-height: 100vh;
}

/* ---------------- 品牌区 ---------------- */
.brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
    padding: clamp(28px, 4vw, 64px);
    background: linear-gradient(140deg, #08284A 0%, #0B3B6F 48%, #12568C 100%);
    color: #fff;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 20%, transparent 78%);
    mask-image: radial-gradient(circle at 30% 40%, #000 20%, transparent 78%);
    pointer-events: none;
}

.net {
    position: absolute;
    right: -18%;
    top: 50%;
    width: 112%;
    height: 112%;
    transform: translateY(-50%);
    opacity: .55;
    pointer-events: none;
}
.net-lines path { fill: none; stroke: #5FE3CB; stroke-width: 1; opacity: .38; }
.net-rings circle { fill: none; stroke: #5FE3CB; stroke-width: .8; opacity: .1; }
.net-dots circle { fill: #5FE3CB; }
.net-dots circle:first-child { animation: wd-pulse 4.8s ease-in-out infinite; }
.net-rings circle { transform-origin: 300px 300px; animation: wd-rotate 90s linear infinite; }
.net-rings circle:nth-child(2) { animation-duration: 140s; }
.net-rings circle:nth-child(3) { animation-duration: 200s; }

@keyframes wd-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes wd-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .net-dots circle, .net-rings circle { animation: none; }
}

.brand-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
}
.mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--teal);
    color: #08284A;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.name {
    font-size: 15px;
    letter-spacing: 2px;
    color: #EAF4FB;
}

.brand-copy { position: relative; z-index: 1; max-width: 560px; }

.kicker {
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--teal);
    margin-bottom: 18px;
}

.brand-copy h1 {
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.34;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 18px;
}

.lead {
    font-size: 15px;
    line-height: 1.85;
    color: #B9D2E6;
    max-width: 480px;
}

.pillars {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}
.pillars li {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(95, 227, 203, .42);
    background: rgba(95, 227, 203, .09);
    color: #A8F0E2;
    font-size: 14px;
    letter-spacing: .5px;
    transition: background .2s, border-color .2s;
}
.pillars li:hover {
    background: rgba(95, 227, 203, .2);
    border-color: rgba(95, 227, 203, .7);
}

/* ---------------- 登录区 ---------------- */
.panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}

.card {
    width: min(384px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px 28px;
    box-shadow: 0 20px 60px rgba(11, 59, 111, .09);
}

.card h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.hint {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

.alert {
    background: #FDECEC;
    color: #C0392B;
    border-left: 3px solid #E2564A;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.card label {
    display: block;
    font-size: 13px;
    color: #5A7189;
    margin-bottom: 7px;
}

.card input[type="text"],
.card input[type="password"] {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    background: var(--field);
    border-radius: 8px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color .18s, background .18s, box-shadow .18s;
}
.card input::placeholder { color: #A8B8C8; }
.card input:focus {
    border-color: var(--navy);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 59, 111, .1);
}

.pwd { position: relative; }
.pwd input { padding-right: 46px; }
.eye {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #9AAEBF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.eye:hover { color: var(--navy); background: #EEF3F9; }

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0 22px;
    font-size: 13px;
}
.chk { display: flex; align-items: center; gap: 7px; color: var(--muted); cursor: pointer; }
.chk input { width: 15px; height: 15px; accent-color: var(--navy); cursor: pointer; }
.row a { color: var(--navy); text-decoration: none; }
.row a:hover { text-decoration: underline; }

.submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--gold);
    color: #2A1C05;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background .18s, transform .18s;
}
.submit:hover { background: #E39A2B; transform: translateY(-1px); }
.submit:active { transform: translateY(0); }
.submit[disabled] { opacity: .65; cursor: not-allowed; transform: none; }

.mp {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed #E4EBF3;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mp-qr {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--field);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mp-qr img { width: 100%; height: 100%; object-fit: contain; }
.mp-text strong { display: block; font-size: 13px; color: var(--ink); font-weight: 500; }
.mp-text span { font-size: 12px; color: var(--muted); line-height: 1.6; }

.foot {
    margin-top: 22px;
    font-size: 12px;
    color: #A8B8C8;
    text-align: center;
    line-height: 1.7;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
    .brand-copy h1 { font-size: 32px; }
    .lead { font-size: 14px; }
}

@media (max-width: 1024px) {
    .shell { grid-template-columns: 1fr; }
    .brand {
        min-height: auto;
        padding: 44px 32px 48px;
        gap: 28px;
    }
    .net { right: -30%; top: 30%; width: 90%; height: 90%; opacity: .4; }
    .brand-copy h1 { font-size: 30px; }
    .panel { padding: 36px 24px 52px; }
}

@media (max-width: 640px) {
    .brand { padding: 34px 22px 38px; gap: 22px; }
    .kicker { font-size: 11px; letter-spacing: 2px; margin-bottom: 12px; }
    .brand-copy h1 { font-size: 25px; line-height: 1.4; }
    .lead { font-size: 13px; line-height: 1.75; }
    .pillars { gap: 8px; }
    .pillars li { padding: 7px 13px; font-size: 12px; }
    .card { padding: 30px 22px 24px; box-shadow: 0 12px 32px rgba(11, 59, 111, .07); }
    .card h2 { font-size: 20px; }
    .panel { padding: 28px 18px 44px; }
}

.foot-back {
    display: inline-block;
    margin-bottom: 6px;
    color: #0B3B6F;
    font-weight: 600;
    text-decoration: none;
}
.foot-back:hover { text-decoration: underline; }
.foot-copy { display: block; }
