Spaces:
Running
Running
| @font-face { | |
| font-family: "HouZunSongLocal"; | |
| src: | |
| local("猴尊宋体"), | |
| local("HouZunSongTi"), | |
| url("../public/fonts/hou-zun-song-subset.woff2") format("woff2"); | |
| font-display: swap; | |
| font-style: normal; | |
| font-weight: 400; | |
| } | |
| @font-face { | |
| font-family: "LXGW WenKai Mono"; | |
| src: | |
| local("LXGW WenKai Mono"), | |
| local("LXGWWenKaiMono-Regular"), | |
| url("../public/fonts/lxgw-wenkai-mono-regular-subset.woff2") format("woff2"); | |
| font-display: swap; | |
| font-style: normal; | |
| font-weight: 400; | |
| } | |
| /* Single-book card: share-first ticket, detail card, and export preview */ | |
| .book-card { | |
| display: block; | |
| width: min(282px, calc(100vw - 36px)); | |
| min-height: 0; | |
| padding: 0; | |
| border: 0; | |
| color: var(--book-paper-ink); | |
| background: transparent; | |
| box-shadow: none; | |
| backdrop-filter: none; | |
| -webkit-backdrop-filter: none; | |
| } | |
| .book-card[hidden], | |
| .share-preview[hidden] { | |
| display: none; | |
| } | |
| .book-card.is-ticket .book-card__detail-view, | |
| .book-card.is-detail .book-card__ticket-view { | |
| display: none; | |
| } | |
| .book-card.is-detail { | |
| width: min(820px, calc(100vw - 36px)); | |
| } | |
| .book-card__ticket-view { | |
| position: relative; | |
| } | |
| .book-ticket, | |
| .share-ticket { | |
| --ticket-cutout: color-mix(in srgb, var(--bg-0) 82%, transparent); | |
| position: relative; | |
| display: flex; | |
| overflow: hidden; | |
| flex-direction: column; | |
| width: min(270px, calc(100vw - 40px)); | |
| aspect-ratio: 3 / 4; | |
| border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); | |
| border-radius: 0; | |
| background: | |
| linear-gradient(180deg, rgba(255, 252, 244, 0.9), rgba(255, 248, 236, 0.82)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 360px 360px; | |
| box-shadow: 0 22px 52px rgba(60, 72, 82, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.58); | |
| animation: book-rise 0.34s cubic-bezier(0.2, 0.9, 0.2, 1); | |
| } | |
| .book-ticket::before, | |
| .share-ticket::before { | |
| content: ""; | |
| position: absolute; | |
| z-index: 2; | |
| top: 61.5%; | |
| left: -11px; | |
| right: -11px; | |
| height: 22px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 11px 50%, var(--ticket-cutout) 0 10px, transparent 10.8px), | |
| radial-gradient(circle at calc(100% - 11px) 50%, var(--ticket-cutout) 0 10px, transparent 10.8px); | |
| } | |
| .book-ticket::after, | |
| .share-ticket::after { | |
| content: ""; | |
| position: absolute; | |
| z-index: 2; | |
| right: 20px; | |
| bottom: -9px; | |
| left: 20px; | |
| height: 18px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 10% 0, var(--ticket-cutout) 0 9px, transparent 9.8px), | |
| radial-gradient(circle at 28% 0, var(--ticket-cutout) 0 9px, transparent 9.8px), | |
| radial-gradient(circle at 46% 0, var(--ticket-cutout) 0 9px, transparent 9.8px), | |
| radial-gradient(circle at 64% 0, var(--ticket-cutout) 0 9px, transparent 9.8px), | |
| radial-gradient(circle at 82% 0, var(--ticket-cutout) 0 9px, transparent 9.8px); | |
| } | |
| .book-ticket__cover, | |
| .share-ticket__cover { | |
| position: relative; | |
| display: flex; | |
| overflow: hidden; | |
| flex: 0 0 45%; | |
| align-items: flex-start; | |
| justify-content: center; | |
| border-bottom: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); | |
| background: color-mix(in srgb, var(--bg-0) 68%, transparent); | |
| } | |
| .book-ticket__cover img, | |
| .share-ticket__cover img { | |
| display: block; | |
| width: 100%; | |
| height: 100%; | |
| max-height: none; | |
| object-fit: cover; | |
| object-position: top center; | |
| filter: none; | |
| } | |
| .book-ticket__cover .book-card__cover-fallback, | |
| .share-ticket__cover .book-card__cover-fallback, | |
| .book-card__detail-cover .book-card__cover-fallback { | |
| position: static; | |
| display: grid; | |
| width: 100%; | |
| min-height: 100%; | |
| place-items: center; | |
| color: color-mix(in srgb, var(--book-paper-ink) 58%, transparent); | |
| font-family: var(--font-mono); | |
| font-size: 12px; | |
| font-weight: 820; | |
| letter-spacing: 0.18em; | |
| } | |
| .book-ticket__body, | |
| .share-ticket__body { | |
| display: flex; | |
| flex: 1; | |
| min-height: 0; | |
| flex-direction: column; | |
| padding: 13px 17px 16px; | |
| } | |
| .book-card__location-zh, | |
| .book-card__location-en, | |
| .book-card__title-original, | |
| .book-card__meta, | |
| .book-card__shareline, | |
| .book-card__intro, | |
| .book-card__quote { | |
| margin: 0; | |
| } | |
| .book-card__location-zh { | |
| color: var(--accent); | |
| font-family: var(--font-ui); | |
| font-size: 12.5px; | |
| font-weight: 760; | |
| line-height: 1.15; | |
| letter-spacing: 0.055em; | |
| } | |
| .book-card__location-en { | |
| margin-top: 3px; | |
| color: color-mix(in srgb, var(--accent) 88%, var(--book-paper-ink)); | |
| font-family: var(--font-ui); | |
| font-size: 11px; | |
| font-weight: 680; | |
| line-height: 1.1; | |
| letter-spacing: 0.035em; | |
| } | |
| .book-card__title-zh { | |
| margin: 8px 0 0; | |
| color: var(--book-title); | |
| font-family: var(--font-zh-title); | |
| font-size: 22px; | |
| font-weight: 560; | |
| line-height: 1.08; | |
| letter-spacing: 0.035em; | |
| } | |
| .book-card__title-original { | |
| margin-top: 4px; | |
| color: color-mix(in srgb, var(--book-paper-ink) 70%, transparent); | |
| font-family: var(--font-latin); | |
| font-size: 12px; | |
| font-style: italic; | |
| line-height: 1.18; | |
| } | |
| .book-card__meta { | |
| margin-top: 8px; | |
| padding-top: 7px; | |
| border-top: 2px dotted color-mix(in srgb, var(--book-paper-ink) 26%, transparent); | |
| color: var(--book-meta); | |
| font-family: var(--font-ui); | |
| font-size: 11.5px; | |
| font-weight: 560; | |
| line-height: 1.35; | |
| } | |
| .book-card__shareline, | |
| .book-card__quote { | |
| margin-top: 8px; | |
| color: color-mix(in srgb, var(--book-paper-ink) 74%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 12px; | |
| font-weight: 520; | |
| line-height: 1.48; | |
| white-space: pre-line; | |
| } | |
| .book-card__ticket-actions { | |
| display: grid; | |
| grid-template-columns: repeat(3, 1fr); | |
| gap: 8px; | |
| margin-top: auto; | |
| padding-top: 10px; | |
| border-top: 2px dotted color-mix(in srgb, var(--book-paper-ink) 22%, transparent); | |
| } | |
| .book-card__action { | |
| display: grid; | |
| min-width: 0; | |
| height: 30px; | |
| padding: 0 8px; | |
| place-items: center; | |
| border: 1px solid color-mix(in srgb, var(--book-paper-ink) 14%, transparent); | |
| border-radius: 999px; | |
| color: color-mix(in srgb, var(--book-paper-ink) 70%, transparent); | |
| background: color-mix(in srgb, var(--bg-0) 54%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 12px; | |
| font-weight: 720; | |
| line-height: 1; | |
| cursor: pointer; | |
| } | |
| .book-card__action:hover, | |
| .book-card__action:focus { | |
| border-color: color-mix(in srgb, var(--accent) 45%, transparent); | |
| color: var(--accent); | |
| outline: none; | |
| } | |
| .book-card__save.is-saved { | |
| border-color: color-mix(in srgb, var(--accent) 48%, transparent); | |
| color: var(--accent); | |
| background: color-mix(in srgb, var(--accent) 11%, transparent); | |
| } | |
| .book-card__close, | |
| .share-preview__close { | |
| display: grid; | |
| width: 34px; | |
| height: 34px; | |
| padding: 0; | |
| place-items: center; | |
| border: 1px solid color-mix(in srgb, var(--book-paper-ink) 14%, transparent); | |
| border-radius: 0; | |
| color: color-mix(in srgb, var(--book-paper-ink) 70%, transparent); | |
| background: color-mix(in srgb, var(--bg-0) 66%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 22px; | |
| font-weight: 380; | |
| line-height: 1; | |
| cursor: pointer; | |
| } | |
| .book-card__close--float { | |
| position: absolute; | |
| z-index: 4; | |
| top: 8px; | |
| right: 8px; | |
| width: 30px; | |
| height: 30px; | |
| background: color-mix(in srgb, var(--bg-0) 58%, transparent); | |
| opacity: 0; | |
| transition: opacity 0.18s ease; | |
| } | |
| .book-card__ticket-view:hover .book-card__close--float, | |
| .book-card__close--float:focus { | |
| opacity: 1; | |
| } | |
| .book-card__detail-view { | |
| display: grid; | |
| grid-template-columns: minmax(210px, 268px) minmax(0, 1fr); | |
| gap: 30px; | |
| width: 100%; | |
| padding: 28px; | |
| border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); | |
| border-radius: 0; | |
| background: | |
| linear-gradient(135deg, rgba(255, 252, 245, 0.92), rgba(255, 247, 231, 0.84)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 430px 430px; | |
| box-shadow: 0 30px 88px rgba(55, 66, 78, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6); | |
| animation: book-rise 0.34s cubic-bezier(0.2, 0.9, 0.2, 1); | |
| backdrop-filter: blur(22px) saturate(118%); | |
| -webkit-backdrop-filter: blur(22px) saturate(118%); | |
| } | |
| .book-card__detail-cover { | |
| display: flex; | |
| align-items: flex-start; | |
| justify-content: center; | |
| } | |
| .book-card__detail-cover img { | |
| display: block; | |
| width: 100%; | |
| height: auto; | |
| max-height: min(440px, 62vh); | |
| object-fit: contain; | |
| filter: drop-shadow(16px 20px 18px rgba(44, 50, 58, 0.16)); | |
| } | |
| .book-card__detail-body { | |
| display: flex; | |
| min-width: 0; | |
| flex-direction: column; | |
| } | |
| .book-card__detail-top, | |
| .book-card__detail-footer { | |
| display: flex; | |
| align-items: flex-start; | |
| justify-content: space-between; | |
| gap: 18px; | |
| } | |
| .book-card__detail-view .book-card__title-zh { | |
| margin-top: 20px; | |
| font-size: clamp(31px, 3vw, 46px); | |
| line-height: 1.06; | |
| } | |
| .book-card__detail-view .book-card__title-original { | |
| font-size: 19px; | |
| } | |
| .book-card__detail-view .book-card__meta { | |
| margin-top: 18px; | |
| padding-top: 0; | |
| border-top: 0; | |
| font-size: 14px; | |
| } | |
| .book-card__intro { | |
| margin-top: 22px; | |
| color: color-mix(in srgb, var(--book-paper-ink) 78%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 16px; | |
| font-weight: 520; | |
| line-height: 1.75; | |
| white-space: pre-line; | |
| } | |
| .book-card__detail-footer { | |
| align-items: center; | |
| margin-top: auto; | |
| padding-top: 24px; | |
| } | |
| .book-card__pager { | |
| position: static; | |
| display: flex; | |
| height: 32px; | |
| padding: 0; | |
| border: 0; | |
| background: transparent; | |
| } | |
| .book-card__page { | |
| display: grid; | |
| width: 30px; | |
| height: 30px; | |
| padding: 0; | |
| place-items: center; | |
| border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); | |
| border-radius: 999px; | |
| color: var(--accent); | |
| background: color-mix(in srgb, var(--bg-0) 45%, transparent); | |
| font: inherit; | |
| font-size: 18px; | |
| line-height: 1; | |
| cursor: pointer; | |
| } | |
| .book-card__counter { | |
| display: grid; | |
| min-width: 42px; | |
| place-items: center; | |
| color: color-mix(in srgb, var(--book-paper-ink) 70%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 13px; | |
| font-weight: 720; | |
| } | |
| .book-card__detail-actions { | |
| display: flex; | |
| gap: 10px; | |
| } | |
| .book-card__detail-actions .book-card__action { | |
| min-width: 78px; | |
| } | |
| .share-preview { | |
| position: absolute; | |
| z-index: 14; | |
| inset: 0; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 18px; | |
| color: var(--book-paper-ink); | |
| background: rgba(43, 54, 57, 0.35); | |
| backdrop-filter: blur(18px) saturate(104%); | |
| -webkit-backdrop-filter: blur(18px) saturate(104%); | |
| } | |
| .share-preview__close { | |
| position: absolute; | |
| top: 24px; | |
| right: 26px; | |
| } | |
| .share-preview__eyebrow { | |
| margin: 0; | |
| color: color-mix(in srgb, var(--bg-0) 82%, white); | |
| font-family: var(--font-ui); | |
| font-size: 15px; | |
| font-weight: 720; | |
| letter-spacing: 0.12em; | |
| } | |
| .share-ticket { | |
| z-index: 1; | |
| width: min(336px, calc(100vw - 52px)); | |
| box-shadow: 0 28px 80px rgba(16, 24, 28, 0.3); | |
| } | |
| .share-ticket__cover { | |
| flex-basis: 47%; | |
| } | |
| .share-ticket__body { | |
| padding: 16px 20px 20px; | |
| } | |
| .share-ticket .book-card__title-zh { | |
| font-size: 25px; | |
| } | |
| .share-ticket__stamp { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 12px; | |
| margin-top: auto; | |
| padding-top: 11px; | |
| border-top: 2px dotted color-mix(in srgb, var(--accent) 30%, transparent); | |
| color: color-mix(in srgb, var(--ink) 62%, transparent); | |
| font-family: var(--font-latin); | |
| font-size: 11px; | |
| } | |
| .share-ticket__serial { | |
| color: var(--accent); | |
| font-family: var(--font-mono); | |
| letter-spacing: 0.08em; | |
| } | |
| .share-preview__save { | |
| position: relative; | |
| z-index: 1; | |
| min-width: 210px; | |
| height: 48px; | |
| border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); | |
| border-radius: 999px; | |
| color: #fff; | |
| background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 86%, #d94f42)); | |
| box-shadow: 0 15px 36px color-mix(in srgb, var(--accent) 30%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 16px; | |
| font-weight: 760; | |
| cursor: pointer; | |
| } | |
| @media (max-width: 720px) { | |
| .book-card.is-detail { | |
| width: min(420px, calc(100vw - 28px)); | |
| } | |
| .book-card__detail-view { | |
| grid-template-columns: 1fr; | |
| max-height: calc(100vh - 44px); | |
| overflow: auto; | |
| gap: 20px; | |
| padding: 20px; | |
| } | |
| .book-card__detail-cover img { | |
| width: min(220px, 70vw); | |
| } | |
| .book-card__detail-view .book-card__title-zh { | |
| font-size: 32px; | |
| } | |
| } | |
| /* Final override: refined cut-card shape and true 3:4 share canvas. */ | |
| .book-card__cover-fallback[hidden] { | |
| display: none ; | |
| } | |
| .book-ticket, | |
| .share-ticket, | |
| .share-preview__canvas { | |
| box-sizing: border-box; | |
| } | |
| .book-ticket, | |
| .share-ticket { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 84%, #e9f3ef 16%); | |
| position: relative; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| border: 0 ; | |
| border-radius: 0 ; | |
| background: | |
| linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(255, 248, 235, 0.9)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 360px 360px; | |
| box-shadow: | |
| 0 22px 52px rgba(35, 51, 54, 0.17), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.42); | |
| } | |
| .book-ticket::before, | |
| .share-ticket::before { | |
| content: ""; | |
| position: absolute; | |
| z-index: 4; | |
| top: calc(50% + 34px); | |
| left: -13px; | |
| right: -13px; | |
| display: block; | |
| height: 26px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 13px 50%, var(--ticket-cutout-bg) 0 12px, transparent 12.8px), | |
| radial-gradient(circle at calc(100% - 13px) 50%, var(--ticket-cutout-bg) 0 12px, transparent 12.8px); | |
| } | |
| .book-ticket::after, | |
| .share-ticket::after { | |
| content: ""; | |
| position: absolute; | |
| z-index: 4; | |
| right: 20px; | |
| bottom: -7px; | |
| left: 20px; | |
| display: block; | |
| height: 14px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 12% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 31% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 50% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 69% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 88% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px); | |
| } | |
| .share-preview__canvas { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 78%, #e7f2ee 22%); | |
| display: grid; | |
| grid-template-rows: auto 1fr auto; | |
| width: min(430px, calc(100vw - 34px)); | |
| aspect-ratio: 3 / 4; | |
| padding: 18px 22px 20px; | |
| } | |
| .book-ticket { | |
| width: min(222px, calc(100vw - 40px)); | |
| min-height: 0 ; | |
| } | |
| .book-ticket__cover, | |
| .share-ticket__cover { | |
| display: block; | |
| flex: 0 0 auto ; | |
| width: 100%; | |
| height: auto ; | |
| margin: 0 ; | |
| overflow: hidden; | |
| border: 0 ; | |
| border-radius: 0 ; | |
| background: transparent ; | |
| } | |
| .book-ticket__cover img, | |
| .share-ticket__cover img { | |
| display: block; | |
| width: 100% ; | |
| max-width: 100% ; | |
| height: auto ; | |
| max-height: none ; | |
| border-radius: 0 ; | |
| object-fit: contain ; | |
| object-position: center ; | |
| filter: none ; | |
| } | |
| .book-ticket__body, | |
| .share-ticket__body { | |
| margin: 0 ; | |
| padding: 15px 18px 18px; | |
| background: | |
| linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(255, 248, 235, 0.9)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 360px 360px; | |
| } | |
| .share-ticket { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 76%, #e7f2ee 24%); | |
| align-self: center; | |
| justify-self: center; | |
| width: min(218px, 64%) ; | |
| max-height: none ; | |
| } | |
| .share-preview__topbar { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| } | |
| .share-preview__close { | |
| position: static; | |
| } | |
| .share-preview__save { | |
| min-width: 168px; | |
| height: 42px; | |
| color: color-mix(in srgb, var(--ink) 68%, transparent); | |
| background: | |
| linear-gradient(135deg, color-mix(in srgb, var(--glass) 82%, transparent), color-mix(in srgb, var(--bg-0) 58%, transparent)); | |
| box-shadow: | |
| 0 7px 18px rgba(65, 82, 85, 0.08), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.52); | |
| } | |
| /* Share preview: cover-derived dotted backdrop with floating paper controls. */ | |
| .share-preview { | |
| --share-cover-image: none; | |
| position: absolute; | |
| isolation: isolate; | |
| overflow: hidden; | |
| padding: 0; | |
| background: color-mix(in srgb, var(--bg-0) 76%, #dfecea 24%); | |
| backdrop-filter: none; | |
| -webkit-backdrop-filter: none; | |
| } | |
| .share-preview::before, | |
| .share-preview::after { | |
| position: absolute; | |
| inset: -28px; | |
| z-index: -2; | |
| pointer-events: none; | |
| content: ""; | |
| } | |
| .share-preview::before { | |
| background: | |
| linear-gradient(180deg, rgba(255, 250, 238, 0.34), rgba(230, 242, 239, 0.22)), | |
| var(--share-cover-image); | |
| background-position: center; | |
| background-size: cover; | |
| filter: blur(18px) saturate(0.92) contrast(0.92); | |
| opacity: 0.46; | |
| transform: scale(1.06); | |
| } | |
| .share-preview::after { | |
| z-index: -1; | |
| background: | |
| radial-gradient(circle, rgba(255, 250, 238, 0.62) 0 1.15px, transparent 1.35px), | |
| linear-gradient(180deg, rgba(255, 250, 238, 0.38), rgba(226, 241, 237, 0.34)); | |
| background-size: 9px 9px, auto; | |
| mix-blend-mode: screen; | |
| opacity: 0.72; | |
| } | |
| .share-preview__canvas { | |
| position: relative; | |
| grid-template-rows: 0 1fr 0; | |
| width: min(430px, calc(100vw - 34px)); | |
| padding: 0; | |
| border: 0; | |
| border-radius: 0; | |
| background: transparent; | |
| box-shadow: none; | |
| backdrop-filter: none; | |
| -webkit-backdrop-filter: none; | |
| } | |
| .share-preview__topbar, | |
| .share-preview__actions { | |
| position: absolute; | |
| z-index: 4; | |
| inset-inline: 0; | |
| pointer-events: none; | |
| } | |
| .share-preview__topbar { | |
| top: 0; | |
| min-height: 0; | |
| } | |
| .share-preview__actions { | |
| bottom: 18px; | |
| justify-content: center; | |
| padding: 0; | |
| } | |
| .share-preview__eyebrow { | |
| position: absolute; | |
| overflow: hidden; | |
| width: 1px; | |
| height: 1px; | |
| clip: rect(0 0 0 0); | |
| white-space: nowrap; | |
| } | |
| .share-preview__close, | |
| .share-preview__save { | |
| pointer-events: auto; | |
| border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); | |
| color: color-mix(in srgb, var(--ink) 70%, transparent); | |
| background: color-mix(in srgb, #fffaf0 72%, transparent); | |
| box-shadow: | |
| 0 8px 20px rgba(35, 45, 45, 0.1), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.55); | |
| backdrop-filter: blur(14px) saturate(118%); | |
| -webkit-backdrop-filter: blur(14px) saturate(118%); | |
| } | |
| .share-preview__close { | |
| position: absolute; | |
| top: 16px; | |
| right: 16px; | |
| display: grid; | |
| width: 34px; | |
| height: 34px; | |
| padding: 0; | |
| place-items: center; | |
| border-radius: 999px; | |
| } | |
| .share-preview__close::before { | |
| font-size: 16px; | |
| font-weight: 360; | |
| } | |
| .share-preview__save { | |
| min-width: 0; | |
| height: 42px; | |
| padding: 0 20px; | |
| border-radius: 999px; | |
| font-size: 14px; | |
| font-weight: 700; | |
| } | |
| .share-preview__close:hover, | |
| .share-preview__close:focus-visible, | |
| .share-preview__save:hover, | |
| .share-preview__save:focus-visible { | |
| border-color: color-mix(in srgb, var(--accent) 42%, transparent); | |
| color: var(--accent); | |
| background: color-mix(in srgb, #fffaf0 82%, var(--accent) 8%); | |
| outline: none; | |
| } | |
| .share-ticket { | |
| position: relative; | |
| z-index: 2; | |
| width: min(286px, 76%); | |
| box-shadow: | |
| 10px 18px 28px rgba(28, 38, 38, 0.18), | |
| 2px 4px 8px rgba(28, 38, 38, 0.1); | |
| filter: none; | |
| } | |
| *** End of File | |
| /* Final ticket-card correction: complete cover, joined body, no drawn outline. */ | |
| .book-card__cover-fallback[hidden] { | |
| display: none ; | |
| } | |
| .book-ticket, | |
| .share-ticket { | |
| position: relative; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| height: auto ; | |
| aspect-ratio: auto ; | |
| border: 0 ; | |
| border-radius: 0 ; | |
| background: transparent ; | |
| box-shadow: | |
| 0 22px 52px rgba(35, 51, 54, 0.17), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.42); | |
| } | |
| .book-ticket::before, | |
| .book-ticket::after, | |
| .share-ticket::before, | |
| .share-ticket::after { | |
| display: none ; | |
| } | |
| .book-ticket { | |
| width: min(250px, calc(100vw - 40px)); | |
| min-height: 0 ; | |
| } | |
| .book-ticket__cover, | |
| .share-ticket__cover { | |
| display: block; | |
| flex: 0 0 auto ; | |
| width: 100%; | |
| height: auto ; | |
| margin: 0 ; | |
| overflow: hidden; | |
| border: 0 ; | |
| border-radius: 0 ; | |
| background: transparent ; | |
| } | |
| .book-ticket__cover img, | |
| .share-ticket__cover img { | |
| display: block; | |
| width: 100% ; | |
| max-width: 100% ; | |
| height: auto ; | |
| max-height: none ; | |
| border-radius: 0 ; | |
| object-fit: contain ; | |
| object-position: center ; | |
| filter: none ; | |
| } | |
| .book-ticket__body, | |
| .share-ticket__body { | |
| flex: 0 0 auto ; | |
| margin: 0 ; | |
| padding: 12px 15px 12px; | |
| background: | |
| linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(255, 248, 235, 0.9)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 360px 360px; | |
| } | |
| .share-ticket { | |
| width: min(204px, 60%) ; | |
| max-height: none ; | |
| } | |
| .book-ticket .book-card__location-zh, | |
| .share-ticket .book-card__location-zh { | |
| overflow: hidden; | |
| font-size: 11px; | |
| line-height: 1.12; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } | |
| .book-ticket .book-card__location-en, | |
| .share-ticket .book-card__location-en { | |
| display: none ; | |
| } | |
| .book-ticket .book-card__title-zh, | |
| .share-ticket .book-card__title-zh { | |
| margin-top: 6px; | |
| font-size: 19px; | |
| line-height: 1.08; | |
| } | |
| .book-ticket .book-card__title-main, | |
| .book-ticket .book-card__title-sub, | |
| .share-ticket .book-card__title-main, | |
| .share-ticket .book-card__title-sub { | |
| display: block; | |
| } | |
| .book-ticket .book-card__title-sub, | |
| .share-ticket .book-card__title-sub { | |
| margin-top: 1px; | |
| } | |
| .book-ticket .book-card__title-zh.is-title-subtitle .book-card__title-sub, | |
| .share-ticket .book-card__title-zh.is-title-subtitle .book-card__title-sub { | |
| margin-top: 2px; | |
| font-size: 0.72em; | |
| font-weight: 520; | |
| line-height: 1.12; | |
| } | |
| .book-ticket .book-card__title-original, | |
| .share-ticket .book-card__title-original { | |
| margin-top: 3px; | |
| font-size: 10.8px; | |
| line-height: 1.12; | |
| } | |
| .book-ticket .book-card__meta, | |
| .share-ticket .book-card__meta { | |
| margin-top: 6px; | |
| padding-top: 6px; | |
| font-size: 10.6px; | |
| line-height: 1.24; | |
| border-top-width: 1px; | |
| overflow: visible; | |
| text-overflow: clip; | |
| white-space: nowrap; | |
| letter-spacing: 0; | |
| transform: scaleX(var(--book-meta-scale, 1)); | |
| transform-origin: left center; | |
| } | |
| .book-ticket .book-card__shareline, | |
| .share-ticket .book-card__quote { | |
| display: -webkit-box; | |
| overflow: hidden; | |
| margin-top: 6px; | |
| font-size: 11px; | |
| line-height: 1.34; | |
| -webkit-box-orient: vertical; | |
| -webkit-line-clamp: 2; | |
| } | |
| .book-ticket .book-card__ticket-actions { | |
| position: relative; | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-around; | |
| gap: 0; | |
| margin-top: 8px; | |
| padding-top: 7px; | |
| border-top-width: 1px; | |
| } | |
| .book-ticket .book-card__action { | |
| position: relative; | |
| display: inline-grid; | |
| flex: 1 1 0; | |
| height: 32px; | |
| padding: 0; | |
| place-items: center; | |
| gap: 2px; | |
| border: 0; | |
| border-radius: 0; | |
| background: transparent; | |
| color: color-mix(in srgb, var(--book-paper-ink) 70%, transparent); | |
| font-size: 10.5px; | |
| line-height: 1; | |
| } | |
| .book-ticket .book-card__action + .book-card__action::before { | |
| content: ""; | |
| position: absolute; | |
| top: 4px; | |
| bottom: 4px; | |
| left: 0; | |
| width: 1px; | |
| background: color-mix(in srgb, var(--book-paper-ink) 18%, transparent); | |
| } | |
| .book-ticket .book-card__action-icon { | |
| display: block; | |
| width: 16px; | |
| height: 16px; | |
| fill: none; | |
| stroke: currentColor; | |
| stroke-width: 2; | |
| stroke-linecap: round; | |
| stroke-linejoin: round; | |
| } | |
| .book-ticket .book-card__action-label { | |
| display: block; | |
| line-height: 1; | |
| } | |
| .book-ticket .book-card__action:hover, | |
| .book-ticket .book-card__action:focus { | |
| color: var(--accent); | |
| background: transparent; | |
| box-shadow: none; | |
| outline: none; | |
| } | |
| .book-ticket .book-card__save.is-saved { | |
| color: var(--accent); | |
| background: transparent; | |
| } | |
| /* Final guard: ticket cutouts must be real clipped geometry, not painted circles. */ | |
| .book-ticket::before, | |
| .book-ticket::after, | |
| .share-ticket::before, | |
| .share-ticket::after { | |
| content: none ; | |
| display: none ; | |
| position: static ; | |
| width: 0 ; | |
| height: 0 ; | |
| background: none ; | |
| opacity: 0 ; | |
| visibility: hidden ; | |
| } | |
| /* Share preview frame: cover dots live inside the preview paper, not across the map. */ | |
| .share-preview { | |
| --share-cover-image: none; | |
| --share-halftone-image: none; | |
| isolation: isolate ; | |
| overflow: hidden ; | |
| padding: 22px ; | |
| background: rgba(43, 54, 57, 0.35) ; | |
| backdrop-filter: blur(18px) saturate(104%) ; | |
| -webkit-backdrop-filter: blur(18px) saturate(104%) ; | |
| } | |
| .share-preview::before, | |
| .share-preview::after { | |
| content: none ; | |
| display: none ; | |
| } | |
| .share-preview__canvas { | |
| position: relative ; | |
| isolation: isolate ; | |
| overflow: hidden ; | |
| display: grid ; | |
| grid-template-rows: auto 1fr auto ; | |
| width: min(430px, calc(100vw - 34px)) ; | |
| aspect-ratio: 3 / 4 ; | |
| padding: 18px 22px 20px ; | |
| border: 0 ; | |
| border-radius: 10px ; | |
| background: | |
| linear-gradient(180deg, rgba(255, 250, 238, 0.64), rgba(235, 243, 239, 0.54)), | |
| url("../public/textures/land-paper-tile.png") ; | |
| background-position: center, center ; | |
| background-size: auto, 420px 420px ; | |
| box-shadow: | |
| 0 26px 78px rgba(20, 33, 36, 0.18), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.46) ; | |
| backdrop-filter: blur(18px) saturate(112%) ; | |
| -webkit-backdrop-filter: blur(18px) saturate(112%) ; | |
| } | |
| .share-preview__canvas::before, | |
| .share-preview__canvas::after { | |
| position: absolute ; | |
| inset: 0 ; | |
| z-index: -1 ; | |
| pointer-events: none ; | |
| content: "" ; | |
| } | |
| .share-preview__canvas::before { | |
| background: | |
| var(--share-cover-image) ; | |
| background-position: center ; | |
| background-size: cover ; | |
| filter: blur(18px) saturate(0.92) contrast(0.95) ; | |
| opacity: 0.54 ; | |
| mix-blend-mode: normal ; | |
| transform: scale(1.06) ; | |
| -webkit-mask-image: none ; | |
| mask-image: none ; | |
| } | |
| .share-preview__canvas::after { | |
| z-index: 0 ; | |
| background: | |
| var(--share-halftone-image), | |
| linear-gradient(180deg, rgba(255, 250, 238, 0.16), rgba(226, 241, 237, 0.1)) ; | |
| background-position: center, center ; | |
| background-size: cover, auto ; | |
| opacity: 1 ; | |
| mix-blend-mode: normal ; | |
| } | |
| .share-preview__topbar, | |
| .share-preview__actions, | |
| .share-ticket { | |
| position: relative ; | |
| z-index: 2 ; | |
| } | |
| .share-preview__topbar { | |
| position: absolute ; | |
| top: 18px ; | |
| right: 22px ; | |
| left: 22px ; | |
| min-height: 34px ; | |
| pointer-events: none ; | |
| } | |
| .share-preview__eyebrow { | |
| position: absolute ; | |
| overflow: hidden ; | |
| width: 1px ; | |
| height: 1px ; | |
| clip: rect(0 0 0 0) ; | |
| white-space: nowrap ; | |
| } | |
| .share-preview__close { | |
| position: absolute ; | |
| top: 0 ; | |
| right: 0 ; | |
| display: grid ; | |
| width: 34px ; | |
| height: 34px ; | |
| padding: 0 ; | |
| place-items: center ; | |
| pointer-events: auto ; | |
| border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent) ; | |
| border-radius: 999px ; | |
| color: color-mix(in srgb, var(--ink) 68%, transparent) ; | |
| background: color-mix(in srgb, #fffaf0 72%, transparent) ; | |
| box-shadow: | |
| 0 8px 20px rgba(35, 45, 45, 0.1), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.55) ; | |
| backdrop-filter: blur(14px) saturate(118%) ; | |
| -webkit-backdrop-filter: blur(14px) saturate(118%) ; | |
| } | |
| .share-ticket { | |
| align-self: center ; | |
| justify-self: center ; | |
| width: min(204px, 60%) ; | |
| box-shadow: | |
| 0 32px 66px rgba(22, 31, 31, 0.28), | |
| 0 12px 26px rgba(22, 31, 31, 0.18), | |
| 2px 4px 8px rgba(28, 38, 38, 0.1) ; | |
| filter: none ; | |
| } | |
| .share-preview__canvas .share-ticket::before { | |
| content: "" ; | |
| position: absolute ; | |
| inset: -28px -30px -34px ; | |
| z-index: -1 ; | |
| display: block ; | |
| pointer-events: none ; | |
| background: | |
| radial-gradient(ellipse at 50% 46%, rgba(22, 31, 31, 0.2) 0 18%, rgba(22, 31, 31, 0.12) 36%, transparent 68%) ; | |
| filter: blur(18px) ; | |
| opacity: 0.86 ; | |
| } | |
| .share-preview__actions { | |
| display: flex ; | |
| justify-content: center ; | |
| padding-top: 16px ; | |
| } | |
| .share-preview__save { | |
| pointer-events: auto ; | |
| min-width: 168px ; | |
| height: 42px ; | |
| padding: 0 20px ; | |
| border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent) ; | |
| border-radius: 999px ; | |
| color: color-mix(in srgb, var(--ink) 70%, transparent) ; | |
| background: color-mix(in srgb, #fffaf0 72%, transparent) ; | |
| box-shadow: | |
| 0 8px 20px rgba(35, 45, 45, 0.1), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.55) ; | |
| backdrop-filter: blur(14px) saturate(118%) ; | |
| -webkit-backdrop-filter: blur(14px) saturate(118%) ; | |
| font-size: 14px ; | |
| font-weight: 700 ; | |
| } | |
| .share-preview__close:hover, | |
| .share-preview__close:focus-visible, | |
| .share-preview__save:hover, | |
| .share-preview__save:focus-visible { | |
| border-color: color-mix(in srgb, var(--accent) 42%, transparent) ; | |
| color: var(--accent) ; | |
| background: color-mix(in srgb, #fffaf0 82%, var(--accent) 8%) ; | |
| outline: none ; | |
| } | |
| /* Ticket cutouts are real clipped geometry. Keep all legacy painted cutout layers off. */ | |
| .book-ticket::before, | |
| .book-ticket::after, | |
| .share-ticket::before, | |
| .share-ticket::after { | |
| content: none ; | |
| display: none ; | |
| position: static ; | |
| width: 0 ; | |
| height: 0 ; | |
| background: none ; | |
| opacity: 0 ; | |
| visibility: hidden ; | |
| } | |
| /* Hard stop for the old drawn-cutout layer: cutouts now come only from clip-path. */ | |
| .book-ticket::before, | |
| .book-ticket::after, | |
| .share-ticket::before, | |
| .share-ticket::after { | |
| content: none ; | |
| display: none ; | |
| width: 0 ; | |
| height: 0 ; | |
| background: none ; | |
| opacity: 0 ; | |
| } | |
| /* Final cover rule: covers must stay complete and physically join the paper body. */ | |
| .book-ticket__cover, | |
| .share-ticket__cover { | |
| display: block; | |
| flex: 0 0 auto ; | |
| width: 100%; | |
| height: auto ; | |
| margin: 0 ; | |
| overflow: visible; | |
| border: 0 ; | |
| border-radius: 0 ; | |
| background: transparent ; | |
| } | |
| .book-ticket__cover img, | |
| .share-ticket__cover img { | |
| display: block; | |
| width: 100% ; | |
| max-width: 100% ; | |
| height: auto ; | |
| max-height: none ; | |
| object-fit: contain ; | |
| object-position: center ; | |
| filter: none ; | |
| } | |
| .share-ticket { | |
| width: min(218px, 64%) ; | |
| } | |
| .book-ticket__body, | |
| .share-ticket__body { | |
| background: | |
| linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(255, 248, 235, 0.9)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 360px 360px; | |
| } | |
| /* Final book-card correction: use precise cut paper cards and a true 3:4 share canvas. */ | |
| .book-card__cover-fallback[hidden] { | |
| display: none ; | |
| } | |
| .book-ticket, | |
| .share-ticket { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 84%, #e9f3ef 16%); | |
| box-sizing: border-box; | |
| overflow: hidden; | |
| border-radius: 0; | |
| } | |
| .book-ticket::before, | |
| .share-ticket::before { | |
| content: ""; | |
| position: absolute; | |
| z-index: 4; | |
| top: calc(50% + 34px); | |
| left: -13px; | |
| right: -13px; | |
| display: block; | |
| height: 26px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 13px 50%, var(--ticket-cutout-bg) 0 12px, transparent 12.8px), | |
| radial-gradient(circle at calc(100% - 13px) 50%, var(--ticket-cutout-bg) 0 12px, transparent 12.8px); | |
| } | |
| .book-ticket::after, | |
| .share-ticket::after { | |
| content: ""; | |
| position: absolute; | |
| z-index: 4; | |
| right: 20px; | |
| bottom: -7px; | |
| left: 20px; | |
| display: block; | |
| height: 14px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 12% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 31% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 50% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 69% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 88% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px); | |
| } | |
| .share-preview { | |
| padding: 22px; | |
| background: rgba(56, 69, 70, 0.26); | |
| backdrop-filter: blur(16px) saturate(108%); | |
| -webkit-backdrop-filter: blur(16px) saturate(108%); | |
| } | |
| .share-preview__canvas { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 78%, #e7f2ee 22%); | |
| box-sizing: border-box; | |
| display: grid; | |
| grid-template-rows: auto 1fr auto; | |
| width: min(430px, calc(100vw - 34px)); | |
| aspect-ratio: 3 / 4; | |
| padding: 18px 22px 20px; | |
| border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); | |
| border-radius: 10px; | |
| background: | |
| radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.42), transparent 34%), | |
| linear-gradient(165deg, rgba(248, 251, 246, 0.68), rgba(238, 246, 241, 0.52)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, auto, 420px 420px; | |
| box-shadow: | |
| 0 26px 78px rgba(20, 33, 36, 0.18), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.46); | |
| backdrop-filter: blur(18px) saturate(112%); | |
| -webkit-backdrop-filter: blur(18px) saturate(112%); | |
| } | |
| .share-preview__topbar { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 16px; | |
| min-height: 36px; | |
| } | |
| .share-preview__eyebrow { | |
| color: color-mix(in srgb, var(--ink) 58%, transparent); | |
| font-size: 13.8px; | |
| letter-spacing: 0.08em; | |
| } | |
| .share-preview__close { | |
| position: static; | |
| flex: 0 0 auto; | |
| width: 34px; | |
| height: 34px; | |
| } | |
| .share-ticket { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 76%, #e7f2ee 24%); | |
| align-self: center; | |
| justify-self: center; | |
| width: min(276px, 78%); | |
| aspect-ratio: auto; | |
| min-height: 0; | |
| max-height: 100%; | |
| border-color: color-mix(in srgb, var(--accent) 22%, transparent); | |
| box-shadow: 0 18px 48px rgba(24, 40, 43, 0.16); | |
| } | |
| .share-ticket__cover { | |
| flex: 0 0 auto; | |
| height: 184px; | |
| margin: 12px 12px 0; | |
| border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); | |
| border-radius: 6px; | |
| background: color-mix(in srgb, var(--bg-0) 62%, transparent); | |
| } | |
| .share-ticket__cover img { | |
| width: auto; | |
| max-width: 86%; | |
| height: 100%; | |
| object-fit: contain; | |
| object-position: center; | |
| filter: drop-shadow(8px 10px 12px rgba(42, 52, 56, 0.12)); | |
| } | |
| .share-preview__actions { | |
| display: flex; | |
| justify-content: center; | |
| padding-top: 14px; | |
| } | |
| .share-preview__save { | |
| min-width: 168px; | |
| height: 42px; | |
| color: color-mix(in srgb, var(--ink) 68%, transparent); | |
| background: | |
| linear-gradient(135deg, color-mix(in srgb, var(--glass) 82%, transparent), color-mix(in srgb, var(--bg-0) 58%, transparent)); | |
| box-shadow: | |
| 0 7px 18px rgba(65, 82, 85, 0.08), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.52); | |
| font-size: 14.6px; | |
| } | |
| /* Refined book-card system: soft library ticket cards, not literal torn tickets. */ | |
| .book-card { | |
| width: min(288px, calc(100vw - 36px)); | |
| } | |
| .book-card.is-detail { | |
| width: min(760px, calc(100vw - 36px)); | |
| } | |
| .book-ticket, | |
| .share-ticket { | |
| overflow: hidden; | |
| border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); | |
| border-radius: 8px; | |
| background: | |
| linear-gradient(160deg, rgba(255, 253, 247, 0.82), rgba(255, 248, 235, 0.68)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 360px 360px; | |
| box-shadow: | |
| 0 18px 44px rgba(53, 67, 70, 0.14), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.56); | |
| backdrop-filter: blur(16px) saturate(114%); | |
| -webkit-backdrop-filter: blur(16px) saturate(114%); | |
| } | |
| .book-ticket::before, | |
| .book-ticket::after, | |
| .share-ticket::before, | |
| .share-ticket::after { | |
| display: none; | |
| } | |
| .book-ticket { | |
| width: min(278px, calc(100vw - 40px)); | |
| aspect-ratio: auto; | |
| min-height: 372px; | |
| } | |
| .book-ticket__cover { | |
| flex: 0 0 auto; | |
| height: 148px; | |
| margin: 12px 12px 0; | |
| border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); | |
| border-radius: 6px; | |
| background: color-mix(in srgb, var(--glass) 58%, var(--bg-0)); | |
| } | |
| .book-ticket__cover img { | |
| width: auto; | |
| max-width: 82%; | |
| height: 100%; | |
| object-fit: contain; | |
| object-position: center; | |
| filter: drop-shadow(8px 10px 12px rgba(42, 52, 56, 0.12)); | |
| } | |
| .book-ticket__body { | |
| padding: 15px 18px 16px; | |
| } | |
| .book-card__location-zh { | |
| font-size: 12.8px; | |
| letter-spacing: 0.035em; | |
| } | |
| .book-card__location-en { | |
| color: color-mix(in srgb, var(--accent) 82%, var(--ink)); | |
| font-size: 10.8px; | |
| letter-spacing: 0.025em; | |
| } | |
| .book-ticket .book-card__title-zh { | |
| margin-top: 10px; | |
| font-size: 23px; | |
| line-height: 1.12; | |
| } | |
| .book-card__meta { | |
| border-top: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); | |
| } | |
| .book-card__shareline, | |
| .book-card__quote { | |
| color: color-mix(in srgb, var(--ink) 68%, transparent); | |
| } | |
| .book-card__ticket-actions { | |
| gap: 9px; | |
| padding-top: 12px; | |
| border-top: 1px dashed color-mix(in srgb, var(--accent) 22%, transparent); | |
| } | |
| .book-card__action, | |
| .share-preview__save, | |
| .book-card__page, | |
| .book-card__close, | |
| .share-preview__close { | |
| border: 1px solid color-mix(in srgb, var(--glass-border) 82%, var(--accent) 10%); | |
| border-radius: 999px; | |
| color: color-mix(in srgb, var(--ink) 68%, transparent); | |
| background: | |
| linear-gradient(135deg, color-mix(in srgb, var(--glass) 82%, transparent), color-mix(in srgb, var(--bg-0) 58%, transparent)); | |
| box-shadow: | |
| 0 7px 18px rgba(65, 82, 85, 0.08), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.52); | |
| backdrop-filter: blur(12px) saturate(112%); | |
| -webkit-backdrop-filter: blur(12px) saturate(112%); | |
| } | |
| .book-card__action { | |
| height: 31px; | |
| font-size: 12.4px; | |
| font-weight: 700; | |
| } | |
| .book-card__action:hover, | |
| .book-card__action:focus, | |
| .share-preview__save:hover, | |
| .share-preview__save:focus, | |
| .book-card__close:hover, | |
| .book-card__close:focus, | |
| .share-preview__close:hover, | |
| .share-preview__close:focus { | |
| border-color: color-mix(in srgb, var(--accent) 34%, transparent); | |
| color: var(--accent); | |
| background: | |
| linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--glass)), color-mix(in srgb, var(--bg-0) 62%, transparent)); | |
| outline: none; | |
| } | |
| .book-card__close, | |
| .share-preview__close { | |
| border-radius: 999px; | |
| font-size: 20px; | |
| } | |
| .book-card__close--float { | |
| top: 10px; | |
| right: 10px; | |
| opacity: 0.76; | |
| } | |
| .book-card__detail-view { | |
| grid-template-columns: minmax(178px, 230px) minmax(0, 1fr); | |
| gap: 28px; | |
| padding: 24px; | |
| border-color: color-mix(in srgb, var(--accent) 22%, transparent); | |
| border-radius: 8px; | |
| background: | |
| linear-gradient(145deg, rgba(255, 253, 247, 0.84), rgba(255, 248, 235, 0.72)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 430px 430px; | |
| box-shadow: | |
| 0 24px 70px rgba(48, 61, 66, 0.14), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.62); | |
| } | |
| .book-card__detail-cover { | |
| padding: 10px; | |
| border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); | |
| border-radius: 6px; | |
| background: color-mix(in srgb, var(--glass) 54%, transparent); | |
| } | |
| .book-card__detail-cover img { | |
| max-height: min(360px, 54vh); | |
| } | |
| .book-card__detail-view .book-card__title-zh { | |
| margin-top: 18px; | |
| font-size: clamp(30px, 2.7vw, 41px); | |
| } | |
| .book-card__intro { | |
| font-size: 15px; | |
| line-height: 1.72; | |
| } | |
| .book-card__detail-actions .book-card__action { | |
| min-width: 82px; | |
| } | |
| .share-preview { | |
| padding: 22px; | |
| background: rgba(56, 69, 70, 0.26); | |
| backdrop-filter: blur(16px) saturate(108%); | |
| -webkit-backdrop-filter: blur(16px) saturate(108%); | |
| } | |
| .share-preview__canvas { | |
| position: relative; | |
| display: grid; | |
| grid-template-rows: auto 1fr auto; | |
| width: min(430px, calc(100vw - 34px)); | |
| aspect-ratio: 3 / 4; | |
| padding: 18px 22px 20px; | |
| border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); | |
| border-radius: 10px; | |
| background: | |
| radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.42), transparent 34%), | |
| linear-gradient(165deg, rgba(248, 251, 246, 0.68), rgba(238, 246, 241, 0.52)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, auto, 420px 420px; | |
| box-shadow: | |
| 0 26px 78px rgba(20, 33, 36, 0.18), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.46); | |
| backdrop-filter: blur(18px) saturate(112%); | |
| -webkit-backdrop-filter: blur(18px) saturate(112%); | |
| } | |
| .share-preview__topbar { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 16px; | |
| min-height: 36px; | |
| } | |
| .share-preview__eyebrow { | |
| color: color-mix(in srgb, var(--ink) 58%, transparent); | |
| font-size: 13.8px; | |
| letter-spacing: 0.08em; | |
| } | |
| .share-preview__close { | |
| position: static; | |
| flex: 0 0 auto; | |
| width: 34px; | |
| height: 34px; | |
| } | |
| .share-ticket { | |
| align-self: center; | |
| justify-self: center; | |
| width: min(276px, 78%); | |
| aspect-ratio: auto; | |
| min-height: 0; | |
| max-height: 100%; | |
| border-radius: 8px; | |
| box-shadow: 0 18px 48px rgba(24, 40, 43, 0.16); | |
| } | |
| .share-ticket__cover { | |
| flex: 0 0 auto; | |
| height: 184px; | |
| margin: 12px 12px 0; | |
| border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); | |
| border-radius: 6px; | |
| background: color-mix(in srgb, var(--bg-0) 62%, transparent); | |
| } | |
| .share-ticket__cover img { | |
| width: auto; | |
| max-width: 86%; | |
| height: 100%; | |
| object-fit: contain; | |
| object-position: center; | |
| filter: drop-shadow(8px 10px 12px rgba(42, 52, 56, 0.12)); | |
| } | |
| .share-ticket__body { | |
| padding: 15px 18px 17px; | |
| } | |
| .share-ticket .book-card__title-zh { | |
| font-size: 23px; | |
| } | |
| .share-ticket .book-card__quote { | |
| font-size: 11.8px; | |
| line-height: 1.48; | |
| } | |
| .share-ticket__stamp { | |
| padding-top: 10px; | |
| border-top: 1px dashed color-mix(in srgb, var(--accent) 24%, transparent); | |
| } | |
| .share-preview__actions { | |
| display: flex; | |
| justify-content: center; | |
| padding-top: 14px; | |
| } | |
| .share-preview__save { | |
| min-width: 168px; | |
| height: 42px; | |
| color: color-mix(in srgb, var(--ink) 68%, transparent); | |
| font-size: 14.6px; | |
| } | |
| @media (max-width: 720px) { | |
| .share-preview__canvas { | |
| width: min(390px, calc(100vw - 26px)); | |
| padding: 15px 16px 18px; | |
| } | |
| .share-ticket { | |
| width: min(260px, 82%); | |
| } | |
| } | |
| /* Precise card cutouts: keep the soft card language, but cut the paper like a real bookmark stub. */ | |
| .book-ticket, | |
| .share-ticket { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 84%, #e9f3ef 16%); | |
| box-sizing: border-box; | |
| overflow: hidden; | |
| border-radius: 0; | |
| } | |
| .book-card__cover-fallback[hidden] { | |
| display: none ; | |
| } | |
| .book-ticket::before, | |
| .share-ticket::before { | |
| content: ""; | |
| position: absolute; | |
| z-index: 4; | |
| top: calc(50% + 34px); | |
| left: -13px; | |
| right: -13px; | |
| display: block; | |
| height: 26px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 13px 50%, var(--ticket-cutout-bg) 0 12px, transparent 12.8px), | |
| radial-gradient(circle at calc(100% - 13px) 50%, var(--ticket-cutout-bg) 0 12px, transparent 12.8px); | |
| } | |
| .book-ticket::after, | |
| .share-ticket::after { | |
| content: ""; | |
| position: absolute; | |
| z-index: 4; | |
| right: 20px; | |
| bottom: -7px; | |
| left: 20px; | |
| display: block; | |
| height: 14px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 12% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 31% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 50% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 69% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 88% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px); | |
| } | |
| .share-preview__canvas { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 78%, #e7f2ee 22%); | |
| box-sizing: border-box; | |
| } | |
| .share-ticket { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 76%, #e7f2ee 24%); | |
| border-color: color-mix(in srgb, var(--accent) 22%, transparent); | |
| } | |
| .book-ticket .book-card__ticket-actions, | |
| .share-ticket__stamp { | |
| padding-bottom: 3px; | |
| } | |
| @font-face { | |
| font-family: "FlyFlowerSongLocal"; | |
| src: | |
| local("飞花宋体"), | |
| local("FlyFlowerSong"), | |
| url("../public/fonts/fly-flower-song-subset.woff2") format("woff2"); | |
| font-display: swap; | |
| font-style: normal; | |
| font-weight: 400; | |
| } | |
| @font-face { | |
| font-family: "Bodoni72OldstyleLocal"; | |
| src: local("Bodoni 72 Oldstyle Book"), local("Bodoni 72 Oldstyle"); | |
| font-display: swap; | |
| font-style: normal; | |
| font-weight: 400; | |
| } | |
| @font-face { | |
| font-family: "Bodoni72OldstyleLocal"; | |
| src: local("Bodoni 72 Oldstyle Bold"); | |
| font-display: swap; | |
| font-style: normal; | |
| font-weight: 700; | |
| } | |
| :root { | |
| color-scheme: light; | |
| --cursor-drag: grab; | |
| --cursor-dragging: grabbing; | |
| --bg-0: #eef4f0; | |
| --bg-1: #e8f0ec; | |
| --bg-2: #f1eee7; | |
| --dot-ink: rgba(217, 142, 130, 0.16); | |
| --paper-wash: rgba(20, 63, 59, 0.035); | |
| --ocean-a: #f3f7f3; | |
| --ocean-b: #e1eee9; | |
| --ocean-c: #d1e2dd; | |
| --wave-line: rgba(255, 255, 248, 0.52); | |
| --land-strong: #fbf9f0; | |
| --land-mid: #f7f6ef; | |
| --land-soft: #f4f4ed; | |
| --land-faint: #f0f3ec; | |
| --land-ice: #f3f7f1; | |
| --border: rgba(85, 111, 112, 0.13); | |
| --coast-shadow: rgba(119, 154, 149, 0.24); | |
| --graticule: rgba(87, 117, 117, 0.08); | |
| --rim: rgba(81, 113, 111, 0.22); | |
| --accent: #f3806c; | |
| --accent-2: #9dbfba; | |
| --accent-3: #143f3b; | |
| --brand-chinese: var(--accent); | |
| --ink: #143f3b; | |
| --title-ink: #46505a; | |
| --city-label-zh: #b7c2bf; | |
| --city-label-en: #d4ddda; | |
| --city-label-en-active: #516a65; | |
| --city-label-ink: var(--city-label-zh); | |
| --country-label-ink: rgba(232, 239, 235, 0.76); | |
| --book-title: #1d3434; | |
| --book-meta: rgba(45, 67, 69, 0.62); | |
| --book-paper-ink: #143f3b; | |
| --muted: rgba(45, 61, 68, 0.66); | |
| --quiet: rgba(65, 84, 89, 0.34); | |
| --glass: rgba(252, 248, 239, 0.68); | |
| --glass-strong: rgba(252, 248, 239, 0.9); | |
| --glass-border: rgba(217, 142, 130, 0.24); | |
| --capsule-glass: rgba(252, 248, 239, 0.12); | |
| --capsule-glass-focus: rgba(252, 248, 239, 0.2); | |
| --shadow: 0 22px 70px rgba(71, 83, 79, 0.13); | |
| --micro-copy-size: clamp(15.8px, 1.1vw, 17px); | |
| --ambient-copy-rest: color-mix(in srgb, var(--muted) 76%, transparent); | |
| --ambient-copy-hover: var(--muted); | |
| --font-ui: "HouZunSongLocal", "猴尊宋体", "HouZunSongTi", "FlyFlowerSongLocal", "飞花宋体", "FlyFlowerSong", "Songti SC", "PingFang SC", "Hiragino Sans GB", serif; | |
| --font-display: "Bodoni72OldstyleLocal", "Bodoni 72 Oldstyle", "Bodoni 72", "New York", "Iowan Old Style", "Cormorant Garamond", "Georgia", "Times New Roman", serif; | |
| --font-zh-title: "HouZunSongLocal", "猴尊宋体", "HouZunSongTi", "FlyFlowerSongLocal", "飞花宋体", "FlyFlowerSong", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif; | |
| --font-page-control: var(--font-ui); | |
| --font-country-label: "Avenir Next", "SF Pro Text", "Helvetica Neue", Arial, sans-serif; | |
| --font-mono: "SF Mono", "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace; | |
| } | |
| :root[data-theme="dark"] { | |
| color-scheme: dark; | |
| --bg-0: #173f40; | |
| --bg-1: #255f61; | |
| --bg-2: #2d6f70; | |
| --dot-ink: rgba(230, 160, 147, 0.15); | |
| --paper-wash: rgba(247, 241, 231, 0.045); | |
| --ocean-a: #386f70; | |
| --ocean-b: #2f6869; | |
| --ocean-c: #204f50; | |
| --wave-line: rgba(206, 229, 219, 0.16); | |
| --land-strong: #548482; | |
| --land-mid: #497c7b; | |
| --land-soft: #417575; | |
| --land-faint: #3b7071; | |
| --land-ice: #3d7373; | |
| --border: rgba(234, 241, 231, 0.13); | |
| --graticule: rgba(235, 242, 232, 0.065); | |
| --rim: rgba(247, 241, 231, 0.2); | |
| --accent: #f3806c; | |
| --accent-2: #9dbfba; | |
| --accent-3: #f7f1e7; | |
| --brand-chinese: var(--accent); | |
| --ink: #f7f1e7; | |
| --title-ink: #f7f1e7; | |
| --city-label-zh: #cbd8d4; | |
| --city-label-en: #aebdb9; | |
| --city-label-en-active: #c0ccc8; | |
| --city-label-ink: var(--city-label-zh); | |
| --country-label-ink: rgba(238, 246, 240, 0.4); | |
| --book-title: #1d3434; | |
| --book-meta: rgba(45, 67, 69, 0.62); | |
| --book-paper-ink: #143f3b; | |
| --muted: rgba(247, 241, 231, 0.68); | |
| --quiet: rgba(247, 241, 231, 0.36); | |
| --glass: rgba(21, 61, 61, 0.52); | |
| --glass-strong: rgba(22, 58, 58, 0.82); | |
| --glass-border: rgba(230, 160, 147, 0.22); | |
| --capsule-glass: rgba(21, 61, 61, 0.18); | |
| --capsule-glass-focus: rgba(21, 61, 61, 0.26); | |
| --shadow: 0 28px 90px rgba(8, 27, 28, 0.42); | |
| } | |
| * { | |
| box-sizing: border-box; | |
| } | |
| html, | |
| body { | |
| width: 100%; | |
| min-height: 100%; | |
| } | |
| body { | |
| margin: 0; | |
| overflow: hidden; | |
| color: var(--muted); | |
| background: | |
| radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 24%), | |
| radial-gradient(circle at 8% 18%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 26%), | |
| linear-gradient(135deg, var(--bg-0), var(--bg-1) 55%, var(--bg-2)); | |
| font-family: var(--font-ui); | |
| transition: background 0.32s ease, color 0.32s ease; | |
| } | |
| :root[data-theme="dark"] body { | |
| background: | |
| radial-gradient(circle at 76% 16%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 25%), | |
| radial-gradient(circle at 66% 78%, rgba(157, 191, 186, 0.12), transparent 28%), | |
| radial-gradient(circle at 15% 18%, rgba(247, 241, 231, 0.075), transparent 31%), | |
| linear-gradient(135deg, var(--bg-0), var(--bg-1) 52%, var(--bg-2)); | |
| } | |
| .atlas-shell, | |
| .map-stage { | |
| width: 100vw; | |
| height: 100vh; | |
| } | |
| .map-stage { | |
| position: relative; | |
| overflow: hidden; | |
| background: | |
| linear-gradient(135deg, var(--bg-0), var(--bg-1) 54%, var(--bg-2)); | |
| } | |
| .map-stage::before, | |
| .map-stage::after { | |
| position: absolute; | |
| inset: 0; | |
| z-index: 0; | |
| pointer-events: none; | |
| content: ""; | |
| } | |
| .map-stage::before { | |
| opacity: 0.44; | |
| background-image: | |
| radial-gradient(circle, rgba(255, 255, 255, 0.36) 0 1.05px, transparent 1.32px), | |
| radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 30%), | |
| linear-gradient(90deg, color-mix(in srgb, var(--bg-0) 34%, transparent) 0 31%, transparent 50%); | |
| background-size: 14px 14px, 100% 100%, 100% 100%; | |
| background-blend-mode: normal, normal, normal; | |
| } | |
| .map-stage::after { | |
| opacity: 0.32; | |
| background: | |
| linear-gradient(90deg, color-mix(in srgb, var(--bg-0) 68%, transparent) 0 31%, transparent 48%), | |
| radial-gradient(circle at 73% 45%, transparent 0 38%, color-mix(in srgb, var(--bg-0) 18%, transparent) 67%); | |
| } | |
| .city-tile-layer { | |
| position: absolute; | |
| inset: 0; | |
| z-index: 1; | |
| overflow: hidden; | |
| opacity: 0; | |
| pointer-events: none; | |
| background: | |
| linear-gradient(180deg, color-mix(in srgb, var(--bg-0) 62%, #f7f1e7 38%), color-mix(in srgb, var(--bg-1) 70%, #e8f5ef 30%)); | |
| filter: saturate(0.56) contrast(0.86) brightness(1.08); | |
| transition: opacity 0.34s ease; | |
| } | |
| .city-tile-layer:not([hidden]) { | |
| opacity: 0.76; | |
| } | |
| .city-tile-layer::after { | |
| position: absolute; | |
| inset: 0; | |
| pointer-events: none; | |
| content: ""; | |
| background: | |
| radial-gradient(circle at 50% 48%, transparent 0 40%, color-mix(in srgb, var(--bg-0) 24%, transparent) 76%), | |
| linear-gradient(90deg, color-mix(in srgb, var(--bg-0) 18%, transparent), transparent 36%, transparent 64%, color-mix(in srgb, var(--bg-0) 18%, transparent)); | |
| } | |
| .city-tile-layer__tile { | |
| position: absolute; | |
| width: 256px; | |
| height: 256px; | |
| user-select: none; | |
| image-rendering: auto; | |
| } | |
| .city-tile-layer__attribution { | |
| position: absolute; | |
| right: 14px; | |
| bottom: 9px; | |
| color: color-mix(in srgb, var(--ink) 45%, transparent); | |
| font: 10px/1 var(--font-ui); | |
| opacity: 0.45; | |
| pointer-events: none; | |
| } | |
| :root[data-theme="dark"] .map-stage::before { | |
| opacity: 0.24; | |
| mix-blend-mode: soft-light; | |
| } | |
| :root[data-theme="dark"] .map-stage::after { | |
| opacity: 0.44; | |
| background: | |
| linear-gradient(90deg, rgba(15, 50, 51, 0.7) 0 31%, transparent 50%), | |
| radial-gradient(circle at 74% 48%, transparent 0 38%, rgba(16, 50, 51, 0.3) 68%); | |
| } | |
| .map-svg { | |
| position: absolute; | |
| inset: 0; | |
| z-index: 2; | |
| width: 100%; | |
| height: 100%; | |
| cursor: grab; | |
| touch-action: none; | |
| user-select: none; | |
| } | |
| .halftone-canvas { | |
| position: absolute; | |
| inset: 0; | |
| z-index: 1; | |
| width: 100%; | |
| height: 100%; | |
| opacity: 0; | |
| pointer-events: none; | |
| mix-blend-mode: normal; | |
| transition: opacity 180ms ease; | |
| } | |
| :root.is-halftone-ready .halftone-canvas { | |
| opacity: 1; | |
| } | |
| :root[data-theme="dark"].is-halftone-ready .halftone-canvas { | |
| opacity: 0.3; | |
| mix-blend-mode: soft-light; | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .halftone-canvas { | |
| display: none; | |
| } | |
| .hero-kicker, | |
| .hero-copy h1, | |
| .hero-tagline, | |
| .search-capsule, | |
| .drag-hint, | |
| .special-capsule { | |
| animation: none ; | |
| } | |
| .search-capsule:focus-within::before { | |
| animation: none; | |
| } | |
| .search-results { | |
| animation: none ; | |
| } | |
| .music-signature__wave { | |
| animation: none ; | |
| } | |
| } | |
| /* Temporary detail-meta exception; replace with a general fitting rule later. */ | |
| .book-card__detail-view[data-book-id="chn-quanzhou--isbn-9787108059628"] .book-card__meta { | |
| font-size: 12px ; | |
| white-space: nowrap ; | |
| } | |
| .city-label-layer { | |
| position: absolute; | |
| inset: 0; | |
| z-index: 3; | |
| overflow: hidden; | |
| pointer-events: none; | |
| } | |
| .special-overlay-svg, | |
| .special-label-layer, | |
| .special-book-layer { | |
| position: absolute; | |
| inset: 0; | |
| overflow: hidden; | |
| } | |
| .special-overlay-svg { | |
| z-index: 4; | |
| pointer-events: none; | |
| } | |
| .special-label-layer { | |
| z-index: 5; | |
| pointer-events: none; | |
| } | |
| .special-book-layer { | |
| z-index: 5; | |
| pointer-events: none; | |
| } | |
| :root.is-special-city-map .special-overlay-svg, | |
| :root.is-special-city-map .special-book-layer { | |
| opacity: 1; | |
| visibility: visible; | |
| pointer-events: none; | |
| transition: opacity 0.34s ease; | |
| } | |
| :root.is-special-city-map .special-overlay-svg.is-loading, | |
| :root.is-special-city-map .special-book-layer.is-loading { | |
| opacity: 0; | |
| } | |
| :root.is-special-city-map .special-book { | |
| touch-action: none; | |
| opacity: 1; | |
| transform: translate3d(var(--book-x), var(--book-y), 0) translate(-50%, -50%) scale(1); | |
| animation: none; | |
| } | |
| .special-capsule { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 7px; | |
| min-height: 27px; | |
| padding: 4px 12px; | |
| border: 1px solid var(--glass-border); | |
| border-radius: 999px; | |
| color: var(--book-paper-ink); | |
| background: | |
| linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 68%), | |
| var(--glass); | |
| background-size: auto; | |
| background-blend-mode: normal; | |
| box-shadow: 0 14px 34px rgba(56, 67, 65, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.68); | |
| cursor: pointer; | |
| opacity: 0.88; | |
| pointer-events: auto; | |
| transform: translate3d(var(--special-x), var(--special-y), 0); | |
| transition: border-color 0.18s ease, opacity 0.18s ease; | |
| animation: special-capsule-float-in 0.64s cubic-bezier(0.18, 0.86, 0.22, 1) 0.32s backwards; | |
| backdrop-filter: blur(24px) saturate(145%); | |
| -webkit-backdrop-filter: blur(24px) saturate(145%); | |
| } | |
| .special-capsule:hover, | |
| .special-capsule:focus { | |
| border-color: color-mix(in srgb, var(--accent) 32%, transparent); | |
| opacity: 1; | |
| outline: none; | |
| transform: translate3d(var(--special-x), calc(var(--special-y) - 1px), 0); | |
| } | |
| .special-capsule[hidden] { | |
| display: none; | |
| } | |
| .special-capsule__mark { | |
| width: 15.5px; | |
| height: 15.5px; | |
| flex: 0 0 auto; | |
| color: var(--brand-chinese); | |
| overflow: visible; | |
| transform: translateY(0.2px); | |
| } | |
| .special-capsule__mark path { | |
| stroke: currentColor; | |
| stroke-linecap: round; | |
| stroke-linejoin: round; | |
| stroke-width: 1.35; | |
| vector-effect: non-scaling-stroke; | |
| } | |
| .special-capsule__mark-book-depth { | |
| fill: none; | |
| opacity: 1; | |
| } | |
| .special-capsule__mark-book { | |
| fill: none; | |
| opacity: 1; | |
| } | |
| .special-capsule__mark-spine { | |
| fill: none; | |
| opacity: 1; | |
| } | |
| .special-capsule__mark-pin { | |
| fill: none; | |
| } | |
| .special-capsule__title { | |
| color: var(--brand-chinese); | |
| font-family: var(--font-zh-title); | |
| font-size: 13.5px; | |
| font-weight: 400; | |
| letter-spacing: 0.04em; | |
| line-height: 1; | |
| white-space: nowrap; | |
| transform: translateY(-0.15px); | |
| } | |
| .special-book-line { | |
| fill: none; | |
| stroke: color-mix(in srgb, var(--ink) 26%, transparent); | |
| stroke-linecap: round; | |
| stroke-width: 0.82; | |
| opacity: 0; | |
| vector-effect: non-scaling-stroke; | |
| animation: special-line-in 0.58s ease forwards; | |
| } | |
| .special-book-line.is-hovered { | |
| stroke: color-mix(in srgb, var(--accent) 72%, transparent); | |
| stroke-width: 1.35; | |
| opacity: 0.86; | |
| } | |
| .special-book-line--peek { | |
| stroke: color-mix(in srgb, var(--ink) 18%, transparent); | |
| stroke-width: 0.68; | |
| } | |
| :root.is-special-city-map .special-book-line { | |
| stroke: color-mix(in srgb, var(--ink) 36%, transparent); | |
| stroke-width: 1.36; | |
| opacity: 0.52; | |
| stroke-dasharray: 1 0; | |
| animation: none; | |
| } | |
| :root[data-theme="dark"].is-special-city-map .special-book-line { | |
| stroke: color-mix(in srgb, #fff8ec 62%, transparent); | |
| stroke-width: 1.46; | |
| opacity: 0.64; | |
| } | |
| :root.is-special-city-map .special-book-line.is-hovered { | |
| stroke: color-mix(in srgb, var(--accent) 90%, var(--ink) 10%); | |
| stroke-width: 1.72; | |
| opacity: 1; | |
| animation: none; | |
| } | |
| :root[data-theme="dark"].is-special-city-map .special-book-line.is-hovered { | |
| stroke: color-mix(in srgb, #fff8ec 72%, var(--accent) 28%); | |
| stroke-width: 1.9; | |
| } | |
| .special-book-anchor { | |
| color: var(--accent); | |
| opacity: 0; | |
| pointer-events: none; | |
| animation: special-line-in 0.58s ease forwards; | |
| animation-delay: var(--book-delay); | |
| } | |
| .special-book-anchor__halo { | |
| fill: currentColor; | |
| opacity: 0.24; | |
| vector-effect: non-scaling-stroke; | |
| } | |
| .special-book-anchor__dot { | |
| fill: currentColor; | |
| stroke: color-mix(in srgb, #fff 82%, var(--accent) 18%); | |
| stroke-width: 0.8; | |
| vector-effect: non-scaling-stroke; | |
| } | |
| .special-book-anchor.is-hovered .special-book-anchor__halo { | |
| opacity: 0.42; | |
| } | |
| .special-book-anchor.is-hovered .special-book-anchor__dot { | |
| color: var(--accent); | |
| } | |
| :root.is-special-city-map .special-book-anchor { | |
| --special-anchor-opacity: 0.78; | |
| opacity: var(--special-anchor-opacity); | |
| animation: none; | |
| } | |
| :root.is-special-city-map .special-book-anchor__halo { | |
| opacity: 0.36; | |
| } | |
| :root.is-special-city-map .special-book-anchor__dot { | |
| stroke: color-mix(in srgb, #fff 88%, var(--accent) 12%); | |
| stroke-width: 0.9; | |
| } | |
| :root.is-special-city-map .special-book-anchor.is-hovered { | |
| --special-anchor-opacity: 0.98; | |
| opacity: var(--special-anchor-opacity); | |
| } | |
| :root.is-special-city-map .special-book-anchor.is-hovered .special-book-anchor__halo { | |
| opacity: 0.58; | |
| } | |
| :root.is-special-city-map .special-book-anchor.is-hovered .special-book-anchor__dot { | |
| stroke-width: 1.05; | |
| } | |
| .special-overlay-svg.is-loading .special-book-line, | |
| .special-overlay-svg.is-loading .special-book-anchor { | |
| opacity: 0; | |
| animation: none; | |
| } | |
| :root:not(.is-special-city-map) .special-overlay-svg.is-ready .special-book-line { | |
| opacity: 0.38; | |
| animation: none; | |
| } | |
| :root:not(.is-special-city-map) .special-overlay-svg.is-ready .special-book-anchor { | |
| opacity: 0.38; | |
| animation: none; | |
| } | |
| .special-book-anchor--peek .special-book-anchor__halo { | |
| opacity: 0.16; | |
| } | |
| .special-book-anchor--peek .special-book-anchor__dot { | |
| opacity: 0.82; | |
| } | |
| .special-book { | |
| position: absolute; | |
| z-index: 1; | |
| top: 0; | |
| left: 0; | |
| display: grid; | |
| width: 210px; | |
| padding: 0; | |
| border: 0; | |
| color: var(--ink); | |
| background: transparent; | |
| cursor: pointer; | |
| opacity: 0; | |
| pointer-events: auto; | |
| text-align: left; | |
| transform: translate3d(var(--book-x), var(--book-y), 0) translate(-50%, -50%) scale(0.9); | |
| transform-origin: center center; | |
| animation: special-book-in 0.46s cubic-bezier(0.2, 0.86, 0.22, 1) forwards; | |
| animation-delay: var(--book-delay); | |
| } | |
| .special-book-layer.is-loading .special-book { | |
| opacity: 0; | |
| animation: none; | |
| } | |
| .special-book-layer.is-ready .special-book { | |
| opacity: 1; | |
| transform: translate3d(var(--book-x), var(--book-y), 0) translate(-50%, -50%) scale(1); | |
| animation: none; | |
| } | |
| .special-book.is-dragging { | |
| z-index: 30; | |
| cursor: grabbing; | |
| animation: none; | |
| opacity: 1; | |
| } | |
| .special-book:hover, | |
| .special-book:focus-within, | |
| .special-book.is-stack-active { | |
| z-index: 12; | |
| } | |
| .special-book__hit { | |
| position: relative; | |
| z-index: 5; | |
| display: grid; | |
| width: 150px; | |
| justify-self: center; | |
| padding: 0; | |
| border: 0; | |
| color: inherit; | |
| background: transparent; | |
| cursor: pointer; | |
| text-align: left; | |
| filter: | |
| drop-shadow(0 0 18px rgba(45, 48, 43, 0.15)) | |
| drop-shadow(0 10px 28px rgba(45, 48, 43, 0.08)); | |
| transform: scale(1); | |
| transition: filter 0.18s ease, transform 0.18s ease; | |
| } | |
| .special-book:hover, | |
| .special-book:focus { | |
| outline: none; | |
| } | |
| .special-book:hover .special-book__hit, | |
| .special-book:focus-within .special-book__hit, | |
| .special-book.is-hovered .special-book__hit { | |
| transform: scale(1.055); | |
| filter: | |
| drop-shadow(0 0 20px rgba(45, 48, 43, 0.16)) | |
| drop-shadow(0 12px 32px rgba(45, 48, 43, 0.09)); | |
| } | |
| .special-book:hover .special-book__bookmark, | |
| .special-book:focus-within .special-book__bookmark, | |
| .special-book.is-hovered .special-book__bookmark { | |
| border-color: color-mix(in srgb, var(--accent) 46%, transparent); | |
| transform: translateY(-3px); | |
| filter: | |
| brightness(var(--special-book-layer-brightness, 1)) | |
| saturate(var(--special-book-layer-saturation, 1)); | |
| } | |
| .special-book__bookmark { | |
| position: relative; | |
| display: flex; | |
| flex-direction: column; | |
| width: 150px; | |
| min-height: 0; | |
| margin-inline: auto; | |
| overflow: hidden; | |
| padding: 0; | |
| border: 0; | |
| border-radius: 0; | |
| -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); | |
| clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); | |
| background: | |
| linear-gradient(180deg, rgba(80, 96, 80, var(--special-book-layer-wash, 0)), rgba(64, 78, 66, var(--special-book-layer-wash, 0))), | |
| linear-gradient(180deg, rgba(255, 252, 244, 0.94), rgba(247, 239, 223, 0.9)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, auto, 320px 320px; | |
| box-shadow: none; | |
| filter: | |
| brightness(var(--special-book-layer-brightness, 1)) | |
| saturate(var(--special-book-layer-saturation, 1)); | |
| transition: border-color 0.18s ease, filter 0.18s ease, transform 0.18s ease; | |
| } | |
| .special-book__cover { | |
| position: relative; | |
| display: block; | |
| width: 100%; | |
| aspect-ratio: auto; | |
| overflow: visible; | |
| border: 0; | |
| border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); | |
| background: | |
| linear-gradient(180deg, rgba(255, 250, 238, 0.78), rgba(238, 231, 214, 0.6)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 260px 260px; | |
| } | |
| .special-book__cover img { | |
| display: block; | |
| width: 100%; | |
| height: auto; | |
| min-height: 0; | |
| max-height: none; | |
| object-fit: contain; | |
| object-position: center top; | |
| opacity: 1; | |
| transition: opacity 180ms ease; | |
| } | |
| .special-book__cover.is-cover-loading img { | |
| opacity: 0; | |
| } | |
| .special-book__fallback { | |
| display: grid; | |
| width: 100%; | |
| height: 100%; | |
| min-height: 0; | |
| place-items: center; | |
| color: color-mix(in srgb, var(--ink) 64%, transparent); | |
| font-family: var(--font-mono); | |
| font-size: 11px; | |
| font-weight: 860; | |
| letter-spacing: 0.08em; | |
| } | |
| .special-book__body { | |
| display: flex; | |
| flex: 1; | |
| flex-direction: column; | |
| min-width: 0; | |
| padding: 9px 11px 15px; | |
| } | |
| .special-book__peek { | |
| position: absolute; | |
| bottom: calc(var(--peek-order, 1) * -12px); | |
| left: calc(50% + var(--peek-order, 1) * 20px - 75px); | |
| z-index: 1; | |
| display: grid; | |
| width: 150px; | |
| min-height: 238px; | |
| padding: 0; | |
| overflow: visible; | |
| border: 0; | |
| background: transparent; | |
| cursor: pointer; | |
| filter: | |
| drop-shadow( | |
| var(--special-book-peek-shadow-x, 7px) | |
| var(--special-book-peek-shadow-y, 12px) | |
| var(--special-book-peek-shadow-blur, 13px) | |
| rgba(42, 53, 68, var(--special-book-peek-shadow-alpha, 0.12)) | |
| ); | |
| opacity: 1; | |
| pointer-events: auto; | |
| transform: none; | |
| transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease; | |
| } | |
| .special-book__peek:hover, | |
| .special-book__peek:focus-visible { | |
| opacity: 1; | |
| outline: none; | |
| transform: translateY(-2px); | |
| filter: | |
| drop-shadow( | |
| var(--special-book-peek-shadow-hover-x, 8px) | |
| var(--special-book-peek-shadow-hover-y, 13px) | |
| var(--special-book-peek-shadow-hover-blur, 15px) | |
| rgba(42, 53, 68, var(--special-book-peek-shadow-hover-alpha, 0.16)) | |
| ); | |
| } | |
| .special-book__peek .special-book__bookmark { | |
| margin-inline: 0; | |
| } | |
| .special-book__peek img { | |
| display: block; | |
| width: 100%; | |
| height: auto; | |
| } | |
| .special-book__peek--1 { | |
| --peek-order: 1; | |
| --special-book-layer-wash: 0.024; | |
| --special-book-layer-brightness: 0.997; | |
| --special-book-layer-saturation: 0.994; | |
| --special-book-peek-shadow-alpha: 0.14; | |
| --special-book-peek-shadow-hover-alpha: 0.17; | |
| z-index: 3; | |
| } | |
| .special-book__peek--2 { | |
| --peek-order: 2; | |
| --special-book-layer-wash: 0.052; | |
| --special-book-layer-brightness: 0.993; | |
| --special-book-layer-saturation: 0.987; | |
| --special-book-peek-shadow-alpha: 0.16; | |
| --special-book-peek-shadow-hover-alpha: 0.19; | |
| z-index: 2; | |
| } | |
| .special-book__peek--3 { | |
| --peek-order: 3; | |
| --special-book-layer-wash: 0.078; | |
| --special-book-layer-brightness: 0.989; | |
| --special-book-layer-saturation: 0.98; | |
| --special-book-peek-shadow-alpha: 0.18; | |
| --special-book-peek-shadow-hover-alpha: 0.21; | |
| z-index: 1; | |
| } | |
| .special-book-stack .special-book__hit .special-book__bookmark { | |
| z-index: 4; | |
| } | |
| .special-book-stack.is-multi .special-book__hit { | |
| padding: 0; | |
| } | |
| .special-book__context { | |
| display: flex; | |
| align-items: baseline; | |
| gap: 4px; | |
| min-width: 0; | |
| overflow: hidden; | |
| color: var(--accent); | |
| font-family: var(--font-ui); | |
| font-size: 11px; | |
| font-weight: 760; | |
| letter-spacing: 0.055em; | |
| line-height: 1.12; | |
| white-space: nowrap; | |
| } | |
| .special-book__context-zh, | |
| .special-book__context-en, | |
| .special-book__context-divider { | |
| flex: 0 0 auto; | |
| overflow: hidden; | |
| color: inherit; | |
| font: inherit; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } | |
| .special-book__context-zh { | |
| flex: 0 0 auto; | |
| } | |
| .special-book__context-en { | |
| min-width: 0; | |
| } | |
| .special-book__context-divider { | |
| flex: 0 0 auto; | |
| } | |
| .special-book__rule { | |
| display: block; | |
| width: auto; | |
| height: 1px; | |
| margin-top: 6px; | |
| margin-right: -11px; | |
| margin-left: -11px; | |
| border-top: 1px dashed color-mix(in srgb, var(--ink) 20%, transparent); | |
| } | |
| .special-book__meta { | |
| display: block; | |
| margin-top: 5px; | |
| overflow: hidden; | |
| color: color-mix(in srgb, var(--book-paper-ink) 52%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 8.8px; | |
| font-weight: 560; | |
| letter-spacing: 0.01em; | |
| line-height: 1.2; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } | |
| .special-book__title { | |
| display: -webkit-box; | |
| margin-top: 5px; | |
| overflow: hidden; | |
| color: color-mix(in srgb, var(--book-title) 92%, var(--ink) 8%); | |
| font-family: var(--font-zh-title); | |
| font-size: 15.4px; | |
| font-weight: 560; | |
| letter-spacing: 0; | |
| line-height: 1.16; | |
| -webkit-box-orient: vertical; | |
| -webkit-line-clamp: 2; | |
| transition: color 0.18s ease; | |
| } | |
| .special-book__quote { | |
| display: -webkit-box; | |
| margin-top: 4px; | |
| overflow: hidden; | |
| color: color-mix(in srgb, var(--book-paper-ink) 66%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 9.6px; | |
| font-weight: 500; | |
| line-height: 1.25; | |
| -webkit-box-orient: vertical; | |
| -webkit-line-clamp: 2; | |
| } | |
| .special-book:hover .special-book__title, | |
| .special-book:focus .special-book__title, | |
| .special-book.is-hovered .special-book__title { | |
| color: color-mix(in srgb, var(--accent) 34%, var(--ink)); | |
| } | |
| :root[data-theme="dark"].is-special-city-map .special-book:hover .special-book__title, | |
| :root[data-theme="dark"].is-special-city-map .special-book:focus .special-book__title, | |
| :root[data-theme="dark"].is-special-city-map .special-book.is-hovered .special-book__title { | |
| color: color-mix(in srgb, var(--book-title) 92%, var(--ink) 8%); | |
| } | |
| .special-book[data-book-id="chn-beijing--douban-26580056"] .special-book__title { | |
| display: block; | |
| word-break: keep-all; | |
| overflow-wrap: normal; | |
| font-size: 11.4px; | |
| line-height: 1.12; | |
| white-space: nowrap; | |
| text-overflow: clip; | |
| } | |
| .special-book--empty { | |
| cursor: default; | |
| } | |
| .special-book--empty .special-book__bookmark { | |
| border-style: dashed; | |
| opacity: 1; | |
| } | |
| @media (max-width: 1500px), (max-height: 1120px) { | |
| :root.is-special-city-map .special-book { | |
| width: 164px; | |
| touch-action: none; | |
| } | |
| :root.is-special-city-map .special-book__hit, | |
| :root.is-special-city-map .special-book__bookmark { | |
| width: 116px; | |
| } | |
| :root.is-special-city-map .special-book__body { | |
| padding: 7px 9px 12px; | |
| } | |
| :root.is-special-city-map .special-book__context { | |
| gap: 3px; | |
| font-size: 8.7px; | |
| } | |
| :root.is-special-city-map .special-book__context-en, | |
| :root.is-special-city-map .special-book__context-divider { | |
| font-size: 7.4px; | |
| } | |
| :root.is-special-city-map .special-book__title { | |
| margin-top: 4px; | |
| font-size: 12.6px; | |
| line-height: 1.14; | |
| } | |
| :root.is-special-city-map .special-book__rule { | |
| margin-top: 4px; | |
| margin-right: -9px; | |
| margin-left: -9px; | |
| } | |
| :root.is-special-city-map .special-book__meta { | |
| margin-top: 4px; | |
| font-size: 7.4px; | |
| } | |
| :root.is-special-city-map .special-book__quote { | |
| margin-top: 3px; | |
| font-size: 8.2px; | |
| line-height: 1.2; | |
| } | |
| } | |
| .special-context { | |
| --context-opacity: 0.3; | |
| fill: none; | |
| stroke-linecap: round; | |
| stroke-linejoin: round; | |
| pointer-events: none; | |
| vector-effect: non-scaling-stroke; | |
| opacity: 0; | |
| animation: context-in 0.58s ease forwards; | |
| } | |
| .special-context--road { | |
| --context-opacity: 0.28; | |
| stroke: color-mix(in srgb, var(--ink) 24%, var(--accent) 18%); | |
| stroke-width: 0.58; | |
| } | |
| .special-context--road-motorway, | |
| .special-context--road-trunk, | |
| .special-context--road-primary, | |
| .special-context--road-secondary, | |
| .special-context--road-tertiary { | |
| fill: none; | |
| stroke-linecap: round; | |
| stroke-linejoin: round; | |
| } | |
| .special-context--road-motorway, | |
| .special-context--road-trunk { | |
| --context-opacity: 0.5; | |
| stroke: color-mix(in srgb, var(--accent) 42%, var(--ink) 20%); | |
| stroke-width: 1.04; | |
| } | |
| .special-context--road-primary { | |
| --context-opacity: 0.45; | |
| stroke: color-mix(in srgb, var(--accent) 32%, var(--ink) 24%); | |
| stroke-width: 0.78; | |
| } | |
| .special-context--road-secondary { | |
| --context-opacity: 0.38; | |
| stroke: color-mix(in srgb, var(--ink) 30%, var(--accent) 14%); | |
| stroke-width: 0.54; | |
| } | |
| .special-context--road-tertiary { | |
| --context-opacity: 0.3; | |
| stroke: color-mix(in srgb, var(--ink) 22%, transparent); | |
| stroke-width: 0.38; | |
| } | |
| .special-context--rail { | |
| --context-opacity: 0.32; | |
| fill: none; | |
| stroke: color-mix(in srgb, var(--ink) 34%, transparent); | |
| stroke-width: 0.46; | |
| stroke-dasharray: 2 2; | |
| } | |
| .special-context--land { | |
| --context-opacity: 0.46; | |
| fill: color-mix(in srgb, var(--land-strong) 82%, #fbf6eb 18%); | |
| stroke: color-mix(in srgb, var(--border) 54%, transparent); | |
| stroke-width: 0.38; | |
| mix-blend-mode: normal; | |
| } | |
| .special-context--water-area { | |
| --context-opacity: 0.28; | |
| fill: color-mix(in srgb, #9fc8c7 34%, transparent); | |
| stroke: color-mix(in srgb, #6f9fa2 30%, transparent); | |
| stroke-width: 0.24; | |
| mix-blend-mode: multiply; | |
| } | |
| .special-context--water { | |
| --context-opacity: 0.34; | |
| stroke: color-mix(in srgb, #5f98a1 54%, transparent); | |
| stroke-width: 0.72; | |
| } | |
| .special-context--water-line { | |
| --context-opacity: 0.2; | |
| fill: none; | |
| stroke: color-mix(in srgb, #5f98a1 48%, transparent); | |
| stroke-width: 0.34; | |
| } | |
| .special-context--green { | |
| --context-opacity: 0.22; | |
| fill: color-mix(in srgb, #9ebd93 42%, transparent); | |
| stroke: color-mix(in srgb, #8aa37d 18%, transparent); | |
| stroke-width: 0.22; | |
| mix-blend-mode: multiply; | |
| } | |
| .special-context--building { | |
| --context-opacity: 0.23; | |
| fill: color-mix(in srgb, var(--ink) 24%, transparent); | |
| stroke: color-mix(in srgb, var(--ink) 18%, transparent); | |
| stroke-width: 0.16; | |
| } | |
| .special-boundary { | |
| fill: color-mix(in srgb, var(--accent) 17%, transparent); | |
| stroke: color-mix(in srgb, var(--accent) 40%, var(--ink) 18%); | |
| stroke-linejoin: round; | |
| stroke-width: 0.72; | |
| opacity: 0; | |
| pointer-events: none; | |
| vector-effect: non-scaling-stroke; | |
| mix-blend-mode: multiply; | |
| animation: boundary-in 0.5s ease forwards; | |
| } | |
| .city-html-marker { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| min-width: max-content; | |
| --marker-scale: 1; | |
| --marker-x: -9999px; | |
| --marker-y: -9999px; | |
| --label-x: 9px; | |
| --label-y: -24px; | |
| --label-align: left; | |
| --label-width: 62px; | |
| --dot-size: 5px; | |
| --halo-size: 10px; | |
| opacity: 1; | |
| text-align: left; | |
| pointer-events: auto; | |
| transform: translate3d(var(--marker-x), var(--marker-y), 0) scale(var(--marker-scale)); | |
| transform-origin: center center; | |
| transition: opacity 0.18s ease; | |
| } | |
| .city-html-marker.is-hovered, | |
| .city-html-marker.is-active { | |
| --marker-scale: 1.1; | |
| opacity: 1; | |
| z-index: 3; | |
| } | |
| .city-html-marker__halo, | |
| .city-html-marker__point { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| border-radius: 999px; | |
| transform: translate(-50%, -50%); | |
| } | |
| .city-html-marker__halo { | |
| width: var(--halo-size); | |
| height: var(--halo-size); | |
| background: var(--accent); | |
| opacity: 0.24; | |
| transition: opacity 0.18s ease; | |
| } | |
| .city-html-marker__point { | |
| width: var(--dot-size); | |
| height: var(--dot-size); | |
| border: 0.8px solid color-mix(in srgb, #fff 82%, var(--accent) 18%); | |
| background: var(--accent); | |
| box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent); | |
| } | |
| .city-html-marker.is-hovered .city-html-marker__halo, | |
| .city-html-marker.is-active .city-html-marker__halo { | |
| opacity: 0.42; | |
| } | |
| .city-html-marker__label { | |
| position: absolute; | |
| top: var(--label-y); | |
| left: var(--label-x); | |
| display: block; | |
| width: var(--label-width); | |
| text-align: var(--label-align); | |
| /* Keep the text on the marker's single moving layer to avoid subpixel shimmer. */ | |
| transform: none; | |
| transform-origin: left center; | |
| transition: color 0.18s ease, opacity 0.18s ease; | |
| } | |
| .city-html-marker.is-label-outside-globe .city-html-marker__label { | |
| opacity: 0; | |
| pointer-events: none; | |
| transition: none; | |
| } | |
| .city-html-marker__zh, | |
| .city-html-marker__en { | |
| display: block; | |
| white-space: nowrap; | |
| } | |
| .city-html-marker__zh { | |
| color: var(--city-label-zh); | |
| font-family: var(--font-ui); | |
| font-size: 9.2px; | |
| font-weight: 560; | |
| letter-spacing: 0.075em; | |
| line-height: 11.8px; | |
| transition: color 0.18s ease, font-size 0.18s ease, opacity 0.18s ease; | |
| } | |
| .city-html-marker__en { | |
| margin-top: -2px; | |
| color: var(--city-label-en); | |
| font-family: var(--font-display); | |
| font-size: 6.4px; | |
| font-weight: 300; | |
| letter-spacing: 0.055em; | |
| line-height: 8.8px; | |
| transition: color 0.18s ease, font-size 0.18s ease, opacity 0.18s ease; | |
| } | |
| .city-html-marker.is-hovered .city-html-marker__zh, | |
| .city-html-marker.is-active .city-html-marker__zh { | |
| color: var(--accent); | |
| font-size: 10.2px; | |
| opacity: 1; | |
| } | |
| .city-html-marker.is-hovered .city-html-marker__en, | |
| .city-html-marker.is-active .city-html-marker__en { | |
| color: var(--city-label-en-active); | |
| font-size: 7px; | |
| } | |
| :root[data-theme="dark"] .city-html-marker__zh { | |
| color: var(--city-label-zh); | |
| } | |
| :root[data-theme="dark"] .city-html-marker__en { | |
| color: var(--city-label-en); | |
| } | |
| :root[data-theme="dark"] .city-html-marker.is-hovered .city-html-marker__zh, | |
| :root[data-theme="dark"] .city-html-marker.is-active .city-html-marker__zh { | |
| color: var(--accent); | |
| } | |
| :root[data-theme="dark"] .city-html-marker.is-hovered .city-html-marker__en, | |
| :root[data-theme="dark"] .city-html-marker.is-active .city-html-marker__en { | |
| color: var(--city-label-en-active); | |
| } | |
| .map-svg.is-dragging { | |
| cursor: grabbing; | |
| } | |
| :root.is-special-view .map-svg, | |
| :root.is-special-view .map-svg.is-dragging { | |
| cursor: default; | |
| } | |
| .hero-copy { | |
| position: absolute; | |
| --hero-line-width: clamp(314px, 27.08vw, 344px); | |
| top: clamp(58px, 8.6vh, 92px); | |
| left: clamp(34px, 4.4vw, 66px); | |
| z-index: 4; | |
| width: min(520px, calc(100vw - 56px)); | |
| color: var(--ink); | |
| pointer-events: none; | |
| } | |
| .hero-kicker { | |
| margin: 0 0 14px; | |
| color: var(--brand-chinese); | |
| font-family: var(--font-ui); | |
| font-size: clamp(20.2px, 2.38vw, 30.2px); | |
| font-synthesis: none; | |
| font-weight: 400; | |
| letter-spacing: 0.1em; | |
| animation: hero-float-in-nw 0.74s cubic-bezier(0.18, 0.86, 0.22, 1) 0.08s backwards; | |
| } | |
| .hero-copy h1 { | |
| margin: 0; | |
| max-width: 560px; | |
| color: var(--title-ink); | |
| font-family: var(--font-display); | |
| font-size: clamp(84px, 10.35vw, 152px); | |
| font-style: normal; | |
| font-synthesis: none; | |
| font-kerning: normal; | |
| font-feature-settings: "kern" 1; | |
| text-rendering: optimizeLegibility; | |
| font-weight: 400; | |
| letter-spacing: 0; | |
| line-height: 0.8; | |
| text-shadow: 0 18px 38px rgba(65, 48, 38, 0.055); | |
| animation: hero-title-float-in-up 1.06s cubic-bezier(0.18, 0.86, 0.22, 1) 0.18s backwards; | |
| } | |
| .hero-title__word { | |
| display: inline-block; | |
| } | |
| .hero-title__word--citybook { | |
| white-space: nowrap; | |
| } | |
| .hero-title__initial, | |
| .hero-title__rest { | |
| display: inline-block; | |
| } | |
| .hero-title__rest { | |
| margin-left: -0.105em; | |
| } | |
| .hero-title__citybook-y { | |
| display: inline-block; | |
| margin-left: 0.035em; | |
| } | |
| .hero-title__citybook-k { | |
| display: inline-block; | |
| margin-left: -0.03em; | |
| } | |
| .hero-tagline { | |
| width: max-content; | |
| max-width: calc(100vw - 56px); | |
| margin: clamp(22px, 2.6vw, 34px) 0 0; | |
| color: var(--muted); | |
| font-family: var(--font-ui); | |
| font-size: clamp(16.8px, 1.984vw, 25.2px); | |
| font-weight: 540; | |
| line-height: 1.72; | |
| letter-spacing: 0.045em; | |
| white-space: nowrap; | |
| animation: hero-title-float-in-up 1.06s cubic-bezier(0.18, 0.86, 0.22, 1) 0.18s backwards; | |
| } | |
| .search-capsule { | |
| position: relative; | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| width: min(var(--hero-line-width), calc(100vw - 56px)); | |
| height: 50px; | |
| margin-top: 24px; | |
| padding: 0 18px; | |
| border: 1px solid var(--glass-border); | |
| border-radius: 999px; | |
| background: | |
| linear-gradient(135deg, rgba(255, 255, 250, 0.04), rgba(248, 250, 243, 0)), | |
| var(--capsule-glass); | |
| background-blend-mode: normal, normal; | |
| box-shadow: | |
| 0 14px 30px rgba(56, 67, 65, 0.09), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.72), | |
| inset 0 -1px 0 rgba(255, 255, 255, 0.2); | |
| isolation: isolate; | |
| pointer-events: auto; | |
| transform: translateY(0); | |
| transition: | |
| border-color 0.18s ease, | |
| background 0.18s ease, | |
| box-shadow 0.18s ease, | |
| transform 0.18s ease; | |
| animation: search-float-in-up 0.86s cubic-bezier(0.18, 0.86, 0.22, 1) 0.48s backwards; | |
| backdrop-filter: blur(1.6px) saturate(118%); | |
| -webkit-backdrop-filter: blur(1.6px) saturate(118%); | |
| } | |
| .search-capsule::before { | |
| position: absolute; | |
| inset: 0; | |
| z-index: -1; | |
| border-radius: inherit; | |
| background: transparent; | |
| box-shadow: | |
| 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent), | |
| 0 0 16px color-mix(in srgb, var(--accent) 18%, transparent), | |
| 10px 0 18px color-mix(in srgb, var(--accent-2) 10%, transparent); | |
| content: ""; | |
| filter: blur(6px); | |
| opacity: 0; | |
| transform: scaleX(0.99) scaleY(0.94); | |
| transition: opacity 0.22s ease, transform 0.34s cubic-bezier(0.18, 0.9, 0.24, 1.18); | |
| pointer-events: none; | |
| } | |
| :root[data-theme="dark"] .search-capsule { | |
| background: | |
| linear-gradient(135deg, rgba(255, 255, 250, 0.04), rgba(18, 54, 54, 0.02)), | |
| var(--capsule-glass); | |
| box-shadow: 0 14px 36px rgba(8, 27, 28, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14); | |
| } | |
| .search-capsule:focus-within { | |
| border-color: color-mix(in srgb, var(--accent) 38%, var(--glass-border)); | |
| background: | |
| linear-gradient(135deg, rgba(255, 255, 250, 0.08), rgba(248, 250, 243, 0.02)), | |
| var(--capsule-glass-focus); | |
| box-shadow: 0 16px 38px rgba(56, 67, 65, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72); | |
| transform: translateY(-1px); | |
| } | |
| .search-capsule:focus-within::before { | |
| opacity: 1; | |
| transform: scaleX(1) scaleY(1); | |
| animation: search-focus-glow 1.8s ease-in-out infinite alternate; | |
| } | |
| .search-mark { | |
| --search-mark-y: 0px; | |
| position: relative; | |
| z-index: 1; | |
| width: 14px; | |
| height: 14px; | |
| border: 1.7px solid color-mix(in srgb, var(--muted) 72%, transparent); | |
| border-radius: 999px; | |
| flex: 0 0 auto; | |
| transform: translateY(var(--search-mark-y)); | |
| transform-origin: center; | |
| transition: border-color 0.2s ease, transform 0.24s cubic-bezier(0.18, 0.9, 0.24, 1.14); | |
| } | |
| .search-mark::after { | |
| position: absolute; | |
| right: -5px; | |
| bottom: -4px; | |
| width: 6px; | |
| height: 1.7px; | |
| border-radius: 999px; | |
| background: color-mix(in srgb, var(--muted) 72%, transparent); | |
| content: ""; | |
| transform: rotate(45deg); | |
| transform-origin: left center; | |
| transition: background 0.2s ease; | |
| } | |
| .search-capsule:focus-within .search-mark { | |
| border-color: color-mix(in srgb, var(--accent) 88%, transparent); | |
| transform: translateY(var(--search-mark-y)) scale(0.86); | |
| } | |
| .search-capsule:focus-within .search-mark::after { | |
| background: color-mix(in srgb, var(--accent) 88%, transparent); | |
| } | |
| .search-capsule input { | |
| position: relative; | |
| z-index: 1; | |
| width: 100%; | |
| height: 100%; | |
| min-width: 0; | |
| border: 0; | |
| outline: 0; | |
| color: var(--ink); | |
| background: transparent; | |
| caret-color: var(--accent); | |
| font-family: var(--font-ui); | |
| font-size: var(--micro-copy-size); | |
| font-weight: 560; | |
| line-height: 50px; | |
| letter-spacing: 0.07em; | |
| transform: none; | |
| } | |
| .search-capsule input::-webkit-search-cancel-button { | |
| appearance: none; | |
| -webkit-appearance: none; | |
| display: none; | |
| } | |
| .search-clear { | |
| position: relative; | |
| z-index: 1; | |
| width: 19px; | |
| height: 19px; | |
| margin: 0 2px 0 4px; | |
| border: 0; | |
| border-radius: 999px; | |
| color: var(--muted); | |
| background: transparent; | |
| cursor: pointer; | |
| opacity: 1; | |
| padding: 0; | |
| transition: color 0.16s ease, opacity 0.16s ease, transform 0.16s ease; | |
| } | |
| .search-clear::before, | |
| .search-clear::after { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| width: 15px; | |
| height: 2.4px; | |
| border-radius: 999px; | |
| background: currentColor; | |
| content: ""; | |
| transform-origin: center; | |
| } | |
| .search-clear::before { | |
| transform: translate(-50%, -50%) rotate(45deg); | |
| } | |
| .search-clear::after { | |
| transform: translate(-50%, -50%) rotate(-45deg); | |
| } | |
| .search-capsule input:placeholder-shown + .search-clear { | |
| opacity: 0; | |
| pointer-events: none; | |
| transform: scale(0.82); | |
| } | |
| .search-clear:hover, | |
| .search-clear:focus { | |
| color: var(--muted); | |
| outline: none; | |
| } | |
| .search-suggestion { | |
| position: absolute; | |
| top: 50%; | |
| left: 48px; | |
| right: 48px; | |
| z-index: 2; | |
| overflow: hidden; | |
| border: 0; | |
| color: color-mix(in srgb, var(--muted) 54%, transparent); | |
| background: transparent; | |
| cursor: pointer; | |
| font-family: var(--font-ui); | |
| font-size: var(--micro-copy-size); | |
| font-weight: 560; | |
| letter-spacing: 0.07em; | |
| line-height: 1.2; | |
| padding: 0; | |
| text-align: left; | |
| text-overflow: ellipsis; | |
| transform: translateY(-50%); | |
| transition: color 0.16s ease, opacity 0.16s ease; | |
| white-space: nowrap; | |
| } | |
| .search-suggestion:hover, | |
| .search-suggestion:focus-visible { | |
| color: color-mix(in srgb, var(--accent) 58%, var(--muted) 42%); | |
| outline: none; | |
| } | |
| .search-suggestion[hidden], | |
| .search-capsule:has(input:not(:placeholder-shown)) .search-suggestion { | |
| display: none; | |
| } | |
| .search-results { | |
| --search-result-row: 50px; | |
| position: absolute; | |
| top: calc(100% + 10px); | |
| left: 0; | |
| z-index: 8; | |
| display: grid; | |
| overflow-x: hidden; | |
| overflow-y: auto; | |
| overscroll-behavior: contain; | |
| box-sizing: border-box; | |
| width: 100%; | |
| max-height: min(calc(var(--search-result-row) * 4 + 10px), var(--search-results-max-height, calc(100vh - 24px))); | |
| max-height: min(calc(var(--search-result-row) * 4 + 10px), var(--search-results-max-height, calc(100dvh - 24px))); | |
| padding: 5px; | |
| border: 1px solid color-mix(in srgb, var(--glass-border) 82%, var(--accent) 18%); | |
| border-radius: 12px; | |
| background: | |
| linear-gradient(135deg, color-mix(in srgb, var(--bg-0) 88%, transparent), color-mix(in srgb, var(--bg-1) 78%, transparent)), | |
| var(--capsule-glass-focus); | |
| box-shadow: | |
| 0 18px 42px rgba(44, 56, 58, 0.16), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.62); | |
| scrollbar-color: color-mix(in srgb, var(--accent) 34%, transparent) transparent; | |
| scrollbar-width: thin; | |
| animation: search-results-in 180ms cubic-bezier(0.2, 0.86, 0.22, 1) both; | |
| backdrop-filter: blur(10px) saturate(118%); | |
| -webkit-backdrop-filter: blur(10px) saturate(118%); | |
| } | |
| .search-results::-webkit-scrollbar { | |
| width: 8px; | |
| } | |
| .search-results::-webkit-scrollbar-track { | |
| background: transparent; | |
| } | |
| .search-results::-webkit-scrollbar-thumb { | |
| border: 2px solid transparent; | |
| border-radius: 999px; | |
| background: color-mix(in srgb, var(--accent) 34%, transparent); | |
| background-clip: padding-box; | |
| } | |
| .search-results::-webkit-scrollbar-thumb:hover { | |
| background: color-mix(in srgb, var(--accent) 46%, transparent); | |
| background-clip: padding-box; | |
| } | |
| .search-results[hidden] { | |
| display: none; | |
| } | |
| :root[data-theme="dark"] .search-results { | |
| border-color: color-mix(in srgb, var(--glass-border) 74%, var(--accent) 26%); | |
| background: | |
| linear-gradient(135deg, color-mix(in srgb, var(--bg-0) 84%, transparent), color-mix(in srgb, var(--bg-1) 76%, transparent)), | |
| var(--capsule-glass-focus); | |
| box-shadow: 0 18px 42px rgba(5, 20, 22, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12); | |
| scrollbar-color: color-mix(in srgb, var(--accent) 42%, transparent) transparent; | |
| } | |
| :root[data-theme="dark"] .search-results::-webkit-scrollbar-thumb { | |
| background: color-mix(in srgb, var(--accent) 42%, transparent); | |
| background-clip: padding-box; | |
| } | |
| :root[data-theme="dark"] .search-results::-webkit-scrollbar-thumb:hover { | |
| background: color-mix(in srgb, var(--accent) 54%, transparent); | |
| background-clip: padding-box; | |
| } | |
| .search-result { | |
| display: grid; | |
| width: 100%; | |
| min-height: var(--search-result-row); | |
| padding: 5px 9px 6px; | |
| border: 0; | |
| border-radius: 8px; | |
| color: var(--ink); | |
| background: transparent; | |
| font: inherit; | |
| text-align: left; | |
| cursor: pointer; | |
| transition: background 0.14s ease, color 0.14s ease; | |
| } | |
| .search-result:hover:not(.is-active), | |
| .search-result:focus-visible:not(.is-active) { | |
| outline: none; | |
| background: color-mix(in srgb, var(--accent) 4%, transparent); | |
| } | |
| .search-result.is-active { | |
| outline: none; | |
| background: color-mix(in srgb, var(--accent) 9%, transparent); | |
| } | |
| .search-result__main, | |
| .search-result__meta { | |
| display: block; | |
| overflow: hidden; | |
| min-width: 0; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } | |
| .search-result__main { | |
| margin-left: -2px; | |
| color: color-mix(in srgb, var(--muted) 74%, var(--ink) 26%); | |
| font-family: var(--font-ui); | |
| font-size: 12.8px; | |
| font-weight: 620; | |
| line-height: 1.3; | |
| } | |
| .search-result__meta { | |
| margin-top: 2px; | |
| color: color-mix(in srgb, var(--muted) 68%, var(--ink) 12%); | |
| font-family: "TicketTypewriterLocal", "LXGW WenKai Mono", "LXGW WenKai", "American Typewriter", "Courier New", "Kaiti SC", monospace; | |
| font-size: 9.4px; | |
| font-weight: 360; | |
| letter-spacing: 0; | |
| line-height: 1.3; | |
| } | |
| .search-result mark { | |
| color: var(--accent); | |
| background: transparent; | |
| font-weight: 650; | |
| } | |
| @keyframes search-results-in { | |
| from { | |
| opacity: 0; | |
| transform: translateY(-4px) scale(0.988); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0) scale(1); | |
| } | |
| } | |
| .search-capsule:focus-within input { | |
| color: var(--muted); | |
| } | |
| .search-capsule input::placeholder { | |
| color: color-mix(in srgb, var(--muted) 76%, transparent); | |
| opacity: 1; | |
| transition: opacity 0.16s ease, color 0.16s ease; | |
| } | |
| .search-capsule:focus-within input::placeholder { | |
| color: transparent; | |
| opacity: 0; | |
| } | |
| .theme-toggle { | |
| --theme-toggle-width: 96px; | |
| --theme-toggle-height: 48px; | |
| --theme-toggle-cell: 43px; | |
| --theme-toggle-knob-size: 38px; | |
| position: absolute; | |
| top: 24px; | |
| right: 24px; | |
| z-index: 5; | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| align-items: center; | |
| width: var(--theme-toggle-width); | |
| height: var(--theme-toggle-height); | |
| padding: 4px; | |
| border: 1px solid var(--glass-border); | |
| border-radius: 999px; | |
| color: var(--muted); | |
| background: | |
| linear-gradient(135deg, rgba(255, 255, 250, 0.04), rgba(248, 250, 243, 0)), | |
| var(--capsule-glass); | |
| background-blend-mode: normal, normal; | |
| box-shadow: | |
| 0 16px 38px rgba(56, 67, 65, 0.1), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.72), | |
| inset 0 -1px 0 rgba(255, 255, 255, 0.18); | |
| cursor: pointer; | |
| isolation: isolate; | |
| overflow: hidden; | |
| transform: translateY(0) scale(1); | |
| transform-origin: right center; | |
| transition: | |
| opacity 0.16s ease, | |
| transform 0.28s cubic-bezier(0.18, 0.9, 0.24, 1.18), | |
| visibility 0s linear 0s; | |
| backdrop-filter: blur(1.6px) saturate(118%); | |
| -webkit-backdrop-filter: blur(1.6px) saturate(118%); | |
| } | |
| :root[data-theme="dark"] .theme-toggle { | |
| background: | |
| linear-gradient(135deg, rgba(255, 255, 250, 0.04), rgba(18, 54, 54, 0.02)), | |
| var(--capsule-glass); | |
| } | |
| .theme-toggle__icon { | |
| position: relative; | |
| z-index: 2; | |
| display: grid; | |
| height: 100%; | |
| place-items: center; | |
| transition: color 0.24s ease; | |
| } | |
| .theme-toggle__icon svg { | |
| width: 22px; | |
| height: 22px; | |
| fill: none; | |
| stroke: currentColor; | |
| stroke-linecap: round; | |
| stroke-linejoin: round; | |
| stroke-width: 1.9; | |
| } | |
| .theme-toggle__knob { | |
| position: absolute; | |
| top: 4px; | |
| left: calc(4px + (var(--theme-toggle-cell) - var(--theme-toggle-knob-size)) / 2); | |
| z-index: 1; | |
| width: var(--theme-toggle-knob-size); | |
| height: var(--theme-toggle-knob-size); | |
| border-radius: 999px; | |
| background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 86%, #fff 14%), var(--accent)); | |
| box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 18px color-mix(in srgb, var(--accent) 22%, transparent); | |
| transition: transform 0.28s ease, background 0.28s ease; | |
| } | |
| :root:not([data-theme="dark"]) .theme-toggle__icon:first-child { | |
| color: #fff8ef; | |
| } | |
| :root[data-theme="dark"] .theme-toggle__icon:nth-child(2) { | |
| color: #fffaf2; | |
| } | |
| :root[data-theme="dark"] .theme-toggle__knob { | |
| transform: translateX(var(--theme-toggle-cell)); | |
| background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 74%, #fff 8%), color-mix(in srgb, var(--accent) 84%, #143f3b 16%)); | |
| } | |
| .special-back-button { | |
| position: absolute; | |
| top: 24px; | |
| right: 24px; | |
| z-index: 7; | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 8px; | |
| width: 96px; | |
| max-width: calc(100vw - 48px); | |
| min-width: 96px; | |
| height: 48px; | |
| padding: 0 17px; | |
| border: 1px solid var(--glass-border); | |
| border-radius: 999px; | |
| color: var(--muted); | |
| background: | |
| linear-gradient(135deg, rgba(255, 255, 250, 0.04), rgba(248, 250, 243, 0)), | |
| var(--capsule-glass); | |
| background-blend-mode: normal, normal; | |
| box-shadow: | |
| 0 16px 38px rgba(56, 67, 65, 0.1), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.72), | |
| inset 0 -1px 0 rgba(255, 255, 255, 0.18); | |
| font-family: var(--font-ui); | |
| font-size: 18px; | |
| font-weight: 520; | |
| letter-spacing: 0.04em; | |
| line-height: 1; | |
| opacity: 0; | |
| overflow: hidden; | |
| white-space: nowrap; | |
| visibility: hidden; | |
| cursor: pointer; | |
| pointer-events: none; | |
| transform: translateY(0) scale(1); | |
| transform-origin: right center; | |
| transition: | |
| width 0.3s cubic-bezier(0.24, 0.86, 0.28, 1), | |
| opacity 0.16s ease 0.12s, | |
| transform 0.3s cubic-bezier(0.24, 0.86, 0.28, 1), | |
| visibility 0s linear 0.34s; | |
| backdrop-filter: blur(1.6px) saturate(118%); | |
| -webkit-backdrop-filter: blur(1.6px) saturate(118%); | |
| } | |
| :root[data-theme="dark"] .special-back-button { | |
| background: | |
| linear-gradient(135deg, rgba(255, 255, 250, 0.04), rgba(18, 54, 54, 0.02)), | |
| var(--capsule-glass); | |
| } | |
| .special-back-button__label { | |
| display: inline-flex; | |
| align-items: center; | |
| height: 24px; | |
| opacity: 0; | |
| transform: translateX(8px); | |
| transition: | |
| opacity 0.14s ease, | |
| transform 0.22s cubic-bezier(0.2, 0.82, 0.22, 1); | |
| } | |
| .special-back-button__icon { | |
| display: inline-grid; | |
| width: 23px; | |
| height: 23px; | |
| flex: 0 0 23px; | |
| opacity: 0; | |
| place-items: center; | |
| transform: translateX(8px) scale(0.94); | |
| transition: | |
| opacity 0.14s ease, | |
| transform 0.22s cubic-bezier(0.2, 0.82, 0.22, 1); | |
| } | |
| .special-back-button__icon svg { | |
| width: 23px; | |
| height: 23px; | |
| fill: none; | |
| stroke: currentColor; | |
| stroke-linecap: butt; | |
| stroke-linejoin: round; | |
| stroke-width: 2.05; | |
| } | |
| .special-back-button:hover, | |
| .special-back-button:focus { | |
| border-color: color-mix(in srgb, var(--accent) 42%, transparent); | |
| color: var(--accent); | |
| outline: none; | |
| } | |
| .special-back-button[hidden] { | |
| display: inline-flex; | |
| } | |
| .drag-hint { | |
| position: absolute; | |
| right: 34px; | |
| bottom: 32px; | |
| z-index: 6; | |
| margin: 0; | |
| color: var(--ambient-copy-rest); | |
| font-family: var(--font-ui); | |
| font-size: var(--micro-copy-size); | |
| font-weight: 560; | |
| letter-spacing: 0.06em; | |
| pointer-events: none; | |
| user-select: none; | |
| transition: color 0.2s ease, opacity 0.22s ease, transform 0.22s ease; | |
| animation: hint-float-in-se 0.72s cubic-bezier(0.18, 0.86, 0.22, 1) 0.54s backwards; | |
| } | |
| :root.is-special-view .drag-hint { | |
| opacity: 0; | |
| transform: translateY(4px); | |
| } | |
| .music-signature { | |
| --music-level: 0.24; | |
| position: absolute; | |
| left: 50%; | |
| bottom: 32px; | |
| z-index: 8; | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| max-width: min(520px, calc(100vw - 360px)); | |
| min-width: 0; | |
| color: var(--ambient-copy-rest); | |
| font-family: var(--font-ui); | |
| font-size: clamp(12.8px, 0.92vw, 14.8px); | |
| font-weight: 520; | |
| gap: 7px; | |
| letter-spacing: 0.025em; | |
| opacity: 1; | |
| pointer-events: auto; | |
| transform: translateX(-50%); | |
| transition: | |
| color 0.2s ease, | |
| transform 0.2s ease; | |
| user-select: none; | |
| white-space: nowrap; | |
| } | |
| .music-signature:hover, | |
| .music-signature:focus-within, | |
| .music-signature.is-adjusting { | |
| color: var(--ambient-copy-hover); | |
| transform: translateX(-50%) scale(1.025); | |
| } | |
| .music-signature.is-muted:not(:hover):not(:focus-within):not(.is-adjusting) { | |
| color: var(--ambient-copy-rest); | |
| } | |
| .music-signature__toggle { | |
| position: relative; | |
| display: inline-grid; | |
| width: 24px; | |
| height: 24px; | |
| flex: 0 0 24px; | |
| padding: 0; | |
| border: 0; | |
| border-radius: 999px; | |
| color: currentColor; | |
| background: transparent; | |
| cursor: ns-resize; | |
| place-items: center; | |
| touch-action: none; | |
| transition: | |
| background 0.18s ease, | |
| color 0.18s ease, | |
| transform 0.18s ease; | |
| } | |
| .music-signature__toggle::after { | |
| position: absolute; | |
| inset: -2px; | |
| border-radius: inherit; | |
| background: | |
| radial-gradient(circle at 50% 50%, | |
| color-mix(in srgb, var(--accent) 20%, transparent) 0 24%, | |
| color-mix(in srgb, var(--accent) 12%, transparent) 42%, | |
| transparent 72%), | |
| radial-gradient(circle at 42% 34%, | |
| rgba(255, 255, 255, 0.36) 0 18%, | |
| transparent 46%); | |
| content: ""; | |
| opacity: 0; | |
| transform: scale(0.72); | |
| transition: | |
| opacity 0.18s ease, | |
| transform 0.18s ease; | |
| } | |
| .music-signature__toggle:hover, | |
| .music-signature__toggle:focus { | |
| color: var(--accent); | |
| outline: none; | |
| transform: translateY(-1px); | |
| } | |
| .music-signature__toggle.is-muted:hover, | |
| .music-signature__toggle.is-muted:focus { | |
| color: color-mix(in srgb, var(--muted) 64%, transparent); | |
| } | |
| .music-signature__toggle:hover::after, | |
| .music-signature__toggle:focus::after, | |
| .music-signature.is-adjusting .music-signature__toggle::after { | |
| opacity: calc(0.18 + var(--music-level) * 0.42); | |
| transform: scale(1); | |
| } | |
| .music-signature__icon { | |
| position: relative; | |
| z-index: 1; | |
| width: 18px; | |
| height: 18px; | |
| fill: none; | |
| stroke: currentColor; | |
| stroke-linecap: round; | |
| stroke-linejoin: round; | |
| stroke-width: 1.85; | |
| } | |
| .music-signature__speaker { | |
| fill: color-mix(in srgb, currentColor 9%, transparent); | |
| } | |
| .music-signature__wave, | |
| .music-signature__mute-line { | |
| transition: | |
| opacity 0.18s ease, | |
| transform 0.18s ease; | |
| transform-origin: 13px 12px; | |
| } | |
| .music-signature.is-playing .music-signature__toggle:not(.is-muted) .music-signature__wave--soft { | |
| animation: music-wave-breathe 1.72s ease-in-out infinite; | |
| } | |
| .music-signature.is-playing .music-signature__toggle:not(.is-muted) .music-signature__wave--full { | |
| animation: music-wave-breathe 1.72s ease-in-out 0.22s infinite; | |
| } | |
| @keyframes music-wave-breathe { | |
| 0%, | |
| 100% { | |
| opacity: 0.46; | |
| transform: translateX(-0.35px) scaleX(0.86); | |
| } | |
| 46% { | |
| opacity: 0.92; | |
| transform: translateX(0.55px) scaleX(1.06); | |
| } | |
| } | |
| .music-signature__mute-line { | |
| opacity: 0; | |
| transform: translateX(-0.35px) scale(0.9); | |
| transform-origin: center; | |
| } | |
| .music-signature__toggle.is-muted { | |
| color: currentColor; | |
| } | |
| .music-signature__toggle.is-muted .music-signature__wave { | |
| opacity: 0.08; | |
| transform: translateX(-2.4px); | |
| } | |
| .music-signature__toggle.is-muted .music-signature__mute-line { | |
| opacity: 0.92; | |
| transform: translateX(-0.35px) scale(1); | |
| } | |
| .music-signature__credit { | |
| min-width: 0; | |
| margin: 0; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .music-signature__separator { | |
| margin: 0 5px; | |
| color: color-mix(in srgb, currentColor 64%, transparent); | |
| } | |
| .music-signature__volume { | |
| position: absolute; | |
| left: 10px; | |
| top: -26px; | |
| min-width: 38px; | |
| padding: 3px 7px 4px; | |
| border: 1px solid color-mix(in srgb, var(--glass-border) 62%, transparent); | |
| border-radius: 999px; | |
| color: color-mix(in srgb, var(--muted) 86%, transparent); | |
| background: color-mix(in srgb, var(--glass-strong) 70%, transparent); | |
| box-shadow: 0 8px 20px rgba(31, 47, 45, 0.08); | |
| font-family: var(--font-ui); | |
| font-size: 11.5px; | |
| font-weight: 560; | |
| letter-spacing: 0.02em; | |
| line-height: 1; | |
| opacity: 0; | |
| pointer-events: none; | |
| text-align: center; | |
| transform: translateY(4px); | |
| transition: | |
| opacity 0.16s ease, | |
| transform 0.16s ease; | |
| backdrop-filter: blur(3px) saturate(112%); | |
| -webkit-backdrop-filter: blur(3px) saturate(112%); | |
| } | |
| .music-signature.is-adjusting .music-signature__volume { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| :root.is-special-view .music-signature:not(:hover):not(:focus-within):not(.is-adjusting) { | |
| color: var(--ambient-copy-rest); | |
| } | |
| .ocean-stop-a { | |
| stop-color: var(--ocean-a); | |
| } | |
| .ocean-stop-b { | |
| stop-color: var(--ocean-b); | |
| } | |
| .ocean-stop-c { | |
| stop-color: var(--ocean-c); | |
| } | |
| .globe-ocean { | |
| fill: url("#globeWash"); | |
| stroke: color-mix(in srgb, var(--rim) 76%, transparent); | |
| stroke-width: 0.9; | |
| } | |
| .globe-wave { | |
| fill: url("#oceanWaves"); | |
| opacity: 0.48; | |
| pointer-events: none; | |
| mix-blend-mode: multiply; | |
| } | |
| .globe-inner-softening { | |
| fill: none; | |
| stroke: var(--coast-shadow); | |
| stroke-width: 8; | |
| opacity: 0.1; | |
| filter: blur(5px); | |
| pointer-events: none; | |
| } | |
| .globe-rim { | |
| fill: none; | |
| stroke: var(--rim); | |
| stroke-width: 0.9; | |
| } | |
| .globe-graticule { | |
| fill: none; | |
| stroke: var(--graticule); | |
| stroke-width: 0.62; | |
| opacity: 0; | |
| transition: opacity 0.28s ease; | |
| } | |
| .country { | |
| stroke: var(--border); | |
| stroke-width: 0.62; | |
| pointer-events: none; | |
| transition: fill 0.28s ease, opacity 0.28s ease, stroke 0.28s ease; | |
| } | |
| .country-shadow { | |
| fill: none; | |
| stroke: var(--coast-shadow); | |
| stroke-width: 4.4; | |
| opacity: 0.14; | |
| filter: blur(2.6px); | |
| pointer-events: none; | |
| } | |
| .country-texture { | |
| fill: url("#landTexture"); | |
| opacity: 0.72; | |
| pointer-events: none; | |
| mix-blend-mode: normal; | |
| } | |
| .country-label { | |
| fill: var(--country-label-ink); | |
| font-family: var(--font-country-label); | |
| font-size: 12px; | |
| font-weight: 700; | |
| letter-spacing: 0.04em; | |
| opacity: 0.68; | |
| pointer-events: none; | |
| text-rendering: geometricPrecision; | |
| transition: fill 0.28s ease, opacity 0.28s ease; | |
| user-select: none; | |
| } | |
| .country-label--rank-1, | |
| .country-label--rank-2 { | |
| font-size: 14.6px; | |
| letter-spacing: 0.045em; | |
| opacity: 0.78; | |
| } | |
| .country-label--rank-4, | |
| .country-label--rank-5 { | |
| font-size: 10.6px; | |
| opacity: 0.6; | |
| } | |
| .country-label--rank-6 { | |
| font-size: 9.8px; | |
| opacity: 0.46; | |
| } | |
| :root[data-theme="dark"] .country { | |
| stroke-width: 0.52; | |
| } | |
| :root[data-theme="dark"] .country-shadow { | |
| opacity: 0.08; | |
| } | |
| :root[data-theme="dark"] .globe-wave { | |
| opacity: 0.44; | |
| mix-blend-mode: normal; | |
| } | |
| :root[data-theme="dark"] .country-texture { | |
| opacity: 0.46; | |
| mix-blend-mode: normal; | |
| } | |
| :root[data-theme="dark"] .country-label { | |
| fill: var(--country-label-ink); | |
| opacity: 0.12; | |
| } | |
| .land-strong { | |
| fill: var(--land-strong); | |
| } | |
| .land-mid { | |
| fill: var(--land-mid); | |
| } | |
| .land-soft { | |
| fill: var(--land-soft); | |
| } | |
| .land-faint { | |
| fill: var(--land-faint); | |
| } | |
| .land-ice { | |
| fill: var(--land-ice); | |
| } | |
| #cityLayer { | |
| pointer-events: auto; | |
| } | |
| .city-marker { | |
| cursor: pointer; | |
| opacity: 0.42; | |
| transform-box: fill-box; | |
| transform-origin: center; | |
| transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease; | |
| } | |
| .city-marker-shell { | |
| text-rendering: geometricPrecision; | |
| } | |
| .city-marker--major, | |
| .city-marker.city-point--major { | |
| opacity: 0.5; | |
| } | |
| .city-marker:hover, | |
| .city-marker:focus, | |
| .city-marker.is-active, | |
| .city-marker.is-hovered { | |
| opacity: 1; | |
| filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--accent) 12%, transparent)); | |
| transform: translateY(-1px) scale(1.08); | |
| outline: none; | |
| } | |
| .map-city-label { | |
| fill: color-mix(in srgb, var(--accent) 76%, var(--ink) 24%); | |
| font-family: var(--font-ui); | |
| font-size: 12.5px; | |
| font-weight: 650; | |
| letter-spacing: 0.06em; | |
| opacity: 0.72; | |
| pointer-events: none; | |
| paint-order: stroke; | |
| stroke: rgba(255, 255, 255, 0.78); | |
| stroke-width: 3.2px; | |
| vector-effect: non-scaling-stroke; | |
| } | |
| .map-city-label--en { | |
| font-family: var(--font-display); | |
| font-size: 9.8px; | |
| font-weight: 300; | |
| letter-spacing: 0.055em; | |
| opacity: 0.56; | |
| } | |
| :root[data-theme="dark"] .map-city-label { | |
| fill: var(--accent); | |
| opacity: 0.72; | |
| stroke: rgba(8, 9, 11, 0.72); | |
| } | |
| :root[data-theme="dark"] .map-city-label--en { | |
| opacity: 0.56; | |
| } | |
| .city-point { | |
| fill: var(--accent); | |
| stroke: rgba(255, 255, 255, 0.9); | |
| stroke-width: 0.8; | |
| cursor: pointer; | |
| filter: none; | |
| transform-box: fill-box; | |
| transform-origin: center; | |
| transition: fill 0.18s ease, stroke-width 0.18s ease, filter 0.18s ease; | |
| } | |
| .city-point-halo { | |
| fill: var(--accent); | |
| stroke: none; | |
| opacity: 0.16; | |
| pointer-events: none; | |
| transition: opacity 0.18s ease; | |
| } | |
| .city-point--standard { | |
| fill: var(--accent); | |
| } | |
| .city-point--major { | |
| fill: var(--accent); | |
| } | |
| .city-marker:hover .city-point, | |
| .city-marker:focus .city-point, | |
| .city-marker.is-active .city-point, | |
| .city-marker.is-hovered .city-point { | |
| fill: var(--accent); | |
| stroke-width: 1; | |
| filter: drop-shadow(0 3px 6px color-mix(in srgb, var(--accent) 18%, transparent)); | |
| } | |
| .city-marker:hover .city-point-halo, | |
| .city-marker:focus .city-point-halo, | |
| .city-marker.is-active .city-point-halo, | |
| .city-marker.is-hovered .city-point-halo { | |
| opacity: 1; | |
| } | |
| :root[data-theme="dark"] .city-point { | |
| fill: var(--accent); | |
| stroke: rgba(8, 9, 11, 0.76); | |
| } | |
| :root[data-theme="dark"] .city-marker { | |
| opacity: 0.5; | |
| } | |
| :root[data-theme="dark"] .city-marker:hover, | |
| :root[data-theme="dark"] .city-marker:focus, | |
| :root[data-theme="dark"] .city-marker.is-active, | |
| :root[data-theme="dark"] .city-marker.is-hovered { | |
| opacity: 1; | |
| } | |
| :root[data-theme="dark"] .city-marker:hover .city-point, | |
| :root[data-theme="dark"] .city-marker:focus .city-point, | |
| :root[data-theme="dark"] .city-marker.is-active .city-point, | |
| :root[data-theme="dark"] .city-marker.is-hovered .city-point { | |
| fill: var(--accent); | |
| } | |
| .book-card { | |
| position: absolute; | |
| z-index: 6; | |
| display: grid; | |
| grid-template-columns: minmax(104px, 136px) 1fr; | |
| gap: 20px; | |
| width: min(456px, calc(100vw - 36px)); | |
| min-height: 198px; | |
| padding: 22px 20px 20px; | |
| border: 1px solid var(--glass-border); | |
| border-radius: 0; | |
| color: var(--book-paper-ink); | |
| background: | |
| linear-gradient(color-mix(in srgb, var(--glass-strong) 88%, transparent), color-mix(in srgb, var(--glass-strong) 88%, transparent)), | |
| url("../public/textures/land-paper-tile.png"), | |
| var(--glass-strong); | |
| background-size: auto, 430px 430px, auto; | |
| background-blend-mode: normal, multiply, normal; | |
| box-shadow: 0 28px 84px rgba(58, 73, 92, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.62); | |
| pointer-events: auto; | |
| transform-origin: 12px 100%; | |
| animation: book-rise 0.34s cubic-bezier(0.2, 0.9, 0.2, 1); | |
| backdrop-filter: blur(30px) saturate(132%); | |
| -webkit-backdrop-filter: blur(30px) saturate(132%); | |
| } | |
| .book-card[hidden] { | |
| display: none; | |
| } | |
| .book-card__actions { | |
| position: absolute; | |
| top: 12px; | |
| right: 12px; | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| } | |
| .book-card__action { | |
| display: grid; | |
| min-width: 30px; | |
| height: 30px; | |
| padding: 0 10px; | |
| place-items: center; | |
| border: 1px solid color-mix(in srgb, var(--ink) 13%, transparent); | |
| border-radius: 0; | |
| color: color-mix(in srgb, var(--ink) 72%, transparent); | |
| background: color-mix(in srgb, var(--glass-strong) 80%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 12px; | |
| font-weight: 680; | |
| line-height: 1; | |
| cursor: pointer; | |
| } | |
| .book-card__action:hover, | |
| .book-card__action:focus { | |
| border-color: color-mix(in srgb, var(--accent) 42%, transparent); | |
| color: var(--accent); | |
| outline: none; | |
| } | |
| .book-card__save.is-saved { | |
| border-color: color-mix(in srgb, var(--accent) 44%, transparent); | |
| color: var(--accent); | |
| background: color-mix(in srgb, var(--accent) 10%, transparent); | |
| } | |
| .book-card__close { | |
| width: 30px; | |
| padding: 0; | |
| font-size: 18px; | |
| font-weight: 420; | |
| } | |
| .book-card__pager { | |
| position: absolute; | |
| right: 12px; | |
| bottom: 12px; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| height: 28px; | |
| padding: 0 8px; | |
| border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); | |
| border-radius: 0; | |
| background: color-mix(in srgb, var(--bg-0) 70%, transparent); | |
| } | |
| .book-card__pager[hidden] { | |
| display: none; | |
| } | |
| .book-card__page { | |
| display: grid; | |
| width: 18px; | |
| height: 18px; | |
| padding: 0; | |
| place-items: center; | |
| border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); | |
| border-radius: 999px; | |
| color: var(--accent); | |
| background: transparent; | |
| font: inherit; | |
| font-size: 14px; | |
| line-height: 1; | |
| cursor: pointer; | |
| } | |
| .book-card__counter { | |
| color: var(--accent); | |
| font-family: var(--font-mono); | |
| font-size: 11px; | |
| font-weight: 760; | |
| letter-spacing: 0.06em; | |
| } | |
| .book-card__cover { | |
| position: relative; | |
| display: grid; | |
| overflow: visible; | |
| align-self: stretch; | |
| min-height: 162px; | |
| padding: 0; | |
| place-items: center; | |
| border: 0; | |
| border-radius: 0; | |
| background: transparent; | |
| } | |
| .book-card__cover img { | |
| width: auto; | |
| max-width: 100%; | |
| height: auto; | |
| max-height: 230px; | |
| object-fit: contain; | |
| display: block; | |
| filter: drop-shadow(14px 18px 18px rgba(42, 53, 68, 0.16)); | |
| } | |
| .book-card__cover-fallback { | |
| position: absolute; | |
| inset: 0; | |
| display: grid; | |
| place-items: center; | |
| color: color-mix(in srgb, var(--ink) 72%, transparent); | |
| font-family: var(--font-mono); | |
| font-size: 12px; | |
| font-weight: 860; | |
| letter-spacing: 0.18em; | |
| } | |
| .book-card__body { | |
| min-width: 0; | |
| padding: 28px 46px 2px 0; | |
| } | |
| .book-card__city { | |
| margin: 0 0 12px; | |
| color: var(--accent); | |
| font-family: var(--font-ui); | |
| font-size: 13px; | |
| font-weight: 760; | |
| letter-spacing: 0.1em; | |
| } | |
| .book-card__title-zh { | |
| margin: 0; | |
| color: var(--book-title); | |
| font-family: var(--font-zh-title); | |
| font-size: clamp(25px, 2vw, 34px); | |
| font-weight: 650; | |
| line-height: 1.08; | |
| letter-spacing: 0.04em; | |
| } | |
| .book-card__meta, | |
| .book-card__intro { | |
| margin: 10px 0 0; | |
| color: var(--book-meta); | |
| font-family: var(--font-ui); | |
| font-size: 12.5px; | |
| font-weight: 540; | |
| line-height: 1.5; | |
| } | |
| .book-card__intro { | |
| display: -webkit-box; | |
| margin-top: 16px; | |
| overflow: hidden; | |
| white-space: pre-line; | |
| -webkit-box-orient: vertical; | |
| -webkit-line-clamp: 5; | |
| } | |
| @keyframes book-rise { | |
| from { | |
| opacity: 0; | |
| transform: rotateX(16deg) translateY(14px) scale(0.96); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: rotateX(0deg) translateY(0) scale(1); | |
| } | |
| } | |
| @keyframes search-focus-glow { | |
| from { | |
| opacity: 0.56; | |
| filter: blur(6px); | |
| } | |
| to { | |
| opacity: 0.78; | |
| filter: blur(8px); | |
| } | |
| } | |
| @keyframes hero-float-in-nw { | |
| from { | |
| opacity: 0; | |
| filter: blur(2px); | |
| transform: translate3d(-14px, -10px, 0); | |
| } | |
| to { | |
| opacity: 1; | |
| filter: blur(0); | |
| transform: translate3d(0, 0, 0); | |
| } | |
| } | |
| @keyframes hero-title-float-in-up { | |
| from { | |
| opacity: 0; | |
| filter: blur(2px); | |
| transform: translate3d(0, 14px, 0); | |
| } | |
| to { | |
| opacity: 1; | |
| filter: blur(0); | |
| transform: translate3d(0, 0, 0); | |
| } | |
| } | |
| @keyframes search-float-in-up { | |
| from { | |
| opacity: 0; | |
| filter: blur(1.6px); | |
| transform: translate3d(0, 8px, 0); | |
| } | |
| to { | |
| opacity: 1; | |
| filter: blur(0); | |
| transform: translate3d(0, 0, 0); | |
| } | |
| } | |
| @keyframes hint-float-in-se { | |
| from { | |
| opacity: 0; | |
| filter: blur(1.5px); | |
| transform: translate3d(12px, 8px, 0); | |
| } | |
| to { | |
| opacity: 1; | |
| filter: blur(0); | |
| transform: translate3d(0, 0, 0); | |
| } | |
| } | |
| @keyframes special-capsule-float-in { | |
| from { | |
| opacity: 0; | |
| filter: blur(1.5px); | |
| transform: translate3d(calc(var(--special-x) + 8px), calc(var(--special-y) + 7px), 0) scale(0.98); | |
| } | |
| to { | |
| opacity: 0.88; | |
| filter: blur(0); | |
| transform: translate3d(var(--special-x), var(--special-y), 0) scale(1); | |
| } | |
| } | |
| @keyframes special-book-in { | |
| from { | |
| opacity: 0; | |
| transform: translate3d(var(--book-x), var(--book-y), 0) translate(-50%, -50%) scale(0.86); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translate3d(var(--book-x), var(--book-y), 0) translate(-50%, -50%) scale(1); | |
| } | |
| } | |
| @keyframes special-line-in { | |
| from { | |
| opacity: 0; | |
| stroke-dasharray: 1 10; | |
| } | |
| to { | |
| opacity: 0.38; | |
| stroke-dasharray: 1 0; | |
| } | |
| } | |
| @keyframes special-line-in-city { | |
| from { | |
| opacity: 0; | |
| stroke-dasharray: 1 10; | |
| } | |
| to { | |
| opacity: 0.46; | |
| stroke-dasharray: 1 0; | |
| } | |
| } | |
| @keyframes special-anchor-in-city { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: var(--special-anchor-opacity, 0.78); | |
| } | |
| } | |
| @keyframes boundary-in { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: 0.72; | |
| } | |
| } | |
| @keyframes context-in { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: var(--context-opacity); | |
| } | |
| } | |
| :root.is-special-view .hero-copy { | |
| opacity: 0; | |
| transition: opacity 0.28s ease; | |
| pointer-events: none; | |
| } | |
| :root.is-special-view .theme-toggle { | |
| opacity: 0; | |
| pointer-events: none; | |
| visibility: hidden; | |
| transform: translateY(0) scale(1); | |
| transition: | |
| opacity 0.14s ease, | |
| transform 0.24s cubic-bezier(0.2, 0.82, 0.22, 1), | |
| visibility 0s linear 0.18s; | |
| } | |
| :root.is-special-view .special-back-button, | |
| :root.is-bookshelf-view .bookshelf-back-button { | |
| width: 166px; | |
| opacity: 1; | |
| visibility: visible; | |
| pointer-events: auto; | |
| transform: translateY(0) scale(1); | |
| transition: | |
| width 0.34s cubic-bezier(0.18, 0.9, 0.24, 1.18), | |
| opacity 0.16s ease 0.02s, | |
| transform 0.34s cubic-bezier(0.18, 0.9, 0.24, 1.18), | |
| visibility 0s linear 0s; | |
| } | |
| :root.is-special-view .special-back-button__icon, | |
| :root.is-bookshelf-view .bookshelf-back-button .special-back-button__icon { | |
| opacity: 1; | |
| transform: translateX(0) scale(1); | |
| transition: | |
| opacity 0.16s ease 0.08s, | |
| transform 0.24s cubic-bezier(0.18, 0.9, 0.24, 1.12) 0.06s; | |
| } | |
| :root.is-special-view .special-back-button__label, | |
| :root.is-bookshelf-view .bookshelf-back-button .special-back-button__label { | |
| opacity: 1; | |
| transform: translateX(0); | |
| transition: | |
| opacity 0.16s ease 0.1s, | |
| transform 0.24s cubic-bezier(0.18, 0.9, 0.24, 1.12) 0.08s; | |
| } | |
| :root.is-special-view .map-stage::before { | |
| opacity: 0; | |
| } | |
| :root.is-special-view .halftone-canvas { | |
| opacity: 0; | |
| transition: opacity 0.22s ease; | |
| } | |
| :root.is-special-view .map-stage::after { | |
| opacity: 0.18; | |
| background: | |
| linear-gradient(90deg, color-mix(in srgb, var(--bg-0) 30%, transparent) 0 26%, transparent 52%), | |
| radial-gradient(circle at 70% 44%, transparent 0 36%, color-mix(in srgb, var(--bg-0) 14%, transparent) 68%); | |
| } | |
| :root.is-special-city-map .map-stage::after { | |
| opacity: 0.04; | |
| } | |
| :root.is-special-view .globe-wave { | |
| opacity: 0.28; | |
| } | |
| :root.is-special-view .globe-graticule { | |
| opacity: 0.24; | |
| } | |
| :root.is-special-view .country { | |
| opacity: 1; | |
| } | |
| :root.is-special-view .country-texture { | |
| opacity: 0.62; | |
| } | |
| :root.is-special-view .country.is-special-country { | |
| fill: color-mix(in srgb, var(--land-strong) 96%, #f7efe0 4%); | |
| stroke: color-mix(in srgb, var(--border) 86%, transparent); | |
| opacity: 1; | |
| } | |
| :root.is-special-view .country.country--regional { | |
| stroke: color-mix(in srgb, var(--border) 58%, transparent); | |
| stroke-width: 0.34; | |
| opacity: 1; | |
| } | |
| :root.is-special-view .country.country--regional.is-special-country { | |
| fill: color-mix(in srgb, var(--land-strong) 92%, #f1e2cc 8%); | |
| stroke: color-mix(in srgb, var(--border) 72%, transparent); | |
| opacity: 1; | |
| } | |
| :root.is-special-city-map .globe-graticule, | |
| :root.is-special-city-map .globe-rim { | |
| opacity: 0; | |
| } | |
| :root.is-special-city-map .globe-ocean, | |
| :root.is-special-city-map .globe-inner-softening { | |
| opacity: 0; | |
| } | |
| :root.is-special-city-map .globe-wave { | |
| opacity: 0; | |
| } | |
| :root.is-special-city-map .country, | |
| :root.is-special-city-map .country-texture { | |
| opacity: 0; | |
| } | |
| :root.is-special-city-map .country.is-special-country, | |
| :root.is-special-city-map .country.country--regional.is-special-country { | |
| opacity: 0; | |
| pointer-events: none; | |
| } | |
| :root.is-special-city-map .special-boundary { | |
| fill: none; | |
| stroke: color-mix(in srgb, var(--accent) 30%, var(--ink) 12%); | |
| stroke-width: 0.46; | |
| opacity: 0.32; | |
| animation: none; | |
| } | |
| :root.is-special-city-map .special-context--land { | |
| --context-opacity: 1; | |
| fill: color-mix(in srgb, var(--bg-0) 92%, #f7efe0 8%); | |
| stroke: color-mix(in srgb, var(--border) 42%, transparent); | |
| mix-blend-mode: normal; | |
| } | |
| .city-html-marker.is-special-center { | |
| --marker-scale: 1.34; | |
| display: none; | |
| opacity: 0; | |
| pointer-events: none; | |
| } | |
| .city-html-marker.is-special-center .city-html-marker__halo { | |
| opacity: 0.46; | |
| } | |
| .city-html-marker.is-special-center .city-html-marker__label { | |
| display: none; | |
| } | |
| .city-html-marker.is-special-center .city-html-marker__zh { | |
| color: var(--accent); | |
| font-size: 14px; | |
| } | |
| .city-html-marker.is-special-center .city-html-marker__en { | |
| color: var(--city-label-en-active); | |
| } | |
| :root[data-theme="dark"] .special-capsule { | |
| border-color: var(--glass-border); | |
| background: | |
| linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 68%), | |
| var(--glass); | |
| background-size: auto; | |
| background-blend-mode: normal; | |
| box-shadow: 0 14px 34px rgba(8, 28, 28, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16); | |
| } | |
| :root[data-theme="dark"] .special-book__bookmark { | |
| background: | |
| linear-gradient(180deg, rgba(242, 231, 211, 0.94), rgba(224, 211, 190, 0.9)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 240px 240px; | |
| } | |
| @media (max-width: 720px) { | |
| .map-stage { | |
| background-size: 34px 34px; | |
| } | |
| .theme-toggle { | |
| --theme-toggle-width: 88px; | |
| --theme-toggle-height: 44px; | |
| --theme-toggle-cell: 39px; | |
| --theme-toggle-knob-size: 34px; | |
| top: 16px; | |
| right: 16px; | |
| width: var(--theme-toggle-width); | |
| height: var(--theme-toggle-height); | |
| } | |
| .special-back-button { | |
| top: 16px; | |
| right: 16px; | |
| width: 88px; | |
| max-width: calc(100vw - 32px); | |
| min-width: 88px; | |
| height: 44px; | |
| padding: 0 14px; | |
| gap: 7px; | |
| font-size: 16.2px; | |
| } | |
| :root.is-special-view .special-back-button { | |
| width: 154px; | |
| } | |
| .special-capsule { | |
| gap: 6px; | |
| padding-inline: 9px; | |
| } | |
| .special-capsule__mark { | |
| width: 14px; | |
| height: 14px; | |
| } | |
| .special-capsule__title { | |
| font-size: 12.8px; | |
| } | |
| .special-book { | |
| width: 174px; | |
| } | |
| .special-book__bookmark { | |
| width: 124px; | |
| min-height: 0; | |
| } | |
| .special-book__hit { | |
| width: 124px; | |
| } | |
| .special-book__body { | |
| padding: 8px 10px 14px; | |
| } | |
| .special-book__peek { | |
| width: 124px; | |
| min-height: 196px; | |
| bottom: calc(var(--peek-order, 1) * -10px); | |
| left: calc(50% + var(--peek-order, 1) * 18px - 62px); | |
| } | |
| .special-book-stack.is-multi .special-book__hit { | |
| padding: 0; | |
| } | |
| .special-book__title { | |
| margin-top: 5px; | |
| font-size: 13.2px; | |
| } | |
| .special-book__context-zh { | |
| font-size: 8.4px; | |
| } | |
| .special-book__context-en, | |
| .special-book__context-divider { | |
| font-size: 7.2px; | |
| } | |
| .special-book__rule { | |
| margin-top: 5px; | |
| } | |
| .special-book__meta { | |
| margin-top: 5px; | |
| font-size: 8px; | |
| } | |
| .special-book__quote { | |
| font-size: 9px; | |
| -webkit-line-clamp: 2; | |
| } | |
| .hero-copy { | |
| top: 56px; | |
| } | |
| .hero-copy h1 { | |
| font-size: clamp(66px, 20.8vw, 98px); | |
| } | |
| .hero-kicker { | |
| font-size: clamp(18.2px, 4.8vw, 22.1px); | |
| } | |
| .hero-tagline { | |
| max-width: calc(100vw - 32px); | |
| font-size: clamp(15.2px, 4vw, 18.4px); | |
| } | |
| .search-capsule { | |
| width: min(var(--hero-line-width), calc(100vw - 32px)); | |
| } | |
| .book-card { | |
| grid-template-columns: 92px 1fr; | |
| gap: 12px; | |
| padding: 18px 14px 16px; | |
| } | |
| .book-card__body { | |
| padding-right: 34px; | |
| } | |
| } | |
| /* Late override: single-book card uses a share ticket first, then expands into a catalog card. */ | |
| .book-card { | |
| display: block; | |
| width: min(282px, calc(100vw - 36px)); | |
| min-height: 0; | |
| padding: 0; | |
| border: 0; | |
| color: var(--book-paper-ink); | |
| background: transparent; | |
| box-shadow: none; | |
| backdrop-filter: none; | |
| -webkit-backdrop-filter: none; | |
| } | |
| .book-card[hidden], | |
| .share-preview[hidden] { | |
| display: none; | |
| } | |
| .book-card.is-ticket .book-card__detail-view, | |
| .book-card.is-detail .book-card__ticket-view { | |
| display: none; | |
| } | |
| .book-card.is-detail { | |
| width: min(820px, calc(100vw - 36px)); | |
| } | |
| .book-card__ticket-view { | |
| position: relative; | |
| } | |
| .book-ticket, | |
| .share-ticket { | |
| --ticket-cutout: color-mix(in srgb, var(--bg-0) 82%, transparent); | |
| position: relative; | |
| display: flex; | |
| overflow: hidden; | |
| flex-direction: column; | |
| width: min(270px, calc(100vw - 40px)); | |
| aspect-ratio: 3 / 4; | |
| border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); | |
| border-radius: 0; | |
| background: | |
| linear-gradient(180deg, rgba(255, 252, 244, 0.9), rgba(255, 248, 236, 0.82)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 360px 360px; | |
| box-shadow: 0 22px 52px rgba(60, 72, 82, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.58); | |
| animation: book-rise 0.34s cubic-bezier(0.2, 0.9, 0.2, 1); | |
| } | |
| .book-ticket::before, | |
| .share-ticket::before { | |
| content: ""; | |
| position: absolute; | |
| z-index: 2; | |
| top: 61.5%; | |
| left: -11px; | |
| right: -11px; | |
| height: 22px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 11px 50%, var(--ticket-cutout) 0 10px, transparent 10.8px), | |
| radial-gradient(circle at calc(100% - 11px) 50%, var(--ticket-cutout) 0 10px, transparent 10.8px); | |
| } | |
| .book-ticket::after, | |
| .share-ticket::after { | |
| content: ""; | |
| position: absolute; | |
| z-index: 2; | |
| right: 20px; | |
| bottom: -9px; | |
| left: 20px; | |
| height: 18px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 10% 0, var(--ticket-cutout) 0 9px, transparent 9.8px), | |
| radial-gradient(circle at 28% 0, var(--ticket-cutout) 0 9px, transparent 9.8px), | |
| radial-gradient(circle at 46% 0, var(--ticket-cutout) 0 9px, transparent 9.8px), | |
| radial-gradient(circle at 64% 0, var(--ticket-cutout) 0 9px, transparent 9.8px), | |
| radial-gradient(circle at 82% 0, var(--ticket-cutout) 0 9px, transparent 9.8px); | |
| } | |
| .book-ticket__cover, | |
| .share-ticket__cover { | |
| position: relative; | |
| display: flex; | |
| overflow: hidden; | |
| flex: 0 0 45%; | |
| min-height: 0; | |
| align-items: flex-start; | |
| justify-content: center; | |
| border-bottom: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); | |
| background: color-mix(in srgb, var(--bg-0) 68%, transparent); | |
| } | |
| .book-ticket__cover img, | |
| .share-ticket__cover img { | |
| display: block; | |
| width: 100%; | |
| height: 100%; | |
| max-width: none; | |
| max-height: none; | |
| object-fit: cover; | |
| object-position: top center; | |
| filter: none; | |
| } | |
| .book-ticket__cover .book-card__cover-fallback, | |
| .share-ticket__cover .book-card__cover-fallback, | |
| .book-card__detail-cover .book-card__cover-fallback { | |
| position: static; | |
| display: grid; | |
| width: 100%; | |
| min-height: 100%; | |
| place-items: center; | |
| color: color-mix(in srgb, var(--book-paper-ink) 58%, transparent); | |
| font-family: var(--font-mono); | |
| font-size: 12px; | |
| font-weight: 820; | |
| letter-spacing: 0.18em; | |
| } | |
| .book-ticket__body, | |
| .share-ticket__body { | |
| display: flex; | |
| flex: 1; | |
| min-height: 0; | |
| flex-direction: column; | |
| padding: 13px 17px 16px; | |
| } | |
| .book-card__location-zh, | |
| .book-card__location-en, | |
| .book-card__title-original, | |
| .book-card__meta, | |
| .book-card__shareline, | |
| .book-card__intro, | |
| .book-card__quote { | |
| margin: 0; | |
| } | |
| .book-card__location-zh { | |
| color: var(--accent); | |
| font-family: var(--font-ui); | |
| font-size: 12.5px; | |
| font-weight: 760; | |
| line-height: 1.15; | |
| letter-spacing: 0.055em; | |
| } | |
| .book-card__location-en { | |
| margin-top: 3px; | |
| color: color-mix(in srgb, var(--accent) 88%, var(--book-paper-ink)); | |
| font-family: var(--font-ui); | |
| font-size: 11px; | |
| font-weight: 680; | |
| line-height: 1.1; | |
| letter-spacing: 0.035em; | |
| } | |
| .book-card__title-zh { | |
| margin: 8px 0 0; | |
| color: var(--book-title); | |
| font-family: var(--font-zh-title); | |
| font-size: 22px; | |
| font-weight: 560; | |
| line-height: 1.08; | |
| letter-spacing: 0.035em; | |
| } | |
| .book-card__title-original { | |
| margin-top: 4px; | |
| color: color-mix(in srgb, var(--book-paper-ink) 70%, transparent); | |
| font-family: var(--font-latin); | |
| font-size: 12px; | |
| font-style: italic; | |
| line-height: 1.18; | |
| } | |
| .book-card__meta { | |
| margin-top: 8px; | |
| padding-top: 7px; | |
| border-top: 2px dotted color-mix(in srgb, var(--book-paper-ink) 26%, transparent); | |
| color: var(--book-meta); | |
| font-family: var(--font-ui); | |
| font-size: 11.5px; | |
| font-weight: 560; | |
| line-height: 1.35; | |
| } | |
| .book-card__shareline, | |
| .book-card__quote { | |
| margin-top: 8px; | |
| color: color-mix(in srgb, var(--book-paper-ink) 74%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 12px; | |
| font-weight: 520; | |
| line-height: 1.48; | |
| white-space: pre-line; | |
| } | |
| .book-card__ticket-actions { | |
| display: grid; | |
| grid-template-columns: repeat(3, 1fr); | |
| gap: 8px; | |
| margin-top: auto; | |
| padding-top: 10px; | |
| border-top: 2px dotted color-mix(in srgb, var(--book-paper-ink) 22%, transparent); | |
| } | |
| .book-card__action { | |
| display: grid; | |
| min-width: 0; | |
| height: 30px; | |
| padding: 0 8px; | |
| place-items: center; | |
| border: 1px solid color-mix(in srgb, var(--book-paper-ink) 14%, transparent); | |
| border-radius: 999px; | |
| color: color-mix(in srgb, var(--book-paper-ink) 70%, transparent); | |
| background: color-mix(in srgb, var(--bg-0) 54%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 12px; | |
| font-weight: 720; | |
| line-height: 1; | |
| cursor: pointer; | |
| } | |
| .book-card__action:hover, | |
| .book-card__action:focus { | |
| border-color: color-mix(in srgb, var(--accent) 45%, transparent); | |
| color: var(--accent); | |
| outline: none; | |
| } | |
| .book-card__save.is-saved { | |
| border-color: color-mix(in srgb, var(--accent) 48%, transparent); | |
| color: var(--accent); | |
| background: color-mix(in srgb, var(--accent) 11%, transparent); | |
| } | |
| .book-card__close, | |
| .share-preview__close { | |
| display: grid; | |
| width: 34px; | |
| height: 34px; | |
| padding: 0; | |
| place-items: center; | |
| border: 1px solid color-mix(in srgb, var(--book-paper-ink) 14%, transparent); | |
| border-radius: 0; | |
| color: color-mix(in srgb, var(--book-paper-ink) 70%, transparent); | |
| background: color-mix(in srgb, var(--bg-0) 66%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 22px; | |
| font-weight: 380; | |
| line-height: 1; | |
| cursor: pointer; | |
| } | |
| .book-card__close--float { | |
| position: absolute; | |
| z-index: 4; | |
| top: 8px; | |
| right: 8px; | |
| width: 30px; | |
| height: 30px; | |
| background: color-mix(in srgb, var(--bg-0) 58%, transparent); | |
| opacity: 0; | |
| transition: opacity 0.18s ease; | |
| } | |
| .book-card__ticket-view:hover .book-card__close--float, | |
| .book-card__close--float:focus { | |
| opacity: 1; | |
| } | |
| .book-card__detail-view { | |
| display: grid; | |
| grid-template-columns: minmax(210px, 268px) minmax(0, 1fr); | |
| gap: 30px; | |
| width: 100%; | |
| padding: 28px; | |
| border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); | |
| border-radius: 0; | |
| background: | |
| linear-gradient(135deg, rgba(255, 252, 245, 0.92), rgba(255, 247, 231, 0.84)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 430px 430px; | |
| box-shadow: 0 30px 88px rgba(55, 66, 78, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6); | |
| animation: book-rise 0.34s cubic-bezier(0.2, 0.9, 0.2, 1); | |
| backdrop-filter: blur(22px) saturate(118%); | |
| -webkit-backdrop-filter: blur(22px) saturate(118%); | |
| } | |
| .book-card__detail-cover { | |
| display: flex; | |
| min-height: 0; | |
| align-items: flex-start; | |
| justify-content: center; | |
| } | |
| .book-card__detail-cover img { | |
| display: block; | |
| width: 100%; | |
| height: auto; | |
| max-width: 100%; | |
| max-height: min(440px, 62vh); | |
| object-fit: contain; | |
| filter: drop-shadow(16px 20px 18px rgba(44, 50, 58, 0.16)); | |
| } | |
| .book-card__detail-body { | |
| display: flex; | |
| min-width: 0; | |
| flex-direction: column; | |
| } | |
| .book-card__detail-top, | |
| .book-card__detail-footer { | |
| display: flex; | |
| align-items: flex-start; | |
| justify-content: space-between; | |
| gap: 18px; | |
| } | |
| .book-card__detail-view .book-card__title-zh { | |
| margin-top: 20px; | |
| font-size: clamp(31px, 3vw, 46px); | |
| line-height: 1.06; | |
| } | |
| .book-card__detail-view .book-card__title-original { | |
| font-size: 19px; | |
| } | |
| .book-card__detail-view .book-card__meta { | |
| margin-top: 18px; | |
| padding-top: 0; | |
| border-top: 0; | |
| font-size: 14px; | |
| } | |
| .book-card__intro { | |
| display: block; | |
| margin-top: var(--detail-intro-margin-top, 22px); | |
| margin-bottom: var(--detail-intro-margin-bottom, 0); | |
| overflow: visible; | |
| color: color-mix(in srgb, var(--book-paper-ink) 78%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: calc(16px * var(--detail-intro-font-scale, 1)); | |
| font-weight: 520; | |
| line-height: var(--detail-intro-line-height, 1.75); | |
| white-space: pre-line; | |
| -webkit-line-clamp: unset; | |
| } | |
| .book-card__intro p { | |
| margin: 0; | |
| } | |
| .book-card__intro p + p { | |
| margin-top: var(--detail-intro-gap, 20px); | |
| } | |
| .book-card__detail-footer { | |
| align-items: center; | |
| margin-top: auto; | |
| padding-top: 24px; | |
| } | |
| .book-card__pager { | |
| position: static; | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| height: 32px; | |
| padding: 0; | |
| border: 0; | |
| background: transparent; | |
| } | |
| .book-card__page { | |
| display: grid; | |
| width: 30px; | |
| height: 30px; | |
| padding: 0; | |
| place-items: center; | |
| border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent); | |
| border-radius: 999px; | |
| color: var(--accent); | |
| background: color-mix(in srgb, var(--bg-0) 45%, transparent); | |
| font: inherit; | |
| font-size: 18px; | |
| line-height: 1; | |
| cursor: pointer; | |
| } | |
| .book-card__counter { | |
| display: grid; | |
| min-width: 42px; | |
| place-items: center; | |
| color: color-mix(in srgb, var(--book-paper-ink) 70%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 13px; | |
| font-weight: 720; | |
| } | |
| .book-card__detail-actions { | |
| display: flex; | |
| gap: 10px; | |
| } | |
| .book-card__detail-actions .book-card__action { | |
| min-width: 78px; | |
| } | |
| .share-preview { | |
| position: absolute; | |
| z-index: 14; | |
| inset: 0; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 18px; | |
| color: var(--ink); | |
| background: rgba(43, 54, 57, 0.35); | |
| backdrop-filter: blur(18px) saturate(104%); | |
| -webkit-backdrop-filter: blur(18px) saturate(104%); | |
| } | |
| .share-preview__close { | |
| position: absolute; | |
| top: 24px; | |
| right: 26px; | |
| } | |
| .share-preview__eyebrow { | |
| margin: 0; | |
| color: color-mix(in srgb, var(--bg-0) 82%, white); | |
| font-family: var(--font-ui); | |
| font-size: 15px; | |
| font-weight: 720; | |
| letter-spacing: 0.12em; | |
| } | |
| .share-ticket { | |
| width: min(336px, calc(100vw - 52px)); | |
| box-shadow: 0 28px 80px rgba(16, 24, 28, 0.3); | |
| } | |
| .share-ticket__cover { | |
| flex-basis: 47%; | |
| } | |
| .share-ticket__body { | |
| padding: 16px 20px 20px; | |
| } | |
| .share-ticket .book-card__title-zh { | |
| font-size: 25px; | |
| } | |
| .share-ticket__stamp { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 12px; | |
| margin-top: auto; | |
| padding-top: 11px; | |
| border-top: 2px dotted color-mix(in srgb, var(--accent) 30%, transparent); | |
| color: color-mix(in srgb, var(--ink) 62%, transparent); | |
| font-family: var(--font-latin); | |
| font-size: 11px; | |
| } | |
| .share-ticket__serial { | |
| color: var(--accent); | |
| font-family: var(--font-mono); | |
| letter-spacing: 0.08em; | |
| } | |
| .share-preview__save { | |
| min-width: 210px; | |
| height: 48px; | |
| border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); | |
| border-radius: 999px; | |
| color: #fff; | |
| background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 86%, #d94f42)); | |
| box-shadow: 0 15px 36px color-mix(in srgb, var(--accent) 30%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 16px; | |
| font-weight: 760; | |
| cursor: pointer; | |
| } | |
| @media (max-width: 720px) { | |
| .music-signature { | |
| bottom: 22px; | |
| max-width: calc(100vw - 42px); | |
| font-size: 12.6px; | |
| } | |
| .music-signature__credit { | |
| max-width: calc(100vw - 92px); | |
| } | |
| } | |
| @media (max-width: 720px) { | |
| .book-card { | |
| width: min(282px, calc(100vw - 28px)); | |
| padding: 0; | |
| } | |
| .book-card.is-detail { | |
| width: min(420px, calc(100vw - 28px)); | |
| } | |
| .book-card__detail-view { | |
| grid-template-columns: 1fr; | |
| max-height: calc(100vh - 44px); | |
| overflow: auto; | |
| gap: 20px; | |
| padding: 20px; | |
| } | |
| .book-card__detail-cover img { | |
| width: min(220px, 70vw); | |
| } | |
| .book-card__detail-view .book-card__title-zh { | |
| font-size: 32px; | |
| } | |
| } | |
| /* Final physical ticket card: complete cover joined to a paper body, no visible card outline. */ | |
| .book-card__cover-fallback[hidden] { | |
| display: none ; | |
| } | |
| .book-ticket, | |
| .share-ticket { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 84%, #e9f3ef 16%); | |
| box-sizing: border-box; | |
| overflow: hidden; | |
| border: 0; | |
| border-radius: 0; | |
| background: | |
| linear-gradient(180deg, rgba(255, 252, 244, 0.93), rgba(255, 248, 235, 0.84)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 360px 360px; | |
| box-shadow: | |
| 0 22px 52px rgba(35, 51, 54, 0.17), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.44); | |
| } | |
| .book-ticket::before, | |
| .share-ticket::before { | |
| content: ""; | |
| position: absolute; | |
| z-index: 4; | |
| top: calc(50% + 38px); | |
| left: -13px; | |
| right: -13px; | |
| display: block; | |
| height: 26px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 13px 50%, var(--ticket-cutout-bg) 0 12px, transparent 12.8px), | |
| radial-gradient(circle at calc(100% - 13px) 50%, var(--ticket-cutout-bg) 0 12px, transparent 12.8px); | |
| } | |
| .book-ticket::after, | |
| .share-ticket::after { | |
| content: ""; | |
| position: absolute; | |
| z-index: 4; | |
| right: 20px; | |
| bottom: -7px; | |
| left: 20px; | |
| display: block; | |
| height: 14px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 12% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 31% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 50% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 69% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 88% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px); | |
| } | |
| .book-ticket { | |
| width: min(250px, calc(100vw - 40px)); | |
| min-height: 0; | |
| } | |
| .book-ticket__cover, | |
| .share-ticket__cover { | |
| display: block; | |
| height: auto; | |
| margin: 0; | |
| border: 0; | |
| border-radius: 0; | |
| background: transparent; | |
| } | |
| .book-ticket__cover img, | |
| .share-ticket__cover img { | |
| display: block; | |
| width: 100%; | |
| max-width: 100%; | |
| height: auto; | |
| max-height: none; | |
| object-fit: contain; | |
| object-position: center; | |
| filter: none; | |
| } | |
| .book-ticket__body, | |
| .share-ticket__body { | |
| padding: 15px 18px 18px; | |
| } | |
| .book-card__meta, | |
| .book-card__ticket-actions, | |
| .share-ticket__stamp { | |
| border-top-width: 1px; | |
| border-top-style: dashed; | |
| } | |
| .share-preview__canvas { | |
| box-sizing: border-box; | |
| display: grid; | |
| grid-template-rows: auto 1fr auto; | |
| width: min(430px, calc(100vw - 34px)); | |
| aspect-ratio: 3 / 4; | |
| padding: 18px 22px 20px; | |
| border: 0; | |
| } | |
| .share-ticket { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 76%, #e7f2ee 24%); | |
| align-self: center; | |
| justify-self: center; | |
| width: min(268px, 76%); | |
| } | |
| .share-preview__topbar { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| } | |
| .share-preview__close { | |
| position: static; | |
| } | |
| .share-preview__save { | |
| min-width: 168px; | |
| height: 42px; | |
| color: color-mix(in srgb, var(--ink) 68%, transparent); | |
| background: | |
| linear-gradient(135deg, color-mix(in srgb, var(--glass) 82%, transparent), color-mix(in srgb, var(--bg-0) 58%, transparent)); | |
| box-shadow: | |
| 0 7px 18px rgba(65, 82, 85, 0.08), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.52); | |
| } | |
| /* Final override: refined cut-card shape and true 3:4 share canvas. */ | |
| .book-card__cover-fallback[hidden] { | |
| display: none ; | |
| } | |
| .book-ticket, | |
| .share-ticket, | |
| .share-preview__canvas { | |
| box-sizing: border-box; | |
| } | |
| .book-ticket, | |
| .share-ticket { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 84%, #e9f3ef 16%); | |
| overflow: hidden; | |
| border-radius: 0; | |
| } | |
| .book-ticket::before, | |
| .share-ticket::before { | |
| content: ""; | |
| position: absolute; | |
| z-index: 4; | |
| top: calc(50% + 34px); | |
| left: -13px; | |
| right: -13px; | |
| display: block; | |
| height: 26px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 13px 50%, var(--ticket-cutout-bg) 0 12px, transparent 12.8px), | |
| radial-gradient(circle at calc(100% - 13px) 50%, var(--ticket-cutout-bg) 0 12px, transparent 12.8px); | |
| } | |
| .book-ticket::after, | |
| .share-ticket::after { | |
| content: ""; | |
| position: absolute; | |
| z-index: 4; | |
| right: 20px; | |
| bottom: -7px; | |
| left: 20px; | |
| display: block; | |
| height: 14px; | |
| pointer-events: none; | |
| background: | |
| radial-gradient(circle at 12% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 31% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 50% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 69% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px), | |
| radial-gradient(circle at 88% 0, var(--ticket-cutout-bg) 0 7px, transparent 7.8px); | |
| } | |
| .share-preview__canvas { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 78%, #e7f2ee 22%); | |
| display: grid; | |
| grid-template-rows: auto 1fr auto; | |
| width: min(430px, calc(100vw - 34px)); | |
| aspect-ratio: 3 / 4; | |
| padding: 18px 22px 20px; | |
| } | |
| .share-ticket { | |
| --ticket-cutout-bg: color-mix(in srgb, var(--bg-0) 76%, #e7f2ee 24%); | |
| align-self: center; | |
| justify-self: center; | |
| width: min(276px, 78%); | |
| } | |
| .share-preview__topbar { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| } | |
| .share-preview__close { | |
| position: static; | |
| } | |
| .share-preview__save { | |
| min-width: 168px; | |
| height: 42px; | |
| color: color-mix(in srgb, var(--ink) 68%, transparent); | |
| background: | |
| linear-gradient(135deg, color-mix(in srgb, var(--glass) 82%, transparent), color-mix(in srgb, var(--bg-0) 58%, transparent)); | |
| box-shadow: | |
| 0 7px 18px rgba(65, 82, 85, 0.08), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.52); | |
| } | |
| /* True final ticket-card correction: complete cover, joined body, no drawn outline. */ | |
| .book-card__cover-fallback[hidden] { | |
| display: none ; | |
| } | |
| .share-preview__canvas { | |
| width: min(510px, calc(100vw - 34px), calc((100vh - 34px) * 0.75)) ; | |
| height: auto ; | |
| aspect-ratio: 3 / 4 ; | |
| max-height: none ; | |
| } | |
| .book-ticket, | |
| .share-ticket { | |
| position: relative; | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| height: auto ; | |
| aspect-ratio: auto ; | |
| border: 0 ; | |
| border-radius: 0 ; | |
| background: transparent ; | |
| box-shadow: | |
| 0 22px 52px rgba(35, 51, 54, 0.17), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.42); | |
| } | |
| .book-ticket::before, | |
| .book-ticket::after, | |
| .share-ticket::before, | |
| .share-ticket::after { | |
| display: none ; | |
| } | |
| .book-ticket { | |
| width: min(222px, calc(100vw - 40px)); | |
| min-height: 0 ; | |
| } | |
| .book-ticket__cover, | |
| .share-ticket__cover { | |
| display: block; | |
| flex: 0 0 auto ; | |
| width: 100%; | |
| height: auto ; | |
| margin: 0 ; | |
| overflow: hidden; | |
| border: 0 ; | |
| border-radius: 0 ; | |
| background: transparent ; | |
| } | |
| .book-ticket__cover img, | |
| .share-ticket__cover img { | |
| display: block; | |
| width: 100% ; | |
| max-width: 100% ; | |
| height: auto ; | |
| max-height: none ; | |
| border-radius: 0 ; | |
| object-fit: contain ; | |
| object-position: center ; | |
| filter: none ; | |
| } | |
| .book-ticket__body, | |
| .share-ticket__body { | |
| flex: 0 0 auto ; | |
| margin: 0 ; | |
| padding: 12px 15px 12px; | |
| background: | |
| linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(255, 248, 235, 0.9)), | |
| url("../public/textures/land-paper-tile.png"); | |
| background-size: auto, 360px 360px; | |
| } | |
| .share-ticket { | |
| width: min(204px, 60%) ; | |
| max-height: none ; | |
| } | |
| .book-ticket .book-card__location-zh, | |
| .share-ticket .book-card__location-zh { | |
| overflow: hidden; | |
| font-size: 11px; | |
| line-height: 1.12; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } | |
| .book-ticket .book-card__location-en, | |
| .share-ticket .book-card__location-en { | |
| display: none ; | |
| } | |
| .book-ticket .book-card__title-zh, | |
| .share-ticket .book-card__title-zh { | |
| margin-top: 6px; | |
| font-size: 19px; | |
| line-height: 1.08; | |
| } | |
| .book-ticket .book-card__title-original, | |
| .share-ticket .book-card__title-original { | |
| margin-top: 3px; | |
| font-size: 10.8px; | |
| line-height: 1.12; | |
| } | |
| .book-ticket .book-card__meta, | |
| .share-ticket .book-card__meta { | |
| margin-top: 6px; | |
| padding-top: 6px; | |
| font-size: 10.6px; | |
| line-height: 1.24; | |
| border-top-width: 1px; | |
| } | |
| .book-ticket .book-card__shareline, | |
| .share-ticket .book-card__quote { | |
| display: -webkit-box; | |
| overflow: hidden; | |
| margin-top: 6px; | |
| font-size: 11px; | |
| line-height: 1.34; | |
| -webkit-box-orient: vertical; | |
| -webkit-line-clamp: 2; | |
| } | |
| .book-ticket .book-card__ticket-actions { | |
| position: relative; | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-around; | |
| gap: 0; | |
| margin-top: 8px; | |
| padding-top: 7px; | |
| border-top-width: 1px; | |
| } | |
| .book-ticket .book-card__action { | |
| position: relative; | |
| display: inline-grid; | |
| flex: 1 1 0; | |
| height: 32px; | |
| padding: 0; | |
| place-items: center; | |
| gap: 2px; | |
| border: 0; | |
| border-radius: 0; | |
| background: transparent; | |
| color: color-mix(in srgb, var(--book-paper-ink) 70%, transparent); | |
| font-size: 10.5px; | |
| line-height: 1; | |
| } | |
| .book-ticket .book-card__action + .book-card__action { | |
| border-left: 0 ; | |
| } | |
| .book-ticket .book-card__action + .book-card__action::before { | |
| content: ""; | |
| position: absolute; | |
| top: 4px; | |
| bottom: 4px; | |
| left: 0; | |
| width: 1px; | |
| background: color-mix(in srgb, var(--book-paper-ink) 18%, transparent); | |
| } | |
| .book-ticket .book-card__action-icon { | |
| display: block; | |
| width: 16px; | |
| height: 16px; | |
| fill: none; | |
| stroke: currentColor; | |
| stroke-width: 2; | |
| stroke-linecap: round; | |
| stroke-linejoin: round; | |
| } | |
| .book-ticket .book-card__action-label { | |
| display: block; | |
| line-height: 1; | |
| } | |
| .book-ticket .book-card__action:hover, | |
| .book-ticket .book-card__action:focus { | |
| color: var(--accent); | |
| background: transparent; | |
| box-shadow: none; | |
| outline: none; | |
| } | |
| .book-ticket .book-card__save.is-saved { | |
| color: var(--accent); | |
| background: transparent; | |
| } | |
| /* Theme-stable paper card text */ | |
| .book-card, | |
| .book-ticket, | |
| .share-ticket, | |
| .book-card__detail-view { | |
| color: var(--book-paper-ink); | |
| } | |
| .book-card__title-zh, | |
| .book-card__detail-view .book-card__title-zh, | |
| .book-ticket .book-card__title-zh, | |
| .share-ticket .book-card__title-zh { | |
| color: var(--book-title); | |
| } | |
| .book-card__title-original, | |
| .book-card__detail-view .book-card__title-original, | |
| .book-ticket .book-card__title-original, | |
| .share-ticket .book-card__title-original { | |
| color: color-mix(in srgb, var(--book-paper-ink) 78%, #1d3434 22%); | |
| } | |
| .book-card__meta, | |
| .book-card__detail-view .book-card__meta, | |
| .book-ticket .book-card__meta, | |
| .share-ticket .book-card__meta, | |
| .book-card__intro, | |
| .book-card__detail-view .book-card__intro, | |
| .book-ticket .book-card__shareline, | |
| .book-card__shareline, | |
| .share-ticket .book-card__quote, | |
| .book-card__quote { | |
| color: color-mix(in srgb, var(--book-paper-ink) 82%, #1d3434 18%); | |
| } | |
| .book-card__action, | |
| .book-card__page, | |
| .book-card__counter, | |
| .book-card__close, | |
| .book-ticket .book-card__action, | |
| .book-card__detail-actions .book-card__action { | |
| color: color-mix(in srgb, var(--book-paper-ink) 84%, #1d3434 16%); | |
| } | |
| /* EOF guard: ticket cutouts are clipped from the ticket shape, never painted on top. */ | |
| .book-ticket::before, | |
| .book-ticket::after, | |
| .share-ticket::before, | |
| .share-ticket::after { | |
| content: none ; | |
| display: none ; | |
| position: static ; | |
| width: 0 ; | |
| height: 0 ; | |
| background: none ; | |
| opacity: 0 ; | |
| visibility: hidden ; | |
| } | |
| /* Final ticket elevation and stack depth */ | |
| .book-card__ticket-view { | |
| isolation: isolate; | |
| overflow: visible; | |
| } | |
| #cityTooltip.is-ticket { | |
| width: min(var(--book-stack-width, 222px), calc(100vw - 36px)); | |
| } | |
| #cityTooltip.is-ticket .book-card__ticket-view { | |
| display: flex; | |
| align-items: flex-start; | |
| width: var(--book-stack-width, 222px); | |
| max-width: calc(100vw - 36px); | |
| } | |
| #cityTooltip.is-ticket .book-ticket { | |
| flex: 0 0 auto; | |
| z-index: var(--ticket-stack-z, 1); | |
| margin-left: var(--ticket-stack-overlap, 0px); | |
| transform: translate(var(--ticket-stack-x, 0px), calc(var(--ticket-stack-lift, 0px) + var(--ticket-stack-motion-y, 0px))) rotate(var(--ticket-stack-rotate, 0deg)); | |
| filter: | |
| drop-shadow(var(--ticket-cast-x, 8px) var(--ticket-cast-y, 16px) 20px rgba(23, 39, 42, var(--ticket-cast-alpha, 0.17))) | |
| drop-shadow(0 2px 5px rgba(255, 255, 255, 0.26)); | |
| box-shadow: | |
| 0 16px 42px rgba(30, 48, 52, 0.18), | |
| 0 4px 12px rgba(79, 91, 87, 0.1), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.62), | |
| inset 0 -18px 30px rgba(171, 135, 92, 0.06); | |
| transition: | |
| transform 0.42s cubic-bezier(0.2, 0.86, 0.2, 1), | |
| filter 0.22s ease, | |
| box-shadow 0.22s ease; | |
| } | |
| #cityTooltip.has-book-stack .book-ticket:not(.is-selected) { | |
| filter: | |
| drop-shadow(var(--ticket-cast-x, 9px) var(--ticket-cast-y, 18px) 18px rgba(23, 39, 42, var(--ticket-cast-alpha, 0.16))) | |
| brightness(0.965) | |
| saturate(0.94); | |
| box-shadow: | |
| -12px 0 22px rgba(21, 38, 40, 0.12), | |
| 0 10px 26px rgba(30, 48, 52, 0.14), | |
| inset 18px 0 30px rgba(29, 49, 50, 0.14), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.36); | |
| } | |
| #cityTooltip.has-book-stack .book-ticket:not(.is-selected) .book-ticket__cover, | |
| #cityTooltip.has-book-stack .book-ticket:not(.is-selected) .book-ticket__body { | |
| filter: brightness(0.97) saturate(0.94); | |
| } | |
| #cityTooltip .book-card__ticket-view.is-prepping-stack-motion .book-ticket { | |
| transition: none; | |
| } | |
| /* Final ticket globe elevation: one cast shadow belongs to the ticket group. */ | |
| #cityTooltip.is-ticket .book-card__ticket-view { | |
| position: relative; | |
| isolation: isolate; | |
| overflow: visible; | |
| --ticket-globe-shadow-alpha: 0.18; | |
| --ticket-globe-shadow-width: min(212px, calc(var(--book-stack-width, 222px) * 0.9)); | |
| --ticket-globe-shadow-height: 48px; | |
| --ticket-globe-shadow-y: 19px; | |
| } | |
| :root[data-theme="dark"] #cityTooltip.is-ticket .book-card__ticket-view { | |
| --ticket-globe-shadow-alpha: 0.22; | |
| } | |
| #cityTooltip.is-ticket .book-card__ticket-view::before { | |
| content: ""; | |
| position: absolute; | |
| z-index: 0; | |
| left: 50%; | |
| bottom: 4px; | |
| width: var(--ticket-globe-shadow-width); | |
| height: var(--ticket-globe-shadow-height); | |
| pointer-events: none; | |
| border-radius: 999px; | |
| background: rgba(23, 39, 42, var(--ticket-globe-shadow-alpha)); | |
| filter: blur(18px); | |
| opacity: 1; | |
| transform: translate(-50%, var(--ticket-globe-shadow-y)) scaleX(1.05); | |
| transform-origin: center; | |
| } | |
| #cityTooltip.is-ticket .book-ticket { | |
| position: relative; | |
| z-index: var(--ticket-stack-z, 1); | |
| filter: none ; | |
| box-shadow: | |
| inset 0 1px 0 rgba(255, 255, 255, 0.62), | |
| inset 0 -18px 30px rgba(171, 135, 92, 0.055) ; | |
| } | |
| #cityTooltip.has-book-stack .book-ticket:not(.is-selected) { | |
| filter: brightness(0.965) saturate(0.94) ; | |
| box-shadow: | |
| inset 16px 0 28px rgba(29, 49, 50, 0.12), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.36) ; | |
| } | |
| #cityTooltip.has-book-stack .book-ticket.is-selected { | |
| filter: none ; | |
| } | |
| /* Final city special ocean texture continuity: city tiles keep the global sea grain. */ | |
| :root.is-special-city-map .city-tile-layer { | |
| isolation: isolate; | |
| opacity: 1; | |
| filter: none; | |
| --city-ocean-origin-x: 50%; | |
| --city-ocean-origin-y: 50%; | |
| --city-ocean-start-radius: 30vmin; | |
| --city-ocean-start-size: 228px; | |
| --city-ocean-start-x: 0px; | |
| --city-ocean-start-y: 0px; | |
| --city-ocean-final-size: 180px; | |
| --city-ocean-final-x: 0px; | |
| --city-ocean-final-y: 0px; | |
| --city-map-tile-opacity: 1; | |
| --city-map-land-color: var(--land-mid); | |
| /* Keep the source city tiles crisp in light mode; color treatment belongs to the ocean layer. */ | |
| --city-map-land-filter: none; | |
| background: | |
| radial-gradient( | |
| circle at 40% 35%, | |
| color-mix(in srgb, var(--bg-0) 84%, #f4efe6 16%), | |
| color-mix(in srgb, var(--bg-1) 82%, #f4efe6 18%) 58%, | |
| color-mix(in srgb, var(--bg-0) 78%, #eee7dc 22%) 100% | |
| ), | |
| linear-gradient( | |
| 180deg, | |
| color-mix(in srgb, var(--bg-0) 86%, #f4efe6 14%), | |
| color-mix(in srgb, var(--bg-1) 84%, #eee7dc 16%) | |
| ); | |
| } | |
| :root[data-theme="dark"].is-special-city-map .city-tile-layer { | |
| opacity: 1; | |
| filter: none; | |
| --city-map-dark-land-target: #548482; | |
| --city-map-tile-opacity: 1; | |
| --city-map-land-color: var(--land-mid); | |
| --city-map-land-filter: url("#cityMapDarkLandMultiply"); | |
| background: | |
| radial-gradient( | |
| circle at 40% 35%, | |
| color-mix(in srgb, var(--city-map-dark-land-target) 78%, var(--ocean-a) 22%), | |
| color-mix(in srgb, var(--city-map-dark-land-target) 72%, var(--ocean-b) 28%) 60%, | |
| color-mix(in srgb, var(--city-map-dark-land-target) 66%, var(--ocean-c) 34%) 100% | |
| ), | |
| linear-gradient( | |
| 180deg, | |
| color-mix(in srgb, var(--city-map-dark-land-target) 74%, var(--bg-1) 26%), | |
| color-mix(in srgb, var(--city-map-dark-land-target) 70%, var(--bg-0) 30%) | |
| ); | |
| } | |
| .city-tile-layer__tiles { | |
| position: absolute; | |
| inset: 0; | |
| z-index: 1; | |
| pointer-events: none; | |
| transform: scale(var(--city-map-scale, 1)); | |
| transform-origin: center center; | |
| transition: opacity 0.46s cubic-bezier(0.18, 0.74, 0.2, 1); | |
| } | |
| :root.is-special-city-map .city-tile-layer__tiles { | |
| opacity: 0; | |
| } | |
| :root.is-special-city-map.is-city-special-land-ready .city-tile-layer.is-ready .city-tile-layer__tiles { | |
| opacity: 1; | |
| } | |
| :root.is-special-city-map .city-tile-layer__tile { | |
| z-index: 1; | |
| opacity: var(--city-map-tile-opacity); | |
| filter: var(--city-map-land-filter); | |
| } | |
| :root[data-theme="dark"].is-special-city-map .city-tile-layer__tile { | |
| filter: var(--city-map-land-filter); | |
| mix-blend-mode: multiply; | |
| } | |
| :root.is-special-city-map .city-tile-layer::before { | |
| content: none; | |
| } | |
| .city-tile-layer__ocean-overlay { | |
| position: absolute; | |
| inset: 0; | |
| z-index: 0; | |
| opacity: 0; | |
| pointer-events: none; | |
| transform: translateZ(0); | |
| clip-path: circle(150vmax at var(--city-ocean-origin-x) var(--city-ocean-origin-y)); | |
| background: | |
| radial-gradient( | |
| circle at 34% 28%, | |
| color-mix(in srgb, var(--ocean-a) 94%, transparent) 0 34%, | |
| color-mix(in srgb, var(--ocean-b) 92%, transparent) 58%, | |
| color-mix(in srgb, var(--ocean-c) 90%, transparent) 100% | |
| ), | |
| linear-gradient( | |
| 180deg, | |
| color-mix(in srgb, var(--ocean-a) 86%, var(--bg-0) 14%), | |
| color-mix(in srgb, var(--ocean-c) 88%, var(--bg-1) 12%) | |
| ); | |
| background-size: 100% 100%, 100% 100%; | |
| background-position: 50% 50%, 50% 50%; | |
| background-repeat: no-repeat, no-repeat; | |
| mix-blend-mode: normal; | |
| transition: opacity 0.34s ease; | |
| } | |
| .city-tile-layer__ocean-overlay::before { | |
| position: absolute; | |
| inset: 0; | |
| pointer-events: none; | |
| content: ""; | |
| opacity: 0; | |
| background-image: url("../public/textures/ocean-wave-lines-alpha.png"); | |
| background-size: var(--city-ocean-final-size) var(--city-ocean-final-size); | |
| background-position: var(--city-ocean-final-x) var(--city-ocean-final-y); | |
| background-repeat: repeat; | |
| mix-blend-mode: multiply; | |
| transition: opacity 0.72s ease; | |
| } | |
| :root.is-city-special-ocean-ready .city-tile-layer__ocean-overlay::before { | |
| opacity: 1; | |
| } | |
| :root.is-special-city-map.is-city-special-ready .city-tile-layer__ocean-overlay.is-ready { | |
| opacity: 1; | |
| } | |
| :root.is-special-city-map.is-city-special-ocean-ready .city-tile-layer__ocean-overlay.is-ready { | |
| opacity: 1; | |
| } | |
| :root[data-theme="dark"].is-special-city-map .city-tile-layer__ocean-overlay { | |
| background: | |
| radial-gradient( | |
| circle at 34% 28%, | |
| color-mix(in srgb, var(--ocean-a) 96%, transparent) 0 34%, | |
| color-mix(in srgb, var(--ocean-b) 94%, transparent) 58%, | |
| color-mix(in srgb, var(--ocean-c) 92%, transparent) 100% | |
| ), | |
| linear-gradient( | |
| 180deg, | |
| color-mix(in srgb, var(--ocean-a) 88%, var(--bg-0) 12%), | |
| color-mix(in srgb, var(--ocean-c) 90%, var(--bg-1) 10%) | |
| ); | |
| background-size: 100% 100%, 100% 100%; | |
| background-position: 50% 50%, 50% 50%; | |
| background-repeat: no-repeat, no-repeat; | |
| mix-blend-mode: normal; | |
| } | |
| :root[data-theme="dark"].is-special-city-map .city-tile-layer__ocean-overlay::before { | |
| background-image: url("../public/textures/ocean-wave-lines-white-alpha.png"); | |
| mix-blend-mode: screen; | |
| } | |
| :root.is-city-ocean-preparing .city-tile-layer { | |
| z-index: 1; | |
| background: transparent; | |
| } | |
| :root.is-city-ocean-entering .city-tile-layer { | |
| z-index: 3; | |
| background: transparent; | |
| } | |
| :root.is-city-ocean-preparing .city-tile-layer::after, | |
| :root.is-city-ocean-entering .city-tile-layer::after { | |
| opacity: 0; | |
| } | |
| :root.is-city-ocean-preparing .city-tile-layer__ocean-overlay.is-ready { | |
| opacity: 1; | |
| clip-path: circle(var(--city-ocean-start-radius) at var(--city-ocean-origin-x) var(--city-ocean-origin-y)); | |
| animation: none; | |
| will-change: clip-path, opacity; | |
| } | |
| :root.is-city-ocean-preparing .city-tile-layer__ocean-overlay.is-ready::before { | |
| background-size: var(--city-ocean-start-size) var(--city-ocean-start-size); | |
| background-position: var(--city-ocean-start-x) var(--city-ocean-start-y); | |
| animation: none; | |
| will-change: background-size, background-position; | |
| } | |
| :root.is-city-ocean-entering.is-city-special-loading .city-tile-layer__ocean-overlay.is-ready { | |
| opacity: 1; | |
| animation: city-ocean-expand 1750ms cubic-bezier(0.16, 0.84, 0.24, 1) both; | |
| will-change: clip-path, opacity; | |
| } | |
| :root.is-city-ocean-entering.is-city-special-loading .city-tile-layer__ocean-overlay.is-ready::before { | |
| background-size: var(--city-ocean-start-size) var(--city-ocean-start-size); | |
| background-position: var(--city-ocean-start-x) var(--city-ocean-start-y); | |
| animation: | |
| city-ocean-texture-scale 1750ms cubic-bezier(0.16, 0.84, 0.24, 1) both, | |
| city-ocean-texture-drift 30s linear infinite; | |
| will-change: background-size, background-position; | |
| } | |
| @keyframes city-ocean-expand { | |
| from { | |
| clip-path: circle(var(--city-ocean-start-radius) at var(--city-ocean-origin-x) var(--city-ocean-origin-y)); | |
| opacity: 0.64; | |
| } | |
| to { | |
| clip-path: circle(150vmax at var(--city-ocean-origin-x) var(--city-ocean-origin-y)); | |
| opacity: 1; | |
| } | |
| } | |
| @keyframes city-ocean-texture-scale { | |
| from { | |
| background-size: var(--city-ocean-start-size) var(--city-ocean-start-size); | |
| } | |
| to { | |
| background-size: var(--city-ocean-final-size) var(--city-ocean-final-size); | |
| } | |
| } | |
| @keyframes city-ocean-texture-drift { | |
| from { | |
| background-position: var(--city-ocean-start-x) var(--city-ocean-start-y); | |
| } | |
| to { | |
| background-position: calc(var(--city-ocean-start-x) - var(--city-ocean-final-size)) var(--city-ocean-start-y); | |
| } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .city-tile-layer__ocean-overlay, | |
| .city-tile-layer__ocean-overlay::before, | |
| .city-tile-layer__tiles, | |
| :root.is-city-ocean-preparing .city-tile-layer__ocean-overlay.is-ready::before, | |
| :root.is-city-ocean-preparing .city-tile-layer__ocean-overlay.is-ready, | |
| :root.is-city-ocean-entering.is-city-special-loading .city-tile-layer__ocean-overlay.is-ready::before, | |
| :root.is-city-ocean-entering.is-city-special-loading .city-tile-layer__ocean-overlay.is-ready { | |
| clip-path: none; | |
| animation: none; | |
| transition-duration: 0.01ms; | |
| } | |
| :root.is-special-city-map.is-city-special-content-ready .special-overlay-svg.is-ready .special-book-line, | |
| :root.is-special-city-map.is-city-special-content-ready .special-overlay-svg.is-ready .special-book-anchor, | |
| :root.is-special-city-map.is-city-special-content-ready .special-book-layer.is-ready .special-book { | |
| animation: none; | |
| } | |
| :root.is-special-city-map.is-city-special-content-ready .special-book-layer.is-ready .special-book { | |
| opacity: 1; | |
| transform: translate3d(var(--book-x), var(--book-y), 0) translate(-50%, -50%) scale(1); | |
| } | |
| :root.is-special-city-map.is-city-special-content-ready .special-overlay-svg.is-ready .special-book-line { | |
| opacity: 0.46; | |
| stroke-dasharray: 1 0; | |
| } | |
| :root.is-special-city-map.is-city-special-content-ready .special-overlay-svg.is-ready .special-book-anchor { | |
| opacity: var(--special-anchor-opacity, 0.78); | |
| } | |
| } | |
| :root[data-theme="dark"].is-special-city-map.is-city-special-ready .city-tile-layer__ocean-overlay.is-ready { | |
| opacity: 1; | |
| } | |
| :root[data-theme="dark"].is-special-city-map.is-city-special-ocean-ready .city-tile-layer__ocean-overlay.is-ready { | |
| opacity: 1; | |
| } | |
| :root.is-special-city-map .city-tile-layer.is-loading .city-tile-layer__tiles { | |
| opacity: 0; | |
| transition: none; | |
| } | |
| :root.is-special-city-map.is-city-special-content-ready .special-overlay-svg.is-ready, | |
| :root.is-special-city-map.is-city-special-content-ready .special-book-layer.is-ready { | |
| opacity: 1; | |
| visibility: visible; | |
| } | |
| :root.is-special-city-map:not(.is-city-special-content-ready) .special-overlay-svg, | |
| :root.is-special-city-map:not(.is-city-special-content-ready) .special-book-layer { | |
| opacity: 0; | |
| visibility: hidden; | |
| pointer-events: none; | |
| transition: none; | |
| } | |
| :root.is-special-city-map:not(.is-city-special-content-ready) .special-book-line, | |
| :root.is-special-city-map:not(.is-city-special-content-ready) .special-book-anchor, | |
| :root.is-special-city-map:not(.is-city-special-content-ready) .special-book { | |
| opacity: 0; | |
| animation: none; | |
| } | |
| :root.is-special-city-map.is-city-special-content-ready .special-overlay-svg.is-ready .special-book-line { | |
| opacity: 0; | |
| stroke-dasharray: 1 10; | |
| animation: city-special-line-reveal 0.64s ease forwards; | |
| animation-delay: calc(90ms + var(--book-delay, 0ms)); | |
| } | |
| :root.is-special-city-map.is-city-special-content-ready .special-overlay-svg.is-ready .special-book-anchor { | |
| opacity: 0; | |
| animation: city-special-anchor-reveal 0.52s ease forwards; | |
| animation-delay: var(--book-delay, 0ms); | |
| } | |
| :root.is-special-city-map.is-city-special-content-ready .special-book-layer.is-ready .special-book { | |
| opacity: 0; | |
| transform: translate3d(var(--book-x), calc(var(--book-y) + 18px), 0) translate(-50%, -50%) scale(0.965); | |
| animation: city-special-book-rise 0.74s cubic-bezier(0.18, 0.86, 0.2, 1) forwards; | |
| animation-delay: calc(35ms + var(--book-delay, 0ms)); | |
| } | |
| :root.is-special-city-map.is-city-special-content-ready .special-overlay-svg.is-ready .special-book-line.is-hovered { | |
| stroke: color-mix(in srgb, var(--accent) 90%, var(--ink) 10%); | |
| stroke-width: 1.72; | |
| opacity: 1; | |
| stroke-dasharray: 1 0; | |
| animation: none; | |
| } | |
| :root[data-theme="dark"].is-special-city-map.is-city-special-content-ready .special-overlay-svg.is-ready .special-book-line.is-hovered { | |
| stroke: color-mix(in srgb, #fff8ec 72%, var(--accent) 28%); | |
| stroke-width: 1.9; | |
| } | |
| :root.is-special-city-map.is-city-special-content-ready .special-overlay-svg.is-ready .special-book-anchor.is-hovered { | |
| opacity: var(--special-anchor-opacity); | |
| animation: none; | |
| } | |
| @keyframes city-special-book-rise { | |
| from { | |
| opacity: 0; | |
| transform: translate3d(var(--book-x), calc(var(--book-y) + 18px), 0) translate(-50%, -50%) scale(0.965); | |
| } | |
| 64% { | |
| opacity: 1; | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translate3d(var(--book-x), var(--book-y), 0) translate(-50%, -50%) scale(1); | |
| } | |
| } | |
| @keyframes city-special-anchor-reveal { | |
| from { | |
| opacity: 0; | |
| } | |
| to { | |
| opacity: var(--special-anchor-opacity, 0.78); | |
| } | |
| } | |
| @keyframes city-special-line-reveal { | |
| from { | |
| opacity: 0; | |
| stroke-dasharray: 1 10; | |
| } | |
| to { | |
| opacity: 0.46; | |
| stroke-dasharray: 1 0; | |
| } | |
| } | |
| :root.is-city-ocean-preparing .map-svg, | |
| :root.is-city-ocean-preparing .map-svg.is-dragging { | |
| opacity: 1; | |
| transition: none; | |
| } | |
| :root.is-city-ocean-entering .map-svg, | |
| :root.is-city-ocean-entering .map-svg.is-dragging { | |
| opacity: 0; | |
| transition: opacity 0.72s ease 0.08s; | |
| } | |
| :root.is-city-ocean-preparing .map-stage::before, | |
| :root.is-city-ocean-preparing .map-stage::after { | |
| transition: none; | |
| } | |
| :root.is-city-ocean-preparing .map-stage::before { | |
| opacity: 0.44; | |
| } | |
| :root.is-city-ocean-preparing .map-stage::after { | |
| opacity: 0.32; | |
| } | |
| :root.is-city-ocean-entering .map-stage::before { | |
| opacity: 0; | |
| transition: opacity 0.72s ease 0.08s; | |
| } | |
| :root.is-city-ocean-entering .map-stage::after { | |
| opacity: 0.04; | |
| transition: opacity 0.72s ease 0.08s; | |
| } | |
| :root.is-city-ocean-preparing .hero-copy, | |
| :root.is-city-ocean-preparing .halftone-canvas { | |
| opacity: 1; | |
| transition: none; | |
| } | |
| :root.is-city-ocean-entering .hero-copy, | |
| :root.is-city-ocean-entering .halftone-canvas { | |
| opacity: 0; | |
| transition: opacity 0.62s ease 0.06s; | |
| } | |
| :root.is-city-ocean-preparing .globe-ocean, | |
| :root.is-city-ocean-entering .globe-ocean, | |
| :root.is-city-ocean-preparing .globe-inner-softening, | |
| :root.is-city-ocean-entering .globe-inner-softening, | |
| :root.is-city-ocean-preparing .globe-rim, | |
| :root.is-city-ocean-entering .globe-rim { | |
| opacity: 1; | |
| } | |
| :root.is-city-ocean-preparing .globe-wave, | |
| :root.is-city-ocean-entering .globe-wave, | |
| :root[data-theme="dark"].is-city-ocean-preparing .globe-wave, | |
| :root[data-theme="dark"].is-city-ocean-entering .globe-wave { | |
| opacity: 0.48; | |
| } | |
| :root.is-city-ocean-preparing .special-boundary, | |
| :root.is-city-ocean-entering .special-boundary, | |
| :root.is-city-ocean-preparing .special-context, | |
| :root.is-city-ocean-entering .special-context { | |
| opacity: 0; | |
| } | |
| :root.is-city-ocean-preparing .country, | |
| :root.is-city-ocean-entering .country { | |
| opacity: 1; | |
| } | |
| :root.is-city-ocean-preparing .country-texture, | |
| :root.is-city-ocean-entering .country-texture { | |
| opacity: 0.62; | |
| } | |
| :root.is-special-city-map.is-city-ocean-preparing .country, | |
| :root.is-special-city-map.is-city-ocean-entering .country, | |
| :root.is-special-city-map.is-city-ocean-preparing .country-texture, | |
| :root.is-special-city-map.is-city-ocean-entering .country-texture, | |
| :root.is-special-city-map.is-city-ocean-preparing .country-shadow, | |
| :root.is-special-city-map.is-city-ocean-entering .country-shadow { | |
| opacity: 0; | |
| } | |
| :root.is-special-city-map .city-tile-layer::after { | |
| z-index: 0; | |
| opacity: 0.10; | |
| background: | |
| linear-gradient(180deg, color-mix(in srgb, var(--bg-0) 26%, transparent), color-mix(in srgb, var(--bg-0) 34%, transparent)), | |
| radial-gradient(circle at 50% 48%, transparent 0 36%, color-mix(in srgb, var(--bg-0) 30%, transparent) 76%); | |
| } | |
| :root.is-special-city-map .city-tile-layer__attribution { | |
| z-index: 4; | |
| } | |
| /* Final city-special ticket copy: keep popup tickets issue-led. */ | |
| .book-ticket.is-special-book-card .book-card__location-en, | |
| .share-preview.is-special-book-card .share-ticket .book-card__location-en, | |
| .book-card__detail-view.is-special-book-card .book-card__location-en { | |
| display: none ; | |
| } | |
| .book-ticket.is-special-book-card .book-card__location-zh, | |
| .share-preview.is-special-book-card .share-ticket .book-card__location-zh, | |
| .book-card__detail-view.is-special-book-card .book-card__location-zh { | |
| display: block ; | |
| max-width: 100%; | |
| overflow: visible; | |
| text-overflow: clip; | |
| white-space: nowrap; | |
| } | |
| .book-ticket.is-special-book-card .book-card__meta { | |
| margin-top: 7px ; | |
| padding-top: 0 ; | |
| border-top: 0 ; | |
| } | |
| /* Final share halftone color clarity: let the two inks lead, not the paper base. */ | |
| .share-preview__canvas { | |
| background: | |
| var(--share-halftone-image), | |
| linear-gradient(180deg, rgba(255, 253, 247, 0.34), rgba(235, 248, 244, 0.18)) ; | |
| background-position: center, center ; | |
| background-size: cover, auto ; | |
| } | |
| .share-preview__canvas::before { | |
| background: | |
| var(--share-cover-image) ; | |
| background-position: center ; | |
| background-size: cover ; | |
| filter: blur(18px) saturate(0.92) contrast(0.95) ; | |
| opacity: 0.54 ; | |
| mix-blend-mode: normal ; | |
| transform: scale(1.06) ; | |
| } | |
| .share-preview__canvas::after { | |
| background: | |
| var(--share-halftone-image), | |
| linear-gradient(180deg, rgba(255, 255, 250, 0.08), rgba(231, 247, 242, 0.06)) ; | |
| background-position: center, center ; | |
| background-size: cover, auto ; | |
| filter: saturate(1.08) contrast(1.18) brightness(0.86) ; | |
| opacity: 0 ; | |
| mix-blend-mode: normal ; | |
| } | |
| .share-preview[data-halftone-status="ready"] .share-preview__canvas::after { | |
| opacity: 1 ; | |
| } | |
| /* Final share action placement: keep the save button anchored below the ticket, never in the cover flow. */ | |
| .share-preview__canvas { | |
| position: relative ; | |
| overflow: visible ; | |
| backdrop-filter: none ; | |
| -webkit-backdrop-filter: none ; | |
| } | |
| .share-preview__actions { | |
| position: absolute ; | |
| left: 0 ; | |
| right: 0 ; | |
| bottom: -10px ; | |
| z-index: 5 ; | |
| display: flex ; | |
| justify-content: center ; | |
| padding: 0 ; | |
| pointer-events: none ; | |
| } | |
| .share-preview__save { | |
| pointer-events: auto ; | |
| } | |
| /* Final bookshelf visibility guard: keep shelf hover art, pager, and return controls above inherited card styles. */ | |
| :root.is-bookshelf-view .bookshelf-view { | |
| pointer-events: auto ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book { | |
| pointer-events: auto ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book__cover, | |
| :root.is-bookshelf-view .bookshelf-book__cover img, | |
| :root.is-bookshelf-view .bookshelf-book__cover::after { | |
| pointer-events: none ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book.is-hovered, | |
| :root.is-bookshelf-view .bookshelf-book:hover, | |
| :root.is-bookshelf-view .bookshelf-book:focus-visible { | |
| z-index: 12 ; | |
| filter: saturate(1.06) ; | |
| transform: translateY(-10px) scale(1.045) ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book.is-hovered .bookshelf-book__info, | |
| :root.is-bookshelf-view .bookshelf-book:hover .bookshelf-book__info, | |
| :root.is-bookshelf-view .bookshelf-book:focus .bookshelf-book__info, | |
| :root.is-bookshelf-view .bookshelf-book:focus-visible .bookshelf-book__info { | |
| display: block ; | |
| visibility: visible ; | |
| opacity: 1 ; | |
| transform: translate(-50%, -9px) ; | |
| } | |
| @supports selector(:has(*)) { | |
| :root.is-bookshelf-view .bookshelf-book:has(.bookshelf-book__cover:hover) { | |
| z-index: 12 ; | |
| filter: saturate(1.06) ; | |
| transform: translateY(-10px) scale(1.045) ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book:has(.bookshelf-book__cover:hover) .bookshelf-book__info { | |
| display: block ; | |
| visibility: visible ; | |
| opacity: 1 ; | |
| transform: translate(-50%, -9px) ; | |
| } | |
| } | |
| :root.is-bookshelf-view .bookshelf-pager:not([hidden]) { | |
| position: fixed ; | |
| left: 50vw ; | |
| right: auto ; | |
| bottom: clamp(22px, 4.2vh, 44px) ; | |
| z-index: 90 ; | |
| display: flex ; | |
| visibility: visible ; | |
| align-items: center ; | |
| gap: 9px ; | |
| width: max-content ; | |
| min-width: max-content ; | |
| height: 34px ; | |
| min-height: 34px ; | |
| opacity: 1 ; | |
| pointer-events: auto ; | |
| transform: translateX(-50%) ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-pager[hidden] { | |
| display: none ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-pager__button, | |
| :root.is-bookshelf-view .bookshelf-pager__label { | |
| visibility: visible ; | |
| opacity: 1 ; | |
| } | |
| .book-card.is-detail.is-from-bookshelf-detail .book-card__detail-view > .book-card__close--detail { | |
| z-index: 80 ; | |
| visibility: visible ; | |
| opacity: 1 ; | |
| pointer-events: auto ; | |
| } | |
| /* Bookshelf view: local saved books become a tactile wall shelf, not a data table. */ | |
| .bookshelf-toggle { | |
| position: absolute; | |
| top: 24px; | |
| right: 132px; | |
| z-index: 6; | |
| display: grid; | |
| width: 48px; | |
| height: 48px; | |
| padding: 0; | |
| border: 1px solid var(--glass-border); | |
| border-radius: 999px; | |
| color: var(--muted); | |
| background: | |
| linear-gradient(135deg, rgba(255, 255, 250, 0.04), rgba(248, 250, 243, 0)), | |
| var(--capsule-glass); | |
| box-shadow: | |
| 0 16px 38px rgba(56, 67, 65, 0.1), | |
| inset 0 1px 0 rgba(255, 255, 255, 0.72), | |
| inset 0 -1px 0 rgba(255, 255, 255, 0.18); | |
| cursor: pointer; | |
| place-items: center; | |
| transition: | |
| border-color 0.18s ease, | |
| color 0.18s ease, | |
| opacity 0.18s ease, | |
| transform 0.24s cubic-bezier(0.18, 0.9, 0.24, 1.18), | |
| visibility 0s linear 0s; | |
| backdrop-filter: blur(1.6px) saturate(118%); | |
| -webkit-backdrop-filter: blur(1.6px) saturate(118%); | |
| } | |
| .bookshelf-toggle:hover, | |
| .bookshelf-toggle:focus-visible { | |
| border-color: color-mix(in srgb, var(--accent) 42%, transparent); | |
| color: var(--accent); | |
| outline: none; | |
| transform: translateY(-1px); | |
| } | |
| .bookshelf-toggle__icon { | |
| width: 23px; | |
| height: 23px; | |
| fill: none; | |
| stroke: currentColor; | |
| stroke-linecap: round; | |
| stroke-linejoin: round; | |
| stroke-width: 1.9; | |
| } | |
| .bookshelf-toggle__count { | |
| position: absolute; | |
| right: -4px; | |
| bottom: -3px; | |
| display: grid; | |
| min-width: 18px; | |
| height: 18px; | |
| padding: 0 5px; | |
| border: 1px solid rgba(255, 250, 240, 0.82); | |
| border-radius: 999px; | |
| color: #fffaf0; | |
| background: var(--accent); | |
| box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 24%, transparent); | |
| font-family: var(--font-ui); | |
| font-size: 10px; | |
| font-weight: 700; | |
| line-height: 18px; | |
| place-items: center; | |
| } | |
| .bookshelf-toggle__count[hidden] { | |
| display: none; | |
| } | |
| :root.is-special-view .bookshelf-toggle, | |
| :root.is-bookshelf-view .bookshelf-toggle, | |
| :root.is-bookshelf-view .theme-toggle, | |
| :root.is-bookshelf-view .map-stage > .special-back-button, | |
| :root.is-bookshelf-view .drag-hint, | |
| :root.is-bookshelf-view .music-signature { | |
| opacity: 0; | |
| pointer-events: none; | |
| transform: translateY(-4px) scale(0.98); | |
| visibility: hidden; | |
| } | |
| .bookshelf-view { | |
| position: absolute; | |
| inset: 0; | |
| z-index: 20; | |
| --bookshelf-ink: #263a36; | |
| --bookshelf-muted: rgba(38, 58, 54, 0.58); | |
| --bookshelf-glass-top: rgba(251, 252, 246, 0.68); | |
| --bookshelf-glass-bottom: rgba(238, 244, 237, 0.62); | |
| --bookshelf-glass-side: rgba(255, 255, 250, 0.3); | |
| --bookshelf-pager-ink: #20342f; | |
| display: grid; | |
| grid-template-rows: minmax(0, 1fr) auto; | |
| padding: clamp(12px, 2.6vw, 34px) clamp(18px, 6vw, 78px) clamp(20px, 4vw, 46px); | |
| color: var(--bookshelf-ink); | |
| background: | |
| radial-gradient(circle at 16% 18%, rgba(243, 128, 108, 0.13), transparent 24%), | |
| radial-gradient(circle at 84% 20%, rgba(88, 138, 154, 0.12), transparent 26%), | |
| linear-gradient(180deg, var(--bookshelf-glass-top), var(--bookshelf-glass-bottom)), | |
| repeating-linear-gradient(90deg, rgba(72, 87, 82, 0.025) 0 1px, transparent 1px 8px); | |
| overflow: hidden; | |
| backdrop-filter: blur(12px) saturate(116%); | |
| -webkit-backdrop-filter: blur(12px) saturate(116%); | |
| } | |
| .bookshelf-view[hidden] { | |
| display: none; | |
| } | |
| .bookshelf-view::before { | |
| position: absolute; | |
| inset: 0; | |
| background: | |
| linear-gradient(90deg, var(--bookshelf-glass-side), transparent 24% 76%, rgba(223, 231, 224, 0.38)), | |
| radial-gradient(circle at 50% 112%, rgba(93, 102, 92, 0.18), transparent 48%); | |
| content: ""; | |
| pointer-events: none; | |
| } | |
| :root[data-theme="dark"] .bookshelf-view { | |
| --bookshelf-ink: #efe8dc; | |
| --bookshelf-muted: rgba(239, 232, 220, 0.6); | |
| --bookshelf-glass-top: rgba(18, 31, 30, 0.82); | |
| --bookshelf-glass-bottom: rgba(13, 23, 23, 0.78); | |
| --bookshelf-glass-side: rgba(240, 232, 214, 0.08); | |
| --bookshelf-pager-ink: #efe8dc; | |
| background: | |
| radial-gradient(circle at 16% 18%, rgba(243, 128, 108, 0.08), transparent 24%), | |
| radial-gradient(circle at 84% 20%, rgba(83, 152, 154, 0.14), transparent 26%), | |
| linear-gradient(180deg, var(--bookshelf-glass-top), var(--bookshelf-glass-bottom)), | |
| repeating-linear-gradient(90deg, rgba(230, 224, 204, 0.035) 0 1px, transparent 1px 8px); | |
| } | |
| .bookshelf-view__stage, | |
| .bookshelf-pager { | |
| position: relative; | |
| z-index: 1; | |
| } | |
| .bookshelf-view__stage { | |
| display: grid; | |
| min-height: 0; | |
| padding: clamp(4px, 1.2vw, 16px) 0 clamp(10px, 2vw, 24px); | |
| place-items: center; | |
| transform: translateY(8px); | |
| } | |
| .bookshelf-grid { | |
| --bookshelf-book-height: clamp(168px, 22vh, 214px); | |
| display: grid; | |
| width: min(1120px, 100%); | |
| min-height: min(650px, 68vh); | |
| grid-template-rows: repeat(2, minmax(210px, 1fr)); | |
| gap: clamp(18px, 4vh, 42px); | |
| } | |
| .bookshelf-row { | |
| position: relative; | |
| isolation: isolate; | |
| display: grid; | |
| grid-template-columns: repeat(6, minmax(82px, 1fr)); | |
| align-items: end; | |
| justify-items: center; | |
| gap: clamp(12px, 2vw, 28px); | |
| min-height: 0; | |
| padding: 0 clamp(8px, 1.6vw, 20px) 52px; | |
| } | |
| .bookshelf-row::before, | |
| .bookshelf-row::after { | |
| position: absolute; | |
| content: ""; | |
| pointer-events: none; | |
| } | |
| /* bookshelf-row back board: the rear rail sits behind covers and gives the shelf depth. */ | |
| .bookshelf-row::before { | |
| left: clamp(10px, 1.8vw, 22px); | |
| right: clamp(10px, 1.8vw, 22px); | |
| z-index: 0; | |
| bottom: 42px; | |
| height: clamp(54px, 8.2vh, 82px); | |
| border-radius: 4px 4px 1px 1px; | |
| background: | |
| linear-gradient(180deg, rgba(202, 147, 84, 0.94), rgba(168, 108, 56, 0.96)), | |
| repeating-linear-gradient(90deg, rgba(255, 232, 178, 0.14) 0 18px, rgba(93, 60, 34, 0.09) 18px 44px); | |
| box-shadow: | |
| 0 12px 20px rgba(72, 47, 27, 0.18), | |
| inset 0 2px 0 rgba(255, 228, 176, 0.38), | |
| inset 10px 0 18px rgba(255, 232, 184, 0.16), | |
| inset -10px 0 18px rgba(84, 52, 28, 0.18), | |
| inset 0 -16px 18px rgba(88, 54, 28, 0.2); | |
| } | |
| /* bookshelf-row front lip: this raised board crosses in front of cover bottoms. */ | |
| .bookshelf-row::after { | |
| left: clamp(2px, 1vw, 12px); | |
| right: clamp(2px, 1vw, 12px); | |
| z-index: 2; | |
| bottom: 34px; | |
| height: 22px; | |
| border-radius: 4px 4px 8px 8px; | |
| background: | |
| linear-gradient(180deg, rgba(232, 181, 113, 0.99) 0%, rgba(188, 125, 63, 0.99) 42%, rgba(111, 72, 40, 0.98) 100%), | |
| repeating-linear-gradient(90deg, rgba(255, 237, 190, 0.19) 0 26px, rgba(86, 53, 29, 0.1) 26px 62px); | |
| box-shadow: | |
| 0 18px 24px rgba(55, 43, 31, 0.26), | |
| 0 5px 8px rgba(60, 39, 21, 0.18), | |
| inset 0 2px 0 rgba(255, 239, 195, 0.5), | |
| inset 0 -6px 8px rgba(72, 43, 24, 0.3); | |
| } | |
| .bookshelf-book { | |
| position: relative; | |
| z-index: 1; | |
| display: grid; | |
| align-self: end; | |
| justify-items: center; | |
| min-width: 0; | |
| padding: 0; | |
| border: 0; | |
| color: inherit; | |
| background: transparent; | |
| cursor: pointer; | |
| margin-bottom: -1px; | |
| transform: translateY(0); | |
| transform-origin: center bottom; | |
| transition: filter 0.24s ease; | |
| } | |
| .bookshelf-book.is-hovered, | |
| .bookshelf-book:hover, | |
| .bookshelf-book:focus-visible { | |
| z-index: 1; | |
| filter: saturate(1.06); | |
| outline: none; | |
| transform: none; | |
| } | |
| .bookshelf-book__cover { | |
| position: relative; | |
| z-index: 2; | |
| display: inline-block; | |
| width: fit-content; | |
| max-width: 100%; | |
| height: var(--bookshelf-book-height); | |
| justify-self: center; | |
| overflow: hidden; | |
| border-radius: 2px; | |
| background: | |
| linear-gradient(135deg, rgba(245, 238, 214, 0.96), rgba(214, 229, 226, 0.92)), | |
| linear-gradient(135deg, #f3806c, #5b8a9a); | |
| box-shadow: | |
| 0 18px 26px rgba(50, 57, 51, 0.2), | |
| 2px 0 0 rgba(255, 255, 255, 0.42) inset, | |
| -5px 0 9px rgba(33, 30, 24, 0.12) inset; | |
| transform: translateY(0) scale(1); | |
| transform-origin: center bottom; | |
| transition: transform 0.34s cubic-bezier(0.2, 0.74, 0.24, 1), filter 0.24s ease; | |
| } | |
| .bookshelf-book.is-hovered .bookshelf-book__cover, | |
| .bookshelf-book:hover .bookshelf-book__cover, | |
| .bookshelf-book:focus .bookshelf-book__cover, | |
| .bookshelf-book:focus-visible .bookshelf-book__cover { | |
| transform: translateY(-10px) scale(1.035); | |
| filter: drop-shadow(0 16px 18px rgba(35, 42, 38, 0.18)); | |
| will-change: transform, filter; | |
| } | |
| .bookshelf-book__cover::after { | |
| position: absolute; | |
| inset: 0; | |
| background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 18% 82%, rgba(20, 18, 14, 0.12)); | |
| content: ""; | |
| pointer-events: none; | |
| } | |
| .bookshelf-book__cover img { | |
| display: block; | |
| width: auto; | |
| max-width: 100%; | |
| height: 100%; | |
| object-fit: contain; | |
| } | |
| .bookshelf-book__fallback { | |
| display: grid; | |
| width: calc(var(--bookshelf-book-height) * 0.72); | |
| max-width: 100%; | |
| height: 100%; | |
| color: rgba(32, 52, 58, 0.64); | |
| font-family: var(--font-display); | |
| font-size: clamp(15px, 1.6vw, 24px); | |
| font-weight: 520; | |
| letter-spacing: 0.08em; | |
| place-items: center; | |
| } | |
| .bookshelf-book__info { | |
| position: absolute; | |
| left: 50%; | |
| bottom: calc(100% - 7px); | |
| z-index: 1; | |
| display: block; | |
| width: max-content; | |
| max-width: min(170px, 118%); | |
| padding: 0; | |
| border: 0; | |
| color: var(--bookshelf-ink); | |
| background: transparent; | |
| box-shadow: none; | |
| opacity: 0; | |
| pointer-events: none; | |
| text-align: center; | |
| transform: translate(-50%, 9px); | |
| transition: opacity 0.18s ease, transform 0.22s ease; | |
| } | |
| .bookshelf-book.is-hovered .bookshelf-book__info, | |
| .bookshelf-book:hover .bookshelf-book__info, | |
| .bookshelf-book:focus .bookshelf-book__info, | |
| .bookshelf-book:focus-visible .bookshelf-book__info { | |
| opacity: 1; | |
| transform: translate(-50%, -9px); | |
| will-change: opacity, transform; | |
| } | |
| .bookshelf-book__location { | |
| display: block; | |
| max-width: 100%; | |
| overflow: hidden; | |
| text-overflow: clip; | |
| text-transform: uppercase; | |
| white-space: nowrap; | |
| text-shadow: 0 1px 8px rgba(255, 255, 250, 0.7); | |
| font-family: var(--font-display); | |
| font-size: 13px; | |
| font-stretch: 112%; | |
| font-weight: 300; | |
| letter-spacing: 0.045em; | |
| line-height: 1.15; | |
| transform: scaleX(1.08); | |
| transform-origin: center bottom; | |
| } | |
| :root[data-theme="dark"] .bookshelf-book__location { | |
| text-shadow: 0 1px 8px rgba(2, 8, 8, 0.72); | |
| } | |
| .bookshelf-empty { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| margin: 0; | |
| color: var(--bookshelf-muted); | |
| font-family: var(--font-ui); | |
| font-size: clamp(14px, 1.8vw, 18px); | |
| font-weight: 600; | |
| letter-spacing: 0.04em; | |
| transform: translate(-50%, -50%); | |
| } | |
| .bookshelf-empty[hidden] { | |
| display: none; | |
| } | |
| .bookshelf-pager { | |
| --book-paper-ink: var(--bookshelf-pager-ink); | |
| position: fixed; | |
| left: 50vw; | |
| right: auto; | |
| bottom: clamp(22px, 4.2vh, 44px); | |
| z-index: 24; | |
| display: flex; | |
| align-items: center; | |
| justify-self: auto; | |
| gap: 9px; | |
| width: max-content; | |
| height: 34px; | |
| min-height: 34px; | |
| margin: 0; | |
| padding: 0 2px; | |
| border: 0; | |
| border-radius: 0; | |
| background: transparent; | |
| box-shadow: none; | |
| opacity: 1; | |
| transform: translateX(-50%); | |
| } | |
| .bookshelf-pager[hidden] { | |
| display: none; | |
| } | |
| .bookshelf-pager .bookshelf-pager__button { | |
| display: grid; | |
| width: 18px; | |
| height: 30px; | |
| padding: 0; | |
| border: 0; | |
| border-radius: 999px; | |
| color: color-mix(in srgb, var(--book-paper-ink) 88%, transparent); | |
| background: transparent; | |
| box-shadow: none; | |
| backdrop-filter: none; | |
| -webkit-backdrop-filter: none; | |
| cursor: pointer; | |
| font-family: var(--font-page-control); | |
| font-size: 16px; | |
| font-weight: 420; | |
| letter-spacing: 0; | |
| line-height: 1; | |
| opacity: 1; | |
| place-items: center; | |
| text-shadow: 0 1px 8px rgba(255, 255, 250, 0.72); | |
| transition: color 150ms ease, opacity 150ms ease, background 150ms ease; | |
| } | |
| .bookshelf-pager .bookshelf-pager__button:hover, | |
| .bookshelf-pager .bookshelf-pager__button:focus-visible { | |
| color: var(--accent); | |
| background: color-mix(in srgb, var(--accent) 10%, transparent); | |
| outline: none; | |
| } | |
| .bookshelf-pager .bookshelf-pager__button:disabled { | |
| cursor: default; | |
| opacity: 0.46; | |
| } | |
| .bookshelf-pager__label { | |
| min-width: 38px; | |
| color: color-mix(in srgb, var(--book-paper-ink) 76%, transparent); | |
| font-family: var(--font-page-control); | |
| font-size: 11px; | |
| font-weight: 420; | |
| letter-spacing: 0; | |
| text-shadow: 0 1px 8px rgba(255, 255, 250, 0.72); | |
| } | |
| :root[data-theme="dark"] .bookshelf-pager .bookshelf-pager__button, | |
| :root[data-theme="dark"] .bookshelf-pager__label { | |
| text-shadow: 0 1px 8px rgba(2, 8, 8, 0.72); | |
| } | |
| @media (max-width: 820px) { | |
| .bookshelf-toggle { | |
| top: 78px; | |
| right: 24px; | |
| } | |
| .bookshelf-view { | |
| padding: 14px 16px 20px; | |
| } | |
| .bookshelf-view__stage { | |
| padding-top: 0; | |
| place-items: center; | |
| transform: translateY(-14px); | |
| } | |
| .bookshelf-grid { | |
| --bookshelf-book-height: min(24vh, 178px); | |
| min-height: auto; | |
| grid-template-rows: repeat(2, minmax(235px, auto)); | |
| gap: 42px; | |
| } | |
| .bookshelf-row { | |
| grid-template-columns: repeat(3, minmax(76px, 1fr)); | |
| gap: 13px; | |
| padding: 0 3px 48px; | |
| } | |
| .bookshelf-book__info { | |
| max-width: min(132px, 118%); | |
| } | |
| .bookshelf-book__location { | |
| font-size: 12px; | |
| } | |
| } | |
| /* Final share action placement: keep the save button anchored below the ticket, never in the cover flow. */ | |
| .share-preview__canvas { | |
| position: relative ; | |
| overflow: visible ; | |
| } | |
| .share-preview__actions { | |
| position: absolute ; | |
| left: 0 ; | |
| right: 0 ; | |
| bottom: -10px ; | |
| z-index: 5 ; | |
| display: flex ; | |
| justify-content: center ; | |
| padding: 0 ; | |
| pointer-events: none ; | |
| } | |
| .share-preview__save { | |
| pointer-events: auto ; | |
| } | |
| /* Absolute final bookshelf pager guard: it must stay after every shelf layout rule. */ | |
| :root.is-bookshelf-view #bookshelfPager.bookshelf-pager:not([hidden]) { | |
| position: fixed ; | |
| left: 50vw ; | |
| right: auto ; | |
| bottom: clamp(22px, 4.2vh, 44px) ; | |
| z-index: 999 ; | |
| display: flex ; | |
| visibility: visible ; | |
| align-items: center ; | |
| gap: 9px ; | |
| width: max-content ; | |
| min-width: max-content ; | |
| height: 34px ; | |
| min-height: 34px ; | |
| opacity: 1 ; | |
| pointer-events: auto ; | |
| transform: translateX(-50%) ; | |
| } | |
| :root.is-bookshelf-view #bookshelfPager.bookshelf-pager[hidden] { | |
| display: none ; | |
| } | |
| :root.is-bookshelf-view #bookshelfPager.bookshelf-pager .bookshelf-pager__button, | |
| :root.is-bookshelf-view #bookshelfPager.bookshelf-pager .bookshelf-pager__label { | |
| display: grid ; | |
| visibility: visible ; | |
| opacity: 1 ; | |
| pointer-events: auto ; | |
| place-items: center ; | |
| } | |
| /* Final bookshelf pager clearance guard: shelf rows must never invade the bottom page control. */ | |
| :root.is-bookshelf-view { | |
| --bookshelf-pager-safe-area: clamp(72px, 10vh, 104px); | |
| } | |
| :root.is-bookshelf-view .bookshelf-view__stage { | |
| box-sizing: border-box ; | |
| padding-bottom: var(--bookshelf-pager-safe-area) ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-grid { | |
| min-height: min(650px, calc(100vh - var(--bookshelf-pager-safe-area) - clamp(96px, 13vh, 136px))) ; | |
| grid-template-rows: repeat(2, minmax(clamp(150px, 24vh, 210px), 1fr)) ; | |
| } | |
| @media (max-width: 820px) { | |
| :root.is-bookshelf-view .bookshelf-grid { | |
| min-height: min(512px, calc(100vh - var(--bookshelf-pager-safe-area) - 64px)) ; | |
| grid-template-rows: repeat(2, minmax(clamp(168px, 29vh, 235px), auto)) ; | |
| gap: clamp(24px, 5vh, 42px) ; | |
| } | |
| } | |
| @media (min-width: 821px) and (max-height: 560px) { | |
| :root.is-bookshelf-view .bookshelf-grid { | |
| --bookshelf-book-height: clamp(128px, 28vh, 168px); | |
| gap: clamp(14px, 3vh, 22px) ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-row { | |
| padding-bottom: 42px ; | |
| } | |
| } | |
| /* Final bookmark perforation guard: city-special tear lines reach both paper edges. */ | |
| .special-book__rule { | |
| width: auto ; | |
| margin-right: -11px ; | |
| margin-left: -11px ; | |
| } | |
| /* Final bookshelf hover hitbox guard: pointer hitboxes are stabilized by the final visibility block below. */ | |
| /* Final bookshelf hover visibility guard: keep the hover label and cover lift above every earlier shelf rule. */ | |
| :root.is-bookshelf-view .bookshelf-view { | |
| pointer-events: auto ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-back-button, | |
| :root.is-bookshelf-view .bookshelf-view__stage, | |
| :root.is-bookshelf-view .bookshelf-pager, | |
| :root.is-bookshelf-view .bookshelf-book { | |
| pointer-events: auto ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book { | |
| transform: none ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book__cover { | |
| z-index: 2 ; | |
| transform: translateY(0) scale(1) ; | |
| transform-origin: center bottom ; | |
| transition: transform 0.34s cubic-bezier(0.2, 0.74, 0.24, 1), filter 0.24s ease ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book__cover, | |
| :root.is-bookshelf-view .bookshelf-book__cover img, | |
| :root.is-bookshelf-view .bookshelf-book__cover::after { | |
| pointer-events: auto ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book__info { | |
| bottom: calc(100% + 9px) ; | |
| z-index: 1 ; | |
| display: block ; | |
| visibility: visible ; | |
| opacity: 0 ; | |
| transform: translate(-50%, 10px) ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book.is-hovered, | |
| :root.is-bookshelf-view .bookshelf-book:hover, | |
| :root.is-bookshelf-view .bookshelf-book:focus, | |
| :root.is-bookshelf-view .bookshelf-book:focus-visible { | |
| z-index: 1 ; | |
| filter: saturate(1.06) ; | |
| transform: none ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book.is-hovered .bookshelf-book__cover, | |
| :root.is-bookshelf-view .bookshelf-book:hover .bookshelf-book__cover, | |
| :root.is-bookshelf-view .bookshelf-book:focus .bookshelf-book__cover, | |
| :root.is-bookshelf-view .bookshelf-book:focus-visible .bookshelf-book__cover { | |
| transform: translateY(-10px) scale(1.035) ; | |
| filter: drop-shadow(0 16px 18px rgba(35, 42, 38, 0.18)) ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book.is-hovered .bookshelf-book__info, | |
| :root.is-bookshelf-view .bookshelf-book:hover .bookshelf-book__info, | |
| :root.is-bookshelf-view .bookshelf-book:focus .bookshelf-book__info, | |
| :root.is-bookshelf-view .bookshelf-book:focus-visible .bookshelf-book__info { | |
| bottom: calc(100% + 9px) ; | |
| z-index: 1 ; | |
| opacity: 1 ; | |
| transform: translate(-50%, -9px) ; | |
| } | |
| @supports selector(:has(*)) { | |
| :root.is-bookshelf-view .bookshelf-book:has(.bookshelf-book__cover:hover) { | |
| z-index: 1 ; | |
| filter: saturate(1.06) ; | |
| transform: none ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book:has(.bookshelf-book__cover:hover) .bookshelf-book__cover { | |
| transform: translateY(-10px) scale(1.035) ; | |
| filter: drop-shadow(0 16px 18px rgba(35, 42, 38, 0.18)) ; | |
| } | |
| :root.is-bookshelf-view .bookshelf-book:has(.bookshelf-book__cover:hover) .bookshelf-book__info { | |
| bottom: calc(100% + 9px) ; | |
| z-index: 1 ; | |
| opacity: 1 ; | |
| transform: translate(-50%, -9px) ; | |
| } | |
| } | |
| /* Prepare the next share page offscreen, then swap the complete ticket in one frame. */ | |
| .share-preview--staging { | |
| position: fixed ; | |
| top: 0 ; | |
| left: -10000px ; | |
| width: 100vw ; | |
| height: 100vh ; | |
| visibility: hidden ; | |
| opacity: 0 ; | |
| pointer-events: none ; | |
| } | |
| .share-preview.is-loading .share-preview__page, | |
| .share-preview.is-loading .share-preview__save { | |
| pointer-events: none; | |
| opacity: 0.34; | |
| } | |
| /* Reveal the prepared share ticket once, with a short whole-card float. */ | |
| .share-preview .share-ticket { | |
| animation: none ; | |
| } | |
| .share-preview.is-revealing .share-ticket { | |
| animation: share-page-ticket-in 220ms cubic-bezier(0.2, 0.82, 0.24, 1) both ; | |
| } | |
| @keyframes share-page-ticket-in { | |
| from { | |
| opacity: 0; | |
| transform: translate3d(0, 8px, 0) scale(0.985); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translate3d(0, 0, 0) scale(1); | |
| } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| .share-preview.is-revealing .share-ticket { | |
| animation: none; | |
| opacity: 1; | |
| transform: none; | |
| } | |
| } | |