:root {
    color-scheme: light;
    --page: hsl(220 33% 98%);
    --surface: hsl(0 0% 100%);
    --ink: hsl(221 35% 15%);
    --muted: hsl(218 13% 46%);
    --line: hsl(220 23% 91%);
    --model-surface: hsl(0 0% 96%);
    --model-text: hsl(210 100% 40%);
    --model-hover: hsl(46 100% 90%);
    --brand-text: var(--ink);
    --brand-line: hsl(220 30% 96%);
    --accent: hsl(222 83% 54%);
    --accent-hover: hsl(222 83% 46%);
    --accent-soft: hsl(222 100% 97%);
    --focus-ring: hsl(222 83% 54% / .15);
    --film-clear: hsl(217 77% 42%);
    --film-clear-soft: hsl(217 85% 97%);
    --film-clear-line: hsl(217 60% 89%);
    --film-3d: hsl(30 100% 30%);
    --film-3d-soft: hsl(30 100% 96%);
    --film-3d-line: hsl(30 60% 86%);
    --film-ar: hsl(0 0% 28%);
    --film-ar-soft: hsl(0 0% 94%);
    --film-ar-line: hsl(0 0% 84%);
    --result-brand-size: 16px;
    --warning: hsl(22 66% 32%);
    --warning-soft: hsl(36 75% 96%);
    --shadow: 0 6px 24px hsl(222 38% 20% / .035);
    --radius: 16px;
    --radius-small: 10px;
    --radius-card: 8px;
    --space: 8px;
    --content-width: 1200px;
    --brand-logo-size: 64px;
    --brand-logo-radius: 20px;
    --brand-name-size: 28px;
    --brand-tagline-size: 13px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main { max-width: calc(var(--content-width) + 8 * var(--space)); margin: auto; padding: 0 calc(4 * var(--space)) calc(4 * var(--space)); }
.site-header { min-height: 104px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px max(calc(4 * var(--space)), calc((100% - var(--content-width)) / 2)); border-bottom: 1px solid var(--line); background: var(--surface); }
.site-name { display: inline-flex; align-items: center; gap: 16px; min-width: 0; max-width: 100%; }
.brand-logo { display: grid; place-items: center; width: var(--brand-logo-size); height: var(--brand-logo-size); flex-shrink: 0; }
.brand-logo svg { width: 100%; height: 100%; padding: 12px; border-radius: var(--brand-logo-radius); background: var(--accent); color: var(--surface); }
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.brand-title-text { font-size: var(--brand-name-size); font-weight: 750; letter-spacing: -.5px; line-height: 1.3; }
.brand-tagline { color: var(--muted); font-size: var(--brand-tagline-size); letter-spacing: .4px; overflow-wrap: anywhere; }
.brand-tools { max-width: 100%; margin-left: auto; text-align: right; }
.logo-requirements, .logo-status { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.logo-status { max-width: 300px; overflow-wrap: anywhere; }
.logo-status:empty { display: none; }
.logo-status[data-error="true"] { color: var(--warning); }
.search-panel { margin: calc(4 * var(--space)) 0; }
.recent-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 calc(3 * var(--space)); }
.recent-title { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.recent-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.recent-chip { max-width: 100%; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.recent-chip:focus-visible { outline-offset: 2px; }
.recent-clear { flex: none; min-height: 32px; margin-left: auto; padding: 4px 10px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; }
.recent-clear:hover { border-color: var(--line); background: var(--surface); color: var(--accent); }
.recent-clear:focus-visible { outline-offset: 2px; }
.search-card { padding: calc(2 * var(--space)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.search-form-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: var(--space); }
.search-label { font-weight: 700; }
.search-field { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--page); }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.search-icon { width: 22px; height: 22px; flex-shrink: 0; margin: 0 8px; color: var(--muted); }
#query { min-width: 0; flex: 1; border: 0; background: transparent; color: var(--ink); outline: none; font-size: 16px; padding: 6px 0; }
#query::-webkit-search-cancel-button { display: none; }
#query::placeholder { color: var(--muted); }
.search-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; flex-shrink: 0; min-height: 44px; padding: 10px 24px; border: 1px solid var(--accent); border-radius: var(--radius-card); color: var(--surface); background: var(--accent); font-weight: 600; }
.button-arrow { font-size: 20px; line-height: 1; }
.search-button:hover, .search-button:active { border-color: var(--accent-hover); background: var(--accent-hover); }
.clear-button { flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-card); background: transparent; color: var(--muted); font-size: 24px; }
.clear-button:hover { background: var(--accent-soft); color: var(--accent); }
.search-hint { margin: 0; color: var(--muted); font-size: 12px; }
.category-filters { display: flex; align-items: stretch; gap: 24px; max-width: 100%; margin-bottom: calc(3 * var(--space)); padding-top: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.category, .category-filter { --category-color: var(--accent); --category-soft: var(--accent-soft); --category-line: var(--line); }
[data-source="model-list"] { --category-color: var(--film-clear); --category-soft: var(--film-clear-soft); --category-line: var(--film-clear-line); }
[data-source="3d-model-list"] { --category-color: var(--film-3d); --category-soft: var(--film-3d-soft); --category-line: var(--film-3d-line); }
[data-source="ar-model-list"] { --category-color: var(--film-ar); --category-soft: var(--film-ar-soft); --category-line: var(--film-ar-line); }
.category-filter { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-width: 0; max-width: 100%; min-height: 56px; padding: 12px 0 16px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--category-color); text-align: left; line-height: 1.5; }
.category-filter:hover { border-bottom-color: var(--category-line); }
.category-filter:focus-visible { outline-offset: -3px; }
.category-filter[aria-pressed="true"] { border-bottom-color: var(--category-color); font-weight: 650; }
.filter-count { flex-shrink: 0; min-width: 24px; padding: 2px 6px; border-radius: 4px; background: var(--category-soft); color: var(--category-color); font-size: 11px; font-weight: 500; text-align: center; }
.source-label { min-width: 0; overflow-wrap: anywhere; }
.source-page-link:hover { color: var(--category-color); text-decoration: underline; text-underline-offset: 4px; }
noscript a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 16px; }
#summary { margin: 0; color: var(--muted); font-size: 13px; }
#refreshData { margin-left: auto; }
.text-button { flex-shrink: 0; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); color: var(--accent); }
.text-button:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.category { --category-inset: calc(3 * var(--space)); margin-bottom: calc(3 * var(--space)); padding: var(--category-inset); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.category-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: calc(-1 * var(--category-inset)) calc(-1 * var(--category-inset)) 0; padding: calc(2 * var(--space)) var(--category-inset); border-bottom: 1px solid var(--category-line); border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; background: var(--category-soft); }
.category-title { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.category-title h2 { min-width: 0; margin: 0; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.category-badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 44px; height: 28px; padding: 0 var(--space); border-radius: var(--radius-card); background: var(--category-color); color: var(--surface); font-size: 12px; font-weight: 650; }
.category-status { color: var(--category-color); font-size: 12px; }
.brand-section { margin-top: 16px; }
.brand-title { display: flex; align-items: center; gap: 6px; margin: 10px 0; border-bottom: 2px solid var(--brand-line); color: var(--brand-text); font-size: var(--result-brand-size); font-weight: 600; }
.brand-name { min-width: 0; overflow-wrap: anywhere; }
.brand-count { flex-shrink: 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.result-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.result-item { min-width: 0; }
.model-card { display: flex; align-items: center; width: 100%; height: 100%; min-height: 48px; margin: 0; padding: 13px 12px; border: 0; border-radius: var(--radius-card); background: var(--model-surface); color: var(--model-text); font: inherit; font-size: 14px; text-align: left; overflow-wrap: anywhere; }
.model-card:hover { background: var(--model-hover); }
.model-card:focus-visible { outline-offset: 2px; }
.skeleton-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.skeleton-card { display: block; height: 48px; border-radius: var(--radius-card); background: linear-gradient(90deg, hsl(220 20% 94%) 25%, hsl(220 20% 97%) 37%, hsl(220 20% 94%) 63%); background-size: 400% 100%; animation: skeleton-shimmer 1.4s ease infinite; }
@keyframes skeleton-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skeleton-card { animation: none; } }
/* 型号详情弹窗（与型号表一致的橙色浮层） */
.model-popover-layer { position: fixed; inset: 0; z-index: 2000; }
.model-popover { position: absolute; padding: 3px 5px; border-radius: 8px; background: #ff9800; box-shadow: 0 4px 20px hsl(0 0% 0% / .15); }
.model-popover:focus-visible { outline: none; }
.model-popover-scroll { overflow-y: auto; max-height: 85vh; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.model-popover-scroll::-webkit-scrollbar { display: none; }
.model-popover-body { margin: 0; }
.model-popover-note, .model-popover-link, .model-popover-model { padding: 4px 8px; margin: 2px 0; border-radius: 4px; background: #f5f5f5; color: var(--ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.model-popover-note { color: #990099; }
.model-popover-link { display: flex; align-items: flex-start; gap: 8px; }
.model-popover-link a { flex: 1; min-width: 0; display: block; color: #990099; text-decoration: none; }
.model-popover-link a:hover { text-decoration: underline; }
.model-popover-link a:focus-visible { outline-offset: 2px; border-radius: 2px; }
.model-popover-copy { flex: none; min-height: 28px; padding: 0 8px; border: 1px solid #d8b3d8; border-radius: 4px; background: #fff; color: #990099; font-family: inherit; font-size: 12px; line-height: 1.2; cursor: pointer; }
.model-popover-copy:hover { background: #faf2fa; }
.model-popover-copy:focus-visible { outline: 2px solid #0066cc; outline-offset: 1px; }
.model-popover-model { display: block; width: 100%; border: 0; font-family: inherit; text-align: left; cursor: pointer; }
.model-popover-model:hover { background: #ececec; }
.model-popover-model:focus-visible { outline: 2px solid #0066cc; outline-offset: -2px; }
.model-popover-model.is-main { font-weight: 700; }
.model-popover-model.is-current { color: #0066cc; }
.model-popover-rail { position: absolute; top: 3px; right: 0; bottom: 3px; width: 5px; z-index: 1; pointer-events: none; }
.model-popover-thumb { position: absolute; left: 1px; width: 3px; min-height: 15px; border-radius: 2px; background: #6666ff; }
.model-popover-arrow { position: absolute; left: 50%; width: 0; height: 0; border-right: 8px solid transparent; border-left: 8px solid transparent; transform: translateX(-50%); }
.model-popover[data-placement="above"] .model-popover-arrow { bottom: -8px; border-top: 8px solid #ff9800; }
.model-popover[data-placement="below"] .model-popover-arrow { top: -8px; border-bottom: 8px solid #ff9800; }
/* 内嵌链接查看器 */
.link-modal { position: fixed; inset: 0; z-index: 30000; display: flex; align-items: center; justify-content: center; background: hsl(0 0% 0% / .55); }
.link-modal-box { position: relative; display: flex; flex-direction: column; width: 92%; max-width: 1100px; height: 85%; max-height: 750px; border-radius: 12px; background: var(--surface); box-shadow: 0 10px 40px hsl(0 0% 0% / .3); overflow: hidden; }
.link-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 8px 14px 8px 18px; border-bottom: 1px solid var(--line); }
.link-modal-title { max-width: 70%; color: var(--ink); font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-modal-actions { display: inline-flex; align-items: center; gap: 2px; }
.link-modal-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--radius-card); background: transparent; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .25s ease; }
.link-modal-icon svg { display: block; }
.link-modal-icon:hover { color: var(--ink); }
.link-modal-box.fullscreen .link-modal-icon[aria-pressed="true"] { transform: rotate(180deg); }
.link-modal-frame { flex: 1; width: 100%; border: 0; }
.link-modal-image-wrap { display: flex; flex: 1; min-height: 0; overflow: auto; background: var(--page); }
.link-modal-image { display: block; flex: 0 0 auto; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; background: var(--page); }
.link-image-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; flex-shrink: 0; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.link-image-group { display: inline-flex; align-items: center; gap: 4px; }
.link-image-button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.2; text-decoration: none; }
.link-image-button:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.link-image-button:disabled { cursor: default; opacity: .4; }
.link-image-button:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; }
.link-image-counter { min-width: 52px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.link-image-zoom { min-width: 62px; font-size: 13px; font-variant-numeric: tabular-nums; }
.link-image-link { font-size: 13px; }
.link-modal-loading { position: absolute; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; transform: translate(-50%, -50%); pointer-events: none; }
.link-modal-spinner { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: #ff9800; border-radius: 50%; animation: link-spin .8s linear infinite; }
@keyframes link-spin { to { transform: rotate(360deg); } }
.link-modal-error { position: absolute; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(420px, 86%); text-align: center; transform: translate(-50%, -50%); }
.link-modal-error-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--warning-soft); color: var(--warning); font-size: 22px; font-weight: 700; }
.link-modal-error p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.link-modal-error-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.link-modal-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.link-modal-action:hover { border-color: var(--muted); }
.link-modal-action:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; }
.link-modal-box.fullscreen { position: fixed; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; border-radius: 0; }
@media (min-width: 769px) {
    .link-modal { align-items: flex-start; padding-top: 30px; }
    .link-modal-box { height: 100%; max-height: none; }
}
@media (max-width: 768px) {
    .link-modal { align-items: center; padding-top: 0; }
    .link-modal-box { width: 100%; height: 90%; max-height: none; border-radius: 0; }
}
.empty-state { margin: 0; padding: 20px 0 0; color: var(--muted); font-size: 13px; }
.error-state { margin-top: calc(2 * var(--space)); padding: 16px 24px; border-radius: var(--radius-small); background: var(--warning-soft); color: var(--warning); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.error-state p { margin: 0; }
.error-state button { min-height: 44px; padding: 8px 12px; border: 1px solid currentColor; border-radius: 6px; background: transparent; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; background: var(--surface); padding: 12px 20px; }
.skip-link:focus { top: 16px; }
@media (max-width: 600px) {
    :root { --brand-logo-size: 48px; --brand-logo-radius: 15px; --brand-name-size: 24px; --brand-tagline-size: 11px; }
    .site-header, main { padding-left: 16px; padding-right: 16px; }
    .site-header { min-height: 88px; padding-top: 16px; padding-bottom: 16px; }
    .site-name { gap: 12px; }
    .brand-logo svg { padding: 8px; }
    .brand-tools { text-align: left; margin-left: 0; }
    .search-panel { margin: calc(3 * var(--space)) 0; }
    .search-card { padding: calc(1.5 * var(--space)); }
    .search-form-header { gap: 4px 12px; }
    .search-icon { width: 18px; height: 18px; margin: 0; }
    .search-field { gap: 4px; padding: 4px; }
    .search-button { padding: 10px; font-size: 13px; }
    .button-arrow { display: none; }
    .category-filters { gap: 20px; margin-bottom: calc(2 * var(--space)); padding-bottom: var(--space); }
    .category-filter { font-size: 13px; }
    .recent-panel { gap: 6px 10px; margin-bottom: calc(2 * var(--space)); }
    .recent-chip { min-height: 32px; padding: 4px 10px; font-size: 12px; }
    .recent-clear { min-height: 36px; padding: 4px 12px; }
    .link-image-bar { gap: 6px 10px; padding: 6px 8px; }
    .link-image-button { min-width: 44px; min-height: 44px; padding: 0 8px; font-size: 14px; }
    .category { --category-inset: calc(2 * var(--space)); }
    .category-title { gap: 8px; }
    .error-state { padding: 16px; }
}
@media (max-width: 768px) {
    .result-list { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
    .skeleton-list { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
    .model-card { padding: 8px 12px; }
}
@media (max-width: 360px) {
    .search-icon { display: none; }
}
