@import url('page-landing-profilecard.css');

/* 依 docs/design-system.md：
   Primary #1A1A1A／Secondary #666666／Accent #6D01BE（僅強調用，不做大面積底色）
   Border-Divider #E8E8E8／Surface-Light #F5F5F5／Gray-50 #FAFAFA
   卡片圓角 16px、不用陰影，僅用邊框表現層次；不使用位移/縮放/進場動畫
   例外：.dc-invites-* （Hero 版型輪播卡）維持原設計，不套用本規範 */

/* Profile overview hero：左文右輪播卡 ------------------------------*/
.profilecard .banner.simple {
	position: relative;
	overflow: hidden;
}
.profilecard .banner.simple .container {
	padding: 64px 0;
}
.profilecard .banner.simple .container::after {
	content: "";
	width: 200px;
	height: 200px;
	background: #6D01BE;
	position: absolute;
	filter: blur(200px);
	top: -100px;
	right: 5vw;
	z-index: 1;
}
.profilecard .dc-hero-row {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 64px;
}
.profilecard .dc-hero-text {
	flex: 1 1 50%;
	min-width: 0;
}
.profilecard .banner.simple .slgan {
	max-width: 560px;
}
.profilecard .banner.simple .slgan h1,
.profilecard .banner.simple .slgan p {
	text-align: left;
}
.profilecard .banner.simple .btn-box {
	justify-content: flex-start;
}
.profilecard .banner.simple .btn-group.column {
	align-items: flex-start;
}
/* 按鈕上下排列時，保證 16px 間距（不依賴 margin 疊加） */
.profilecard .btn-group.column {
	gap: 16px;
}

/* 避免共用 .hide 的 display:none 讓手機版頁首離開版面並造成錨點位移。 */
.ad-menu.profile-overview-menu-hidden {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

/* Hero 版型輪播卡（改寫自 smoothui @smoothui/apple-invites，改用原生 CSS transition）
   ※ 依需求維持原設計，不套用 design-system.md 的色彩/圓角/去陰影/去動畫規範 --------*/
.profilecard .dc-invites {
	position: relative;
	z-index: 2;
	flex: 1 1 50%;
	display: flex;
	justify-content: center;
}
.profilecard .dc-invites-stage {
	position: relative;
	width: 100%;
	max-width: 420px;
	height: 380px;
}
.profilecard .dc-invites-card {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 220px;
	height: 344px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.profilecard .dc-invites-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}
.profilecard .dc-invites-card.is-center {
	transform: translate(-50%, -50%) rotate(0deg) scale(1);
	opacity: 1;
	z-index: 3;
}
.profilecard .dc-invites-card.is-left {
	transform: translate(-115%, -50%) rotate(-12deg) scale(0.9);
	opacity: 0.8;
	z-index: 2;
}
.profilecard .dc-invites-card.is-right {
	transform: translate(15%, -50%) rotate(12deg) scale(0.9);
	opacity: 0.8;
	z-index: 2;
}
@media (max-width: 992px) {
	.profilecard .dc-hero-row {
		flex-direction: column;
		gap: 40px;
	}
	.profilecard .dc-invites {
		width: 100%;
	}
	.profilecard .banner.simple .slgan {
		max-width: 100%;
	}
	.profilecard .banner.simple .slgan h1,
	.profilecard .banner.simple .slgan p {
		text-align: center;
	}
	.profilecard .banner.simple .btn-box {
		justify-content: center;
	}
	.profilecard .banner.simple .btn-group.column {
		align-items: center;
	}
	.profilecard .banner.simple .btn-box.btn-group {
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}
	.profilecard .banner.simple .btn-box.btn-group .button {
		margin: 0 !important;
	}
}
@media (max-width: 767px) {
	.profilecard .banner.simple .container {
		padding: 40px 15px;
	}
	.profilecard .dc-invites-stage {
		height: 300px;
	}
	.profilecard .dc-invites-card {
		width: 190px;
		height: 297px;
	}
}

/* Bento 功能總覽 ------------------------------*/
.profilecard .bento-overview {
	background: #fff;
	scroll-margin-top: 100px;
}
.profilecard .bento-overview .container {
	padding: 40px 0 80px;
}
@media (max-width: 992px) {
	.profilecard .bento-overview .container {
		padding-left: 15px;
		padding-right: 15px;
	}
}
.profilecard .bento-overview .guide-section-head {
	max-width: 720px;
	margin: 0 auto 60px;
	text-align: center;
}
.profilecard .bento-overview .landing-h2 {
	margin-bottom: 12px;
}
.profilecard .bento-overview .landing-bodym {
	color: #666666;
}
/* 便當卡片格線：整體高度限制在一張 16:9 簡報的高度 ------------------------------*/
.profilecard .bento-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-auto-rows: 150px;
	grid-auto-flow: dense;
	gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
}
@media (min-width: 993px) and (max-width: 1399px) {
	.profilecard.enlang .bento-grid {
		grid-template-columns: repeat(4, 1fr);
		grid-auto-rows: 170px;
	}
}
@media (min-width: 1400px) {
	.profilecard.enlang .bento-grid {
		grid-auto-rows: 170px;
	}
}
.profilecard .bento-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	grid-column: span 1;
	padding: 16px;
	border-radius: 16px;
	background: #F9F1FF;
	border: 1px solid #ECDCFB;
	color: #1A1A1A;
	text-decoration: none;
	overflow: hidden;
	transition: border-color 0.2s ease-in-out;
}
.profilecard .bento-tile:hover {
	border-color: #6D01BE;
	color: #1A1A1A;
}
.profilecard .bento-tile::before {
	content: "";
	position: absolute;
	top: -35%;
	right: -20%;
	width: 65%;
	height: 65%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(109,1,190,0.14), rgba(109,1,190,0) 70%);
	pointer-events: none;
}
.profilecard .bento-icon,
.profilecard .bento-tile h3,
.profilecard .bento-desc {
	position: relative;
	z-index: 1;
}
.profilecard .bento-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #fff;
	background: #6D01BE;
	margin-bottom: 12px;
	flex-shrink: 0;
}
.profilecard .bento-tile h3 {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 2px;
	line-height: 1.3;
	color: #1A1A1A;
}
.profilecard .bento-desc {
	font-size: 14px;
	line-height: 1.4;
	margin: 0;
	color: #666666;
	overflow: hidden;
	text-overflow: ellipsis;
}
@media (max-width: 992px) {
	.profilecard .bento-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: none;
		grid-auto-rows: auto;
		aspect-ratio: auto;
		gap: 8px;
	}
	.profilecard .bento-tile {
		min-height: 96px;
		padding: 12px;
	}
	.profilecard .bento-icon {
		width: 32px;
		height: 32px;
		font-size: 16px;
		margin-bottom: 8px;
	}
	.profilecard .bento-tile h3 {
		font-size: 14px;
	}
	/* 手機版只留標題，拿掉說明文字避免卡片太高 */
	.profilecard .bento-desc {
		display: none;
	}
}

/* 目錄：滾動時停留在右側，方便隨時切換章節（文件站風格：無卡片、細線標示目前章節）------*/
.profilecard .guide-toc-rail {
	position: fixed;
	top: 50%;
	right: -56px;
	transform: translateY(-50%);
	z-index: 40;
	width: 180px;
	max-height: 80vh;
	overflow-y: auto;
	display: none;
}
.profilecard .guide-toc-rail.is-visible {
	display: block;
}
.profilecard.enlang .guide-toc-rail {
	right: -36px;
}
.profilecard .guide-toc-rail-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 1px solid #E8E8E8;
}
.profilecard .guide-toc-rail-list a {
	display: block;
	padding: 6px 0 6px 16px;
	margin-left: -1px;
	border-left: 1px solid transparent;
	color: #666666;
	text-decoration: none;
}
.profilecard .guide-toc-rail-list a:hover {
	color: #6D01BE;
}
.profilecard .guide-toc-rail-list a.is-active {
	border-left: 1px solid #6D01BE;
	color: #6D01BE;
	font-weight: 600;
}
.profilecard .guide-toc-index {
	display: none;
}
.profilecard .guide-toc-label {
	font-size: 13px;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 1399px) {
	.profilecard .guide-toc-rail {
		display: none !important;
	}
}

/* 目錄：中小螢幕改浮動按鈕，點擊展開章節清單 ------------------------------*/
.profilecard .guide-toc-fab {
	position: fixed;
	right: 16px;
	bottom: 24px;
	z-index: 41;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	background: #6D01BE;
	color: #fff;
	font-size: 20px;
	display: none;
	align-items: center;
	justify-content: center;
}
.profilecard .guide-toc-fab.is-visible {
	display: flex;
}
.profilecard .guide-toc-sheet {
	position: fixed;
	right: 16px;
	bottom: 88px;
	z-index: 41;
	width: 260px;
	max-height: 60vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #E8E8E8;
	border-radius: 16px;
	padding: 8px;
	display: none;
}
.profilecard .guide-toc-sheet.is-open {
	display: block;
}
.profilecard .guide-toc-sheet-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.profilecard .guide-toc-sheet-list a {
	display: block;
	padding: 10px 8px;
	border-radius: 8px;
	color: #666666;
	font-size: 14px;
	text-decoration: none;
}
.profilecard .guide-toc-sheet-list a.is-active {
	background: #FAFAFA;
	color: #6D01BE;
	font-weight: 600;
}

@media (min-width: 1400px) {
	.profilecard .guide-toc-fab,
	.profilecard .guide-toc-sheet {
		display: none !important;
	}
}

/* 功能區塊：左右交錯版面 ------------------------------*/
.profilecard .guide-features {
	background: #fff;
	padding: 0;
}
.profilecard .guide-group-head {
	padding: 80px 0 44px;
}
.profilecard .guide-group-bg-a {
	background: #FFFAFF;
}
.profilecard .guide-group-bg-b {
	background: #fff;
}
.profilecard .guide-group-head .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 0;
}
.profilecard .guide-group-title.guide-group-title {
	margin: 0 0 16px;
}
.profilecard .guide-group-subtitle {
	margin: 0;
	color: #666666;
}
.profilecard .guide-section {
	scroll-margin-top: 100px;
}
.profilecard .guide-section .container {
	padding: 16px 0;
}
.profilecard #avatar,
.profilecard #bilingual,
.profilecard #wallet,
.profilecard #analytics {
	padding-bottom: 40px;
}
.profilecard .guide-row {
	display: flex;
	align-items: center;
	gap: 56px;
	background: #FFF;
	border-radius: 40px;
	padding: 56px;
	box-shadow: 0 40px 100px 0 rgba(109, 1, 190, 0.05);
}
.profilecard .guide-row.reverse {
	flex-direction: row-reverse;
}
.profilecard .guide-col-text {
	flex: 1 1 50%;
	min-width: 0;
}
.profilecard .guide-col-visual {
	flex: 1 1 50%;
}
.profilecard .guide-col-text .landing-h3 {
	text-align: left;
	margin-bottom: 16px;
}
.profilecard .guide-title {
	display: flex;
	align-items: center;
	gap: 14px;
}
.profilecard .guide-title-icon {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: #fff;
	background: #6D01BE;
}
.profilecard .guide-desc {
	font-size: 18px;
	line-height: 1.6;
	color: #666666;
	margin-bottom: 24px;
}
.profilecard .guide-bullets {
	list-style: none;
	margin: 0;
	padding: 0;
}
.profilecard .guide-bullets li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 14px;
	font-size: 18px;
	line-height: 1.6;
	color: #1A1A1A;
	font-weight: 500;
}
.profilecard .guide-bullets li:last-child {
	margin-bottom: 0;
}
.profilecard .guide-bullets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #6D01BE;
}
.profilecard .guide-example-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 28px 0 0;
}
.profilecard .guide-example-links a {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	border: 1px solid #8500EA;
	border-radius: 4px;
	font-size: 18px;
	line-height: 160%;
	font-weight: 500;
	color: #1A1A1A;
	text-decoration: none;
	transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.profilecard .guide-example-links a:hover {
	background: #8500EA;
	color: #fff;
}
.profilecard .guide-visual-placeholder {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 2080 / 1920;
	overflow: hidden;
	border-radius: 16px;
}
.profilecard .guide-visual-placeholder img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
}

/* 自訂網址雙圖輪播（自訂網址功能有兩張示意圖交替顯示，僅色彩淡入淡出）--------*/
.profilecard .dc-carousel {
	aspect-ratio: 2080 / 1920;
}
.profilecard .dc-carousel-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.6s ease-in-out;
}
.profilecard .dc-carousel-img.is-active {
	opacity: 1;
}

@media (max-width: 992px) {
	.profilecard .guide-row,
	.profilecard .guide-row.reverse {
		flex-direction: column;
		gap: 24px;
	}
	.profilecard .guide-col-visual {
		width: 100%;
	}
	.profilecard .guide-section .container {
		padding: 20px 15px;
	}
	.profilecard .guide-group-head {
		padding: 40px 0 4px;
	}
	.profilecard .guide-group-head .container {
		padding: 0 15px;
	}
	.profilecard .guide-example-links {
		flex-wrap: nowrap;
	}
	.profilecard .guide-example-links a {
		flex: 1;
		padding: 6px 8px;
		font-size: 16px;
	}
	.profilecard .guide-row {
		padding: 32px 24px;
	}
	.profilecard .guide-desc,
	.profilecard .guide-bullets li {
		font-size: 16px;
	}
}

/* CTA：手機版文字在上、圖片在下，按鈕上下排列並保持 16px 間距 ------------------------------*/
@media (max-width: 767px) {
	.profilecard .readygo .landing-aditem {
		flex-direction: column-reverse;
		gap: 40px;
	}
	.profilecard .readygo .landing-adbox .img {
		padding-bottom: 0;
	}
	.profilecard .readygo .btn-box.btn-group {
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}
	.profilecard .readygo .btn-box.btn-group .button {
		margin: 0 !important;
	}
	.profilecard .bento-overview .guide-section-head {
		margin-bottom: 40px;
	}
	.profilecard .bento-overview .container {
		padding-bottom: 40px;
	}
}
