/**
 * 廣告投放頁面樣式
 * page-advertising.php
 *
 * @package mytheme
 */

/* ============================================
   廣告投放流程區塊
   ============================================ */

.advertising-process-section {
	padding: 60px 0;
	background: transparent url('../../images/FB廣告投放底圖.webp') no-repeat right top;
	background-size: auto;
	background-attachment: scroll;
}

.process-steps {
	display: flex;
	flex-direction: column;
	gap: 0;
	max-width: 1270px;
	margin: 0 auto;
	margin-top: 133px;
}

.process-step {
	display: grid;
	grid-template-columns: 100px 490px 1fr;
	height: 485px;
	align-items: flex-start;
}

.process-step:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

/* 左側：步驟ICON與連接線 */
.step-icon-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	max-width: 141px;
	width: 141px;
	height: 120px;
}

.step-connector-dot {
	width: 15px;
	height: 15px;
	object-fit: contain;
	margin: 0;
	margin-top: -8px;
	z-index: 10;
	position: absolute;
	bottom: 13PX;
	left: 43%;
	transform: translateX(-50%);
}

.step-icon {
	width: 141px;
	height: 120px;
	object-fit: contain;
	margin-top: -19px;
}

.step-connector-line {
	position: absolute;
	top: 96px;
	left: 43%;
	transform: translateX(-50%);
	width: 2.818px;
	height: 24rem;
	background: #000;
}


/* 中間：步驟標題 */
.step-title-wrapper {
	display: flex;
	align-items: center;
}

.step-title-wrapper .step-title {
	padding: 18px 42px 18px 54px;
	font-weight: 400;
	color: #000;
	min-width: 420px;
	margin: 0;
	line-height: 1.4;
	border: 3px solid #000;
	border-left: none;
}

/* 右側：步驟說明 */
.step-description {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.step-content,
.step-note {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 675px;
}

/*
 * 虛線調整參數：
 * - 虛線顏色：#000（黑色）
 * - 虛線寬度：5px（虛線本身的寬度）
 * - 空隙寬度：5px（虛線之間的空隙）
 * - 虛線高度：1px（虛線粗細，修改 background-size 第二個值）
 * - 標籤下方距離：6px（padding-bottom）
 */
.content-label,
.advertising-process-section .note-label {
	font-weight: 400;
	color: #000;
	background: linear-gradient(to right, #000 0%, #000 5px, transparent 5px, transparent 10px) repeat-x bottom;
	background-size: 10px 1px;
	background-position: 0 100%;
	background-repeat: repeat-x;
	padding: 0;
	display: inline-block;
	border: none;
	border-radius: 0;
	width: fit-content;
	margin: 0;
}

.content-text,
.note-text {
	color: #333;
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 1024px) {
	.process-step {
		grid-template-columns: 100px 1fr;
		padding: 0;
		align-items: flex-start;
		max-height: 485px;
	}

	.step-title-wrapper {
		grid-column: 2;
		grid-row: 1;
	}

	.step-description {
		grid-column: 2;
		gap: 15px;
		margin-bottom: 10px;
	}

	.card-decoration {
		top: -9px !important;
	}
}

/* ============================================
   手機版樣式 (≤480px)
   ============================================ */

@media (max-width: 480px) {
	.advertising-process-section {
		padding: 30px 0;
		background: transparent url('../../images/FB廣告投放底圖_RWD.webp') no-repeat right top;
		background-size: auto;
	}

	.process-steps {
		margin-top: 16px;
		gap: 32px;
	}

	.process-step {
		grid-template-columns: 47px 1fr;
		padding: 0;
		align-items: flex-start;
		max-height: 215px;
	}

	.process-step:last-child {
		padding-bottom: 0;
	}

	.step-connector-dot {
		width: 5px;
		height: 5px;
		margin: 0;
		margin-top: -6px;
		bottom: -2px;
	}

	.step-icon-wrapper {
		width: auto;
		height: auto;
	}

	.step-icon {
		width: 47px;
		height: auto;
		margin-top: -5px;
	}

	.step-connector-line {
		top: 33px;
		height: 215px;
		width: 1px;
	}

	.step-title-wrapper {
		grid-column: 2;
		grid-row: 1;
	}

	.step-title-wrapper .step-title {
		padding: 3px 14px 3px 18px;
		min-width: 140px;
		border: 1px solid #000;
		border-left: none;
		margin-left: -15px;
	}

	.step-note {
		margin-top: 0 !important;
	}

	.step-description {
		grid-column: 2;
		gap: 15px;
	}

	.content-label,
	.advertising-process-section .note-label {
		font-size: 0.9rem;
		background: linear-gradient(to right, #000 0%, #000 5px, transparent 5px, transparent 10px) repeat-x bottom;
		background-size: 10px 1px;
		background-position: 0 100%;
		background-repeat: repeat-x;
	}

	.content-text,
	.note-text {
		font-size: 0.9rem;
	}
}

/* ============================================
   IG廣告投放區塊
   ============================================ */

.ig-advertising-section {
	padding-top: 122px;
	padding-bottom: 122px;
	background: transparent url('../../images/IG廣告投放底圖.webp') no-repeat right top;
	background-size: auto;
}

.ig-process-steps {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 60px 70px;
	max-width: 1200px;
	margin: 0 auto;
	margin-top: 132px;
}

.ig-process-card {
	position: relative;
	background: #fff;
	border: 2px solid #000;
	border-radius: 24px;
	padding: 24px 30px 25px 46px;
	display: flex;
	flex-direction: column;
}

/* 左上角裝飾圖 */
.card-decoration {
	position: absolute;
	top: -6px;
	left: -32px;
	width: 140px;
	height: 70px;
	object-fit: contain;
	border-radius: 24px 0 0 0;
}

/* 步驟編號與標題 */
.step-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 0;
	font-size: 24px;
}

.step-number {
	color: #960000;
	font-weight: 600;
	white-space: nowrap;
	min-width: 80px;
	letter-spacing: 1px;
}

/* 虛線分隔符 */
.step-divider {
	height: 1px;
	background: linear-gradient(to right, #000 0%, #000 5px, transparent 5px, transparent 10px) repeat-x;
	background-size: 10px 1px;
	margin: 10px 0 15px 0;
}

/* 操作內容與說明 */
.step-operation {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.step-note {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 32px;
}

.operation-label,
.ig-advertising-section .note-label {
	font-size: 20px;
	font-weight: 400;
	color: #000;
	background: transparent;
	padding: 0;
	display: inline-block;
	border: none;
	border-bottom: 2px solid #FFAB36;
	border-radius: 0;
	width: 80px;
	margin: 0;
}

.operation-text,
.note-text {
	color: #333;
	line-height: 1.6;
	margin: 0;
}

.ig-process-card .note-text {
	font-size: 20px;
}

/* ============================================
   IG廣告投放區塊 - 響應式 (≤1024px)
   ============================================ */

@media (max-width: 1024px) {
	.ig-process-steps {
		gap: 40px 50px;
		margin-top: 90px;
	}

	.ig-process-card {
		padding: 35px 25px 25px 45px;
		min-height: auto;
	}

	.step-header {
		flex-direction: row;
		gap: 8px;
	}

	.step-number {
		min-width: auto;
	}
}

@media (max-width: 480px) {
	.advertising-process-section .page-cta-wrapper {
		margin-top: 65px;
	}

	.ig-advertising-section {
		padding: 40px 0;
		background: transparent url('../../images/IG廣告投放底圖_RWD.webp') no-repeat right top;
		background-size: auto;
	}

	.ig-process-steps {
		grid-template-columns: repeat(1, 1fr);
		gap: 35px;
		margin-top: 20px !important;
	}

	.ig-process-card {
		padding: 20px 20px 20px 28px;
		border-radius: 16px;
		border: 1.5px solid #000;
		width: 100%;
		max-width: 264px;
	}

	.card-decoration {
		width: 79px;
		height: auto;
		top: -3px !important;
		left: -16px;
	}


	.step-divider {
		margin: 8px 0 12px 0;
	}

	.operation-label,
	.ig-advertising-section .note-label {
		max-width: 60px;
	}
}

/* ============================================
   廣告投放詳細說明區塊
   ============================================ */

.advertising-details-section {
	background: #FFFCD7;
	padding: 60px 0;
}

.advertising-details-section .Pagination-section-title {
	max-width: 485px;
	width: 100%;
	padding: 40px 0;
}

.advertising-details-section .container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	justify-content: center;
	align-items: start;
	width: 100%;
	max-width: 1700px;
}

.details-item {
	margin-bottom: 0;
	width: 100%;
	max-width: 575px;
	padding: 37px 45px 46px;
	border-radius: 0;
}

.details-item.threads-item {
	background: transparent;
}

.details-item.tiktok-item {
	background: #fff;
}

.details-item.line-item {
	background: transparent;
}

.details-header {
	display: flex;
	flex-direction: column;
	height: 100%;
	align-items: center;
}

.header-footer {
	display: flex;
	flex-direction: column;
	flex: 1;
	justify-content: space-between;
	min-height: 280px;
}

.details-header h2 {
	margin-bottom: 15px;
}

.details-header .section-description {
	font-size: 1.5rem;
	margin-bottom: 20px;
}

.details-toggle-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	background: transparent;
	border: 1px solid #000;
	border-radius: 24px;
	cursor: pointer;
	font-size: 1.5rem;
	font-weight: 400;
	color: #000;
	transition: all 0.3s ease;
	width: 100%;
	justify-content: center;
}

.details-toggle-btn:hover {
	background: #f0f0f0;
}

.toggle-arrow {
	display: inline-block;
	font-size: 24px;
	line-height: 1;
	transition: transform 0.3s ease;
}

.details-toggle-btn.active .toggle-arrow {
	transform: rotate(180deg);
}

.details-content {
	margin-top: 30px;
	justify-items: center;
}

/* ============================================
   Threads 步驟樣式
   ============================================ */

.threads-steps {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin-bottom: 50px;
}

.threads-step {
	position: relative;
}

.threads-step h3 {
	margin-bottom: 15px;
	font-size: 1.5rem;
}

.step-title-with-number {
	margin: 0 0 15px 0;
	z-index: 2;
	font-size: 1.5rem;
}

.step-number-red {
	color: #960000;
	font-weight: 600;
}

.step-detail {
	display: flex;
	gap: 7px;
	align-items: flex-start;
	margin-top: 15px;
}

.operation-item {
	font-size: 1.25rem;
	display: inline-block;
	background: #d9d9d9;
	padding: 0;
	font-weight: 400;
	color: #000;
	min-width: 88px;
	text-align: center;
	white-space: nowrap;
}

.operation-text {
	font-size: 1.25rem;
	flex: 1;
	margin: 0;
	color: #333;
	line-height: 30px;
}

.step-connector {
	position: relative;
	left: 40px;
	width: 9px;
	height: 80px;
	object-fit: contain;
}

.threads-step.last-step .step-connector {
	display: none;
}

/* ============================================
   TikTok 步驟樣式
   ============================================ */

.tiktok-steps {
	display: flex;
	flex-direction: column;
	gap: 25px;
	align-items: flex-start;
	max-width: 405px;
	margin-bottom: 50px;
}

.tiktok-step {
	position: relative;
	display: flex;
	flex-direction: column;
}

.tiktok-step-header {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.tiktok-circle {
	width: 67px;
	height: 67px;
	object-fit: contain;
	flex-shrink: 0;
	margin-top: 2px;
	position: absolute;
	z-index: 1;
	bottom: 2px;
	left: -40px;
}

.tiktok-arrow {
	width: 100%;
	max-width: 30px;
	height: auto;
	object-fit: contain;
	margin: 12px auto 0;
	display: block;
}

.tiktok-step.last-step .tiktok-arrow {
	display: none;
}

@media (max-width: 1440px) {
	.tiktok-step {
		width: 100%;
		max-width: 367px;
		margin-top: 30px;
	}
}

/* ============================================
   LINE 步驟樣式
   ============================================ */

.line-steps {
	display: flex;
	flex-direction: column;
	gap: 44px;
	margin-bottom: 50px;
}

.line-step {
	padding: 28px 30px;
	border-radius: 0;
}

.line-step.step-border {
	border: 1px solid #000;
	background: transparent;
	display: flex;
	flex-direction: column;
}

.line-step.step-yellow {
	background: #FFF267;
	border: none;
	display: flex;
	gap: 11px;
	flex-direction: column;
}

/* LINE步驟偶數（2、4、6、8、10）的操作項目背景改為白色 */
.line-steps>.line-step.step-yellow:nth-child(even) .operation-item {
	background: #fff;
}

/* ============================================
   詳細說明區塊 - 響應式 (≤1024px)
   ============================================ */

@media (max-width: 1024px) {
	.advertising-details-section .container {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.details-item {
		padding: 30px;
		margin-bottom: 0;
		max-width: 875px;
	}

	.details-step {
		flex-direction: column;
	}

	.step-detail {
		flex-direction: row;
		margin-top: 10px;
	}

	.operation-item {
		min-width: auto;
		width: 24%;
	}

	.header-footer {
		min-height: 260px;
	}
}

@media (max-width: 768px) {
	.step-connector {
		left: 77px;
	}
}

/* ============================================
   詳細說明區塊 - 響應式 (≤480px)
   ============================================ */

@media (max-width: 480px) {
	.line-steps {
		margin-bottom: 28px;
	}

	.tiktok-steps {
		margin-bottom: 28px;
	}

	.advertising-details-section {
		padding: 30px 0;
	}

	.advertising-details-section .container {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.details-item {
		padding: 35px 20px;
		margin-bottom: 0;
		width: 90%;
	}

	.details-header h2 {
		font-size: 1.2rem;
	}

	.details-header .section-description {
		font-size: 0.9rem;
		margin-bottom: 15px;
	}

	.details-toggle-btn {
		padding: 8px 16px;
		font-size: 0.9rem;
	}

	.threads-steps {
		width: 325px;
		margin-bottom: 28px;
	}

	.threads-step {
		padding-left: 0;
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.step-detail {
		gap: 10px;
		flex-direction: row;
	}

	.step-connector {
		left: 37px;
		width: 7px;
		height: 50px;
	}

	.operation-item {
		font-size: 0.85rem;
		padding: 4px 12px;
		width: 80px;
	}

	.operation-text {
		font-size: 0.85rem;
	}

	.tiktok-step-header {
		gap: 10px;
	}

	.tiktok-circle {
		width: 24px;
		height: 24px;
	}

	.line-step {
		padding: 15px;
	}

	.advertising-details-section .Pagination-section-title {
		max-width: 140px;
		padding: 5px 0;
	}

	.details-header {
		align-items: center;
	}

	.header-footer {
		min-height: auto;
	}

	.toggle-arrow {
		font-size: 1rem;
	}
}

/* ============================================
   廣告投放費用區塊
   ============================================ */

.advertising-pricing-section {
	background: transparent url('../../images/廣告投放費用底圖.webp') no-repeat top;
	background-size: auto;
	padding-top: 182px;
	padding-bottom: 105px;
}

.advertising-pricing-section .Pagination-section-title {
	margin-bottom: 20px;
}

.advertising-pricing-section .section-description {
	margin-bottom: 60px;
}

.pricing-items {
	display: flex;
	flex-direction: column;
	gap: 84px;
	margin-top: 67px;
	margin-bottom: 122px;
}

.pricing-item {
	display: flex;
	flex-direction: row;
	gap: 84px;
	align-items: flex-start;
}

.item-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.item-decoration-left {
	position: absolute;
	left: -12px;
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.item-decoration-right {
	position: absolute;
	right: -12px;
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.item-title {
	color: #000;
	border: 3px solid #000;
	border-radius: 42px;
	padding: 20px 0;
	min-width: 468px;
	white-space: nowrap;
	text-align: center;
	margin: 0;
}

.item-content {
	display: flex;
	flex-direction: column;
}

.pricing-method-title,
.pricing-range-title {
	color: #960000;
	font-weight: 400;
	margin-bottom: 12px;
}

.pricing-method-desc,
.pricing-range-desc {
	color: #333;
	margin-bottom: 36px;
	line-height: 1.6;
	width: 100%;
	max-width: 621px;
}

/* 補充說明區塊 */
.factors-section {
	display: flex;
	border: 4px solid #000;
	border-bottom: none;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 1142px;
}

.factors-title {
	color: #000;
	margin-top: -16px;
	margin-bottom: 86px;
	text-align: center;
	width: fit-content;
	background: #FFF;
	padding: 0 64px;
}

.factors-items {
	display: flex;
	flex-direction: column;
	gap: 95px;
	margin-bottom: 95px;
}

.factor-item {
	display: flex;
	gap: 72px;
	align-items: flex-start;
}

.factor-label {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 278px;
	height: 278px;
	border: 4px solid #000;
	border-radius: 50%;
	background: #FFFCD7;
	color: #000;
	text-align: center;
	padding: 15px;
	box-sizing: border-box;
	font-weight: 500;
	font-size: 2rem;
}

.factor-label-dark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 278px;
	height: 278px;
	border: 4px solid #000;
	border-radius: 50%;
	background: #FFd036;
	color: #000;
	text-align: center;
	box-sizing: border-box;
	font-weight: 400;
	font-size: 2rem;
}

.factor-text {
	flex: 1;
	color: #333;
	line-height: 1.8;
	margin: 0;
	align-self: center;
	max-width: 456px;
}

/* 深黃色容器 */
.highlight-box {
	position: relative;
	background: #FFD036;
	padding: 55px 95px;
	display: flex;
	align-items: center;
	gap: 40px;
	width: 100%;
	max-width: 1300px;
	border: 4px solid #000;
}

.highlight-text {
	font-size: 2rem;
	color: #000;
	margin: 0;
	flex: 1;
	line-height: 79.801px;
	max-width: 613px;
	text-align: center;
}

.highlight-img {
	position: absolute;
	right: 5px;
	bottom: -108px;
	width: auto;
	height: auto;
	object-fit: contain;
	flex-shrink: 0;
}

/* ============================================
   廣告投放費用區塊 - 響應式 (≤1024px)
   ============================================ */

@media (max-width: 1024px) {
	.pricing-items {
		grid-template-columns: 1fr;
		gap: 40px;
		margin-bottom: 60px;
	}

	.pricing-item {
		flex-direction: column;
	}

	.item-header {
		gap: 10px;
	}

	.factor-item {
		gap: 35px;
	}

	.factor-text {
		max-width: 380px;
	}

	.factor-label,
	.factor-label-dark {
		width: 200px;
		height: 200px;
		min-width: 100px;
	}

	.highlight-box {
		flex-direction: column;
		text-align: center;
		width: 107%;
		align-items: flex-start;
		padding: 55px 35px;
	}

	.highlight-img {
		right: 0;
		bottom: 0;
		width: 315px;
	}
}

@media (max-width: 820px) {
	.highlight-text {
		max-width: 385px;
		line-height: 60.801px;
	}

	.tiktok-step {
		max-width: 495px;
	}

	.step-connector {
		left: 80px;
	}
}

@media (max-width: 768px) {
	.factor-text {
		max-width: 285px;
	}
}

/* ============================================
   廣告投放費用區塊 - 響應式 (≤480px)
   ============================================ */

@media (max-width: 480px) {
	.advertising-pricing-section {
		padding: 30px 0;
		background: transparent url('../../images/廣告投放費用底圖_RWD.webp') no-repeat top;
		background-size: auto;
	}

	.advertising-pricing-section .section-description {
		margin-bottom: 0;
	}

	.pricing-items {
		gap: 12px;
		margin-bottom: 40px;
		margin-top: 28px;
	}

	.pricing-item {
		align-items: center;
		gap: 12px;
	}

	.item-header {
		flex-direction: column;
		gap: 8px;
	}

	.item-title {
		font-size: 1rem;
		border: 1px solid #000;
		padding: 6px 15px;
		min-width: 155px;
	}

	.item-decoration-left {
		width: 12px;
		height: 12px;
		left: -5px;
	}

	.item-decoration-right {
		width: 12px;
		height: 12px;
		right: -5px;
	}

	.pricing-method-title,
	.pricing-range-title {
		margin-bottom: 4px;
	}

	.pricing-method-desc,
	.pricing-range-desc {
		margin-bottom: 12px;
		max-width: 264px;
	}

	/* 影響因素 */
	.factors-section {
		margin-top: 0;
		padding-top: 30px;
		border: 1px solid #000;
		border-bottom: none;
		padding: 0 18px;
		max-width: 300px;
		width: 100%;
	}

	.factors-title {
		font-size: 1.2rem;
		padding: 0 10px;
		margin-bottom: 20px;
		margin-top: -10px;
	}

	.factors-items {
		gap: 24px;
		margin-bottom: 30px;
	}

	.factor-item {
		gap: 18px;
	}

	.factor-label-dark,
	.factor-label {
		font-size: 0.938rem;
		width: 100px;
		height: 100px;
		border: 1px solid #000;
	}

	.factor-text {
		font-size: 0.85rem;
	}

	.highlight-box {
		padding: 20px 0 20px 15px;
		gap: 15px;
		border: 1px solid #000;
		width: 320px;
		align-items: flex-start;
	}

	.highlight-text {
		line-height: 2;
		max-width: 180px;
	}

	.highlight-img {
		width: 147px;
		bottom: 0;
		right: -20px;
	}

	.advertising-pricing-section .page-cta-wrapper {
		margin-top: -18px;
		z-index: 1;
	}
}