/* 首頁專屬樣式（is_front_page() 條件式載入） */

/* H1：SEO 主標題保留在原始碼供搜尋引擎讀取，但視覺上隱藏（banner 已有視覺標題，避免版面重複）。
   用標準 sr-only 手法：不是 display:none（那會被部分爬蟲判為隱藏內容），而是保留於無障礙/SEO 樹。 */
.gc-home-h1 {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* 英雄區輪播 */
.gc-hero {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 7;
	max-height: 620px;
	overflow: hidden;
	background: #111;
}
.gc-hero-track, .gc-hero-slide { position: absolute; inset: 0; }
.gc-hero-slide {
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity .8s ease;
}
.gc-hero-slide.is-active { opacity: 1; }
.gc-hero::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 70%);
	z-index: 1;
}
.gc-hero-caption {
	position: absolute; left: 0; right: 0; bottom: 14%;
	z-index: 2; color: #fff;
}
.gc-hero-title {
	font-size: 40px; font-weight: 800; margin: 0 0 12px; color: #fff;
	text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.gc-hero-sub {
	font-size: 18px; margin: 0; color: #fff;
	text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.gc-hero-dots {
	position: absolute; left: 0; right: 0; bottom: 18px;
	z-index: 3; display: flex; gap: 8px; justify-content: center;
}
.gc-hero-dot {
	width: 10px; height: 10px; border-radius: 50%;
	border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0;
}
.gc-hero-dot.is-active { background: #fff; }

@media (max-width: 880px) {
	.gc-home-h1 { font-size: 18px; }
	.gc-hero { aspect-ratio: 3 / 2; }   /* 手機降高度:4/5(直式469px、裁切過兇)→ 3/2(約250px、少裁多顯、內容更快出現) */
	.gc-hero-title { font-size: 24px; }
	.gc-hero-sub { font-size: 14px; }
}

/* 區塊通用標題 */
.gc-sec-title {
	text-align: center;
	font-size: 28px;
	font-weight: 800;
	color: var(--gc-dark);
	margin: 48px 0 24px;
}

/* 館別展示 */
.gc-hall-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-bottom: 24px;
}
.gc-hall-card {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}
.gc-hall-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 20px rgba(0,0,0,.14);
	text-decoration: none;
}
.gc-hall-thumb {
	display: block;
	aspect-ratio: 4 / 3;
	background: #e9eef0 center/cover no-repeat;
}
.gc-hall-name {
	display: block;
	padding: 12px;
	text-align: center;
	font-weight: 700;
	color: var(--gc-dark);
}
@media (max-width: 880px) {
	.gc-sec-title { font-size: 22px; margin: 32px 0 18px; }
	.gc-hall-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* 按摩特色 */
.gc-feature-cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 24px;
}
.gc-feature-col {
	background: #f7fafb;
	border-radius: 12px;
	padding: 24px;
}
.gc-feature-head {
	font-size: 20px;
	font-weight: 800;
	color: var(--gc-primary);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--gc-primary);
}
.gc-feature-list { list-style: none; margin: 0; padding: 0; }
.gc-feature-list li {
	position: relative;
	padding: 8px 0 8px 26px;
	color: #333;
}
.gc-feature-list li::before {
	content: "✓";
	position: absolute; left: 0;
	color: var(--gc-primary);
	font-weight: 700;
}
@media (max-width: 880px) {
	.gc-feature-cols { grid-template-columns: 1fr; }
}

/* 區塊導言 */
.gc-sec-lead {
	text-align: center;
	max-width: 820px;
	margin: 0 auto 28px;
	color: var(--gc-muted);
	line-height: 1.8;
}

/* 達人攻略 / 文章卡片 */
.gc-guide-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 24px;
}
.gc-guide-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--gc-line);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}
.gc-guide-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: #eef1f2;
	overflow: hidden;
}
.gc-guide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gc-guide-title { font-size: 17px; line-height: 1.5; margin: 14px 14px 8px; }
.gc-guide-title a { color: var(--gc-dark); }
.gc-guide-excerpt { flex: 1; margin: 0 14px 12px; color: var(--gc-muted); font-size: 14px; }
.gc-guides .gc-readmore { margin: 0 14px 16px; }
@media (max-width: 880px) {
	.gc-guide-grid { grid-template-columns: 1fr; }
}

/* 按摩正妹推薦 */
.gc-master-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-bottom: 20px;
}
.gc-master-card {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}
.gc-master-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,.14); text-decoration: none; }
.gc-master-thumb { display: block; aspect-ratio: 3 / 4; background: #e9eef0 center/cover no-repeat; }
.gc-master-info { display: block; padding: 10px 12px; }
.gc-master-name { display: block; font-weight: 700; color: var(--gc-dark); }
.gc-master-meta { display: block; color: var(--gc-muted); font-size: 13px; margin-top: 2px; }
.gc-master-price { display: block; color: var(--gc-primary); font-weight: 700; font-size: 14px; margin-top: 2px; }

/* CTA 按鈕列 */
.gc-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 8px 0 16px; }
.gc-btn { display: inline-block; padding: 12px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.gc-btn:hover { opacity: .9; text-decoration: none; }
.gc-btn-primary { background: var(--gc-primary); color: #fff; }
.gc-btn-line { background: #00C300; color: #fff; }

/* Top 5 比較表 */
.gc-top5-scroll { overflow-x: auto; margin-bottom: 8px; }
.gc-top5-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.gc-top5-table th, .gc-top5-table td {
	border: 1px solid var(--gc-line);
	padding: 12px;
	text-align: center;
	vertical-align: top;
	font-size: 14px;
	line-height: 1.6;
}
.gc-top5-table thead th { background: var(--gc-primary); color: #fff; font-size: 15px; }
.gc-top5-table thead th small { font-weight: 400; opacity: .9; }
.gc-top5-table tbody th { background: #f2f6f7; color: var(--gc-dark); white-space: nowrap; }
.gc-top5-table td b { display: block; color: #f5a623; margin-bottom: 4px; letter-spacing: 1px; }

/* 交通地圖 */
.gc-map { margin-top: 24px; }
.gc-map-img { display: block; width: 100%; max-width: 920px; margin: 0 auto; border-radius: 12px; }

/* 常見問題 FAQ */
.gc-faq-list { max-width: 920px; margin: 0 auto 24px; }
.gc-faq-item {
	border: 1px solid var(--gc-line);
	border-radius: 10px;
	margin-bottom: 12px;
	overflow: hidden;
	background: #fff;
}
.gc-faq-item summary {
	cursor: pointer;
	padding: 16px 48px 16px 20px;
	font-weight: 700;
	color: var(--gc-dark);
	list-style: none;
	position: relative;
}
.gc-faq-item summary::-webkit-details-marker { display: none; }
.gc-faq-item summary::after {
	content: "+";
	position: absolute; right: 20px; top: 14px;
	color: var(--gc-primary); font-size: 20px; font-weight: 700;
}
.gc-faq-item[open] summary { background: #f7fafb; }
.gc-faq-item[open] summary::after { content: "\2212"; }
.gc-faq-a { padding: 0 20px 16px; color: #444; line-height: 1.85; }

@media (max-width: 880px) {
	.gc-master-grid { grid-template-columns: repeat(2, 1fr); }
}
