/* ── Reset & Container ── */
#pom-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.pom-container {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    min-height: clamp(520px, calc(100vh - 340px), 760px);
    height: clamp(520px, calc(100vh - 340px), 760px);
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #fff;
    color: #222;
    z-index: 1;
    overflow: hidden;
    margin: 0 0 16px;
}

body.hx-pom-page {
    height: 100svh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.hx-pom-page > main.hx-pom-page-main {
    flex: 1;
    display: flex;
    min-height: 0;
}

body.hx-pom-page > main.hx-pom-page-main > .hx-pom-page-section {
    flex: 1;
    display: flex;
    min-height: 0;
}

body.hx-pom-page .hx-pom-page-wrapper {
    flex: 1;
    display: flex;
    min-height: 0;
}

body.hx-pom-page .text_about,
body.hx-pom-page .text_about .list {
    width: 100%;
    min-width: 0;
    max-width: none;
    display: flex;
    flex: 1;
    min-height: 0;
}

body.hx-pom-page .pom-container {
    min-height: 100%;
    height: 100%;
    margin: 0;
}

body.hx-pom-page > footer {
    flex: 0 0 auto;
}

/* ── Main Layout ── */
.pom-main {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
	gap: 2%;
    padding: 0 2% !important;
}

/* ── Map Panel ── */
.pom-map-panel {
    flex: 0 0 43%;
    max-width: 43%;
    position: relative;
    min-width: 0;
    min-height: 0;
}

.pom-map {
    width: 100%;
    height: 100%;
    background: #fff;
}

.pom-map [class*="tdt-map-pane"] {
    z-index: 100 !important;
}

.pom-map [class*="tdt-tile-pane"] {
    z-index: 120 !important;
}

.pom-map [class*="tdt-overlay-pane"] {
    z-index: 260 !important;
    opacity: 1 !important;
}

.pom-map [class*="tdt-marker-pane"],
.pom-map [class*="tdt-label-pane"],
.pom-map [class*="tdt-popup-pane"],
.pom-map [class*="tdt-tooltip-pane"] {
    z-index: 320 !important;
    opacity: 1 !important;
}

.pom-map .tdt-control-container {
    z-index: 900 !important;
}

.pom-map .tdt-label,
.pom-map .tdt-marker-icon,
.pom-map .tdt-marker-img,
.pom-map .tdt-marker,
.pom-map .pom-hotspot-marker,
.pom-map .pom-hotspot-preview {
    opacity: 1 !important;
}

/* ── List Panel ── */
.pom-list-panel {
    flex: 0 0 55%;
    width: 55%;
    max-width: 55%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
	gap: 18px;
}

/* ── Category Header ── */
.pom-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 24px 14px;
    flex-shrink: 0;
    border-bottom: 1px solid #d7d7d7;
	padding-bottom: 20px !important;
}

.pom-cat-arrow {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #555;
    padding: 0;
    transition: opacity 0.2s ease;
    text-indent: -9999px;
    overflow: hidden;
}

.pom-cat-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform-origin: center;
}

.pom-cat-prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.pom-cat-next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.pom-cat-arrow:hover {
    color: #222;
}

.pom-cat-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.pom-category-title {
    text-align: center;
    flex: 1;
}

.pom-category-title.has-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pom-cat-title-image {
    display: block;
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pom-cat-cn {
    display: block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.pom-cat-en {
    display: block;
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 2px;
}

/* ── Project List ── */
.pom-project-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 24px 8px;
}

.pom-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.pom-scroll-loader {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
    font-size: 14px;
}

/* ── Project Grid ── */
.pom-projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.pom-project-card {
    cursor: pointer;
    transition: opacity 0.2s;
}

.pom-project-card:hover {
    opacity: 0.85;
}

.pom-project-thumb-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f1ec;
}

.pom-project-thumb-skeleton {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.72) 42%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, #efece6 0%, #f7f5f0 100%);
    background-size: 200% 100%, 100% 100%;
    animation: pom-project-thumb-shimmer 1.35s linear infinite;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.pom-project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f0f0f0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.pom-project-thumb-frame.is-loaded .pom-project-thumb,
.pom-project-thumb.is-loaded {
    opacity: 1;
}

.pom-project-thumb-frame.is-loaded .pom-project-thumb-skeleton {
    opacity: 0;
}

@keyframes pom-project-thumb-shimmer {
    0% {
        background-position: 200% 0, 0 0;
    }
    100% {
        background-position: -20% 0, 0 0;
    }
}

.pom-project-info {
    padding: 10px 0;
}

.pom-project-title {
    font-family: "PingFang SC", "Microsoft YaHei", "Heiti SC", "SimHei", "黑体", "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 !important;
    line-height: 1.3;
}

.pom-project-year {
    font-size: 17px;
    font-weight: var(--pom-project-year-font-weight, 700);
    margin: 12px 0 2px !important;
}

.pom-project-location {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.pom-project-tags {
    font-size: 11px;
    color: #999;
    line-height: 1.5;
}

/* ── Map Overlays ── */
.pom-map-province-label {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
}

.pom-hotspot-marker {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pom-hotspot-marker.is-count-hidden {
    display: none;
}

.pom-map-marker-number {
    width: var(--pom-badge-width, 28px);
    min-width: var(--pom-badge-width, 28px);
    height: var(--pom-badge-height, 28px);
    padding: 0;
    background-color: var(--pom-badge-bg-color, #333) !important;
    background-image: var(--pom-badge-bg-image, none) !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain !important;
    color: var(--pom-badge-text-color, #fff) !important;
    border: none;
    border-radius: var(--pom-badge-border-radius, 0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    font-size: var(--pom-badge-font-size, 12px);
    font-weight: var(--pom-badge-font-weight, 700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
}

.pom-map-marker-number:hover,
.pom-map-marker-number:focus-visible {
    background-color: var(--pom-badge-bg-hover-color, var(--pom-badge-bg-color, #333)) !important;
}

.pom-hotspot-preview {
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%);
    display: none;
    width: min(320px, calc(100vw - 32px));
    max-height: 320px;
    overflow-y: auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 30;
}

.pom-hotspot-preview-progress {
    display: none;
    margin-bottom: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.88);
    color: #555;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    backdrop-filter: blur(4px);
}

.pom-hotspot-preview.is-loading .pom-hotspot-preview-progress {
    display: block;
}

.pom-hotspot-preview::before {
    display: none;
}

.pom-hotspot-marker.is-open .pom-hotspot-preview {
    display: block;
}

.pom-hotspot-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.pom-hotspot-preview-grid.is-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.pom-hotspot-preview-grid.is-centered .pom-hotspot-preview-thumb {
    flex: 0 0 calc((100% - 18px) / 4);
    width: calc((100% - 18px) / 4);
    max-width: calc((100% - 18px) / 4);
}

.pom-hotspot-preview-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: #f1f1f1;
    box-shadow: none;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.pom-hotspot-preview-thumb.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(240, 240, 240, 0.85) 0%, rgba(224, 224, 224, 0.95) 50%, rgba(240, 240, 240, 0.85) 100%);
    background-size: 200% 100%;
    animation: pom-hotspot-thumb-shimmer 1.1s linear infinite;
    z-index: 1;
}

.pom-hotspot-preview-thumb.is-loading::after {
    content: "加载中";
    position: absolute;
    inset: auto 0 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(80, 80, 80, 0.86);
    z-index: 2;
}

.pom-hotspot-preview-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.pom-hotspot-preview-thumb.is-ready img {
    opacity: 1;
}

.pom-hotspot-preview-thumb:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.pom-hotspot-marker-cluster .pom-hotspot-preview {
    width: min(320px, calc(100vw - 32px));
}

.pom-map-marker-info {
    background: #fff;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 140px;
}

.pom-map-marker-info-year {
    font-size: 13px;
    font-weight: 700;
}

.pom-map-marker-info-loc {
    font-size: 11px;
    color: #666;
}

.pom-map-marker-info-tags {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

/* ── Connection Lines Label ── */
.pom-connection-label {
    font-size: 11px;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    body.hx-pom-page {
        height: auto;
        min-height: 100svh;
        overflow: visible;
    }
    .pom-container {
        min-height: auto;
        height: auto;
    }
    .pom-main {
        flex-direction: column;
        gap: 5%;
    }
    .pom-list-panel {
        width: 100%;
        max-width: 100%;
        flex: none;
        height: 40vh;
    }
    .pom-map-panel {
        max-width: 100%;
        flex: none;
        height: 60vh;
    }

}

/* ── Scrollbar ── */
.pom-project-list::-webkit-scrollbar {
    width: 4px;
}

.pom-project-list::-webkit-scrollbar-track {
    background: transparent;
}

.pom-project-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* ── Tianditu: hide controls & copyright ── */
.pom-map [class*="tdt-control"],
.pom-map [class*="tdt-copyright"] {
    display: none !important;
}

/* ── Always-white canvas: hide all Tianditu tile images ── */
.pom-map-no-tiles {
    background: #fff !important;
}

.pom-map-no-tiles .tdt-tile-pane,
.pom-map-no-tiles .tdt-tile-pane div {
    background: #fff !important;
}

.pom-map-no-tiles img {
    opacity: 0 !important;
}

.pom-map-no-tiles .pom-overlay-img {
    opacity: 1 !important;
}

.pom-map-no-tiles .pom-hotspot-preview-thumb img {
    opacity: 1 !important;
}

@keyframes pom-hotspot-thumb-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ── Remove default Tianditu label shadow/border ── */
.pom-map .tdt-label {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* ── City name labels at province level ── */
.pom-city-label {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    pointer-events: none;
}

/* ── Debug Panel ── */
.pom-debug-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 999;
    background: rgba(0, 0, 0, 0.75);
    color: #0f0;
    font-family: "Menlo", "Consolas", monospace;
    font-size: 11px;
    line-height: 1.6;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.pom-debug-controls {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 6px;
}

.pom-debug-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding: 2px 8px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}

.pom-debug-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ── Project Detail Page ── */
.pom-detail-wrap {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow-x: clip;
}

.pom-detail-catbar {
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pom-detail-catbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.pom-detail-catbar-back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #555;
    flex-shrink: 0;
    transition: color 0.2s;
}

.pom-detail-catbar-back:hover {
    color: #222;
}

.pom-detail-catbar-back .pom-cat-arrow {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

.pom-detail-catbar-back-text {
    font-size: 14px;
    white-space: nowrap;
}

.pom-detail-catbar-banner {
    height: 36px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}

.pom-detail-catbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pom-detail-catbar-right .pom-cat-arrow {
    display: inline-block;
    text-decoration: none;
    color: #555;
}

.pom-detail-catbar-right .pom-cat-arrow:hover {
    color: #222;
}

.pom-cat-arrow-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.pom-detail-main {
    display: flex;
}

.pom-detail-image {
    width: 50%;
    flex-shrink: 0;
}

.pom-detail-image img {
    width: 100%;
    display: block;
}

.pom-detail-content {
    width: 50%;
    padding: 0 40px;
    box-sizing: border-box;
}

.pom-detail-honor {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.pom-detail-honor img {
    height: auto;
    display: block;
}

.pom-detail-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
}

.pom-detail-columns {
    display: flex;
    gap: 4%;
}

.pom-detail-meta-col {
    flex: 0 0 40%;
    min-width: 200px;
}

.pom-detail-body-col {
    flex: 0 0 56%;
    min-width: 0;
}

.pom-detail-meta {
    width: 100%;
    border-collapse: collapse;
}

.pom-detail-meta tr {
    border: none !important;
    background: none !important;
}

.pom-detail-meta th,
.pom-detail-meta td {
    border: none !important;
    background: none !important;
}

.pom-detail-meta th {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    padding: 6px 0;
    white-space: nowrap;
    vertical-align: top;
    text-align: left;
    width: 70px;
}

.pom-detail-meta td {
    font-size: 14px;
    padding: 6px 0;
    line-height: 1.6;
}

.pom-detail-meta td .pom-detail-year {
    font-size: 20px;
    font-weight: var(--pom-detail-year-font-weight, 700);
	line-height: 1;
}

.pom-detail-body {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.pom-detail-body p {
    margin-bottom: 16px;
    text-align: justify;
}

.pom-detail-body img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}

@media (max-width: 768px) {
    .pom-detail-main {
        flex-direction: column;
    }

    .pom-detail-image {
        width: 100%;
    }

    .pom-detail-content {
        width: 100%;
        padding: 24px;
    }

    .pom-detail-columns {
        flex-direction: column;
        gap: 4%;
    }

    .pom-detail-catbar {
        padding: 12px 20px;
    }

    .pom-detail-catbar-banner {
        max-width: 160px;
        height: 28px;
    }
	.pom-map-panel {
        max-width: 100%;
        flex: none;
        height: 25vh;
    }
	.pom-list-panel {
        width: 100%;
        max-width: 100%;
        flex: none;
        height: 58vh;
    }
	.pom-main {
        flex-direction: column;
        gap: 2%;
    }
}

/* ── Taxonomy Page ── */
.pom-taxonomy-page {
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 24px;
}

.pom-taxonomy-header {
    margin-bottom: 28px;
}

.pom-taxonomy-back {
    display: inline-block;
    margin-bottom: 12px;
    color: #666;
}

.pom-taxonomy-title {
    font-size: 28px;
    margin: 0;
}

.pom-taxonomy-subtitle {
    margin-top: 6px;
    color: #666;
    font-style: italic;
}

.pom-taxonomy-link {
    margin-top: 12px;
    word-break: break-all;
    font-size: 13px;
    color: #666;
}

.pom-taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.pom-taxonomy-card a {
    color: inherit;
    text-decoration: none;
}

.pom-taxonomy-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: #f1f1f1;
}

.pom-taxonomy-card-title {
    margin: 12px 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.pom-taxonomy-card-year {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
}

.pom-taxonomy-card-location {
    font-size: 13px;
    color: #666;
}

.pom-taxonomy-pagination {
    margin-top: 30px;
}

/* ── Back to Top Button ── */
.pom-back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    color: #555;
    padding: 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, color 0.2s;
    text-indent: -9999px;
    overflow: hidden;
}

.pom-back-to-top::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: translate(-50%, -30%) rotate(-45deg);
    transform-origin: center;
}

.pom-back-to-top:hover {
    color: #222;
    border-color: #999;
}

.pom-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ── UI Dark Mode ── */
body.hx-pom-ui-dark .pom-container,
body.hx-pom-ui-dark .pom-main,
body.hx-pom-ui-dark .pom-list-panel,
body.hx-pom-ui-dark .pom-project-list,
body.hx-pom-ui-dark .pom-category-header,
body.hx-pom-ui-dark .pom-detail-wrap,
body.hx-pom-ui-dark .pom-detail-content {
    background: #000;
    color: #fff;
}

body.hx-pom-ui-dark .pom-map-panel,
body.hx-pom-ui-dark .pom-map {
    background: #000;
}

body.hx-pom-ui-dark .pom-category-header {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

body.hx-pom-ui-dark .pom-cat-cn,
body.hx-pom-ui-dark .pom-project-title,
body.hx-pom-ui-dark .pom-project-year,
body.hx-pom-ui-dark .pom-loading,
body.hx-pom-ui-dark .pom-detail-title,
body.hx-pom-ui-dark .pom-detail-meta td,
body.hx-pom-ui-dark .pom-detail-meta td .pom-detail-year,
body.hx-pom-ui-dark .pom-detail-body,
body.hx-pom-ui-dark .pom-map-marker-info,
body.hx-pom-ui-dark .pom-map-marker-info-year {
    color: #fff;
}

body.hx-pom-ui-dark .pom-cat-en,
body.hx-pom-ui-dark .pom-project-location,
body.hx-pom-ui-dark .pom-project-tags,
body.hx-pom-ui-dark .pom-scroll-loader,
body.hx-pom-ui-dark .pom-detail-meta th,
body.hx-pom-ui-dark .pom-map-marker-info-loc,
body.hx-pom-ui-dark .pom-map-marker-info-tags {
    color: rgba(255, 255, 255, 0.68);
}

body.hx-pom-ui-dark .pom-cat-arrow,
body.hx-pom-ui-dark .pom-detail-catbar-back,
body.hx-pom-ui-dark .pom-detail-catbar-right .pom-cat-arrow,
body.hx-pom-ui-dark .pom-back-to-top {
    color: rgba(255, 255, 255, 0.72);
}

body.hx-pom-ui-dark .pom-cat-arrow:hover,
body.hx-pom-ui-dark .pom-detail-catbar-back:hover,
body.hx-pom-ui-dark .pom-detail-catbar-right .pom-cat-arrow:hover,
body.hx-pom-ui-dark .pom-back-to-top:hover {
    color: #fff;
}

body.hx-pom-ui-dark .pom-back-to-top {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

body.hx-pom-ui-dark .pom-back-to-top:hover {
    border-color: rgba(255, 255, 255, 0.72);
}

body.hx-pom-ui-dark .pom-project-thumb-frame,
body.hx-pom-ui-dark .pom-detail-image-frame,
body.hx-pom-ui-dark .pom-hotspot-preview-thumb {
    background: #161616;
}

body.hx-pom-ui-dark .pom-project-thumb {
    background: #101010;
}

body.hx-pom-ui-dark .pom-project-thumb-skeleton,
body.hx-pom-ui-dark .pom-detail-image-skeleton {
    background:
        linear-gradient(110deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.12) 42%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, #171717 0%, #222222 100%);
    background-size: 200% 100%, 100% 100%;
}

body.hx-pom-ui-dark .pom-hotspot-preview-progress,
body.hx-pom-ui-dark .pom-map-marker-info {
    background: rgba(16, 16, 16, 0.92);
}

body.hx-pom-ui-dark .pom-hotspot-preview-thumb.is-loading::before {
    background: linear-gradient(90deg, rgba(42, 42, 42, 0.9) 0%, rgba(74, 74, 74, 0.95) 50%, rgba(42, 42, 42, 0.9) 100%);
    background-size: 200% 100%;
}

body.hx-pom-ui-dark .pom-hotspot-preview-thumb.is-loading::after {
    color: rgba(255, 255, 255, 0.72);
}

body.hx-pom-ui-dark .pom-project-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.24);
}


/* ─── Loading Indicator ─── */
.pom-loading-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pom-loading-text {
    white-space: nowrap;
}

/* ─── Timeline Play Button ─── */
.pom-timeline-play-btn {
    position: absolute;
    bottom: 20px;
    right: 12px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pom-timeline-play-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.08);
}

.pom-timeline-play-btn.is-playing {
    background: rgba(192, 57, 43, 0.85);
}

.pom-timeline-play-btn.is-playing:hover {
    background: rgba(192, 57, 43, 1);
}

.pom-timeline-play-btn svg {
    flex-shrink: 0;
}

/* ─── Timeline Year Display ─── */
/* ─── Timeline Digit Wheel Scroll Animation ─── */

    10% {
        opacity: 0.5;
    }
    50% {
        transform: translateY(0);
        opacity: 1;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.pom-timeline-digit {
    display: inline-block;
    position: relative;
    animation: pomTimelineWheelScroll 0.8s ease-in-out forwards;
    min-width: 0.6em;
    text-align: center;
}

/* ─── Timeline Digit Drop Animation (No Bounce) ─── */
@keyframes pomTimelineDigitDropFast {
    0% {
        transform: translateY(-80px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.pom-timeline-digit {
    display: inline-block;
    position: relative;
    /* 动画将由JavaScript动态应用 */
    min-width: 0.6em;
    text-align: center;
}

.pom-timeline-year {
    position: absolute;
    bottom: 70px;
    right: 12px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 22px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 2px;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-align: center;
    min-width: 70px;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* ─── Timeline Year Drop Animation ─── */
@keyframes pomTimelineDigitDrop {
    0% {
        transform: translateY(-32px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    85% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 单个数字容器 */
.pom-timeline-digit {
    display: inline-block;
    animation: pomTimelineDigitDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* ─── Timeline Hotspot Fade-in Animation ─── */
.pom-timeline-fadein {
    animation: pomHotspotFadeIn 1s ease-out both;
    transform-origin: center center;
    will-change: transform, opacity;
}

@keyframes pomHotspotFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    25% {
        opacity: 0;
        transform: scale(1.08);
    }
    50% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
