@charset "utf-8";
/* 青草职聘 · 业务管理平台登录页
   纯 CSS 主视觉：无外部字体、无位图背景（唯一位图是官方 logo）。
   色值口径与对比度见 docs/需求变更/登录页改版/02-设计方案.md 第四节。 */

:root {
    --qc-green: #00bc4c;
    --qc-green-deep: #0a7f3f;
    --qc-green-dark: #04421f;
    --qc-accent: #f5fb47;
    --qc-ink: #10261a;
    --qc-muted: #4a5d51;
    --qc-well: #f4f8f5;
    --qc-line: #e2ebe5;
    --qc-radius: 20px;
    --qc-card-max: 452px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.qc-login {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: var(--qc-ink);
    background: var(--qc-green-dark);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- 背景装饰层（纯 CSS） ---------- */

.qc-bg {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(900px 560px at 10% 4%, rgba(0, 224, 90, 0.30), rgba(0, 224, 90, 0) 62%),
        radial-gradient(760px 520px at 92% 96%, rgba(245, 251, 71, 0.16), rgba(245, 251, 71, 0) 64%),
        linear-gradient(135deg, var(--qc-green-deep) 0%, #06602f 46%, var(--qc-green-dark) 100%);
}

.qc-bg::before,
.qc-bg::after {
    content: "";
    position: absolute;
    top: -25%; right: -25%; bottom: -25%; left: -25%;
    pointer-events: none;
}

.qc-bg::before {
    background-image: repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.055) 0, rgba(255, 255, 255, 0.055) 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 78px);
}

.qc-bg::after {
    background-image: repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.045) 0, rgba(255, 255, 255, 0.045) 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 78px);
}

/* ---------- 布局骨架 ---------- */

.qc-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    max-width: 1160px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 56px 32px 64px 32px;
}

/* ---------- 左侧品牌区 ---------- */

.qc-brand { color: #ffffff; max-width: 560px; }

.qc-logo-plate {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(2, 34, 18, 0.28);
}

/* 产品字标：白底牌子 + 深品牌绿文字。替代旧的公司 logo 位图，任意分辨率都清晰 */
.qc-logo-word {
    display: block;
    padding-left: 4px;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 4px;
    white-space: nowrap;
    color: var(--qc-green-deep);
}

.qc-title {
    position: relative;
    margin: 30px 0 0 0;
    font-size: clamp(40px, 4.4vw, 62px);
    line-height: 1.06;
    letter-spacing: 3px;
    font-weight: 700;
    text-shadow: 0 6px 26px rgba(2, 34, 18, 0.28);
}

.qc-title-line {
    display: block;
    width: 64px;
    height: 6px;
    margin: 18px 0 0 2px;
    border-radius: 6px;
    background: var(--qc-accent);
}

.qc-subtitle {
    margin: 18px 0 0 0;
    font-size: 17px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.92);
}

.qc-slogan {
    margin: 30px 0 0 0;
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.85;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: #ffffff;
}

.qc-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin: 30px 0 0 0;
    padding: 0;
    list-style: none;
}

.qc-features li {
    display: flex;
    align-items: center;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.qc-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--qc-accent);
    box-shadow: 0 0 0 4px rgba(245, 251, 71, 0.18);
}

.qc-brand-foot {
    margin: 26px 0 0 0;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.72);
}

/* ---------- 右侧登录卡片 ---------- */

.qc-card {
    width: 100%;
    max-width: var(--qc-card-max);
    margin: 0 0 0 auto;
    padding: 30px 28px 24px 28px;
    border-radius: var(--qc-radius);
    background: #ffffff;
    border: 1px solid rgba(4, 66, 31, 0.06);
    box-shadow: 0 30px 70px rgba(2, 34, 18, 0.30), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
    color: var(--qc-ink);
    text-align: center;
}

.qc-card-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.4;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--qc-ink);
}

.qc-card-desc {
    margin: 8px 0 0 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--qc-muted);
}

/* 二维码凹槽：让官方白色面板看起来像「屏幕」，而不是第二张卡 */
.qc-qr {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 412px;
    margin: 20px 0 0 0;
    padding: 6px;
    border-radius: 16px;
    background: var(--qc-well);
    border: 1px solid var(--qc-line);
    overflow: hidden;
}

#qcQrMount {
    position: relative;
    z-index: 2;
    width: 300px;
    height: 400px;
    overflow: hidden;
}

#qcQrMount iframe {
    display: block;
    width: 300px;
    height: 400px;
    border: 0;
    background: transparent;
}

/* 加载骨架 */
.qc-qr-loading {
    position: absolute;
    top: 50%; left: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 400px;
    margin: -200px 0 0 -150px;
    border-radius: 12px;
    background: #ffffff;
}

.qc-qr-loading span {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 8px;
    border-radius: 12px;
    background: linear-gradient(90deg, #eef4ef 0%, #e2ece5 50%, #eef4ef 100%);
    background-size: 200% 100%;
    animation: qc-shimmer 1.4s ease-in-out infinite;
}

.qc-qr-loading span:nth-child(2) { animation-delay: 0.16s; }
.qc-qr-loading span:nth-child(3) { animation-delay: 0.32s; }

.qc-qr.is-ready .qc-qr-loading,
.qc-qr.is-degraded .qc-qr-loading,
.qc-qr.is-failed .qc-qr-loading { display: none; }

@keyframes qc-shimmer {
    0% { background-position: 0% 0; }
    100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .qc-qr-loading span { animation: none; }
}

/* 降级态 */
.qc-qr-fallback { display: none; padding: 18px 8px; }
.qc-qr.is-failed { min-height: 0; }
.qc-qr.is-failed .qc-qr-fallback { display: block; }
.qc-qr.is-failed #qcQrMount { display: none; }

.qc-fallback-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 700;
    color: var(--qc-ink);
}

.qc-fallback-text {
    margin: 6px 0 16px 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--qc-muted);
}

/* 降级提示（SDK 加载失败但兜底 iframe 已挂载） */
.qc-qr-degraded { display: none; }

.qc-qr.is-degraded + .qc-qr-degraded {
    display: block;
    margin: 10px 0 0 0;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.65;
    text-align: left;
    color: #7a4b00;
    background: #fff8e6;
    border: 1px solid #f0dfae;
}

/* 按钮 */
.qc-btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.2;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.qc-btn-primary {
    color: #ffffff;
    background: var(--qc-green-deep);
    border: 1px solid var(--qc-green-deep);
    box-shadow: 0 8px 20px rgba(10, 127, 63, 0.28);
}

.qc-btn-primary:hover { background: #06672f; }

.qc-btn-ghost {
    margin-left: 8px;
    color: var(--qc-green-deep);
    background: #ffffff;
    border: 1px solid var(--qc-line);
}

.qc-btn-ghost:hover { background: #f2f7f3; }

.qc-btn:active { transform: translateY(1px); }

.qc-hint {
    margin: 16px 0 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--qc-muted);
}

.qc-alt {
    margin: 10px 0 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--qc-muted);
}

.qc-alt a {
    color: var(--qc-green-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.qc-card-foot {
    margin: 18px 0 0 0;
    padding-top: 16px;
    border-top: 1px dashed var(--qc-line);
    font-size: 12px;
    line-height: 1.6;
    color: #6b7c71;
}

/* ---------- 异常态卡片（form1.InnerHtml 注入） ---------- */

.qc-msg { padding: 18px 6px 4px 6px; }

.qc-msg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin-bottom: 16px;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    background: var(--qc-green-deep);
}

.qc-msg-title {
    margin: 0;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--qc-ink);
}

.qc-msg-text {
    margin: 10px 0 0 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--qc-muted);
    word-break: break-word;
}

.qc-msg-action {
    display: inline-block;
    margin-top: 22px;
    padding: 11px 24px;
    border-radius: 999px;
    font-size: 14px;
    color: #ffffff;
    background: var(--qc-green-deep);
    text-decoration: none;
}

.qc-msg-action:hover { background: #06672f; }

/* ---------- 页脚 ---------- */

.qc-page-foot {
    position: relative;
    z-index: 1;
    padding: 0 0 26px 0;
    margin-top: -26px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- 键盘焦点 ---------- */

a:focus-visible,
button:focus-visible,
.qc-btn:focus-visible {
    outline: 2px solid var(--qc-green-deep);
    outline-offset: 3px;
}

.qc-brand a:focus-visible { outline-color: var(--qc-accent); }

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
    .qc-shell {
        grid-template-columns: 1fr;
        gap: 26px;
        max-width: 560px;
        padding: 34px 20px 40px 20px;
    }

    .qc-brand { max-width: none; text-align: center; }

    .qc-title { margin-top: 20px; font-size: 38px; }

    .qc-title-line { margin: 14px auto 0 auto; }

    .qc-subtitle { margin-top: 12px; font-size: 15px; }

    .qc-slogan { margin-top: 16px; font-size: 16px; line-height: 1.7; }

    .qc-features { display: none; }

    .qc-brand-foot { display: none; }

    .qc-card { margin: 0 auto; padding: 26px 20px 20px 20px; }

    .qc-page-foot { margin-top: 0; padding-bottom: 22px; }
}

@media (max-width: 420px) {
    .qc-card { padding: 22px 14px 18px 14px; }

    .qc-qr { min-height: 392px; }

    .qc-card-title { font-size: 19px; }
}

@media (max-width: 380px) {
    .qc-card { padding: 22px 10px 18px 10px; }

    .qc-qr { padding: 4px; min-height: 342px; }

    #qcQrMount { width: 250px; height: 334px; }

    #qcQrMount iframe {
        width: 300px;
        height: 400px;
        transform: scale(0.8333);
        transform-origin: top left;
    }
}

@media (max-height: 720px) and (min-width: 961px) {
    .qc-shell { padding-top: 32px; padding-bottom: 32px; }
    .qc-qr { min-height: 396px; }
}
