:root {
	--page-bg: #e7e7e7;
	--navbar-bg: #d7e3e5;
	--text-main: #2b2b2b;
	--text-muted: #666;
	--accent: #7a5f56;
	--video-bg: #f0d9d9;
	--footer-top: #ffffff;
	--footer-mid: #b5ddde;
	--footer-bottom: #91cccd;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding-top: 66px;
	background: var(--page-bg);
	color: var(--text-main);
	font-family: "Noto Serif TC", "PMingLiU", "Times New Roman", serif;
	line-height: 1.85;
}

.mt-10 {
	margin-top: 10px;
}

.mt-20 {
	margin-top: 20px;
}

.mt-30 {
	margin-top: 30px;
}

.mt-40 {
	margin-top: 40px;
}

.mt-50 {
	margin-top: 50px;
}

.mt-60 {
	margin-top: 60px;
}

.mt-70 {
	margin-top: 70px;
}

.mt-80 {
	margin-top: 80px;
}

.mt-90 {
	margin-top: 90px;
}

.mt-100 {
	margin-top: 100px;
}
.mt-150 {
	margin-top: 150px;
}
.mt-200 {
	margin-top: 200px;
}
.site-navbar {
	background: rgba(215, 227, 229, 0.82);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	min-height: 66px;
	transition: background-color 0.28s ease, backdrop-filter 0.28s ease, -webkit-backdrop-filter 0.28s ease, box-shadow 0.28s ease;
}

.site-navbar.is-scrolled {
	background: rgba(215, 227, 229, 0.55);
	-webkit-backdrop-filter: blur(10px) saturate(120%);
	backdrop-filter: blur(10px) saturate(120%);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.brand-logo {
	width: 56px;
	height: auto;
	display: block;
}

.nav-list {
	gap: 10px;
}

.nav-list .nav-link {
	color: #000000;
	font-size: 17px;
	line-height: 1.15;
	font-weight: 600;
	padding: 12px 40px;
	border-left: 1px solid rgba(0, 0, 0, 0.08);
	text-align: center;
	white-space: nowrap;
	transition: opacity 0.28s ease, color 0.28s ease;
}

.nav-list .nav-item:last-child .nav-link {
	border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-list .nav-link span {
	display: block;
	margin-top: 2px;
	color: #000000;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.nav-list .nav-link:hover {
	background: transparent;
	color: #2f2f2f;
	opacity: 0.58;
}

.nav-list .nav-link.active {
	background: transparent;
	color: #2f2f2f;
}

.hero-section {
	position: relative;
	margin-top: -66px;
	overflow: hidden;
}

.hero-media {
	display: block;
}

.hero-bg {
	width: 100%;
	height: auto;
	display: block;
	object-position: top center;
}

.hero-layer {
	position: absolute;
	will-change: transform, opacity;
	opacity: 0;
	animation: heroFadeIn 2.4s cubic-bezier(0.18, 0.9, 0.25, 1) forwards;
	pointer-events: none;
}

.hero-maintitle {
	top: 10%;
	left: 82%;
	width: min(46%, 600px);
	transform: translate3d(-50%, calc(var(--parallax-y, 0) * 1px), 0);
	animation-name: heroFadeDownCenter;
	animation-delay: 0.4s;
	z-index: 3;
}

.hero-subtitle {
	top: 25%;
	left: 82%;
	width: min(45%, 600px);
	transform: translate3d(-50%, calc(var(--parallax-y, 0) * 1px), 0);
	animation-name: heroFadeDownCenter;
	animation-delay: 1.35s;
	z-index: 3;
}

.hero-sailboat {
	top: 35%;
	left: 25%;
	width: min(25%, 300px);
	transform: translate3d(0, calc(var(--parallax-y, 0) * 1px), 0);
	animation-name: heroFadeRight;
	animation-delay: 2.1s;
	z-index: 2;
}

@keyframes heroFadeIn {
	from {
		opacity: 0;
		filter: blur(3px);
	}

	to {
		opacity: 1;
		filter: blur(0);
	}
}

@keyframes heroFadeDownCenter {
	from {
		opacity: 0;
		filter: blur(3px);
		transform: translate3d(-50%, calc((var(--parallax-y, 0) * 1px) - 34px), 0);
	}

	to {
		opacity: 1;
		filter: blur(0);
		transform: translate3d(-50%, calc(var(--parallax-y, 0) * 1px), 0);
	}
}

@keyframes heroFadeRight {
	from {
		opacity: 0;
		filter: blur(3px);
		transform: translate3d(-56px, calc(var(--parallax-y, 0) * 1px), 0);
	}

	to {
		opacity: 1;
		filter: blur(0);
		transform: translate3d(0, calc(var(--parallax-y, 0) * 1px), 0);
	}
}

@keyframes footerSailSlideIn {
	from {
		opacity: 0;
		transform: translate3d(56px, 0, 0);
	}

	to {
		opacity: 0.72;
		transform: translate3d(0, 0, 0);
	}
}

.hero-title-wrap {
	position: absolute;
	top: 8%;
	left: 52%;
	transform: translateX(-50%);
	width: min(70%, 760px);
}

.hero-title-image {
	width: 100%;
	height: auto;
	display: block;
}

main {
	background: #ffffff;
	position: relative;
	overflow-x: hidden;
}

.section-spacing {
	padding-top: 72px;
	padding-bottom: 12px;
}

.reveal {
	opacity: 0;
	transform: translate3d(0, 30px, 0);
	transition: opacity 1.05s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1.05s cubic-bezier(0.22, 0.61, 0.36, 1);
	transition-delay: var(--reveal-delay, 0ms);
	will-change: opacity, transform;
}

.reveal.active {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.reveal.up {
	transform: translate3d(0, 30px, 0);
}

.reveal.down {
	transform: translate3d(0, -72px, 0);
}

.reveal.left {
	transform: translate3d(30px, 0, 0);
}

.reveal.right {
	transform: translate3d(-30px, 0, 0);
}

.reveal.up.active,
.reveal.down.active,
.reveal.left.active,
.reveal.right.active {
	transform: translate3d(0, 0, 0);
}

.section-title {
	margin: 0 0 34px;
	font-size: 30px;
	line-height: 1.12;
	color: #222;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.section-copy {
	margin: 0;
	font-size: 16px;
	letter-spacing: 0.005em;
}

.section-copy.zh {
	margin-bottom: 5px;
	color: #000;
}

.section-copy.en {
	color: #000;
    margin-bottom: 30px;
}

.video-row {
	margin-top: 56px;
	margin-bottom: 56px;
}

.video-placeholder {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--video-bg);
	border: 1px solid rgba(122, 95, 86, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.video-cover-btn {
	position: absolute;
	inset: 0;
	display: block;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.video-cover-btn::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 108px;
	height: 108px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.38);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.video-cover-btn::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-40%, -50%);
	width: 0;
	height: 0;
	border-top: 16px solid transparent;
	border-bottom: 16px solid transparent;
	border-left: 28px solid rgba(255, 255, 255, 0.9);
}

.video-cover-btn:hover::before,
.video-cover-btn:focus-visible::before {
	background: rgba(0, 0, 0, 0.5);
}

.video-cover-btn:hover,
.video-cover-btn:focus-visible {
	transform: scale(1.01);
}

.play-button {
	width: 92px;
	height: 64px;
	border-radius: 18px;
	background: #ff0000;
	position: relative;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.play-button::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 52%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 18px solid #fff;
}

.gallery-section {
	padding-top: 40px;
	padding-bottom: 130px;
}

.gallery-frame {
	margin: 0 auto;
	width: min(98%, 1700px);
}

.gallery-image {
	width: 100%;
	height: auto;
	display: block;
}

.site-footer {
	position: relative;
	overflow: hidden;
	background: linear-gradient(to bottom, var(--footer-top) 0%, var(--footer-mid) 66.9%, var(--footer-bottom) 100%);
	padding: 56px 0 34px;
}

.footer-sailboat {
	position: absolute;
	right: 5%;
	bottom: 18px;
	width: min(180px, 16vw);
	height: auto;
	opacity: 0.72;
	pointer-events: none;
}

.footer-logo {
	width: min(320px, 78%);
	height: auto;
	display: block;
	margin: 0 auto 18px;
}

.footer-meta {
	color: #4f4f4f;
	font-size: 14px;
	letter-spacing: 0.02em;
}

@media (max-width: 1200px) {
	.nav-list {
		gap: 6px;
	}

	.nav-list .nav-link {
		padding: 10px 26px;
		font-size: 14px;
	}

	.section-title {
		font-size: 30px;
	}
}

@media (max-width: 991.98px) {
	body {
		padding-top: 72px;
	}

	.hero-section {
		margin-top: -72px;
	}

	.footer-sailboat {
		left: auto;
		right: 3%;
		top: 56px;
		bottom: auto;
		width: min(140px, 22vw);
		transform: translate3d(0, 0, 0);
		animation: footerSailSlideIn 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
		will-change: transform, opacity;
	}

	.site-navbar {
		min-height: 72px;
	}

	.nav-list {
		margin-top: 8px;
		border-top: 1px solid rgba(0, 0, 0, 0.08);
	}

	.nav-list .nav-link,
	.nav-list .nav-item:last-child .nav-link {
		border-left: none;
		border-right: none;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
		text-align: left;
	}

	.hero-section {
		margin-top: 0;
	}

	.hero-maintitle {
		top: 13%;
		left: 56%;
		width: 62%;
	}

	.hero-subtitle {
		top: 35.5%;
		left: 56%;
		width: 60%;
	}

	.hero-sailboat {
		top: 46%;
		left: 20%;
		width: 33%;
	}

	.section-spacing {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.section-title {
		font-size: 38px;
		margin-bottom: 26px;
	}

	.section-copy {
		font-size: 15px;
	}

	.gallery-section {
		padding-bottom: 90px;
	}
}

@media (max-width: 767.98px) {
	.footer-sailboat {
		display: block;
		left: auto;
		right: 3%;
		top: 56px;
		bottom: auto;
		width: min(108px, 32vw);
		transform: translate3d(0, 0, 0);
		animation: footerSailSlideIn 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
		will-change: transform, opacity;
	}

	.brand-logo {
		width: 48px;
	}

	.hero-maintitle {
		top: 14%;
		left: 57%;
		width: 72%;
	}

	.hero-subtitle {
		top: 36.5%;
		left: 57%;
		width: 70%;
	}

	.hero-sailboat {
		top: 49%;
		left: 15%;
		width: 40%;
	}

	.section-title {
		font-size: 31px;
	}

	.section-copy {
		font-size: 14px;
		line-height: 1.75;
	}

	.video-row {
		margin-top: 40px;
		margin-bottom: 40px;
	}

	.play-button {
		width: 74px;
		height: 52px;
		border-radius: 14px;
	}

	.play-button::before {
		border-top-width: 9px;
		border-bottom-width: 9px;
		border-left-width: 15px;
	}

	.video-cover-btn::before {
		width: 88px;
		height: 88px;
	}

	.video-cover-btn::after {
		border-top-width: 13px;
		border-bottom-width: 13px;
		border-left-width: 22px;
	}

	.footer-meta {
		font-size: 12px;
	}
}

/* ── Subpage Sailboat Deco ─────────────────────────────────── */
.subpage-sailboat {
	position: absolute;
	right: 4%;
	bottom: 10px;
	width: 250px;
	height: auto;
	opacity: 0.72;
	pointer-events: none;
	transform: translate3d(calc(var(--parallax-x, 280px)), 0, 0);
	transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform, opacity;
}

.subpage-sailboat.is-visible {
	transform: translate3d(var(--parallax-x, 0px), 0, 0);
	opacity: 0.72;
}

@media (max-width: 991.98px) {
	.subpage-sailboat {
		width: clamp(100px, 18vw, 180px);
	}
}

@media (max-width: 1024px) and (min-width: 768px) {
	.mt-100 {
		margin-top: 15px;
		height: auto;
	}

	.subpage-sailboat {
		position: relative;
		right: auto;
		bottom: auto;
		display: block;
		margin-left: auto;
		margin-right: 4%;
	}
}

@media (max-width: 767.98px) {
	.mt-100 {
		margin-top: 40px;
		height: auto;
	}

	.subpage-sailboat {
		width: clamp(72px, 20vw, 120px);
		margin-right: 3%;
	}
}

/* ── Chapter Pages ─────────────────────────────────────────── */
.chapter-hero-spacing {
	padding-top: 40px;
}

.subpage-banner {
	position: relative;
	overflow: hidden;
}

.banner-bg {
	width: 100%;
	height: auto;
	display: block;
}

.banner-layer {
	position: absolute;
	will-change: transform, opacity;
	opacity: 0;
	animation: heroFadeIn 2.4s cubic-bezier(0.18, 0.9, 0.25, 1) forwards;
	pointer-events: none;
}

.banner-maintitle {
	top: 25%;
	left: 30%;
	width: clamp(90px, 26vw, 380px);
	transform: translate3d(-50%, calc(var(--parallax-y, 0) * 1px), 0);
	animation-name: heroFadeDownCenter;
	animation-delay: 0.4s;
	z-index: 3;
}

.banner-subtitle {
	top: 55%;
	left: 30%;
	width: clamp(80px, 24vw, 360px);
	transform: translate3d(-50%, calc(var(--parallax-y, 0) * 1px), 0);
	animation-name: heroFadeDownCenter;
	animation-delay: 1.35s;
	z-index: 3;
}

@media (max-width: 1024px) {
	.banner-subtitle {
		top: calc(25% + clamp(21px, 6.1vw, 89px) + 10px);
	}
}

@media (max-width: 767.98px) {
	.banner-subtitle {
		top: calc(25% + clamp(21px, 6.1vw, 89px) + 5px);
	}
}

.chapter-eyebrow {
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #8a7f72;
	margin-bottom: 12px;
}

.section-title-en {
	font-size: clamp(14px, 2vw, 18px);
	color: #8a7f72;
	font-weight: 400;
	margin-top: -8px;
	margin-bottom: 32px;
	letter-spacing: 0.04em;
}

.section-title-image {
	display: block;
	max-width: 100%;
	height: auto;
	margin-bottom: 20px;
}

.chapter-figure {
	margin: 0 0 24px;
}

.chapter-inline-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: 10px;
}

.chapter-caption {
	font-size: clamp(13px, 1.6vw, 15px);
	line-height: 1.7;
	color: #6f665b;
}

/* ── 烏石港專案：1024px 修正與 margin 動畫整合方案 ── */

/* 1. 保留您原始會動的動畫邏輯 */
@keyframes sailMoveRight {
    0% {
        opacity: 0;
        margin-left: -80px; 
    }
    100% {
        opacity: 1;
        margin-left: 0px;
    }
}

/* 2. 針對 1024px 獨立修正 (解決您截圖中的跑版問題) */
@media screen and (max-width: 1024px) and (min-width: 1025px) {
     /* 此斷點鎖定 iPad Pro 等 1024 寬度 */
}

@media screen and (max-width: 1024px) {
    .site-navbar {
        background-color: white !important;
    }

    .hero-layer {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important; 
    }

    /* iPad Pro 1024px 專屬座標：修正截圖中的擁擠感 */
    .hero-maintitle {
        top: 40px !important; 
        left: 75% !important;
        width: 300px !important;
        transform: translateX(-50%) !important;
    }
    .hero-subtitle {
        top: 130px !important;
        left: 75% !important;
        width: 280px !important;
        transform: translateX(-50%) !important;
    }

    /* 針對您提到的 1024px 修正帆船座標 */
    .hero-sailboat {
        top: 210px !important;
        left: 24% !important; /* 1024px 下建議先回歸 28% 較不擁擠 */
        width: 130px !important;
        z-index: 99 !important;
        
        /* 使用您確認「會動」的動畫 */
        animation: sailMoveRight 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
        animation-delay: 0.5s !important;
    }
}

/* 3. 針對 1023px 以下 (一般平板) ── 採用您修改過的 22% 座標 */
@media screen and (max-width: 1023px) and (min-width: 768px) {
    .hero-maintitle {
        top: 30px !important; 
        left: 80% !important;
        width: 250px !important;
    }
    .hero-subtitle {
        top: 100px !important;
        left: 80% !important;
        width: 250px !important;
    }
    .hero-sailboat {
        top: 155px !important;
        left: 22% !important; /* 您修改後的數值 */
        width: 120px !important;
        
        animation: sailMoveRight 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
        animation-delay: 0.5s !important;
    }
}

/* 4. 針對 767px 以下 (手機版) */
@media screen and (max-width: 767px) {
    .hero-maintitle {
        top: 10px !important;
        left: 77% !important;
        width: 150px !important;
        transform: translateX(-50%) !important;
    }
    .hero-subtitle {
        top: 50px !important;
        left: 77% !important;
        width: 150px !important;
        transform: translateX(-50%) !important;
    }
    .hero-sailboat {
        top: 89px !important;
        left: 29% !important;
        width: 50px !important;
        z-index: 99 !important;

        animation: sailMoveRight 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
        animation-delay: 0.3s !important;
        transform: translateX(-50%) !important;
    }
}


