﻿ /* 全局顏色設定 */
        :root {
            --rotary-blue: #005AAB;
            --rotary-dark-blue: #004587;
        }

        body {
            font-family: "Noto Sans TC", sans-serif;
			font-weight: initial;
			font-size:1rem;
            color: #333;
			margin:0;
        }
		.container{
			max-width: 1200px;
			margin: 0 auto;
			text-align:center;
		}

        /* 導覽列樣式 */
        .navbar {
			padding: 25px 0 15px 0;
			position: relative;
			z-index: 3;
        }
		.navbar .container{
			display: flex;
			justify-content: center;
		}
		.navbar-brand{
			display: flex;
			align-items: center;
			justify-content: center;
			text-decoration: none;
		}
        .nav-link {
            color: #555;
            font-weight: 600;
            margin: 0 15px;
        }
		.navbar-brand img{
			width: 53%;
		}
		.navbar-brand span{
			    font-size: 1.6rem;
    color: #0d5ea4;
    font-weight: 600;
    text-decoration: none;
    margin-left: 15px;
		}
            .nav-link:hover {
                color: var(--rotary-blue);
            }

        .btn-outline-primary-custom {
            background-color: var(--rotary-blue);
            color: white;
            border-radius: 20px;
            padding: 8px 20px;
            font-weight: 600;
        }

            .btn-outline-primary-custom:hover {
                background-color: var(--rotary-dark-blue);
                color: white;
            }
			
	 /* 主視覺 */
	 .main-content{
		margin-top: -115px;
	 }


	 
			
			 /* Hero 區塊樣式 (波浪背景建議實務上切圖當 background-image) */
    .hero-section {
        background: linear-gradient(to bottom, #E8F4FE 0%, #FFFFFF 100%);
        padding: 145px 0 95px 0;
        text-align: center;
        background-image: url('/Images/m-bg.png');
        background-size: cover;
        background-position: center bottom;
		position: relative;
		z-index: 2;
    }
	.hero-section .container{
	    display: flex;
		justify-content: center;
		align-items: center;
		align-content: center;
		flex-direction: column;
	}

    .hero-title {
        font-size: 3.2rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 4px;
    background: linear-gradient(to right, #145EBB 20%, #7bc5f8 40%, /* 光澤的顏色 */ #7bc5f8 60%, #145EBB 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shineSweep 3s linear infinite;
    margin: 1rem 0 0rem 0;
    }
	/* 光澤動畫的關鍵影格 */
@keyframes shineSweep {
  to {
    background-position: 200% center;
  }
}



	.hero-title span:nth-child(1){
		margin-right:10px;
	}

    .hero-subtitle {
        color: #666;
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .btn-fill-now {
        background-color: var(--rotary-blue);
        color: white;
        border-radius: 25px;
        padding: 10px 40px;
        font-size: 1.1rem;
        font-weight: bold;
    }

        .btn-fill-now:hover {
            background-color: var(--rotary-dark-blue);
            color: white;
        }

    /* 搜尋區塊容器 (加大寬度以容納 Checkbox) */
    .search-bar-container {
        max-width: 900px;
        margin: 0 auto 30px auto;
        border: 1px solid #005aab;
        border-radius: 40px;
        padding: 6px 6px 6px 20px;
        background-color: white;
        display: flex;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }

    /* 關鍵字輸入框 (改為透明背景，與外框融合) */
    .search-input {
        border: none;
        background-color: transparent;
        padding: 8px 10px;
        flex: 1;
        min-width: 150px;
		font-size:1rem;
        color: #333;
    }

        .search-input:focus {
            outline: none;
        }

    /* 元素之間的分隔線 */
    .search-divider {
        width: 1px;
        height: 24px;
        background-color: #ddd;
        margin: 0 10px;
    }

    /* 下拉選單 */
    .search-select {
        border: none;
        background-color: transparent;
        padding: 8px 10px;
        width: auto;
		font-size:1rem;
        color: #555;
        cursor: pointer;
        font-weight: 500;
    }

        .search-select:focus {
            outline: none;
        }

    /* Checkbox 區塊 */
    .checkbox-group {
        display: flex;
        align-items: center;
        margin: 0 15px 0 0;
        white-space: nowrap;
    }

    .custom-checkbox:checked {
        background-color: var(--rotary-blue);
        border-color: var(--rotary-blue);
    }

    /* 搜尋按鈕 */
    .btn-search {
        background-color: var(--rotary-blue);
        color: white;
		font-size:1rem;
        border-radius: 30px;
        padding: 10px 30px;
        border: none;
        font-weight: bold;
        white-space: nowrap;
        transition: background-color 0.3s;
    }

        .btn-search:hover {
            background-color: var(--rotary-dark-blue);
        }
		.form-check {
			margin: 0 4px;
		}


    /* 設定 InfoWindow 容器 */
    .custom-iw-container {
        font-family: "Microsoft JhengHei", Arial, sans-serif;
		font-weight:initial;
        padding: 5px;
        max-width: 300px;
        display: flex;
        flex-direction: column;
    }

    /* 標題區：深藍色背景 */
    .custom-iw-header {
        background-color: var(--rotary-blue, #005dab);
        color: white;
    padding: 15px 15px;
    margin: 0;
    border-radius: 5px 5px 0 0;
    }

    .iw-title {
        font-size: 16px;
        font-weight: bold;
        line-height: 1.3;
    }

    .iw-subtitle {
        font-size: 14px;
        opacity: 0.9;
        margin-top: 4px;
    }

    /* 內容區 */
	.gm-style .gm-style-iw{
		font-size:0.9rem;
	}
	.gm-style .gm-style-iw-c{
		padding:0;
		min-width: 280px !important;
	}
	.gm-style-iw-ch{
		display:none;
	}
	.gm-style-iw-chr button{
		background: none;
		display: block;
		border: 0px;
		margin: 0px;
		padding: 0px;
		text-transform: none;
		appearance: none;
		position: absolute !important;
		cursor: pointer;
		user-select: none;
		width: 48px;
		height: 48px;
		right: 0 !important;
	}
	.gm-style-iw-chr button span{
		background-color: #fff;
	}
    .custom-iw-body {
        flex-grow: 1; /* 讓 body 自動填滿中間剩餘空間 */
        padding: 10px;
    }

    .iw-row {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
        border-bottom: 1px solid #eee;
    }

    .iw-label {
        color: #888;
        flex-shrink: 0;
        margin-right: 10px;
    }

    .iw-value {
        font-weight: 500;
        text-align: right;
    }
	.rotary-icon{
		display: inline-block;
		color: #fff;
		text-decoration: none;
		height: 25px;
		width: 25px;
		line-height: 25px;
		text-align: center;
		box-sizing: border-box;
		border-radius: 50%;
		margin: 0 1px;
	}
	.rotary-icon:focus{
		outline:none;
	}
	.sdg-icon{
		display: inline-block;
		color: #fff;
		text-decoration: none;
		height: 25px;
		width: 25px;
		line-height: 25px;
		text-align: center;
		box-sizing: border-box;
		border-radius: 50%;
		margin: 0 1px;
	}
	
	
		
	/*初始畫面*/
	/* 遮罩背景 */
    .overlay-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.75);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        backdrop-filter: blur(5px); /* 背景模糊效果 */
    }

    /* 彈出盒 */
    .modal-box {
        background-color: #fff;
        width: 90%;
        max-width: 700px;
        padding: 40px;
        border-radius: 15px;
        position: relative;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        animation: fadeInDown 0.4s ease-out;
    }

    @@keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 關閉按鈕 */
    .close-btn {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 32px;
        cursor: pointer;
        color: #999;
        transition: color 0.2s;
    }

        .close-btn:hover {
            color: #333;
        }

    /* 佈局內容 */
    .modal-body {
        display: flex;
        align-items: center;
        gap: 40px;
    }

    /* 地圖樣式 */
    .map-wrapper {
        flex: 1.2;
        text-align: center;
    }

    .taiwan-svg {
        width: 100%;
		height: auto;
		max-height: 440px;
		filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
		transform: rotate(6deg);
    }

    .taiwan-path {
        fill: #2c3e50;
        transition: fill 0.3s;
        cursor: pointer;
    }

        .taiwan-path:hover {
            fill: #3498db;
        }

    /* 右側資訊樣式 */
	.info-title p{
		display: inline-block;
    width: inherit;
    font-size: 2.8rem;
    font-weight: 700;
    color: #0a5ca3;
    text-align: center;
    margin: 0rem auto 1.5rem 0;
    padding: 0.5rem 2rem;
	position:relative;
	}
	
	
    .info-wrapper {
        display: flex;
        flex-direction: column;
		width: 100%;
    }
	.info-allcard{
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		margin: 1rem 0 0 0;
	}
	
    .info-card {
        padding: 20px;
		border-radius: 12px;
		background: #fff;
		border-bottom: 6px solid #025bac;
		transition: transform 0.2s;
		margin: 5px 7px;
		width: 20%;
    }
	.info-card:nth-child(1){
		    border-bottom: 6px solid #464ec1;
	}
	.info-card:nth-child(1) .label , .info-card:nth-child(1) .count-number {
		color: #464ec1;
	}
	.info-card:nth-child(2){
		    border-bottom: 6px solid #9535b3;
	}
	.info-card:nth-child(2) .label , .info-card:nth-child(2) .count-number {
		color: #9535b3;
	}
	.info-card:nth-child(3){
		    border-bottom: 6px solid #bd2e5b;
			width:26%;
	}
	.info-card:nth-child(3) .label , .info-card:nth-child(3) .count-number {
		color: #bd2e5b;
	}
	.info-card:nth-child(4){
		    border-bottom: 6px solid #c35300;
	}
	.info-card:nth-child(4) .label , .info-card:nth-child(4) .count-number {
		color: #c35300;
	}
	.info-card:nth-child(5){
		    border-bottom: 6px solid #bf7604;
	}
	.info-card:nth-child(5) .label , .info-card:nth-child(5) .count-number {
		color: #bf7604;
	}

        .info-card:hover {
            transform: translateY(5px);
        }

        .info-card.foreign {
            border-left-color: #4f97d9;
        }

    .label {
        margin: 0;
        color: #7f8c8d;
        font-size: 18px;
        font-weight: 500;
    }

    .count-number {
        font-size: 32px;
        font-weight: 800;
        color: #025bac;
    }

    .unit {
        font-size: 14px;
        color: #95a5a6;
        margin-left: 5px;
    }
	
		/* 手機版適應 */
    @media (max-width: 768px) {
		.hero-section{
			padding: 145px 0 50px 0;
		}
        .navbar .container > a{
			flex-direction: column;
		}
		.navbar-brand img {
			width: 65%;
		}
		.navbar-brand span {
			font-size: 1.6rem;
			color: #0d5ea4;
			padding-top: 1rem;
			margin-left: 0px;
		}
		.main-content {
			margin-top: -165px;
		}
		.hero-title{
			margin: 1rem 0 0 0;
		}
		.hero-title span{
			display: block;
        font-size: 2.5rem;
        letter-spacing: 2px;
		margin:0;

		}
		.info-title p{
			font-size: 2rem;
        margin: 0.5rem 0;
		}
  
		.info-wrapper {
    width: 100%;
}
        .modal-body {
            flex-direction: column;
            gap: 20px;
        }

        .modal-box {
            padding: 25px;
        }
		.map-wrapper{
			display:none;
		}
    }
	
    /* 網格區塊：放數字統計 */
    .iw-row-grid {
        display: flex;
        margin-top: 10px;
        background: #f8f9fa;
        border-radius: 4px;
        padding: 8px;
        text-align: center;
    }

    .iw-grid-item {
        flex: 1;
    }

    .iw-value.highlight {
        color: #C00000;
        font-size: 15px;
        font-weight: bold;
    }

    /* 基礎標籤樣式 */
    .badge {
		display: inline-block;
		padding: 5px 10px;
		width: 50%;
		border-radius: 4px;
		font-size: 14px;
		font-weight: bold;
		margin: 5px;
		text-transform: uppercase;
    }

    /* GG 專用顏色 (深藍) */
    .badge-gg {
        background-color: #005dab;
        color: #ffffff;
    }

    /* DG 專用顏色 (金橘色) */
    .badge-dg {
        background-color: #f7a81b;
        color: #ffffff;
    }

    /* 如果 footer 完全沒內容時隱藏間距 */
    .iw-footer:empty {
        display: none;
    }
	.iw-footer{
		display: flex;
		flex-direction: row;
	}



    .gm-style-iw {
        max-height: none !important;
    }

    .gm-style-iw-d {
        max-height: none !important;
        overflow: hidden !important;
    }
	
	
    /* 針對手機版的響應式調整 */
    @media (max-width: 768px) {
        .search-bar-container {
			display: flex;
            flex-direction: row;
			flex-wrap: wrap;
            border-radius: 15px;
            padding: 15px;
            gap: 12px;
        }

        .search-input, .search-select {
            width: 100%;
            background-color: #f8f9fa; /* 手機版給一點底色區隔 */
            border-radius: 8px;
            padding: 12px;
            text-align: center;
        }

        .search-input {
            text-align: left;
        }

        .checkbox-group {
            width: 100%;
            justify-content: center;
            margin: 5px 0;
        }
        /* 將按鈕獨立設定，只改變寬度和圓角，保留原本的藍色背景 */
        .btn-search {
            width: 100%;
            border-radius: 8px;
            padding: 12px;
        }
    }
    /* 搜尋區塊樣式 */
    .map-section {
		padding: 125px 0 40px 0;
		margin-top: -80px;
		position: relative;
		z-index: 1;
		background-color: #fff;
    }

    .section-title {
		display:inline-block;
		width:inherit;
            text-align: center;
			font-weight: 700;
			margin: 20px auto;
			font-size: 2rem;
			color: #013f75;
			padding: 0 0 5px 0;
			position:relative;
    }
	.section-title:after{
		content: "";
    position: absolute;
    width: 25px;
    height: 4px;
    background: #f7a81b;
    top: 0;
	bottom:0;
	margin:auto;
    left: -42px;
	}
	.section-title:before{
		content: "";
    position: absolute;
    width: 25px;
    height: 4px;
    background: #f7a81b;
    top: 0;
	bottom:0;
	margin:auto;
    right: -42px;
	}
    /* 地圖容器 */
    .map-container {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        height: 600px; /* 設定地圖高度 */
        background-color: #e5e3df; /* 載入前預設色 */
    }
	.allmap{
		display: flex;
		flex-direction: row;
		justify-content: center;
	}
	.maplist{
		height: 600px;
		width: 83%;
		margin-right:10px;
	}
	.mapdatalist{
		width: 17%;
		height: 600px;
		overflow-y: inherit;
		padding: 10px 10px;
		box-sizing: border-box;
		background: #f5f5f5;
		border-radius: 10px;
	}
	.mapdatalist ul{
		padding:0;
		margin:0;
	}
	.mapdatalist li{
		list-style: none;
		border-bottom: 1px dotted #ccc;
		padding: 5px 0 5px 0px;
	}
	.mapdatalist li a{
		color: #2b2b2b;
		text-decoration: none;
        padding: 4px 2px 4px 6px;
		display: block;
		text-align: left;
		border-left: 5px solid #005aab;
	}
	.mapdatalist li a:hover,.mapdatalist li a:focus{
		background:#fff;
	}
	

.simplebar-scrollbar::before {
  background-color: #569fe1; /* 滾動條顏色 */
  opacity: 1 !important; /* 強制永遠顯示，不會淡出 */
}

	
    /* 統計數字區塊樣式 */
    .stats-section {
        background: #f7f7f7;
        padding: 3rem 0 4rem 0; 
    }

    .stat-item {
        text-align: center;
    }

    .stat-title {
        color: #555;
        font-weight: bold;
        margin-bottom: 20px;
    }

    /* 使用 CSS 繪製缺口圓環 */
    .stat-circle-wrapper {
        position: relative;
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .stat-circle {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border: 12px solid #C00000;
        border-radius: 50%;
        border-top-color: #f4f4f4; /* 模擬圖片上方缺口 */
        transform: rotate(45deg); /* 調整缺口位置 */
    }

    .stat-number {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 2rem;
        font-weight: bold;
        color: #C00000;
    }

    /* 調整地圖整體高度 */
    #map {
        width: 100%;
        height: 600px !important;
        border-radius: 10px;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    }
	.nomap{
			text-align:center;
		}

	@media (max-width: 1024px) {
		.info-allcard {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-around;
	}
		.info-card{
			margin: 5px 3px;
			padding: 15px 0;
		}
		.info-card:nth-child(1),.info-card:nth-child(2){
			
			width:46%;
		}
		.info-card:nth-child(3),.info-card:nth-child(4),.info-card:nth-child(5){
			width:27%;
		}
	  .allmap{
		  flex-direction: column;
		  justify-content: center;
	  }
	  .maplist{
			order:2;
			width:100%;
		}
		
		.mapdatalist{
			order: 1;
        width: 100%;
        height: auto;
        max-height: 250px;
        margin-bottom: 10px;
		}
		.mapdatalist li a{
			font-size:1rem;
		}
	}
	
	/* 共用外框卡片 */
  .chart-container {
	    display: flex;
		flex-direction: row;
  }
  .chart-container > div{
	  width: 50%;
		padding: 50px;
  }
 @media (max-width: 1200px) {
	 .container{
		 margin: 0 1rem;
	 }
	 
 }

  @media (max-width: 768px) {
	  .info-card:nth-child(1),.info-card:nth-child(2){
			
			width:48%;
		}
		.info-card:nth-child(3),.info-card:nth-child(4),.info-card:nth-child(5){
			width:100%;
		}
	  
	  .chart-container {
		flex-direction: column;
	}
		.chart-container > div {
		width: 100%;
        padding: 24px 10px 0 10px;
        box-sizing: border-box;
	}
	.section-title {

		font-size: 1.5rem;
    }
	.search-divider{
		display:none;
	}
	
  }

 /* =========================================
     圓餅圖動畫與 SVG 設定
  ========================================= */
  .donut-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto 3rem auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .donut-wrapper.show {
    opacity: 1;
    transform: translateY(0);
  }

  /* SVG 本身使用遮罩來做畫圓動畫 */
  .donut-svg {
    width: 100%;
    height: 100%;
    transform: rotate(0deg); /* 確保從12點鐘開始 */
    border-radius: 50%;
    --p: 0%; 
    -webkit-mask-image: conic-gradient(#000 var(--p), transparent 0);
    mask-image: conic-gradient(#000 var(--p), transparent 0);
  }

  /* SVG 扇形區塊 */
  .pie-slice {
    cursor: pointer;
    transition: opacity 0.3s ease;
  }
  
  /* 當外層被 hover/active 時，非目標區塊變暗 */
  .donut-svg.has-active .pie-slice:not(.active) {
    opacity: 0.3;
  }

  /* =========================================
     中心互動顯示區 (Donut Hole)
  ========================================= */
  .donut-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.05);
    /* 重要：讓滑鼠點擊穿透白洞，才能點到後面的 SVG 色塊 */
    pointer-events: none; 
    text-align: center;
    padding: 10px;
  }

  .hole-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .hole-title {
    font-weight: 700;
    color: #444444;
    line-height: 1.2;
    transition: font-size 0.3s ease;
  }

  .hole-subtitle {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: #888888;
    margin-top: 4px;
    font-weight: 500;
    min-height: 1.2em;
  }

  .hole-value {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    color: #222222;
    font-weight: 700;
    margin-top: 4px;
    min-height: 1.2em;
  }

  /* =========================================
     圖表上的數字標籤
  ========================================= */
  .chart-label {
    position: absolute;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0px 1px 3px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
    /* 重要：讓滑鼠點擊穿透文字 */
    pointer-events: none; 
  }

  .donut-wrapper.show .chart-label {
    opacity: 1;
    transition-delay: 1.1s;
  }

  /* =========================================
     圖例列表
  ========================================= */
  .legend {
    display: block; 
  column-count: 2;    /* 預設分兩欄 */
  column-gap: 30px;   /* 兩欄之間的間距 */
  
  border-top: 1px solid #eeeeee;
  padding-top: 2rem;
  }

  .legend-item {
    display: flex;
  align-items: center;
  font-size: 1rem;
  text-align:left;
  color: #555555;
  margin-bottom: 12px; /* 改用 margin 控制項目間的垂直間距 */
  
  /* 2. 重要：防止項目被從中間切斷到另一欄 */
  break-inside: avoid; 
  
  /* 原有的動畫屬性保留 */
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease;
  cursor: pointer;
  }

  .legend-item:hover, .legend-item.active {
    font-weight: 700;
  color: var(--hover-color, #000); /* 吃 JS 傳進來的專屬顏色，預設為黑色 */
  }

  .color-box {
    width: 12px;
    height: 12px;
    margin-right: 8px;
    flex-shrink: 0;
  }

  /* 圖例動畫進場 */
  .legend.show .legend-item { opacity: 1; transform: translateY(0); }
  
  /* 自動產生階梯動畫延遲 (最多支援 17 項) */
  .legend.show .legend-item:nth-child(1) { transition-delay: 0.10s; }
  .legend.show .legend-item:nth-child(2) { transition-delay: 0.15s; }
  .legend.show .legend-item:nth-child(3) { transition-delay: 0.20s; }
  .legend.show .legend-item:nth-child(4) { transition-delay: 0.25s; }
  .legend.show .legend-item:nth-child(5) { transition-delay: 0.30s; }
  .legend.show .legend-item:nth-child(6) { transition-delay: 0.35s; }
  .legend.show .legend-item:nth-child(7) { transition-delay: 0.40s; }
  .legend.show .legend-item:nth-child(8) { transition-delay: 0.45s; }
  .legend.show .legend-item:nth-child(9) { transition-delay: 0.50s; }
  .legend.show .legend-item:nth-child(10) { transition-delay: 0.55s; }
  .legend.show .legend-item:nth-child(11) { transition-delay: 0.60s; }
  .legend.show .legend-item:nth-child(12) { transition-delay: 0.65s; }
  .legend.show .legend-item:nth-child(13) { transition-delay: 0.70s; }
  .legend.show .legend-item:nth-child(14) { transition-delay: 0.75s; }
  .legend.show .legend-item:nth-child(15) { transition-delay: 0.80s; }
  .legend.show .legend-item:nth-child(16) { transition-delay: 0.85s; }
  .legend.show .legend-item:nth-child(17) { transition-delay: 0.90s; }
   
   
   /* 針對特定圖表調整欄數 (例如 SDGs 項目較多可設為 2 或 3 欄) */
#sdgs-chart .legend {
  column-count: 2; 
}

#focus-chart .legend {
  column-count: 2;
}

     @media (max-width: 768px) {
		 body{
			 font-size:1rem;
		 }
		 .legend {
    display:none;
  }

  }


/* =========================================
   關於本站區塊樣式
========================================= */
.about-section{
	background:url('/Images/s-bg.jpg') no-repeat;
	background-size:cover;
	padding: 3.5rem 0;
}
.about-section .container {
  background-color: rgba(255,255,255,0.95);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 3.5rem 3rem;
  
  line-height: 1.8;
  color: #444444;
}

/* 主標題 */
.about-section h2 {
display: inline;
}

/* 每個小段落的容器 */
.about-block {
  margin-bottom: 2rem;
}

.about-block:last-child {
  margin-bottom: 0;
}

/* 小標題與裝飾線 */
.about-block h3 {
  font-size: 1.25rem;
  color: #d9862d;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.about-block h3::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 18px;
  background-color: #f8a91e; /* 扶輪金黃色，作為點綴 */
  margin-right: 12px;
  border-radius: 4px;
}

/* 內文 */
.about-block p {
  margin: 0;
  font-size: 1rem;
  color: #555555;
  text-align: justify; /* 讓文字左右對齊，看起來更整齊像文章 */
}

/* =========================================
   滑動進場動畫 (Fade up)
========================================= */
.fade-up-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up-section.show {
  opacity: 1;
  transform: translateY(0);
}

/* 響應式：手機版調整內距 */
@media (max-width: 480px) {
  .about-section {
    padding: 2rem 1rem;
  }
  .about-section .container{
	  padding: 2.5rem 2rem;
  }
  .about-block h3{
	  font-size: 1.2rem;
  }
}


        /* 頁尾樣式 */
        footer {
            background-color: var(--rotary-blue);
            color: white;
            padding: 40px 0;
            font-size: 1rem;
        }
		footer .container .row{
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
	}
		footer .container .row > div:nth-child(1){
			width: 80%;
			display: flex;
			align-items: center;
		}

        .footer-logo {
            height: auto;
			width: 30%;
			margin-right: 25px;
        }

        .social-icons a {
            color: var(--rotary-blue);
            background-color: white;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-left: 10px;
            text-decoration: none;
            font-size: 1.2rem;
        }

            .social-icons a.youtube {
                color: red;
            }
			
			
			 @media (max-width: 768px) {
				 footer .container .row{
					 flex-direction: column;
				 }
				 footer .container .row > div:nth-child(1){
					 flex-direction: column;
					 margin: 0 0 15px 0;
					 text-align:center;
				 }
				 
				 .footer > div{
			flex-direction: column;
			text-align: center;
			color:#fff;
		}
	  
	  .footer-logo{
			width:80%;
			height:auto;
			margin: 0 0 15px 0;
	  }
	  .footer > div span{
		  margin-top:1rem;
	  }
	  footer .text-start{
		  text-align:center !important;
	  }
	  
	  
  }