/*== FONT-粉圓體 ==*/
@import url('https://fonts.googleapis.com/css2?family=Huninn&display=swap');

.index {
	--c-black:#000;
	--c-black-gray:#333;
	--c-green:##2EA757;
	--c-green-hover:#248a45;
	--c-pink:#FB779B;
	--c-pink-hover:#e75989;
	--c-red:#F48469;
	--c-red-hover:#F46447;
	--c-gold:#FDC978;
	--c-gold-hover:#F9AE4B;
}

/*== 隱藏部落格預設小標題 ==*/
.index_4_blogs .tab-blogs {
	display: none;
}
@media (max-width: 991px) {
    .index_4_blogs .qk-container .form-blogs {
        display:none;
    }
}

/*== more btn ==*/
.link-more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
.link-more a {
    font-size: 16px;
    color: var(--c-black-gray);
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}
.link-more a:hover {
    color: var(--c-black);
}
.link-more .circle-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--c-black);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 5px;
}
.link-more .circle-icon::before {
    content: '';
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--c-black);
    border-right: 2px solid var(--c-black);
    transform: rotate(45deg);
    display: block;
    margin-right: 2px;
}

/*==推薦==*/
.testimonial-slider-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	padding: 20px 0;
	overflow: hidden;
}
.testimonial-slider {
	width: 100%;
	overflow: hidden;
	position: relative;
}
.testimonial-wrapper {
	display: flex;
	transition: transform 0.5s ease;
	width: 100%;
}
.testimonial-card {
	min-width: 50%;
	width: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	gap: 30px;
	box-sizing: border-box;
}
.testimonial-image {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background-color: #ddd;
	box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.testimonial-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.testimonial-text {
	flex: 1;
	max-width: 600px;
}
.testimonial-title {
	text-align: left;
	margin-bottom: 10px;
	color: var(--c-black);
	font-size: 20px;
	font-weight: bold;
}
.testimonial-text h3 {
	text-align: left;
	margin-bottom: 12px;
	color: #333;
	font-size: 18px;
	font-weight: bold;
}
.testimonial-content {
	line-height: 1.6;
	color: #666;
	font-size: 16px;
	text-align: left;
}

/* 導航按鈕 */
.slider-nav {
	position: absolute;
	top: 35%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	z-index: 10;
	transition: background-color 0.3s;
}
.slider-nav:hover {
	background-color: rgba(255, 255, 255, 0.9);
}
.slider-nav.prev {
	left: 10px;
}
.slider-nav.next {
	right: 10px;
}
.slider-nav::before {
	content: '';
	width: 12px;
	height: 12px;
	border-top: 2px solid #333;
	border-right: 2px solid #333;
	display: block;
}
.slider-nav.prev::before {
	transform: rotate(-135deg);
	margin-left: 5px;
}
.slider-nav.next::before {
	transform: rotate(45deg);
	margin-right: 5px;
}
.slider-indicators {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}
.indicator {
	width: 10px;
	height: 10px;
	background-color: #ccc;
	border-radius: 50%;
	margin: 0 5px;
	cursor: pointer;
	transition: background-color 0.3s;
}
.indicator.active {
	background-color: var(--c-black);
}

/* RWD */
@media (max-width: 991px) {
	.testimonial-card {
		min-width: 100%; 
		width: 100%;
		box-sizing: border-box;
		padding: 15px 10px;
	}
	.testimonial-text {
		width: 100%;
		overflow-wrap: break-word;
		word-wrap: break-word;
	}
	.testimonial-slider-container {
		padding: 20px 0;
		width: 100%;
	}
	.testimonial-slider {
		width: 100%;
	}
	.testimonial-wrapper {
		width: 100%;
	}
	.testimonial-text h3 {
		font-size: 16px;
		line-height: 1.4;
		margin-bottom: 10px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.testimonial-content {
		font-size: 14px;
		line-height: 1.5;
		display: -webkit-box;
		-webkit-line-clamp: 5;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

@media (max-width: 768px) {
	.testimonial-card {
		flex-direction: column;
		gap: 15px;
		text-align: center;
		padding: 20px 15px;
	}
	.testimonial-image {
		width: 150px;
		height: 150px;
	}
	.testimonial-title {
		text-align: center;
		font-size: 18px;
	}
	.testimonial-text h3 {
		text-align: center;
		font-size: 16px;
		-webkit-line-clamp: 3;
	}
	.testimonial-content {
		text-align: center;
		-webkit-line-clamp: 6;
	}
	.slider-nav {
		top: 30%;
		width: 35px;
		height: 35px;
		background-color: rgba(255, 255, 255, 0.9);
	}
	.slider-nav.prev {
		left: 5px;
	}
	.slider-nav.next {
		right: 5px;
	}
}

@media (max-width: 480px) {
	.testimonial-image {
		width: 130px;
		height: 130px;
	}
	.testimonial-content {
		font-size: 14px;
		line-height: 1.4;
	}
	.testimonial-text h3 {
		min-height: 44px;
		margin-bottom: 8px;
	}
	.slider-nav {
		width: 30px;
		height: 30px;
		top: 25%;
	}
}


/*客製動圖標題*/
.heading-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}
.animation-container {
    position: relative;
    overflow: visible;
    width: 320px;
    height: 65px;
}
.motion-bg {
    position: absolute;
	width: 96%;
	height: 100%;
	top: 0px;
	left: 8px;
	z-index: 1;
	transform: translateY(0px);
}
.motion-icon {
    position: absolute;
    width: 80px; 
    height: 80px;
    z-index: 3;
}
.motion-icon img{
	width: 100%;
	height: auto;
}
.motion-title {
    font-family: "Huninn", sans-serif !important;
	position: absolute;
	top: 18%;
	left: 5%;
	transform: translate(-50%, -50%);
	font-size: 32px;
    font-weight: bold;
	margin-bottom:0;
	color: #595757;
	letter-spacing:2px;
	z-index: 3;
	width: 100%;
	text-align: center;
	opacity: 0;
	animation: textAppear 1s forwards 1.8s;
}
/* 標題動畫 */
@keyframes textAppear {
    0% {
      opacity: 0;
      transform: translateY(10px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
}

/*上下小幅度跳動動畫#MotionFloat*/
#MotionFloat.motion-icon {
    animation: flyIn 2.5s forwards;
}
/*浮動旋轉動畫#MotionFloatRotate*/
#MotionFloatRotate.motion-icon {
	animation: randomJump 2.5s forwards;
}
/*抖動動畫#MotionWiggle*/
#MotionWiggle.motion-icon {
    animation: flyIn 2.5s forwards;
}

/* 從左向右跳動動畫 */
@keyframes chairHop {
    0% {
      left: -50px;
      top: 20px;
      transform: translateY(0) scale(0);
      opacity: 0;
    }
    10% {
      opacity: 1;
      transform: translateY(-15px) scale(1);
      left: 0px;
      top: 20px;
    }
    20% {
      transform: translateY(0) scale(1);
      left: 0px;
      top: 20px;
    }
    30% {
      transform: translateY(-15px) scale(1);
      left: 50px;
      top: 20px;
    }
    40% {
      transform: translateY(0) scale(1);
      left: 50px;
      top: 20px;
    }
    50% {
      transform: translateY(-15px) scale(1);
      left: 100px;
      top: 20px;
    }
    60% {
      transform: translateY(0) scale(1);
      left: 100px;
      top: 20px;
    }
    70% {
      transform: translateY(-15px) scale(1);
      left: 150px;
      top: 20px;
    }
    80% {
      transform: translateY(0) scale(1);
      left: 150px;
      top: 20px;
    }
    90% {
      transform: translateY(-15px) scale(1);
      left: 22px;
      top: -10px;
    }
    100% {
      left: 22px;
      top: -10px;
      transform: translateY(0) scale(1);
    }
}
  
/* 上下小幅度跳動動畫 */
@keyframes floatMotion {
    0% {
      transform: translateY(0);
    }
    25% {
      transform: translateY(0);
    }    
    50% {
      transform: translateY(-10px);
    }
    75% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(0);
    }
}

/* 隨機跳動動畫 */
@keyframes randomJump {
    0% {
      left: -50px;
      top: 30px;
      transform: rotate(0deg) scale(0);
      opacity: 0;
    }
    10% {
      opacity: 1;
      transform: rotate(20deg) scale(1);
      left: 50px;
      top: 10px;
    }
    25% {
      left: 120px;
      top: 40px;
      transform: rotate(-15deg) scale(1);
    }
    40% {
      left: 80px;
      top: 0px;
      transform: rotate(10deg) scale(1);
    }
    55% {
      left: 180px;
      top: 20px;
      transform: rotate(-5deg) scale(1);
    }
    70% {
      left: 100px;
      top: 30px;
      transform: rotate(15deg) scale(1);
    }
    85% {
      left: 40px;
      top: 10px;
      transform: rotate(-10deg) scale(1);
    }
    100% {
      left: 22px;
      top: -10px;
      transform: rotate(0deg) scale(1);
    }
}
  
/* 浮動旋轉動畫 */
@keyframes floatRotate {
    0% {
      transform: translateY(0px) rotate(0deg);
    }
    25% {
      transform: translateY(-3px) rotate(3deg);
    }
    50% {
      transform: translateY(0px) rotate(0deg);
    }
    75% {
      transform: translateY(3px) rotate(-3deg);
    }
    100% {
      transform: translateY(0px) rotate(0deg);
    }
}

/* 飛入動畫 */
@keyframes flyIn {
    0% {
      left: -50px;
      top: 30px;
      transform: rotate(30deg) scale(0);
      opacity: 0;
    }
    20% {
      opacity: 1;
      transform: rotate(30deg) scale(1);
    }
    70% {
      left: 150px;
      top: 20px;
      transform: rotate(0deg) scale(1);
    }
    85% {
      left: 120px;
      top: 30px;
      transform: rotate(-10deg) scale(1);
    }
    100% {
      left: 22px;
      top: -10px;
      transform: rotate(0deg) scale(1);
    }
}

/* 抖動動畫 */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-3deg); }
}

