/**
 * 網站架設頁面樣式 (page-website-setup.php)
 *
 * 此檔案包含網站架設頁面的所有特定樣式
 * 引入順序：依賴於 component.css（統一樣式）
 *
 * 內容：
 * - 費用頁面 H2 標題樣式
 * - 費用區塊相關樣式
 * - 費用描述收合容器樣式
 * - 費用表格樣式
 * - 費用 CTA 按鈕樣式
 *
 * @package 瓦吉科技
 */


/* ============================================
   費用區塊相關樣式
   ============================================ */

.pricing-section {
	background-size: auto;
	background-position: right 23rem;
	background-repeat: no-repeat;
	padding: 8.813rem 0;
	position: relative;
}

.h2-title-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 3rem;
	flex-wrap: wrap;
}

.decoration-left {
	position: absolute;
	left: -12rem;
	top: -7rem;
}

.decoration-right {
	position: absolute;
	max-width: 150px;
	right: -9rem;
	bottom: -1.5rem;
	height: auto;
}

.brands-items {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	margin-top: 128px;
}

.brands-container {
	background: #FFF;
	border: 1.24px solid #000;
	width: 585px;
	display: none;
	min-height: 538px;
}

.brands-container.active {
	display: block;
}

.brands-image-container {
	display: flex;
	justify-content: center;
	padding: 13px 0 9px;
	border-bottom: 1px solid #000;
}

.brands-item {
	padding: 24px 0 10px 37px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.brands-red-title {
	display: flex;
	background: #960000;
	color: #FFF;
	font-size: 1.5rem;
	width: 130px;
	height: 48px;
	text-align: center;
	align-items: center;
	justify-content: center;
}

.note-title {
	display: flex;
	align-items: center;
}

.brands-yellow-title {
	display: flex;
	background: #FFAB36;
	color: #FFF;
	font-size: 1.5rem;
	width: 130px;
	height: 48px;
	text-align: center;
	align-items: center;
	justify-content: center;
}

.brands-description {
	font-size: 1.5rem;
	padding: 12px 0 20px 45px;
}

/* ============================================
   費用描述收合容器樣式
   ============================================ */

.pricing-description-wrapper {
	display: block;
	margin: 2rem 0;
}

.pricing-toggle-wrapper {
	display: none;
	flex-direction: column;
	align-items: center;
	margin: 2rem 0;
}

.pricing-toggle-btn {
	color: #000;
	padding: 0.75rem 2rem;
	border: 1px solid #000;
	border-radius: 3rem;
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: background-color 0.3s ease;
	justify-content: center;
}

.pricing-toggle-btn:hover {
	background-color: #d4d4d4;
}

.toggle-icon {
	display: inline-block;
	transition: transform 0.3s ease;
}

.pricing-toggle-btn.active .toggle-icon {
	transform: rotate(180deg);
}

/* ============================================
   費用表格樣式
   ============================================ */

.pricing-table-wrapper {
	margin: 2rem 0;
	overflow-x: auto;
	display: block;
	width: 100%;
	max-width: 1100px;
}

.pricing-table {
	width: 100%;
	border-collapse: collapse;
	border-radius: 0.5rem;
	overflow: hidden;
	justify-items: center;
}

.pricing-row {
	display: grid;
	width: 100%;
	max-width: 800px;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	justify-items: center;
	align-items: center;
}

.pricing-row.header-row {
	background-color: transparent;
}

.pricing-cell-up {
	font-size: 1.5rem;
	display: flex;
	align-items: center;
	width: 100%;
	height: 95px;
	line-height: 1.5;
	text-align: center;
	flex-direction: column;
	justify-content: center;
}

.pricing-cell-down {
	font-size: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 75px;
	background: #F2F2F2;
	line-height: 1.2;
	text-align: center;
	flex-direction: column;
}

.pricing-row.header-row .pricing-cell {
	display: grid;
	font-weight: 400;
	max-width: 378px;
	width: 100%;
	height: 74px;
	color: #FFF;
	justify-content: center;
	font-size: 1.75rem;
	background-color: #960000;
	border-radius: 2.5rem;
	line-height: 1.2;
	white-space: nowrap;
	align-items: center;
}

.pricing-row.header-row .title-cell {
	background-color: #FFAB36;
	border-radius: 2.5rem;
}

.pricing-note {
	font-size: 1.201rem;
	color: #000;
	display: block;
	margin-top: 0.25rem;
}

/* 網站架設平台區塊 */
.platform-section {
	background: linear-gradient(180deg, #FFFCD7 0%, #FFFFFF 100%);
	padding: 3.75rem 0 7.625rem;
}

.platform-title-left {
	display: none;
}

/* 網站架設推薦區塊 */
.recommend-section {
	padding: 3.75rem 0 7.625rem;
	background-image: url('../../images/網站架設推薦底圖.webp');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: contain;
}

.recommend-title-img {
	display: none;
}

.recommend-items {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 76px 39px;
	margin-top: 128px;
}

.recommend-item {
	display: grid;
	justify-items: center;
}

.item-title {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.875rem;
	color: #000;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	position: relative;
	width: 15.938rem;
	height: 15.938rem;
	padding: 0;
	line-height: 1.4;
	text-align: center;
}

.item-description {
	font-size: 1.563rem;
	padding: 115px 70px 41px;
	color: #000;
	width: 612px;
	background-repeat: no-repeat;
	background-position: left top;
	background-size: 56px 56px;
	border: 2.55px solid #000;
	margin-top: -84px;
}

.why-important {
	font-size: 1.563rem;
	font-weight: 500;
	color: #960000;
	font-style: italic;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 19px;
}

.why-important-icon {
	width: 1.688rem;
	height: 2.813rem;
	object-fit: contain;
	display: inline-block;
}

.why-description {
	color: #000;
	max-width: 612px;
	font-size: 1.563rem;
	text-align: center;
	padding: 22px 75px 30px;
	border-bottom: 2.57px dashed #000;
}

/* 網站架設教學區塊 */
.teaching-section {
	background: #FFFCD7;
	padding: 60px 0 436px;
}

.teaching-items {
	display: flex;
	flex-direction: column;
	max-width: 1310px;
	gap: 100px;
	margin-top: 151px;
}

.teaching-process {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
}

.process-img {
	width: 6%;
	height: auto;
}

.process-description {
	display: flex;
}

.process-title {
	font-size: 32px;
	min-width: 316px;
	line-height: 2;
	font-weight: 500;
	color: #FFAB36;
	margin: 0 55px 20px 20px;
}

.process-text {
	font-size: 28px;
	color: #000;
}

/* 1024以下 - 全部展示品牌，不輪播 */
@media (max-width: 1024px) {
	.brands-items {
		display: grid !important;
		grid-template-columns: repeat(1, 1fr);
		gap: 40px;
		margin-top: 25px;
	}

	.brands-container {
		display: block !important;
		width: 100%;
		height: auto;
	}

	.platform-section .slider-dots {
		display: none;
	}

	/* 禁用輪播時的動畫 */
	.brands-container {
		animation: none !important;
		transition: none !important;
		transform: none !important;
	}

	.teaching-items {
		margin-top: 55px;
	}

	.process-description {
		flex-direction: column;
	}

	.teaching-process {
		align-items: flex-start;
	}

	.process-text {
		margin-left: 20px;
	}

	.html-img {
		width: 70% !important;
	}

	.html-container {
		width: 95% !important;
	}
}

@media (max-width: 768px) {
	.html-text {
		max-width: 650px !important;
		width: 100%;
	}

	.page-cta-wrapper {
		margin-top: 10px !important;
		margin-bottom: 20px;
	}

	.brands-items {
		margin-bottom: 20px;
	}
}

/* HTML 圖片區塊 */
.html-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: -366px;
}

.html-container {
	width: 100%;
	max-width: 1182px;
	height: 584px;
	background: url('../../images/site_coding下方裝飾圖.webp');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	padding-bottom: 114px;
	margin-top: -150px;
	z-index: 5;
}

.html-img {
	width: auto;
	height: auto;
	z-index: 10;
}

.html-text {
	font-size: 32px;
	color: #000;
	max-width: 852px;
}

@media (max-width: 480px) {
	.pricing-section {
		padding-top: 1.313rem;
		padding-bottom: 56px;
		background-size: 23%;
		background-position: right 9rem;
	}

	.pricing-toggle-wrapper {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 18px;
		margin-bottom: 28px;
		gap: 25px;
	}

	.pricing-toggle-btn {
		font-size: 14px;
		width: 240px;
		padding: 6px 0;
	}

	.pricing-description-wrapper {
		display: none;
		margin: 1rem 0;
	}

	.pricing-description-wrapper.active {
		display: block;
	}

	.pricing-table-wrapper {
		margin: 1rem 0;
		display: block;
		width: 330px;
	}

	.pricing-table {
		display: flex;
		flex-direction: column;
		gap: 8.87px;
	}

	.pricing-cell {
		padding: 1rem;
		font-size: 0.85rem;
	}

	.pricing-row {
		gap: 8.78px;
	}

	.pricing-row.header-row .pricing-cell {
		font-size: 15px;
		height: 35px;
		width: 100%;
		align-content: center;
	}

	.pricing-cell-up,
	.pricing-cell-down {
		padding: 5px 0;
		height: 50px;
	}

	.pricing-note {
		font-size: 12px;
	}

	.pricing-cta-btn {
		flex-direction: column;
		padding: 0.75rem 1.5rem;
		font-size: 0.9rem;
		gap: 0.5rem;
	}

	.cta-icon {
		width: 20px;
		height: 20px;
	}

	.platform-title-left {
		display: block;
		position: absolute;
		top: -2.8rem;
		left: -6rem;
	}

	.platform-section {
		padding: 24px 0 56px;
	}

	/* 網站架設平台 */
	.brands-items {
		display: flex !important;
		flex-direction: column;
		gap: 20px;
		margin-top: 18px;
	}

	.brands-item {
		padding: 12px 20px 2px 15px;
	}

	.brands-image-container {
		padding: 5px 0;
	}

	.brands-img {
		height: 26px;
		width: auto;
	}

	.brands-red-title,
	.brands-yellow-title {
		font-size: 10px;
		height: 20px;
		width: 50px;
		min-width: 50px;
	}

	.note-img {
		width: 170px;
	}

	.brands-description {
		font-size: 10px;
		padding: 8px 0 10px 18px;
	}

	.brands-container {
		width: 300px;
		height: auto;
		min-height: auto;
		display: block !important;
	}

	.platform-section .slider-dots {
		display: none;
	}

	/* 網站架設推薦 */
	.recommend-section {
		padding: 25px 0 56px;
		background-image: url(../../images/網站架設推薦-RWD.webp);
		background-repeat: no-repeat;
		background-position: top center;
		background-size: contain;
	}

	.recommend-title-img {
		display: block;
		position: absolute;
		right: -4.5rem;
	}

	.recommend-items {
		flex-direction: column;
		gap: 28px;
		width: 240px;
		margin-top: 40px;
	}

	.item-title {
		font-size: 12px;
		width: 100px;
		height: 100px;
	}

	.why-description {
		font-size: 10px;
		padding: 8px 30px 12px;
	}

	.why-important {
		font-size: 14px;
	}

	.why-important-icon {
		width: 14px;
		height: 18px;
	}

	.item-description {
		font-size: 10px;
		width: 100%;
		padding: 45px 25px 16px;
		margin-top: -33px;
		margin-bottom: 8px;
		background-size: 22px 22px;
		text-align: center;
	}

	/* 教學區塊 */
	.teaching-section {
		padding: 24px 0 160px
	}

	.teaching-section .section-description {
		text-align: center;
		margin: 0;
	}

	.teaching-items {
		width: 220px;
		margin-top: 35px;
		gap: 28px;
	}

	.teaching-process {
		align-items: flex-start;
		justify-content: center;
		gap: 15px;
	}

	.process-description {
		display: flex;
		flex-direction: column;
	}

	.process-img {
		width: 30px;
		height: auto;
	}

	.process-title {
		font-size: 12px;
		line-height: 1;
		padding: 0;
		margin: 0;
		min-width: 220px;
		gap: 8px;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 8px;
	}

	/* HTML 區塊 */
	.html-section {
		margin-top: -170px;
		padding: 24px 0;
	}

	.html-section .page-cta-wrapper {
		margin-top: 10px !important;
	}

	.html-container {
		width: 100% !important;
		height: 175px;
		justify-content: center;
		padding-bottom: 25px;
		margin-top: -20px;
		padding-top: 25px;
	}

	.html-text {
		max-width: 285px !important;
	}

	.html-img {
		width: 218px;
		height: auto;
	}

}