:root {
    --green-950: #163d2c;
    --green-800: #246343;
    --green-700: #2f8050;
    --green-500: #65ad6e;
    --green-100: #eaf6e9;
    --gold-700: #9b6b17;
    --gold-500: #d9a83f;
    --gold-100: #fff6dd;
    --ink: #1e2d27;
    --muted: #6d7a73;
    --line: #dce8dd;
    --paper: #fbfdf9;
    --shadow: 0 18px 50px rgba(31, 83, 48, .12);
}

* { box-sizing: border-box; min-width: 0; }
html, body { max-width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(217, 168, 63, .16), transparent 28rem),
        linear-gradient(145deg, #f7fcf4 0%, #eef8ec 48%, #fffaf0 100%);
    font: 15px/1.7 "Microsoft YaHei", "PingFang SC", sans-serif;
}
a { color: var(--green-800); text-decoration: none; }
a:hover { color: var(--gold-700); }
.nowrap { white-space: nowrap; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--green-950); }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center;
    color: #fff; background: linear-gradient(145deg, var(--green-700), var(--green-950));
    border-radius: 15px 15px 15px 5px; box-shadow: 0 8px 22px rgba(36, 99, 67, .22);
}
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--green-800); font-weight: 700; }
.hero, .panel {
    background: rgba(255,255,255,.82); border: 1px solid rgba(220,232,221,.95);
    border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.hero { padding: clamp(28px, 6vw, 72px); min-height: 430px; overflow: hidden; position: relative; }
.hero:after {
    content: ""; position: absolute; width: 340px; height: 340px; right: -100px; bottom: -130px;
    border-radius: 50%; background: linear-gradient(145deg, rgba(217,168,63,.25), rgba(101,173,110,.15));
    pointer-events: none;
}
.eyebrow { color: var(--gold-700); letter-spacing: .08em; font-weight: 800; font-size: 12px; }
h1, h2, h3 { line-height: 1.25; color: var(--green-950); }
h1 { font-size: clamp(34px, 6vw, 64px); max-width: 720px; margin: 14px 0; }
h2 { font-size: 30px; margin: 0 0 10px; }
.hero p { max-width: 620px; color: var(--muted); font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; position: relative; z-index: 2; }
.btn {
    border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; border-radius: 13px; padding: 12px 18px; font: inherit; font-weight: 800;
}
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--green-700), var(--green-950)); }
.btn-gold { color: #583c08; background: linear-gradient(135deg, #f1cb6d, var(--gold-500)); }
.btn-light { color: var(--green-800); background: var(--green-100); }
.btn-danger { color: #fff; background: #bb5a45; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section { padding: 30px 0; }
.panel { padding: 24px; }
.metric { padding: 20px; border-radius: 20px; background: linear-gradient(145deg, #fff, var(--green-100)); border: 1px solid var(--line); }
.metric strong { display: block; font-size: 32px; color: var(--green-950); }
.metric span { color: var(--muted); }
.form-row { display: grid; gap: 7px; margin: 14px 0; }
.scan-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.location-actions { grid-template-columns: minmax(0, 1fr) repeat(3, auto); }
label { color: var(--green-950); font-weight: 800; }
.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px;
    color: var(--green-800);
    font-weight: 800;
}
.check-line input {
    width: 18px;
    height: 18px;
    padding: 0;
    accent-color: var(--green-700);
}
input, select {
    width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink);
    border-radius: 12px; padding: 12px 13px; font: inherit; font-size: 16px; outline: none;
}
input:focus, select:focus { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(101,173,110,.14); }
.notice { padding: 13px 16px; border-radius: 14px; background: var(--gold-100); color: #74500d; margin: 14px 0; }
.success { background: var(--green-100); color: var(--green-950); }
.error { background: #fff0ec; color: #8f3a2a; }
.search-results {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}
.search-result {
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: rgba(255,255,255,.92);
    text-align: left;
    cursor: pointer;
}
.search-result:hover {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(101,173,110,.12);
}
.search-result strong { color: var(--green-950); }
.search-result span { color: var(--muted); font-size: 13px; }
.search-result code { color: var(--gold-700); font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.map-admin-grid {
    align-items: start;
}
.map-crop-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 10 / 7;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(36,99,67,.18), rgba(217,168,63,.14)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.42) 0 10px, rgba(234,246,233,.5) 10px 20px);
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.map-crop-frame:active {
    cursor: grabbing;
}
.map-crop-frame img {
    position: absolute;
    left: 0;
    top: 0;
    max-width: none;
    transform-origin: 0 0;
    display: none;
    pointer-events: none;
}
.map-crop-frame.has-image img {
    display: block;
}
.map-crop-frame span {
    color: var(--green-800);
    font-weight: 800;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.76);
}
.map-crop-frame.has-image span {
    display: none;
}
.map-grid-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 10 / 7;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    border-radius: 18px;
    border: 1px solid var(--line);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}
.map-grid-preview button {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,.44);
    background: rgba(22,61,44,.12);
    color: rgba(255,255,255,.84);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.map-grid-preview button:hover,
.map-grid-preview button:focus {
    background: rgba(217,168,63,.42);
    color: #fff;
    outline: 0;
}
.map-direct-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 10 / 7;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: crosshair;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.42);
}
.map-direct-stage:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 5% 7.142857%;
}
.map-admin-lines {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.map-admin-lines path {
    fill: none;
    stroke: rgba(255, 224, 138, .92);
    stroke-width: .8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 3px 4px rgba(22,61,44,.25));
}
.map-admin-lines .line-2 { stroke: rgba(105, 191, 121, .95); }
.map-admin-lines .line-3 { stroke: rgba(255, 255, 255, .88); }
.map-admin-pin {
    position: absolute;
    z-index: 3;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 3px solid #fff7d0;
    background: linear-gradient(145deg, #f3c85d, #2f8050);
    box-shadow: 0 0 0 7px rgba(217,168,63,.18), 0 8px 18px rgba(22,61,44,.22);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
}
.map-admin-pin span {
    line-height: 1;
}
.map-admin-pin.type-sale,
.map-admin-pin.type-current {
    background: linear-gradient(145deg, #6fd681, #1f6744);
}
.map-admin-pin.disabled {
    opacity: .42;
}
.map-admin-pin.draft-pin {
    z-index: 5;
    background: linear-gradient(145deg, #fff0b0, #d9a83f);
    color: #4e380c;
}
.map-point-form .actions {
    margin-top: 0;
}
.table-wrap { overflow-x: auto; max-width: 100%; }
.wide-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-wide-table {
    min-width: 1180px;
    table-layout: fixed;
}
.admin-wide-table th,
.admin-wide-table td {
    vertical-align: top;
    overflow-wrap: anywhere;
}
.logs-table {
    min-width: 1480px;
}
.logs-table .select-col {
    width: 44px;
    text-align: center;
}
.logs-table .select-col input {
    width: 18px;
    height: 18px;
    padding: 0;
    accent-color: var(--green-700);
}
.logs-table .time-cell {
    width: 120px;
}
.logs-table .address-cell {
    width: 220px;
    line-height: 1.55;
}
.log-filter-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr)) auto auto;
    gap: 10px;
    align-items: end;
    margin: 16px 0;
}
.log-filter-bar .form-row {
    margin: 0;
}
.bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 12px 0;
}
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--green-800); font-size: 12px; letter-spacing: .04em; }
.verify-badge { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-weight: 800; }
.verify-badge.warn { background: var(--gold-100); color: var(--gold-700); }
.code-box { font-family: Consolas, monospace; word-break: break-all; color: var(--green-950); }
.history-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    margin: 16px 0;
}
.inline-form { margin: 0; }
.inline-form .btn { padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.captcha-row { display: grid; grid-template-columns: 1fr 120px 70px; gap: 8px; align-items: center; }
.captcha-row img { width: 120px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.muted { color: var(--muted); }
.footer { padding: 30px 0 48px; color: var(--muted); font-size: 13px; }
.icp-link { color: inherit; display: inline-block; margin-top: 6px; }
.qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.qr-card {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    text-align: center;
    break-inside: avoid;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
.qr-print-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 8px auto 0;
    transform: none;
    flex: 0 0 auto;
}
.qr-card canvas, .qr-card img { margin: 0 auto; transform: none; }
.qr-logo-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 5px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(22, 61, 44, .18);
    pointer-events: none;
}
.qr-logo { width: 42px; height: 42px; object-fit: contain; display: block; }
.qr-caption {
    display: block;
    position: static !important;
    margin-top: 8px;
    color: var(--green-950);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}
.qr-card code { display: block; font-size: 11px; word-break: break-all; }
.side-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.side-nav { position: sticky; top: 18px; }
.side-nav a { display: block; padding: 11px 13px; margin: 4px 0; border-radius: 11px; font-weight: 700; }
.side-nav a:hover, .side-nav a.active { background: var(--green-100); color: var(--green-950); }
@media (max-width: 780px) {
    body { font-size: 14px; }
    .shell { width: min(100% - 20px, 480px); }
    .topbar { padding: 14px 0; }
    .brand { gap: 9px; }
    .brand-mark { width: 36px; height: 36px; border-radius: 13px 13px 13px 5px; }
    .brand small { font-size: 10px; }
    .nav { display: none; }
    .grid-3, .grid-2, .qr-grid, .side-layout { grid-template-columns: 1fr; }
    .section { padding: 18px 0; }
    .panel { padding: 16px; border-radius: 20px; }
    h2 { font-size: 24px; }
    .hero { min-height: auto; }
    .side-nav { position: static; }
    .side-nav a { padding: 10px 11px; }
    .captcha-row { grid-template-columns: 1fr 120px; }
    .captcha-row .btn { grid-column: 2; }
    .scan-row { grid-template-columns: 1fr; }
    .location-actions { grid-template-columns: 1fr; }
    .history-search { grid-template-columns: 1fr; }
    .scan-row .btn { width: 100%; }
    .btn { width: 100%; padding: 11px 12px; }
    .actions { display: grid; }
    .metric { padding: 14px; }
    .metric strong { font-size: 24px; overflow-wrap: anywhere; }
    .table-wrap { overflow: visible; }
    table { min-width: 0; width: 100%; display: block; }
    thead, tbody, tr, th, td { display: block; width: 100%; }
    tbody, tr { width: 100%; }
    tr {
        margin: 0 0 12px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: rgba(255,255,255,.72);
    }
    th { display: none; }
    td {
        padding: 7px 0;
        border-bottom: 1px solid rgba(220,232,221,.72);
        overflow-wrap: anywhere;
    }
    td:last-child { border-bottom: 0; }
    .qr-card { padding: 14px; }
    .qr-card canvas, .qr-card img { max-width: 100%; height: auto; }
    .qr-card .qr-logo { width: 42px; height: 42px; }
    .wide-scroll {
        overflow-x: auto;
    }
    .wide-scroll .admin-wide-table {
        display: table;
        width: 100%;
        min-width: 1180px;
    }
    .wide-scroll .logs-table {
        min-width: 1480px;
    }
    .wide-scroll .admin-wide-table tbody,
    .wide-scroll .admin-wide-table tr {
        display: table-row;
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    .wide-scroll .admin-wide-table th,
    .wide-scroll .admin-wide-table td {
        display: table-cell;
        width: auto;
        padding: 11px 10px;
        border-bottom: 1px solid var(--line);
    }
    .wide-scroll .admin-wide-table th {
        color: var(--green-800);
        font-size: 12px;
        letter-spacing: .04em;
    }
    .log-filter-bar {
        grid-template-columns: 1fr 1fr;
    }
    .log-filter-bar .btn {
        width: 100%;
    }
}
@media print {
    @page { size: 48mm 48mm; margin: 0; }
    html, body {
        width: 100%;
        margin: 0;
        background: #fff;
    }
    .topbar,
    .side-nav,
    .panel.no-print,
    .section.no-print,
    .footer {
        display: none !important;
    }
    .shell,
    .side-layout,
    .side-layout main {
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .print-area {
        display: block !important;
        position: static;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .print-area .qr-grid {
        display: block;
    }
    .print-area .qr-card {
        width: 48mm;
        height: 48mm;
        margin: 0;
        padding: 2mm;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        page-break-after: always;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .print-area .qr-print-wrap {
        width: 38mm;
        height: 38mm;
        margin: 0;
    }
    .print-area .qr-card canvas,
    .print-area .qr-card img:not(.qr-logo) {
        width: 38mm !important;
        height: 38mm !important;
    }
    .print-area .qr-logo-box {
        width: 13mm;
        height: 13mm;
        padding: 1mm;
        border-radius: 2mm;
        background: #fff;
        box-shadow: 0 0 0 .5mm #fff;
    }
    .print-area .qr-logo {
        width: 11mm !important;
        height: 11mm !important;
    }
    .print-area .qr-caption {
        margin-top: 1mm;
        color: #163d2c;
        font-size: 9pt;
        font-weight: 900;
        line-height: 1.1;
        white-space: nowrap;
    }
    .topbar,
    .no-print,
    .side-nav,
    .footer {
        display: none !important;
    }
}

/* The customer page is a focused, mobile-first WeChat experience. */
.verify-page {
    min-height: 100vh;
    color: #f8fff3;
    background:
        radial-gradient(circle at 88% 5%, rgba(232, 190, 83, .28), transparent 15rem),
        radial-gradient(circle at 3% 82%, rgba(101, 173, 110, .26), transparent 17rem),
        linear-gradient(155deg, #123b2a 0%, #1f6744 58%, #7c5a1b 140%);
}
.verify-page .shell { width: min(540px, calc(100% - 28px)); }
.verify-page .topbar { padding: 20px 0 14px; }
.verify-page .brand { color: #fff; }
.verify-page .brand small { color: rgba(248, 255, 243, .72); }
.verify-page .brand-mark {
    color: #4e380c;
    background: linear-gradient(145deg, #ffe59a, #d9a83f);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.customer-banners {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    margin: 0 0 16px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.1);
    box-shadow: 0 16px 42px rgba(0,0,0,.16);
}
.bottom-banners {
    margin: 16px 0 0;
}
.customer-banner {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
}
.customer-banner.active {
    opacity: 1;
    pointer-events: auto;
}
.customer-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 9px;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.banner-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.42);
}
.banner-dots span.active { width: 18px; background: #f1cb6d; }
.verify-page .verify-card {
    padding: 26px 22px 22px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.2);
    background:
        linear-gradient(155deg, rgba(255,255,255,.18), rgba(255,255,255,.075)),
        radial-gradient(circle at 18% 0%, rgba(255,231,151,.13), transparent 15rem);
    box-shadow: 0 22px 60px rgba(0,0,0,.18);
    backdrop-filter: blur(18px) saturate(125%);
}
.verify-page .verify-card.is-verified {
    position: relative;
    padding: 18px 18px 20px;
    overflow: hidden;
    background:
        linear-gradient(148deg, rgba(255,255,255,.22), rgba(255,255,255,.07) 44%, rgba(255,255,255,.12)),
        radial-gradient(ellipse at 50% -8%, rgba(255,255,255,.26), transparent 12rem),
        radial-gradient(ellipse at 44% 18%, rgba(103,231,214,.18), transparent 20rem);
    border: 1px solid rgba(237,255,247,.32);
    box-shadow:
        0 34px 86px rgba(0,0,0,.31),
        inset 0 1px 0 rgba(255,255,255,.56),
        inset 1px 0 0 rgba(255,255,255,.18),
        inset -1px 0 0 rgba(255,255,255,.08),
        inset 0 -1px 0 rgba(255,255,255,.1);
    backdrop-filter: blur(24px) saturate(145%);
}
.verify-page .verify-card.is-verified:before {
    content: none;
}
.verify-page .verify-card.is-verified:after {
    content: none;
}
.verify-page h2, .verify-page h3, .verify-page label { color: #fffbe9; }
.verify-page h2 { font-size: clamp(28px, 8vw, 38px); margin-top: 8px; }
.verify-page .eyebrow { color: #f4cc70; }
.verify-page .muted { color: rgba(248,255,243,.72); }
.verify-page input, .verify-page select {
    color: #173d2c;
    background: rgba(255,255,255,.94);
    border-color: rgba(255,255,255,.65);
}
.verify-page input::placeholder { color: #748078; }
.verify-page .btn-primary {
    color: #fffbe9;
    background: linear-gradient(135deg, #4cac6a, #185236);
    box-shadow: 0 10px 22px rgba(6, 36, 24, .24);
}
.verify-page .btn-gold {
    color: #4e380c;
    background: linear-gradient(135deg, #ffe59a, #d9a83f);
}
.verify-page .btn-light {
    color: #fffbe9;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.25);
}
.verify-page .notice { color: #553b0b; background: rgba(255,234,165,.94); }
.verify-page .notice.success { color: #f3fff0; background: rgba(60,139,80,.72); }
.verify-page .notice.error { color: #fff3ee; background: rgba(151,65,48,.78); }
.verify-page .metric {
    color: #fffbe9;
    background: rgba(255,255,255,.11);
    border-color: rgba(255,255,255,.19);
}
.verify-page .metric strong, .verify-page .metric span { color: inherit; }
.verify-page .panel {
    background: rgba(255,255,255,.11);
    border-color: rgba(255,255,255,.18);
    box-shadow: none;
}
.verify-page .info-block {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.1);
}
.trace-map {
    margin-top: 0;
    padding: 0;
    border-radius: 24px;
    border: 0;
    background: transparent;
}
.verify-page .trace-map {
    padding: 0;
    border: 0;
    background: transparent;
}
.trace-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.trace-map-head h3 { margin: 4px 0 0; }
.trace-region-map {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.16);
    background:
        linear-gradient(145deg, rgba(7,45,29,.82), rgba(48,110,62,.56)),
        radial-gradient(circle at 82% 20%, rgba(241,203,109,.18), transparent 80px);
}
.trace-region-map.map-mode {
    display: block;
    padding: 10px;
}
.trace-region-map.route-mode {
    display: block;
    padding: 12px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 74%, rgba(217,168,63,.18), transparent 80px),
        radial-gradient(circle at 86% 24%, rgba(110,221,138,.16), transparent 90px),
        linear-gradient(145deg, rgba(7,45,29,.86), rgba(48,110,62,.55));
}
.trace-map-stage {
    position: relative;
    width: 100%;
    margin: 0;
    aspect-ratio: 10 / 8.65;
    padding: 18px;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    border-radius: 26px;
    border: 1px solid rgba(207,244,194,.5);
    isolation: isolate;
    background:
        linear-gradient(145deg, rgba(206,244,193,.28), rgba(21,90,54,.48)),
        rgba(17,82,51,.38);
    box-shadow:
        inset 0 1px 0 rgba(239,255,224,.58),
        inset 0 -1px 0 rgba(0,35,22,.34),
        0 18px 42px rgba(0,20,14,.18);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.trace-map-stage:before {
    content: none;
}
.trace-aperture-viewport {
    position: absolute;
    inset: 18px;
    z-index: 4;
    overflow: hidden;
    border-radius: 22px;
    background: transparent;
    box-shadow:
        inset 0 5px 13px -8px rgba(255,255,225,.72),
        inset 0 -7px 16px -8px rgba(0,24,14,.62),
        inset 7px 0 15px -8px rgba(0,24,14,.48),
        inset -7px 0 15px -8px rgba(255,255,255,.34);
}
.trace-aperture-viewport:after {
    content: none;
}
.trace-aperture-viewport:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 7;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
        inset 0 2px 8px rgba(255,255,235,.34),
        inset 0 -3px 10px rgba(0,24,14,.4),
        inset 3px 0 9px rgba(0,24,14,.28),
        inset -3px 0 9px rgba(255,255,255,.22);
}
.trace-globe-wrap {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    overflow: visible;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    will-change: transform;
    background:
        transparent;
    border: 0;
    box-shadow: none;
    transition: transform .035s linear;
}
.trace-globe-wrap:before {
    content: none;
}
.trace-globe-wrap:after {
    content: none;
}
.trace-map-canvas {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0;
    overflow: hidden;
    opacity: 1;
    mix-blend-mode: normal;
}
.trace-route-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.trace-pin {
    position: absolute;
    z-index: 5;
    width: 34px;
    height: 42px;
    transform: translate(-50%, -50%);
    display: block;
    padding: 0;
    color: #fff8df;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 18, 16, .68);
}
.trace-pin span {
    position: relative;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    border-radius: 50% 50% 50% 10px;
    transform: none;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255,248,211,.95);
    background: radial-gradient(circle at 36% 32%, #fff8d6, #f0c75d 46%, #9b6b17 100%);
    color: #23422e;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow:
        0 0 0 4px rgba(255,224,138,.16),
        0 0 16px rgba(255,224,138,.44),
        0 7px 14px rgba(0,22,18,.26);
    transform: rotate(45deg);
}
.trace-pin span:before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    box-shadow: inset 0 2px 5px rgba(0,0,0,.12);
}
.trace-pin span {
    font-size: 0;
}
.trace-pin span b {
    position: relative;
    z-index: 1;
    display: block;
    color: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    transform: rotate(-45deg);
}
.trace-pin.sale span {
    background: radial-gradient(circle at 36% 32%, #eaffdd, #72df88 46%, #1f6744 100%);
    color: #103924;
    box-shadow:
        0 0 0 4px rgba(114,223,136,.18),
        0 0 17px rgba(114,223,136,.48),
        0 7px 14px rgba(0,22,18,.26);
}
.trace-pin strong {
    display: none;
}
.trace-pin small {
    display: none;
}
.trace-flow-panel {
    position: relative;
    margin-top: 14px;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.16);
    background:
        linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055)),
        radial-gradient(circle at 10% 12%, rgba(241,203,109,.1), transparent 9rem);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
}
.trace-flow-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.trace-flow-head h3 {
    margin: 3px 0 0;
}
.trace-flow-head .verify-badge {
    flex: 0 0 auto;
    color: #4e380c;
    background: linear-gradient(135deg, rgba(255,240,176,.94), rgba(217,168,63,.9));
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.trace-china-svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 260px;
}
.trace-route-svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 14 / 9;
    min-height: 220px;
    border-radius: 18px;
}
.trace-china-svg polygon {
    transition: filter .2s ease, opacity .2s ease;
}
.region-tile {
    min-height: 72px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 10px;
    border-radius: 15px;
    color: rgba(248,255,243,.62);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
}
.region-tile strong {
    color: rgba(255,251,233,.82);
    font-size: 15px;
}
.region-tile span {
    color: rgba(248,255,243,.72);
    font-size: 11px;
    line-height: 1.25;
}
.region-tile.is-origin {
    background: linear-gradient(145deg, rgba(241,203,109,.34), rgba(255,255,255,.08));
    border-color: rgba(241,203,109,.72);
    box-shadow: 0 0 0 2px rgba(241,203,109,.08), 0 12px 26px rgba(0,0,0,.12);
}
.region-tile.is-origin strong,
.region-tile.is-sale strong {
    color: #fffbe9;
}
.region-tile.is-origin:before,
.region-tile.is-sale:before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 3px solid #fff8df;
    background: #f1cb6d;
    box-shadow: 0 0 0 6px rgba(241,203,109,.16);
}
.region-tile.is-sale {
    background: linear-gradient(145deg, rgba(79,178,106,.42), rgba(255,255,255,.08));
    border-color: rgba(118,221,145,.68);
}
.region-tile.is-sale:before {
    background: #6edd8a;
    box-shadow: 0 0 0 6px rgba(110,221,138,.15);
}
.map-legend {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    color: rgba(248,255,243,.76);
    font-size: 12px;
    margin-top: 8px;
}
.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.map-legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}
.origin-dot { background: #f1cb6d; }
.sale-dot { background: #6edd8a; }
.china-map-card {
    position: relative;
    height: 210px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.16);
    background:
        radial-gradient(circle at 22% 72%, rgba(241,203,109,.18), transparent 52px),
        radial-gradient(circle at 74% 28%, rgba(255,255,255,.16), transparent 70px),
        linear-gradient(145deg, rgba(9,55,35,.72), rgba(68,122,73,.42));
}
.china-map-shape {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 250px;
    height: 150px;
    transform: translate(-50%, -50%) rotate(-8deg);
    border-radius: 45% 55% 50% 42% / 42% 46% 54% 58%;
    background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 18px 50px rgba(0,0,0,.12);
}
.china-map-shape:before {
    content: "";
    position: absolute;
    right: 12px;
    bottom: -16px;
    width: 78px;
    height: 46px;
    transform: rotate(20deg);
    border-radius: 45% 55% 52% 48%;
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.map-route {
    position: absolute;
    left: 28%;
    top: 53%;
    width: 47%;
    height: 3px;
    transform: rotate(-15deg);
    border-radius: 999px;
    background: linear-gradient(90deg, #f1cb6d, rgba(241,203,109,.15));
    box-shadow: 0 0 16px rgba(241,203,109,.42);
}
.map-route:after {
    content: "";
    position: absolute;
    right: -3px;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%) rotate(45deg);
    border-top: 3px solid #f1cb6d;
    border-right: 3px solid #f1cb6d;
}
.map-point {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 2px;
    min-width: 92px;
    color: #fffbe9;
}
.map-point span {
    width: 14px;
    height: 14px;
    border: 3px solid #fff8df;
    border-radius: 999px;
    background: #f1cb6d;
    box-shadow: 0 0 0 7px rgba(241,203,109,.16);
}
.map-point strong { font-size: 14px; line-height: 1.25; }
.map-point small { color: rgba(248,255,243,.68); }
.map-origin { left: 20%; top: 58%; }
.map-destination { right: 13%; top: 32%; align-items: end; text-align: right; }
.map-destination span { justify-self: end; }
.trace-steps {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.trace-steps div {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
}
.trace-steps span {
    grid-row: span 2;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #4e380c;
    background: linear-gradient(135deg, #fff0b0, #d9a83f);
    font-weight: 900;
    font-size: 12px;
}
.trace-steps strong { color: #fffbe9; line-height: 1.2; }
.trace-steps small { color: rgba(248,255,243,.7); }
.flow-line {
    position: relative;
    display: grid;
    gap: 0;
    margin-top: 10px;
    padding-left: 4px;
}
.flow-line:before {
    content: "";
    position: absolute;
    left: 21px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background: linear-gradient(180deg, #f1cb6d, rgba(241,203,109,.15));
}
.flow-node {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 10px 0;
    align-items: start;
}
.flow-node > span {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #4e380c;
    background: linear-gradient(135deg, #fff0b0, #d9a83f);
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0,0,0,.16);
}
.flow-node strong {
    display: block;
    color: #fffbe9;
    line-height: 1.3;
}
.flow-node small {
    display: block;
    margin-top: 3px;
    color: rgba(248,255,243,.7);
    line-height: 1.45;
}
.sale-location {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.1);
}
.sale-location h3 { margin: 4px 0 8px; }
.sale-location p { margin: 4px 0; }
.sale-location .btn { white-space: nowrap; }
.product-summary {
    margin-top: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.1);
}
.product-summary h3 {
    margin: 4px 0 12px;
}
.product-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.product-summary dl div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
}
.product-summary dt {
    color: rgba(248,255,243,.68);
    font-size: 12px;
}
.product-summary dd {
    margin: 3px 0 0;
    color: #fffbe9;
    font-weight: 900;
    overflow-wrap: anywhere;
}
.product-summary p {
    margin: 12px 0 0;
}
.verify-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.verify-form-grid .form-row { margin-top: 0; }
.verify-form-grid .captcha-row { grid-template-columns: minmax(0, 1fr) 92px 66px; }
.verify-form-grid .captcha-row img { width: 92px; }
.verify-page .verify-scan {
    margin: 22px 0;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.17);
    background: rgba(3, 32, 21, .2);
}
.verify-page .verify-scan video {
    display: none;
    width: 100%;
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.28);
    background: #092419;
}
.camera-status {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(248,255,243,.76);
}
.verify-page .footer {
    padding: 18px 0 30px;
    color: rgba(248,255,243,.7);
    text-align: center;
}
@media (max-width: 520px) {
    .verify-page .shell { width: min(100% - 18px, 440px); }
    .verify-page .topbar { padding-top: 16px; }
    .verify-page .verify-card { padding: 22px 16px 18px; border-radius: 24px; }
    .verify-page .verify-card.is-verified { padding: 14px 14px 18px; }
    .trace-map-stage { width: 100%; margin-left: 0; margin-right: 0; aspect-ratio: 10 / 9.25; border-radius: 22px; padding: 14px; }
    .trace-aperture-viewport { inset: 14px; border-radius: 18px; }
    .trace-globe-wrap { top: 50%; }
    .trace-pin { width: 30px; height: 38px; padding: 0; }
    .trace-pin span { width: 26px; height: 26px; }
    .trace-pin span b { font-size: 12px; }
    .trace-pin strong,
    .trace-pin small { display: none; }
    .verify-page .captcha-row { grid-template-columns: 1fr 92px; }
    .verify-page .captcha-row img { width: 92px; }
    .verify-page .captcha-row .btn { grid-column: 1 / -1; width: 100%; }
    .verify-form-grid { grid-template-columns: 1fr; }
    .china-map-card { height: 180px; }
    .trace-region-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trace-region-map.map-mode { display: block; }
    .trace-region-map.route-mode { display: block; padding: 10px; }
    .trace-china-svg { min-height: 220px; }
    .trace-route-svg { min-height: 205px; }
    .region-tile { min-height: 68px; }
    .china-map-shape { width: 214px; height: 128px; }
    .map-origin { left: 12%; top: 60%; }
    .map-destination { right: 8%; top: 28%; }
    .map-route { left: 25%; width: 48%; }
    .sale-location { grid-template-columns: 1fr; }
    .sale-location .btn { width: 100%; }
    .product-summary dl { grid-template-columns: 1fr; }
    .verify-page .actions .btn, .verify-page form > .btn { width: 100%; }
}
