/*
Theme Name: FYWSS 2.1.0 (Systematized CSS & WP 7.1 Ready)
Theme URI: https://www.fywss.edu.hk
Author: Titus C / Systematized Architecture
Author URI: https://www.fywss.edu.hk
Description: 中華基督教會方潤華中學官方佈景主題 v2.1.0。採用純淨系統化 CSS 變數架構（無 Tailwind 依賴），原生支援 WordPress 7.1.x 區塊編輯器純白畫布、PHP 8.3+ 及 Ken Burns 電影感主視覺輪播。
Version: 2.1.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fywss
*/
/* ==========================================================================
設計系統變數 (Design Tokens)
==========================================================================*/
:root {
/*學校品牌核心色票 */
--school-green: #4D602B;
--school-green-dark: #3E4E22;
--school-green-deep: #2C3818;
--school-olive: #9CB087;
--school-soft: #F4F8F1;
--school-soft-border: #D5E2C8;
/* 強調色票 */
	--school-gold: #DAA520;
	--school-amber: #F5A623;
	--school-blue: #2563EB;
	--school-blue-dark: #1E3A8A;
	--school-purple: #9C27B0;
	--school-purple-dark: #581C87;
	--school-red: #DC2626;

	/* 中性文字與表面層次 */
	--text-heading: #0F172A;
	--text-main: #1E293B;
	--text-body: #334155;
	--text-muted: #64748B;
	--text-light: #94A3B8;

	--bg-page: #FCFCFC;
	--bg-subtle: #F8FAFC;
	--bg-card: #FFFFFF;
	--border-color: #E2E8F0;
	--border-strong: #CBD5E1;

	/* 圓角規範 */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--radius-pill: 9999px;

	/* 陰影層次 */
	--shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
	--shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
	--shadow-lg: 0 16px 32px -6px rgba(15, 23, 42, 0.12);
	--shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.22);

	/* 字體與佈局尺寸 */
	--font-sans: "Noto Sans TC", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft JhengHei", sans-serif;
	--font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
	--container-max: 1280px;
	--site-sticky-offset: 0px;
}
/* ==========================================================================
2. 全域重置與基礎排版 (Base & Reset)
========================================================================== */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
-webkit-tap-highlight-color: transparent;
}
body.fywss-body {
margin: 0;
padding: 0;
font-family: var(--font-sans);
color: var(--text-main);
background-color: var(--bg-page);
line-height: 1.65;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
display: flex;
flex-direction: column;
min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-serif);
font-weight: 700;
color: var(--text-heading);
margin-top: 0;
}
.font-serif {
font-family: var(--font-serif);
}
a {
color: inherit;
text-decoration: none;
}
img, iframe, object, embed, video {
max-width: 100%;
height: auto;
}
button, input, select, textarea {
font-family: inherit;
}
/* 自訂捲軸 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
background: #CBD5E1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #94A3B8;
}
/* 輔助工具類別 */
.fywss-container {
width: 100%;
max-width: var(--container-max);
margin-left: auto;
margin-right: auto;
padding-left: 1rem;
padding-right: 1rem;
}
@media (min-width: 640px) {
.fywss-container {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
}
@media (min-width: 1024px) {
.fywss-container {
padding-left: 2rem;
padding-right: 2rem;
}
}
.fywss-container--narrow {
max-width: 1024px;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.line-clamp-1 {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-3 {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* 捲動進場動畫 */
.show-on-scroll {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.show-on-scroll.is-visible {
opacity: 1;
transform: translateY(0);
}
/* ==========================================================================
3. 頂部頁首、循環日、eClass / Gmail 與社群連結 (Top Header)
========================================================================== */
.site-top-header {
	width: 100%;
	background-color: #FFFFFF;
	border-bottom: 1px solid #F1F5F9;
	padding: 0.85rem 0;
}
@media (min-width: 768px) {
	.site-top-header {
		padding: 0.95rem 0;
	}
}
.site-top-header__inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}
@media (min-width: 1024px) {
	.site-top-header__inner {
		gap: 2rem;
	}
}
.site-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}
@media (min-width: 1024px) {
	.site-brand {
		gap: 0.95rem;
	}
}
.site-brand__logo {
	height: 52px;
	width: auto;
	display: block;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}
@media (min-width: 768px) {
	.site-brand__logo {
		height: 56px;
	}
}
@media (min-width: 1024px) {
	.site-brand__logo {
		height: 62px;
	}
}
.site-brand:hover .site-brand__logo {
	transform: scale(1.03);
}
.site-brand__title {
	font-family: var(--font-serif);
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--text-heading);
	margin: 0;
	line-height: 1.25;
	white-space: nowrap;
}
@media (min-width: 768px) {
	.site-brand__title {
		font-size: 1.25rem;
	}
}
@media (min-width: 1024px) {
	.site-brand__title {
		font-size: 1.4rem;
		letter-spacing: 0.05em;
	}
}
.site-brand__subtitle {
	font-size: 0.76rem;
	color: var(--text-muted);
	letter-spacing: 0.02em;
	margin: 0.2rem 0 0;
	white-space: nowrap;
}
@media (min-width: 768px) {
	.site-brand__subtitle {
		font-size: 0.82rem;
	}
}
@media (min-width: 1024px) {
	.site-brand__subtitle {
		font-size: 0.88rem;
		letter-spacing: 0.03em;
	}
}

/* 手機版（出現漢堡選單時，< 768px）隱藏狀態列，避免換行 */
.site-status-bar {
	display: none;
}
@media (min-width: 768px) {
	.site-status-bar {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		text-align: right;
		flex: 1;
		min-width: 0;
		gap: 0.45rem;
	}
}

/* 右上第一行：循環日 + 日期 */
.site-date-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	white-space: nowrap;
	gap: 0.5rem;
	font-weight: 500;
	font-size: 0.82rem;
}
@media (min-width: 1024px) {
	.site-date-row {
		font-size: 0.86rem;
	}
}
.cycle-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.14rem 0.58rem;
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	background-color: var(--school-green);
	border-bottom: 2px solid var(--school-gold);
	color: #FFFFFF;
	box-shadow: var(--shadow-xs);
	flex-shrink: 0;
}
@media (min-width: 1024px) {
	.cycle-badge {
		padding: 0.15rem 0.65rem;
		font-size: 0.72rem;
	}
}
.site-date-text {
	color: var(--text-body);
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	white-space: nowrap;
}
.site-date-text i {
	color: var(--school-green);
}

/* 右上第二行：eClass + Gmail 文字膠囊 + FB / IG 圓形圖示 */
.header-quick-links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45rem;
	white-space: nowrap;
}
.header-portal-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.32rem;
	height: 26px;
	padding: 0 0.65rem;
	border-radius: 9999px;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.header-portal-pill:hover {
	transform: translateY(-1.5px);
	color: #FFFFFF;
	box-shadow: 0 3px 8px rgba(15, 23, 42, 0.14);
}
.header-portal-pill--eclass {
	background-color: var(--school-soft);
	color: var(--school-green-deep);
	border: 1px solid var(--school-soft-border);
}
.header-portal-pill--eclass:hover {
	background-color: var(--school-green);
	border-color: var(--school-green);
}
.header-portal-pill--gmail {
	background-color: #FEF2F2;
	color: #B91C1C;
	border: 1px solid #FECACA;
}
.header-portal-pill--gmail:hover {
	background-color: #DC2626;
	border-color: #DC2626;
}
.site-meta-divider {
	width: 1px;
	height: 15px;
	background-color: #CBD5E1;
	margin: 0 0.15rem;
	flex-shrink: 0;
}
.header-social-group {
	display: inline-flex;
	align-items: center;
	gap: 0.38rem;
	flex-shrink: 0;
}
.header-social-btn {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.78rem;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.header-social-btn:hover {
	transform: translateY(-1.5px);
	color: #FFFFFF;
	box-shadow: 0 3px 8px rgba(15, 23, 42, 0.16);
}
.header-social-btn--fb {
	background-color: #EFF6FF;
	color: #1877F2;
	border: 1px solid #DBEAFE;
}
.header-social-btn--fb:hover {
	background-color: #1877F2;
	border-color: #1877F2;
}
.header-social-btn--ig {
	background-color: #FDF2F8;
	color: #E1306C;
	border: 1px solid #FCE7F3;
}
.header-social-btn--ig:hover {
	background: linear-gradient(45deg, #F59E0B, #F43F5E, #9333EA);
	border-color: transparent;
}

/* 手機選單底部快捷連結列 */
.mobile-menu-social {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.mobile-menu-social__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-width: 38px;
	height: 36px;
	padding: 0 0.75rem;
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.14);
	color: #FFFFFF;
	font-size: 0.84rem;
	font-weight: 600;
	transition: background-color 0.2s ease;
}
.mobile-menu-social__btn:first-child,
.mobile-menu-social__btn:nth-child(2) {
	flex: 1;
}
.mobile-menu-social__btn:hover {
	background-color: rgba(255, 255, 255, 0.24);
}
/* ==========================================================================
4. 校綠色固定主導覽列 (Sticky Navigation Bar)
========================================================================== */
.site-navbar {
position: sticky;
top: 0;
z-index: 50;
background-color: var(--school-green);
color: #FFFFFF;
border-top: 4px solid var(--school-amber);
box-shadow: var(--shadow-md);
}
.site-navbar__inner {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 52px;
position: relative;
}
/* 捲動後平滑縮放出現的校徽 */
.sticky-logo {
display: flex;
align-items: center;
gap: 0.6rem;
flex-shrink: 0;
overflow: hidden;
max-width: 0;
opacity: 0;
margin-right: 0;
transform: scale(0);
color: #FFFFFF;
transition: all 0.3s ease-out;
}
.sticky-logo.is-visible {
max-width: 340px;
opacity: 1;
margin-right: 0.85rem;
transform: scale(1);
}
.sticky-logo__img {
height: 34px;
width: auto;
flex-shrink: 0;
}
.sticky-logo__text {
display: flex;
flex-direction: column;
line-height: 1.2;
}
.sticky-logo__zh {
font-size: 0.82rem;
font-weight: 600;
white-space: nowrap;
}
.sticky-logo__en {
font-size: 0.6rem;
opacity: 0.85;
white-space: nowrap;
}
@media (min-width: 768px) {
.sticky-logo__text {
display: none;
}
}
/* 桌面端選單 */
.desktop-menu-wrap {
display: none;
}
@media (min-width: 768px) {
.desktop-menu-wrap {
display: flex;
align-items: center;
flex: 1;
}
}
.main-nav-menu,
.desktop-menu-wrap > div > ul {
display: flex;
align-items: center;
margin: 0;
padding: 0;
list-style: none;
}
.main-nav-menu > li,
.desktop-menu-wrap > div > ul > li {
position: relative;
}
.main-nav-menu > li > a,
.desktop-menu-wrap > div > ul > li > a {
display: flex;
align-items: center;
padding: 0.8rem 1.1rem;
color: rgba(255, 255, 255, 0.95);
font-weight: 400;
font-size: 1.05rem;
white-space: nowrap;
transition: background-color 0.2s ease, color 0.2s ease;
}
.main-nav-menu > li:hover > a,
.main-nav-menu > li.current-menu-item > a,
.desktop-menu-wrap > div > ul > li:hover > a,
.desktop-menu-wrap > div > ul > li.current_page_item > a {
color: #FFFFFF;
background-color: rgba(0, 0, 0, 0.16);
}
/* 桌面端多層下拉選單 */
.main-nav-menu li ul.sub-menu,
.main-nav-menu li ul.dropdown-menu,
.desktop-menu-wrap > div > ul li ul.children {
display: none;
position: absolute;
top: 100%;
left: 0;
min-width: 210px;
background-color: #FFFFFF;
box-shadow: var(--shadow-lg);
border-radius: 0 0 var(--radius-sm) var(--radius-sm);
padding: 0.45rem 0;
margin: 0;
z-index: 100;
list-style: none;
border-top: 3px solid var(--school-gold);
}
.main-nav-menu li ul.sub-menu ul.sub-menu,
.desktop-menu-wrap > div > ul li ul.children ul.children {
top: -3px;
left: 100%;
border-radius: var(--radius-sm);
}
.main-nav-menu li:hover > ul.sub-menu,
.main-nav-menu li:hover > ul.dropdown-menu,
.desktop-menu-wrap > div > ul li:hover > ul.children {
display: block;
animation: navFadeIn 0.18s ease-out;
}
.main-nav-menu li ul.sub-menu a,
.main-nav-menu li ul.dropdown-menu a,
.desktop-menu-wrap > div > ul li ul.children a {
display: block;
padding: 0.6rem 1.2rem;
color: var(--text-body);
font-size: 0.98rem;
font-weight: 400;
white-space: nowrap;
transition: background-color 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
.main-nav-menu li ul.sub-menu a:hover,
.main-nav-menu li ul.dropdown-menu a:hover,
.desktop-menu-wrap > div > ul li ul.children a:hover {
background-color: var(--school-soft);
color: var(--school-green);
padding-left: 1.45rem;
}
@keyframes navFadeIn {
from { opacity: 0; transform: translateY(-4px); }
to { opacity: 1; transform: translateY(0); }
}
/* 手機端漢堡按鈕與抽屜選單 */
.mobile-menu-toggle-wrap {
display: flex;
align-items: center;
margin-left: auto;
padding: 0.45rem 0;
}
@media (min-width: 768px) {
.mobile-menu-toggle-wrap {
display: none;
}
}
.mobile-menu-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.5rem 0.65rem;
background: transparent;
border: none;
border-radius: var(--radius-sm);
color: #FFFFFF;
font-size: 1.35rem;
cursor: pointer;
transition: background-color 0.2s ease;
}
.mobile-menu-btn:hover {
background-color: rgba(0, 0, 0, 0.2);
}
.mobile-menu-panel {
display: none;
background-color: var(--school-green);
padding: 0.5rem 1rem 1.25rem;
border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-menu-panel.is-open {
display: block;
}
@media (min-width: 768px) {
.mobile-menu-panel,
.mobile-menu-panel.is-open {
display: none !important;
}
}
.mobile-nav-menu,
.mobile-nav-menu ul {
list-style: none;
margin: 0;
padding: 0;
}
.mobile-nav-menu li {
position: relative;
}
.mobile-nav-menu li > a {
display: block;
padding: 0.75rem 3rem 0.75rem 0.85rem;
color: #FFFFFF;
font-size: 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
transition: background-color 0.2s ease;
}
.mobile-nav-menu li > a:hover {
background-color: rgba(255, 255, 255, 0.12);
}
.mobile-nav-menu ul.sub-menu,
.mobile-nav-menu ul.children {
display: none;
background-color: #FFFFFF;
border-left: 4px solid var(--school-gold);
border-radius: 0 0 6px 6px;
margin: 0.35rem 0 0.5rem;
padding: 0.25rem 0;
box-shadow: var(--shadow-sm);
}
.mobile-nav-menu ul.sub-menu.open,
.mobile-nav-menu ul.children.open {
display: block;
}
.mobile-nav-menu ul.sub-menu a,
.mobile-nav-menu ul.children a {
font-size: 0.95rem;
color: var(--text-body);
padding: 0.65rem 1.25rem;
border-bottom: 1px solid #F1F5F9;
background-color: #FFFFFF;
}
.mobile-nav-menu ul.sub-menu a:hover,
.mobile-nav-menu ul.children a:hover {
background-color: var(--school-soft);
color: var(--school-green);
}
.mobile-submenu-toggle {
position: absolute;
right: 0.35rem;
top: 0.3rem;
width: 2.4rem;
height: 2.4rem;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
color: #FFFFFF;
border-radius: 6px;
cursor: pointer;
}
.mobile-submenu-toggle:hover {
background-color: rgba(255, 255, 255, 0.2);
}
.mobile-submenu-toggle i {
transition: transform 0.25s ease;
}
.mobile-submenu-toggle.active i {
transform: rotate(180deg);
}

/* ==========================================================================
   導覽列最右側行事曆跑馬燈（無外框、靠右對齊；捲動出現校徽時自動隱藏）
   ========================================================================== */
.nav-events-marquee {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 1;
	min-width: 0;
	max-width: 100%;
	height: 30px;
	margin-left: auto;
	margin-right: 0.65rem;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	overflow: hidden;
	transition: opacity 0.25s ease, max-width 0.3s ease, margin 0.3s ease;
}
@media (min-width: 768px) {
	.nav-events-marquee {
		flex: 0 1 360px;
		margin-left: auto;
		margin-right: 0;
	}
}
@media (min-width: 1024px) {
	.nav-events-marquee {
		flex: 0 1 440px;
	}
}

/* 當捲動下去、校徽及校名出現在導覽列上時，平滑隱藏跑馬燈 */
.nav-events-marquee.is-hidden-on-scroll {
	opacity: 0;
	max-width: 0 !important;
	flex: 0 0 0 !important;
	margin-left: 0;
	margin-right: 0;
	pointer-events: none;
}

.nav-events-marquee .ann-box-container {
	overflow: hidden;
	height: 28px;
	position: relative;
	width: 100%;
}
.nav-events-marquee .ann-scroll-list {
	margin: 0;
	padding: 0;
	transition: transform 0.5s ease-in-out;
}
.nav-events-marquee .ann-item {
	height: 28px;
	line-height: 28px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.95);
	text-align: right;
}
@media (min-width: 1024px) {
	.nav-events-marquee .ann-item {
		font-size: 0.84rem;
	}
}
.nav-events-marquee .nav-ann-date {
	color: #FDE68A;
	font-weight: 700;
}
.nav-events-marquee .ann-item strong {
	color: #FFFFFF;
	font-weight: 600;
	margin-left: 0.38rem;
}
.nav-ann-icon--holiday {
	color: var(--school-gold);
	margin-right: 0.38rem;
}
.nav-ann-icon--event {
	color: #FDE68A;
	margin-right: 0.38rem;
}
/* ==========================================================================
5. 電影感全幅圓角 Hero Banner 輪播舞台 (Signature Hero Carousel)
========================================================================== */
/* =========================================================================
   3. 主視覺區塊 (資訊性全圖原比例 + 正常光度 + 同圖模糊延伸底圖 + 內嵌白細圓角框)
   ========================================================================= */
.hero-stage-wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
}

.hero-banner {
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    background: linear-gradient(135deg, #253015 0%, var(--school-green, #4D602B) 100%);
    color: #ffffff;
    padding: 5.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 12px 28px -10px rgba(11, 23, 42, 0.22);
    overflow: hidden;
    border-radius: 0;
}

/* 相片內嵌白色幼細圓角框線 */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 12px;
    pointer-events: none;
    z-index: 5;
}

@media (min-width: 768px) {
    .hero-banner::before {
        inset: 14px;
        border-radius: 16px;
    }
}

@media (max-width: 640px) {
    .hero-banner::before {
        inset: 6px;
        border-radius: 8px;
    }
}

/* 輪播專用容器 */
.hero-banner.hero-carousel {
    padding: 0 !important;
    background: #2f3b1e;
}

.hero-slides-track {
    position: relative;
    width: 100%;
    display: grid;
    align-items: stretch;
}

/* 所有幻燈片疊加在同一網格單元，依原圖比例自適應並垂直置中 */
.hero-slide {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    overflow: hidden;
    background: #2f3b1e;
}

/* 同圖高斯模糊延伸底層（填滿不同比例圖片上下或四周空隙，避免出現黑底） */
.hero-slide-ambient {
    position: absolute;
    inset: -28px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(24px) saturate(1.12);
    transform: scale(1.12);
    opacity: 0.92;
    z-index: 0;
    pointer-events: none;
}

/* 若個別橫幅未設定圖片（純文字公告橫幅）的最小高度備援 */
.hero-slide:not(.has-bg) {
    min-height: 340px;
    align-items: flex-end;
}

.hero-slide-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: auto;
    z-index: 4;
}

/* 當前顯示的幻燈片 */
.hero-slide.is-initial,
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 3;
}

/* 正在淡出的上一張幻燈片（留作交疊過渡） */
.hero-slide.is-leaving {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    z-index: 2;
}

/* 滿版全圖：寬度 100%、高度 auto 按原比例完整呈現（收窄亦不裁切） */
.hero-slide-bg {
    position: relative;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
    z-index: 1;
    filter: none !important;
    opacity: 1 !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    will-change: transform;
}

/* 柔和 Ken Burns 縮放（幅度控制在 3.5% 內，確保資訊性海報邊緣文字不被裁走） */
@keyframes heroKenBurnsIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.035);
    }
}

@keyframes heroKenBurnsOut {
    0% {
        transform: scale(1.035);
    }
    100% {
        transform: scale(1);
    }
}

.hero-slide.zoom-in-mode .hero-slide-bg {
    transform: scale(1);
}

.hero-slide.zoom-in-mode.is-initial .hero-slide-bg,
.hero-slide.zoom-in-mode.is-active .hero-slide-bg {
    animation: heroKenBurnsIn 8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-slide.zoom-in-mode.is-leaving .hero-slide-bg {
    transform: scale(1.035);
    animation: none;
}

.hero-slide.zoom-out-mode .hero-slide-bg {
    transform: scale(1.035);
}

.hero-slide.zoom-out-mode.is-initial .hero-slide-bg,
.hero-slide.zoom-out-mode.is-active .hero-slide-bg {
    animation: heroKenBurnsOut 8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-slide.zoom-out-mode.is-leaving .hero-slide-bg {
    transform: scale(1);
    animation: none;
}

@keyframes heroSingleBreath {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

.hero-carousel[data-slide-count="1"] .hero-slide.is-initial .hero-slide-bg,
.hero-carousel[data-slide-count="1"] .hero-slide.is-active .hero-slide-bg {
    animation: heroSingleBreath 16s ease-in-out infinite;
}

/* 預設保持圖片 100% 正常光度（不加任何暗色遮罩） */
.hero-slide::after {
    content: none;
}

/* 僅當橫幅內有額外輸入編輯器文字時，才加左下保護漸層確保白字可讀 */
.hero-slide.has-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(8, 15, 30, 0.72) 0%, rgba(11, 23, 42, 0.22) 50%, transparent 100%),
        linear-gradient(to right, rgba(8, 15, 30, 0.5) 0%, transparent 65%);
    z-index: 2;
    pointer-events: none;
}

/* 文字覆蓋層容器（疊加於圖片左下） */
.hero-slide.has-bg .hero-slide-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
}

.hero-slide-inner {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.25rem 1.85rem 3.25rem;
    text-align: left;
}

@media (min-width: 768px) {
    .hero-slide-inner {
        padding: 3rem 2.85rem 3.5rem;
    }
}

.hero-banner .hero-content {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 4;
    color: #ffffff;
}

.hero-slide .hero-content {
    margin: 0;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.95s ease 0.22s, transform 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.22s;
}

.hero-slide.is-initial .hero-content,
.hero-slide.is-active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--school-gold, #DAA520);
    margin-bottom: 0.65rem;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-slide .hero-content h1,
.hero-slide .hero-content h2,
.hero-slide .hero-content h3,
.hero-slide .hero-content h4 {
    color: #ffffff;
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0.85rem;
    line-height: 1.25;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.hero-slide .hero-content h1:not([class*="-font-size"]):not([style*="font-size"]),
.hero-slide .hero-content h2:not([class*="-font-size"]):not([style*="font-size"]) {
    font-size: clamp(1.85rem, 4.4vw, 3.15rem);
    font-weight: 900;
}

.hero-slide .hero-content p {
    color: rgba(255, 255, 255, 0.96);
    max-width: 680px;
    line-height: 1.75;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-slide .hero-content p:not([class*="-font-size"]):not([style*="font-size"]) {
    font-size: clamp(0.98rem, 1.9vw, 1.15rem);
}

.hero-slide .hero-content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.85rem;
    margin-top: 1.45rem;
}

.hero-slide .hero-content .wp-block-button__link {
    background-color: var(--school-gold, #DAA520);
    color: #1e293b;
    border-radius: 50px;
    padding: 0.78rem 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.45);
    transition: all 0.25s ease;
    display: inline-block;
}

.hero-slide .hero-content .wp-block-button__link:hover {
    background-color: #e5a832;
    color: #1e293b;
    transform: translateY(-2px);
}

/* 右下角精巧迷你懸浮導航列 */
.hero-controls {
    position: absolute;
    right: 20px;
    bottom: 18px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.26rem 0.6rem;
    border-radius: 999px;
    background: rgba(11, 23, 42, 0.64);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 0.72rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .hero-controls {
        right: 28px;
        bottom: 24px;
    }
}

@media (max-width: 640px) {
    .hero-controls {
        right: 12px;
        bottom: 11px;
        padding: 0.2rem 0.48rem;
        font-size: 0.64rem;
        gap: 0.35rem;
    }

    .hero-progress-track {
        width: 20px;
    }

    .hero-ctrl-btn {
        width: 18px;
        height: 18px;
        font-size: 0.56rem;
    }
}

.hero-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.hero-current-num {
    color: var(--school-gold, #DAA520);
}

.hero-counter-sep,
.hero-total-num {
    opacity: 0.78;
}

.hero-progress-track {
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.26);
    border-radius: 2px;
    overflow: hidden;
}

.hero-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--school-gold, #DAA520);
    transform-origin: left center;
    transform: scaleX(0);
}

.hero-control-btns {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
}

.hero-ctrl-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.62rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--school-gold, #DAA520);
}

/* 預設靜態 Hero 樣式 */
.hero-badge {
    display: inline-block;
    background: rgba(218, 165, 32, 0.22);
    border: 1.5px solid var(--school-gold, #DAA520);
    color: var(--school-gold, #DAA520);
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.1rem, 5.5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.15rem;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.1vw, 1.25rem);
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 2.25rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.85rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--school-gold, #DAA520);
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.35);
}

.btn-primary:hover {
    background-color: #e5a832;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--school-green, #4D602B);
    border-color: #ffffff;
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.is-active .hero-slide-bg,
    .hero-slide.is-initial .hero-slide-bg {
        transform: none !important;
        animation: none !important;
    }
}
/* ==========================================================================
6. 首頁與內頁通用區塊架構 (Sections & Headers)
========================================================================== */
.fywss-section {
padding: 3.5rem 0;
border-top: 1px solid var(--border-color);
}
@media (min-width: 768px) {
.fywss-section {
padding: 4.25rem 0;
}
}
.fywss-section--subtle {
background-color: var(--bg-subtle);
}
.fywss-section--white {
background-color: #FFFFFF;
}
.section-heading {
text-align: center;
margin-bottom: 2.75rem;
}
.section-heading__title {
font-family: var(--font-serif);
font-size: 1.7rem;
font-weight: 600;
color: var(--text-heading);
letter-spacing: 0.08em;
margin: 0;
}
@media (min-width: 640px) {
.section-heading__title {
font-size: 2.1rem;
}
}
.section-heading__title a:hover {
color: var(--school-green);
transition: color 0.2s ease;
}
.section-heading__bar {
width: 96px;
height: 8px;
border-radius: var(--radius-pill);
margin: 0.85rem auto 0;
background-color: var(--school-green);
}
.section-heading__bar--blue {
background-color: var(--school-blue);
}
.section-heading__bar--purple {
background-color: var(--school-purple);
}
.section-heading__bar--red {
background-color: var(--school-red);
}
/* ==========================================================================
7. 首頁：校園資訊（相簿 8 欄 + 最新資訊 4 欄 + 傳媒刊物 3 欄）
========================================================================== */
.campus-info-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
align-items: stretch;
}
@media (min-width: 1024px) {
.campus-info-grid {
grid-template-columns: repeat(12, minmax(0, 1fr));
}
}
.campus-info-grid__albums {
display: flex;
flex-direction: column;
}
@media (min-width: 1024px) {
.campus-info-grid__albums {
grid-column: span 8;
}
}
.campus-info-grid__news {
display: flex;
flex-direction: column;
}
@media (min-width: 1024px) {
.campus-info-grid__news {
grid-column: span 4;
}
}
.sub-header-bar {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.25rem;
}
.sub-header-bar__title {
font-family: var(--font-sans);
font-size: 1.25rem;
font-weight: 700;
color: var(--text-main);
border-left: 4px solid var(--school-blue);
padding-left: 0.75rem;
margin: 0;
}
.sub-header-bar__title a:hover {
color: var(--school-blue);
}
.sub-header-bar__more {
font-size: 0.78rem;
font-weight: 700;
color: var(--school-green);
display: inline-flex;
align-items: center;
gap: 0.3rem;
}
.sub-header-bar__more:hover {
color: var(--school-green-dark);
}
/* 相簿 2x2 網格 */
.album-grid {
display: grid;
grid-template-columns: 1fr;
gap: 1.35rem;
flex: 1;
}
@media (min-width: 640px) {
.album-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
/* 通用圖文卡片 */
.media-card {
display: flex;
flex-direction: column;
background-color: var(--bg-card);
border-radius: var(--radius-lg);
overflow: hidden;
border: 1px solid var(--border-color);
box-shadow: var(--shadow-sm);
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.media-card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-lg);
border-color: var(--school-olive);
}
.media-card--subtle {
background-color: var(--bg-subtle);
}
.media-card__thumb {
position: relative;
aspect-ratio: 16 / 9;
overflow: hidden;
background-color: #F1F5F9;
}
.media-card__thumb img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.5s ease;
}
.media-card:hover .media-card__thumb img {
transform: scale(1.05);
}
.media-card__fallback {
width: 100%;
height: 100%;
background: linear-gradient(135deg, var(--school-green) 0%, var(--school-green-deep) 100%);
color: #FFFFFF;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1rem;
text-align: center;
}
.media-card__fallback i {
font-size: 1.85rem;
color: var(--school-gold);
margin-bottom: 0.45rem;
}
.media-card__fallback span {
font-size: 0.7rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #E2E8F0;
}
.media-card__date-pill {
position: absolute;
top: 0.6rem;
left: 0.6rem;
background: rgba(15, 23, 42, 0.82);
backdrop-filter: blur(4px);
color: #FFFFFF;
font-size: 0.75rem;
padding: 0.2rem 0.6rem;
border-radius: 6px;
}
.media-card__date-pill--bottom {
top: auto;
bottom: 0.6rem;
}
.media-card__tag-pill {
position: absolute;
top: 0.6rem;
right: 0.6rem;
font-size: 0.75rem;
font-weight: 700;
color: #FFFFFF;
padding: 0.2rem 0.65rem;
border-radius: 6px;
box-shadow: var(--shadow-xs);
}
.media-card__tag-pill--blue {
background-color: var(--school-blue);
}
.media-card__tag-pill--amber {
background-color: var(--school-amber);
}
.media-card__body {
padding: 1.15rem 1.25rem 1.35rem;
display: flex;
flex-direction: column;
gap: 0.45rem;
flex: 1;
}
.media-card__meta-date {
font-size: 0.75rem;
color: var(--text-light);
}
.media-card__title {
font-family: var(--font-sans);
font-size: 1.08rem;
font-weight: 700;
color: var(--text-main);
line-height: 1.4;
margin: 0;
transition: color 0.2s ease;
}
.media-card:hover .media-card__title {
color: var(--school-green);
}
.media-card__excerpt {
font-size: 0.85rem;
color: var(--text-muted);
line-height: 1.6;
margin: 0;
}
/* 右側最新資訊面板 */
.news-feed-panel {
background-color: var(--bg-card);
border-radius: var(--radius-lg);
padding: 1.25rem;
border: 1px solid var(--border-color);
box-shadow: var(--shadow-sm);
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.news-feed-panel__header {
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 0.75rem;
margin-bottom: 0.85rem;
border-bottom: 1px solid var(--border-color);
}
.news-feed-list {
display: flex;
flex-direction: column;
gap: 0.65rem;
flex: 1;
justify-content: space-between;
}
.news-feed-item {
display: flex;
align-items: center;
gap: 0.85rem;
padding: 0.4rem;
border-radius: var(--radius-md);
transition: background-color 0.2s ease;
}
.news-feed-item:hover {
background-color: var(--bg-subtle);
}
.news-date-box {
width: 54px;
height: 54px;
flex-shrink: 0;
background-color: var(--school-green);
color: #FFFFFF;
border-radius: 8px;
border-bottom: 2px solid var(--school-gold);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-shadow: var(--shadow-xs);
transition: background-color 0.2s ease;
}
.news-feed-item:hover .news-date-box {
background-color: var(--school-green-dark);
}
.news-date-box__month {
font-size: 0.72rem;
font-weight: 700;
color: var(--school-gold);
line-height: 1;
}
.news-date-box__day {
font-size: 1.25rem;
font-weight: 700;
line-height: 1.1;
margin-top: 2px;
}
.news-feed-item__content {
flex: 1;
min-width: 0;
}
.news-feed-item__badges {
display: flex;
align-items: center;
gap: 0.45rem;
margin-bottom: 0.2rem;
}
.badge-sticky {
display: inline-flex;
align-items: center;
gap: 0.25rem;
background-color: #FEF3C7;
color: #92400E;
font-size: 0.68rem;
font-weight: 700;
padding: 0.1rem 0.45rem;
border-radius: 4px;
}
.badge-year {
font-size: 0.75rem;
color: var(--text-light);
}
.badge-new {
display: inline-flex;
align-items: center;
background-color: var(--school-amber);
color: #FFFFFF;
font-size: 0.65rem;
font-weight: 900;
padding: 0.1rem 0.45rem;
border-radius: var(--radius-pill);
letter-spacing: 0.05em;
}
.news-feed-item__title {
font-family: var(--font-sans);
font-size: 0.95rem;
font-weight: 500;
color: var(--text-main);
margin: 0;
line-height: 1.4;
transition: color 0.2s ease;
}
.news-feed-item:hover .news-feed-item__title {
color: var(--school-green);
}
/* 3 欄卡片通用網格（傳媒刊物 / 學生成就 / 教師專業發展） */
.cards-grid-3 {
display: grid;
grid-template-columns: 1fr;
gap: 1.5rem;
}
@media (min-width: 640px) {
.cards-grid-3 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (min-width: 1024px) {
.cards-grid-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
.cards-grid-3--spaced-top {
margin-top: 2.5rem;
}
/* ==========================================================================
8. 校園電視台區塊 (fywssTV Dark Showcase)
========================================================================== */
.tv-section {
position: relative;
padding: 4.5rem 0;
background-color: #020617;
color: #FFFFFF;
overflow: hidden;
border-top: 1px solid #1E293B;
}
.tv-section__bg {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
opacity: 0.52;
z-index: 0;
}
.tv-section__overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(2, 6, 23, 0.84) 0%, rgba(2, 6, 23, 0.65) 50%, rgba(2, 6, 23, 0.88) 100%);
z-index: 1;
}
.tv-section__inner {
position: relative;
z-index: 2;
}
.tv-eyebrow {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: rgba(220, 38, 38, 0.2);
border: 1px solid rgba(239, 68, 68, 0.45);
color: #FCA5A5;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
padding: 0.3rem 0.9rem;
border-radius: var(--radius-pill);
margin-bottom: 0.85rem;
}
.tv-eyebrow__dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #EF4444;
}
.tv-section .section-heading__title {
color: #FFFFFF;
}
.tv-section .section-heading__title a:hover {
color: var(--school-gold);
}
.tv-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
align-items: center;
}
@media (min-width: 1024px) {
.tv-grid {
grid-template-columns: repeat(12, minmax(0, 1fr));
}
.tv-grid__player {
grid-column: span 7;
}
.tv-grid__sidebar {
grid-column: span 5;
}
}
.tv-player-frame {
position: relative;
aspect-ratio: 16 / 9;
border-radius: var(--radius-xl);
overflow: hidden;
background-color: #000000;
border: 2px solid rgba(255, 255, 255, 0.16);
box-shadow: var(--shadow-xl);
}
.tv-player-frame iframe {
width: 100%;
height: 100%;
border: 0;
display: block;
}
.tv-glass-card {
background: rgba(2, 6, 23, 0.76);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: var(--radius-xl);
padding: 1.75rem;
box-shadow: var(--shadow-xl);
}
@media (min-width: 640px) {
.tv-glass-card {
padding: 2rem;
}
}
.tv-glass-card__head {
padding-bottom: 1.15rem;
margin-bottom: 1.25rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.tv-glass-card__title {
display: flex;
align-items: center;
gap: 0.65rem;
color: #FFFFFF;
font-size: 1.5rem;
margin: 0 0 0.5rem;
}
.tv-glass-card__accent {
width: 6px;
height: 26px;
border-radius: var(--radius-pill);
background-color: var(--school-red);
flex-shrink: 0;
}
.tv-glass-card__desc {
color: #CBD5E1;
font-size: 0.92rem;
margin: 0;
line-height: 1.65;
}
.tv-channel-list {
display: flex;
flex-direction: column;
gap: 0.85rem;
}
.tv-channel-btn {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.85rem 1rem;
border-radius: var(--radius-lg);
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.12);
transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tv-channel-btn:hover {
background: rgba(255, 255, 255, 0.15);
transform: translateX(3px);
}
.tv-channel-btn--yt:hover { border-color: rgba(239, 68, 68, 0.7); }
.tv-channel-btn--fb:hover { border-color: rgba(59, 130, 246, 0.7); }
.tv-channel-btn--ig:hover { border-color: rgba(236, 72, 153, 0.7); }
.tv-channel-btn__left {
display: flex;
align-items: center;
gap: 0.85rem;
min-width: 0;
}
.tv-channel-btn__icon {
width: 44px;
height: 44px;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
color: #FFFFFF;
font-size: 1.15rem;
flex-shrink: 0;
}
.tv-channel-btn__icon--yt { background-color: #DC2626; }
.tv-channel-btn__icon--fb { background-color: #2563EB; }
.tv-channel-btn__icon--ig { background: linear-gradient(45deg, #F59E0B, #F43F5E, #9333EA); }
.tv-channel-btn__name {
font-weight: 700;
font-size: 0.98rem;
color: #FFFFFF;
}
.tv-channel-btn__sub {
font-size: 0.78rem;
color: #CBD5E1;
}
.tv-channel-btn__arrow {
color: #94A3B8;
font-size: 0.9rem;
}
/* ==========================================================================
9. 分類與搜尋頁頂部視覺橫幅 (Archive & Search Hero Banner)
========================================================================== */
.page-hero-banner {
position: relative;
min-height: 290px;
background: linear-gradient(135deg, var(--school-green-deep) 0%, var(--school-green) 55%, #0F172A 100%);
color: #FFFFFF;
padding: 3.5rem 0;
overflow: hidden;
display: flex;
align-items: center;
border-bottom: 4px solid var(--school-gold);
}
@media (min-width: 640px) {
.page-hero-banner {
padding: 4.5rem 0;
}
}
.page-hero-banner__bg {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
opacity: 1;
z-index: 0;
}
.page-hero-banner__overlay {
position: absolute;
inset: 0;
background: linear-gradient(
    90deg,
    rgba(18, 26, 10, 0.80) 0%,
    rgba(24, 34, 13, 0.50) 38%,
    rgba(24, 34, 13, 0.10) 62%,
    transparent 82%
);
z-index: 1;
}
.page-hero-banner__inner {
position: relative;
z-index: 2;
width: 100%;
}
.hero-breadcrumb {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.5rem;
font-size: 0.82rem;
color: #CBD5E1;
margin-bottom: 1rem;
}
.hero-breadcrumb a:hover {
color: var(--school-gold);
}
.hero-breadcrumb__current {
color: #FFFFFF;
font-weight: 600;
}
.page-hero-banner__badge {
display: inline-flex;
align-items: center;
gap: 0.45rem;
background-color: var(--school-gold);
color: var(--text-heading);
font-size: 0.78rem;
font-weight: 800;
padding: 0.28rem 0.9rem;
border-radius: var(--radius-pill);
text-transform: uppercase;
letter-spacing: 0.08em;
box-shadow: var(--shadow-sm);
margin-bottom: 0.75rem;
}
.page-hero-banner__title {
font-family: var(--font-serif);
font-size: 2rem;
font-weight: 900;
color: #FFFFFF;
line-height: 1.25;
margin: 0 0 0.65rem;
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
@media (min-width: 640px) {
.page-hero-banner__title {
font-size: 2.75rem;
}
}
.page-hero-banner__desc {
max-width: 680px;
font-size: 1rem;
color: #E2E8F0;
font-weight: 300;
line-height: 1.65;
margin: 0;
}
/* ==========================================================================
10. 內頁（單篇文章、靜態頁面、麵包屑、相關文章、搜尋、404）
========================================================================== */
.inner-main {
flex: 1;
padding: 2.5rem 0 4rem;
}
@media (min-width: 640px) {
.inner-main {
padding: 3.25rem 0 4.5rem;
}
}
.inner-breadcrumb {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.5rem;
font-size: 0.84rem;
color: var(--text-muted);
margin-bottom: 1.5rem;
}
.inner-breadcrumb a:hover {
color: var(--school-green);
}
.inner-breadcrumb__current {
color: var(--text-main);
font-weight: 600;
}
/* 單篇文章 9:3 雙欄佈局 */
.single-layout-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
align-items: start;
}
@media (min-width: 1024px) {
.single-layout-grid {
grid-template-columns: repeat(12, minmax(0, 1fr));
}
.single-layout-grid__article {
grid-column: span 9;
}
.single-layout-grid__sidebar {
grid-column: span 3;
}
}
.content-surface-card {
background-color: var(--bg-card);
border-radius: var(--radius-xl);
padding: 1.5rem;
border: 1px solid var(--border-color);
box-shadow: var(--shadow-md);
}
@media (min-width: 640px) {
.content-surface-card {
padding: 2.5rem 2.75rem;
}
}
.single-cat-pill {
display: inline-block;
background-color: var(--school-soft);
color: var(--school-green);
border: 1px solid var(--school-soft-border);
font-size: 0.78rem;
font-weight: 700;
padding: 0.3rem 0.85rem;
border-radius: var(--radius-pill);
margin-bottom: 1rem;
}
.single-article-title {
font-family: var(--font-serif);
font-size: 1.65rem;
font-weight: 900;
color: var(--text-heading);
line-height: 1.35;
margin: 0 0 1rem;
}
@media (min-width: 640px) {
.single-article-title {
font-size: 2.2rem;
}
}
.single-article-meta {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.85rem;
color: var(--text-light);
padding-bottom: 1.25rem;
margin-bottom: 2rem;
border-bottom: 1px solid var(--border-color);
}
/* 側邊相關文章卡片 */
.sidebar-related-card {
background-color: var(--bg-card);
border-radius: var(--radius-xl);
padding: 1.5rem;
border: 1px solid var(--border-color);
box-shadow: var(--shadow-md);
position: sticky;
top: 84px;
}
.sidebar-related-card__head {
padding-bottom: 0.75rem;
margin-bottom: 1.25rem;
border-bottom: 1px solid var(--border-color);
}
.sidebar-related-card__cat {
display: block;
font-size: 0.75rem;
color: var(--text-muted);
font-weight: 600;
}
.sidebar-related-card__title {
font-size: 1.2rem;
font-weight: 900;
margin: 0.15rem 0 0;
}
.related-post-list {
display: flex;
flex-direction: column;
gap: 1.15rem;
}
.related-post-item {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 0.75rem;
padding-bottom: 1.1rem;
border-bottom: 1px solid #F1F5F9;
}
.related-post-item:last-child {
border-bottom: none;
padding-bottom: 0;
}
.related-post-item__date {
font-size: 0.75rem;
color: var(--text-light);
margin-bottom: 0.25rem;
}
.related-post-item__title {
font-family: var(--font-sans);
font-size: 0.9rem;
font-weight: 700;
color: var(--text-main);
line-height: 1.4;
margin: 0;
}
.related-post-item__title a:hover {
color: var(--school-green);
}
.related-post-item__thumb {
width: 64px;
height: 64px;
border-radius: var(--radius-md);
overflow: hidden;
flex-shrink: 0;
background-color: #F1F5F9;
}
.related-post-item__thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* 分頁導覽列 (Pagination) */
.fywss-pagination {
margin-top: 3rem;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 0.5rem;
}
.fywss-pagination .page-numbers {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 40px;
height: 40px;
padding: 0 0.85rem;
border-radius: var(--radius-md);
background-color: #FFFFFF;
border: 1px solid var(--border-strong);
color: var(--text-body);
font-size: 0.88rem;
font-weight: 700;
transition: all 0.2s ease;
}
.fywss-pagination .page-numbers:hover {
background-color: var(--school-soft);
border-color: var(--school-green);
color: var(--school-green);
}
.fywss-pagination .page-numbers.current {
background-color: var(--school-green);
border-color: var(--school-green);
border-bottom: 3px solid var(--school-gold);
color: #FFFFFF;
box-shadow: var(--shadow-sm);
}
.fywss-pagination .page-numbers.dots {
border: none;
background: transparent;
color: var(--text-light);
}
/* 搜尋頁專屬樣式 */
.search-subnav {
position: sticky;
top: var(--site-sticky-offset, 0px);
z-index: 30;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(8px);
border-bottom: 1px solid var(--border-color);
box-shadow: var(--shadow-xs);
}
.search-subnav__inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding-top: 0.65rem;
padding-bottom: 0.65rem;
}
.search-subnav__status {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.85rem;
font-weight: 700;
color: var(--text-body);
}
.search-subnav__dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: var(--school-green);
}
.search-subnav__actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.btn-pill {
display: inline-flex;
align-items: center;
gap: 0.4rem;
padding: 0.45rem 0.95rem;
border-radius: var(--radius-md);
font-size: 0.84rem;
font-weight: 700;
border: 1px solid transparent;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-pill--neutral {
background-color: #F1F5F9;
color: var(--text-body);
}
.btn-pill--neutral:hover {
background-color: var(--school-soft);
color: var(--school-green);
}
.btn-pill--soft {
background-color: var(--school-soft);
color: var(--school-green);
border-color: var(--school-soft-border);
}
.btn-pill--soft:hover {
background-color: var(--school-green);
color: #FFFFFF;
}
.btn-pill--primary {
background-color: var(--school-green);
color: #FFFFFF;
}
.btn-pill--primary:hover {
background-color: var(--school-green-deep);
}
.search-box-card {
background-color: #FFFFFF;
border-radius: var(--radius-xl);
padding: 1.5rem;
border: 1px solid var(--school-soft-border);
box-shadow: var(--shadow-sm);
margin-bottom: 2rem;
}
@media (min-width: 640px) {
.search-box-card {
padding: 2rem;
}
}
.fywss-search-form {
max-width: 680px;
margin: 0 auto;
}
.fywss-search-wrapper {
display: flex;
align-items: center;
background-color: #FFFFFF;
border: 2px solid var(--school-olive);
border-radius: var(--radius-lg);
padding: 0.35rem;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fywss-search-wrapper:focus-within {
border-color: var(--school-green);
box-shadow: 0 0 0 4px rgba(77, 96, 43, 0.14);
}
.fywss-search-wrapper__icon {
padding: 0 0.75rem;
color: var(--school-green);
}
.fywss-search-input {
flex: 1;
width: 100%;
border: none;
background: transparent;
font-size: 0.98rem;
color: var(--text-heading);
padding: 0.5rem 0.25rem;
outline: none;
}
.fywss-search-btn {
display: inline-flex;
align-items: center;
gap: 0.45rem;
padding: 0.65rem 1.35rem;
border-radius: var(--radius-md);
border: none;
background-color: var(--school-green);
color: #FFFFFF;
font-weight: 700;
font-size: 0.92rem;
cursor: pointer;
transition: background-color 0.2s ease;
}
.fywss-search-btn:hover {
background-color: var(--school-green-deep);
}
.search-results-stack {
display: flex;
flex-direction: column;
gap: 1rem;
}
.search-result-card {
background-color: #FFFFFF;
border-radius: var(--radius-lg);
padding: 1.35rem 1.5rem;
border: 1px solid var(--border-color);
box-shadow: var(--shadow-xs);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-result-card:hover {
border-color: var(--school-green);
box-shadow: var(--shadow-md);
}
.search-result-card__link {
display: flex;
flex-direction: column;
gap: 1.15rem;
}
@media (min-width: 640px) {
.search-result-card__link {
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
}
}
.search-result-card__body {
flex: 1;
min-width: 0;
}
.search-result-card__meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.65rem;
font-size: 0.78rem;
margin-bottom: 0.5rem;
}
.search-result-card__cat {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.2rem 0.65rem;
border-radius: 6px;
background-color: var(--school-soft);
color: var(--school-green);
border: 1px solid var(--school-soft-border);
font-weight: 700;
}
.search-result-card__date {
color: var(--text-light);
}
.search-result-card__title {
font-size: 1.18rem;
font-weight: 800;
color: var(--text-heading);
margin: 0 0 0.45rem;
line-height: 1.4;
}
.search-result-card:hover .search-result-card__title {
color: var(--school-green);
}
.search-result-card__excerpt {
font-size: 0.9rem;
color: var(--text-body);
margin: 0 0 0.65rem;
line-height: 1.6;
}
.search-result-card__cta {
display: inline-flex;
align-items: center;
gap: 0.35rem;
font-size: 0.8rem;
font-weight: 700;
color: var(--school-green);
}
.search-result-card__thumb {
width: 100%;
height: 130px;
border-radius: var(--radius-md);
overflow: hidden;
border: 1px solid var(--border-color);
flex-shrink: 0;
}
@media (min-width: 640px) {
.search-result-card__thumb {
width: 160px;
height: 112px;
}
}
.search-result-card__thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.search-highlight {
background-color: rgba(218, 165, 32, 0.28);
color: var(--school-green-deep);
font-weight: 700;
padding: 0 3px;
border-radius: 3px;
}
/* 空狀態卡片 */
.empty-state-card {
background-color: #FFFFFF;
border-radius: var(--radius-xl);
padding: 3rem 1.5rem;
text-align: center;
border: 1px solid var(--border-color);
box-shadow: var(--shadow-sm);
max-width: 560px;
margin: 1rem auto;
}
.empty-state-card__icon {
width: 64px;
height: 64px;
border-radius: var(--radius-lg);
background-color: var(--school-soft);
color: var(--school-green);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.6rem;
margin: 0 auto 1rem;
}
/* 404 頁面 */
.error-404-hero {
position: relative;
width: 100%;
min-height: 78vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: #FFFFFF;
background-size: cover;
background-position: center;
overflow: hidden;
}
.error-404-hero::before {
content: "";
position: absolute;
inset: 0;
background: rgba(15, 23, 42, 0.58);
z-index: 0;
}
.error-404-hero__content {
position: relative;
z-index: 1;
padding: 2rem 1.5rem;
max-width: 640px;
}
.error-404-hero__code {
font-size: 3.5rem;
font-weight: 900;
color: #FFFFFF;
margin: 0 0 0.75rem;
letter-spacing: 0.04em;
}
.error-404-hero__en {
font-size: 1.45rem;
font-weight: 300;
color: #E2E8F0;
margin: 0 0 0.4rem;
}
.error-404-hero__zh {
font-size: 1.35rem;
font-weight: 400;
color: #F8FAFC;
margin: 0 0 2rem;
}
.error-404-hero__btn {
display: inline-flex;
align-items: center;
gap: 0.55rem;
padding: 0.85rem 2rem;
border-radius: var(--radius-md);
background: linear-gradient(135deg, #AE2D59 0%, #CB376A 100%);
color: #FFFFFF;
font-weight: 700;
font-size: 1rem;
box-shadow: var(--shadow-lg);
transition: transform 0.2s ease, opacity 0.2s ease;
}
.error-404-hero__btn:hover {
transform: translateY(-2px);
opacity: 0.94;
}
/* ==========================================================================
11. 頁尾 (Olive Green Footer #9CB087)
========================================================================== */
.footer-top-accent {
width: 100%;
height: 6px;
background-color: var(--school-amber);
}
.site-footer {
background-color: var(--school-olive);
color: var(--text-main);
padding: 2.75rem 0 2rem;
box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.06);
}
.footer-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
margin-bottom: 2.25rem;
}
@media (min-width: 768px) {
.footer-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (min-width: 1024px) {
.footer-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
.footer-brand {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.85rem;
}
.footer-brand__logo {
width: 42px;
height: 42px;
object-fit: contain;
flex-shrink: 0;
}
.footer-brand__zh {
font-weight: 700;
font-size: 1rem;
color: var(--text-heading);
line-height: 1.25;
}
.footer-brand__en {
font-size: 0.75rem;
color: var(--text-main);
font-weight: 500;
}
.footer-mission-link {
display: inline-block;
font-size: 0.8rem;
font-weight: 700;
color: var(--text-heading);
text-decoration: underline;
margin-bottom: 0.4rem;
}
.footer-mission-text {
font-size: 0.78rem;
line-height: 1.65;
color: var(--text-main);
margin: 0 0 0.85rem;
}
.footer-social-row {
display: flex;
align-items: center;
gap: 0.65rem;
}
.footer-social-btn {
width: 34px;
height: 34px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
color: #FFFFFF;
font-size: 0.9rem;
box-shadow: var(--shadow-xs);
transition: transform 0.2s ease, background-color 0.2s ease;
}
.footer-social-btn:hover {
transform: translateY(-2px);
}
.footer-social-btn--fb { background-color: #1877F2; }
.footer-social-btn--ig { background: linear-gradient(45deg, #F59E0B, #F43F5E, #9333EA); }
.footer-social-btn--yt { background-color: #FF0000; }
.footer-col__heading {
border-bottom: 1px solid rgba(15, 23, 42, 0.2);
padding-bottom: 0.5rem;
margin: 0 0 1rem;
}
.footer-col__pill {
display: inline-block;
background-color: var(--school-purple);
color: #FFFFFF;
font-family: var(--font-sans);
font-size: 0.78rem;
font-weight: 700;
padding: 0.2rem 0.8rem;
border-radius: var(--radius-pill);
box-shadow: var(--shadow-xs);
}
.footer-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.55rem;
font-size: 0.85rem;
font-weight: 500;
}
.footer-list a:hover {
color: var(--school-purple-dark);
text-decoration: underline;
}
.footer-contact-item {
display: flex;
align-items: flex-start;
gap: 0.5rem;
}
.footer-contact-item i {
color: var(--school-green);
margin-top: 0.2rem;
flex-shrink: 0;
}
.footer-transport-text {
font-size: 0.78rem;
line-height: 1.6;
margin: 0 0 0.6rem;
}
.footer-transport-highlight {
display: block;
font-weight: 700;
color: var(--school-blue-dark);
margin-bottom: 0.15rem;
}
.footer-btn-pair {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.5rem;
padding-top: 0.35rem;
}
.footer-action-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.35rem;
padding: 0.5rem 0.6rem;
border-radius: var(--radius-md);
font-size: 0.78rem;
font-weight: 700;
cursor: pointer;
transition: background-color 0.2s ease;
}
.footer-action-btn--light {
background-color: rgba(255, 255, 255, 0.85);
color: var(--school-green);
border: 1px solid rgba(15, 23, 42, 0.12);
}
.footer-action-btn--light:hover {
background-color: #FFFFFF;
}
.footer-action-btn--dark {
background-color: var(--school-green-deep);
color: #FFFFFF;
border: 1px solid transparent;
}
.footer-action-btn--dark:hover {
background-color: var(--school-green);
}
.footer-bottom {
border-top: 1px solid rgba(15, 23, 42, 0.16);
padding-top: 1.35rem;
font-size: 0.78rem;
font-weight: 500;
text-align: center;
}
@media (min-width: 768px) {
.footer-bottom {
text-align: left;
}
}
.footer-bottom a:hover {
color: #FFFFFF;
text-decoration: underline;
}
/* ==========================================================================
12. 彈出視窗系統 (Popup Announcement & Bus Routes Modal)
========================================================================== */
.fywss-modal-backdrop {
position: fixed;
inset: 0;
z-index: 60;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
background: rgba(15, 23, 42, 0.62);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
opacity: 0;
pointer-events: none;
transition: opacity 0.28s ease;
}
.fywss-modal-backdrop.is-open {
opacity: 1;
pointer-events: auto;
}
.fywss-modal-dialog {
width: 100%;
max-width: 720px;
background-color: #FFFFFF;
border-radius: var(--radius-xl);
overflow: hidden;
border: 1px solid var(--border-color);
box-shadow: var(--shadow-xl);
transform: scale(0.95);
transition: transform 0.28s ease;
}
.fywss-modal-dialog--sm {
max-width: 480px;
}
.fywss-modal-backdrop.is-open .fywss-modal-dialog {
transform: scale(1);
}
.fywss-modal__header {
background-color: var(--school-green);
color: #FFFFFF;
padding: 0.95rem 1.35rem;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 2px solid var(--school-gold);
}
.fywss-modal__title-wrap {
display: flex;
align-items: center;
gap: 0.7rem;
}
.fywss-modal__icon {
width: 34px;
height: 34px;
border-radius: 50%;
background-color: var(--school-gold);
color: var(--text-heading);
display: flex;
align-items: center;
justify-content: center;
font-size: 0.95rem;
flex-shrink: 0;
}
.fywss-modal__title {
font-family: var(--font-sans);
font-size: 1.05rem;
font-weight: 700;
color: #FFFFFF;
margin: 0;
}
.fywss-modal__close {
width: 32px;
height: 32px;
border-radius: 50%;
border: none;
background: rgba(255, 255, 255, 0.14);
color: #FFFFFF;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.fywss-modal__close:hover {
background: rgba(255, 255, 255, 0.26);
}
.fywss-modal__body {
padding: 1.5rem;
max-height: 68vh;
overflow-y: auto;
font-size: 0.92rem;
color: var(--text-body);
}
.fywss-modal__footer {
background-color: var(--bg-subtle);
padding: 0.85rem 1.35rem;
border-top: 1px solid var(--border-color);
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.fywss-modal__footer--end {
justify-content: flex-end;
}
.modal-checkbox-label {
display: inline-flex;
align-items: center;
gap: 0.45rem;
font-size: 0.84rem;
color: var(--text-body);
cursor: pointer;
}
/* 公共交通路線彈窗內部卡片 */
.bus-group {
padding: 0.85rem;
border-radius: var(--radius-md);
margin-bottom: 0.85rem;
border: 1px solid var(--border-color);
}
.bus-group--rail {
background-color: #EFF6FF;
border-color: #DBEAFE;
}
.bus-group--core {
background-color: var(--school-soft);
border-color: var(--school-soft-border);
}
.bus-group__heading {
font-family: var(--font-sans);
font-size: 0.9rem;
font-weight: 700;
margin: 0 0 0.6rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid rgba(15, 23, 42, 0.08);
display: flex;
align-items: center;
gap: 0.4rem;
}
.bus-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.bus-item {
display: flex;
align-items: flex-start;
gap: 0.6rem;
font-size: 0.84rem;
}
.route-badge {
display: inline-block;
min-width: 48px;
text-align: center;
padding: 0.15rem 0.4rem;
border-radius: 5px;
font-size: 0.72rem;
font-weight: 800;
color: #FFFFFF;
flex-shrink: 0;
}
.route-badge--rail  { background-color: #1E3A8A; }
.route-badge--gmb   { background-color: #059669; }
.route-badge--kmb   { background-color: #DC2626; }
.route-badge--mtr   { background-color: #2563EB; }
.route-badge--ctb   { background-color: #FACC15; color: #0F172A; border: 1px solid #EAB308; }
.bus-item__note {
display: block;
font-size: 0.76rem;
color: var(--text-muted);
margin-top: 2px;
}
/* ==========================================================================
13. WordPress 7.1.x 區塊編輯器 (Gutenberg) 完美相容與前後台字級統一
========================================================================== */
.entry-content {
font-size: 1.02rem;
line-height: 1.85;
color: var(--text-body);
}
.entry-content > * + * {
margin-top: 1.15rem;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
color: var(--text-heading);
margin-top: 1.85rem;
margin-bottom: 0.75rem;
line-height: 1.35;
}
.entry-content a {
color: var(--school-green);
text-decoration: underline;
text-underline-offset: 3px;
}
.entry-content a:hover {
color: var(--school-green-deep);
}
.entry-content img {
border-radius: var(--radius-md);
}
.entry-content blockquote,
.entry-content .wp-block-quote {
border-left: 4px solid var(--school-gold);
background-color: var(--school-soft);
padding: 1rem 1.35rem;
border-radius: 0 var(--radius-md) var(--radius-md) 0;
margin: 1.5rem 0;
color: var(--school-green-deep);
}
/* WordPress 7.1 相簿區塊 (wp-block-gallery) */
.entry-content .wp-block-gallery.has-nested-images {
display: flex;
flex-wrap: wrap;
gap: var(--wp--style--unstable-gallery-gap, 1rem);
margin: 1.5rem 0;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image {
margin: 0 !important;
display: flex;
flex-direction: column;
position: relative;
}
.entry-content .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image img {
width: 100%;
height: 100% !important;
object-fit: cover;
flex: 1 0 0%;
margin: 0 !important;
}
.entry-content .wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image img {
width: 100%;
height: auto;
margin: 0 !important;
}
.entry-content .wp-block-gallery figure.wp-block-image figcaption {
margin: 0;
padding: 0.5rem 0.75rem;
font-size: 0.85rem;
text-align: center;
line-height: 1.4;
}
/* 多欄、表格、按鈕、對齊與清除浮動 */
.entry-content .wp-block-columns {
gap: 1.5rem;
margin: 1.5rem 0;
}
.entry-content .wp-block-table {
overflow-x: auto;
margin: 1.5rem 0;
}
.entry-content .wp-block-table table {
width: 100%;
border-collapse: collapse;
}
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
border: 1px solid var(--border-strong);
padding: 0.7rem 0.95rem;
text-align: left;
}
.entry-content .wp-block-table thead th {
background-color: var(--school-soft);
color: var(--school-green-deep);
font-weight: 700;
}
.entry-content .wp-block-button__link {
text-decoration: none !important;
border-radius: var(--radius-md);
}
.entry-content .alignwide,
.entry-content .alignfull {
max-width: 100%;
width: 100%;
}
.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignright {
float: right;
margin-left: 1.5rem;
margin-bottom: 1rem;
}
.alignleft {
float: left;
margin-right: 1.5rem;
margin-bottom: 1rem;
}
.entry-content::after {
content: "";
display: table;
clear: both;
}
/* 調色盤類別 */
.has-school-green-color { color: var(--school-green) !important; }
.has-school-green-deep-color { color: var(--school-green-deep) !important; }
.has-school-olive-color { color: var(--school-olive) !important; }
.has-school-gold-color { color: var(--school-gold) !important; }
.has-school-amber-color { color: var(--school-amber) !important; }
.has-dark-text-color { color: var(--text-main) !important; }
.has-light-bg-color { color: var(--bg-subtle) !important; }
.has-white-color { color: #FFFFFF !important; }
.has-school-green-background-color { background-color: var(--school-green) !important; }
.has-school-green-deep-background-color { background-color: var(--school-green-deep) !important; }
.has-school-olive-background-color { background-color: var(--school-olive) !important; }
.has-school-gold-background-color { background-color: var(--school-gold) !important; }
.has-school-amber-background-color { background-color: var(--school-amber) !important; }
.has-dark-text-background-color { background-color: var(--text-main) !important; }
.has-light-bg-background-color { background-color: var(--bg-subtle) !important; }
.has-white-background-color { background-color: #FFFFFF !important; }
/* 前後台統一字級（區塊大中小字 + 傳統編輯器 pt 點數） */
.has-small-font-size,
.entry-content .has-small-font-size { font-size: 0.875rem !important; line-height: 1.6 !important; }
.has-normal-font-size,
.has-regular-font-size,
.entry-content .has-normal-font-size,
.entry-content .has-regular-font-size { font-size: 1rem !important; line-height: 1.75 !important; }
.has-medium-font-size,
.entry-content .has-medium-font-size { font-size: 1.25rem !important; line-height: 1.6 !important; }
.has-large-font-size,
.entry-content .has-large-font-size { font-size: 1.625rem !important; line-height: 1.45 !important; }
.has-x-large-font-size,
.entry-content .has-x-large-font-size { font-size: 2.125rem !important; line-height: 1.35 !important; }
.has-xx-large-font-size,
.has-huge-font-size,
.entry-content .has-xx-large-font-size,
.entry-content .has-huge-font-size { font-size: 2.625rem !important; line-height: 1.25 !important; }
.entry-content [style*="font-size: 8pt"],  .entry-content [style*="font-size:8pt"]  { font-size: 8pt !important; }
.entry-content [style*="font-size: 9pt"],  .entry-content [style*="font-size:9pt"]  { font-size: 9pt !important; }
.entry-content [style*="font-size: 10pt"], .entry-content [style*="font-size:10pt"] { font-size: 10pt !important; }
.entry-content [style*="font-size: 11pt"], .entry-content [style*="font-size:11pt"] { font-size: 11pt !important; }
.entry-content [style*="font-size: 12pt"], .entry-content [style*="font-size:12pt"] { font-size: 12pt !important; }
.entry-content [style*="font-size: 14pt"], .entry-content [style*="font-size:14pt"] { font-size: 14pt !important; }
.entry-content [style*="font-size: 16pt"], .entry-content [style*="font-size:16pt"] { font-size: 16pt !important; }
.entry-content [style*="font-size: 18pt"], .entry-content [style*="font-size:18pt"] { font-size: 18pt !important; line-height: 1.45 !important; }
.entry-content [style*="font-size: 20pt"], .entry-content [style*="font-size:20pt"] { font-size: 20pt !important; line-height: 1.45 !important; }
.entry-content [style*="font-size: 22pt"], .entry-content [style*="font-size:22pt"] { font-size: 22pt !important; line-height: 1.4 !important; }
.entry-content [style*="font-size: 24pt"], .entry-content [style*="font-size:24pt"] { font-size: 24pt !important; line-height: 1.4 !important; }
.entry-content [style*="font-size: 28pt"], .entry-content [style*="font-size:28pt"] { font-size: 28pt !important; line-height: 1.35 !important; }
.entry-content [style*="font-size: 36pt"], .entry-content [style*="font-size:36pt"] { font-size: 36pt !important; line-height: 1.3 !important; }
.entry-content [style*="font-size: 48pt"], .entry-content [style*="font-size:48pt"] { font-size: 48pt !important; line-height: 1.25 !important; }
.entry-content [style*="font-size: 72pt"], .entry-content [style*="font-size:72pt"] { font-size: 72pt !important; line-height: 1.2 !important; }
.entry-content [style*="font-size"] > strong,
.entry-content [style*="font-size"] > em,
.entry-content [style*="font-size"] > a {
font-size: inherit !important;
}
.entry-content font[size="1"] { font-size: 0.75rem !important; }
.entry-content font[size="2"] { font-size: 0.875rem !important; }
.entry-content font[size="3"] { font-size: 1rem !important; }
.entry-content font[size="4"] { font-size: 1.125rem !important; }
.entry-content font[size="5"] { font-size: 1.5rem !important; line-height: 1.45 !important; }
.entry-content font[size="6"] { font-size: 2rem !important; line-height: 1.35 !important; }
.entry-content font[size="7"] { font-size: 2.5rem !important; line-height: 1.25 !important; }
/* =========================================================================
   分類與存檔頁美化 Hero Banner (移植舊生會 archive-hero 設計)
   ========================================================================= */
.singular-header {
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #36461D 0%, #566C30 100%);
    color: #ffffff;
    padding: 3.75rem 1.25rem;
    margin-bottom: 0;
    overflow: hidden;
}

.singular-header-bg {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    display: block;
}

.singular-header.archive-hero {
    padding: 4.25rem 0 4rem;
    border-bottom: 3px solid var(--school-gold, #DAA520);
    background:
        radial-gradient(circle at 88% 18%, rgba(218, 165, 32, 0.22) 0%, transparent 45%),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.025) 0px,
            rgba(255, 255, 255, 0.025) 2px,
            transparent 2px,
            transparent 16px
        ),
        linear-gradient(135deg, #1d2610 0%, var(--school-green, #4D602B) 100%);
}

.singular-header.archive-hero.has-bg-image {
    min-height: 360px;
    display: flex;
    align-items: center;
    padding: 4.75rem 0 4.25rem;
}

.singular-header.archive-hero.has-bg-image .singular-header-bg {
    animation: archiveHeroZoom 10s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes archiveHeroZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.06);
    }
}

.singular-header.archive-hero.has-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(18, 26, 10, 0.78) 0%,
            rgba(24, 34, 13, 0.52) 36%,
            rgba(24, 34, 13, 0.12) 60%,
            transparent 80%
        ),
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.25) 0%,
            transparent 35%
        );
    z-index: 1;
    pointer-events: none;
}

/* 與首頁主視覺呼應的內嵌幼細圓角框線 */
.singular-header.archive-hero::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
}

@media (min-width: 768px) {
    .singular-header.archive-hero::before {
        inset: 14px;
        border-radius: 16px;
    }
}

.archive-hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

@media (min-width: 768px) {
    .archive-hero-inner {
        padding-left: 2.25rem;
        padding-right: 2.25rem;
    }
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1rem;
}

.breadcrumb-nav a {
    color: var(--school-gold, #DAA520);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.archive-hero-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.archive-hero-badge {
    display: inline-block;
    background: rgba(218, 165, 32, 0.2);
    border: 1px solid rgba(218, 165, 32, 0.8);
    color: var(--school-gold, #DAA520);
    padding: 0.28rem 0.95rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.archive-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.singular-title {
    color: #ffffff;
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 0.85rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.archive-hero-desc {
    color: rgba(255, 255, 255, 0.9);
    max-width: 720px;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0.65rem 0 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.archive-hero-desc p {
    margin: 0;
    color: inherit;
}

@media (prefers-reduced-motion: reduce) {
    .singular-header.archive-hero.has-bg-image .singular-header-bg {
        animation: none !important;
        transform: none !important;
    }
}





/* ==========================================================================
   收窄畫面（< 768px）出現校徽及校名時，在漢堡鍵左側顯示原版 FB / IG 圖示
   ========================================================================== */
.nav-scroll-social {
	display: none;
	align-items: center;
	gap: 0.4rem;
	margin-left: auto;
	margin-right: 0.55rem;
	flex-shrink: 0;
}

/* 僅當捲動出現校徽校名（#sticky-logo.is-visible）且有漢堡鍵（< 768px）時才顯示 */
@media (max-width: 767px) {
	#sticky-logo.is-visible ~ .nav-scroll-social,
	.nav-scroll-social.is-visible {
		display: inline-flex;
		animation: navSocialFadeIn 0.25s ease forwards;
	}

	/* 確保窄螢幕下左側校徽校名與右側 FB / IG 及漢堡鍵並排不換行 */
	.site-navbar__inner .sticky-logo {
		min-width: 0;
		flex: 1 1 auto;
		margin-right: 0.5rem;
	}
	.site-navbar__inner .sticky-logo__text {
		min-width: 0;
		overflow: hidden;
	}
	.site-navbar__inner .sticky-logo__zh {
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 0.92rem;
	}
	.site-navbar__inner .sticky-logo__en {
		display: none;
	}
}

/* 讓原版藍／粉紅圓形圖示在深校綠導覽列上保持立體清晰 */
.nav-scroll-social .header-social-btn {
	width: 28px;
	height: 28px;
	font-size: 0.8rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

@keyframes navSocialFadeIn {
	from {
		opacity: 0;
		transform: scale(0.88);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* 搜尋按鈕：平時淺校綠底，滑鼠經過時轉為鼠尾草綠底與橄欖綠邊框 */
.header-search-btn {
	background-color: #F3F7EE;
	color: var(--school-green);
	border: 1px solid #D5DFC8;
}
.header-search-btn:hover {
	background-color: #DCE5D1;
	color: var(--school-green-deep);
	border-color: #8FA376;
	box-shadow: 0 3px 8px rgba(77, 96, 43, 0.14);
}










/* =========================================================================
   最新資訊專屬存檔頁 (學年控制列 + 圖格／列表視角切換)
   ========================================================================= */
.is-hidden {
    display: none !important;
}

/* 頂部控制列 */
.news-archive-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 960px) {
    .news-archive-toolbar {
        flex-direction: row;
        align-items: center;
    }
}

.news-archive-toolbar__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    font-weight: 900;
    color: var(--text-heading, #0f172a);
}

.news-archive-toolbar__title i {
    color: var(--school-green, #4D602B);
}

.news-archive-toolbar__subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.84rem;
    color: var(--text-muted, #64748b);
}

/* 右側控制群組 */
.news-toolbar-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .news-toolbar-controls {
        width: auto;
        flex-direction: row;
        align-items: center;
    }
}

/* 檢視風格切換膠囊框 */
.view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #ffffff;
    padding: 0.35rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.view-switcher__label {
    display: none;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    padding: 0 0.3rem 0 0.6rem;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .view-switcher__label {
        display: inline;
    }
}

.view-switcher__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border: none;
    border-radius: 0.75rem;
    background: transparent;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.view-switcher__btn:hover {
    color: var(--school-green, #4D602B);
    background: #f3f6ee;
}

.view-switcher__btn.is-active {
    background: var(--school-green, #4D602B);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(77, 96, 43, 0.25);
}

/* 學年篩選下拉框 */
.year-filter-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    padding: 0.45rem 0.85rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.year-filter-box__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    margin: 0;
}

.year-filter-box__label i {
    color: var(--school-green, #4D602B);
}

.year-filter-box__select {
    width: 100%;
    min-width: 145px;
    padding: 0.45rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.year-filter-box__select:focus {
    border-color: var(--school-green, #4D602B);
    box-shadow: 0 0 0 3px rgba(77, 96, 43, 0.16);
}

/* 圖格卡片底部標籤與閱讀全文 */
.news-card-footer {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.news-card-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: #f3f6ee;
    border: 1px solid #d5e0c3;
    color: var(--school-green, #4D602B);
    font-weight: 700;
}

.news-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--school-green, #4D602B);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-readmore:hover {
    color: #37461e;
    text-decoration: underline;
}

/* =========================================================================
   列表檢視模式 (List View：年份與月份分組無方框清單)
   ========================================================================= */
.news-list-view {
    max-width: 960px;
    margin: 0 auto;
}

.news-list-year-header {
    padding-top: 1.5rem;
    padding-bottom: 0.55rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--school-green, #4D602B);
    display: flex;
    align-items: center;
}

.news-list-year-header:first-child {
    padding-top: 0.25rem;
}

.news-list-year-badge {
    display: inline-block;
    background: var(--school-green, #4D602B);
    color: #ffffff;
    border-bottom: 2px solid var(--school-gold, #DAA520);
    font-weight: 900;
    font-size: 1.08rem;
    padding: 0.28rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.news-list-month-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.25rem 0 0.85rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--school-green, #4D602B);
    font-size: 1.08rem;
    font-weight: 800;
    color: #1e293b;
}

.news-list-month-header i {
    color: var(--school-green, #4D602B);
}

.news-list-row {
    border-bottom: 1px solid rgba(203, 213, 225, 0.75);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.18s ease;
}

.news-list-row:hover {
    border-bottom-color: var(--school-green, #4D602B);
}

.news-list-row__link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.25rem 0;
    text-decoration: none;
}

@media (min-width: 640px) {
    .news-list-row__link {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.news-list-row__main {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    padding-left: 1.25rem;
}

.news-list-row__day {
    min-width: 40px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--school-green, #4D602B);
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.news-list-row__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    color: #1e293b;
    transition: color 0.2s ease, transform 0.2s ease;
}

.news-list-row:hover .news-list-row__title {
    color: var(--school-green, #4D602B);
    transform: translateX(4px);
}

.news-list-row__action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding-left: 3.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

@media (min-width: 640px) {
    .news-list-row__action {
        padding-left: 0;
    }
}

.news-list-row__action i {
    font-size: 0.68rem;
    transition: transform 0.2s ease;
}

.news-list-row:hover .news-list-row__action {
    color: var(--school-green, #4D602B);
}

.news-list-row:hover .news-list-row__action i {
    transform: translateX(2px);
}

/* =========================================================================
   校園相簿專屬卡片標籤與分頁膠囊導覽 (apage pagination)
   ========================================================================= */
.album-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}

.album-card-tag i {
    color: var(--school-green, #4D602B);
}

.album-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

.album-pagination__nav {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    background: #ffffff;
    padding: 0.4rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.album-pagination__nav .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.album-pagination__nav .page-numbers:hover:not(.current):not(.dots) {
    background: #f3f6ee;
    color: var(--school-green, #4D602B);
}

.album-pagination__nav .page-numbers.current {
    background: var(--school-green, #4D602B);
    color: #ffffff;
    border-bottom: 2px solid var(--school-gold, #DAA520);
    box-shadow: 0 2px 6px rgba(77, 96, 43, 0.25);
}

.album-pagination__nav .page-numbers.dots {
    min-width: auto;
    padding: 0 0.4rem;
    color: #94a3b8;
}