@import url("basic.css");

html,body{
	width:100%;
}



body {
	font-family: 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	color: #333;
	padding-top: 56px;
	overflow-x: hidden;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

p{
	font-size: 15pt;
	text-align: justify;
}

.for_pc{
	display: block;
}

.for_m{
	display: none;
}

/* navbar */
.navbar-light .navbar-toggler{
	border-color:transparent!important;
}

.navbar{
	background-color: var(--accent-color-3);
}

.btn-donate{
	border: 2px solid #fff;
	border-radius: 5px;
}

section{
	padding:50px 0;
}

section.video-section{
	padding-bottom:0;
}

section h2{
	font-size: 3rem;
	margin-bottom:3.3rem;
	font-weight: 500;
	color:var(--primary-dark-color);
}

/* hero-section */
.hero-section {
	position: relative;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	
	/* 最底層：背景圖片 */
	background-image: url('../images/mainbanner_bg.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	padding-top:0;
}

/* 確保前景內容在最上層 */
.hero-content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	text-align: center;
	color: white;
	z-index: 4;
	padding-top: 5%;
}

.hero-content .container{
	width:70%;
	max-width: none;
}

/* 滾動圖層的基礎樣式 */
.roll_layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	z-index: 2;
}

/* 第二層：代言人圖片 */
.roll_layer.layer2 {
	background-image: url("../images/2026spokesperson1_w1920.png?v=2.1");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: right bottom 50px;
	z-index: 2;
}



/* 第三層：最上層圖片 */
.roll_layer.layer1 {
	background-image: url('../images/mainbanner_l2.png');
	z-index: 3; /* 高於代言人層 */
}

/* suffering 區塊的 z-index，確保它能覆蓋在 hero-section 之上 */
#suffering {
	position: relative;
	z-index: 5; /* 確保它高於 hero-section 的所有內容 */
	background-color: var(--accent-color-1); /* 加上底色 */
	box-sizing: border-box;
}

/* 移除不需要的樣式 */
.hero-image-container,
.hero-image,
.spokesperson1,
.mainbanner_l2 {
	display: none;
}

a#donate-btn{
	width:300px;
	display: block;
	margin:0 auto;
}

.hero-title{
	width:60%;
	height:auto;
	margin:0 auto;
	margin-left:15%;
}

.hero-title img{
	width:100%;
	height:auto;
	margin-bottom:2rem;
}

.hero-title a{
	width:80%;
	height:auto;
	margin-bottom:2rem;
}



/* 圖片容器和主圖可以移除，因為背景圖已經取代了它們 */
.hero-image-container,
.hero-image {
	display: none;
}

/* journey */
/* journey-section 滾動緩衝區，高度由 JS 動態設定 */
/* journey-section */
.journey-section {
	position: fixed; /* 讓它永遠固定在畫面上 */
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden; /* 隱藏所有溢出內容 */
	background-color: var(--secondary-color);
	z-index: 10;
}

/* 假滾動條，用來製造垂直滾動空間 */
#journey-scroll-spacer {
	position: relative;
	/* 高度將由 JavaScript 動態設定 */
	z-index: 1; /* 確保它在最上層 */
}

/* 包含所有橫向內容的容器 */
.journey-container {
	height: 100%;
	display: flex;
	align-items: center;
	width: fit-content;
	position: relative;
}

/* 橫向內容的實際容器 */
.journey-content {
	display: flex;
	flex-wrap: nowrap;
	height: 100%;
	align-items: center;
	width: fit-content;
	padding-left: 100px;
}

/* 每個 stage 的樣式 */
.journey-content .stage {
	flex-shrink: 0;
	min-width: 400px;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	
	&:nth-child(even) {
		align-self: flex-end;
	}
}

/* 背景圖容器 */
.journey-background {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 200px;
	background-image: url('../images/your-journey-background.png');
	background-size: auto 100%;
	background-repeat: repeat-x;
	z-index: 1;
}

.journey-illustration {
	width: 250px;
	margin-bottom: 20px;
}

.message-box {
	background: #fff;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 立即捐款按鈕的樣式 */
.hero-section .btn-primary {
	background-color: #e6007e;
	border-color: #e6007e;
	transition: background-color 0.3s ease;
}

.hero-section .btn-primary:hover {
	background-color: #c9006e;
	border-color: #c9006e;
}

.btn-primary {
	background-color: #e6007e;
	border-color: #e6007e;
	transition: background-color 0.3s ease;
}

.btn-primary:hover {
	background-color: #c9006e;
	border-color: #c9006e;
}

button.btn-share{
	padding:0;
	width:30%;
	height:auto;
	display: block;
	
}

.btn-share img{
	widht:95%;
	height:auto;
	display: block;
	opacity: .8;
	transition: all 0.3s ease;
}

.btn-share:hover img{
	widht:100%;
	opacity: 1;
}

/* .btn-facebook{
	background-color: #0b5bff;
	border-color: #0b5bff;
	transition: background-color 0.3s ease;
	color:#fff;
}

.btn-facebook:hover{
	background-color: #3577ff;
	border-color: #3577ff;
	color:#fff;
} */

.content-section,
.services-section,
.login-share-section,
.message-board-section {
	padding-top: 5rem;
	padding-bottom: 5rem;
}

/* 服務項目區塊 */
.services-section {
	background-color: var(--accent-color-2);
}

.service-item-container {
	/* 這裡不再需要這個容器，可以從 HTML 中移除，直接在 service-item 上設定樣式 */
}

/* service-item 現在是類似 card 的樣式 */
.service-item.card {
	background-color: #fff;
	border: 1px solid rgba(0,0,0,.125);
	border-radius: 1rem; /* 增加圓角 */
	box-shadow: 0 4px 10px rgba(0,0,0,0.05);
	padding: 1.5rem;
	width: 100%; /* 確保填滿父容器 */
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-align: center;
}

.service-item.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.service-icon {
	font-size: 3rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.service-item h5 {
	font-size: 1.25rem;
	font-weight: bold;
	margin-bottom: 0.5rem;
}

.service-item p {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 0;
}

.embed-responsive {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
}

.embed-responsive-16by9::before {
	content: "";
	display: block;
	padding-top: 56.25%; /* 16:9 的長寬比 */
}

.embed-responsive-item {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* .login-share-section {
	background-color: #f8f9fa;
} */

.message-board-section {
	background-color: #59c1e9;
	background-image: url("../images/papertexture.jpg");
	background-repeat: repeat;
	position: relative;
	z-index: 1;
}

.message-container {
	min-height: 400px; /* 確保有足夠空間顯示泡泡 */
	display: flex;
	justify-content: center;
	align-items: center;
}

/* 留言板區塊 */
.message-board-section {
	position: relative;
	z-index: 1;
	background-color: #83bee4;
}

.message-container {
	min-height: 400px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.message-paper{
	background-color: #cecece;
	background-image: url("../images/papertexture-inside.jpg");
	background-repeat: repeat;
	position: relative;
	z-index: 1;
	display: flex;
	padding:1.3rem;
	border-radius: 20px;
	align-items: center;
}

.message-img{
	width:50%;
}

.message-img img{
	width:100%;
	height:auto;
}

.message-txt{
	width:50%;
	padding: 2rem;
}

.message-txt h5{
	font-size: 1.2rem;
	line-height: 1.6;
	color:#333;
}

.message-txt p{
	font-size: 1.2rem;
	color:#333;
}

.message-bubble {
	position: relative;
	padding: 1.5rem 3rem 3rem 3rem;
	max-width: 95%;
	margin-bottom: 2rem;
	font-size: 1rem;
	line-height: 1.6;
	transform: rotate(0);
	transition: transform 0.3s ease;

	/* 共用的背景圖樣式 */
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

/* 針對不同的背景圖設定 class */
.message-bubble.lightbluebg {
	background-image: url('../images/bubble-lightblue_1.png');
}

.message-bubble.lightpinkbg {
	background-image: url('../images/bubble-lightpink_1.png');
}

.message-bubble.lightgreenbg {
	background-image: url('../images/bubble-lightgreen_1.png');
}

.message-bubble.lightyellowbg {
	background-image: url('../images/bubble-lightyellow_1.png');
}

/* 偶數對話泡泡使用向右的彎角，並旋轉 */
.message-bubble:nth-child(even) {
	border-radius: 1.5rem 1.5rem 0.5rem 1.5rem;
	transform: rotate(2deg);
}

.message-bubble:hover {
	transform: scale(1.05) rotate(0);
}

.message-bubble h5 {
	font-size: 13pt;
	font-weight: bold;
	color: #444;
}

.message-bubble p {
	font-size: 13pt;
	margin-bottom: 0;
	color: #555;
}

.message-container .lead {
	font-style: italic;
	color: #666;
	animation: fadeInOut 8s infinite;
}

@keyframes fadeInOut {
	0% { opacity: 0; }
	10% { opacity: 1; }
	90% { opacity: 1; }
	100% { opacity: 0; }
}

/* suffering */
#suffering{
	background: var(--accent-color-1);
}

#suffering .suffering-row{
	align-items: center;
}

#suffering .suffering-row .txt-col{
	background: var(--secondary-color);
	padding: 20px;
	border-radius: 20px;
}

#suffering .suffering-row .txt-col h3{
	color:#a35;
}

#suffering .suffering-row .txt-col p{

	margin-bottom:0;
}


.sufferstory-row .story-img img{
	width:100%;
	height: auto;
}

#suffering-story{
	background: var(--light-color-4);
	box-sizing: border-box;
}

#suffering-story .sufferstory-row{
	padding:2rem 0;
	display: flex;
	align-items: center;
	justify-content: center;
}



#suffering-story .sufferstory-row h5{
	color:#622;
	font-size: 2rem;
	line-height: 1.4;
	margin-bottom:1.2rem;
}

/* .true-story{
	background: var(--secondary-color);
	padding:2rem;
	border-radius: 20px;
} */

.true-story h3{
	margin-bottom:1.2rem;
}

.true-story p{
	margin-bottom:0;
}

/* video */
#video{
	background: var(--secondary-color);
}

/* share */
#login-share,#login-share-list{
	background: var(--light-color-3);
}

#login-share-list table thead tr th{
	background: #5e9fb6;
	color:#fff;
	text-align: center;
}

#login-share-list table tr td{
	text-align: center;
}

#login-share-list table tr:nth-child(even) td{
	background: #ebf9ff;
	color:#333;
}

/* messages */
#messages h2{
	font-size: 2.3rem;
	color:var(--secondary-color);
}

.bottompeople-wrapper{
	width:100%;
	height:auto;
	text-align: center;
}

.bottompeople-wrapper img{
	width:70%;
	height:auto;
	margin:0 auto;
}


/* 行動裝置版 */
@media (max-width: 767.98px) {
	
	p{
		font-size: 13pt;
	}
	
	.for_pc{
		display: none;
	}
	
	.for_m{
		display: block;
	}
	
	.hero-content{
		padding-top:10%;
	}
	
	.hero-content .container {
		width: 100%;
		max-width: none;
	}
	
	.hero-title{
		width: 90%;
		height: auto;
		margin: 0 auto;
	}
	
	.hero-title img{
		width: 100%;
		height: auto;
		margin-bottom: 0.5rem;
	}	
	
	a#donate-btn {
		width: 60%;
		height: auto;
		margin-left: 0;
		margin-top:38%;
	}
	
	.roll_layer.layer2 {
		background-image: url("../images/2026spokesperson1_w720.png?v=32");
		background-size: contain;
		background-repeat: no-repeat;
		background-position: right -20px bottom 50px;
		z-index: 2;
	}
	

	.roll_layer.layer1 {
		background-image: url(../images/mainbanner_l2_m.png);
		background-size: 100%;
		background-repeat: no-repeat;
		background-position: bottom;
		z-index: 3; /* 高於代言人層 */
	}
	
	section h2 {
		font-size: 20pt;
		margin-bottom: 1.3rem;
	}
	
	#suffering .suffering-row{
		padding:0 5%;
	}
	
	#suffering-story .sufferstory-row{
		flex-direction: column;
	}
	
	#suffering-story .sufferstory-row.column-reverse{
		flex-direction: column-reverse;
	}
	
	#suffering .suffering-row,#suffering-story .sufferstory-row{
		padding:0 25px;
	}
	
	.sufferstory-row .story-img{
		margin-bottom:1.3rem;
		text-align: center;
	}
	
	
	
	.sufferstory-row .story-img img{
		width:90%;
		height: auto;
		margin:0 auto;
	}
	
	button.btn-share{
		padding:0;
		width:50%;
		height:auto;
		display: block;
		margin:0 auto;
	}
	
	.btn-share img{
		opacity: 1;
	}
	
	.bottompeople-wrapper img{
		width:100%;
		height:auto;
		margin:0 auto;
	}
}