:root {
    --ink: #1a2433;
    --navy: #12324f;
    --red: #b42318;
    --line: #d5e0ea;
    --paper: #e6eef5;
    --muted: #667588;
    --ok: #0d7a45;
    --band: #e7f3fb;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(20, 28, 40, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 28, 40, .035) 1px, transparent 1px);
    background-size: 22px 22px;
}
body.has-bg {
    background-image: linear-gradient(rgba(231, 237, 243, .92), rgba(231, 237, 243, .94)), var(--page-bg);
    background-size: cover;
    background-attachment: fixed;
}
.home { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.home-card {
    width: min(460px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: 12px;
    padding: 28px 24px 20px;
    box-shadow: 0 16px 40px rgba(20, 28, 40, .08);
    text-align: center;
}
.home-logo { width: min(100%, 320px); height: auto; }
.en { letter-spacing: .14em; color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.home-card h1 { margin: 8px 0; font-size: 28px; letter-spacing: .12em; font-weight: 650; }
.company { color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
.home-card form { display: flex; gap: 8px; }
.home-card input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 12px;
    font: inherit;
}
.home-card button, .back {
    border: 0;
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.warn { color: var(--red); font-size: 13px; }
.hits { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; }
.hits a { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.hits strong, .hits span, .hits em { display: block; }
.hits span, .hits em { color: var(--muted); font-style: normal; font-size: 12px; }
.staff, .back { display: inline-block; margin-top: 18px; font-size: 13px; }
.staff { color: var(--muted); text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sheet-page { padding: 22px 12px 36px; }
.cert {
    width: min(460px, 100%);
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 46px rgba(18, 40, 68, .12);
    border: 1px solid #fff;
}
.mast {
    background: linear-gradient(180deg, #f5f9fd 0%, #fff 72%);
    text-align: center;
    padding: 16px 16px 0;
}
.logo { width: min(100%, 340px); height: auto; display: block; margin: 0 auto; }
.legal {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .04em;
    line-height: 1.5;
}
.platform {
    margin: 12px 0 0;
    background: var(--navy);
    color: #fff;
    letter-spacing: .34em;
    font-size: 13px;
    padding: 9px 8px;
}
.preview-note { margin: 0; background: #fff6df; color: #8a5a12; text-align: center; font-size: 12px; padding: 8px; }
.auth {
    margin: 14px;
    background: linear-gradient(180deg, #f4fbf7, #e7f6ee);
    border: 1px solid #b7e0c9;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
}
.shield {
    width: 36px; height: 36px; flex: none; border-radius: 50%;
    background: var(--ok);
    box-shadow: inset 0 0 0 6px rgba(255,255,255,.28);
    position: relative;
}
.shield:after {
    content: "";
    position: absolute;
    left: 13px; top: 9px;
    width: 8px; height: 14px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(40deg);
}
.auth strong { display: block; color: #0d6840; letter-spacing: .04em; }
.auth p { margin: 4px 0 0; color: #3d6b56; font-size: 13px; }
.code-line span { font-weight: 700; color: var(--ink); }
.paper { padding: 4px 14px 16px; }
.paper h1, .paper h2 { text-align: center; margin: 8px 0; }
.paper h1 { font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 18px; font-weight: 600; line-height: 1.45; }
.paper h2 { font-size: 15px; letter-spacing: .28em; font-weight: 700; color: var(--navy); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border: 1px solid #d7e2ec; padding: 8px 8px; vertical-align: top; }
th { background: #f3f8fc; color: #4d6278; font-weight: 650; text-align: center; }
td.num { width: 40px; text-align: center; background: #f8fbfd; color: #607089; font-variant-numeric: tabular-nums; }
td.item { width: 108px; background: #f8fbfd; font-weight: 650; color: #243246; }
td.detail { line-height: 1.6; word-break: break-word; color: #243246; }
tr.band td {
    background: var(--band);
    color: var(--navy);
    text-align: center;
    letter-spacing: .28em;
    font-weight: 700;
    border-color: #cfe3f2;
}
.muted { color: #b0bac6; }
.qc, .ledger { margin: 0 14px 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.qc h3, .ledger h3 { margin: 0; background: #f7f5f2; padding: 10px 14px; font-size: 15px; letter-spacing: .12em; }
.qc-body { position: relative; padding: 16px 128px 16px 16px; min-height: 148px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; height: 36px; border-radius: 8px; font-size: 20px; font-weight: 750; letter-spacing: .12em; }
.badge.ok { background: #e7f6ee; color: var(--ok); }
.badge.bad { background: #fdecec; color: #9f1239; }
.badge.wait { background: #eef2f6; color: #3e4c63; }
.who { margin: 8px 0 0; font-size: 13px; }
.qc-text { margin-top: 8px; font-size: 13px; line-height: 1.6; color: #344256; }
.serial { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.chop {
    position: absolute;
    right: -4px;
    top: 18px;
    width: 148px;
    transform: rotate(-12deg);
    pointer-events: none;
}
.ledger dl { margin: 0; }
.ledger div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid #f0e6d8; }
.ledger dt { color: var(--muted); }
.ledger dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 650; }
.ledger div:first-child dd { color: var(--red); }
.call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 28px);
    margin: 0 14px 14px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: #141c28;
    color: #fff;
    font: inherit;
    letter-spacing: .08em;
    cursor: pointer;
}
.phone {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #fff;
    position: relative;
}
.phone:before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 8px;
    height: 8px;
    border: 2px solid #141c28;
    border-radius: 2px 2px 4px 4px;
    border-top-width: 0;
    transform: rotate(-28deg);
}
.foot, .powered { margin: 0 18px 10px; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.powered { padding-bottom: 16px; }
.mask { display: none; position: fixed; inset: 0; background: rgba(16, 22, 32, .46); align-items: flex-end; justify-content: center; }
.mask.show { display: flex; }
.dialog { width: min(480px, 100%); background: #fff; border-radius: 16px 16px 0 0; padding: 18px 18px 28px; }
.dialog h3 { margin: 0 0 8px; }
.dialog p { margin: 6px 0; line-height: 1.6; }
.dialog a { color: var(--red); font-size: 20px; font-weight: 700; text-decoration: none; }
.tip { color: var(--muted); font-size: 13px; }
.x { float: right; border: 0; background: #f2f4f7; border-radius: 99px; padding: 6px 10px; cursor: pointer; }
@media (max-width: 420px) {
    .qc-body { padding-right: 16px; padding-bottom: 108px; }
    .chop { top: auto; bottom: 0; width: 118px; }
}
@media print {
    body { background: #fff; }
    .sheet-page { padding: 0; }
    .cert { box-shadow: none; width: 100%; }
    .call, .mask, .preview-note { display: none; }
}
