@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Orbitron:wght@700;900&display=swap');

:root {
    --bg: #eef2f7;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --ink: #152238;
    --muted: #5f7087;
    --line: #d7e0eb;
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --secondary: #2563eb;
    --success: #22c55e;
    --danger: #fb7185;
    --warning: #f59e0b;
    --price: #ff6565;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: "JetBrains Mono", "Microsoft YaHei", sans-serif; }
button, input, select { font: inherit; letter-spacing: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header { position: relative; z-index: 3; background: #ffffff; border-bottom: 1px solid var(--line); }
.header-inner { width: min(1180px, calc(100% - 32px)); height: 68px; margin: 0 auto; display: flex; align-items: center; gap: 18px; }
.brand { min-width: 112px; text-decoration: none; }
.brand img { width: auto; height: 42px; object-fit: contain; }
.brand-fallback { color: #ff5a66; font-family: Orbitron, sans-serif; font-size: 20px; font-weight: 800; }
.header-copy { display: flex; flex-direction: column; padding-left: 18px; border-left: 1px solid var(--line); }
.header-copy strong { color: var(--ink); font-family: Orbitron, "Microsoft YaHei", sans-serif; font-size: 13px; }
.header-copy span { margin-top: 2px; color: var(--muted); font-size: 12px; }

.page-shell { width: min(1180px, calc(100% - 32px)); position: relative; z-index: 2; margin: 30px auto 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 8px; color: #d9363e; font-size: 11px; font-weight: 750; letter-spacing: 1.4px; }
.page-heading h1 { margin: 0; color: var(--ink); font-family: Orbitron, "Microsoft YaHei", sans-serif; font-size: 28px; line-height: 1.25; letter-spacing: 0; }
.page-heading > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.result-summary { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.result-summary span { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.result-summary strong { font-size: 24px; }
.result-summary small { color: var(--muted); }

.filter-panel { display: grid; grid-template-columns: repeat(3, minmax(130px, .75fr)) repeat(2, minmax(190px, 1.15fr)); gap: 14px; padding: 18px; background: #ffffff; border: 1px solid var(--line); border-top: 2px solid var(--primary); border-radius: 8px; }
.field-group { min-width: 0; }
.field-group label { display: block; margin-bottom: 7px; color: #3d4d63; font-size: 12px; font-weight: 650; }
.field-group input, .field-group select, .size-form select { width: 100%; height: 42px; padding: 0 11px; color: var(--ink); background: #ffffff; border: 1px solid #c6d1df; border-radius: 6px; outline: 0; }
.field-group input::placeholder { color: #8190a4; }
.field-group input:focus, .field-group select:focus, .size-form select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); }
.filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; padding-top: 2px; }
.button { min-height: 40px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-weight: 650; text-decoration: none; }
.button-primary { color: #fff; background: var(--primary); box-shadow: 0 0 18px rgba(220, 38, 38, .18); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: #27364b; background: #ffffff; border-color: #b9c6d6; }
.button-secondary:hover { background: #f1f5f9; }

.list-toolbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.list-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.list-toolbar strong { color: #111827; }
.size-form { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.size-form select { width: 88px; height: 34px; }

.account-list { display: grid; gap: 12px; }
.account-row { min-height: 150px; display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 14px; background: #ffffff; border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 8px; transition: border-color .2s, background .2s; }
.account-row:hover { border-left-color: var(--primary); background: #f8fafc; }
.account-media { width: 220px; height: 122px; overflow: hidden; background: #e8eef5; border-radius: 6px; }
.account-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.account-row:hover .account-media img { transform: scale(1.025); }
.account-main { min-width: 0; }
.account-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.account-number { color: #8fa0b8; font-size: 12px; }
.badge-group { display: flex; gap: 6px; }
.badge { display: inline-flex; min-width: 54px; min-height: 24px; align-items: center; justify-content: center; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; }
.badge-success { color: #15803d; background: #ecfdf3; }
.badge-danger { color: #be123c; background: #fff1f2; }
.badge-info { color: #1d4ed8; background: #eff6ff; }
.badge-warning { color: #c2410c; background: #fff7ed; }
.account-title { margin-top: 10px; display: -webkit-box; overflow: hidden; font-size: 16px; font-weight: 680; line-height: 1.55; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.account-title:hover { color: var(--primary); }
.account-meta { display: flex; gap: 30px; margin-top: 15px; }
.account-meta span { display: flex; flex-direction: column; gap: 3px; }
.account-meta small { color: var(--muted); font-size: 11px; }
.account-meta strong { font-size: 14px; }
.detail-link { min-width: 104px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 14px; color: #fff; background: #f28c28; border: 1px solid #f28c28; border-radius: 6px; font-size: 13px; font-weight: 650; text-decoration: none; transition: background .2s, border-color .2s; }
.detail-link:hover { background: #dd7412; border-color: #dd7412; }
.detail-link span { font-size: 18px; line-height: 1; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 26px; }
.pagination a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; background: #ffffff; border: 1px solid #c6d1df; border-radius: 6px; font-size: 13px; text-decoration: none; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { color: #fff; background: var(--primary); border-color: var(--primary); }
.page-gap { color: var(--muted); }
.empty-state { padding: 64px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.empty-state strong { font-size: 17px; }
.empty-state p { margin: 8px 0 20px; color: var(--muted); font-size: 13px; }
.site-footer { position: relative; z-index: 2; padding: 24px 16px; color: #718197; background: #f7f9fc; border-top: 1px solid var(--line); font-size: 12px; text-align: center; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { text-decoration: none; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--primary); }

/* 宽屏两侧人物固定在视口中，不跟随页面滚动。 */
.page-characters { display: none; }

@media (min-width: 1580px) {
    .page-characters { display: block; }
    .character-panel {
        width: calc((100vw - 1212px) / 2);
        position: fixed;
        top: 68px;
        bottom: 0;
        z-index: 3;
        display: flex;
        align-items: flex-end;
        overflow: hidden;
        pointer-events: none;
        user-select: none;
    }
    .character-left { left: 0; justify-content: flex-end; }
    .character-right { right: 0; justify-content: flex-start; }
    .character-panel img {
        width: min(100%, 430px);
        max-height: calc(100vh - 84px);
        object-fit: contain;
        object-position: center bottom;
        filter: drop-shadow(0 12px 18px rgba(20, 25, 36, .16));
    }
}

/* 详情页 */
.breadcrumb { margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); background: #ffffff; border: 1px solid var(--line); border-top: 2px solid var(--primary); border-radius: 8px; overflow: hidden; }
.detail-visual { position: relative; min-height: 420px; background: #e8eef5; cursor: zoom-in; }
.detail-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.visual-hint { position: absolute; right: 14px; bottom: 14px; z-index: 1; padding: 6px 9px; color: #fff; background: rgba(16, 24, 40, .72); border-radius: 5px; font-size: 11px; }
.detail-purchase { padding: 28px; }
.detail-status { display: flex; gap: 7px; margin-bottom: 12px; }
.detail-title { margin: 0; color: var(--ink); font-family: Orbitron, "Microsoft YaHei", sans-serif; font-size: 21px; line-height: 1.55; letter-spacing: 0; }
.detail-number { margin: 8px 0 22px; color: var(--muted); font-size: 12px; }
.price-block { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-label { color: var(--muted); font-size: 12px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 5px; }
.current-price { color: var(--price); font-size: 30px; font-weight: 780; }
.current-price small { font-size: 13px; font-weight: 600; }
.average-price { color: var(--muted); font-size: 12px; }
.package-heading { display: flex; justify-content: space-between; margin: 20px 0 10px; font-size: 13px; font-weight: 700; }
.package-heading small { color: var(--muted); font-weight: 400; }
.package-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.package-item { min-height: 55px; padding: 8px; color: #27364b; background: #ffffff; border: 1px solid #c6d1df; border-radius: 6px; cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.package-item strong, .package-item span { display: block; }
.package-item strong { font-size: 13px; }
.package-item span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.package-item.active { color: var(--primary-dark); background: #fff1f2; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.package-item.active span { color: var(--primary); }
.detail-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 20px; }

.detail-section { margin-top: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.section-heading { margin: 0 0 18px; color: var(--ink); font-family: Orbitron, "Microsoft YaHei", sans-serif; font-size: 16px; }
.info-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.info-item { min-width: 0; padding: 16px; border-right: 1px solid var(--line); }
.info-item:last-child { border-right: 0; }
.info-item small, .info-item strong { display: block; }
.info-item small { margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.info-item strong { overflow-wrap: anywhere; font-size: 14px; }
.skin-showcase { overflow: hidden; background: #e8eef5; border-radius: 6px; cursor: zoom-in; }
.skin-showcase img { width: 100%; max-height: 680px; object-fit: contain; }
.notice-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 0; padding: 0; list-style: none; counter-reset: notice; }
.notice-list li { min-height: 80px; padding: 14px 0 14px 42px; position: relative; color: #46566d; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.75; counter-increment: notice; }
.notice-list li::before { content: counter(notice); width: 26px; height: 26px; position: absolute; top: 15px; left: 0; display: grid; place-items: center; color: var(--primary-dark); background: #ffe4e6; border-radius: 50%; font-size: 12px; font-weight: 750; }
.image-modal { display: none; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; padding: 24px; background: rgba(12, 18, 28, .9); }
.image-modal.show { display: flex; }
.image-modal img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 6px; }
.modal-close { width: 42px; height: 42px; position: absolute; top: 16px; right: 16px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; cursor: pointer; font-size: 26px; }

@media (max-width: 980px) {
    .filter-panel { grid-template-columns: repeat(3, 1fr); }
    .field-wide { grid-column: span 1; }
    .detail-hero { grid-template-columns: 1fr; }
    .detail-visual { min-height: 360px; }
    .info-grid { grid-template-columns: repeat(3, 1fr); }
    .info-item:nth-child(3) { border-right: 0; }
    .info-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
    .header-copy { display: none; }
    .page-shell { width: min(100% - 20px, 1180px); margin-top: 18px; }
    .page-heading { align-items: flex-start; }
    .page-heading h1 { font-size: 23px; }
    .result-summary { display: none; }
    .filter-panel { grid-template-columns: 1fr; padding: 14px; }
    .filter-actions { grid-column: auto; }
    .filter-actions .button { flex: 1; }
    .list-toolbar { min-height: 58px; }
    .account-row { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; min-height: 126px; padding: 10px; }
    .account-media { width: 112px; height: 104px; }
    .account-topline { align-items: flex-start; flex-direction: column; gap: 7px; }
    .account-title { margin-top: 8px; font-size: 14px; -webkit-line-clamp: 2; }
    .account-meta { gap: 18px; margin-top: 10px; }
    .detail-link { width: 100%; grid-column: 1 / -1; }
    .pagination { gap: 5px; }
    .page-number { display: none !important; }
    .page-number.active { display: inline-flex !important; }
    .page-gap { display: none; }
    .detail-visual { min-height: 260px; }
    .detail-purchase { padding: 20px 16px; }
    .detail-title { font-size: 18px; }
    .package-list { grid-template-columns: repeat(2, 1fr); }
    .detail-section { padding: 17px 14px; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .info-item { border-bottom: 1px solid var(--line); }
    .info-item:nth-child(odd) { border-right: 1px solid var(--line); }
    .info-item:nth-child(even) { border-right: 0; }
    .info-item:nth-last-child(-n+2) { border-bottom: 0; }
    .notice-list { grid-template-columns: 1fr; }
    .detail-actions { position: sticky; bottom: 8px; z-index: 10; padding: 8px; margin: 18px -8px -8px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 8px; }
}

@media (max-width: 420px) {
    .account-row { grid-template-columns: 96px minmax(0, 1fr); }
    .account-media { width: 96px; height: 96px; }
    .badge { min-width: auto; }
    .account-meta small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
