@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');


/* ============================================
   刮刮研究室 — 全域 CSS 主題
   📋 查核報告風格：純白底色、權威深藍重點色、專業公信力
   數據視覺化導向，讓使用者 3 秒看懂哪張彩券值得買
   ============================================ */
/* required styles */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}
.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}
.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}
.leaflet-pane         { z-index: 400; }
.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }
.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }
.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}
/* control positioning */
.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}
/* zoom and fade animations */
.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}
.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}
.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}
/* cursors */
.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}
/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}
.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
/* visual tweaks */
.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}
/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}
/* general toolbar styles */
.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}
.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}
/* zoom control */
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}
.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}
/* layers control */
.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}
/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=);
	}
/* attribution and scale controls */
.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}
.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}
/* popup */
.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}
.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}
.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}
/* div icon */
.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}
/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}
/* Directions */
.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}
/* Printing */
@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
/* === Design Tokens — 查核報告風格 === */
:root {
  /* 背景色系 — 乾淨白底 */
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #F8F9FA;
  --color-bg-tertiary: #F1F3F5;
  --color-bg-elevated: #FFFFFF;
  --color-bg-card: #FFFFFF;

  /* 核心色彩 — 權威深藍 */
  --color-navy: #0B192C;
  --color-navy-light: #1a2d47;
  --color-navy-muted: rgba(11, 25, 44, 0.06);

  /* 功能色 */
  --color-success: #1E8449;
  --color-danger: #D32F2F;
  --color-warning: #F39C12;
  --color-info: #2980B9;

  /* 板岩灰 */
  --color-slate: #5A6268;
  --color-slate-light: #868E96;
  --color-slate-lighter: #ADB5BD;

  /* 文字色彩 — 高對比 */
  --color-text-primary: #0B192C;
  --color-text-secondary: #5A6268;
  --color-text-tertiary: #868E96;
  --color-text-muted: #ADB5BD;

  /* 邊框 & 分隔線 */
  --color-border: #DEE2E6;
  --color-border-hover: #0B192C;
  --color-separator: #E9ECEF;

  /* 陰影 — 輕盈層次 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.14);

  /* 圓角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-pill: 9999px;

  /* 字型 */
  --font-primary: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;

  /* 間距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;
  --spacing-5xl: 128px;

  /* 過渡 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* 容器 */
  --container-max: 1120px;
  --nav-height: 56px;
}
/* === Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-primary);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}
#root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-success);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
button:active {
  transform: scale(0.96);
}
/* === 容器 === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}
/* === 白底卡片 === */
.glass-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.glass-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
/* === Keyframes === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 6px rgba(211, 47, 47, 0.15);
  }

  50% {
    box-shadow: 0 0 16px rgba(211, 47, 47, 0.3);
  }
}
@keyframes breathe {

  0%,
  100% {
    opacity: 0.85;
  }

  50% {
    opacity: 1;
  }
}
@keyframes numberTick {
  0% {
    transform: translateY(-4px);
    opacity: 0.6;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.45s ease forwards;
}
/* 載入旋轉器 */
.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-separator);
  border-top-color: var(--color-navy);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
/* 色彩輔助 */
.text-green {
  color: var(--color-success);
}
.text-red {
  color: var(--color-danger);
}
.text-gold {
  color: var(--color-warning);
}
/* === 滾動條 === */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
  border: 1px solid var(--color-bg-secondary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-slate-lighter);
}
/* === RWD === */
@media (max-width: 768px) {
  body {
    padding-bottom: 64px;
  }
}
@media (max-width: 640px) {
  :root {
    --nav-height: 48px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 48px;
    --spacing-4xl: 64px;
  }

  .container {
    padding: 0 var(--spacing-md);
  }
}.login-btn__line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    background: #06c755;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.login-btn__line:hover {
    background: #05a847;
    transform: translateY(-1px);
}

.login-btn__line-icon {
    flex-shrink: 0;
}

.login-btn__user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--color-bg-secondary, #F8F9FA);
    border: 1px solid var(--color-border, #DEE2E6);
    border-radius: 2rem;
}

.login-btn__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d4af37;
}

.login-btn__info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.login-btn__name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-primary, #0B192C);
}

.login-btn__level {
    font-size: 0.65rem;
    color: #d4af37;
}

.login-btn__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-secondary, #5A6268);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.login-btn__logout:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

@media (max-width: 768px) {
    .login-btn__info {
        display: none;
    }

    .login-btn__user {
        padding: 0.25rem;
    }
}/* === NavBar — 查核報告風格 === */
/* 純白背景、深藍文字、綠色 Active 底線 */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: #FFFFFF;
    border-bottom: 1px solid rgba(90, 98, 104, 0.2);
    z-index: 100;
    backdrop-filter: none;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: #0B192C;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.navbar__logo svg {
    color: #0B192C;
}

.navbar__links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    height: 100%;
}

.navbar__link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #5A6268;
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.navbar__link:hover {
    color: #0B192C;
}

.navbar__link--active {
    color: #0B192C;
    font-weight: 600;
    border-bottom: 3px solid #1E8449;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar__toggle {
    display: none;
    background: none;
    border: none;
    color: #0B192C;
    padding: 4px;
}

/* Mobile */
@media (max-width: 768px) {
    .navbar__links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: #FFFFFF;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-sm) 0;
        display: none;
        height: auto;
    }

    .navbar__links--open {
        display: flex;
    }

    .navbar__link {
        width: 100%;
        height: auto;
        padding: 12px var(--spacing-lg);
        border-bottom: none;
    }

    .navbar__link--active {
        background: rgba(30, 132, 73, 0.06);
        border-bottom: none;
        border-left: 3px solid #1E8449;
    }

    .navbar__toggle {
        display: flex;
    }
}/* === Footer — Executive Style === */

.footer {
    margin-top: auto;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-border);
    position: relative;
}

/* 頂部金屬光條 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.12), rgba(232, 212, 139, 0.18), rgba(201, 168, 76, 0.12), transparent);
    pointer-events: none;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: center;
}

.footer__text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-tertiary);
    font-size: 0.78rem;
}

.footer__heart {
    color: var(--color-gold-primary);
}

.footer__sub {
    color: var(--color-text-muted);
    font-size: 0.7rem;
}/* === 行動版底部導覽 — 查核報告風格 === */

.mobile-tab-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-tab-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: #FFFFFF;
        border-top: 1px solid rgba(90, 98, 104, 0.2);
        z-index: 100;
        padding-bottom: env(safe-area-inset-bottom, 0);
        /* 加入橫向滑動支援 */
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        /* 隱藏捲動條 */
        scrollbar-width: none;
    }
    
    .mobile-tab-bar::-webkit-scrollbar {
        display: none;
    }

    .mobile-tab-bar__item {
        /* 改為定寬，確保不會被過度擠壓 */
        flex: 0 0 65px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #5A6268;
        font-size: 0.62rem;
        font-weight: 500;
        text-decoration: none;
        min-height: 44px;
        transition: color var(--transition-fast);
    }

    .mobile-tab-bar__item:hover {
        color: #0B192C;
    }

    .mobile-tab-bar__item--active {
        color: #0B192C;
        font-weight: 600;
    }

    .mobile-tab-bar__item--active svg {
        color: #0B192C;
    }
}/* === 首頁 — 查核報告風格 === */
/* 白底卡片、膠囊 Tab、乾淨 Grid、清晰標籤系統 */

/* Hero：報告白背景 */
.home__hero {
    padding: calc(var(--nav-height) + var(--spacing-4xl)) 0 var(--spacing-3xl);
    text-align: center;
    background: #F8F9FA;
    background-image:
        linear-gradient(rgba(11, 25, 44, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 25, 44, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
}

.home__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0B192C;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.home__subtitle {
    color: var(--color-text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 400;
    max-width: 500px;
    margin: var(--spacing-sm) auto 0;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* 搜尋 & 篩選 */
.home__filters {
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.home__search {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px var(--spacing-md);
    background: #FFFFFF;
    border: 1.5px solid #5A6268;
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.home__search:focus-within {
    border-color: #0B192C;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(11, 25, 44, 0.08);
}

.home__search svg {
    color: var(--color-text-tertiary);
    flex-shrink: 0;
}

.home__search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 0.92rem;
    color: var(--color-text-primary);
    font-family: inherit;
    caret-color: #0B192C;
}

.home__search input::placeholder {
    color: var(--color-text-muted);
}

/* 排序 Tab — 膠囊型 */
.home__sort-tabs {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.sort-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sort-tab:hover {
    color: #0B192C;
    border-color: #0B192C;
}

.sort-tab--active {
    background: #0B192C;
    color: #FFFFFF;
    border-color: #0B192C;
}

.sort-tab--active svg {
    color: #FFFFFF;
}

/* 過期核選方塊 */
.home__expired-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    user-select: none;
}

.home__expired-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.home__expired-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--color-border);
    border-radius: 4px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
}

.home__expired-toggle input:checked+.home__expired-checkbox {
    background: #0B192C;
    border-color: #0B192C;
}

.home__expired-toggle input:checked+.home__expired-checkbox::after {
    content: '✓';
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
}

/* 進階篩選切換按鈕 */
.home__filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    font-family: inherit;
}

.home__filter-toggle:hover {
    color: #0B192C;
    border-color: #0B192C;
}

.home__filter-toggle--active {
    background: #0B192C;
    color: #FFFFFF;
    border-color: #0B192C;
}

.home__filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #D32F2F;
    color: #FFFFFF;
    font-size: 0.6rem;
    font-weight: 700;
}

/* 進階篩選面板 */
.home__advanced-filters {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-md);
    animation: filterSlideDown 0.2s ease-out;
}

@keyframes filterSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.home__filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.home__filter-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.home__filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: #F8F9FA;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.filter-chip:hover {
    border-color: #0B192C;
    color: #0B192C;
}

.filter-chip--active {
    background: #0B192C;
    color: #FFFFFF;
    border-color: #0B192C;
}

.home__filter-range {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.home__filter-range input {
    width: 100px;
    padding: 8px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-family: inherit;
    background: #FFFFFF;
    color: var(--color-text-primary);
    outline: none;
    transition: border-color var(--transition-fast);
}

.home__filter-range input:focus {
    border-color: #0B192C;
}

.home__filter-range input::placeholder {
    color: var(--color-text-muted);
}

.home__filter-range-sep {
    color: var(--color-text-tertiary);
    font-size: 0.85rem;
}

.home__clear-filters {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 4px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 500;
    color: #D32F2F;
    background: rgba(211, 47, 47, 0.06);
    border: 1px solid rgba(211, 47, 47, 0.2);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.home__clear-filters:hover {
    background: rgba(211, 47, 47, 0.12);
    border-color: rgba(211, 47, 47, 0.4);
}

/* 區段標題 */
.home__section-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-primary);
}

.home__section-title svg {
    color: var(--color-warning);
}

/* 本週推薦 */
.home__featured {
    margin-bottom: var(--spacing-xl);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 推薦 Tab 切換列 */
.featured-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.featured-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.featured-tab:hover {
    border-color: #0B192C;
    color: #0B192C;
}

.featured-tab--active {
    background: #0B192C;
    color: #FFFFFF;
    border-color: #0B192C;
}

.featured-tab__emoji {
    font-size: 0.85rem;
    line-height: 1;
}

.featured-tab__title {
    white-space: nowrap;
}

/* 推薦卡片 */
.featured-card {
    display: flex;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.featured-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.featured-card__image {
    width: 40%;
    min-height: 180px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    padding: 8px;
}

.featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.featured-card:hover .featured-card__image img {
    transform: scale(1.05);
}

.featured-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    font-size: 3rem;
}

.featured-card__info {
    flex: 1;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-sm);
}

/* 推薦標語標籤 */
.featured-card__recommend-tag {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(11, 25, 44, 0.06);
    color: #0B192C;
}

.featured-card__prize-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(30, 132, 73, 0.1);
    color: #1E8449;
}

.featured-card__name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #0B192C;
    letter-spacing: -0.01em;
}

.featured-card__meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.featured-card__winrate {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #1E8449;
    font-weight: 600;
}

/* 輪播指示器圓點 */
.featured-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: var(--spacing-md);
}

.featured-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
}

.featured-dot--active {
    background: #0B192C;
    width: 24px;
    border-radius: 4px;
}

/* 列表區段 */
.home__list-section {
    margin-bottom: var(--spacing-3xl);
}

.home__list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.home__count {
    font-size: 0.78rem;
    color: var(--color-text-tertiary);
}

/* 遊戲 Grid */
.home__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

@media (max-width: 640px) {
    .home__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* 卡片 */
.scratch-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
}

.scratch-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.scratch-card--alert {
    border-color: rgba(211, 47, 47, 0.3);
}

.scratch-card--expired {
    opacity: 0.5;
}

.scratch-card--expired:hover {
    opacity: 0.75;
}

/* 標籤群組 */
.scratch-card__tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    z-index: 3;
}

.scratch-card__tag {
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* Top 10% — 綠底白字 */
.scratch-card__tag--top {
    background: #1E8449;
    color: #FFFFFF;
}

/* 🔥 熱門 — 警戒黃底深藍字 */
.scratch-card__tag--hot {
    background: #F39C12;
    color: #0B192C;
}

/* NEW — 深藍底白字 */
.scratch-card__tag--new {
    background: #0B192C;
    color: #FFFFFF;
}

/* 已完售 — 灰底白字 */
.scratch-card__tag--sold {
    background: #5A6268;
    color: #FFFFFF;
}

/* 已過期 — 灰底白字 */
.scratch-card__tag--expired {
    background: #5A6268;
    color: #FFFFFF;
}

/* 紅色警戒徽章 — 3D 霓虹紅光效果 */
.scratch-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    z-index: 3;

    /* 3D 透視與微傾斜 */
    perspective: 600px;
    transform: perspective(600px) rotateX(2deg) rotateY(-3deg);
    transform-style: preserve-3d;

    /* 多層霓虹紅光 — 半透明深紅底 */
    background: linear-gradient(135deg, #FF1744, #D50000, #FF1744);
    background-size: 200% 200%;
    color: #FFFFFF;

    /* 多層 box-shadow 霓虹發光 */
    box-shadow:
        0 0 6px rgba(255, 23, 68, 0.5),
        0 0 14px rgba(255, 23, 68, 0.3),
        0 0 28px rgba(255, 23, 68, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);

    /* 文字光暈 */
    text-shadow: 0 0 6px rgba(255, 23, 68, 0.6);

    /* 霓虹呼吸動畫 */
    animation: neon-pulse 2.5s ease-in-out infinite;

    /* 掃光偽元素用 */
    overflow: hidden;
}

/* 掃光效果 */
.scratch-card__badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.35),
            transparent);
    transform: skewX(-20deg);
    animation: badge-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

/* 警戒卡片邊框光暈 */
.scratch-card--alert {
    border-color: rgba(255, 23, 68, 0.35);
    box-shadow:
        var(--shadow-sm),
        0 0 12px rgba(255, 23, 68, 0.08),
        0 0 24px rgba(255, 23, 68, 0.04);
}

.scratch-card--alert:hover {
    box-shadow:
        var(--shadow-hover),
        0 0 16px rgba(255, 23, 68, 0.12),
        0 0 32px rgba(255, 23, 68, 0.06);
}

/* 霓虹呼吸 keyframes — 多層光暈 + 色溫變化 */
@keyframes neon-pulse {

    0%,
    100% {
        box-shadow:
            0 0 6px rgba(255, 23, 68, 0.5),
            0 0 14px rgba(255, 23, 68, 0.3),
            0 0 28px rgba(255, 23, 68, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
        background-position: 0% 50%;
    }

    50% {
        box-shadow:
            0 0 10px rgba(255, 23, 68, 0.7),
            0 0 24px rgba(255, 23, 68, 0.45),
            0 0 48px rgba(255, 23, 68, 0.2),
            0 0 72px rgba(255, 23, 68, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
        background-position: 100% 50%;
    }
}

/* 掃光動畫 */
@keyframes badge-shimmer {
    0% {
        left: -60%;
    }

    50%,
    100% {
        left: 120%;
    }
}

/* 圖片 — contain 完整顯示，不裁切 */
.scratch-card__image {
    width: 100%;
    aspect-ratio: 1.4;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px;
}

.scratch-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.scratch-card:hover .scratch-card__image img {
    transform: scale(1.05);
}

.scratch-card__placeholder {
    font-size: 2.5rem;
}

/* 卡片資訊 */
.scratch-card__info {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.scratch-card__name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #0B192C;
    letter-spacing: -0.01em;
}

.scratch-card__price {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.scratch-card__stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--color-text-secondary);
}

.stat svg {
    color: var(--color-text-tertiary);
}

.stat--highlight {
    color: #1E8449;
}

.stat--highlight svg {
    color: #1E8449;
}

/* 最高獎金底部高亮 */
.scratch-card__max-prize {
    margin-top: 6px;
    padding: 8px;
    border-top: 1px solid var(--color-separator);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(211, 47, 47, 0.04);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    margin-bottom: calc(-1 * var(--spacing-md));
    padding: var(--spacing-sm) var(--spacing-md);
}

.scratch-card__max-prize-label {
    font-size: 0.68rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.scratch-card__max-prize-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #D32F2F;
    letter-spacing: -0.01em;
}

/* 銷售進度條 — 深藍填滿 */
.scratch-card__popularity {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scratch-card__popularity-bar {
    width: 100%;
    height: 4px;
    background: #E9ECEF;
    border-radius: 2px;
    overflow: hidden;
}

.scratch-card__popularity-fill {
    height: 100%;
    border-radius: 2px;
    background: #0B192C;
    transition: width var(--transition-base);
}

.scratch-card__popularity-label {
    font-size: 0.68rem;
    color: var(--color-text-tertiary);
    text-align: right;
}

/* 載入 & 空狀態 */
.home__loading,
.home__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-4xl);
    color: var(--color-text-muted);
}

/* RWD */
@media (max-width: 768px) {
    .home__grid {
        padding-bottom: 80px;
    }
}

@media (max-width: 640px) {
    .home__hero {
        padding: calc(var(--nav-height) + var(--spacing-2xl)) var(--spacing-md) var(--spacing-xl);
    }

    .home__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .home__sort-tabs {
        gap: 6px;
    }

    .sort-tab {
        padding: 6px 14px;
        font-size: 0.78rem;
    }

    .featured-card {
        flex-direction: column;
    }

    .featured-card__image {
        width: 100%;
        min-height: 160px;
    }

    .featured-card__info {
        padding: var(--spacing-md);
    }
}